Coder Social home page Coder Social logo

gesture_demo's Introduction

Guidance of using the hand gesture demo

Dendencies and Environment

  • Python 3.7
  • OpenCV 4.1.0
  • tensorflow 1.14.0

Model Path

the inference code has implemented two cascaded ML models. First, the MTCNN network and then a simple CNN network.

The network structure of MTCNN is defined in the Train_Model folder, while the CNN network structure is coded in the inference file.

MTCNN model weights are stored in the MTCNN_Model folder, P-Net, R-Net, O-Net separately. CNN model weights are stored in the CNN_Model folder, please refer to the checkpoint file in it.

If you want to change the path, just change the value of

model_path = ['MTCNN_Model/PNet/PNet-30', 'MTCNN_Model/RNet/RNet-22', 'MTCNN_Model/ONet/ONet-22']
model = load_classification('CNN_Model/kcnn')

inside the inference code.

Run camera inference

just run camera.py for hand detection (MTCNN only) or camera_c.py for hand gesture classification (both MTCNN and CNN).

hand gesture classes are defined below:

class_names = ['0SingleOne', '1SingleTwo', '2SingleFour', '3SingleSix',
               '4SingleEight', '5SingleNine', '6SingleBad', '7SingleGood']

The classification is not of good performance in this beta version.

gesture_demo's People

Contributors

wonnor-pro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.