Code Monkey home page Code Monkey logo

virtual_mouse's Introduction

Virtual mouse

AI powered mouse which moves along with the movement of index finger and also clicks when index and middle fingers are brought together.

Here are the libraries or modules used:

  • OpenCV: an open-source library for computer vision
  • MediaPipe: an open-source framework for building multimedia processing pipelines
  • AutoPy: a Python library for automating mouse and keyboard actions

Here are the steps involved in creating the virtual mouse using OpenCV, NumPy, MediaPipe, and autopy:

  • Find the hand landmarks.
  • Get the tip of the index and middle fingers.
  • Check which fingers are up.
  • Check if it is in moving mode (only index finger up).
  • Convert the hand coordinates to screen coordinates.
  • Smoothen the hand movements.
  • Move the mouse.
  • Check if it is in clicking mode (both index and middle fingers up).
  • Find the distance between the index and middle fingers.
  • Click the mouse if the distance is short.
  • Calculate the frame rate.
  • Display the hand landmarks and bounding box.

virtual_mouse's People

Contributors

himanshu-911 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.