Ask Your Question
0

Need advice on background removal of document images taken with a mobile camera

asked 2013-10-11 09:56:12 -0600

Hi, I need to implement a mechanism that is able to clean up the image of a "document" taken on a fairly uniform background - such as a top surface of a desk. Also, the document would be surrounded by background on all sides. I am trying to figure out a mechanism by which I can detect the document boundary. I am considering techniques where I can use the knowledge that the document would be surrounded by background on all sides. I'd appreciate any advice - I've tried the following

  1. Apply a blurring filter followed by Canny edge detection
  2. histogram backprojection

None of them seem to work satisfactorily.

Regards, Kashyap

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2013-10-12 06:45:56 -0600

Guanta gravatar image

Possible steps for a boarder removal:

  • Gray scale conversion
  • Edge detection, e.g. via Canny
  • use findContours() to get all connected components
  • take largest contour
edit flag offensive delete link more

Comments

Thank you so much for your suggestion. findContours does seem to yield good results.

Kashyap gravatar imageKashyap ( 2013-10-16 01:07:53 -0600 )edit

Question Tools

Stats

Asked: 2013-10-11 09:56:12 -0600

Seen: 167 times

Last updated: Oct 12 '13