diff --git a/README.md b/README.md
index dd6b664..e869322 100644
--- a/README.md
+++ b/README.md
@@ -2,50 +2,31 @@
*author: Kaiyuan Hu, Rentong Guo*
-
-
-
-
## Description
An image decode operator implementation with OpenCV.
-
-
-
-
## Code Example
-Load a image from path './dog.jpg'.
+Load a image from path './src_dog.jpg'.
- *Write the pipeline in simplified style:*
+*Write a pipeline with explicit inputs/outputs name specifications:*
```python
-import towhee
+from towhee.dc2 import pipe, ops, DataCollection
-towhee.glob('./dog.jpg') \
- .image_decode.cv2() \
- .show()
+p = (
+ pipe.input('path')
+ .map('path', 'image', ops.image_decode.cv2_rgb())
+ .output('path', 'image')
+)
```
-*Write a same pipeline with explicit inputs/outputs name specifications:*
-
-```python
-import towhee
-
-towhee.glob['path']('./dog.jpg') \
- .image_decode.cv2['path', 'img']() \
- .select['img']() \
- .show()
-```
-
-
-
-
+
@@ -57,7 +38,7 @@ towhee.glob['path']('./dog.jpg') \
Create the operator via the following factory method:
-***image_decode.cv2()***
+***image_decode.cv2_rgb()***
diff --git a/result.png b/result.png
new file mode 100644
index 0000000..a9f4f3f
Binary files /dev/null and b/result.png differ
diff --git a/src_dog.jpg b/src_dog.jpg
new file mode 100644
index 0000000..02a8b9f
Binary files /dev/null and b/src_dog.jpg differ