Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 945 Bytes

README.md

File metadata and controls

41 lines (35 loc) · 945 Bytes

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