Black white image scaling for optical character recognition
First Claim
1. A method for scaling a bi-tonal image, the method comprising:
- responsive to receiving a scanned image, determining, by a processor, a first scale factor;
processing, by a processor, a line of the scanned image, wherein the line is oriented parallel to a first axis, and wherein processing comprises;
determining a scanned pixel position of a pixel transition in the line;
dividing the scanned pixel position by the first scale factor to determine a scaled pixel position for the pixel transition; and
responsive to the scaled pixel position for the pixel transition equaling a previous scaled pixel position of a previously processed pixel transition, adjusting the scaled pixel position to prevent the previously processed pixel transition from being overwritten in a scaled image.
2 Assignments
0 Petitions
Accused Products
Abstract
A system and method for capturing and scaling images includes a scaling engine with the ability to employ a first scaling factor in a first direction and a second scaling factor in a second direction. In addition, the preferred scaling engine manipulates the scaling process so that the scaling calculations are performed using fixed point arithmetic. The preferred scaling engine preserves isolated features such as a single white pixel in a field of black pixels and vice versa. Improved readability is achieved in one embodiment by performing the scaling process multiple times using different degrees of “padding” where padding refers to the technique of surrounding an image with a perimeter of one or more blank (white) pixel elements.
19 Citations
19 Claims
-
1. A method for scaling a bi-tonal image, the method comprising:
responsive to receiving a scanned image, determining, by a processor, a first scale factor;
processing, by a processor, a line of the scanned image, wherein the line is oriented parallel to a first axis, and wherein processing comprises;
determining a scanned pixel position of a pixel transition in the line;
dividing the scanned pixel position by the first scale factor to determine a scaled pixel position for the pixel transition; and
responsive to the scaled pixel position for the pixel transition equaling a previous scaled pixel position of a previously processed pixel transition, adjusting the scaled pixel position to prevent the previously processed pixel transition from being overwritten in a scaled image.- View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
9. A computer program product comprising computer executable instructions, stored on a computer readable medium, for scaling an image, the computer program product comprising:
-
instructions for scaling a first scanned image in a first direction using a first scaling factor; instructions for scaling the first scanned image in a second direction according to a second scaling factor; wherein at least one image line of a set of image lines in the first scanned image includes an isolated pixel and further wherein the instructions for scaling the first scanned image includes instructions for preserving the isolated pixel in a scaled image; wherein the instructions for scaling the first scanned image in the first direction includes; instructions for determining, for each oriented image line oriented in the first direction of the first scanned image, a a scanned pixel position of a pixel transition in each oriented image line; and instructions for dividing the scanned pixel position by the first scale factor to determine a scaled pixel position for the pixel transition in the scaled image; and instructions, for adjusting the scaled pixel position to prevent a previously processed pixel transition from being overwritten in the scaled image in response to the scaled pixel position for the pixel transition equaling a previous scaled pixel position of the previously processed pixel transition. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. An image scaling system, comprising:
-
a capture device to scan an original image and to produce a bi-tonal image therefrom; a scaling engine to scale the bi-tonal image using independent x and y scaling factors to produce a scaled image, wherein isolated pixels in the bi-tonal image are preserved in the scaled image;
wherein the scaling engine produces the scaled image using fixed point arithmetic calculations exclusively;
wherein the scaling engine determines a scanned pixel position of a pixel transition in the line;
wherein the scaling engine divides the scanned pixel position by the first scale factor to determine a scaled pixel position for the pixel transition; and
wherein the scaling engine adjusts the scaled pixel position to prevent the previously processed pixel transition from being overwritten in a scaled image in response to the scaled pixel position for the pixel transition equaling a previous scaled pixel position of a previously processed pixel transition. - View Dependent Claims (19)
-
Specification