This library extend google vision . And initilay it read text from image. for reading text from image you have to give image Uri or Bitmap.
Setup part is simple
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.mahimrocky:TextRecognizer:1.0.0'
}
TextScanner.getInstance(this)
.init()
.load(uri) // uri or bitmap
.getCallback(new TextExtractCallback() {
@Override
public void onGetExtractText(List<String> textList) {
// Here you will get list of text
}
});
Happy coding