1. A method of deskewing an image, comprising the steps of: capturing a first image; forming a plurality of regions within the first image; generating a plurality of bounding rectangles for the plurality of regions; calculating a plurality of areas for the plurality of bounding rectangles; rotating the plurality of regions by a plurality of angles within a predefined range; following rotating the plurality of regions, finding a plurality of angles that substantially minimize the plurality of calculated areas of the plurality of bounding rectangles, each found angle for a region being deskew angle therefor; and rotating the plurality of regions by the plurality of angles found, wherein the above steps are performed by a processor.