get_blocks.py not recognizing color codes that PixyMon is able to recognize (RaspberryPi 3)

Added by Max Power 7 months ago

I am using the pixy on a Raspberry Pi 3. I have taught the pixy 2 color code signatures (1,2 and 3,4). When I use the PixyMon GUI I see the targets recognized and everything seems to work as it should. When I use the get_blocks.py I see a bunch of results with signatures that don't match mine. When I filter for just mine (sig = 12 and sig = 34) I get no results. Any ideas what is happening?

Thanks in advance for any help that can be provided.


Replies (1)

RE: get_blocks.py not recognizing color codes that PixyMon is able to recognize (RaspberryPi 3) - Added by Edward Getz 7 months ago

Hello Max,
Note, that the color code numbers 12, and 34 are octal (base-8) numbers. See this doc (search for octal):

http://cmucam.org/projects/cmucam5/wiki/Using_Color_Codes

For example 12 octal is 1*8+2 = 10 decimal, and 34 octal is 3*8+4 = 28 decimal.

Are those the numbers you are seeing?

Edward

(1-1/1)