logo
Browse Source

Update yolov5 README

Signed-off-by: shiyu22 <shiyu.chen@zilliz.com>
main
shiyu22 3 years ago
parent
commit
8e700adfa3
  1. 14
      README.md

14
README.md

@ -30,9 +30,9 @@ Writing the pipeline in the simplified way
import towhee import towhee
towhee.glob('./test.jpg') \ towhee.glob('./test.jpg') \
.image_decode() \
.object_detection.yolov5() \
.show()
.image_decode() \
.object_detection.yolov5() \
.show()
``` ```
<img src="./results1.png" alt="results1" height="40px"/> <img src="./results1.png" alt="results1" height="40px"/>
@ -43,10 +43,10 @@ Writing the same pipeline with explicitly specified inputs and outputs
import towhee import towhee
towhee.glob['path']('./test.png') \ 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"/> <img src="./results2.png" alt="results1" height="90px"/>

Loading…
Cancel
Save