I receive the video data from Syphon and I can draw it on screen as texture.
ciSyphon::ClientRef client; gl::TextureRef mTex;
client = ciSyphon::Client::create(); client->setup(); client->bind();
mTex = client->fetchFrame();
gl::clear( Color(0, 0, 0 ) ); gl::draw(mTex);
It’s easy. But now I want to send mText to OpenCV for face detection. And that’s a problem because OpenCV works with Surface only. I don’t understand how to pass data from Texture to Surface. Maybe it’s not the best solution because of CPU and GPU but I don’t know another way. All examples I found doesn’t work. I would be very appreciate for any help.