What python library would be useful in creating an equation from an image of straight edges. Something that would take an image, divide it up into a xy grid, recognize that there is a straight line and find the linear equation of that line with respect to the xy grid.
What I plan to do is detect the two sides of a rectangular shape and calculate the equations of the perpendicular lines. I don't need any code but the names of some relevant imaging libraries would be helpful.