Skip to content

Detects the face landmarks such as nose, eyes, etc. using just Python, OpenCV and dlib

Notifications You must be signed in to change notification settings

ShaikhMohammaddanish/face_landmark_detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Facial Landmarks Detection with DLIB

Detects the face landmarks such as nose, eyes, etc. using just Python, OpenCV and dlib

Amazing and easy face landmarks detector with dlib library.

Key Points

  1. Steps involved:
    1. Localize the face in the image
    2. Detect the key facial structures on the face ROI
  2. Assumptions:
    1. We already have the trained face detector and face landmark detector. ( can be download from here )
  3. Variety of things the face detector detects:
    1. Nose
    2. Mouth
    3. Left eye
    4. Right eye
    5. Left eyebrow
    6. Right eyebrow
    7. Jaw

Requirements: (with versions i tested on)

  1. python (3.7.3)
  2. opencv (4.1.0)
  3. numpy (1.61.4)
  4. imutils (0.5.2)
  5. dlib (19.17.0)

Commands to run the detection:

python3 facial_landmarks.py --shape-predictor shape_predictor_68_face_landmarks.dat --image images/1.jpg 

Results:

The results are awesome. We can see pretty accurate face landmark detections.

Input

Example input 1

Output

Example output 1

Input

Example input 2

Output

Example output 2

About

Detects the face landmarks such as nose, eyes, etc. using just Python, OpenCV and dlib

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages