Creating a text recognition app using Firebase on-device APIs

To get started in ML Kit, you need to sign in to your Google account, activate your Firebase account, and create a Firebase project. Follow these steps:

  • Go to https://firebase.google.com/.
  • Sign in to your Google account, if you are not already signed in.
  • Click Go to console in the menu bar.
  • Click Add project to create a project and open it.

Now open Android Studio, and create a project with an empty activity. Note down the app package name that you have given while creating the project—for example,  com.packt.mlkit.textrecognizationondevice.

Next, go to the Firebase console. In the Project overview menu, click Add app and give the required information. It will give you a JSON ...

Get Machine Learning for Mobile now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.