πŸ“· Smart Face, Eye & Smile Detector

Welcome to the Smart Face, Eye & Smile Detector! πŸŽ‰
This is a real-time web application that detects face, eyes, and smile using your webcam. Built with Streamlit, OpenCV, and WebRTC, it’s fast, interactive, and fun! πŸ˜„


πŸš€ Features

  • πŸ§‘β€πŸ€β€πŸ§‘ Face Detection: Detect faces in real-time.
  • πŸ‘€ Eye Detection: Recognizes eyes within detected faces.
  • 😁 Smile Detection: Detects smiles and shows a message.
  • πŸŽ₯ Live Webcam Feed: Stream your camera directly in the browser.
  • ✨ Interactive UI: Easy to use with start/stop controls.

πŸ› οΈ Installation

  1. Clone the repository
git clone https://github.com/yourusername/smart-face-detector.git
cd smart-face-detector
  1. Create a virtual environment (optional but recommended)
python -m venv venv
source venv/bin/activate   # Linux / Mac
venv\Scripts\activate      # Windows
  1. Install dependencies
pip install -r requirements.txt

πŸš€ Run the App

streamlit run app.py
  • Press Start to begin live detection.
  • Press Stop to end the webcam feed. Streamlit handles cleanup automatically.

πŸ“¦ Dependencies

  • streamlit 🌐
  • opencv-python-headless πŸ–ΌοΈ
  • streamlit-webrtc πŸ“Ή
  • av πŸ”„
  • numpy πŸ”’

πŸ“ Notes

  • Make sure your browser has webcam access enabled.
  • Works best with good lighting conditions.
  • Tested on Python 3.10+.

⭐ Support

If you found this repository helpful, don’t forget to star ⭐ the repo. Your support motivates me to learn and share more! πŸ’‘


⚑ License

This project is MIT Licensed.


Built With

Share this project:

Updates