×

METHOD OF CORRECTING ORIENTATION OF AN IMAGE IN AUTOMATIC PRINTING, AND AN IMAGE FORMING METHOD AND IMAGE FORMING APPARATUS THEREOF

  • US 20090317000A1
  • Filed: 06/23/2009
  • Published: 12/24/2009
  • Est. Priority Date: 06/23/2008
  • Status: Active Grant
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.

View all claims
  • 6 Assignments
Timeline View
Assignment View
    ×
    ×