Skip to content

Control computer car games with your palm with HOG and SVM

Notifications You must be signed in to change notification settings

ngokulakannan/autogame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autogame

Control computer car games with your palm

Palm images are used to extract the HOG features. Then SVM is used to train those features. If palm is found in the boxes,appropriate command was sent to game using pyautogui.

Use the config.json file in detector/configuration to configure input/output paths and SVM, HOG parameters.

Run detector/train.py to train the model. Run control_game.py to start the application. In the mean time open the game you want and configure the following in the game,

  • up arrow button - accelarate
  • down arrow button - stop/reverse
  • left arrow button - move left
  • right arrow button -move right

Note:

  1. if you want to train your own dataset, use annotaion XML files in PASCAL VOC format, so that dataset/annotations.py can extract informations from it.
  2. if you want to get samples images from use dataset/get_images_from_video.py to get frames from video

Lessons learnt,

  1. For SVM we dont need huge data like deep learning. As the data increases, model size will increase.
  2. Some times we can go for fixed windows instead of sliding windows, if usecase permits.
  3. Multiprocessing beacomes saviour at times (as multithreading is not our piece of cake- GIL)
  4. Change my old laptop!

Demo video

autogame demo

About

Control computer car games with your palm with HOG and SVM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages