Line segmentation method for text image based on signal processing and system thereof
A text image and signal processing technology, applied in the field of image processing, can solve the problems of high computational complexity and poor analysis of handwritten text images, and achieve the effect of reducing line segmentation errors, reducing influence, and improving accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0064] Embodiment 1 of the present invention proposes a text image line segmentation method based on signal processing, such as figure 1 As shown, the method includes:
[0065] Step S101: cutting the text image along a direction perpendicular to the writing direction of the text line in the text image, and dividing it into multiple sub-text images;
[0066] Wherein, the number of sub-text images can be selected according to factors such as the size of the text image and usage scenarios. The number of sub-text images can be adjusted in combination with subsequent segmentation effects, and the accuracy of segmentation can be improved through continuous adjustment.
[0067] The writing direction of the text line in the text image is generally from left to right, or from top to bottom. When the writing direction of the text line in the text image is from left to right, the cutting direction is the longitudinal direction of the text image; when the writing direction of the text l...
Embodiment 2
[0113] In this embodiment, on the basis of the text image line segmentation method based on signal processing proposed in Embodiment 1, step S109 is added, as Image 6 shown.
[0114] Step S109: According to the dividing line determined in step S108, the sub-image of each text line is segmented, the median value of the line height of the sub-images of all text lines that is divided is counted, and the line height of the sub-image of each text line is compared with Compared with the median value of the statistics, if the line height of the sub-image of a certain text line is much larger or smaller than the median value of the statistics, it indicates that the sub-image of the text line is an abnormal image, or that the sub-image of the text line is a blank line , the line of text is removed.
[0115] The text image line segmentation method based on signal processing proposed in Embodiment 2 of the present invention judges whether the segmented text line is a blank line accordi...
Embodiment 3
[0122] In this embodiment, on the basis of the text image line segmentation method based on signal processing in Embodiment 1, step S110 is added, as Figure 9 shown.
[0123] Step S110: According to the dividing line determined in step S108, segment the sub-image of each text line, sum each row of pixels of the sub-image of each text line, obtain a summation sequence, count the summation sequence greater than Set the number of elements of the threshold. If the number is less than the set threshold, it indicates that the sub-image of the text line does not contain text and is a blank line, and the text line is eliminated.
[0124] The text image line segmentation method based on signal processing proposed in Embodiment 3 of the present invention judges whether the segmented text line is a blank line according to whether the image contains text, which can further improve the blank line removal effect.
[0125] In this embodiment, on the basis of the text image line segmentatio...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


