Method of auto-deskewing a tilted image
First Claim
Patent Images
1. A method of auto-deskewing an original image, comprising the steps of:
- obtaining an original image by scanning to acquire values of pixels in the original image;
subjecting the original image to a binarization process;
setting a datum line in the original image wherein the step of setting the datum line in the original image comprises the steps of determining a plurality of selected pixels in the original image;
setting sequentially a plurality of to-be-determined lines in the original image;
computing a plurality of average distances between each of the selected pixels and each of the to-be-determined lines;
comparing the average distances with a distance threshold; and
taking the to-be-determined line as the datum line if the average distance is less than the distance threshold;
determining a tilting angle of the original image on the basis of the datum line; and
adjusting the original image according to the determined tilting angle.
2 Assignments
0 Petitions
Accused Products
Abstract
A method of auto-deskewing a titled original image is provided. Frist, obtain an original image by scanning to acquire values of pixels in the original image. Next subject the original image to a binarization process. And, set a datum line in the original image. Then determine a tilting angle on the basis of the datum line. Finally, adjust the original image on the basis of the tilting angle. Therefore, the tilting angle of the original image may be acquired to adjust.
9 Citations
9 Claims
-
1. A method of auto-deskewing an original image, comprising the steps of:
-
obtaining an original image by scanning to acquire values of pixels in the original image; subjecting the original image to a binarization process; setting a datum line in the original image wherein the step of setting the datum line in the original image comprises the steps of determining a plurality of selected pixels in the original image; setting sequentially a plurality of to-be-determined lines in the original image;
computing a plurality of average distances between each of the selected pixels and each of the to-be-determined lines;comparing the average distances with a distance threshold; and
taking the to-be-determined line as the datum line if the average distance is less than the distance threshold;determining a tilting angle of the original image on the basis of the datum line; and adjusting the original image according to the determined tilting angle. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
Specification