Linear line detection apparatus using projection image of character string including linear line
First Claim
1. A line image detection apparatus comprising:
- means for imaging at least a portion of a document to form an input image, the input image including an image of a character string and a straight line being under the character string, the image of the character string and the straight line being constituted by black pixels;
means for detecting and recognizing, from the input image, the image of the character string and the straight line, the image of the character string and the straight line being located in an area of the input image being between a lower end and an upper end of the input image;
means for forming a projection image based on a distance from the lower end of the input image to each first black pixel found in the input image in a vertical direction;
means for comparing the distance with a predetermined threshold value;
means for defining a plurality of "slice 0" areas having the distance being lower than the predetermined threshold value;
means for determining an interval distribution of a corresponding interval between each adjacent pair of the "slice 0" areas determined by the defining means; and
means for detecting the straight line in the input image based on the interval distribution.
1 Assignment
0 Petitions
Accused Products
Abstract
A line image detection apparatus having an image input function for inputting an image on a document. The image includes a rectangular character string and a linear line drawn along the character string. The line detection apparatus has a function for detecting a character string image from the image, a function for forming a projection image on the basis of the distance from a lower end of the character string image to each first black pixel found in the character string image in the vertical direction, and a function for comparing the distance from the lower end of the character string image to each first black pixel, with a predetermined threshold value, thereby to define a plurality of "slice 0" areas included in the projection image. The distance, in each of the "slice 0" areas, from the lower end of the character string image to each first black pixel is lower than the predetermined threshold value. The apparatus also includes a function for determining an interval distribution of the interval between each adjacent pair of the "slice 0" areas determined by an area determination means, and a function for detecting the linear line on the basis of the interval distribution.
15 Citations
25 Claims
-
1. A line image detection apparatus comprising:
-
means for imaging at least a portion of a document to form an input image, the input image including an image of a character string and a straight line being under the character string, the image of the character string and the straight line being constituted by black pixels; means for detecting and recognizing, from the input image, the image of the character string and the straight line, the image of the character string and the straight line being located in an area of the input image being between a lower end and an upper end of the input image; means for forming a projection image based on a distance from the lower end of the input image to each first black pixel found in the input image in a vertical direction; means for comparing the distance with a predetermined threshold value; means for defining a plurality of "slice 0" areas having the distance being lower than the predetermined threshold value; means for determining an interval distribution of a corresponding interval between each adjacent pair of the "slice 0" areas determined by the defining means; and means for detecting the straight line in the input image based on the interval distribution. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A line image detection apparatus comprising:
-
means for imaging at least a portion of a document to form an input image, the input image including an image of a character string and a straight line being under the character string, the image of the character string and the straight line being constituted by black pixels; means for detecting and recognizing, from the input image, the image of the character string and the straight; means for obtaining a distance from each of a plurality of points of a lower end of the input image, to each first black pixel in a vertical direction, and preparing a distance histogram concerning the distance; and means for determining that the detected straight line is a solid line, when in the distance histogram, a ratio of a frequency of a distance value, which is highest, to the sum of frequencies of all distance values higher than a predetermined value. - View Dependent Claims (14, 15, 16)
-
-
17. A line image detection apparatus comprising:
-
means for imaging at least a portion of a document to form an input image, the input image including an image of a character string and a straight line being under the character string, the image of the character string and the straight line being constituted by black pixels; means for detecting and recognizing, from the input image, an image of the character string and the straight line; means for projecting only a first area and a second area, the first area being an area of a left portion of the input image including only a portion of the straight line up to a left and of the input image, the second area being an area of a right portion of the input image and including only another portion of the straight line up to a right end of the input image, so as to form projection images; means for comparing a vertical width of projection data of each of the first and the second areas with a vertical width of the image of the character string; means for determining that the input image includes the straight line, when a ratio of the vertical width of the projection data to the vertical width of the image of the character string is lower than a predetermined value; means for detecting an inclination of the straight line based on the projection data, when the means for determining that the input image includes the straight line has determined that the straight line exists; and means for correcting the inclination of the straight line. - View Dependent Claims (18, 19)
-
-
20. A method of detecting a line comprising:
-
imaging at least a portion of a document, including a character string and a straight line being under the character string, to form an input image;
the character string and the straight line in the input image being constituted by black pixels;detecting and recognizing, from the input image, an image of the character string and the straight line, the character string and the straight line being located in an area of the input image being between a lower end and an upper end of the input image; forming a projection image based on a distance from the lower end of the input image to each first black pixel found in the input image in a vertical direction; comparing the distance with a predetermined threshold value; defining a plurality of "slice 0" areas having the distance being lower than the predetermined threshold value; determining and interval distribution of a corresponding interval between each adjacent pair of the "slice 0" areas determined by the defining step; and
detecting the straight line in the input image based on the interval distribution.
-
-
21. A method of detecting a line comprising:
-
imaging at least a portion of a document, including a character string and a straight line being under the character string, to form an input image;
the character string and the straight line in the input image being constituted by black pixels;detecting and recognizing, from the input image, an image of the character string and the straight line; obtaining a distance from each of a plurality of points of a lower end of the input image to each first black pixel in a vertical direction, and preparing a distance histogram concerning the distance; and determining that the detected straight line is a solid line, when in the distance histogram, a ratio of a frequency of a distance value, which is highest, to the sum of frequencies of all distance values is higher than a predetermined value. - View Dependent Claims (22, 23, 24)
-
-
25. A method of detecting a line comprising:
-
imaging at least a portion of a document, including a character string and a straight line being under the character string, to form an input image;
the character string and the straight line in the input image being constituted by black pixels;detecting and recognizing, from the input image, an image of the character string and the straight line; projecting only a first area and a second area, the first area being an area of a left portion of the input image and includes only a portion of the straight line up to a left end of the input image, the second area being an area of a right portion of the input image and includes only another portion of the straight line up to a right end of the input image, so as to form projection images; comparing a vertical width of projection data of each of the first and the second areas with a vertical width of the image of the character string; determining that the input image includes the straight line when a ratio of the vertical width of the projection data to the vertical width of the image of the character string is lower than a predetermined value; detecting an inclination of the straight line based on the protection data, when the determining step determines that the input image includes the straight line; and correcting the inclination of the straight line.
-
Specification