OCR sample code taken from google vision api Simplified the code for better understanding toward the implementation and approach
Pre-requisites Android Play Services SDK level 26 or greater.
Getting Started The samples build using Gradle in Android Studio. There is no special configuration required.