<< return to Pixycam.com

How to use Pixycam data in programmes on BBB

I’m not sure how to use the camera with a Beaglebone Black in bespoke code, as in not just running the example. Assuming it is set up exactly as the documentation indicates:

  1. Can I just make a C++ file calling a function from the pixy usb library (given correct headers are included), such as retrieving the x coordinate of a signature, and expect it to interpret the usb data from the pixy and provide that coordinate to the programme as it executes?

  2. If so that’s great, where can a find a guide to the pixy functions/methods available in C++?

  3. Can I instead use Python? In the github repository (that we clone as part of the setup instructions) I can’t seem to find any Python modules.

Sorry, I did find the Python API now, it is obviously possible with Python my mistake. I still haven’t found any guide for functions though. Are we intended just to learn from the examples maybe?

Hello,
The C++ API is the same as Arduino:

https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:general_api
https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:ccc_api
https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:line_api
https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:video_api

The Python API needs to be properly documented. The available functions are laid out here:

Hope this helps!

Edward

Hi,

Thanks Edward that is just what I was after.

Jack