Dear Duarte,

Duarte Dias <> ha scritto:


I want to do a program for color detection with the epuck. I want to put a
colored sheet in front of the robot, and it must use the camera to
recognize the color (green, red or yellow). I did some tests with RGB, but
I am having problems since the Image I get, when I place the colored sheets
in front of the robot, are just gray images with just a litle of the right
color, which is more intense in the center (but still very litle). Can this
be improved?

You can try disabling auto white balance and play with some camera parameters (eg brightness); you can find a similar project here (code here

Then I remember that could be image saturation, which can be avoided using
YUV, which I think the epuck provides (at least there is a color mode for
it). However, I can't find anywhere the pixel format for the YUV color mode
of the epuck camera. Is it the same of RGB565 (with this I mean 5 bits for
Y, 6 bits for U, 5 bits for V)? Does the camera provide this mode? Is it
reliable enough for this simple task?

The format supported by the e-puck camera is the yuv422; you can find details about the supported output formats in the datasheet (page 67).

Best regards,

Stefano Morgani

Thank you and best regards,
Duarte Dias

E-puck-user mailing list

Reply via email to