Skip to content

The "Gesture-based AI Mouse" project enables users to control mouse functions—such as movement, clicks, and scrolling—using hand gestures detected via webcam, leveraging computer vision and hand tracking technologies

Notifications You must be signed in to change notification settings

PhilemonTJ/Gesture-based-AI-Mouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

AI Gesture Mouse Control

Control your mouse cursor using hand gestures captured through your webcam. This project uses computer vision and hand tracking to convert hand movements and gestures into mouse actions.

Features

  • Mouse cursor control using index finger
  • Left click, right click, and double click gestures
  • Scroll up/down functionality
  • Mouse movement lock
  • Visual feedback with on-screen buttons
  • Smooth cursor movement

Requirements

  • Python 3.7 or higher
  • Webcam
  • Required packages (listed in requirements.txt)

Installation

  1. Clone the repository:
git clone https://github.com/PhilemonTJ/Gesture-based-AI-Mouse.git
cd Gesture-based-AI-Mouse
  1. Install required packages:
pip install -r requirements.txt

Usage

Run the main script:

python src/main.py

Gesture Controls

  • Move Mouse: Raise your index finger (other fingers closed)
  • Lock Movement: Raise index and middle finger (other fingers closed)
  • Left Click: Join index and middle fingers (other fingers closed)
  • Right Click: Join index and middle fingers + raise ring finger (other fingers closed)
  • Double Click: Join index and middle fingers + raise pinky (other fingers closed)
  • Scroll Up: Join index and middle fingers + raise pinky (thumb open)
  • Scroll Down: Join index and middle fingers (thumb open)

Project Structure

Gesture-based-AI-Mouse/
├── src/
│   ├── main.py              # Main application script
│   └── utils/
│       ├── hand_detector.py # Hand detection and tracking
│       └── button.py        # UI button implementation
├── requirements.txt         # Project dependencies
└── README.md               # Project documentation

License

This project is part of AICTE Internship.

Contributing

Feel free to open issues and pull requests for any improvements.

About

The "Gesture-based AI Mouse" project enables users to control mouse functions—such as movement, clicks, and scrolling—using hand gestures detected via webcam, leveraging computer vision and hand tracking technologies

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages