Navigation

    • Login
    • Search
    • 版块
    • 产品
    • 教程
    • 论坛
    • 淘宝
    1. Home
    2. 5i2l
    5
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    5i2l

    @5i2l

    0
    Reputation
    8
    Posts
    621
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    5i2l Follow

    Posts made by 5i2l

    • RE: Apriltag 怎么使用TAG16H5?

      报错:
      SyntaxError: non-keyword arg after keyword arg

      百度了一下没看明白错在哪

      posted in OpenMV Cam
      5
      5i2l
    • Apriltag 怎么使用TAG16H5?
      f_x = (2.8 / 3.984) * 160 # 默认值
      f_y = (2.8 / 2.952) * 120 # 默认值
      c_x = 320 * 0.5 # 默认值(image.w * 0.5)
      c_y = 240 * 0.5 # 默认值(image.h * 0.5)
      
      def degrees(radians):
          return (180 * radians) / math.pi
      
      while(True):
          clock.tick()
          img = sensor.snapshot()
          for tag in image.find_apriltags(families=image.TAG36H11, f_x, f_y, c_x, c_y):
              
              print("Tx: %f, Ty %f, Tz %f, Rx %f, Ry %f, Rz %f" % print_args)
      
      posted in OpenMV Cam
      5
      5i2l
    • RE: 怎么把openmv采集的图片通过frame buffer打开?

      0_1617090088580_捕获2.PNG

      posted in OpenMV Cam
      5
      5i2l
    • RE: 怎么把openmv采集的图片通过frame buffer打开?

      这个图片我是先通过新建数据集,用openmv拍摄保存的,但是格式是jpg格式,后来我又通过格式工厂改成了bmp的格式,复制到openmv的盘里

      posted in OpenMV Cam
      5
      5i2l
    • RE: 怎么把openmv采集的图片通过frame buffer打开?

      0_1617089557235_捕获1.PNG

      posted in OpenMV Cam
      5
      5i2l
    • RE: 怎么把openmv采集的图片通过frame buffer打开?

      0_1617089520706_捕获.PNG

      posted in OpenMV Cam
      5
      5i2l
    • 怎么把openmv采集的图片通过frame buffer打开?
      # 复制图像到 framebuffer. 
      #
      # 这个例子展示了如何导入和粘贴一个图像到 framebuffer
      
      import sensor, image, time
      
      # 仍然需要初始化 sensor
      sensor.reset()
      # 设置 sensor
      sensor.set_contrast(1)
      sensor.set_gainceiling(16)
      
      # 设置sensor的像素格式
      sensor.set_framesize(sensor.QQVGA)
      sensor.set_pixformat(sensor.GRAYSCALE)
      
      # 导入 image
      img = image.Image("/00000.bmp", copy_to_fb=True)
      
      # 添加画线的代码
      # img.draw_line(...)
      
      # Flush FB
      sensor.flush()
      
      # Add a small delay to allow the IDE to read the flushed image.
      # 添加一个小的延迟,以允许IDE读取刷新后的图像
      time.sleep_ms(100)
      posted in OpenMV Cam
      5
      5i2l