mlkit
mlkit copied to clipboard
[Feature Request] ML Kit: On-Device Model Download API
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?
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 can you give us an update. It's been over six months.
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!
Hi, any updates on this?
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