Browse Source
Update yolov5 README
Signed-off-by: shiyu22 <shiyu.chen@zilliz.com>
main
1 changed files with
7 additions and
7 deletions
-
README.md
|
|
@ -30,9 +30,9 @@ Writing the pipeline in the simplified way |
|
|
|
import towhee |
|
|
|
|
|
|
|
towhee.glob('./test.jpg') \ |
|
|
|
.image_decode() \ |
|
|
|
.object_detection.yolov5() \ |
|
|
|
.show() |
|
|
|
.image_decode() \ |
|
|
|
.object_detection.yolov5() \ |
|
|
|
.show() |
|
|
|
``` |
|
|
|
|
|
|
|
<img src="./results1.png" alt="results1" height="40px"/> |
|
|
@ -43,10 +43,10 @@ Writing the same pipeline with explicitly specified inputs and outputs |
|
|
|
import towhee |
|
|
|
|
|
|
|
towhee.glob['path']('./test.png') \ |
|
|
|
.image_decode['path','img']() \ |
|
|
|
.object_detection.yolov5['img', ('box', 'class', 'score')]() \ |
|
|
|
.select('box', 'class', 'score') \ |
|
|
|
.show() |
|
|
|
.image_decode['path','img']() \ |
|
|
|
.object_detection.yolov5['img', ('box', 'class', 'score')]() \ |
|
|
|
.select('box', 'class', 'score') \ |
|
|
|
.show() |
|
|
|
``` |
|
|
|
|
|
|
|
<img src="./results2.png" alt="results1" height="90px"/> |
|
|
|