2015-07-04 10:11:17 -0600 | asked a question | opencv for android---Can preview portrait How to make the preview vertical screen |
2015-04-07 10:01:28 -0600 | asked a question | The direction of the camera to capture the preview not sent 90 degrees clockwise rotation Hi I have modified the official sample program, but I found out that my picture when I installed on a mobile phone preview of the interface is not what I expected, is the longitudinal preview, vertical shooting, with my mobile phone in the mobile phone screen is horizontal structure, interface is horizontal, it is not a full screen, I'd like to longitudinal preview the camera to capture images, just to longitudinal preview, could you tell me how to modify my program? Thank you for your help! ///////////////////////////////////////////////////////////// I modified the official program is OpenCV Tutorial 1 - Camera Preview: Which modified the AndroidManifest. XML content is as follows: android:screenOrientation="portrait" android:configChanges="keyboardHidden|screenSize" Mainactivity.xml <org.opencv.android.javacameraview android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/fd_activity_surface_view"/> |