<< return to Pixycam.com

Detected Object Position Stream in Matlab

Hello-

I’m interested in streaming detected object x,y positions into Matlab over USB. Is this possible? Does anyone know if there is existing code, or potentially a mex wrapper for streaming the position data into MATLAB? I did some searching through the forums. It seems like most people are more interested in pulling images, so I’ve seen little mention of pulling the position data into MATLAB. I’d appreciate any information. Thanks!

I’ve started to make progress on this by trying to wrap libpixyusb function calls into a mexwrapper. I’m having issues with linking in the libusb-1.0.dll.a into my MATLAB version. I believe this is due to my MATLAB version being 64bit and the library being 32. When I call mex and build the C++ code I get unresolved external errors. Does anyone know how to build libusb for windows 64 bit? Thanks.

Hi,

I have an application where it would be very useful to be able to stream the x,y position of a detected object to a Matlab program that would then create an animation of the path of the object. Has anyone made any progress on this? Is this possible?

Thanks,

Andrew

Hello Andrew,
If you can print the positions you receive from Pixy and capture them in a terminal program (The Arduino hello_world, for example, prints the positions) You can then save these numbers to a text file and import them into Matlab. That is, you’d just do some simple reformatting and save the file as a .m file.

Hope this helps!

Edward