face-alignment-dlib
face-alignment-dlib copied to clipboard
Detect and align faces in images using dlib and opencv
Face Alignment
This is a demo of detecting and aligning faces in an image. Alignment is a process of rotating a face to a vertically straight orientation, should the original face image is tilted.
Setup:
- Run
pip install -r requirements.txt
- Download and extract shape predictor 68 landmarks at this link.
- Place the extracted predictor in the root directory of this project.
- Find some images with faces, tiled if possible.
Run:
python app.py \<image input\> \<image output\>