face detector
Project description
# [RetinaFace](https://github.com/heewinkim/retinaface)
tensorflow 2 - PyPI implement
reference : https://github.com/peteryuX/retinaface-tf2
- ### INSTALL
$pip3 install refinaface
### USEAGE
#pip3 install opencv-python import cv2
from retinaface import Retinaface()
detector = Retinaface(quality=”normal”)
# same with cv2.imread,cv2.cvtColor rgb_image = detector.read(“path/to/image”)
faces = detector.predict(rgb_image) # faces is list of face dictionary # each face dictionary contains x1 y1 x2 y2 left_eye right_eye nose left_lip right_lip # faces=[{“x1”:20,”y1”:32, … }, …]
result_img = detector.draw(rgb_image,faces)
# save # cv2.imwrite(“result_img.jpg”,result_img)
# show using cv2 # cv2.imshow(“result”,result_img) # cv2.waitKey()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for retinaface-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e1fe9e57f92df7c2c5ef8ace0bf4ed6d2d0408253f976dccaa7d3fbc6262144 |
|
MD5 | 1c1bfdec31a55b0de9384e4b331f6a49 |
|
BLAKE2b-256 | a5b519c4ae46c7bf2d53203025d9895e3b5743681d64980fa7a0180b123147cf |