Approximates a polygonal curve(s) with the specified precision.
cv2.approxPolyDP(curve, epsilon, closed[, approxCurve]) → approxCurve
cv2.findContours
and using one contour as this input parameter.
The function approxPolyDP
approximates a curve or a polygon with another curve/polygon with less vertices so that the distance between them is less or equal to the specified precision. It uses the Douglas-Peucker algorithm.