导航

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

    18895377168

    @18895377168

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

    18895377168 关注

    18895377168 发布的帖子

    • RE: 请问这是摄像头读取不了颜色吗?可以读取的红色、绿色一类的都显示了LAB,但是黄色就显示fps,怎么解决呢???

      @kidswong999 黄色的不是LAB的阈值问题,就是摄像头读取不了,显示不出来。

      发布在 OpenMV Cam
      1
      18895377168
    • RE: 请问这是摄像头读取不了颜色吗?可以读取的红色、绿色一类的都显示了LAB,但是黄色就显示fps,怎么解决呢???

      @kidswong999

      import sensor, image, time
      
      sensor.reset()
      sensor.set_pixformat(sensor.RGB565)
      sensor.set_framesize(sensor.QQVGA)
      sensor.skip_frames(time = 2000)
      sensor.set_auto_gain(False) # must be turned off for color tracking
      sensor.set_auto_whitebal(False) # must be turned off for color tracking
      clock = time.clock()
      
      while(True):
          clock.tick()
          img = sensor.snapshot().lens_corr(1.8)
          for c in img.find_circles(threshold = 3500, x_margin = 10, y_margin = 10, r_margin = 10,
                  r_min = 2, r_max = 100, r_step = 2):
              area = (c.x()-c.r(), c.y()-c.r(), 2*c.r(), 2*c.r())
              #area为识别到的圆的区域,即圆的外接矩形框
              statistics = img.get_statistics(roi=area)#像素颜色统计
              print(statistics)
              #(0,100,0,120,0,120)是红色的阈值,所以当区域内的众数(也就是最多的颜色),范围在这个阈值内,就说明是红色的圆。
              #l_mode(),a_mode(),b_mode()是L通道,A通道,B通道的众数。
              if 0<statistics.l_mode()<100 and 0<statistics.a_mode()<127 and 0<statistics.b_mode()<127:#if the circle is red
                  img.draw_circle(c.x(), c.y(), c.r(), color = (255, 0, 0))#识别到的红色圆形用红色的圆框出来
              elif 0<statistics.l_mode()<100 and -64<statistics.a_mode()<-8 and -32<statistics.b_mode()<32:#if the circle is graeen
                  img.draw_circle(c.x(), c.y(), c.r(), color = (0, 255, 0))#识别到的绿色圆形用绿色的圆框出来
              elif 65<statistics.l_mode()<80 and -10<statistics.a_mode()<10 and 60<statistics.b_mode()<70:#if the circle is red
                   img.draw_circle(c.x(), c.y(), c.r(), color = (0, 0, 255))#识别到的黄色圆形用蓝色的圆框出来
              else:
                  img.draw_rectangle(area, color = (255, 255, 255))
                  #将非红色的圆用白色的矩形框出来
          print("FPS %f" % clock.fps())
      
      发布在 OpenMV Cam
      1
      18895377168
    • RE: 请问这是摄像头读取不了颜色吗?可以读取的红色、绿色一类的都显示了LAB,但是黄色就显示fps,怎么解决呢???

      @kidswong999 你好,请问是不是黄色摄像头不读?为啥这样显示呢?

      发布在 OpenMV Cam
      1
      18895377168
    • 请问这是摄像头读取不了颜色吗?可以读取的红色、绿色一类的都显示了LAB,但是黄色就显示fps,怎么解决呢???

      1_1555401001814_112.png 0_1555401001814_111.png

      发布在 OpenMV Cam
      1
      18895377168
    • 请问一下,刚刚升级了固件,这样的错误如何解决?

      0_1555398699822_222.png

      发布在 OpenMV Cam
      1
      18895377168
    • RE: openmv里面可以识别出来黄色吗?

      @kidswong999 谢谢

      发布在 OpenMV Cam
      1
      18895377168
    • openmv里面可以识别出来黄色吗?

      请直接回答一下这个问题,我调颜色跳不不来,视频也看了,求大佬,谢谢。
      黄色阈值= (xx,xx,xx,xx,xx,xx)

      发布在 OpenMV Cam
      1
      18895377168
    • RE: 求助-有关OPEN MV LED灯颜色识别代码

      请问该问题解决了吗?我也调试不出来。。

      发布在 OpenMV Cam
      1
      18895377168
    • 为什么我的没有菜单,没有file,没有windows呢???

      0_1555394851218_60514C34-A0CC-4806-93E4-B66E74E48C3A.png

      发布在 OpenMV Cam
      1
      18895377168