Hand Gesture Based Game Using MATLAB & Computer Vision Library
Hand Gesture Based Game Using MATLAB & Computer Vision Library
Volume: 3 Issue: 2
_______________________________________________________________________________________________
Hand Gesture based Game using MATLAB & Computer Vision Library
Harsh K. Malde.
Darshan D. Gajara.
Swapnil R. Sutar
Bhakti N. Palkar.
AbstractGone are the days when humans could interact with computers only via limited hardware devices like mouse & keyboar ds. With the
recent developments in Virtual Reality, the interaction medium between humans & computers has changed drastically. This paper intends to put
some light on the role played by hand gestures to provide inputs to the computer. Detection of gestures do not require any external device other
than the webcam. The gameplay is about word formation using hand gestures specified by the user at the start of the game or b y the predefined
gestures.
Keywords-hand gesture, virtual reality, human computer interaction, computer vision
__________________________________________________*****_________________________________________________
I.
INTRODUCTION
II.
WORK FLOW
The example below shows how to set up and train a fivestage, stop-sign detector, using 86 positive samples. The
default value for TruePositiveRate is 0.995.
Step 1: Load the positive data samples from a MATLAB file.
File names and bounding boxes are contained in the array of
structures labeled 'data'.
load('stopSigns.mat');
769
_______________________________________________________________________________________
_______________________________________________________________________________________________
Step 2: Add the image directory to the MATLAB path.
imDir
=
fullfile(matlabroot,'toolbox','vision','visiondemos','stopSignIma
ges');
addpath(imDir);
Step 3: Specify folder with negative images.
negativeFolder
=
fullfile(matlabroot,'toolbox','vision','visiondemos','non_stop_si
gns');
Step 4: Train the detector.
trainCascadeObjectDetector('stopSignDetector.xml',data,negat
iveFolder,'FalseAlarmRate',0.2,'NumCascadeStages',5);
trainCascadeObjectDetector(outputXMLFilename,positive
Instances,negativeImages) writes a trained cascade detector
XML file with the name outputXMLFilename. The name
specified by the outputXMLFilename input must have a XML
extension.[5] For a detailed explanation on how this function
works, refer to Train a Cascade Object Detector in MathWorks
forum.
Upon execution of the above commands, Computer Vision
software returns the following message:
TECHNOLOGICAL ASPECTS
_______________________________________________________________________________________
_______________________________________________________________________________________________
IV.
IMPLEMENTATION ISSUES
A. Time Lag
MATLAB requires heavy amount of processing power and
is unable to detect or track the gesture with the normal speed.
User experiences considerable amount of time lag in the
system, which makes it tedious to work with.
[2]
[3]
[4]
[5]
http://in.mathworks.com/help/vision/ug/train-a-cascade-objectdetector.html?refresh=true
[6]
[7]
http://blogs.mathworks.com/
B. Licensing
MATLAB is a paid software and to purchase a licensed
version of MATLAB, one has to invest a huge amount of
money, which isnt affordable by all sorts of users.
C. Robustness
Most of the gesture based algorithms for MATLAB arent
robust. This means that the false detection of the system is
large. Such systems or applications cannot be used in time
and accuracy critical situations.
V.
ACKNOWLEDGEMENT
REFERENCES
771
IJRITCC | February 2015, Available @ http://www.ijritcc.org
_______________________________________________________________________________________