How to complete table border lines with OpenCV?

asked 2019-03-20 17:41:38 -0500

Hi here,

I am working on extracting table border from PDF files. As below is the raw table border I extracted. You can tell, because of the missing part in tables, there are some missing parts in the extracted borders.

extracted table border lines

With OpenCV, is there a way to complete the table border lines with Hough lines transform etc. ? The lines could be infinity long, because I am more interested in the crossing points so I can reconstruct the table later with reference to some template tables.

Thanks in advance!

edit retag flag offensive close merge delete

Comments

sturkmen gravatar imagesturkmen ( 2019-03-21 01:56:50 -0500 )edit

wow. Thanks! I will check it out. Btw, are there any python version for the application?

kzhoulatte gravatar imagekzhoulatte ( 2019-03-21 02:02:35 -0500 )edit
sturkmen gravatar imagesturkmen ( 2019-03-21 02:49:35 -0500 )edit

Thx for the help! That is actually what I did to get the border as I attached. I still can only get the incomplete table border because of the poor quality of scanned table. Do you know how could I detect the lines and extend the lines to get all joints of table? so I could compare to a template table to reconstruct the table? Thanks.

kzhoulatte gravatar imagekzhoulatte ( 2019-03-21 17:29:41 -0500 )edit