Closed rihani closed 8 years ago
you can rotate the camera or monitor? monitor rotate linux,windows.... camera rotate videoGrabber->setRotation(ROTATION_90); videoGrabber->setRotation(272); etc...
I think example-direct-mode-transform has this as a demo - take a look at that
I don't have the camera hooked up at the moment to try it
I get the following error
error: base operand of ‘->’ has non-pointer type ‘ofxRPiCameraVideoGrabber’
videoGrabber->setRotation(ROTATION_90);
I do insert this in keyPressed function but don't mind setting this during setup()
void ofApp::keyPressed (int key)
{
ofLog(OF_LOG_VERBOSE, "%c keyPressed", key);
if (key == 'e')
{
videoGrabber.setImageFilter(filterCollection.getNextFilter());
}
if(key == 'm')
{
videoGrabber->setRotation(ROTATION_90);
}
....
the error says it's not a pointer in your code, change
videoGrabber->setRotation(ROTATION_90);
to
videoGrabber.setRotation(ROTATION_90);
managed to do it using
videoGrabber.setDisplayRotation(rotation);
thanks
i managed to spin the camera 180 degrees using
videoGrabber.setRotation(ROTATION_180);
however how can i flip/mirror the camera vertically
videoGrabber.setMirror(MIRROR_VERTICAL);
Hi,
how could i rotate the screen please thanks