Reputation: 33
I have just started exploring Firebase ML Kit by Google to test out face recognition capabilities. I tried official samples and it's working well.
Though, according to it's official documentation, we can schedule an install time download of the ML models required, I need a way to pre-install the models into the Android device itself, so it could be utilized in my app whenever in Offline scenarios(w/o internet). If there is one, it would be of great help for my use case.
Thanks.
Upvotes: 3
Views: 2279
Reputation: 1402
As of now, with ML Kit you cannot pre-install the face detection models on to the device in that manner. Like you mentioned, the models can be downloaded at install time, but the question indicates that you want beyond that - i.e. there is no internet during install time. If no internet, then the app cannot be downloaded and installed, which will limit your distribution.
UPDATE
[Confirmed from the comments that the user wants the models to be available offline even without downloading once during install time.]
As of now, that is not supported for built-in models like face detection.
However, if you use custom tflite models (i.e. bring your own model as opposed to using built-in models) with ML Kit then you can bundle it within your app when you build it on your desktop and distribute manually like you suggested. Here is the documentation for the custom model API which also contains links to quickstarter apps for Android / iOS.
Upvotes: 1