I have no direct answer, but if you want to separate the straight and bent objects you could also try to compare them to their convex hull images (assuming that bent objects actually have concave segmentation masks).
So for example, if the convex hull image of a mask is 20% bigger or more, then the object is bent. Else, it's straight.
Grove_street_home t1_iso2syg wrote
Reply to [D] Clustering after instance segmentation by vocdex
I have no direct answer, but if you want to separate the straight and bent objects you could also try to compare them to their convex hull images (assuming that bent objects actually have concave segmentation masks).
So for example, if the convex hull image of a mask is 20% bigger or more, then the object is bent. Else, it's straight.