Git Product home page Git Product logo

eye-control-mouse's Introduction

Eye Control Mouse

This Python script utilizes computer vision to create an eye-tracking mouse control system. The script uses the MediaPipe library for face mesh detection and PyAutoGUI for mouse control.

Setup

Prerequisites

  • Python 3.x
  • OpenCV
  • MediaPipe
  • PyAutoGUI

Installation

  1. Install the required dependencies:

    pip install opencv-python mediapipe pyautogui
  2. Clone the repository:

    git clone https://github.com/rajiv2004-cloud/Eye-Control-Mouse.git
    cd eye-control-mouse

Usage

  1. Run the script:

    python eye_control_mouse.py
  2. Adjust the camera to have a clear view of your face.

  3. Move your eyes to control the mouse cursor.

  4. Blink both eyes simultaneously to perform a click.

Features

  • Real-time eye tracking for mouse control.
  • Blink detection for mouse clicks.
  • Dynamic adjustment of mouse sensitivity based on eye movement.
  • On-screen visualization of eye and click points.

Customization

  • Modify the screen_x and screen_y variables to adjust the initial mouse cursor position.
  • Adjust the sensitivity factor in the mouse movement calculations for personalized control.

Known Issues

  • The script may require fine-tuning for different lighting conditions.
  • Blink detection sensitivity may need adjustment based on individual user behavior.

Contributing

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and submit a pull request.

Acknowledgments

  • The script uses the MediaPipe library for face mesh detection.
  • PyAutoGUI is used for mouse control.

Feel free to customize the README file further based on your project's specific details and requirements.

eye-control-mouse's People

Contributors

rajiv2004-cloud 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.