This is a project using python packages, OpenCV and face_recognition, to identify double eyelid and calculate the vertical ratio of subunit below eyelid fold peak to eyebrow-eye unit.
- OpenCV:Use Haar Feature-based Cascade Classifier to classify different parts of face
- face_recognition:Based on CNN model to recognize different parts of face
Environment:Mac OSX 10.13.2
Editor:Ananconda Jupyter Notebook
Python Packages:
- pillow:python image library
- matplotlib:data visualiztion library
- opencv
- face_recogniton
pip install Pillow
pip install matplotlib
pip install opencv-python
pip install face_recognition
Before installing face_recognition, installing certain packages is needed.
-
cmake (need to add into environment)
My Solved Case:
- Visit cmake official website and download cmake software
- Open cmake software. Find "Tools", and click "How To Install For Command Line Use"
- Choose one of the solutions (I chose the second one)
-
dlib
- Recognize the coordinate of eyebrow and eye from images.
- Calculate y-axis of lower margin of eyebrow , y-axis of peak of upper eyelid margin, and y-axis of lower eyelid margin.
- In step 2, if there is double eyelid in the figure, double eyelid fold needs to be included while calculating y-axis of peak of upper eyelid margin.
- Calculate ratio of subunit below eyelid fold peak to eyebrow-eye unit
- Not able to recognize double eyelids by recent tools