Code Monkey home page Code Monkey logo

mouse-using-your-eyes's Introduction

Controlling a Mouse With Your Eyes

In this project, We can control our mouse cursor with our eyeballs. this code will see the detect of our eyeball and move the cursor of our mouse in the same direction and when we play with our eyes closed it will click there

To run this code, we have to keep some things in mind, first of all our Python Package Installer (pip) should be updated then we have to install some Python Modules.

We will need some libraries:

  • opencv-contrib-python
  • mediapipe
  • PyAutoGUI

1. Opencv-contrib-python:

OpenCV library in python is a computer vision library that is widely used for image analysis, image processing, detection, recognition, etc.

opencv contrib is a specialized module present in the Python programming language, which is exclusively needed for the system to run SURF feature descriptions alongside the OpenCV module present in the open-source library. It must be noted that deserve algorithm is subjected to be encryption with copy rights, and hence it should only be used for learning and development processes or personal use and should not be used for any production purposes unless the copyright status of the module is completely understood and addressed by the user. OpenCV provides for pre-compiled Java jars and all files on their website.

To install with pip, run pip install opencv-contrib-python

2. Mediapipe:

Mediapipe is a cross-platform library developed by Google that provides amazing ready-to-use ML solutions for computer vision tasks.

The MediaPipe Python framework grants direct access to the core components of the MediaPipe C++ framework such as Timestamp, Packet, and CalculatorGraph, whereas the ready-to-use Python solutions hide the technical details of the framework and simply return the readable model inference results back to the callers.

To install with pip, run pip install mediapipe

3. PyAutoGUI:

PyAutoGUI is a Python automation library used to click, drag, scroll, move, etc. It can be used to click at an exact position.

PyAutoGUI lets your Python scripts control the mouse and keyboard to automate interactions with other applications. The API is designed to be simple. PyAutoGUI works on Windows, macOS, and Linux, and runs on Python 2 and 3.

To install with pip, run pip install PyAutoGUI

mouse-using-your-eyes's People

Contributors

deepsource-autofix[bot] avatar deepsourcebot avatar sagargoswami2001 avatar

Stargazers

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