Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Latest commit

 

History

History
70 lines (40 loc) · 2.95 KB

README.md

File metadata and controls

70 lines (40 loc) · 2.95 KB

Hand Detection with OpenCV

Hand detection is a simple idea, but it requires some advanced tools to do it.

In this project we will allow the user to set the area that will be used to determine the color to capture, and then show, over the videocam feed, where the hand is and what signals it is doing.

The available signals are:

  • Numbers using the fingers from 0 to 5;
  • OK signal;
  • Cool/Fixe signal.

Detection of numbers from 0 to 5

Detection of 'ok' and 'cool' gestures

Usage

To start the project run at root: python hand_detection.py <optional_param>

  • -h can be used to know what the available params are;
  • --left or -l: Moves the ROI to the left side;
  • --shot or -s: Detects hand in a single shot, a picture, not video;
  • --input=<path> or -i=<path>: Analyses a stored image;

Then the webcam image is shown saying 'Welcome'.

You can then:

  • Press h to go to the color calculator;
  • Or press v to go to the hand detection;

Press q at any time to close the project.

Hand Contours

In this mode, you will calculate the color of the hand to be detected.

Place your hand in the blue square and then

  • Press v to capture;

If the result pleases you

  • Press any key to proceed to video hand detection. If it doesn't:
  • Press n to return to the color calculator.

Hand Detection

In this mode, you will be able to do signs with a single hand that will be analysed by the algorithm.

Check the list of available signs above.

To exit the app press q.

Additional Information

For more information about the project consult the wiki of this project.

For more knowledge of the area we recommend the following works:

[1] A. Birdal e R. Hassanpour, Region Based Hand Gesture Recognition. Václav Skala - UNION Agency, 2008.

[2] Y. Zhou, G. Jiang, e Y. Lin, «A novel finger and hand pose estimation technique for real-time hand gesture recognition», Pattern Recognition, vol. 49, pp. 102–114, Jan. 2016.

[3] S. S. Rautaray e A. Agrawal, «Vision based hand gesture recognition for human computer interaction: a survey», Artif Intell Rev, vol. 43, n. 1, pp. 1–54, Jan. 2015.

[4] E. Sánchez-Nielsen, L. Antón-Canaĺıs, e M. Hernández-Tejera, «Hand Gesture Recognition for Human-Machine Interaction», em The 12-th International Conference in Central Europe on Computer Graphics, Visualization and Computer Vision’2004, WSCG 2004, University of West Bohemia, Campus Bory, Plzen-Bory, Czech Republic, February 2-6, 2004, 2004, pp. 395–402.