i.MX8MM camera orientation

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX8MM camera orientation

1,632件の閲覧回数
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,526件の閲覧回数
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,526件の閲覧回数
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 件の賞賛
返信