The first picture below is the original image, showing a net. The ropes in the net are of two types: thick and thin. It is necessary to distinguish which are thick ropes and which are thin ropes through OpenCV, and measure their angles respectively.
I used OpenCV to draw straight lines along the contours and could calculate the angles based on the lines. However, I encountered difficulties in calculating the width of the ropes. Currently, I calculate the distance between the edge lines, but this leads to two situations: the width of the rope itself and the width of the rope gap. There are even more problems. I wonder if there is a more accurate and stable way to measure the width of the ropes?