From eb3f1b193f118d155bd881d35cd05469a6e03266 Mon Sep 17 00:00:00 2001 From: wxywb Date: Mon, 11 Apr 2022 14:43:57 +0800 Subject: [PATCH] update the format. Signed-off-by: wxywb --- README.md | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8f64ea0..e42f50d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # RetinaFace Face Detection -*Authors: David Wang* +*author: David Wang* + + + +
@@ -8,11 +12,15 @@ This operator detects faces in the images by using [RetinaFace](https://arxiv.org/abs/1905.00641) Detector. It will return the bounding box positions and the confidence scores of detected faces. This repo is an adaptaion from [biubug6/Pytorch_Retinaface](https://github.com/biubug6/Pytorch_Retinaface). + +
+ + ## Code Example Load an image from path './turing.png' and use the pretrained RetinaFace model to generate face bounding boxes and confidence scores. - *Write the pipeline in simplified style*: + *Write the pipeline in simplified style:* ```python import towhee @@ -33,25 +41,35 @@ import towhee towhee.glob['path']('turing.png') \ .image_decode.cv2['path', 'img']() \ .face_detection.retinaface['img', ('bbox','score')]() \ - .select('img', 'bbox', 'score') \ + .select['img', 'bbox', 'score']() \ .show() ``` result2 + +
+ + + ## Factory Constructor Create the operator via the following factory method. ***face_detection.retinaface()*** + +
+ + + ## Interface A face detection operator takes an image as input. It generates the bounding box positions and confidence scores back to ndarray. **Parameters:** -​ ***img***: *towhee.types.Image (a sub-class of numpy.ndarray)* +​ ***img:*** *towhee.types.Image (a sub-class of numpy.ndarray)* ​ the image to detect faces.