pub fn approximate_polygon( contour: &Contour, epsilon: f64, ) -> Result<Contour, VisionError>
Simplifies a closed contour with Ramer–Douglas–Peucker approximation.