This is a simple Android app that uses Google Mobile Vision API’s for Optical character recognition(OCR). The Mobile Vision Text API gives Android developers a powerful and reliable OCR capability that works with most Android devices.This app will detect text and convert it into digital format.
-
Go to File -> New Project. When it prompts you to select the default activity, select Empty Activity and proceed.
-
Open build.gradle in (Module:app) and add Mobile Vision dependencies like this.
dependencies { ... compile 'com.google.android.gms:play-services-vision:11.0.4' ... }
-
To use this library, you may need to update your installed version of Google Repository in SDK tools .Do make sure your version of Google Repository is up to date. It should be at least version 26.
-
Don’t forget to add permissions for accessing CAMERA and also meta-data for using OCR in AndroidManifest.xml file like this :