Skip to content

saichandra1199/CNN-gesture-detection

Repository files navigation

Hand-Gestures-Recognition

Hand Gestures Recognition using OpenCV, Keras, Convolutional Neural Networks

Required Libraries:

- python 3.6.7
- openCV (pip install opencv-python)
- matplotlib
- keras
- sklearn

Repo Content:

  • cam_run.py : Contains the main method which would start the Video Capture, segment the hand region, pass on the thresholded image to the CNN model, and predict the hand gesture from LIVE camera feed.

  • train_gestures.ipynb : The Jupyter notebook which contains the data loading, creation and training of the 2D Convolutional Neural Network.

  • my_dataset : The Dataset consists of 6 types of gestures. Mainly,

    • BLANK
    • OK
    • THUMBSUP
    • THUMBSDOWN
    • PUNCH
    • HIGH-FIVE

USAGE

Details can also be found here: https://www.kaggle.com/sarjit07/hand-gestures-recognition-with-opencv-and-cnn

  1. Download repo
  2. Install required dependencies (Libraries)
  3. Go to repo directory and run following command on terminal $ python cam.py

STEPS

  1. Train the model in kaggle
  2. Download the .h5 file after training is done
  3. Include the path of the .h5 file in the testing script
  4. Download necessary libraries
  5. Run the model locally by typing the command $python file_name.py

tf.js

We have also included the tf.js file for the same, if we can convert our testing script in javascrit(which is in python now) we wil be able to run the same in the browser.

DEMO

For short demo of our model refer "gesture model demo (1).mp4". or gesture model demo.webm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published