Machine Learning | KNN | Computer Vision | OpenCV
Face detection using Haar cascades is a machine learning based approach where a cascade function is trained with a set of input data. Here, Haar cascades is used to detect the human faces in frame. Then further KNN algorithm is used to recognise the person in that purticular frame.
- OpenCV
- Haar cascades (XML already included)
- Python3
- Numpy
- Firstly, clone the repository.
- Install the OpenCV and required libraries.
- Run
collect.py
file usingpython collect.py
- Model will save some images of yours, you can track the progress in terminal. After saving some images, press q to terminate the program.
- Run
detect.py
file usingpython detect.py
to detect faces in frame.