This opertator detects faces in the images by using RetinaFace Detector[1]. It will returns the bounding box positions and the confidence scores of detected faces. This repo is a adopataion from [2].
This operator detects faces in the images by using RetinaFace Detector[1]. It will return the bounding box positions and the confidence scores of detected faces. This repo is a adapataion from [2].
## Code Example
Load an image from path './dog.jpg'
and use the pretrained RetinaFace to generate face bounding boxes.
*Write the pipeline in simplified style*:
```python
from towhee import ops
model = ops.face_detection.retinaface()
embedding = model(img)
bboxes = dc.glob('nmb46.jpg') \
.image_decode.cv2() \
.face_detection.retinaface() \
.to_list()
```
*Write a same pipeline with explicit inputs/outputs name specifications:*