Exposure at startup on RT1062

Hello,
We have an application with IA and have an exposure problem.
Depending on the image below the camera at startup, the exposure at working time is different.
I have programmed:

sensor.set_framesize(sensor.QVGA)
sensor.set_pixformat(sensor.RGB565)
sensor.set_auto_whitebal(False, rgb_gain_db=(62.71649, 60.20714, 63.79094))
sensor.set_auto_gain(False)
sensor.set_auto_exposure(False)
sensor.skip_frames(time=1000)

I remember the thread: Sensor fixed gain/exposure not working
But this is from August 2020.
Is there something new about it?

Hi, that’s for a different image sensor.

You need to set the target exposure you want when you disable auto exposure:

sensor.set_auto_gain(False, gain_db=xxxxxx)
sensor.set_auto_exposure(False, exposure_us=xxxxxx)

Otherwise, the camera sensor will have just picked a value.