Home

Awesome

DocSkanner

An Android application that makes it possible to automatically scan and digitize documents from photos.

Min API Platform Build License

Screenshots

<p align="center"> <img src="/media/screenshot1.png" width="24%"/> <img src="/media/screenshot2.png" width="24%"/> <img src="/media/screenshot3.png" width="24%"/> <img src="/media/screenshot4.png" width="24%"/> </p>

Tech Stack & Open-Source Libraries

For more information about used dependencies, see this file.

Download

This project contains OpenCV native libraries for every mobile architecture, which means that the APK is split into multiple ones to prevent a one big fat APK. You can install the application in one of two ways:

  1. Go to the releases and download the APK for your phone's architecture. If you don't know it, here is a nice article describing how to determine it. If don't have time to read the article, then arm64-v8a should be a safe bet.
  2. Clone the project and install it using Android Studio.

Resources

  1. Canny Edge Detection. This tutorial explains the Canny edge detection algorithm, which plays a big role in identifying a document in the photo.
  2. Fundementals of Image Contours. This article explains image countours, what they are, and why they are useful for image processing.
  3. Contour Features. This tutorial explains the features of contours, like area, perimeter, centroid, bounding box.
  4. Perspective Morphing. This article goes into the details of what perspective morphing is, where it is applicable, how it works, etc.
  5. Application of Perspective Morphing. This article shows an example of applying perspective morhping to cut out and collect images of pokemons.

License

DocSkanner is licensed under the Apache 2.0 License.