Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hand-gesture-game

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.

How to run

make sure to create a Python virtual environment following requirements.txt

if you don't have it installed first:

    pip install virtualenv

then create the virtual environment on the repository directory

    cd hand-gesture-game
    python -m venv .venv

then enter the virtual environment:

Linux:

    source .venv/bin/activate

Windows:

    .venv/Scripts/activate

then install the requirements on the environment

    python -m pip install --upgrade pip
    python -m  pip install -r requirements.txt

then execute the python script with:

    python main.py

or

    python3 main.py

How to use

  • 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

About

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.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages