darsia.PolyDPSmoother#

class PolyDPSmoother(epsilon=0.01, closed=True, use_ratio=True)[source]#

Bases: ContourSmoother

OpenCV polygon approximation:

cv2.approxPolyDP

epsilon: either absolute pixels or ratio of arc length (if use_ratio=True).

Methods