How to get different blocks from the borders in image using OpenCV

asked 2016-09-29 13:46:21 -0500

VishalNair gravatar image

I am using OpenCV with C++.

I have the following image

enter image description here

I want to replicate the cell structure in this image into an excel sheet.I have managed to OCR the texts but not getting exactly how we can replicate the structure to excel. I was thinking of cropping out the blocks and so I tried few techniques like using HoughLinesP() for seperating each cell but its just not working and also tried line pattern matching with minMaxLoc() but that's also not giving a good result.

I am not looking to totally replicate the exact cells in the image but to atleast acheive to replicate the simpler cells .

Is there any reliable technique to do this in OpenCV ?

edit retag flag offensive close merge delete



please have a look in these threads: 1, 2, and 3

theodore gravatar imagetheodore ( 2016-09-30 05:58:36 -0500 )edit

@theodore - Very helpful links !!! :)

VishalNair gravatar imageVishalNair ( 2016-11-29 13:47:22 -0500 )edit