Wednesday, December 26, 2018

Library TextRecognizer on Android

TextRecognizer is This library extend google vision , and initilay it read text from image. for reading text from image you have to give i... thumbnail 1 summary

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.
Library TextRecognizer on Android


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