//利用曲线逼近,计算逼近曲线的长度
//首先创建一个逼近曲线
vector<Point2f> approx;
approxPolyDP(contours[i], approx, 2, true);
arcLength(contours[i], false);
double dstLength = arcLength(approx, true);
标签:approx,多边形,逼近,曲线,arcLength,opencv,contours,true
来源: https://www.cnblogs.com/lx17746071609/p/11666998.html