Virtual Mouse Control Using Hand Class Gesture: December 2020
Virtual Mouse Control Using Hand Class Gesture: December 2020
net/publication/347983092
CITATIONS READS
0 4,935
4 authors, including:
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Vijay Kumar Sharma on 29 December 2020.
V. METHODOLOGY
The following steps are included to develop the algorithm:-
(i) The first step is to capture the image using the camera. Fig 2 Activating the USB web-cam
(ii) The camera then extracts and recognizes the human hand
from the input image. B. Skin Color Extraction
(iii) Then the position of the human hand is stored in the
system using the regular” coordinate-system”. To identify the skin color and separating it from the other
(iv) Then when the second frame is captured. The position of colors of the background for this we use the mask and the
the hand from the second frame is captured and is stored in the kernel function the mask function identifies the skin color
system. using the RGB parameters which range from [92, 56, 54] to
(v) Then the position of both hands is compared and then the [255,223,196] than the open kernels and the close kernels are
cursor moves accordingly. used to remove the noises from the input.
(vi)Now for the system of clicking the angle between the two
hands of the finger is measured and if the angle is less than 15 The open kernel and close kernel work on a simple theory that
degrees the system responds to it as a left-click. In this way, if the pixilated noise bit is greater than the stored value than it
the complete working of the mouse can be done with bare will be removed using the masking effect, hence only the
hands. correct input is provided to the system for the process of
computer as shown in Fig. 3.
By this paper, we aim to create totally cost-free hand
recognition software for laptops and PCs with the help of web-
cam support .The project emphasis on creating software that
can be used to move the cursor with the help of hands and
performing operations like clicking.
A. Activating Camera
The first step is to activate the camera so that the input can be
provided to the system for this to happen we need to assign the
resources of the camera to a variable the command that will be
used for this purpose is cam=cv2. Video Capture(0) this
command will activate the camera that is connected to the
system and will be able to take the input from the camera as
shown in Fig. 2.
D. Displaying Output
For moving the cursor the first step is to find the middle of the
hand which can be determined using the following command. A window will pop up on the screen of the user displaying the
hands of the user and the subordinates lines controlling the
Algorithm cursor the output can be shown by the command
cv2.imshow(‘frame’, frame); other than only showing the
1.var_leftmost→min_argument[tuple(hull[hull[:,:,0].argmin()] camera input window the user also provided with additional
[0])] information such as additional and appropriate sources of light
in the background which will help the user in setting the
surroundings right as shown in Fig. 5.
2.var_rightmost→max_argument[tuple(my_con[my_con[:,:,0]
.argmax()][0])
4.var_bottommost→tupleassignment(my_con[my_con[:,:,1].ar
gmax()][0])
5.var_Temp→bottommost[0]+30
6.cv2.line(roi,topmost,(topmost[0],h-280),(0,242,225),2)
7.cv2.line(roi,leftmost,(topmost[0],bottommost[1]-
80),(0,242,225),2);
E. Flow chart
[1]Represent the capturing the frame from the web- cam and
Process the frame capturing by the web-cam after processing
convert the image HSV to RGB format.
[4] If the angle between the two points is less than 15 degree
perform operation left click else move cursor in the direction
of input image.
Fig 4.Performing clicking operation by creating angle of less than 15 degree
REFERENCES
[1] Amardip Ghodichor, Binitha Chirakattu “Virtual Mouse using
Hand Gesture and Color Detection ”, Volume 128 – No.11,
Fig 6 Flow Chart of Proposed Methodology October 2015.
[2] Chhoriya P., Paliwal G., Badhan P., 2013, “Image Processing
Based Color Detection”, International Journal of Emerging
Technology and Advanced Engineering, Volume 3, Issue 4, pp.
VI. RESULTS AND EVALUATION 410-415
[3] Rhitivij Parasher,Preksha Pareek ,”Event triggering Using hand
gesture using open cv”, volume -02-february,2016 page
The motive of this paper was to make the machine more No.15673-15676.
interactive and responsive towards human behavior. The sole [4] AhemadSiddique, Abhishek Kommera, DivyaVarma, ”
aim of this paper was to make a technology that is affordable Simulation of Mouse using Image Processing Via Convex Hull
and portable with any standard operating system. Method ”, Vol. 4, Issue 3, March 2016.
[5] Student, Department of Information Technology, PSG College
The proposed system is used to control the pointer of the of Technology, Coimbatore, Tamilnadu, India,”Virtual Mouse
Using Hand Gesture Recognition ”,Volume 5 Issue VII, July
mouse by detecting the human hand and moving the pointer in
2017.
the direction in the human hand respectively. the system [6] Kalyani Pendke1 , Prasanna Khuje2 , Smita Narnaware3 ,
Control simple function of the mouse such as left-clicking, Shweta Thool4 , Sachin Nimje5 ,”International Journal of
dragging and cursor movement. Computer Science and Mobile Computing ”,IJCSMC, Vol. 4,
Issue. 3, March 2015.
The method detects the hand of the human skin and tracks it [7] [. Abhilash S S1, Lisho Thomas2, Naveen Wilson3, Chaithanya
continuously for the movement of the cursor when the angle C4,”VIRTUAL MOUSE USING HAND GESTURE”, Volume:
between the fingers of the human hand is less than 15 degree 05 Issue: 04 | Apr-2018.
the process performs the task of the left-click. [8] Abdul Khaliq and A. Shahid Khan, “Virtual Mouse
Implementation Using Color Pointer Detection”, International
TABLE I: Comparison of Existing and Proposed System Journal of Electrical Electronics & Computer Science
Engineering, Volume 2, Issue 4, August, 2015, pp. 63-66
Feature Existing System Proposed System [9] Erdem, E. Yardimci, Y. Atalay, V. Cetin, A. E., “Computer
Stability The Existing The proposed system vision based mouse”, Acoustics, Speech, and Signal Processing,
Proceedings (ICASS), IEEE International Conference, 2002.
System is very stable as
[10] Chu-Feng Lien, “Portable Vision-Based HCI – A Realtime
is poor on compared to its Hand Mouse System on Handheld Devices”, National Taiwan
stability front predecessor University, Computer Science and Information Engineering
environment The existing The proposed system Department