Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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 ?