Skip to content

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 detected 4 edges and performs perspective transformation of the cropped image. It works best with a dark background.

Notifications You must be signed in to change notification settings

adityaarora1/LiveEdgeDetection

Repository files navigation

Release

LiveEdgeDetection

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.

Docs

JavaDoc

Download apk

Try the sample app

Screenshots

Use darker bg Move closer Move away Adjust angle Hold still Adjust crop Result

Integrating into your project

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
}

License

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.

Donation

Donate paypal

Paypal

About

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 detected 4 edges and performs perspective transformation of the cropped image. It works best with a dark background.

Resources

Stars

Watchers

Forks

Packages

No packages published