Skip to content

mahimrocky/TextRecognizer

Repository files navigation

TextRecognizer

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.

Sample Alt Text

Setup

Setup part is simple

Root Gradle

    allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

App Gradle:

dependencies {
	        implementation 'com.github.mahimrocky:TextRecognizer:1.0.0'
	}

Api

 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