In this project used OpenCV library to detect face, eyes and smile in an image. The OpenCV library has two pre-trained face detection classifiers and this task was used Harr Classifier.
- Detection face, eyes and smile in an image - Face_eye_smile_detection.ipynb
- Detection faces in an image - Face_Detection.ipynb
- Python script with face detection model - face.py
- models, images - images and models used in the project.
Project is created with:
- Python 3.6
- libraries: OpenCV, numpy, matplotlib.
To run this project install locally packages:
pip install opencv
Next download the notebook and models/"haarcascade_frontalface_default.xml" to your system and run the script:
face.py
To run Face_Detection.ipynb and Face_eye_smile_detection.ipynb files use Jupyter Notebook or Google Colab.