Method and device for determining orientation of text
First Claim
1. A method of determining the orientation of text, said text extending substantially horizontal, said method comprising:
- measuring the contrasts associated with an upper edge of said text relative to a background;
measuring a first length of said upper edge of text having contrasts that are at least a first preselected value;
measuring the contrasts associated with a lower edge of said text relative to said background;
measuring a second length of said lower edge of text having contrasts that are at least said first preselected value; and
comparing said first length to said second length, wherein said text is improperly oriented if said first length is greater than said second length.
1 Assignment
0 Petitions
Accused Products
Abstract
A method of determining the orientation of text is disclosed herein. An embodiment of the method may comprise measuring the contrasts associated with an upper edge of the text relative to a background. A first length of the upper edge of text having contrasts that are at least a first preselected value is measured. In addition to measuring the contrasts associated with the upper edge of the text, contrasts associated with a lower edge of the text are measured relative to the background. A second length of the lower edge of text having contrasts that are at least the first preselected value is then measured. The first length is compared to the second length, wherein the text is improperly oriented if the first length is greater than the second length.
-
Citations
37 Claims
-
1. A method of determining the orientation of text, said text extending substantially horizontal, said method comprising:
-
measuring the contrasts associated with an upper edge of said text relative to a background; measuring a first length of said upper edge of text having contrasts that are at least a first preselected value; measuring the contrasts associated with a lower edge of said text relative to said background; measuring a second length of said lower edge of text having contrasts that are at least said first preselected value; and comparing said first length to said second length, wherein said text is improperly oriented if said first length is greater than said second length. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method of determining the orientation of a text relative to a first axis, said method comprising:
-
measuring first contrasts relative to a background of at least one first edge of said text parallel to said first axis; measuring at least one first length of said at least one first edge of text having contrasts that are at least a first preselected value; measuring second contrasts relative to said background of at least one second edge of said text parallel to said first axis, said second edge being opposite said first edge; measuring at least one second length of said at least one second edge of text having contrasts that are at least a second preselected value; measuring third contrasts relative to said background of at least one second edge of said text parallel to a second axis, said second axis being perpendicular to said first axis; measuring at least one third length of said at least one second edge of text having contrasts that are at least a third preselected value; measuring fourth contrasts relative to said background of at least one fourth edge of said text parallel to said second axis, said fourth edge being opposite said third edge; and measuring at least one fourth length of said at least one second edge of text having contrasts that are at least a fourth preselected value; wherein the longer of either said first length, said second length, said third length, or said fourth length corresponds to the lower edge of said text. - View Dependent Claims (10, 11, 12, 13)
-
-
14. A method of determining the orientation of text relative to an axis, said text being represented by image data comprising a plurality of pixel values, said method comprising:
-
generating an array of pixel value groupings, said array comprising pluralities of pixel value groupings extending perpendicular to said axis; sampling at least one pixel value in each of said pixel groupings; calculating first differences between adjacent sampled pixel values in said pluralities of pixel groupings, said first differences corresponding to a first edge of said text; locating a first difference among said first differences, said first difference exceeding a first preselected value; locating a first line of differences of said first differences including said first difference, said first line of differences being the greatest differences between subsequent ones of said pluralities of pixel groupings that exceed a second preselected value; calculating the length of said first line; calculating second differences between adjacent sampled pixel values in said pluralities of pixel groupings, said second differences corresponding to a second edge of said text, wherein said second edge is opposite said first edge; locating a second difference among said second differences, said second difference exceeding a third preselected value; locating a second line of differences of said second differences including said second difference, said second line of differences being the greatest differences between subsequent ones of said pluralities of pixel groupings that exceed a fourth preselected value; and calculating the length of said second line; wherein said text is oriented properly if said first line is greater than said second line. - View Dependent Claims (15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27)
-
-
28. A device for determining the orientation of text, said text extending substantially horizontal, said device comprising:
-
first measuring means for measuring the contrasts associated with an upper edge of said text relative to a background, and for measuring the contrasts associated with a lower edge of said text relative to said background; second measuring means for measuring a first length of said upper edge of text having contrasts that are at least a first preselected value, and for measuring a second length of said lower edge of text having contrasts that are at least said first preselected value; and comparing means for comparing said first length to said second length, wherein said text is improperly oriented if said first length is greater than said second length. - View Dependent Claims (29, 30, 31, 32, 33, 34, 35, 36, 37)
-
Specification