Skip to main content

approximate_polygon

Function approximate_polygon 

pub fn approximate_polygon(
    contour: &Contour,
    epsilon: f64,
) -> Result<Contour, VisionError>
Expand description

Simplifies a closed contour with Ramer–Douglas–Peucker approximation.