2025-06-04 8:07 PM - last edited on 2025-06-05 2:43 AM by Andrew Neil
I am using the STM32N6570-DK kit, and I want to use the camera to capture 224*160 size image, but I don't know how to do this, the sample programs are all about 800*480,and I can't understand the configuration of the downsize.
The lines below can change the original 2592*1944 size into 800*480, but how? When initializing the IMX335 sensor, it was set to capture the 2592*1944 size image.
/* Configure the downsize */
DonwsizeConf.HRatio = 25656;
DonwsizeConf.VRatio = 33161;
DonwsizeConf.HSize = 800;
DonwsizeConf.VSize = 480;
DonwsizeConf.HDivFactor = 316;
DonwsizeConf.VDivFactor = 253;