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?