Removing borders (lines) from image

1.1k Views Asked by At

I have this image (some information was deleted from this on purpose)

What I need is some kind of way to remove the borders(lines) around the text.

I am doing OCR on these images and the lines are really in the way for text recognition.

Also everything has to work automatically, OCR and all other scripts get executed on the server side when someone uploads a document.

2

There are 2 best solutions below

3
On

You could try using a Hough transform to detect all straight lines in the image, then all you need to do is mask them.

0
On