IMHO, the best way to do this is to perform Hough transform to detect the lines on gray-scaled image and then remove those lines from image (either by drawing white lines, or by removing respective rows/columns from bitmap).
Posted - Dec 05 2017 : 19:05:58 Attached is a sample invoice, usually their B&W but this was the only example I could fine. When performing OCR the horizontal and vertical line interfere with the process. Some more advanced Capture system have a process to improve the OCR process like despeckle and line removal.