Opencv 发现轮廓 findContours

vector<vector<Point>> vec_p;
vector<Vec4i> vec_4f;

findContours(img_canny1, vec_p, vec_4f,RETR_TREE, CHAIN_APPROX_SIMPLE, Point(0, 0));

drawContours(img3, vec_p, i, color_1, 2, 8, vec_4f, 0, Point(0, 0));

 

posted @ 2018-10-02 16:25  西北逍遥  阅读(2714)  评论(0编辑  收藏  举报