导航

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

    54bc

    @54bc

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

    54bc 关注

    54bc 发布的帖子

    • RE: 这里的两个帧头,我可以替换一个变成z轴的偏转吗

      就是说我可以在这里面塞一个z轴的偏转吗

      发布在 OpenMV Cam
      5
      54bc
    • 这里的两个帧头,我可以替换一个变成z轴的偏转吗
       if tag.x_translation() >= 0:
                  data = struct.pack("<bbiiibb",
                                      0xAA,     #帧头
                                      0xAE,     #帧头
                                      tag.id(), #数据id
                                      #x的坐标
                                      int(10000*tag.x_translation()),#数据1
                                      #z的坐标
                                      -int(10000*tag.z_translation()),#数据2
                                      0xBF,     #标志位表示大于零
                                      0xAC)     #帧尾
      
      发布在 OpenMV Cam
      5
      54bc
    • 如何讲apriltag的六个数值传输的stm32上?后面一部分看不懂不会改?
      c_x = 160 * 0.5 # 默认值(image.w * 0.5)
      c_y = 120 * 0.5 # 默认值(image.h * 0.5)图片位置
      
      def degrees(radians):
          return (180 * radians) / math.pi#计算弧度
      
      while(True):
          img = sensor.snapshot() # Take a picture and return the image.
      
         for tag in img.find_apriltags(fx=f_x, fy=f_y, cx=c_x, cy=c_y): # 默认为TAG36H11
          if blobs:
              print('sum :', len(apriltag))
              output_str = json.dumps(apriltag)
              for a in apriltag:
                  # Draw a rect around the blob.
                  img.draw_rectangle(a.rect()) # rect
                  img.draw_cross(a.cx(), a.cy()) # cx, cy
      
              print('you send:',output_str)
              uart.write(output_str+'\n')
          else:
              print('not found!')
      
      发布在 OpenMV Cam
      5
      54bc