Hello,
is it possible to connect a camera to a bela, and use reacTIVision with a Pure Data patch?

Thanks,
Andy

it may be possible in theory, but I am afraid you may hit the CPU ceiling quickly. Maybe you can start by searching online if anyone has used cameras on the Beaglebone, and then we could look at how to integrate it with Pd on Bela.

14 days later

hey, thanks for the answer, so now I am not shure, if it makes sense to try working with it. A camera on beaglebone seems to be no problem (http://exploringbeaglebone.com/chapter14/), but it's using Linux and I only worked with the PD drop menu on bela, so I really have no idea how to work this into PD. Do you think that it would be possible to get it to work? Because I also would like to try out different things using Open CV (if it's possible). But I am also not shure if it's possible to work with video in PD Vanilla on Bela.

The youtube videos I found are using reactivision in a separate program on Windows. Is the source code of tat program available and can it be run without a display?
Do you have an example Pd patch?

Again, I'd be wary of the CPU limitations

Thanks for the reply, I am trying out the reactivision software with windows too. The communication with PD is working with an object "TuioClient" that recieves the Data from the reactivision software. On their website it says something like "C++: TUIO11_CPP.zip (source, all platforms)" so I think it means the source code is available. But I am really not shure. Anyway... if it won't work due to CPU limitations it's probably not worth the time. Thank you!

And what about the program reactivision software itself? Is it open source?

I'd be happy to look at some direct links

The available .deb file requires another package libjpeg-turbo8 that is not available on newer versions of Debian (e.g.: not on the Debian Stretch that we are running). So you have to compile from source.

Connect the board to the internet and run:

apt-get update
apt-get install libturbojpeg0-dev libsdl2-2.0-0 libsdl2-dev  libdc1394-22-dev

then copy the reactivision source code to the board, go to the linux folder and type make. Once it's built, ./reacTIVision will launch the program. This is as far as I got, because I have no cameras connected (I have no USB cameras around), so I get:

reacTIVision 1.5.1 (Sep 14 2019)

no DC1394 cameras found
no V4Linux2 devices found
error: XDG_RUNTIME_DIR not set in the environment.
SDL could not be initialized: No available video device

If you have a USB camera, you can try the steps above and see if this gives you something useful.