i am trying to get thin line from a broad un-even needle object. I have followed the below step for the approach. Find the edges, use contours to remove small area regions, and