Method and system for auto-correcting perspective distortion in document images
First Claim
1. A system for auto-correcting perspective distortion in document images, the system comprising:
- a processor-based application, which when executed on a computer, will cause the processor to;
identify a plurality of line segments in a distorted document image;
combine a second plurality of line segments to form a plurality of candidate lines;
group a second plurality of candidate lines into a substantially horizontal group of lines;
group a third plurality of candidate lines into a substantially vertical group of lines;
calculate a first plurality of linear equations to fit the substantially horizontal group of lines;
calculate a second plurality of linear equations to fit the substantially vertical group of lines; and
transform the distorted document image based on a first two linear equations of the first plurality of linear equations associated with two substantially horizontal lines comprising a lowest substantially horizontal line and a highest substantially horizontal line of the substantially horizontal group of lines and a second two linear equations of the second plurality of linear equations associated with two substantially vertical lines comprising a leftmost substantially vertical line and a rightmost substantially vertical line of the substantially vertical group of lines.
7 Assignments
0 Petitions
Accused Products
Abstract
Auto-correcting perspective distortion in document images is described. Line segments are identified in a distorted document image. Line segments are combined to form candidate lines. Candidate lines are grouped into a substantially horizontal group of lines and a substantially vertical group of lines. Linear equations are calculated to fit the substantially horizontal group of lines. Linear equations are calculated to fit the substantially vertical group of lines. The distorted document image is transformed based on two linear equations associated with two substantially horizontal lines and two linear equations associated with two substantially vertical lines.
14 Citations
17 Claims
-
1. A system for auto-correcting perspective distortion in document images, the system comprising:
a processor-based application, which when executed on a computer, will cause the processor to; identify a plurality of line segments in a distorted document image; combine a second plurality of line segments to form a plurality of candidate lines; group a second plurality of candidate lines into a substantially horizontal group of lines; group a third plurality of candidate lines into a substantially vertical group of lines; calculate a first plurality of linear equations to fit the substantially horizontal group of lines; calculate a second plurality of linear equations to fit the substantially vertical group of lines; and transform the distorted document image based on a first two linear equations of the first plurality of linear equations associated with two substantially horizontal lines comprising a lowest substantially horizontal line and a highest substantially horizontal line of the substantially horizontal group of lines and a second two linear equations of the second plurality of linear equations associated with two substantially vertical lines comprising a leftmost substantially vertical line and a rightmost substantially vertical line of the substantially vertical group of lines. - View Dependent Claims (2, 3, 4, 5, 6)
-
7. A computer-implemented method for auto-correcting perspective distortion in document images, the method comprising:
-
identifying a plurality of line segments in a distorted document image; combining a second plurality of line segments to form a plurality of candidate lines; grouping a second plurality of candidate lines into a substantially horizontal group of lines; grouping a third plurality of candidate lines into a substantially vertical group of lines; calculating a first plurality of linear equations to fit the substantially horizontal group of lines; calculating a second plurality of linear equations to fit the substantially vertical group of lines; and transforming the distorted document image based on a first two linear equations of the first plurality of linear equations associated with two substantially horizontal lines comprising a lowest substantially horizontal line and a highest substantially horizontal line of the substantially horizontal group of lines and a second two linear equations of the second plurality of linear equations associated with two substantially vertical lines comprising a leftmost substantially vertical line and a rightmost substantially vertical line of the substantially vertical group of lines. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer program product, comprising computer-readable program code to be executed by one or more processors when retrieved from a non-transitory computer-readable medium, the computer-readable program code including instructions to:
-
identify a plurality of line segments in a distorted document image; combine a second plurality of line segments to form a plurality of candidate lines; group a plurality of candidate lines into a substantially horizontal group of lines; group a second plurality of candidate lines into a substantially vertical group of lines; calculate a first plurality of linear equations to fit the substantially horizontal group of lines; calculate a second plurality of linear equations to fit the substantially vertical group of lines; and transform the distorted document image based on a first two linear equations of the first plurality of linear equations associated with two substantially horizontal lines comprising a lowest substantially horizontal line and a highest substantially horizontal line of the substantially horizontal group of lines and a second two linear equations of the second plurality of linear equations associated with two substantially vertical lines comprising a leftmost substantially vertical line and a rightmost substantially vertical line of the substantially vertical group of lines. - View Dependent Claims (14, 15, 16, 17)
-
Specification