导航

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

    go3a 创建的帖子

    • G

      为什么我识别橙红色的时候,把白色也识别出来了?看图中颜色区域为橙红色,而串行终端输出了白色和橙红色,求解答谢谢
      OpenMV Cam • • go3a

      2
      0
      赞同
      2
      楼层
      1386
      浏览

      那说明白色阈值没调好。
    • G

      为什么在识别的时候帧率一直下降,还一卡一卡的,求解答,谢谢各位!
      OpenMV Cam • • go3a

      2
      0
      赞同
      2
      楼层
      1460
      浏览

      find_circles函数比较慢,你应该把103行,和115行,合并在一起。 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()) statistics = img.get_statistics(roi=area) #像素颜色统计 if 75<statistics.l_mode()<100 and -27<statistics.a_mode()<96 and -7<statistics.b_mode()<31: img.draw_circle(c.x(), c.y(), c.r(), color = (255, 0, 0)) #识别到的白色圆形用红色的圆框出来 print("白",c.x(),c.y()) if 30<statistics.l_mode()<100 and 5<statistics.a_mode()<73 and -42<statistics.b_mode()<32: img.draw_circle(c.x(), c.y(), c.r(), color = (255, 0, 0)) #识别到的粉色圆形用红色的圆框出来 print("粉",c.x(),c.y())