1. An image processing method comprising: analysing an image of a portion of text, and detecting the inter-line spacing and the inter-word spacing across the area of the image; based on the inter-line and inter-word spacings, deriving a quadrilateral shape which represents the deformation of the text image from an undistorted image; modifying the image to perform perspective correction based on the derived quadrilateral.