a lil side project i made to mess around with computer vision. basically your webcam watches your face + hands and swaps in a monkey reaction meme depending on what you're doing lol
it tracks your body in real time and picks one of 8 monkey images based on your pose/expression
| what you do | what appears |
|---|---|
| just sitting there | π base monkey |
| right finger on lips | π€ thinking monkey |
| smile + hands pressed together | π evil plan monkey |
| one finger pointed up | βοΈ idea monkey |
| hand on chin / pretending to read | π€ nerd monkey |
| finger on the side of your lips | π wink monkey |
| both hands on chest | π± scared monkey |
- MediaPipe Holistic β does all the heavy lifting (21-point hand tracking, 468-point face mesh, full body pose)
- OpenCV β grabs the webcam feed and handles frame processing
- Pillow β renders the meme images and draws captions on them
- NumPy β math for landmark distances and gesture logic
- Tkinter β the display window
git clone https://github.com/M0izz/Moneky_Mirror.git
cd Moneky_Mirror
python -m venv .venv
.venv\Scripts\activate # windows
# source .venv/bin/activate # mac/linux
pip install -r requirements.txt
python main.pypress q to quit
uses MediaPipe's holistic model which gives you 3 sets of landmarks at once:
- face mesh (468 pts) β exact lip/chin/smile positions
- hand tracking (21 pts per hand) β individual fingertip positions
- body pose (33 pts) β shoulder/elbow/wrist positions
smile detection specifically works by measuring mouth width vs height β if the ratio is above a threshold, you're smiling
made this mostly to learn how mediapipe works. turned out to be pretty fun