


import sensor, image, time
sensor.reset() # 初始化sensor
sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE
#设置图像色彩格式,有RGB565色彩图和GRAYSCALE灰度图两种
sensor.set_framesize(sensor.QQVGA) # or sensor.QVGA (or others)
sensor.set_saturation(3)
sensor.set_contrast(3)
sensor.set_brightness(3)
sensor.skip_frames(time = 1000)
sensor.set_auto_exposure(False, 4532)
sensor.set_auto_gain(False,gain_db=8.95857)
sensor.set_auto_whitebal(False,rgb_gain_db=(-4.64378, -6.02073, -3.05939))
sensor.skip_frames(time = 3000)
clock = time.clock()
while(True):
clock.tick()
img = sensor.snapshot()#.find_edges(image.EDGE_CANNY,threshold=(70, 100))
'''cs=img.find_circles(threshold = 3000, x_margin = 50, y_margin = 50, r_margin = 10,r_min = 2, r_max = 100, r_step = 2)
if cs:
for c in cs:
img.draw_circle(c.x(), c.y(), c.r(), color = (255, 0, 0))
print(c)
else:
print("None")'''
print(clock.fps())使用的什么sensor,什么固件版本?
@kidswong999 OV7725,固件版本4.0.2
我使用OpenMV4 H7测试代码没有发现这个问题。
你的图片是IDE截图的吗?
IDE版本是多少?
@kidswong999 2.6.9版本IDE录制的帧缓冲区
所以你使用的录制工具出现的问题?截图有没有出现?
@kidswong999 我接LCD显示模块也是这样