Skip to content

Developed an AI-based system to control the mouse cursor using Python and OpenCV with the real-time camera.

License

Notifications You must be signed in to change notification settings

Ruban-Edward/AI-Virtual-Mouse

Repository files navigation

AI-Virtual-Mouse

Developed an AI-based approach for controlling the mouse movement using Python and openCV with real-time camera that detects hand landmarks, tracks gesture patterns instead of a physical mouse.

Dependencies -

Please install all the required dependencies.

  • openCV
  • mediapipe
  • autopy
  • numpy

Installation

Install Python

Install Python In your working System

Version Python 3.8.0
https://www.python.org/downloads/release/python-380

Python Libraries

Open you COMMAND PROMPT in Administrator and Execute below commands

1. IMPORT CV2

pip install opencv-python

For image processing and drawing OpenCV is a Python library that allows you to perform image processing and computer vision tasks.

2. IMPORT NUMPY

pip install numpy

Numpy is an Array used to perform a wide variety of mathematical operations on arrays. NumPy arrays are faster and more compact than Python lists

3. IMPORT AUTOPY

pip install autopy

For controlling the mouse movement and click AutoPy is a simple, cross-platform GUI automation toolkit for Python. It includes functions for controlling the keyboard and mouse

4. IMPORT MEDIAPIPE

pip install mediapipe

For Hand Tracking Mediapipe is a cross-platform library developed by Google that provides amazing ready-to-use ML solutions for computer vision tasks. OpenCV library in python is a computer vision library that is widely used for image analysis, image processing, detection, recognition

Executing the Program

Run the AiVirtualMouseProject.py python file.

Author

-@ruban-edward

License

MIT license

About

Developed an AI-based system to control the mouse cursor using Python and OpenCV with the real-time camera.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages