我正在使用带有相机模块(Raspberry pi相机)的Raspberry pi安装在无人机上并编程在固定间隔后拍照。但是,如下图所示,图像似乎有点不一致。
与其他图像相比,图像4和8看起来略微“有色”,并且看起来更饱和。但是,由于默认饱和度为0且我的代码没有改变,我相信它是另一回事。我的python脚本如下所示
def calibrate(t):
with picamera.PiCamera() as camera:
time.sleep(t)
camera.shutter_speed = camera.exposure_speed
ss=camera.shutter_speed
camera.still_stats = 'true'
camera.exposure_mode = 'off'
g = camera.awb_gains
camera.awb_mode = 'off'
camera.awb_gains = g
camera.close()
return ss,g
def capture(ss,g,stream):
with picamera.PiCamera() as camera:
camera.resolution = (3280,2464)
camera.shutter_speed = ss
camera.still_stats
camera.exposure_mode = 'off'
camera.awb_mode = 'off'
camera.awb_gains = g
camera.still_stats = 'true'
camera.capture(stream,format='jpeg')
camera.close()
在拍摄任何校准相机的照片之前,我会调用校准功能。校准后,我拍照并得到这个问题。有谁知道如何解决这个问题?