Hand Gesture Recognition Using Python
Hand Gesture Recognition Using Python
Abstract—– The goal for the project was to develop a new type of Human Computer Interaction system that subdues the problems that users
have been facing with the current system. The project is implemented on a Linux system but could be implemented on a windows system by
downloading some modules for python. The algorithm applied is resistant to change in background image as it is not based on background
image subtraction and is not programmed for a specific hand type; the algorithm used can process different hand types, recognizes no of fingers,
and can carry out tasks as per requirement. As it is stated within this paper, the main goals were reached. The application is capable of the
gesture recognition in real-time. There are some limitations, which we still have to be overcome in future.
__________________________________________________*****_________________________________________________
59
IJFRCSCE | June 2018, Available @ http://www.ijfrcsce.org
_______________________________________________________________________________________
International Journal on Future Revolution in Computer Science & Communication Engineering ISSN: 2454-4248
Volume: 4 Issue: 6 59– 62
_______________________________________________________________________________________________
which provides the ability of physical operation. For instance, algorithm‘ used for this process and gray scale picture are
the robotic arm maps and repeat the actions performed by the converted into binary picture having area of interest as the hand
operator arm to carry out a specific operation. The prospects of and the background.
Virtual Presence or tele-presence also include applications like There are two main approaches to segmentation:
space missions, underwater mission, maintenance of nuclear 1. Pixel-based or local methods having: -
power reactor and anywhere the human presence is not possible
a) Edge detection
or risky.
b) Boundary detection.
B. Bomb disposal:
Bomb disposal is safer when human beings are 2. Region-based approach: -
substituted by the robot arm which will work on the same a) The region merging
concept of hand gestures recognitions. It leads to reduction in b) The region splitting
the risk of life of a human and it also encourages the efficient c) Thresholding method
handling of the situation. The robot arm can be used to
recognize the postures of a human made by him or her from
remote place and it also performs corresponding related
function.
C. Based on Wheel-chair:
The Individuals in wheel-chair regularly confront issues
with manual systems used to control the developments of seat.
Motions of the hand can be embraced with the goal that each
signal would be allotted to a specific development. At the point
when a specific signal is given the wheelchair moves in a
comparing course. There are numerous utilizations of hand
motions acknowledgment which are as of now being used like
the gaming business adjusts a considerable measure of hand
motion acknowledgment systems in which the utilization of
joysticks or consoles is absolutely superfluous these days.
Automated surgeries are likewise led where the specialists
work the patients from remote area and the robots play out the
errands.
III. ALGORITHM
a) Data obtaining – The initial move is to capture the
image from camera and to define a region of Interest
in the frame, it is important as the image can contain a
lot of variables and these variables can result in
unwanted results and the data that needs to be
processed is reduced to a large extent. To capture the
image a web-camera is used that continuously Fig. Algorithm Deployed.
captures frames and is used to get the raw data for
processing. The input picture we have here is uint8. Thresholding techniques is employed in partitioning the image
The Procured image is RGB and must be processed pixel histogram by using a single threshold technique.
before i.e. pre-processed before the components are We in this project have used otsu‘sthresholding technique.
separated and acknowledgement is made. Otsu‘s thresholding is used to automatically perform cluster-
b) Data Pre-Processing: based thresholding. The method assumes there are two classes
Pre-processing method can be completed 2-steps of pixels following bi modal histogram and then it calculates
process: optimum threshold separating the two classes
• Segmentation
• Morphological filtering 1. MORPHOLOGICAL FILTERING: After
First Process is the Segmentation process. It is done to change thresholding we have to make sure that there will be
over grey-scale picture into the binary picture so we can have no noise is present in image, so we are using
just two Area of Interest in picture. That is, one will be hand morphological filtering Techniques, These
and another one is background. Algorithm can be ‗Otsu Techniques are divided in 3 parts.
60
IJFRCSCE | June 2018, Available @ http://www.ijfrcsce.org
_______________________________________________________________________________________
International Journal on Future Revolution in Computer Science & Communication Engineering ISSN: 2454-4248
Volume: 4 Issue: 6 59– 62
_______________________________________________________________________________________________
a. Dilation 3. Math Operations:
b. Erosion this can be calculated by -
c. Opening and angle = math.acos((b**2 + c**2 - a**2)/(2*b*c)) * 57
d. Closing This formula determines the angles between the two fingers,
If the division is not continuous, then there may have some ‗1s‘ for distinguish between the different fingers and to identify
in the background which is called as background noise, Also, them all. We can also determine the length of each raised or
there is a possibility that system generated an error in collapsed finger coordinate points taking centroid as a source
recognizing gesture this may be termed as gesture noise. If we of perspective point, this can be done keeping in mind the end
want flawless contour detection of a gesture, then above- goal to extricate the correct number of finger brought up in the
mentioned errors should be nullified. A morphological picture.
separating (filtering) approach is employed utilizing grouping
IV. CONCLUSION
of dilation (enlargement) and erosion (disintegration) to
accomplish a smooth, shut, and finish the contours of a hand With the help of observations that we have, we can
motion. conclude that the results should be depend upon:
V. FUTURE WORK
This project can be more interactive with the help of tracking
real time hand movements and controlling mouse pointer on
screen. The shortcoming of requiring a plain background can
be overcome with the help of Background Image substraction
or Machine Learning Techniques
ACKNOWLEDGMENT
We would like to thank respected MR. DEEPAK RAY SIR for
giving me such a wonderful opportunity to expand our
knowledge for our E&TC branch in software and giving us all
the important guidelines to present this report. Sir helps us a lot
in realizing that what are the motive & applications for which
we study.
REFERENCES
[1] H. Renuka and B.Goutam ―Hand Gestures Recognition system
to control soft front panels‖, International Journal of
Engineering Research and Technology, December 2014.
[2] Henrik Birk and Thomas Baltzer Moeslund, ―Recognizing
Gestures From the Hand Alphabet Using Principal Component
Analysis‖, Master‘s Thesis, Laboratory of Image Analysis,
Aalborg University, Denmark, 1996.
62
IJFRCSCE | June 2018, Available @ http://www.ijfrcsce.org
_______________________________________________________________________________________