A method to be used within a document image capture device, such as a
document scanner (10) of detecting and measuring the document skew (25)
while the document is still entering the imaging area and then effecting
a rotation of the camera to accommodate the document skew so that the
resulting image taken is not skewed. This can be accomplished by one of
several methods, such as rotating the entire camera, rotating only the
sensor element, or rotating another element in the optical path such as a
prism. Use of the methods incorporated in this invention does not require
the document motion to be stopped to measure and accommodate skew or to
take the image.