Page 1 of 1

HSV Wrong?

Posted: Mon Feb 21, 2011 2:07 am
by Jay
Hi i have been playing around with the colour detection example and the HSV Coords in this example all detect the proper colour but when connecting a colour to HSV module to the detection system it does nor work.

The C2HS module with a colour selector outputs correct HSV Data But the HSV coords inside the example do not corrispond to the correct colours exept yellow! the suggested coords do not fit in with any of the types shown on wikipedia

So is it the detection module thats a bit wierd? What are the other coords for all the standard HSV colours since the correct ones don't work?

Whats going on here?
HSV.fsm
(17.05 KiB) Downloaded 1319 times


Cheers Jay

Re: HSV Wrong?

Posted: Sun Feb 27, 2011 12:02 pm
by Embedded
I see what you mean, the HSV components are correct, but the colour detect uses a different scale.

Apparently the colour detect uses 8bits to define the colour Hue range (ie max 255) but there are 360 degrees in the Hue normally. So to accommodate this the colour detect only uses 0 - 180 degrees instead of 0 - 360. So if you divide the H by 2 you should see some sense. eg. 180 = Red.

Re: HSV Wrong?

Posted: Mon Feb 28, 2011 6:24 pm
by Jay
Thanks for the reply Embedded. You are a saviour! :D

i wonder why they did it like that :o

Best regards
Jay

Re: HSV Wrong?

Posted: Thu Jan 12, 2012 3:06 pm
by datsound
Hi, i just did a mod on the video color detect demo so you can use a color picker and with a HSV map, it's good to see how the color detect module works. i am just assessing the fps, the color interpolations, i dwonder how the color detect makes a 3d array, in hue sat and value, from only 2 colors.