Day 14 - Face Recognition Using OpenCV in Python
Hello guys,
This is Day 14 of my #100DaysOfMLCCode Challenge. Today, I am going to implement Face Recognition Using OpenCV in Python. For this, we will need the following file -
- OpenCv haarcascade_frontalface_default.xml file
- Train.py (for capturing an image)
- Facerec.py (for training as well as face recognition)
Python Code(train.py) -
Python Code(facerec.py) -
Output -
Running the Train.py file with the command(see carefully) |
Running the facerec.py file(P.S. ignore my expression) |
Another Output with my friends. |
Thanks.
Happy Coding.