Skip to content

Recognition of students with IP Camera, OpenCV, Sqlite Database and Python !

License

Notifications You must be signed in to change notification settings

Srywards/Face-Recognition

Repository files navigation

Face-Recognition

Recognition of faces with IP Camera, OpenCV, Sqlite Database and Python !

Overview

The main window where you can choose the step of the program you want :

ui_2

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

Installation & Usage

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 :

example_dataset

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.

alarm (1)

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 :

id_simple

That's all folks !

Dependencies

  • Python3
  • OpenCV
  • PIP
  • Numpy
  • Image
  • sqlite3

License

Face-recognition-student is licensed under the MIT license.

License: MIT

About

Recognition of students with IP Camera, OpenCV, Sqlite Database and Python !

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages