Hello NXP Community,
We are currently trying to implement camera OV5645 on i.MX8MM running Android 9.0.0 2.3.0.
The current state is, that we are able to see a preview and take pictures with the default camera application which is coming with mentioned NXP BSP.
The problem is, preview and snapshot are rotated counterclockwise about 90° degrees.
I'v already tried to modify properties in init.rc without any results.
- setprop back_camera_orient 0
- setprop front_camera_orient 0
Preview and Snapshot still keeps rotated without any changes.
Do you have any suggestions where to modify rotation/orientation of the mounted camera device, to get preview and snapshot into the right direction?
Hi,
thanks for the reply, but this part of code never gets touched when using packages/apps/Camera2, wich gets delivered with BSP.
Or did you mean i should try to run a cts test to verify the orientation?
Best regards,
Daniel
Hello,
Could you please ref is cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/CameraOrientationActivity.java
And notice below code:
// set preview orientation
int degrees = mPreviewOrientations.get(mNextPreviewOrientation);
mCamera.setDisplayOrientation(degrees);
Could you please try modifying those functions and see if that can modify the camera orientation.
Best regards,
Diego.