An apparatus, system, method, and computer program product is disclosed,
each capable of correcting distortion in a scanned image, using at least
a character line extracted from the scanned image. The character line is
extracted based on a circumscribed rectangle, representing the vertical
component of the character. The distortion in the scanned image is
corrected based on the length of the circumscribed rectangle in the main
scanning direction.