Skip to content

Thejas1906/Gesture_Reco

Repository files navigation

Guesture_Reco

Game developed by gesture recoginiton using computer vision.

This Python program allows you to control the Hill Climb Racing and Dino Game using gesture recognition. It utilizes the OpenCV and Mediapipe libraries to capture and interpret hand gestures, enabling an interactive and hands-free gaming experience.

Prerequisites:

Before running the program, ensure you have the following dependencies installed:

1.) Python 3.x 2.) OpenCV 3.) Mediapipe

You can install the required libraries using the following command:

--> pip install opencv-python mediapipe

Navigate to the project directory:

--> cd gesture-control-gaming

Run the program:

--> main.py

1.) Follow the on-screen instructions to set up the hand gesture recognition. Adjust the camera angle and position for optimal performance.

2.) Launch the Hill Climb Racing or Dino Game.

3.) Use specific hand gestures to control the game. Refer to the gesture guide below.


Hill Climb Racing Controls:

NOTE: Choose the hand you want to use depending upon comfort and controls.

Accelerate: Open your hand fully.(Left Hand)
Brake/Reverse: Close your hand into a fist.(Left hand)

Accelerate: Close Thumb and keep other 4 fingers open.(Right Hand)
Brake/Reverse: Close all the 4 fingers and keep thumb open.(Right Hand)


Dino Game Controls:

Jump: Raise your hand up.
Duck: Lower your hand down.

Customization:

Feel free to customize the gestures and controls according to your preference by modifying the main.py file. Adjust the gesture recognition parameters, mapping of gestures to game controls, and other settings as needed.

Troubleshooting:

If you encounter issues with hand gesture recognition or game control, consider adjusting the camera settings, gesture recognition thresholds, or experimenting with different gestures.

Credits:

This program was developed using Python, OpenCV, and Mediapipe. Special thanks to the contributors of these open-source libraries.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors