cmucam3-software (#4) - Color space hsv, rgb … (#556) - Message List

Color space hsv, rgb …

Hello,

I want to track color, I've already got a project. I want to track in HSV and I used the API "cc3_camera_set_resolution". It worked not very good so I wondered how does the colorspace processing work ? I saw that the API "cc3_camera_set_resolution" write in register so I think the processing of HSV is done in ARM7 routine (true ?). So i would like the know the exact definition of the HSV space ( 0-20 -> red ...).

PS: I'm looking for RED color.

Thanks,

  • Message #1124

    The camera can output RGB and YCrCb from the hardware. The HSV conversion is done in software which makes it slower. cc3_camera_set_resolution() has nothing to do with the color space. It sets the number of rows and column in the image.

    • Message #1127

      Thanks for the answer.

      I made a mistake of course, i didn't talk about "cc3_camera_set_resolution" but "cc3_camera_set_colorspace". I wanted to say that if "cc3_camera_set_colorspace" set a byte in a register i wondered if it's routine transparent for developper (i do not have to call the API) in ARM7 that did that. So i would like to know the equation to processing RGB to HSV andthe domain definition.

      thanks again,

      • Message #1128

        You can find the RGB to YCrCb conversion in the ov6620 datasheet (posted in the documentation section of the wiki). That is handled by the camera hardware and is totally transparent to the LPC2106. The HSV conversion is in software, so you can easily see (and change) the conversion equation:

         http://www.cmucam.org/browser/trunk/lib/cc3-ilp/cc3_hsv.c

Subscriptions