Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Portrait orientation on Android

I am building an app based on one of the OpenCV for Android samples in v2.4.4. I need to change the orientation to portrait. Supposedly, setting the rotation in the app manifest file and using the setDisplayOrientation method should do this. However, like some others who've posted, setDisplayOrientation doesn't change the orientation of the video image. I can't find anything but suggestions to use that, yet there seems to be very little evidence that it works. Can someone who knows the inner workings of the OpenCV for Android stuff please comment on this?

Portrait orientation on Android

I am building an app based on one of the OpenCV for Android samples in v2.4.4. I need to change the orientation to portrait. Supposedly, setting the rotation in the app manifest file and using the setDisplayOrientation method should do this. However, like some others who've posted, setDisplayOrientation doesn't change the orientation of the video image. image on my device. I can't find anything but suggestions to use that, yet there seems to be very little evidence that it works. Can someone who knows the inner workings of the OpenCV for Android stuff please comment on this?