Possible Confusing Reflected Light Sensor Readings Based Due To Ambient Light #1921
Replies: 2 comments 2 replies
-
First conditions (sorry for broken camera, btw you can’t see the yellow lighting in the picture) Second conditions (under table) |
Beta Was this translation helpful? Give feedback.
-
This is the correct behavior. On low saturation surfaces (s is low) like a white table, the hue value doesn't mean anything (it is the color shade, but only if there is any color to see). So it may appear to jump around, but that is not something to worry about. This is why for color detection we usually recommend working with the detectable colors setting. You can find examples of this in the documentation. Then you don't have to build your own color matching mechanism. |
Beta Was this translation helpful? Give feedback.
-
I have no idea whether this is because of my spike prime colour sensor having issues, but ambient light possibly affects the reflected light reading,
HOWEVER, in a confusing way.
My current setup is as follows:
A yellowish light source is placed approximately 165 cm high from a white plastic board.
2 sensors are 0.8 cm perpendicular to the white plastic board, set to read reflected hsv. (they are about 1.6cm apart)
The results are:
However, when tested under shade (under the table) the results are:
To check again, here are 2 more readings under the first conditions:
Due to these readings on the same conditions, I am unable to ascertain whether these are faulty colour sensors.
However, due to the fact that the hue readings correlate to cyan, but the ambient light is yellow, is a matter which should be brought to attention.
Beta Was this translation helpful? Give feedback.
All reactions