Virtual Mouse With Hand Gestures Using AI
Virtual Mouse With Hand Gestures Using AI
Abstract This research presents a novel system to 3. Efficiency: Using a virtual mouse decreases the
control a mouse using hand gestures. Traditional
mouse controls require the user to use a physical amount of time needed to complete tasks by
device, such as a trackpad or a mouse. By using hand eliminating the need for physical movement across
gestures, the user can interact with the virtual mouse
in a more natural manner. The proposed system uses the desktop.
hand tracking techniques to capture and track hand
gestures, and uses a set of customizable rules to The development of virtual mouse AI technology
interpret them into actions. Without using a hardware
mouse, the computer can be operated remotely based
has had a significant impact on fields such as health
on hand gestures and can perform left-click and right- care, engineering, productivity, and education,
click operations. It is based on artificial intelligence for
among others. With continued advancements in AI
detecting the hands. So, the usage of this virtual mouse
will reduce the rapid spread of corona virus by technology, virtual mouse applications are expected
reducing the human-computer interaction. to become more prevalent and widely used in our
daily lives. The hand gestures are simple form of
Keywords— Finger tracking module, Artificial
communication. The moto is to perform various
intelligence hand gesture recognition, Virtual mouse.
operations that can be performed by a physical
mouse. Without using expensive sensors, web cam
is used to identify the gesture and perform the
I. INTRODUCTION
required operation. This enables the client to operate
Virtual mouse refers to a computer program that the system without involving the usage of any
enables users to control their computer cursor or physical device to perform mouse operations. The
other devices without physically touching them. It is first step is to identify the fingertip of hand a camera
particularly beneficial for people with motor and perform the mouse cursor operations. The
disabilities, physical injuries or disabilities, or structure of this research paper is as below. 2nd
anyone who finds it hard to use a traditional physical section describes the Methodology in detail. 3rd
mouse. The virtual mouse AI uses Media pipe, section describes purpose of the project. 4th section
OpenCV and autopy to track the movements of describes Related work on this theory. 5th Section
fingers and move the computer cursor accordingly. describes the proposed system. 6th shows the testing
The creation of virtual mouse technology has and evaluation of the project. 7th sections show the
brought numerous benefits to users, including: result. 8th, 9th, 10th describes the conclusion, future
scope and some of the References of the project.
1. Accessibility: Virtual mouse AI technology
makes computer devices more accessible to people II. METHODOLOGY
with disabilities or who have difficulty using a
This study has proposed a novel system to recognize
traditional mouse.
motions, identify fingers tips, and examine the
2. Improving working conditions: Virtual mouse AI mouse functions. For algorithm implementation,
technology can reduce the amount of repetitive Python programming is used. To process images,
motion injury in computer-intensive work operate the mouse, and create multimodal
environments.
applications, OpenCV, AutoPy and media pipe 40 px, the PC response with play out Using the
library are used. pynput Python library, click the right mouse button.
Assuming both the pointer having tip Id = 1 and the
A. System Design
centre tip is raised with Id = 2 raised and length is
The proposed Hand Tracking and Gesture structure below 40 px and both tips are climbed the screen, the
relies upon the housings gotten using the cam in the PC used for play out the look into mouse work with
PC or computer. Utilizing Python PC visibility Autopy. If none of the fingers are raised, the PC does
module OpenCV, the clips get thing is made and the not do anything.
cam will start recording getting clip. The cam gets
B. System Description in General
and goes through the housings to Hand Tracking and
Gesture. This flowchart shown in the picture of virtual mouse
using hand gestures explains the many
1.Taking the Video and Fining
circumstances and functions employed in the
Hand Tracking and Gesture framework utilizes the system. The video interface will start after the
cam in every bundling is gotten up to the completion camera has been detected. From a video interface,
of process. The clip outlines are taken care of the camera can extract and identify human hand
converting BGR into RGB covering gaps to see the motions. Media Pipe is utilized for hand tracking
fingers in the clips outline with outline by displayed functionality. Once the cursor has been identified,
in the going with program. travel in the appropriate direction to carry out tasks
like click twice, zoom in and out, and zoom in. A
2. Region for functioning through the Window well-functioning web camera is the first crucial
piece of hardware. to take control of the mouse's
The Hand Tracking and Gesture structure uses the
training tool and replace the mouse's operation with
astounding evaluation, and it changes over the.
the tool. In order to make functioning easier, the item
Unequivocally up to fingers are seen and till we see
can be employed as our mouse once it has been
what tip is ready for playing out the device work, a
captured in our frames utilizing OpenCV. The
box in rectangle is shown in regards with PC screen
Webcam's function is to record human hand gestures
in the cam locale how the moment all through the
and motions so that its image can be stored in
screen.
memory. The system's overall diagram is as follow
3. Detecting finger tips
In 2022 Nishi Jain, Sanjay Jadhav proposed a provided by Media Pipe Tasks. Import the audio,
research paper “AI Virtual mouse using OpenCV text, or visual library into your development project,
python” in JETIR conference 2022. Its main depending on the Media Pipe Task the app used. It
drawback is decrease in accuracy in right click and can be installed using “pip install media pipe”.
there are difficulties in clicking. [5]
AUTOPY:
In 2022 Hritik Joshi, Nithin waybhase, Ratnesh L,
A straightforward, cross-platform GUI automation
Dharmendra proposed a paper on “Design of virtual
library for Python is called AutoPy. It has tools for
mouse using gesture recognition and machine
managing the mouse and keyboard, detecting colors
learning” in Research square 2022. It main
and bitmaps on the screen, and showing alerts. It can
drawback is colour detection algorithm. It can only
be installed using "pip install autopy".
perform basic operations such as scrolling, selecting
and changing slides. [6] VI.TESTING AND EVALUATION
V. PROPOSED SYSTEM
EVALUATION GRAPH
Evaluation graph
100
100
99.5
99
Accuracy
98.5
98 98
98
97.5
97
Move Single
Double
click click
Fig 2: Graph
VII. RESULT
VIII. CONCLUSION
gestures and movements and converts them into [8] Lu, J., Li, H., & Chen, Y. (2020). An Intelligent Virtual Mouse
cursor movements and clicks using Artificial System Based on Face Recognition and Eye Tracking. IEEE
Intelligence (AI). This technology can be applied in International Conference on Artificial Intelligence and
a number of areas, including gaming, processing 3D Computer Applications (ICAICA) (pp. 164-168). IEEE.
video content, office work, web browsing, and more. [Link](https://ieeexplore.ieee.org/abstract/document/922417
Users benefit from its versatility and ease as they are 3)
able to complete tasks without a traditional mouse.
[9] Halder, S., Bhattacharjee, S., & Bhowmick, S. (2018). AI-
X. REFERENCES Based Virtual Mouse System Using Convolutional Neural
Network. International Conference on Advances in
[1]Prasad, G. D. (2020). Virtual mouse implementation using
Computing, Communications and Informatics (ICACCI) (pp.
OpenCV. JETIR, Volume 7, Issue 6, Page numbers - 5.
1945-1951).
[Link]( https://www.jetir.org/papers/JETIR2006455.pdf)
IEEE.[Link](https://ieeexplore.ieee.org/abstract/document/8
[3]Reddy, V. V., & Vantukala, T. (2020). Virtual Mouse Using Cybernetics (ICMLC) (pp. 932-937).IEEE.
HYDCON.[Link](https://ieeexplore.ieee.org/document/924
2677)
[Link](https://assets.researchsquare.com/files/rs-
1616375/v2/9df1e90e-660f-4fdb-83a4-
446bc6e738f9.pdf?c=1654102964)
[7] Rajendra, P., Kaushik, P., Gautam, A., & Saha, S. (2020). AI-
Based Virtual Mouse Control Using Deep Learning
Techniques. IEEE 2nd International Conference on
Sustainable Energy, Electronics, and Computing Systems
(SECS) (pp. 647-652). IEEE.
[Link](https://ieeexplore.ieee.org/abstract/document/925107
4)