<< return to Pixycam.com

regarding pixy outputs

hi im working with cmucam5 right now. I have a few questions regarding it.

is it possible to get an output (or a text file or whatever) of the positions of the certain object im tracking with the pixy? because i want the output (text file or whatever) to be processed in my matlab simulation of another project.

what i want to happen in my proj is this:

pixy will detect / track the object then will give the exact locations (if it is moving) of the object in terms of the screen. because what i want to happen is that the object should always stay in the middle of the screen, the output that i need is what i will put in my matlab simulation that would make the camera / robot tilt the whole camera to make the tracked object in the middle.

did you get? please answer me hahhaa

Hi Jerome,

I’d suggest you use the “libpixyusb”:https://github.com/charmedlabs/pixy/tree/master/src/host/libpixyusb library so you can easily access and save the data from within a program on your desktop. You should be able to modify the given example “hello_pixy”:https://github.com/charmedlabs/pixy/blob/master/src/host/hello_pixy/hello_pixy.cpp to do what you want.

Scott