Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Camera Orientation in Android App

Good morning to all. I have created an Android app that opens a video stream, extending the class JavaCameraView. The application should capture frames to process them. I have used, to realize this app, the tutorials contained in the OpenCV4Android package (version 2.4.5). I use Eclipse Juno, and my phone is a samsung s4, and surfing the web I realize that my problem is very common on many devices, including galaxy s,s2,s3,s4. My problem is that my camera, when is opened, in portrait mode results rotated of 90 degrees. It seems to be always in landscape orientation. I have read somewhere that it is possible to flip camera on the fly, but I have not understood how. Could someone help me?