<< return to Pixycam.com

Teaching color from software

Hi everyone,

I was wondering if there is a way to send Pixy the RGB (or HSV) pixel values that it should recognize instead of a ‘normal teach’ (with button or PixyMon). Where are these values saved on Pixy memory? Would it be feasable to create an Arduino function for sending this data?

Thanks in advance!

Roberto

Hello Robert,
The color signatures are little statistical models and are probably pretty complicated to generate.

Can you describe what you are trying to do with Pixy? Maybe there is a better method we can suggest.

Edward

Hello Robert,
The color signatures are little statistical models and are probably pretty complicated to generate.

Can you describe what you are trying to do with Pixy? Maybe there is a better method we can suggest.

Edward

Hi Edward,

I need to recognize certain LEDs (mostly red and green). I have the information of the RGB values for these colors (which can eventually change). I would like to send these values, preferably, via SPI with Arduino or via PixyMon. Is that possible or the sensor needs to recognize pixel values for creating this statistical method?

Thanks in advance!

Hello Robert,
This method of setting signatures isn’t currently supported. The challenge of getting something like this working (specifying the RGB color of what you want to detect) is that of calibration. Color image sensors aren’t perfect; red LEDs don’t look perfectly red, etc. The end result will be inaccurate color signatures and false positives and/or false negatives.

It’s best to sample pixels in the image, an image acquired by the image sensor, and use those pixels for creating a signature. Telling Pixy to create a signature from the Arduino is a possibility. You could tell Pixy go into signature teach mode for a specified period of time and even specify which part of the image to look. But this also sounds difficult to get reliable color signatures in real-world set-ups using this scheme.

Edward

Thanks Edward! That was helpful and clear

Similarly, is it possible to do the equivelent of pressing the learn button via software?
I’m building a robot and would like to have it learn an object via voice command.
Think robot dog, though it isn’t one…

Hello Joseph,
We’ve had at least one other request for this, and it’s made it onto our feature todo list. I don’t have an estimated release date though.

Edward