Rotating Android Camera to Portrait
I am implementing the Android OpenCV SDK to make a camera app. I would like it to work for multiple UI orientations. I am extending the JavaCameraView in SDK 2.4.3.2. I am trying to figure out how to rotate the camera. I know what I have to do is write something like this
camera.setDisplayOrientation(90);
to get it to work in portrait, but I have tried it in multiple places, and none have worked for me. The camera still displays "sideways". If anyone has done a similar thing, please let me know
Here is a similar question: http://answers.opencv.org/question/7143/mirror-image-on-android-front-camera/
@jameo Did you find an answer?
You ever find an answer to this? There seems to not be a solution anywhere on the internet for this. cam.setDisplayOrientation(90) simply doesn't work. Any other solutions (like itay's posted below) out there rely on pixel manipulations that vastly degrade the framerate....
Is this really still active?