|
|
@ -19,8 +19,8 @@ Load a image from path './dog.jpg'. |
|
|
|
```python |
|
|
|
import towhee |
|
|
|
|
|
|
|
towhee.glob('./dog.jpg') |
|
|
|
.image_decode.cv2() |
|
|
|
towhee.glob('./dog.jpg') \ |
|
|
|
.image_decode.cv2() \ |
|
|
|
.show() |
|
|
|
``` |
|
|
|
|
|
|
@ -29,9 +29,9 @@ towhee.glob('./dog.jpg') |
|
|
|
```python |
|
|
|
import towhee |
|
|
|
|
|
|
|
towhee.glob['path']('./dog.jpg') |
|
|
|
.image_decode.cv2['path', 'img']() |
|
|
|
.select('img') |
|
|
|
towhee.glob['path']('./dog.jpg') \ |
|
|
|
.image_decode.cv2['path', 'img']() \ |
|
|
|
.select('img') \ |
|
|
|
.show() |
|
|
|
``` |
|
|
|
|
|
|
@ -65,3 +65,5 @@ An image decode operator takes an image path as input. It decodes the image back |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|