Skip to content

A Game Controller that works hand gestures made by using Python libraries.

Notifications You must be signed in to change notification settings

Gokul9404/Virtual-Game-Controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VR Game-Controller

This project implements a hand-gesture recognition system using OpenCV and Mediapipe library of Python, for controlling the keyboard and mouse input events pynput is used.

A user can stimulate left, right, up, down and jump function in any game that have arrows for control.


Project library dependencies -

  • openCV -(For image processing and drawing)
  • mediapipe -(For Hand Tracking)
  • numpy -(For Mouse Movement and positon)
  • pynput -(For keys input controlling the mouse movement and click)

Working Demo

Palm
Here, the game played is Space-Invaders using only the VR Controller.


Installation

To setup the system for development on your local machine, please follow the instructions below:

  1. Clone the repository to your machine

    git clone https://github.com/Gokul9404/Virtual-Game-Controller.git
  2. To install all the required dependencies/libraries use command below in the folder where the requirement.txt and other files are saved.

    pip install -r requirement.txt
  3. Change directory to the GitHub Repo till src folder. Command may look like: cd C:\Users\.....\Gesture-Controlled-Virtual-Mouse

  4. Run the main.py python file.

About

A Game Controller that works hand gestures made by using Python libraries.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages