TextRecognizer is 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 libary on android studio
Gradle
allprojects { repositories { ... maven { url 'https://jitpack.io' } } }Add Gradle
dependencies {
implementation 'com.github.mahimrocky:TextRecognizer:1.0.0'
}
Use Api on TextRecognizer
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 } });
No comments
Post a Comment