导航

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

    h32p

    @h32p

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

    h32p 关注

    h32p 发布的帖子

    • RE: 在lcd上显示识别的二维码信息,要怎么修改

      就不能直接告诉我哪里有问题吗
      我就是按那个连接写的。

      发布在 OpenMV Cam
      H
      h32p
    • 在lcd上显示识别的二维码信息,要怎么修改
      import sensor, image, time,lcd
      
      sensor.reset()
      sensor.set_pixformat(sensor.RGB565)
      sensor.set_framesize(sensor.QVGA)
      sensor.skip_frames(time = 2000)
      sensor.set_auto_gain(False) # must turn this off to prevent image washout...
      clock = time.clock()
      
      while(True):
          clock.tick()
          img = sensor.snapshot()
          img.lens_corr(1.8) # strength of 1.8 is good for the 2.8mm lens.
          for code in img.find_qrcodes():
              img.draw_rectangle(code.rect(), color = (255, 0, 0))
              message = code.payload()
              img.draw_string(message)
              lcd.display(img)
              print(code)
          print(clock.fps())
      
      
      发布在 OpenMV Cam
      H
      h32p