Python image I/O?

I’ve been playing around with the Python implementation of OpenCV within the Touch 099 beta. (a handy feature btw, it makes experimentation so much smoother without having to re-compile C++ dlls).

One limitation I’m realizing is getting textures in and out of a Python context and into TOPs. My quick-and-dirty method is currently to use the file system as a bridge: moviefileout from Touch, load the image into the Python context for OpenCV processing, save the result to file, then moviefilein to load into a Touch TOP. It does the trick for testing, but obviously an inefficient pipeline…

Is there a more straightforward way to share TOP textures with Python?

Hi,

I’m having the same question, did anyone got to a good workflow for doing that ?

Cheers.

o.

Unfortunately I don’t think there’s a better way at the moment than what you’re doing adam, pretty sure that’s also what Markus recommended on the FB group.

Not sure if you’re also following the facebook group, but someone actually just posted an interested experiment using spout for python (didn’t know someone made that)

facebook.com/groups/touchde … 624162272/
youtube.com/watch?v=9g6SBwNlw7E