OV5640 Camera Preview Strech for 800x480 screen resolution

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OV5640 Camera Preview Strech for 800x480 screen resolution

2,352 Views
skagitha
Contributor I

We designed our customized board based on sabresdq platform, ported android 4.4.2. It has 5MP OV5640 Mipi auto focus camera. According to our baord layout we had changed   setprop back_camera_orient 270 in init.rc file We  are able to capture images. During preview image is stretched , however captured image is not stretched.

 

Please find the images,driver attached.

Original Attachment has been moved to: ov5640_mipi.c.zip

Labels (3)
0 Kudos
2 Replies

1,940 Views
seann99
Contributor I

Hello,
hope your problem has been resolved.
Indeed, I am in a situation where I cannot capture an image at 5MP with the ov5640.
Could you please share me your pilot camera?
thank you in advance

0 Kudos

2,008 Views
jimmychan
NXP TechSupport
NXP TechSupport

I think it is depends the camera apps in Android. For example,

android - Camera preview stretched even after setting the correct dimensions - Stack Overflow 

One suggestion is that you can try to change the parameters in Android camera source code. please check the Ov5640Mipi.* in hardware/imx/mx6/libcamera2. Attached is the Android FAQ document. please read the section 25, 26 for more details about how to config the camera in Android.

Or you can add the resolution 800x480 in the ov5640 driver in kernel. But this you need to understand the ov5640 registers setting first. You may need to get the datasheet from OV.

0 Kudos