Code Monkey home page Code Monkey logo

hand-controller's Introduction

Hand-Controller

About

Hand-Controller is a gesture-based recognition system to control your computer. It can be used to move the pointer, click and scroll. Also included is a virtual gesture-controlled keyboard.

Features

Gesture Recognition:

Move cursor Move cursor. Used when only the index finger is pointing up. This gesture moves the cursor to the desired location. Speed of the cursor movement is proportional to the speed of hand.
Left Click Left Click. Used when only the index and middle finger is pointing up and close together. The distance between the tip of the index and middle finger is calculated. If the distance is below the threshold, a single left click is performed.
Scroll Up/Down Scroll Up/Down. Used when only the index, middle and ring finger is pointing up. Scroll direction and speed is controlled by the location of tip of the index finger.
Bringup Keyboard Bringup Keyboard. Used when only the index, middle, ring and pinky finger. Brings up the virtual gesture-controlled keyboard for typing.

Virtual Keyboard:

Hover over the key with your index finger that you wish to press. After that, perform the Left Click gesture as described before to press the key. To go back to "Mouse" mode, simply hover over the "Mouse" key on the virtual keyboard and perform a Left Click gesture.

Getting Started

Pre-requisites

  • Python: 3.8.5
  • Environment: Anaconda. Download link here
  • Hardware: A computer with webcam

1. Requirements.

Install the necessary required packages through the provided requirements.txt file using Anaconda prompt.

pip install -r requirements.txt

2. Installation.

  • Clone this repo:
git clone https://github.com/leonardlohky/Hand-Controller

Usage

To run the application, you can use an IDE (e.g. Spyder) or navigate to the location of main.py script type in the following in an Anaconda prompt.

python main.py

License

Distributed under the MIT License

Acknowledgement

This package was developed based on the original codes by Murtaza's Workshop, which include:

hand-controller's People

Contributors

leonardlohky avatar

Stargazers

 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.