title: How to remove text region in a document image?
body: <p>Similar to this <a href="https://stackoverflow.com/questions/26955513/how-to-detect-text-region-from-a-document-image">post</a>, I want to ask the same question and see if there are other suggestions and ideas. </p>
  
  <p>Given an document image (i.e. newspaper), how to extract photos in it or remove text region?</p>
  
  <p>I think traditional OCR methods may not be suitable here, as I don't need to recognize the text, and OCR is not accurate and slow. I believe text region (i.e. text blocks) and image region should be distinguishable by some threshold based methods in image processing. Any suggestions or example codes in OpenCV will be appreciated. Thanks！</p>
  
  <p><strong>BTW</strong>, what if the background color is not white, or the background color of certain blocks are not white?</p>
  
  <p>Example image:</p>
  
  <p><img src="https://i.stack.imgur.com/7qrQP.jpg" alt="enter image description here"></p>