<< return to Pixycam.com

Detecting black and silver in white background

Hey I’m trying to use pixy 2 for detecting two marbles that are black and the other one in reflective silver.
I know pixy uses hue colors but my background is going to be pure white so I wanted to know if there is anyway for pixy to detect them because they are not white? not because of their color.
also wanted to know if I can make a program for it to do that?
thanks koosha.

Hi Koosha,

unfortunately there is not a way to do this…Pixy is hardcoded to detect objects based on color (hue) as you mention. It doesn’t do anything with background detection or subtraction. You would need to modify the firmware in order to make a different detection algorithm, which requires some fairly advanced C++ coding.

Sorry to disappoint! Let us know if we can help in any other way.


Hi Jesse

thanks for your reply. Is there any documentation on changing the firmware? I have good knowledge of C++ but just don’t know how to compile the firmware and install it on pixy. It would be a great help if you could share some documentations.

Thanks Koosha

Yes, please join the Firmware SDK group for more info on modifying Pixy firmware: https://groups.google.com/forum/#!forum/pixy_firmware_sdk