寻找轮廓

 

void Demo_FindContours()
{
    findContours(img3, vec_p, vec_4i, RETR_TREE, CHAIN_APPROX_SIMPLE, Point(0, 0));for (size_t j=0;j<vec_p.size();j++)
    {
        double length1 = arcLength(vec_p[j], false);
        double area1 = contourArea(vec_p[j]);
        if (area1<1255250 && area1>25000)
        {
            std::cout << area1 << std::endl;
            drawContours(img_1_1, convexs, j, color_1, 2, LINE_8, vec_4i, 0, Point(0, 0));
            convexs_f.push_back(convexs[j]);
        }
    }
    imshow(win2, img_1_1);
}

 

 

寻找轮廓

 

 

 

 

 

 

#######################

相关文章:

  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-09-25
  • 2021-12-06
  • 2022-12-23
猜你喜欢
  • 2021-10-10
  • 2021-11-28
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
相关资源
相似解决方案