Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Flopping webcam input horizontally

$
0
0

ok answering my own question
Came across this rather lengthy solution
http://vormplus.be/blog/article/mirroring-video-with-openframeworks

but also arturo suggests just a single line will do the trick
video.draw(video.getWidth(),0,-video.getWidth(),video.getHeight());

In my case I simply added
grabber.getPixelsRef().mirror(false, true);
after
grabber.update();
in the ofApp update method.


Viewing all articles
Browse latest Browse all 40524

Trending Articles