Skip to content

aeindri-tech/smart-face-recognizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Smart Face Recognizer 🎤🕵️‍♂️

Python License GitHub stars

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.


🌟 Features

  • 🎥 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

🎤 Supported Singers

  • Justin Bieber
  • Ariana Grande
  • Taylor Swift
  • Jungkook

Easily expand by adding more faces to the dataset.


🛠️ Technologies Used

  • Python 3
  • OpenCV
  • NumPy
  • face_recognition
  • Pickle
  • Matplotlib (optional)

📂 Project Structure

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

⚡ Setup Instructions

1️⃣ Clone the repository

git clone https://github.com/aeindri-tech/smart-face-recognizer.git
cd smart-face-recognizer

2️⃣ Create a virtual environment (optional)

python -m venv venv
source venv/bin/activate    # Linux/Mac
venv\Scripts\activate       # Windows

3️⃣ Install dependencies

pip install -r requirements.txt

4️⃣ Add training images

  • Place images inside the images/ folder
  • Create separate folders for each singer
  • Folder name = label name

5️⃣ Train the model

python train_model.py

6️⃣ Run the project

python main.py

🖼️ How It Works

  • 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

💡 Usage Tips

  • Use high-quality images
  • Maintain good lighting conditions
  • Keep faces clearly visible
  • Add multiple images per person
  • Ensure variety in angles & expressions

🚀 Future Improvements

  • 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

📜 References


🤝 Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a branch (git checkout -b feature-name)
  3. Commit changes (git commit -m "Add feature")
  4. Push to GitHub (git push origin feature-name)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License.


⭐ If you found this project useful, consider giving it a star!

🚀 Built to explore the power of AI & Computer Vision

About

Real-time face recognition system using Python & OpenCV to identify popular singers via webcam or images.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages