approxPolyDP

Description

Approximates a polygonal curve(s) with the specified precision.

Signature

cv2.approxPolyDP(curve, epsilon, closed[, approxCurve]) → approxCurve

Parameters

Explanation

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.


References

Created with OpenCV 4.4.0