Meir
Meir

Reputation: 1074

Recognize text in images with ML Kit on Android on device offline

Google at: Recognize text on device says:

Optional but recommended: You can configure your app to automatically download the ML model to the device after your app is installed from the Play Store. To do so, add the following declaration to your app's AndroidManifest.xml file:

If you do not enable install-time model downloads, the model will be downloaded the first time you run the on-device detector. Requests you make before the download has completed will produce no results.

Why cannot I recognize text when in airplane mode"?

Regards, Meir

Upvotes: 1

Views: 1344

Answers (1)

Max
Max

Reputation: 788

TL;DR: You need an Internet connection after installing the app to be able to download the models


If you are installing the app while the device is in airplane mode, then the ML Kit SDK will not be able to download the model. You have to install it with some Internet connection, then disable it after a while, and the app should be able to recognize text.

Upvotes: 2

Related Questions