<< return to Pixycam.com

IR Tracking Quick Fix?

Hello! I am using the Pixy cam as part of a senior design project for school and I’m attempting to get the pixy cam working with IR. Since applying an IR friendly lens and an IR filter, the IR is clearly visible on the video produced by the camera within PixyMon. However, since the Pixy is designed for color it does not track the white blob produced by the LED. I was curious if it would be possible to create a quick fix for this by simply tampering with the data retrieved by the camera and shifting certain pixels such that the color white would appear as a different color prior to the blob detection.

I’m still doing some research and it appears that the map function within ColorLUT may be what I am looking for, but the code does not provide clear description. Can anyone let me know if this is possible or point me in the right direction to handle this?

Attached photo show the IR as seen through PixyMon

For those who are interested, I managed to get white blob detection working by following the same process found in this post http://cmucam.org/boards/9/topics/2649. By simply changing the code from blue - green to blue + green and red - green to red + green in both the rls_m0.c and the colorlut.cpp it was capable of tracking an IR LED. Haven’t done much testing with it but it seems to work just fine for a single signature, single object use.

That’s very interesting. Would you mind sharing your firmware? I’d like to give it a try. I can change filters and lenses and junk fine and have IR sources to test with, but setting up the toolchain for firmware compiling is beyond me.

try flashing your Pixy with the attached hex file. I don’t think it will work on the newer versions of Pixymon but it should work on 1.49, and it also has trouble displaying object tracking when using the cooked video setting but on the default program you should have no problem seeing the object boxed off.