ML Nexus is an open-source collection of machine learning projects, covering topics like neural networks, computer vision, and NLP. Whether you're a beginner or expert, contribute, collaborate, and grow together in the world of AI. Join us to shape the future of machine learning!
We propose implementing mouse control and click functionality using eye tracking with OpenCV. This feature will enable users to control the mouse cursor and trigger clicks using their eye movements, offering hands-free interaction with the system. It will benefit users with limited mobility and enhance accessibility by providing an alternative input method.
Objectives:
Track the user's eye movements using OpenCV and map them to control the mouse cursor on the screen.
Implement click actions (left-click, right-click, double-click) using blink detection or prolonged gaze on a target.
Provide smooth and responsive cursor movement based on real-time eye tracking data.
Proposed Solution:
Eye Tracking with OpenCV:
Utilize OpenCV
Use facial landmarks to accurately track eye positions and map the movement of the eyes to the screen coordinates.
Calculate the direction and movement of the cursor based on changes in the eye's pupil position relative to the screen.
Mapping Eye Movements to Cursor Movement:
Define regions on the screen (left, right, up, down) based on eye movement.
Use a threshold for detecting small vs. large eye movements to control cursor speed (small movement for fine control, large movement for faster cursor movement).
Implement smoothing algorithms to reduce jitter and provide a natural cursor movement experience.
Click Action with Blink Detection:
Detect blinks or long gazes using OpenCV’s eye aspect ratio (EAR) or other blink detection methods.
Left-Click: Detect a quick blink or a gaze held on an element for a short duration.
Right-Click: Detect a double blink or longer-held gaze.
Thanks for creating the issue in ML-Nexus!🎉
Before you start working on your PR, please make sure to:
⭐ Star the repository if you haven't already.
Pull the latest changes to avoid any merge conflicts.
Attach before & after screenshots in your PR for clarity.
Include the issue number in your PR description for better tracking.
Don't forget to follow @UppuluriKalyani – Project Admin – for more updates!
Tag @Neilblaze,@SaiNivedh26 for assigning the issue to you.
Happy open-source contributing!☺️
We propose implementing mouse control and click functionality using eye tracking with OpenCV. This feature will enable users to control the mouse cursor and trigger clicks using their eye movements, offering hands-free interaction with the system. It will benefit users with limited mobility and enhance accessibility by providing an alternative input method.
Objectives:
Proposed Solution:
Eye Tracking with OpenCV:
Mapping Eye Movements to Cursor Movement:
Click Action with Blink Detection: