logo
Browse Source

Update README with dc2

Signed-off-by: shiyu22 <shiyu.chen@zilliz.com>
main
shiyu22 2 years ago
parent
commit
ea50064699
  1. 15
      README.md

15
README.md

@ -26,7 +26,6 @@ Load an image from path './test.png' and use yolov5 model to detect objects in t
*Write a same pipeline with explicit inputs/outputs name specifications:* *Write a same pipeline with explicit inputs/outputs name specifications:*
- **option 1: towhee>=0.9.0**
```Python ```Python
from towhee.dc2 import pipe, ops, DataCollection from towhee.dc2 import pipe, ops, DataCollection
@ -41,20 +40,6 @@ p = (
DataCollection(p('./test.png')).show() DataCollection(p('./test.png')).show()
``` ```
- **option 2:**
```python
import towhee
(
towhee.glob['path']('./test.png')
.image_decode['path','img']()
.object_detection.yolov5['img', ('box', 'class', 'score')]()
.image_crop[('img', 'box'), 'object'](clamp = True)
.select['img','object', 'class']()
.show()
)
```
<img src="./result.png" alt="result" height="140px"/> <img src="./result.png" alt="result" height="140px"/>
<br /> <br />

Loading…
Cancel
Save