Browse Source
update the doc.
Signed-off-by: wxywb <xy.wang@zilliz.com>
main
wxywb
3 years ago
3 changed files with
6 additions and
5 deletions
-
README.md
-
BIN
result2.jpg
-
BIN
result2.png
|
|
@ -26,7 +26,7 @@ Load an image from path './turing.png' and use the pretrained RetinaFace model t |
|
|
|
import towhee |
|
|
|
|
|
|
|
towhee.glob('turing.png') \ |
|
|
|
.image_decode.cv2() \ |
|
|
|
.image_decode() \ |
|
|
|
.face_detection.retinaface() \ |
|
|
|
.show() |
|
|
|
|
|
|
@ -39,13 +39,14 @@ towhee.glob('turing.png') \ |
|
|
|
import towhee |
|
|
|
|
|
|
|
towhee.glob['path']('turing.png') \ |
|
|
|
.image_decode.cv2['path', 'img']() \ |
|
|
|
.image_decode['path', 'img']() \ |
|
|
|
.face_detection.retinaface['img', ('bbox','score')]() \ |
|
|
|
.select['img', 'bbox', 'score']() \ |
|
|
|
.show() |
|
|
|
.image_crop[('img', 'bbox'), 'crop']()\ |
|
|
|
.select('img', 'crop', 'bbox', 'score').show() |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
<img src="https://towhee.io/face-detection/retinaface/raw/branch/main/result2.png" alt="result2" style="height:60px;"/> |
|
|
|
<img src="https://towhee.io/face-detection/retinaface/raw/branch/main/result2.jpg" alt="result2" style="height:60px;"/> |
|
|
|
|
|
|
|
|
|
|
|
<br /> |
|
|
|
Width:
|
Height:
|
Size: 202 KiB
|
Width:
|
Height:
|
Size: 123 KiB
|