Skip to content

Firebase ML Vision Flutter plugin 0.9.6+2 does not work with ML Kit #3473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
crcdng opened this issue Sep 6, 2020 · 3 comments
Closed

Firebase ML Vision Flutter plugin 0.9.6+2 does not work with ML Kit #3473

crcdng opened this issue Sep 6, 2020 · 3 comments
Labels
plugin: ml_vision type: documentation Improvements or additions to documentation

Comments

@crcdng
Copy link

crcdng commented Sep 6, 2020

In the Readme for firebase_ml_vision 0.9.6+2 from August 2020 on //pub.dev/packages/firebase_ml_vision the description states that the plugin works with "[...] ML Kit, a standalone library for on-device ML, which can be used with or without Firebase."

This is not the case. The plugin currently does not work with the new ML Kit. In addition, the documentation of the plugin refers to the deprecated Firebase ML Kit, e.g..

api 'com.google.firebase:firebase-ml-vision-face-model:17.0.2'

According to the ML Kit documentation (https://developers.google.com/ml-kit/migration/android), these APIs are deprecated and should be replaced with ML Kit dependencies. Simply replacing the dependencies does not work, however.

related #3469, #3026

@crcdng crcdng changed the title Setup instructions in Readme refer to deprecated APIs Firebase ML Vision Flutter plugin 0.9.6+2 does not work with ML Kit Sep 6, 2020
@darshankawar darshankawar added plugin: ml_vision type: documentation Improvements or additions to documentation labels Sep 7, 2020
@crcdng
Copy link
Author

crcdng commented Sep 9, 2020

Not sure if this is a documentation issue and a separate ML Kit plugin is in the works or if the plugin will be updated to support ML Kit. More information and context: https://gist.github.com/i3games/b30471060c6ca723619e21330a66c1f8

@enrichman
Copy link

In my case I think that XCode set up the min target to 11. I've downgrade it to platform :ios, '9.0' and then run a flutter clean and a pod deintegrate (just to be sure.

It worked. I know that is not a "solution" but it's a workaround (for me targeting iOS 9 was fine).

@Salakar
Copy link
Member

Salakar commented May 10, 2021

Hey, 👋, the firebase_ml_vision package is now discontinued since its APIs have been deprecated and removed from the Android & iOS Firebase SDKs.

I'd recommend switching to the alternatives now;

  • for on-device vision APIs; switch to Google's standalone ML Kit library via google_ml_kit
  • for cloud vision APIs; the recommended approach now is to use Firebase
    Authentication and Functions, which gives you a managed, serverless gateway to the Google Cloud Vision APIs. For an example Functions project see the vision-annotate-images sample project. You'd deploy this project for example and then call the cloud function from your app with your image data to get the annotation result.

Apologies for any inconvenience here and best of luck switching over the the new APIs. firebase_ml_custom is not affected by this deprecation.

Thanks

@Salakar Salakar closed this as completed May 10, 2021
@firebase firebase locked and limited conversation to collaborators Jun 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
plugin: ml_vision type: documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants