logo

系统显示timed out怎么解决?

2023-07-25 19:37
F
gwg2
0da92d94-8a0a-464d-9c22-32d63de18d07.jpg
下面是代码

import sensor, image, time

threshold=[(25, 53, 40, 127, 7, 127),       #red
            (39, 74, -55, 23, -67, -28)]    #blue
ROI=(0,0,50,50)

sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVGA)
sensor.skip_frames(time = 2000)
sensor.set_auto_gain(False)
sensor.set_auto_whitebal(False)
clock = time.clock()

while(True):
    clock.tick()
    img = sensor.snapshot()
    for box in img.find_blobs(threshold,merge=True,invert=False,area_threshold=700,margin=30):
        img.draw_rectangle(box.rect())
        img.draw_cross(box.cx(),box.cy())
2023-07-31 12:59
O
cb1g

我固件和ide换了新版本就没事了