This project implements a face recognition system capable of detecting and identifying faces in images and video streams. It leverages modern computer vision and machine learning techniques to achieve accurate and efficient performance, suitable for both real-time applications and static image processing.
- Face Detection: Locates faces within an image or video frame.
- Face Recognition: Identifies individuals based on facial features.
- Real-time Processing: Optimized for video stream analysis.
- Multiple Face Support: Detects and recognizes multiple faces in a single frame.
- Python
- Cmake
Follow these steps to set up the project on your local machine:
-
Clone the Repository
Clone the entire AIML repository and navigate to the Face Recognition directory:git clone https://github.com/jaikanthh/AIML.git cd AIML/Face\ Recognition
-
Create a Virtual Environment (Optional but recommended)
Set up a virtual environment to manage dependencies:python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install Dependencies
Install the required Python packages (assumes arequirements.txtfile exists):pip install -r requirements.txt
-
Add Training Data
Make a folder with your name inside the "data" Folder and place your images in that respective folder. If you dont see data folder either make one or just run the main.py once.
To process a live video feed (e.g., from a webcam):
python main.py[Add other usage examples specific to your project, e.g., additional command-line arguments or modes]
The face recognition system operates in three key steps:
- Face Detection: Detects faces using [e.g., Haar cascades, HOG, or MTCNN].
- Feature Extraction: Extracts facial features with [e.g., a pre-trained CNN or Dlib’s face encoding].
- Recognition: Matches features against a database of known faces.
- Log: Makes a Excel Sheet of detected faces with timestamps
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a clear description of your changes.
This project is licensed under the MIT License. See the LICENSE file for more information.
For questions, suggestions, or issues, please reach out:
