I have an image of an object that I would like to fit a polygon and extract the internal angles:
I tried to do that fitting lines to the edges of the object using Hough lines from the skimage package.
After that I calculated the angles between the lines. I had more lines than the ones that fitted to the edges of the object, so I had to exclude these lines manually. I have to repeat the algorithm with a large series of images, so I wonder if there is another way that would be simpler and I could apply to an entire stack of images?