/sKanner

An Android library that allows to scan a document through the device camera

Primary LanguageJava

Build Status

Skanner (WIP)

Skanner is an Android library written in Kotlin that uses OpenCV for Android to scan a document within a given image.

Download

To include Skanner into your app using gradle just add JitPack repository to your root build.gradle

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

and add the dependency to your app build.gradle

compile 'com.github.brescia123:skanner:x.x.x'

replacing x.x.x with the last release version.

Multi APK support

Since Skanner uses OpenCV that is written in C++ it has to include its native libraries compiled for every architecture. The supported architectures are:

  • arm64-v8a
  • armeabi-v7a
  • mips
  • mips64
  • x86
  • x86_64

You can reduce considerably the APK of your application by taking advantage of Apk Splits function of the Android Gradle plugin. You just have to add these lines to your build.gradle file:

android {
    ...
    splits {
        abi {
            enable true
            reset()
            include 'arm64-v8a', 'armeabi-v7a', 'mips', 'mips64', 'x86', 'x86_64'
            universalApk false
        }
    }
}

Check also the documentation regarding publishing multiple APKs to the Play Store.