Skip to content

falakrana/virtualMouseDetectionUsingEyes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ–ฑ๏ธ Virtual Mouse using Eye Tracking

A Python-based virtual mouse system that allows users to control their cursor and perform click actions using eye movement and blinking, powered by OpenCV, MediaPipe, and PyAutoGUI.

๐Ÿš€ Features

  • Cursor movement using eye gaze (tracked via the right eye).
  • Left-click action triggered by blinking (detected via the left eye).
  • Basic calibration support (placeholder logic included).

๐Ÿง  How It Works

  • Uses MediaPipe's Face Mesh to detect facial landmarks.
  • Tracks the right eye (landmark 474โ€“478) for cursor control.
  • Monitors left eye (landmarks 145 and 159) to detect blinking.
  • If the eye remains closed beyond a threshold, a click is triggered.
  • Smoothing is applied to prevent cursor jitter.

๐Ÿงฐ Tech Stack

  • OpenCV โ€“ Real-time computer vision.
  • MediaPipe โ€“ Facial landmark detection.
  • PyAutoGUI โ€“ Cursor control and automation.

๐ŸŽฎ Controls

  • Move Cursor: Look around using your right eye.
  • Click: Blink your left eye (hold it shut briefly).
  • Calibrate: Press c (Currently in development).
  • Quit: Press q.

๐Ÿ“Œ Notes

  • Works best in well with one who is not using spectacles.
  • Ensure your webcam is unobstructed.
  • Try adjusting the blink threshold if false positives occur.

๐Ÿ‘จโ€๐Ÿ’ป Author

Falak Rana
LinkedIn โ€ข GitHub

About

Virtual mouse simulator works with your eye. Implemented using opencv, mediapipe and pyautogui.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published