<< return to Pixycam.com

Replicating PixyMon w/ libpixyusb2


#1

Hello,

I am trying to figure out how PixyMon is pulling both the raw frame and result of the running program without suspending the program.
AFAIK, this is not possible via libpixyusb2 so it must use the raw chip protocol.
What I am trying to achieve is to stream the video while also showing detected objects on top - like PixyMon but from my own program that uses libpixyusb2.

All I found was:
stop program
get raw frame
resume program

But I suspect that will impact negatively FPS.

Can you help me?
Thank you

BTW, I’ve been experimenting with modifying the Python wrapper to expose the get raw frame command:
See this:


You will need to rebuild _pixy.so using my fork of the source code.


#2

Hello crazyquark,
Pixymon uses a special streaming mode to get the video data and object data. It’s efficient in that it doesn’t interrupt the program running on Pixy. But it still is only about 20 frames per second over USB vs Pixy’s 60 frames per second native framerate. We haven’t exposed this type of streaming via libpixyusb2 (sorry!)

Edward