**
centerface多张人脸检测,效果很好
**
github:https://github.com/Star-Clouds/CenterFace/tree/master/prj-python
**
dlib单张人脸检测,效果一般
**
detector = dlib.get_frontal_face_detector()
predictor = dlib.shape_predictor(
“shape_predictor_68_face_landmarks.dat”
)
dets = detector(gray, 1)
**
opencv多张人脸检测,效果较差
**
face_cascade = cv.CascadeClassifier(‘haarcascade_frontalface_default.xml’)
faces = face_cascade.detectMultiScale(
gray,
scaleFactor=1.2,
minNeighbors=3,
)