A program using pyramid scaling, Canny, contours and contour simplification to find squares in the input image.