from maix import camera, display, image
exp, gain = 10000, 100 # 初值,exp 曝光[0, 65536],gain 增益[16 - 1024],随意设置得值会受到驱动限制。 exp, gain = exp +2, gain + 2
camera.config(exp_gain=(exp, gain))
while True:
    img = camera.capture()
    display.show(img)

根据实际情况设置。