AkashChitti/memesight
Acerca de
A real-time computer vision system built with Python, MediaPipe, and OpenCV that tracks facial expressions and hand gestures to trigger instant meme reactions.
IA y aprendizaje automáticoCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 0
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalMemeSight AI — Real-Time Gesture-Controlled Meme Engine
MemeSight AI is an interactive computer-vision application that tracks facial expressions and hand gestures in real time using your webcam, instantly triggering contextual memes (GIFs, videos, or images) based on your live reactions.
Powered by MediaPipe, OpenCV, and Python, MemeSight AI brings computer vision and real-time interaction together into a seamless split-screen experience.
Key Features
Face Gesture Tracking
Tracks up to 468 facial mesh landmarks to trigger instant media responses:
| Gesture | Movement / Trigger Description | Triggered Meme |
|---|---|---|
| Mouth Open + Head Shake | Open mouth while shaking the head side to side (MediaPipe cannot see the tongue itself) | freaky-orca.gif |
| Head Nod | Rapid vertical head movement | ishowspeed.gif |
| Idle Stare | Neutral face looking directly at camera | monkeytruth.jpg |
Hand Gesture Recognition
Tracks 21 key points per hand to recognize multi-hand dynamics:
| Gesture | Movement / Trigger Description | Triggered Meme |
|---|---|---|
| Palms Rubbing | Rapid horizontal oscillation with close proximity | freaky-sonic.mp4 |
| Hands on Head | Dual hand placement near top of head ("Oh no" reaction) | ishowspeed-wow.gif |
| Index Up | Raised index finger gesture | monkeyrealize.jpeg |
| Hand on Chin | Hand proximity to chin / thinking stance | monkeythink.jpg |
| Thumbs Up | Positive thumb elevation gesture | thumbsupmonkey.png |
System Architecture & How It Works
+-----------------------------------+-----------------------------------+
| Webcam Feed | Dynamic Meme / Reaction |
| (MediaPipe Mesh Overlay) | (GIF / Video / Image) |
+-----------------------------------+-----------------------------------+
- MediaPipe FaceMesh: Evaluates 468 3D facial landmarks for mouth open ratio, eye direction, and head pose angles.
- MediaPipe Hands: Tracks 21 3D hand landmarks per hand to compute spatial proximity, finger extension, and rapid hand convergence.
- OpenCV Rendering: Captures webcam frames, processes dual inputs, and renders split-screen synchronized video playback.
- Custom Gesture Priority Engine: Built-in cooldown, gesture persistence verification, and priority queuing prevent erratic meme switching.
📂 Project Structure
memesight/
├── memesight.py # Main application loop & gesture engine
├── requirements.txt # Pinned dependencies
├── test_gestures.py # Headless checks for gestures, debounce & playback
├── README.md # Project documentation
└── memes/ # Reaction media directory
├── freaky-orca.gif
├── freaky-sonic.mp4
├── ishowspeed.gif
├── ishowSpeed-wow.gif
├── monkeyrealize.jpeg
├── monkeythink.jpg
├── monkeytruth.jpg
└── thumbsupmonkey.png
Quick Start
1️⃣ Clone the Repository
git clone https://github.com/AkashChitti/memesight.git
cd memesight
2️⃣ Install Dependencies
pip install -r requirements.txt
Note: MemeSight uses MediaPipe's legacy
mp.solutionsAPI, which was removed inmediapipe0.10.30.requirements.txtpins the last release that still ships it.
(If on older OpenCV versions, install pip install opencv-contrib-python)
3️⃣ Run MemeSight AI
python memesight.py
Note: Ensure your webcam is enabled. Perform gestures in clear lighting for optimal tracking!
Tests
python test_gestures.py
Exercises every gesture detector, the debounce gate, the playback panel and a fake-camera loop — no webcam or display required.
Customization
MemeSight AI is built modularly, making it easy to extend:
- Add Gestures: Define new landmark logic in
memesight.py. - Custom Meme Packs: Drop your own
.gif,.mp4, or.jpgfiles into/memes/and update filepath mapping. - Sensitivity Tweaks: Adjust cooldown thresholds and landmark distance tolerances in the configuration section.
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests for:
- Additional face/hand gestures
- Audio feedback / sound effects
- Custom GUI interface
- Multi-person tracking support
Explorar proyectos relacionados
Cargando…