mlkit icon indicating copy to clipboard operation
mlkit copied to clipboard

[Feature Request] ML Kit: On-Device Model Download API

Open G00fY2 opened this issue 3 years ago • 3 comments

I found this issue from the old Firebase repo: [Feature Request] ML Kit: On-Device Model Download API

There is still no way to get availability and download status of the unbundled standard ML Kit models (e.g. barcode), right?

Currently we keep the analyzer alive when a MlKitException.UNAVAILABLE exception occurs and hope for the Play Services to eventually download the model. But if the user is offline e.g. this won't happen at all and we have no indicator about that.

Is this feature still considered to be implemented?

G00fY2 avatar Jun 21 '21 19:06 G00fY2

Yes, thanks for bringing this up! We had it planned but didn't have cycle to get to it. We will give an update here shortly once we have a concrete plan.

cs-googler avatar Jun 22 '21 01:06 cs-googler

@cs-googler can you give us an update. It's been over six months.

jishindev avatar Feb 05 '22 10:02 jishindev

Sorry about the late update. We're waiting for a download infrastructure update from Play Services to provide better support for this functionality. We don't have a concrete release date yet but would be some point in the second quarter of this year. So stay tuned!

zhouyiself avatar Feb 08 '22 00:02 zhouyiself

Hi, any updates on this?

nk-alex avatar Aug 26 '22 10:08 nk-alex

Yes. Here is the release notes about the support: https://developers.google.com/ml-kit/release-notes#improvements_2

You can use the GMS ModuleInstallClient API on ML Kit Detectors that extend OptionalModuleApi, e.g. BarcodeScanner

ai-plays avatar Aug 26 '22 18:08 ai-plays