Is it possible to apply Mathematica's image processing capabilities for extracting regions of book pages that are covered by text, e.g. by a combination of blurring and binarizing, or better? Also the faster the better.

Here is a possible input and (approximate) output.

  • $\begingroup$ @rasher Bluring, binarizing (as mentioned), and various filters mentioned under segmentation analysis. Unfortunately, the results are no good (not worth posting). $\endgroup$
    – Drux
    Mar 13, 2015 at 6:37

1 Answer 1


If you want a quick&dirty method, CornerFilter might be a good place to start:

img = Import["https://i.stack.imgur.com/HVRea.png"];
corners = CornerFilter[img, 2];
mask = DeleteSmallComponents[
   Closing[MorphologicalBinarize[corners, {0.2, 1}*10^-4], 

HighlightImage[img, mask]

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.