Yes, you can use google's vision library to convert the image to text, this will give the best result from the image. Add the library below to build gradle:
compile 'com.google.android.gms:play-services-vision:10.0.0+' TextRecognizer textRecognizer = new TextRecognizer.Builder(getApplicationContext()).build(); Frame imageFrame = new Frame.Builder() .setBitmap(bitmap) // your image bitmap .build(); String imageText = ""; SparseArray<TextBlock> textBlocks = textRecognizer.detect(imageFrame); for (int i = 0; i < textBlocks.size(); i++) { TextBlock textBlock = textBlocks.get(textBlocks.keyAt(i)); imageText = textBlock.getValue(); // return string }
source share