Face Detection
This project is maintained by milosnowcat
Face Detection
This project allows you to capture video from a webcam, detect faces, and recognize and label them. To get started with this project, follow the installation steps below.
Before using the project, ensure you have Python installed on your system. You can download Python from python.org.
Clone the GitHub repository containing the Face.py project to your local machine using the following command:
git clone https://github.com/milosnowcat/face.py.git
Navigate to the face.py
directory:
cd face.py
Install the required Python packages using pip:
pip install -r requirements.txt
Run the main.py
script to start the face detection and recognition:
python main.py
The script will use your webcam to capture video and perform real-time face detection and recognition.
Recognized faces will be labeled, and their names will be displayed on the video stream.
To exit the application, press the Esc
key (usually represented as k == 27
in the terminal).
That’s it! You have successfully installed and used the Face.py project for real-time face detection and recognition.
The Face.py project enables real-time face detection and recognition using your webcam. Follow these steps to use the project.
Ensure you have followed the installation steps mentioned in the “Installation of the Face.py Project” section.
Run the main.py
script to start the face detection and recognition:
python main.py
The script will capture video from your webcam and display it in a window.
Faces detected in the video stream will be outlined, and their names (if recognized) will be displayed below each detected face.
The recognition is based on known faces extracted from the assets/images
directory and encoded using face_recognition.
To exit the application, press the Esc
key (usually represented as k == 27
in the terminal).
If you want to add new faces for recognition, you can place images containing the faces in the assets/images
directory and run the extractFaces
function provided in the utils.py
script.
That’s it! You have successfully used the Face.py project for real-time face detection and recognition using your webcam.