Abstract:
A method for removing horizontal and vertical lines in a document image while preserving integrity of the character strokes that intersect the lines. For each detected horizontal line, a vertical run length profile is calculated. Areas of the run length profile having two adjacent peaks with a valley in between are detected, which correspond to intersections of the horizontal line with non-vertical lines. A first derivative curve may be used to detect such peaks and valleys. Areas of the run length profile with large run length value for consecutive pixel locations are also detected, which corresponds to intersections of the horizontal line with near vertical lines. The horizontal line is removed in areas outside of the intersection areas, while preserving pixels within the intersection areas. Vertical line removal may be done similarly. This template-free method can remove lines in tables, forms, and underline and extract handwriting or printed characters.
Abstract:
A text line segmentation method for a document image containing printed text and handwriting, or document image containing skewed lines or printed text. Connected component (CC) are obtained for the document, and their bounding boxes and centroids are calculated. The CCs are categorized into three categories based on bounding box sizes: small objects, regular text objects, and large objects involving handwriting. The centroids of regular text objects are used in a cluster analysis to find the vertical centers of the N text lines. Then, each CC is classified into one of the N lines based on the vertical distance between its centroid and the vertical centers of text lines, and copied into to a corresponding object board. Extra spaces are removed from the object boards to obtain the line segments. The large object involving handwriting will be classified into one of the lines but absent from other lines.
Abstract:
A text line segmentation method for a document image containing printed text and handwriting, or document image containing skewed lines or printed text. Connected component (CC) are obtained for the document, and their bounding boxes and centroids are calculated. The CCs are categorized into three categories based on bounding box sizes: small objects, regular text objects, and large objects involving handwriting. The centroids of regular text objects are used in a cluster analysis to find the vertical centers of the N text lines. Then, each CC is classified into one of the N lines based on the vertical distance between its centroid and the vertical centers of text lines, and copied into to a corresponding object board. Extra spaces are removed from the object boards to obtain the line segments. The large object involving handwriting will be classified into one of the lines but absent from other lines.
Abstract:
A method for removing horizontal and vertical lines in a document image while preserving integrity of the character strokes that intersect the lines. For each detected horizontal line, a vertical run length profile is calculated. Areas of the run length profile having two adjacent peaks with a valley in between are detected, which correspond to intersections of the horizontal line with non-vertical lines. A first derivative curve may be used to detect such peaks and valleys. Areas of the run length profile with large run length value for consecutive pixel locations are also detected, which corresponds to intersections of the horizontal line with near vertical lines. The horizontal line is removed in areas outside of the intersection areas, while preserving pixels within the intersection areas. Vertical line removal may be done similarly. This template-free method can remove lines in tables, forms, and underline and extract handwriting or printed characters.