Remove Lines

This cleanup method removes horizontal and vertical lines to the content adjacent to them is easier to recognize. This method removes solid lines, dotted, or dashed lines. The following image explains the definitions of line length, run length, and line thickness:


An image that explains the definitions of line length, run length, and line thickness.

For example, the following image shows an image before and after it is cleaned up by removing the boxes around the date:


An image that shows an image before and after it is cleaned to remove the boxes around a field.