FattanehPourakpour
FattanehPourakpour
The current code uses `np.argwhere`, which scans the boundaries in raster format and doesn’t accurately trace them. I explored both `cv2.findContours` and `trace_object_boundaries`. While both functions trace boundaries correctly, I...
I think the second suggestion to use complex curvature is logical because it retains the directional information of the curvature, ensuring that changes in angle are accurately represented.
I agree, the trace from `trace_object_boundaries` seems to capture the contours more accurately and matches the object’s boundaries better. Plus, in my tests, it performed faster than `cv2.findContours`.
Sure, I’ll prepare the pull request and check for any tests with stored expected values. If needed, I’ll update those values.