Ask Your Question

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

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

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

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

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
Login/Signup to Answer

Question Tools

1 follower


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

Seen: 443 times

Last updated: Dec 26 '14