how to remove straight lines or non-curvical lines in a canny image
A simple approach would be: Find connected components Find the minimum oriented bounding box Compute the aspect ratio of the box, and check if it’s too much elongated. On your image, I marked in red almost straight lines, and in green the curved lines. You can play with the threshold on the aspect ratio: Code: … Read more