导航

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

    ylwr

    @ylwr

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

    ylwr 关注

    ylwr 发布的帖子

    • 关于补光板的使用时如何串口通讯

      在使用补光板时,补光板的插线插满了openmv的所有口,但实际用到的只有p6,其他都没啥用,用了补光板我还怎么串口通讯啊?没办法向外接线了,这种情况如何处理?

      发布在 OpenMV Cam
      Y
      ylwr
    • 使用锂电池单独供电时为何无法用串口调试app读取到信息

      在使用串口调试扩展板的时候,要是直接使用锂电池给openmv供电,为什么看不到串口三传过来的信息呢?(主程序已经更改,在板子和扩展板全连接电脑是可以看到,但是接锂电池脱机运行的时候就看不到了),顺便问下我怎么看到串口是否成功发送信息呢?

      发布在 OpenMV Cam
      Y
      ylwr
    • 请问openmv怎么设置一个ROI区域,让颜色识别仅限于在此区域内呢?

      请问openmv怎么设置一个ROI区域,让颜色识别仅限于在此区域内呢?

      发布在 OpenMV Cam
      Y
      ylwr
    • 当openmv同时识别qr码和条形码时,fps会变得很小导致很卡顿,怎么办?
      # 条形码识别例程
      #
      # 这个例子展示了使用OpenMV Cam M7来检测条形码是多么容易。条形码检测不适用于M4相机。
      
      import sensor, image, time, math
      
      sensor.reset()
      sensor.set_pixformat(sensor.RGB565)
      sensor.set_framesize(sensor.VGA) # High Res!
      sensor.set_windowing((320, 100)) # V Res of 80 == less work (40 for 2X the speed).
      sensor.skip_frames(time = 2000)
      sensor.set_auto_gain(False)  # 必须关闭此功能,以防止图像冲洗…
      sensor.set_auto_whitebal(False)  # 必须关闭此功能,以防止图像冲洗…
      clock = time.clock()
      
      # 条形码检测可以在OpenMV Cam的OV7725相机模块的640x480分辨率下运行。
      # 条码检测也将在RGB565模式下工作,但分辨率较低。 也就是说,
      # 条形码检测需要更高的分辨率才能正常工作,因此应始终以640x480的灰度运行。
      
      while(True):
          clock.tick()
          img = sensor.snapshot()
          img.lens_corr(1.8) # strength of 1.8 is good for the 2.8mm lens.
          barcodes = img.find_barcodes()
          qrcodes=img.find_qrcodes()
          for barcode in barcodes:
              img.draw_rectangle(barcode.rect(), color = (0, 255, 0))
             #print_args = (barcode_name(code), code.payload(), (180 * code.rotation()) / math.pi, code.quality(), clock.fps())
              #print("Barcode %s, Payload \"%s\", rotation %f (degrees), quality %d, FPS %f" % print_args)
              message1=barcode.payload()
              print(message1,clock.fps())
          for qrcode in img.find_qrcodes():
              img.draw_rectangle(qrcode.rect(), color = (255, 0, 0))
              message2=qrcode.payload()
              print(message2,clock.fps())
          if not barcodes and qrcodes:
              print("FPS %f" % clock.fps())
      

      0_1665154741535_Screenshot_2022-10-07-22-56-09-68_9d26c6446fd7bb8e41d99b6262b17def.jpg

      发布在 OpenMV Cam
      Y
      ylwr