导航

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

    17826808312

    @17826808312

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

    17826808312 关注

    17826808312 发布的帖子

    • 如何用边缘检测算法进行检测

      0_1565188910713_5e34c7529999a3258ccff002c13dffc.png
      这是我二值化以后的图像,请问可以用边缘检测算法检测出格子里面的圆吗,如果可以的话,应该怎么做呢

      发布在 OpenMV Cam
      1
      17826808312
    • 老师,我想获取二值化图像中某一块区域内所有白色像素点的个数的和,也就是像素点的总数

      回复: 请问如何统计二值化图像的白色像素点
      我看到可以用statistics来进行统计的,但是它只有灰度值的平均数、众数这些并没有我要的像素点的总数,请问还有其他方法吗?

      发布在 OpenMV Cam
      1
      17826808312
    • 摄像头反光太严重怎么办

      要识别的物体因为灯光原因,反光比较严重,如何去除图像中的反光

      发布在 OpenMV Cam
      1
      17826808312
    • 如何计算圆到openmv的距离

      老师,请问openmv识别到的圆可以通过返回的圆相对于镜头的坐标c.x()和c.y()来计算圆到镜头的距离吗?我知道apriltag标签是可以的,它有返回x,y,z三个方向上的坐标,但是圆只有x和y,没有z,想知道是否可以计算出距离呢?

      发布在 OpenMV Cam
      1
      17826808312
    • 如何把想要的roi区域用矩形框给框起来?

      老师理论上可以用画矩形的这个函数把我想要的roi区域给框起来吗?我试了下面这个报错了。。

      img.draw_rectangle(roi=(0,000,160,80), color = (0, 255, 0))
      
      发布在 OpenMV Cam
      1
      17826808312
    • RE: 如何截取需要的图像?

      @kidswong999 老师理论上可以用画矩形的这个函数把我想要的roi区域给框起来吗?我试了下面这个报错了。。

      img.draw_rectangle(roi=(0,000,160,80), color = (0, 255, 0))
      
      发布在 OpenMV Cam
      1
      17826808312
    • RE: 如何截取需要的图像?

      @kidswong999 老师你看一下,为什么我这边的ROI不起作用,是程序写得不对吗?

      import sensor, image, time, math
      ROI = [(50,100,50,80)]
      
      sensor.reset()
      sensor.set_pixformat(sensor.RGB565)
      sensor.set_framesize(sensor.QQVGA) # we run out of memory if the resolution is much bigger...
      sensor.skip_frames(time = 2000)
      sensor.set_auto_gain(False)  # must turn this off to prevent image washout...
      sensor.set_auto_whitebal(False)  # must turn this off to prevent image washout...
      clock = time.clock()
      
      tag_families = 0
      tag_families |= image.TAG16H5 # comment out to disable this family
      tag_families |= image.TAG25H7 # comment out to disable this family
      tag_families |= image.TAG25H9 # comment out to disable this family
      tag_families |= image.TAG36H10 # comment out to disable this family
      tag_families |= image.TAG36H11 # comment out to disable this family (default family)
      tag_families |= image.ARTOOLKIT # comment out to disable this family
      
      def family_name(tag):
          if(tag.family() == image.TAG16H5):
              return "TAG16H5"
          if(tag.family() == image.TAG25H7):
              return "TAG25H7"
          if(tag.family() == image.TAG25H9):
              return "TAG25H9"
          if(tag.family() == image.TAG36H10):
              return "TAG36H10"
          if(tag.family() == image.TAG36H11):
              return "TAG36H11"
          if(tag.family() == image.ARTOOLKIT):
              return "ARTOOLKIT"
      
      for t in ROI:    
          while(True):
              clock.tick()
              img = sensor.snapshot()
              for tag in img.find_apriltags(families=tag_families): # defaults to TAG36H11 without "families".
                  img.draw_rectangle(tag.rect(), color = (255, 0, 0))
                  img.draw_cross(tag.cx(), tag.cy(), color = (0, 255, 0))
                  print_args = (family_name(tag), tag.id(), (180 * tag.rotation()) / math.pi)
                  print("Tag Family %s, Tag ID %d, rotation %f (degrees)" % print_args)
              print(clock.fps())
      
      
      发布在 OpenMV Cam
      1
      17826808312
    • RE: 如何截取需要的图像?

      @kidswong999 有获取矩形ROI区域的例程吗?

      发布在 OpenMV Cam
      1
      17826808312
    • RE: 如何截取需要的图像?

      有没有现有的例程啊?

      发布在 OpenMV Cam
      1
      17826808312