Skip to content

ehsanrs2/Virtual-joystick-with-computer-vision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Virtual joystick with computer vision (OpenCV)

Overview

This open-source project uses computer vision to simulate a joystick by tracking hand and finger movements, allowing users to play racing games.

ezgif-4-4e00d29e37

Getting Started

  1. Clone the project:
git clone https://github.com/ehsanrs2/Virtual-joystick-with-computer-vision.git
  1. Install the required Python libraries:
pip install -r requirements.txt
  1. Navigate to the Virtual_joystick_with_computer_vision directory and run the following command:
python Hand_Tracking.py

xbox_360_controller

Controls

  • Right thumb: Acts as the 9 key, with a range of 0 to 255 (by opening and closing).
  • Left thumb: Acts as the 6 key.
  • Rotating hands: Moves axis 1 (key number 3 in the image) left and right, with a range of -32767 to 32767.

The variable threshold = 50 in line 94 of Hand_Tracking.py limits the rotation to ±50 degrees for the maximum point (±32767). You can adjust this value if desired.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages