If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
HSV Wrong?
4 posts
• Page 1 of 1
HSV Wrong?
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?
Cheers Jay
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?
Cheers Jay
- Jay
- Posts: 276
- Joined: Tue Jul 13, 2010 5:42 pm
Re: HSV Wrong?
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.
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.
- Embedded
- Posts: 143
- Joined: Sat Oct 30, 2010 1:42 pm
Re: HSV Wrong?
Thanks for the reply Embedded. You are a saviour!
i wonder why they did it like that
Best regards
Jay
i wonder why they did it like that
Best regards
Jay
- Jay
- Posts: 276
- Joined: Tue Jul 13, 2010 5:42 pm
Re: HSV Wrong?
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.
- Attachments
-
- Copy (2) of Webcam Video player w color detect2.fsm
- (18.19 KiB) Downloaded 1137 times
- datsound
- Posts: 2
- Joined: Wed Jan 04, 2012 5:07 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 66 guests