LiveEdgeDetection is an Android document detection library built on top of openCV. It scans documents from camera live mode and allows you to adjust crop using the selected 4 edges and performs perspective transformation of the cropped image.
It works best with a dark background.
Try the sample app
This library is available in JitPack.io repository. To use it make sure to add the below inside project build.gradle file (root gradle file)
allprojects {
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
}
and the repository's url is added to the build.gradle file in your app.
dependencies {
compile 'com.github.adityaarora1:LiveEdgeDetection:1.0.0'
// Other dependencies your app might use
}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.