Hello OpenCV Sample - camera view rotated by 90deg anticlockwise
I refered the documentation provided at Android Development with OpenCV to create a Hello OpenCV Sample.
On launching the application in my Android Device (version 4.4.4), the camera view being rendered on screen is rotated by 90 degrees anticlockwise.
I am not sure if this is the expected behavior of the application. If not, is there some way to fix it?
Code is exactly same as that provided in this link for the Hello OpenCV example. There are no errors shown in logs. I am using Eclipse Juno with Android Development Tools (ADT) and OpenCV library - 2.4.9. Project build target is set as Android 4.1.2 (API level 16).
Cant this be set inside the android SDK, where you control the landscape or portrait mode visualisation?
I am not sure how to set that for incoming camera feed. The application orientation (landscape/portrait) itself can be set by adding android:configChanges="orientation" and android:screenOrientation="portrait" in the AndroidManifest file.