- This script processes 2D curves from a CSV file to detect and regularize geometric shapes.
- Detected shapes are replaced with their regularized versions using OpenCV.
- Outputs a combined image visualizing the regularized shapes.
- smooth_points: Smooths the curve points using spline interpolation.
- interpolate_points: Interpolates points to create a denser set of coordinates.
- points_to_image: Converts a set of points into a binary image.
- detect_shapes: Detects shapes (circles, triangles, rectangles, etc.) within the curve.
- draw_shapes: Draws detected shapes or curves on a blank image.
- combine_images: Combines multiple images into a single large image.
- Load curve data from a CSV file.
- Smooth and interpolate the points for each curve.
- Convert points to an image and detect any geometric shapes.
- Replace detected shapes with regularized shapes and store results.
- Generate a combined image of all processed shapes.
- Image: Combined image of detected and regularized shapes.
- CSV: Updated coordinates of regularized shapes.