Recognition of faces with IP Camera, OpenCV, Sqlite Database and Python !
The main window where you can choose the step of the program you want :
The program tree structure :
├── dataset
│ ├── student.*.*.jpg
├── face_recognition_students.py
├── haarcascade_frontalface_default.xml
├── trainer
└── trainer.yml
haarcascade_frontalface_default.xml : default configuration file of OpenCV to detect frontal_faces
face_recognition_students.py : Python program with GUI with : Face Detection Training Face recognition
Dataset : The folder where your images are stored
Trainer : Folder to save the configuration file [trainer.yml] made from training_students.py
Make sure to install the dependencies below and after execute :
python face_recognition_students.py
Then choose Face Detection step of the program.
This will create 100 images in dataset folder like this :
When you have all your images, click on Training (It takes more or less time depending on the size of the dataset), a trainer.yml is create for the next and last step of the program.
Before you click on Recognize, at Line 148 in face_recognition_students.py change the name that matches your id
For example i gave the id 1 for simple :
- Python3
- OpenCV
- PIP
- Numpy
- Image
- sqlite3
Face-recognition-student is licensed under the MIT license.