摘要 |
A skewed image data detecting and correcting device (2) includes a skew angle detecting module (21), and an image rotating correction module (22). A skewed image data detecting and correcting method includes the following steps. Firstly, a binary digitizing operation is performed to obtain a binary image data. The binary image data is rotated by multiple different rotating angles, thereby obtaining multiple rotated binary image data. The pixel numbers of all horizontal rows of the rotated binary image data are totalized, thereby obtaining multiple horizontal pixel number distribution curves. A high-pass filtering procedure is performed to filter off low-frequency noise, thereby obtaining multiple high-frequency signal curves. The square sums of respective high-frequency signal curves are calculated, thereby obtaining multiple index values. Afterward, a rotating correction operation is performed on the image data according to the rotating angle corresponding to a maximum of the index values, thereby obtaining a corrected image data. |