I have some black & white documents (image scan) and want to cluster them according to their layout. To make thing more concrete, say I have the following three images and first two would more likely fall into the same cluster as opposed to the 3rd image, because the first two have relatively similar layout.
My question is, what would be the best approach to clustering the documents? Right now I have a couple of initial approaches:
Would there be other better approaches? Again, only the layout matters.
Don't attempt to cluster raw data.
Clustering is unsupervised, it can't learn what properties are important and what not. To a clustering algorithm, everything is important.
Instead, define layout relevant features first. Such as long edges.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With