1
1zct
@1zct
0
声望
7
楼层
823
资料浏览
0
粉丝
0
关注
1zct 发布的帖子
-
为什么openmv运行一段时间后会亮度降低,画面很暗?
import sensor, image, time import struct,pyb from pyb import UART sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) #分辨率320x240(宽*高) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # 颜色识别关闭自动增益和白平衡 sensor.set_auto_whitebal(False, rgb_gain_db = (-8.75391, -2.02073, -6.40891)) sensor.set_vflip(True) #垂直翻转 sensor.set_hmirror(True) #水平翻转 sensor.set_brightness(3) #调整图像亮度 clock = time.clock() while(True): clock.tick() #img = sensor.snapshot() img = sensor.snapshot().lens_corr(strength = 1.8, zoom = 1.0) # 从感光芯片获得一张图像并进行畸变的矫正