Amazing and easy face landmarks detector with dlib library.
- Steps involved:
- Localize the face in the image
- Detect the key facial structures on the face ROI
- Assumptions:
- We already have the trained face detector and face landmark detector. ( can be download from here )
- Variety of things the face detector detects:
- Nose
- Mouth
- Left eye
- Right eye
- Left eyebrow
- Right eyebrow
- Jaw
- python (3.7.3)
- opencv (4.1.0)
- numpy (1.61.4)
- imutils (0.5.2)
- dlib (19.17.0)
python3 facial_landmarks.py --shape-predictor shape_predictor_68_face_landmarks.dat --image images/1.jpg
The results are awesome. We can see pretty accurate face landmark detections.
Input
Output
Input
Output