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

Flopping webcam input horizontally

$
0
0

or

ofPushMatrix();
ofTranslate(video.getWidth(),0);
ofScale(-1,1)
video.draw(0,0);
ofPopMatrix();

The grabber.getPixelsRef().mirror() approach will (AFAIK) be slower than the above or @arturo's method because it actually modifies the underlying pixels vs. using the graphics card to draw it to the screen flipped.


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>