From ea500646996f488cc49019c62634fe9308260e6d Mon Sep 17 00:00:00 2001 From: shiyu22 Date: Tue, 7 Feb 2023 14:19:35 +0800 Subject: [PATCH] Update README with dc2 Signed-off-by: shiyu22 --- README.md | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/README.md b/README.md index be7853b..b3cb64c 100644 --- a/README.md +++ b/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:* -- **option 1: towhee>=0.9.0** ```Python from towhee.dc2 import pipe, ops, DataCollection @@ -41,20 +40,6 @@ p = ( 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() -) -``` - result