Method of correcting orientation of an image in automatic printing, and an image forming method and image forming apparatus thereof
First Claim
Patent Images
1. A method of detecting orientation of an image, the method comprising:
- selecting text blocks;
testing whether the number of text blocks N is less than a pre-set threshold T;
if the number of text blocks N is less than the pre-set threshold T, not detecting the orientation of the document;
if the number of text blocks N is greater than the pre-set threshold T, filling non-text areas with white color;
transforming the image into a binary image;
calculating asymmetry parameters of text (asym0, asym90);
calculating a horizontal coefficient (ah) and a vertical coefficient (av);
testing whether the parameter (asym0) is greater than zero and whether the horizontal coefficient (ah) is greater than the vertical coefficient (av);
if a result of testing whether the parameter (asym0) is greater than zero and the horizontal coefficient (ah) is greater than the vertical coefficient (av) is positive, determining that the image has correct orientation;
if a result of testing whether the parameter (asym0) is greater than zero and the horizontal coefficient (ah) is greater than the vertical coefficient (av) is negative, testing whether the parameter (asym0) is less than zero and whether the horizontal coefficient (ah) is greater than the vertical coefficient (av);
if a result of testing whether the parameter (asym0) is less than zero and the horizontal coefficient (ah) is greater than the vertical coefficient (av) is positive, turning the image by 180 degrees;
if a result of testing whether the parameter (asym0) is less than zero and the horizontal coefficient (ah) is greater than the vertical coefficient (av) is negative, testing whether the parameter (asym90) is greater than zero and the horizontal coefficient (ah) is less than the vertical coefficient (av);
if a result of testing whether the parameter (asym90) is greater than zero and the horizontal coefficient (ah) is less than the vertical coefficient (av) is positive, turning the image by 90 degrees; and
if a result of testing whether the parameter (asym90) is greater than zero and the horizontal coefficient (ah) is less than the vertical coefficient (av) is negative, turning the image by 270 degrees.
6 Assignments
0 Petitions
Accused Products
Abstract
An image forming method includes receiving an image, detecting a text area from the image, transforming the detected text area into a binary image and calculating an asymmetry parameter of the binary image, and detecting orientation of the image based on the calculated asymmetry parameter.
-
Citations
18 Claims
-
1. A method of detecting orientation of an image, the method comprising:
-
selecting text blocks; testing whether the number of text blocks N is less than a pre-set threshold T; if the number of text blocks N is less than the pre-set threshold T, not detecting the orientation of the document; if the number of text blocks N is greater than the pre-set threshold T, filling non-text areas with white color; transforming the image into a binary image; calculating asymmetry parameters of text (asym0, asym90); calculating a horizontal coefficient (ah) and a vertical coefficient (av); testing whether the parameter (asym0) is greater than zero and whether the horizontal coefficient (ah) is greater than the vertical coefficient (av); if a result of testing whether the parameter (asym0) is greater than zero and the horizontal coefficient (ah) is greater than the vertical coefficient (av) is positive, determining that the image has correct orientation; if a result of testing whether the parameter (asym0) is greater than zero and the horizontal coefficient (ah) is greater than the vertical coefficient (av) is negative, testing whether the parameter (asym0) is less than zero and whether the horizontal coefficient (ah) is greater than the vertical coefficient (av); if a result of testing whether the parameter (asym0) is less than zero and the horizontal coefficient (ah) is greater than the vertical coefficient (av) is positive, turning the image by 180 degrees; if a result of testing whether the parameter (asym0) is less than zero and the horizontal coefficient (ah) is greater than the vertical coefficient (av) is negative, testing whether the parameter (asym90) is greater than zero and the horizontal coefficient (ah) is less than the vertical coefficient (av); if a result of testing whether the parameter (asym90) is greater than zero and the horizontal coefficient (ah) is less than the vertical coefficient (av) is positive, turning the image by 90 degrees; and if a result of testing whether the parameter (asym90) is greater than zero and the horizontal coefficient (ah) is less than the vertical coefficient (av) is negative, turning the image by 270 degrees. - View Dependent Claims (2)
-
-
3. An image forming method of an image forming apparatus, the image forming method comprising:
-
receiving an image; detecting a text area of the image; transforming the detected text area into a binary image and calculating an asymmetry parameter of the binary image based on a number of lines projecting perpendicularly from at least one line of text within the detected text area; and detecting orientation of the image based on the calculated asymmetry parameter. - View Dependent Claims (4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. An image forming apparatus comprising:
-
a text detection unit to detect a text area of an input image; a coefficient calculation unit to transform the detected text area into a binary image and to calculate an asymmetry parameter of the binary image based on a number of lines projecting perpendicularly from at least one line of text within the detected text area; and an orientation detection unit to detect an orientation of the image based on the calculated asymmetry parameter. - View Dependent Claims (13, 14, 15, 16, 17, 18)
-
Specification