3

I have a scanned document image as below :

Example of a scanned document

I need to crop the document from the image.Can anyone tell me how to do with OpenCV .

  • Take a look at this [blog post](http://www.pyimagesearch.com/2014/09/01/build-kick-ass-mobile-document-scanner-just-5-minutes/). – sgarizvi Dec 11 '15 at 11:17

1 Answers1

0

In very clear samples like the one you provided:

  1. To Gray
  2. Canny
  3. FindContours
  4. Find biggest contour

However, this method will not work for 99% of samples. If you have more samples, add them to your post please.

Humam Helfawi
  • 17,706
  • 12
  • 64
  • 134