<< return to Pixycam.com

Color Codes

Please help me better understand Color Codes. I have reviewed this [[http://cmucam.org/projects/cmucam5/wiki/Using_Color_Codes]]

Does this statement mean that Pixy can detect and track 7 different objects in total?

As you know, Pixy has seven color signatures that it can learn/remember. Each signature can either be a normal signature or a color code signature.>

Do the 7 signatures between regular objects and CC objects relate somehow? In other words, if I follow the Wiki instructions and create a 3 color CC object, did I just use up 3 color codes and/or one regular signature? And if I were to create another 3 color CC object, how would it be numbered or identified? I assume the first one would be 123(octal) so the second one would be 456(octal)?

Thanks,
Paul

Hey Paul,

Pixy can theoretically detect and track hundreds of objects. It is limited to 7 different color signatures, but it can track multiple objects of each color. So, you could have 20 orange ping-pong balls, and it would detect them all (as well as whatever other colors you’ve taught it, simultaneously).

That said, 7 is the limit for all signatures - if you teach 3 colors for a CC, you will “use up” three of the seven available signatures. However, depending on detection mode, those colors are still available for non-CC detection, i.e. if Pixy is set to mode 3, it will report multi-color CC codes, and individual CC colors as normal objects, and normal color signature objects. See this section: http://cmucam.org/projects/cmucam5/wiki/Using_Color_Codes#Color-code-modes

Finally - CC signature IDs are dependent on the colors present. If you teach Pixy CC signature 1 = red, CC 2 = blue, CC 3 = orange, CC 4 = green, and you have an object with red-blue-orange, it will be tagged 123. If your other object has some of the same colors, say red-green-orange, it will be tagged 143. Note that blue-orange-red will be tagged 132, instead of 231 - PixyMon will show the CC in the smallest numerical order.

Make sense?

Cheers,
Jesse

Yes, many thanks! So if I wanted to track two separate CC objects(Red/Green) AND the other(Blue/Orange) I would define or set CC object #1,#2,#3,#4 as Red,Green,Blue,Orange respectively. And I have used 4 of the 7 signatures. Now for my source code I would look for a tag of o12 for the first object and a tag of o34 for the second object. I assume that if an object appeared containing all 4 colors then I would get a tag of o1234 which I could choose to ignore.

And to fine tune my CC objects I would adjust the sliders for signatures #1,#2,#3 & #4 individually.

Does this all sound correct?

BTW: Love this product!

Paul

Yes, that all sounds correct! Jump in and see what happens - it’s easy to play with this stuff in PixyMon.

Thanks, and good luck! Let us know how you make out.

Cheers,
J