This repository showcases a collection of mini-projects using Python, OpenCV, MediaPipe, and Pygame. These are built to explore the intersection of computer vision and interactive game design.
File: Color-Detection/color-detection.py
Detects and highlights specific colors from the webcam feed using OpenCV.
Features:
- Real-time video capture
- HSV color space filtering
- Mask creation and visualization
File: Hand-Detection/hand-detection.py
Uses MediaPipe for real-time hand tracking with OpenCV.
Features:
- Tracks hand landmarks (like fingertips)
- Visual annotation on live camera feed
- Could be extended for gesture control
File: Snake-Game/snake-game.py
A classic Snake game built with Pygame.
Features:
- Score tracking
- Dynamic food generation
- Game over logic
File: Subway-Surfers-Game/subway-surfers.py
A basic prototype inspired by Subway Surfers.
Features:
- Character movement
- Obstacle dodging mechanics
- Endless runner logic
File: Concentration-Tracker/concen_tracker.py
Estimates user concentration in real-time using facial landmarks with MediaPipe Face Mesh and OpenCV.
Features:
- Eye blink detection using Eye Aspect Ratio (EAR)
- Gaze and head pose estimation
- Smooth concentration scoring (0–100%)
- Distraction tracking with alerts
- Clean visual overlays and FPS display
# Clone the repository
git clone https://github.com/jayesh3103/Computer-Vision-Mini-Projects.git
cd Computer-vision-mini-projects