Giter VIP home page Giter VIP logo

hand-controlled-ai-virtual-mouse's Introduction

Hand-Controlled-AI-Virtual-Mouse ๐Ÿ–ฑ๏ธ๐Ÿ‘†

Version : 1.0.0.1

The mouse is the one of the wonderfull inventions of the Human Computer Interaction(HCI) Technology.

Currently we are using wired or may be wireless mouses,In real time cases some computers may not support for a physical mouse or may some users may cannot use physical mouse, so this Hand controlled AI Virtual Mouse can be used to overcome this problem. Making a user to control the mouse by reducing the computer human interaction.

FUNCTIONALITIES:

-> This was built using the openCV-python and mediapipe for Detecting and processing the image and mediapipe an open source cross-platform developed by google for media processing and ready-to-use ML solutions for computer vision tasks.

-> Our Hand Controlled Virtual mouse can able to move the mouse anywhere on the screen and can able to perform the click operation.

-> Our Index finger can be used to move the mouse over the screen.

-> When Our Index finger and Thumb come close to each other or touch each other then it performs the click operation.

-> And the PyautoGUI for programmatically control the mouse and keyboard.

Now coming to the code part

The Libraries that need to be installed are written in the requirements.txt file
opencv-python - 4.6.0.66
numpy - 1.23.1
matplotlib - 3.5.2
mediapipe - 0.8.10.1
pyautogui - 0.9.53
pillow - 9.2.0

Install the following necessary pip

pip install opencv-python
pip install numpy
pip install matplotlib
pip install mediapipe
pip install PyautoGUI
pip install PIL

The actual working of the mouse is based on the Hand Landmarks which can be viewed and controlled by opencv and mediapipe.

Our hand contains a total of 21 landmarks.

hand_landmarks

Checkout the Demo Below : ๐Ÿ‘‡

At First The mouse pointer movement is very bad and horrible to see so, I have added a **smoothening** factor that makes the mouse pointer move like a feather.

smoothening = 9
clocx = plocx + (index_x - plocx) /smoothening
clocy = plocy + (index_y - plocy) /smoothening
# you can multiply or divide with the smotthening

If any necessary commits are required to increase the elegance of this repo! i'm always open for a PR.

With this signing off..!!,BHARATH GUNTREDDI ..๐Ÿคž

output.mp4

hand-controlled-ai-virtual-mouse's People

Contributors

bharathguntreddi3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hand-controlled-ai-virtual-mouse's Issues

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.