Turns your mobile into a portable scanner, which can be used for scanning handwritten notes and printed documents.
Step 1: Detect edges.
Step 2: Use the edges in the image to find the contour (outline) representing the piece of paper being scanned.
Step 3: Apply a perspective transform to obtain the top-down view of the document.