Real Time Face Dectector Python model to detect the faces of people provided in the dataset.
This model has following key steps: - This project generates the dataset of our own by recording the the video and getting their label.
- On the basis of the generated dataset the model searches for the people's from the real time video.
- Label the people in the video according to the trained dataset with their names hovering with the rectangle floating around their face.
Pyhton3
installed with following libraries on your system.
cv2
for computer vision on imagesInstall
with following commandpip install opencv-python
andpip install numpy
numpy
for vedio and image processingInstall
with following commandpip install numpy
os
for taking camera input from the machineInstall
with following commandpip install os-sys
After the installation of all packages run with the following command
Create
a folder under the root of the project namedimages
which will use store the dataset on which the model will be trained.- Generate your own dataset by executing the file
Generate_Dataset.py
by the following commandpython Generate_Dataset.py
in the terminal. - To quit from the the process of dataset generation click on the dialog box showing the camera input and press
q
. - After successful dataset generation, execute the file
face_recognition.py
by the following commandpython face_recognition.py
in the terminal. - Dialog box opens showing the camera input with the rectangular boxes showing around the people whose dataset is present.
- To quit from the the process of execution click on the dialog box showing the camera input and press
q
.
This project was by ardourApeX
and CyberWake
to detect faces in dataset and mark them respectively with there names.