A real-time face recognition system that identifies popular singers from images or live webcam feed. Built using Python & OpenCV, this project demonstrates how computer vision + machine learning work together to recognize faces efficiently and accurately. Perfect for AI projects, demos, or learning purposes.
- 🎥 Real-time face detection & recognition using webcam
- 🎤 Supports multiple singers with clear labels
- ➕ Easy to extend: just add new faces
- ⚡ Lightweight, fast, and efficient
- 🧠 Great foundation for AI-powered applications
- Justin Bieber
- Ariana Grande
- Taylor Swift
- Jungkook
Easily expand by adding more faces to the dataset.
- Python 3
- OpenCV
- NumPy
- face_recognition
- Pickle
- Matplotlib (optional)
smart-face-recognizer/
│
├── images/ # Training images (organized by singer)
├── trained_model/ # Saved face encodings
├── main.py # Run real-time recognition
├── train_model.py # Train the model
├── requirements.txt # Dependencies
└── README.md # Documentation
git clone https://github.com/aeindri-tech/smart-face-recognizer.git
cd smart-face-recognizerpython -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windowspip install -r requirements.txt- Place images inside the
images/folder - Create separate folders for each singer
- Folder name = label name
python train_model.pypython main.py- Extracts facial encodings from training images
- Stores encodings using Pickle
- Captures webcam frames in real-time
- Compares detected faces with stored encodings
- Displays the closest match with name
- Use high-quality images
- Maintain good lighting conditions
- Keep faces clearly visible
- Add multiple images per person
- Ensure variety in angles & expressions
- Build a GUI interface
- Improve accuracy with more training data
- Add confidence score display
- Support more celebrities
- Integrate web/mobile applications
- Add demo GIF or video preview
Contributions are welcome!
- Fork the repository
- Create a branch (
git checkout -b feature-name) - Commit changes (
git commit -m "Add feature") - Push to GitHub (
git push origin feature-name) - Open a Pull Request
This project is licensed under the MIT License.