导航

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

    p5qc 发布的帖子

    • cnn神经网络识别数字可以识别彩色数字吗?

      直接改为RGB似乎不行啊

      发布在 OpenMV Cam
      P
      p5qc
    • RE: 为什么圆形识别率这么低啊

      我试过二值化,效果不是很好,边缘检测还行但是容易看不到

      发布在 OpenMV Cam
      P
      p5qc
    • 对比度比较低识别率大幅下降怎么办?

      0_1573g

      import sensor, image, time
      
      sensor.reset()
      sensor.set_pixformat(sensor.GRAYSCALE) # grayscale is faster
      sensor.set_framesize(sensor.QVGA)
      sensor.skip_frames(time = 2000)
      clock = time.clock()
      
      while(True):
          clock.tick()
          img = sensor.snapshot().lens_corr(1.2)
      
          # Circle objects have four values: x, y, r (radius), and magnitude. The
          # magnitude is the strength of the detection of the circle. Higher is
          # better...
      
          # `threshold` controls how many circles are found. Increase its value
          # to decrease the number of circles detected...
      
          # `x_margin`, `y_margin`, and `r_margin` control the merging of similar
          # circles in the x, y, and r (radius) directions.
      
          # r_min, r_max, and r_step control what radiuses of circles are tested.
          # Shrinking the number of tested circle radiuses yields a big performance boost.
      
          for c in img.find_circles(threshold = 3500, x_margin = 15, y_margin = 15, r_margin = 15,
                  r_min = 2, r_max = 100, r_step = 2):
              img.draw_circle(c.x(), c.y(), c.r()+2, color = (255, 0, 0))
              print(c)
      
          print("FPS %f" % clock.fps())
      
      
      发布在 OpenMV Cam
      P
      p5qc
    • 为什么圆形识别率这么低啊
      import sensor, image, time
      
      sensor.reset()
      sensor.set_pixformat(sensor.RGB565) # grayscale is faster
      sensor.set_framesize(sensor.QQVGA)
      sensor.skip_frames(time = 2000)
      clock = time.clock()
      
      while(True):
          clock.tick()
          img = sensor.snapshot().lens_corr(1.8)
      
          # Circle objects have four values: x, y, r (radius), and magnitude. The
          # magnitude is the strength of the detection of the circle. Higher is
          # better...
      
          # `threshold` controls how many circles are found. Increase its value
          # to decrease the number of circles detected...
      
          # `x_margin`, `y_margin`, and `r_margin` control the merging of similar
          # circles in the x, y, and r (radius) directions.
      
          # r_min, r_max, and r_step control what radiuses of circles are tested.
          # Shrinking the number of tested circle radiuses yields a big performance boost.
      
          for c in img.find_circles(threshold = 3500, x_margin = 15, y_margin = 15, r_margin = 15,
                  r_min = 20, r_max = 100, r_step = 2):
              img.draw_circle(c.x(), c.y(), c.r(), color = (255, 0, 0))
              print(c)
      
          print("FPS %f" % clock.fps())
      
      

      0_1573711953417__Wng

      发布在 OpenMV Cam
      P
      p5qc