Image/Document Scanner with OpenCV(3/17)
January 22, 2019
The #3 Project in the series of 17 is an "Image/Document Scanner". A mini project in OpenCV, requiring only three simple steps to be accomplished.
- Step 1: Detecting the Edges in the image/document.
![](/assets/1.gif)
Check the code snippet for the above step here.
- Step 2: Using those edges in the image to find the contour(outline) representing the piece of the paper to be scanned.
![](/assets/screenshot-from-2019-01-23-01-06-20-e1548186469724.png)
Check the code snippet for the above step here.
- Step 3: Finally, applying a perspective transform to obtain a top-down view of the document.
![](/assets/screenshot-from-2019-01-23-01-06-35-1-e1548186575956.png)
Check the code snippet for the above step here.
That's all for this simple project. You can find the entire source-code and other required dependencies(libraries like transform.py) in this GitHub repo.
Till next time! o/
Resources: