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 -

  1. OpenCv haarcascade_frontalface_default.xml file
  2. Train.py (for capturing an image)
  3.  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.




Next Post Previous Post
No Comment
Add Comment
comment url