Skip to content

Mordekai66/AI-virtual-mouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI virtual mouse 🖐️➡️🖱️

Control your computer mouse with your hand gestures using OpenCV, MediaPipe, and Python.
This project turns your webcam into a smart controller where you can move the cursor, left-click, and right-click — all without touching a mouse.


Features

  • 🎯 Hand Tracking in real-time using MediaPipe.
  • 🖱️ Mouse Control: Move cursor smoothly across the screen.
  • 👆 Left Click: Triggered when thumb and index finger touch.
  • 🤟 Right Click: Triggered when thumb and middle finger touch.
  • Smooth Cursor Movement with configurable sensitivity.

How It Works

  • Index + Thumb → Left Click.
  • Middle + Thumb → Right Click.
  • Palm movement → Cursor movement.
  • Uses linear interpolation to smooth the cursor motion.

Installation

Clone the repo

Install the required dependencies:

pip install -r requirements.txt

Run the app

python main.py

About

A real-time hand tracking project using OpenCV and MediaPipe that allows you to control your computer mouse with gestures. Supports smooth cursor movement, left click, and right click using hand gestures.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages