Ask Your Question
0

How can i detect the hand gloves ?

asked 2013-08-25 00:40:05 -0600

Prazzy Uchiha gravatar image

Hey fellas. I wanted to make a hand gesture detection project. But the skin color detection in that was totally dependent on light and skin colors. Thus unreliable.

So i am now thinking of using a gloves. The gloves are like this http://i848.photobucket.com/albums/ab41/pranayjaiswal/2013-08-25102506_zps94388dd9.jpg

how can i find the gloves, I dont know the HSV values of that.

Thanks. and Sorry for stupid question am new to OpenCV

edit retag flag offensive close merge delete

Comments

Using a glove seems a rather weird approach, look at shapelike techniques like snakes, which fit to a shape and then track that shape over time. They are independant of light and colour, but based on edge information.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-08-25 04:56:04 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-08-26 04:31:14 -0600

updated 2013-08-26 04:33:23 -0600

Actually, I would say that your current glove has a variety of colors similar to skin. That would be not a solution at all. Try to look for a glove of a single unique color. For example, A YELLOW one.

You can obtain HSV values experimentally:

  1. Download ColorPic tool
  2. Grab a picture of your hand/skin/glove/whatever with simple OpenCV code snippet
  3. Run ColorPic and use it by slowly navigating a mouse cursor over the hand/skin/glove picture and check for values in boxes Hue|Sat|Val

ColorPic

  1. Move over the whole area of your region of interest and try to find Min and Max values.
  2. Use these values for OpenCV cvInRanges or cvInRange function to filter out those colors.

NOTE: OpenCV uses 0-179 value for Hue and 0-255 for Sat and Val. Colorpic uses 0-359 value for Hue and 0-255 for Sat and Val. So you must Min and Max values found for Hue divide by 2 before using them with OpenCV.

edit flag offensive delete link more

Comments

Just a remark, if you want to create an automated process, retrieving HSV values using tools, is the most terrible way of doing so. A single ray of sunlight will remove your wanted effect.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-08-26 04:50:52 -0600 )edit

Question Tools

Stats

Asked: 2013-08-25 00:40:05 -0600

Seen: 1,749 times

Last updated: Aug 26 '13