Ask Your Question
0

How to find the hsv value of red object in a particular image?

asked 2014-12-26 22:11:12 -0600

guru gravatar image

I need to find the hsv value of the apple in the image. Is that poosible to find the hsv value manually using trackbar having hsv values?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-12-28 02:57:58 -0600

The code can be found in this link

For more information on HSV see this link

Once you perform hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV), the image swaps from BGR to HSV.

  • channel 1: changes from blue to hue and is between 0-180 degrees; hue is circular so a value of 0 and 180 will be red.
  • channel 2: changes from green to saturation and is between 0-255.
  • channel 3: changes from red to value and is between 0-255.
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-12-26 22:11:12 -0600

Seen: 705 times

Last updated: Dec 26 '14