logo

完整情况为 插入USB线 闪绿灯 闪蓝灯 连接 不亮 开始跑例子 闪绿灯 断开 闪蓝灯 求求大佬们 现在真的很急

2025-07-30 16:46
7
xms1
import sensor
import time

sensor.reset()
sensor.set_pixformat(sensor.RGB565)  # grayscale is faster (160x120 max on OpenMV-M7)
sensor.set_framesize(sensor.QQVGA)
sensor.skip_frames(time=2000)
clock = time.clock()

while True:
    clock.tick()
    img = sensor.snapshot()

    # `threshold` below should be set to a high enough value to filter out noise
    # rectangles detected in the image which have low edge magnitudes. Rectangles
    # have larger edge magnitudes the larger and more contrasty they are...

    for r in img.find_rects(threshold=10000):
        img.draw_rectangle(r.rect(), color=(255, 0, 0))
        for p in r.corners():
            img.draw_circle(p[0], p[1], 5, color=(0, 255, 0))
        print(r)

    print("FPS %f" % clock.fps())
image
2025-07-31 11:06
Z
星小瞳xs

更新固件或者重新烧录固件后尝试吧

2025-07-31 14:07
7
xms1

下单了一个新的,谢谢官方您的回应我的·问题 ,我看升级固件的视频是很早之前的了,打开现在的固件升级DFU非常迷茫,不会使用,我的H7 PLUS 可以跑其他例子,但对于识别矩形的例子无法跑,怀疑是其他问题,固件通过常规升级到最新版本了已经,但仍然无法使用,可以再教教我。QQ:783885191