In order to use this code you just have to run the hand_track.py file, after that keep your hand in position in front of camera it will capture the frame after that highlight your left hand fist by using cursor and press enter after highlighting the part same for the right hand
now simply place your hand in front of camera now remember your left hand if forward and backward or you can say its for accelerate and brake and right hand is for steering (left and right) .
Credit:- Yash Kumar
IMPORTED LIBRARIES
- import numpy as np
import cv2
import time
import math
import imutils
from imutils.video import FileVideoStream, VideoStream
import keyboard
from pynput.keyboard import Key, Controller
import numpy as np
One Comment on “GESTURE CONTROLLED GAMING”