I want to track if a objects in view are green enough to be likely to be a plant (on a fairly uniform non-green background but in changing light conditions).
The thing is that the colour green doesn’t really seem to be picked up that well. In the attached image that was made using the auto colour detection example code (automatic rgb565 colour detection), the blob marked as 3 are fresh leaves of a dandelion. They are as green as leaves get. They appear mostly white in the image however, and and when I train the code with those leaves, basically anything white that is in shade is matched.
In the image you see a notebook beeing matched (white) as well as the white walls of the room. There isn’t even anything green in the room to generate a reflection onto the walls.
I tried playing with sensor.set_contrast() and sensor.set_saturation() but it didn’t really seem to make much of a difference. Any suggestions? How can I get green to be picked up? Do you see any other ways to detect if something is likely to be a plant?