AndroidDocumentFilter
Android Document Filter is an Android Library built on top of OpenCV that provides various filters for document scanning.
Install / Use
/learn @garg-lucifer/AndroidDocumentFilterREADME
AndroidDocumentFilter
Android Document Filter is an Android Library that makes it simple to add commonly used filters in document image processing, such as Magic Filter, Shadow Remvoal, Black and White Filter, Lighten Color, and GreyScale Filter. It performs all resource-intensive tasks in the background thread.
Screenshots
<img src="https://github.com/garg-lucifer/AndroidDocumentFilter/blob/master/img1.png"> <img src="https://github.com/garg-lucifer/AndroidDocumentFilter/blob/master/img2.png">Setup
First, add jitpack in your build.gradle at the end of repositories:
repositories {
// ...
maven { url "https://jitpack.io" }
}
Then, add the library dependency:
implementation 'com.github.garg-lucifer:AndroidDocumentFilter:0.7.0'
Usage
DocumentFilter documentFilter = new DocumentFilter();
// replace getFilter_Name with the filter you want to use
documentFilter.getFilter_Name(image_bitmap, new DocumentFilter.CallBack<Bitmap>() {
@Override
public void onCompleted(Bitmap bitmap) {
// Do your tasks here with the returned bitmap
}
});
// for example shadow removal
documentFilter.getShadowRemoval(image_bitmap, new DocumentFilter.CallBack<Bitmap>() {
@Override
public void onCompleted(Bitmap bitmap) {
// Do your tasks here with the returned bitmap
}
});
Thanks
Thanks OpenCV for this amazing library. - https://opencv.org/
LICENCE
AndroidDocumentFilter by [Naman Garg] is licensed under a Apache License 2.0.
Related Skills
node-connect
337.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
337.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.2kCommit, push, and open a PR
