Skip to content

Habeel06/face-detector-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📝About

A face detector template using opencv.

👨‍💻 Dependencies

MAKE SURE THAT YOU HAVE THESE MODULES INSTALLED FIRST!

opencv-python
opencv-contrib-python
numpy
Pillow

✔️ How to Run

1️⃣Keep your images in different folders in the "images" folder on the basis of differences (for example dog pictures in one folder and cat pictures in another folder).

Keep one thing in mind that all the images in each folder in the "images" folder will be recognized by the name of the each folder.
For example all the pictures in the "dog" folder will be recognized as "dog".

2️⃣Open faces.train.py in a code editor and paste the location of the file needed there.

3️⃣Run faces.train.py and wait for a while untill trainer.yml and labels.pickle files are created.

4️⃣ Open faces.py in a code editor and paste the location of the files needed there.

5️⃣ Run the faces.py file .
Then wait for few seconds so that camera dialog box opens, and then it will start recognizing.

📺 Updates

COMPLETED.

About

A face detector template using opencv.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages