Computer Vision & Assistive Technology ~3 min read

Eye-Controlled Mouse

Overview & Purpose

The Eye-Controlled Mouse is an assistive technology prototype that allows users to control the computer cursor using eye movements instead of traditional input devices like a mouse or trackpad. The system uses a webcam, OpenCV, and Tkinter to detect the userÆs eyes, track gaze direction, and simulate mouse movements and clicks.

Problem & Motivation

Developed as an assistive technology prototype to explore touchless computer navigation for users with motor impairments, using real-time webcam gaze detection.

Architecture & Implementation

  • Video Stream Capture: Uses OpenCV to capture webcam video frames with efficient image processing.
  • Ocular Feature Localization: Applies facial landmark detection, isolates ocular regions, and extracts pupil centroid coordinates using grayscale thresholding and contour analysis.
  • Screen Coordinate Mapping: Translates normalized pupil displacement vectors into OS-level cursor movements.

Key Technical Decisions

  • Local On-Device Execution: All image processing runs strictly on the local machine with OpenCV, ensuring data privacy and zero network latency.
  • Dwell & Blink Detection: Implemented duration thresholds to differentiate intentional clicks from natural involuntary blinks.

Engineering Challenges & Lessons

  • Adaptive Thresholding for Lighting: Ambient lighting changes caused gaze detection drift; addressed by incorporating adaptive thresholding.

Technologies & Specifications

Python OpenCV
Deployment Standalone Local Implementation / Open Source
Showcase Tier Portfolio Implementation