Salman Younas
Salman Younas

Reputation: 350

OpenCV Android: Hand detection

I'm using OpenCV in android. I'm a total beginner in OpenCV. My end goal is to recognize hand gestures. But for this, I first have to detect a human hand. I don't know where to start. Any help?

EDIT I have already imported OpenCV and successfully ran 2 sample projects. The face detector sample didn't work though. Now I wanna proceed to detect hand gestures. Only 4 gestures: when a user moves his hand from left to right in front of camera, same for three more directions.

Upvotes: 1

Views: 5867

Answers (1)

Mayank
Mayank

Reputation: 363

Since you are planning to detect only 4 motions, hence you simplify your task to a huge degree.

Go through these links 1 2 and get yourself acquainted with basics of hand detection.

Your main aim should be to detect the hand from background, something like shown in the image below.

hand

Once that is done, you can keep taking images in succession and process it and keep track of center and end points of the hand.

Now by simply subtracting these points of the successive image, you can easily find the possible 4 directions the hand can move in your case.

Upvotes: 2

Related Questions