logo

OpenMV4 H7 Plus 运行 AprilTags 示例卡死并 USB 无法识别

2026-08-20 11:28
T
t9yjii8jq1ea

OpenMV4 H7 Plus 运行 AprilTags 示例卡死并 USB 无法识别

故障概述

使用 OpenMV4 H7 Plus 运行官方 AprilTags 示例代码时,识别短暂运行后即卡死,随后电脑端提示 USB 设备无法识别,IDE 断开连接。无报错信息输出。

关键信息

  • 故障类型:其他(非标准报错类)
  • 硬件型号:OpenMV4 H7 Plus
  • 固件版本:5.0.0
  • 参考来源:OpenMV 官方示例(AprilTags)
  • 用户确认硬件无额外配件,状态正常

复现代码

import csi
import time
import math

csi0 = csi.CSI()
csi0.reset()
csi0.pixformat(csi.RGB565)
csi0.framesize(csi.QQVGA)
csi0.snapshot(time=2000)
csi0.auto_gain(False) # must turn this off to prevent image washout...
csi0.auto_whitebal(False) # must turn this off to prevent image washout...

clock = time.clock()

# Note! Unlike find_qrcodes the find_apriltags method does not need lens correction on the image to work.
# Please use the TAG36H11 tag family for this script - it's the recommended tag family to use.

while True:
    clock.tick()
    img = csi0.snapshot()
    for tag in img.find_apriltags():
        img.draw_detection(tag, color1=(255, 0, 0), color2=(0, 255, 0))
        print_args = (tag.name, tag.id, (180 * tag.rotation) / math.pi)
        print("Tag Family %s, Tag ID %d, rotation %f (degrees)" % print_args)
    print(clock.fps())

附件

image
image
2026-08-20 16:26
Z
星小瞳xs

回退固件版本到4.8.1