Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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. If anyone has done a similar thing, please let me know

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