Android Document Scanner Library

ScanLibrary is an Android Document Scanner Library built on top of OpenCV, using the app you will be able to select the exact edges and crop the document accordingly from the selected 4 edges and change the perspective transformation of the cropped image.

Android document scanner library

Implement in project

To implement this library in your Android Studio project, first add the ‘scanlibrary’ folder inside the root of your project directory.

Then add the following line of code to your build.gradle (app) dependencies:

dependencies {
implementation project(':scanlibrary')
}

Using the Library

In your activity or fragment when you want to give an option of document scanning to user then, first ass the following permissions to your AndroidManifest.xml file:

OpenALPR Android Document Scanner Library is an open source Automatic License Plate Recognition library written in C++ with bindings in C#, Java, Node.js, and Python. This project ports this library to Android.