A small game that uses gestures to move and scale a piece of an image to fit on a hole. It uses mediapipe hands to detect your hands and SDL3 to display the images and piece you need to move.
make sure to create a Python virtual environment following requirements.txt
if you don't have it installed first:
pip install virtualenvthen create the virtual environment on the repository directory
cd hand-gesture-game
python -m venv .venvthen enter the virtual environment:
Linux:
source .venv/bin/activateWindows:
.venv/Scripts/activate
then install the requirements on the environment
python -m pip install --upgrade pip
python -m pip install -r requirements.txtthen execute the python script with:
python main.pyor
python3 main.py-
you can grab doing a pinch gesture with one hand and move your hand to displace the grabbed piece
-
You can do a pinch gesture with two hands and move them closer or apart to scale the piece