Skip to content

risingstar185/Object-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘οΈ Object, Eye & Emotion (Smile) Detection using YOLO and OpenCV

This project uses YOLO (You Only Look Once) and OpenCV to perform real-time object detection, eye tracking, and emotion/smile detection through a webcam or video input.

It demonstrates how modern deep learning models can be combined with traditional computer vision techniques to analyze faces and emotions effectively.

🧠 Project Overview

πŸ§β€β™‚οΈ Object Detection β€” Detects multiple classes such as people, cars, and objects using YOLO.

πŸ‘οΈ Eye Detection β€” Uses Haar cascades or deep learning for accurate eye localization.

😊 Emotion / Smile Detection β€” Detects facial expressions and identifies smiles.

πŸ“· Real-Time Processing β€” Works with live webcam feed or pre-recorded videos.

πŸ–ΌοΈ Example Outputs πŸ”Ή Object Detection

πŸ”Ή Eye Detection

πŸ”Ή Emotion / Smile Detection Smart YOLO + Haarcascade Detector 07-10-2025 09_52_44

🧰 Tech Stack Component Technology Language Python 3.x Frameworks OpenCV, NumPy Model YOLOv8 / YOLOv5 Pre-trained Models Haar Cascades / CNN for Smile & Eye Detection Visualization Matplotlib / OpenCV βš™οΈ Installation & Setup 1️⃣ Clone the Repository git clone https://github.com/risingstar185/yolo_haarcascade.git

3️⃣ Install Dependencies pip install -r requirements.txt

4️⃣ Download YOLO Weights

Download YOLO pre-trained weights from:

YOLOv8 Official

or use older YOLOv3 weights:

wget https://pjreddie.com/media/files/yolov3.weights

Place them in the project directory (weights/ folder).

▢️ Usage πŸ”Ή For Object Detection python object_detection.py --source 0 # For webcam python object_detection.py --source path/to/video.mp4

πŸ”Ή For Eye & Smile Detection python face_eye_smile_detection.py

πŸ”Ή For Emotion Detection (Optional CNN Model) python emotion_detection.py

πŸ§ͺ Sample Results Detection Type Example Output Object βœ… Person, Car, Laptop Eye πŸ‘οΈ Both eyes detected Smile πŸ˜„ Smile recognized πŸ’‘ Future Improvements

πŸ”Š Add voice feedback for detection results.

🌈 Integrate with a dashboard (Flask/Streamlit).

πŸ§β€β™€οΈ Add full facial emotion recognition (7+ categories).

☁️ Deploy as a web app using FastAPI or Streamlit Cloud.

πŸ“œ License

This project is licensed under the MIT License β€” you are free to use, modify, and distribute it with attribution.

πŸ™Œ Author

Your Name :Ayush Patel

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages