i.MX8MM camera orientation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.MX8MM camera orientation

1,634 次查看
danielenderle
Contributor II

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?

标签 (1)
标记 (2)
0 项奖励
回复
2 回复数

1,528 次查看
danielenderle
Contributor II

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

0 项奖励
回复

1,528 次查看
diegoadrian
NXP Employee
NXP Employee

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.

0 项奖励
回复