My aim is to enforce a short exposure time (of 10000 us) to freeze the motion of fast objects when detecting (with frame differencing) them in an environment with changing lights. Thus, I need exposure control while white balance and gain are still automatic, just like in any camera “S” (shutter speed) control mode.
I thought it would be enough to do:
exposure_us = 10000)
and then the camera would automatically adjust the gain to keep obtaining a bright enough image in all conditions, since white balance and gain are automatic by default?
However, when doing this, the somehow the image keeps being dark, and I don’t want to set a manual gain dB value due to the changing light. Is it the night_mode that causes problems?