A gesture controlled calculator.
Check it out here in this video
Problems being faced
- Simple HSV masking is bad for skin segmentation. This is why I am using a dark room. [SOLVED using back projection]
- Gesture for confirming a number (i.e making a fist) and for "one" needs improving.
Really need help with these two. Please help me if you can.
Run the hand-calculator.py file using the command below
A windows "Set hand histogram" will appear.
"Set hand histogram" will have 50 squares (5x10).
Put your hand in those squares.
Press 'c'. 2 other windows will appear. "res" and "Thresh".
On pressing 'c' only the parts of the image which has your skin color should appear on the "res" window. White patches corresponding to this should appear on the "Thresh" window.
In case you are not successful then move your hand a little bit and press 'c' again. Repeat this until you get a good histogram.
After you get a good histogram press 's' to save the histogram. All the windows close.
A new window appears "Calculator".
Put your hand the rectangle. Making a fist means confirming a number.
During operator selection, 1 means '+', 2 means '-', 3 means '*', 4 means '/' and 5 means '%'.
Got a question?
If you have any questions that are bothering you please contact me on my facebook profile. Just do not ask me questions like where do I live, who do I work for etc. Also no questions like what does this line do. If you think a line is redundant or can be removed to make the program better then you can obviously ask me or make a pull request.