导航

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

    1qx5

    @1qx5

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

    1qx5 关注

    1qx5 发布的帖子

    • RE: 怎么获取img.find_circles()找到的圆形个数呢

      @kidswong999 反倒是扫到多个圆形以后他只会输出1

      发布在 OpenMV Cam
      1
      1qx5
    • RE: 怎么获取img.find_circles()找到的圆形个数呢

      @kidswong999 阈值也没有问题,可以确定扫到的只有一个轮廓。

      发布在 OpenMV Cam
      1
      1qx5
    • RE: 怎么获取img.find_circles()找到的圆形个数呢

      @kidswong999 只扫一个圆他会输出1-4个个数

      发布在 OpenMV Cam
      1
      1qx5
    • RE: 怎么获取img.find_circles()找到的圆形个数呢

      @kidswong999 我现在用的就是这种方法可是他不准。

      发布在 OpenMV Cam
      1
      1qx5
    • RE: 自动增益为什么有时候会失效

      @kidswong999 在 自动增益为什么有时候会失效 中说:

      你要把set_auto_gain放到reset下面,否则reset会重置所有的设置。
      而且最好放到2s延迟后面。

      sensor.reset()
      sensor.set_pixformat(sensor.RGB565) # grayscale is faster
      sensor.set_framesize(sensor.QQVGA)
      sensor.skip_frames(time = 2000)
      sensor.set_auto_gain(False)
      
      发布在 OpenMV Cam
      1
      1qx5
    • RE: 自动增益为什么有时候会失效

      @kidswong999 谢谢!

      发布在 OpenMV Cam
      1
      1qx5
    • RE: 自动增益为什么有时候会失效

      enable_lens_corr = False # turn on for straighter lines...

      import sensor, image, time
      sensor.set_auto_gain(False)
      sensor.reset()
      sensor.set_pixformat(sensor.RGB565) # grayscale is faster
      sensor.set_framesize(sensor.QQVGA)
      sensor.skip_frames(time = 2000)
      clock = time.clock()

      min_degree = 0
      max_degree = 179

      while(True):
      clock.tick()
      img = sensor.snapshot()
      if enable_lens_corr: img.lens_corr(1.8) # for 2.8mm lens...

      for l in img.find_lines(threshold = 1000, theta_margin = 30, rho_margin = 30):
          if (min_degree <= l.theta()) and (l.theta() <= max_degree):
              img.draw_line(l.line(), color = (255, 0, 0))
              print(l)
      
      
      print("FPS %f" % clock.fps())
      发布在 OpenMV Cam
      1
      1qx5
    • 自动增益为什么有时候会失效

      用的是这个函数sensor.set_auto_gain(False)

      发布在 OpenMV Cam
      1
      1qx5
    • RE: 为什么霍夫变换查找直线检测不到到黄色直线?

      0_1557905016485_无标题.png

      发布在 OpenMV Cam
      1
      1qx5