Code Monkey home page Code Monkey logo

airmouse's Introduction

Air-mouse--gesture-control

Control your mouse pointer with natural hand gestures trained on Single Shot Detector built on MobileNet.

Outcome:

  • Keep pinched for moving the mouse around
  • Lift index finger for single click
  • Lift index and middle finger together for double click

Loss over the Training period

Installation:

git clone https://github.com/wolf-hash/Air-mouse--gesture-control.git
cd Air-mouse--gesture-control

Install Preliminaries

Object Detection API (Required):

    mkdir API
    cd API
    git clone https://github.com/tensorflow/models.git
    cd models/research
    protoc object_detection/protos/*.proto --python_out=.
    cp object_detection/packages/tf2/setup.py .
    python -m pip install --use-feature=2020-resolver .

Install model of choice from Tensorflow Zoo (Only for training):

 Go to https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2_detection_zoo.md
 Download model of choice
 Single Shot Detector of MobileNet(320x320) is given in the pre-trained directory, however one can experiment on different models.
 Extract it to Air-mouse--gesture-control/pre-trained

Install LabelImg for labelling custom dataset (Only for training):

Link - https://github.com/tzutalin/labelImg

   git clone https://github.com/tzutalin/labelImg

For Linux:

    sudo apt-get install pyqt5-dev-tools
    sudo pip3 install -r requirements/requirements-linux-python3.txt
    make qt5py3
    python3 labelImg.py

Run from pretrained model:

    conda create -n airmouse pip python=3.7.6
    conda activate airmouse
    pip install -r requirements.txt
    
    python main.py

airmouse's People

Contributors

thegeekywanderer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

harshajv7981

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.