A white ball on a (green) solid colored background would seem like a common robot vision theme (I am thinking of Robot Golf, Ping Pong, and Soccer for a few examples).
Just wondering, as my crash-course in PixyCam processing understanding, is that most of the work is done at the individual pixel level, processing RGB input as it comes in.
I understand that color discrimination would be easy to remove black (0x00:00:00 in RGB space) or white (0xFF:FF:FF) and grayscales.
I was wondering if there was something similar to a green screen mask effect, similar to what they do on TV.
Could there be an “expert setting for changing a background color mask.”
Suppose one “expert setting” is to add a background color filter (eg. Exclusive OR – XOR 0x00:FF:00 for green backgrounds) as each pixel was processed from the camera.
In such a case, XOR 0x00:FF:00 of green background would simulate a black background, and XOR 0x00:FF:00 of a white ball would simulate Purple (Red+Blue) ball.
The remainder of PixyCam’s processing could proceed as is, “find purple ball on black background,” by just altering the colorspace from white on green.
The PixyCam performance penalty is one XOR function at the pixel level.
Anyhow just thinking out loud. Hope this might be a feature to add to PixyCam for the robot vision examples listed above. Thanks again for a very cool product!