This project implements a real-time face recognition system using Python. The system captures images, trains a model with the captured faces, and then recognizes and displays names near the recognized faces in a live video feed. It leverages OpenCV for video capture and face detection, and uses a machine learning model for face recognition.
- Image Capture: Captures images from a in-built webcam for training purposes.
- Model Training: Trains a face recognition model using the captured images.
- Real-Time Recognition: Recognizes faces in a live video feed and displays names near the recognized faces.
-
Clone the repository:
git clone https://github.com/CyberBoy-Mayank/face-recognition-project.git cd face-recognition-project
-
Install the required dependencies:
pip install -r requirements.txt
- Run the main script:
python main.py
- Capture Images: Use the
capture_images.py
script to capture images from your webcam and label them with names. - Train Model: Run the
train_model.py
script to train the face recognition model using the captured images. - Recognize Faces: Use the
recognize_faces.py
script to start the webcam feed and recognize faces in real-time, displaying names near the recognized faces.
- High Accuracy: Utilizes a robust face recognition model for accurate identification.
- Real-Time Processing: Efficient algorithms ensure real-time performance for live applications.
- Easy to Use: Simple commands for capturing images, training the model, and recognizing faces.
- Customizable: Easily extendable to include additional features or integrate with other systems.
- I'm using Python Version: 3.10.2 for this project.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.