导航

    • 登录
    • 搜索
    • 版块
    • 产品
    • 教程
    • 论坛
    • 淘宝
    1. 主页
    2. kozh
    K
    • 举报资料
    • 资料
    • 关注
    • 粉丝
    • 屏蔽
    • 帖子
    • 楼层
    • 最佳
    • 群组

    kozh

    @kozh

    0
    声望
    3
    楼层
    607
    资料浏览
    0
    粉丝
    0
    关注
    注册时间 最后登录

    kozh 关注

    kozh 发布的帖子

    • 例子“find_apriltags.py”无法识别TAG16H5等类型的April tag码,这是为什么?
      # This work is licensed under the MIT license.
      # Copyright (c) 2013-2023 OpenMV LLC. All rights reserved.
      # https://github.com/openmv/openmv/blob/master/LICENSE
      #
      # AprilTags Example
      #
      # This example shows the power of the OpenMV Cam to detect April Tags
      # on the OpenMV Cam M7. The M4 versions cannot detect April Tags.
      
      import sensor
      import time
      import math
      
      sensor.reset()
      sensor.set_pixformat(sensor.RGB565)
      sensor.set_framesize(sensor.QQVGA)
      sensor.skip_frames(time=2000)
      sensor.set_auto_gain(False)  # must turn this off to prevent image washout...
      sensor.set_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 = sensor.snapshot()
          for tag in img.find_apriltags():
              img.draw_rectangle(tag.rect, color=(255, 0, 0))
              img.draw_cross(tag.cx, tag.cy, color=(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())
      
      

      我并没有对代码进行任何修改,也尝试识别了其他类型的代码,发现只能识别出TAG36H11的April tag。请问这是为什么?April tag码都是用Openmv IDE的编译器生成的。

      发布在 OpenMV Cam
      K
      kozh
    • April tag的例子为何识别不出来TAG16H5

      April tag的例子为何识别不出来TAG16H5?但能够正常识别识别TAG36H11(其他类型的April Tag码还没有尝试)。我把代码改成旧版本的会弹出“以下错误”。有没有人知道如何解决?![0_1739412198979_1739411838865.png](https://fcdn.singtown.com/fb8306a0-812f-4fda-8b7e-b0_1739413044409_1739413023483.png 9f36f63acba.png)

      发布在 OpenMV Cam
      K
      kozh