寻找轮廓
寻找轮廓
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); }
#######################
QQ 3087438119