xenpac / sun4i_csi

new OV5640 Camera Driver CSI A20 Lemaker BPI Banana Pi, Linux Sunxi Kernel 3.4.xx
9 stars 3 forks source link

Query regarding zoom_image #3

Open anuprao opened 4 years ago

anuprao commented 4 years ago

Hi ! This is not an issue but a query.

Thank you for publishing your code. It is very helpful.

I am trying to obtain a 320x240 crop from a (2592x1944) on OV5640 setup.

I used the zoom_image function in your code to generate values for cropping. But I get only black image returned as data from sensor.

All the register values generated by the function are set in the same order.

Is there anything else I should look at ?

Regards, Anup

xenpac commented 4 years ago

Hi Anup,

Have a look at sourcefile gc0308.c to learn using the zoom_image function. This will crop to any size with varying fps. There is a standard 320X240 resolution init sequence in ov5640.c that you can select with your viewer like vlc or cheese.. black picture could be timing problems.

anuprao commented 4 years ago

Thank you for your inputs, will try it out and reply back.