×

Document image orientation assessment and correction

  • US 10,181,077 B1
  • Filed: 03/06/2018
  • Issued: 01/15/2019
  • Est. Priority Date: 10/06/2017
  • Status: Active Grant
First Claim
Patent Images

1. A method for determining a proper orientation of a static image of a document consisting of a plurality of pixels within a viewfinder of an image capturing device controlled by a processor, comprising:

  • a. acquiring on the device the static image of the document consisting of a plurality of pixels;

    b. locating a specified subregion of the image;

    c. selecting a specified set of known characters of a defined font, each said known character comprising a single set of contiguous character defining pixels of known relative location and known luminosity or luminosity range;

    d. determining a luminosity or luminosity range of a plurality of pixels within the subregion;

    e. creating a matrix of the locations of pixels that are within said subregion;

    f. selecting a first specified luminosity or luminosity range;

    g. identifying the locations of pixels within said subregion that are of said first specified luminosity;

    h. assigning in said matrix a unique label to each location of a pixel with said first specified luminosity;

    i. merging the labels assigned to pixel locations to a common distinctive label group if said pixel locations in said matrix are 8-connected;

    j. selecting a second specified luminosity or luminosity range, wherein said second specified luminosity or luminosity range may be the same as or different from said first specified luminosity or luminosity range;

    k. for each pixel location within each said distinctive label group, determining the luminosity or luminosity range of the character defining pixel at the similar relative pixel location within each set of character defining pixels;

    l. for each pixel location within each said distinctive label group and for each set of character defining pixels, determining whether each said pixel location matches the similar relative pixel location of a character defining pixel of the second specified luminosity or luminosity range within each set of character defining pixels;

    m. determining a number of said matches for each distinctive label group and each known character;

    n. identifying each distinctive label group with said matches in excess of a second threshold number as a known character;

    o. calculating a number of known characters in the subregion;

    p. determining proper orientation of the static image of the document if the number of known characters in the subregion exceeds a first threshold number; and

    q. concluding that the orientation of the static image of the document has not been determined if the number of known characters in the subregion does not exceed the first threshold number.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×