{% extends "base.html" %} {% block title %} approxPolyDP {% endblock %} {% block description %}
Approximates a polygonal curve(s) with the specified precision.
{% endblock %} {% block signature %}cv2.approxPolyDP(curve, epsilon, closed[, approxCurve]) → approxCurve{% endblock %} {% block parameters %}
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.