Ask Your Question
0

How to track motion from a moving hand in Java?

asked 2013-03-10 06:12:20 -0600

Zero9195 gravatar image

Hello People, I'm new to OpenCV, but have a lot of experience in Java coding. As Java support is quite new, I haven't found any suitable information on what I need.

I am part of a small group which wants to build a little gadget, which automatically refills glasses with shooting the watter into them. We want to mount a camera 1-2 meters above the table, to track the position of the glasses and look for a hand gesture which shall be the signal to refill the glass.

I looked through the tutorials but couldn't find something suitable. I'd be glad if someone could tell me roughly how to do it, and which classes I need to use, and what for. Or, of course, show me a tutorial which does exactly that.

Thanks in advance,

Zero

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-11-09 17:43:11 -0600

You can see this tutorial of basic motion detection in JAVA , this not an advanced algorithme , but it will help you : http://ratiler.wordpress.com/2014/09/08/detection-de-mouvement-avec-javacv/

Thanks

edit flag offensive delete link more
0

answered 2013-03-10 08:25:41 -0600

berak gravatar image

java support is pretty new, best place to look for (upcoming)samples, is probably here

the first thing you'll want to look into is skin / contour detection

maybe it's already enough to find your hand / color blob in a certain position

or you could record & save the outline of your gesture, and call matchContours() on a candidate blob from your camera for comparison.

there's also a function to find convexitydefects in the outline, if you want to count fingers

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-10 06:12:20 -0600

Seen: 6,623 times

Last updated: Nov 09 '14