{% 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 %} {% endblock %} {% block 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.

{% endblock %} {% block references %} {% endblock %}