diff --git a/README.md b/README.md index 1cbb104..595a28b 100644 --- a/README.md +++ b/README.md @@ -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() + ``` -result2 +result2
diff --git a/result2.jpg b/result2.jpg new file mode 100644 index 0000000..5484cb4 Binary files /dev/null and b/result2.jpg differ diff --git a/result2.png b/result2.png deleted file mode 100644 index dae2e9f..0000000 Binary files a/result2.png and /dev/null differ