I'm trying to detect the monospaced-grid in a possibly slightly deformed image of a receipt. Example input (full size here)
My idea is to obtain the centroids or bounding boxes of all components and do a kind of Hough transform on these points, but I wouldn't know how to do this in Mathematica.
The output could have different formats, but should look something like this.
In this particular example, equi-spaced lines horizontally and vertically are enough, but It would be a pro if the algorithm can also handle a little perspective distortion.
Radon
, but the input for Radon is an image. It would be preferable if I can just input a list of 2D-points. $\endgroup$list
, then you can turn it into an image usingImage[list]
, then apply Radon. $\endgroup$