I've detected a few lines in an image. Four of them are the edges of a square depicted in the image. The projective transformation of the camera has of course been applied to all the lines, making it impossible to use regular metrics such as straight angles and so on.
If I draw four randomly chosen lines from the attached image. Is there any way to decide whether those lines are the edges of a square?