Giter VIP home page Giter VIP logo

nadir199 / pygesture-side-project-pytorch-scholarship-challenge Goto Github PK

View Code? Open in Web Editor NEW
9.0 0.0 3.0 9.26 MB

This is a python app associated with a flask web app for associating gestures to certain actions on your PC

Python 0.69% CSS 0.05% JavaScript 27.49% HTML 0.43% Jupyter Notebook 71.34%
python pytorch neural-networks neural-networks-and-deep-learning gesture-recognition assistant

pygesture-side-project-pytorch-scholarship-challenge's Introduction

PyGesture-Side-project-Pytorch-Scholarship-Challenge

This is a python app associated with a flask web app for associating gestures to certain actions on your PC

How to use it ?

What to install ?

You need to have :

  • Python 3.6 or Higher installed
  • torch installed.

Python libraries

pip install flask
pip install keyboard
pip install opencv-python

How to run the program

  • Go to the environment where you installed all the dependencies (Maybe Anaconda prompt)

  • Go to the command line and run the command according to your OS :

    • Linux or Mac run : export FLASK_APP=index.py
    • Windows : set FLASK_APP=index.py
  • Run this command in the command line : flask run

  • You will get a link in the command line, generally http://127.0.0.1:5000 , Open it in your browser.

  • Here, in this web app you can set the actions you want for each of the listed signs.

  • There are 2 available gestures :

    • Fist
    • High five
  • There are 3 available types of actions :

    • Opening a website
    • Pressing a key
    • Typing a phrase
  • Choose the actions according to what you want ! Make sure to type URLs correctly.

    • If you choose Pressing a key, i recommend testing with "space" on a video ;) (Pause/Unpause with a gesture)
  • Click on Save Settings

  • Close the web app

  • The following program will need to access your webcam, you can go over the code and see that there is no harm on activating your webcam :p.

  • In order for the program to be able to access your webcam, you need to authorize it or suspend your antivirus T_T.

  • Go to the command line and run :python program.py

  • The program is now running ! Try one of the gestures facing the camera to trigger the actions ! :)

  • Have fun !

  • When you're done just press Ctrl + C in the command line to stop the program !

  • Don't forget to turn your antivirus back on :)

How do I trigger actions ?

  • Just make one of the gestures in front of the camera once the program runs :)
  • Try not to be in a dark room.
  • Don't stay too far from the camera, stay at a natural position.

pygesture-side-project-pytorch-scholarship-challenge's People

Contributors

nadir199 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.