Automatic correction of skewing of digital images

US2017193321A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2017193321-A1
Application numberUS-201715408835-A
CountryUS
Kind codeA1
Filing dateJan 18, 2017
Priority dateOct 8, 2015
Publication dateJul 6, 2017
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method and system. An initial angle of rotation is determined by sampling test angles of rotation of a captured digital image and analyzing resultant rotated images to determine a resultant rotated image with a highest number of substantially empty lines. The captured digital image is rotated by the initial angle of rotation to generate a first rotated image. A representative line of each line area of multiple text line areas of the first rotated image is generated. A slope of each representative line is calculated. An aggregated slope of the representative lines is determined. The aggregated slope is converted to a refining angle of rotation. The refining angle of rotation is validated by finding points of intersection of lines connecting opposing ends of adjacent representative lines. The first rotated image is rotated by the refining angle of rotation to result in a final rotated image.

First claim

Opening claim text (preview).

What is claimed is: 1 . A method, said method comprising: determining an initial angle of rotation by sampling a plurality of test angles of rotation of a captured digital image and analyzing resultant rotated images to determine a resultant rotated image with a highest number of substantially empty lines; rotating the captured digital image by the initial angle of rotation to generate a first rotated image; generating a representative line of each line area of multiple text line areas of the first rotated image; calculating a slope of each representative line; determining an aggregated slope of all of the representative lines in the first rotated image, wherein the aggregated slope is converted to a refining angle of rotation; validating the refining angle of rotation by finding points of intersection of lines connecting opposing ends of adjacent representative lines, and estimating a substantially vertical line through the point of intersection, wherein the difference between the substantially vertical line and a line perpendicular to the aggregated slope indicates the accuracy of the refining angle of rotation; and rotating the first rotated image by the refining angle of rotation to result in a final rotated image. 2 . The method of claim 1 , wherein said determining the initial angle of rotation, includes: sampling a plurality of test angles at regular angle intervals of rotation. 3 . The method of claim 1 , wherein said determining the initial angle of rotation, includes: sampling a plurality of test angles in a range of −90 degrees to +90 degrees rotation. 4 . The method of claim 1 , wherein said determining the initial angle of rotation, includes for each resultant rotated image of a sample test angle: converting the resultant rotated image into a pixel map with each pixel in the pixel map being determined to be empty or non-empty by applying a pixel content threshold; weighting each line of pixels in the pixel map according to a number of non-empty pixels in said each line; determining an empty line in the pixel map as a line of pixels in the pixel map with a weight less than a line content threshold; and counting a number of empty lines in the resultant rotated image. 5 . The method of claim 1 , wherein said determining the initial angle of rotation does not process content of text lines resulting in low processing costs. 6 . The method of claim 1 , said method further comprising: determining the text line areas of the first rotated image by forming areas of adjacent pixel lines, wherein the adjacent pixel lines are each above a threshold weight of non-empty pixels, and wherein the determined text line areas are separated by at least one pixel line below the threshold weight of non-empty pixels. 7 . The method of claim 1 , wherein said generating the a representative line of each text line area uses a geometrical or statistical method of averaging a text line area. 8 . The method of claim 1 , said method further comprising: pre-processing the captured digital image to reduce noise by filtering extraneous detail from the captured digital image. 9 . A computer system, comprising a processor, a memory coupled to the processor, and a computer readable storage device coupled to the processor, said storage device containing program code executable by the processor via the memory to implement a method, said method comprising: determining an initial angle of rotation by sampling a plurality of test angles of rotation of a captured digital image and analyzing resultant rotated images to determine a resultant rotated image with a highest number of substantially empty lines; rotating the captured digital image by the initial angle of rotation to generate a first rotated image; generating a representative line of each line area of multiple text line areas of the first rotated image; calculating a slope of each representative line; determining an aggregated slope of all of the representative lines in the first rotated image, wherein the aggregated slope is converted to a refining angle of rotation; validating the refining angle of rotation by finding points of intersection of lines connecting opposing ends of adjacent representative lines, and estimating a substantially vertical line through the point of intersection, wherein the difference between the substantially vertical line and a line perpendicular to the aggregated slope indicates the accuracy of the refining angle of rotation; and rotating the first rotated image by the refining angle of rotation to result in a final rotated image. 10 . The computer system of claim 9 , wherein said determining the initial angle of rotation, includes: sampling a plurality of test angles at regular angle intervals of rotation. 11 . The computer system of claim 9 , wherein said determining the initial angle of rotation, includes: sampling a plurality of test angles in a range of −90 degrees to +90 degrees rotation. 12 . The computer system of claim 9 , wherein said determining the initial angle of rotation, includes for each resultant rotated image of a sample test angle: converting the resultant rotated image into a pixel map with each pixel in the pixel map being determined to he empty or non-empty by applying a pixel content threshold; weighting each line of pixels in the pixel map according to a number of non-empty pixels in said each line; determining an empty line in the pixel nap as a line of pixels in the pixel map with a weight less than a line content threshold; and counting a number of empty lines in the resultant rotated image. 13 . The computer system of claim 9 , wherein said determining the initial angle of rotation does not process content of text lines resulting in low processing costs. 14 . The computer system of claim 9 , said method further comprising: determining the text line areas of the first rotated image by forming areas of adjacent pixel lines, wherein the adjacent pixel lines are each above a threshold weight of non-empty pixels, and wherein the determined text line areas are separated by at least one pixel line below the threshold weight of non-empty pixels. 15 . A computer program product, comprising a computer readable storage device having computer readable program code stored therein, said program code containing instructions executable by a processor of a computer system to implement a method, said method comprising: determining an initial angle of rotation by sampling a plurality of test angles of rotation of a captured digital image and analyzing resultant rotated images to determine a resultant rotated image with a highest number of substantially empty lines; rotating the captured digital image by the initial angle of rotation to generate a first rotated image; generating a representative line of each line area of multiple text line areas of the first rotated image; calculating a slope of each representative line; determining an aggregated slope of all of the representative lines in the first rotated image, wherein the aggregated slope is converted to a refining angle of rotation; validating the refining angle of rotation by finding points of intersection of lines connecting opposing ends of adjacent representative lines, and estimating a substantially vertical line through the point of intersection, wherein the difference between the substantially vertical line and a line perpendicular to the aggregated slope indicates the accuracy of the refining angle of rotation; and rotating the first rotated image by the refining angle of rotation to result in a final rotated i

Assignees

Inventors

Classifications

  • Inclination or skew detection or correction of characters or of image to be recognised · CPC title

  • of characters or characters lines · CPC title

  • Character recognition · CPC title

  • Physics · mapped topic

  • Physics · mapped topic

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2017193321A1 cover?
A method and system. An initial angle of rotation is determined by sampling test angles of rotation of a captured digital image and analyzing resultant rotated images to determine a resultant rotated image with a highest number of substantially empty lines. The captured digital image is rotated by the initial angle of rotation to generate a first rotated image. A representative line of each lin…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06V30/1475. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Jul 06 2017 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).