1. A method of de-skewing a digital image comprising: receiving an input camera image; identifying text within the input camera image; determining a text direction of the identified text to determine text lines within the camera image; creating a three-dimensional de-skewing transformation of the text lines to make the text lines horizontal; and applying the de-skewing transformation to the input camera image to form a de-skewed output image.