njazz / syphonpy

Python bindings for the Syphon Framework (OSX)
41 stars 7 forks source link

send output of openCV2 to syphon #12

Open gschian0 opened 3 years ago

gschian0 commented 3 years ago

Hey! I'm trying to get the output of a cv.imshow() to send over syphon using the test script but I'm not sure how to plug it in... any help would be appreciated or some documentation on how to send that image over syphon. Thanks!

njazz commented 3 years ago

Hello! Didn't try that but you probably need to convert openCV data to GL texture. What i've found with a very quick search is somewhat like this: https://stackoverflow.com/questions/32210107/opencv-python-opengl-texture

gschian0 commented 3 years ago

Thanks for the reply, I found that one pretty quick too but can’t get that example to work. I see what you mean about converting to a texture. I can’t find a really clear cut example so I guess I have some reading to do.