1. A method for detecting line segments in images, the method comprising: receiving an image taken by a camera; computing, using a processor, line segment array metrics for the image; finding, using the processor, a first maximum metric from the line segment array metrics; and determining, using the processor, a first line segment for the first maximum metric, wherein a processed image is created.