Giter Site home page Giter Site logo

azihsoyn / flutter_mlkit Goto Github PK

View Code? Open in Web Editor NEW
390.0 11.0 90.0 3.18 MB

A Flutter plugin to use the Firebase ML Kit.

License: MIT License

Java 29.35% Ruby 2.40% Objective-C 23.98% Dart 44.27%
flutter mlkit firebase dart ios android flutter-plugin

flutter_mlkit's People

Contributors

ademking avatar arosh avatar azihsoyn avatar bwolfs2 avatar defned avatar eyasuyuki avatar gimox avatar juliocbcotta avatar kajornsakp avatar liyoung1992 avatar richiwip avatar sarcasticnoodle avatar thomas-stockx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter_mlkit's Issues

Language Supports

What are the languages supported by Flutter ML Kit.

Does Flutter ML Kit supports Tamil Language ?

Issue with detecting faces

When trying to detect faces in android I always receive this output:
W/DynamiteModule(14227): Local module descriptor class for com.google.android.gms.vision.dynamite.face not found. I/DynamiteModule(14227): Considering local module com.google.android.gms.vision.dynamite.face:0 and remote module com.google.android.gms.vision.dynamite.face:0 D/FaceNativeHandle(14227): Cannot load feature, fall back to load whole module. W/DynamiteModule(14227): Local module descriptor class for com.google.android.gms.vision.dynamite not found. I/DynamiteModule(14227): Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:1800 I/DynamiteModule(14227): Selected remote version of com.google.android.gms.vision.dynamite, version >= 1800 V/DynamiteModule(14227): Dynamite loader version >= 2, using loadModule2NoCrashUtils I/Vision (14227): Loading library libmobile_vision_face.so I/Vision (14227): libmobile_vision_face.so library load status: true

Using a Galaxy note 8 in portrait and in landscape.
Also for IOS I receive this output:
`CocoaPods' output:

Preparing

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

Finding Podfile changes
  A mlkit
  R firebase_ml_vision
  - Flutter
  - camera
  - cloud_firestore
  - firebase_analytics
  - firebase_auth
  - firebase_core
  - firebase_database
  - firebase_storage
  - flutter_inapp_purchase
  - flutter_native_image
  - flutter_statusbar_manager
  - flutter_webview_plugin
  - geocoder
  - image_picker
  - location
  - path_provider
  - shared_preferences
  - url_launcher
  - video_player

Fetching external sources
-> Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
-> Fetching podspec for `camera` from `.symlinks/plugins/camera/ios`
-> Fetching podspec for `cloud_firestore` from `.symlinks/plugins/cloud_firestore/ios`
-> Fetching podspec for `firebase_analytics` from `.symlinks/plugins/firebase_analytics/ios`
-> Fetching podspec for `firebase_auth` from `.symlinks/plugins/firebase_auth/ios`
-> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios`
-> Fetching podspec for `firebase_database` from `.symlinks/plugins/firebase_database/ios`
-> Fetching podspec for `firebase_storage` from `.symlinks/plugins/firebase_storage/ios`
-> Fetching podspec for `flutter_inapp_purchase` from `.symlinks/plugins/flutter_inapp_purchase/ios`
-> Fetching podspec for `flutter_native_image` from `.symlinks/plugins/flutter_native_image/ios`
-> Fetching podspec for `flutter_statusbar_manager` from `.symlinks/plugins/flutter_statusbar_manager/ios`
-> Fetching podspec for `flutter_webview_plugin` from `.symlinks/plugins/flutter_webview_plugin/ios`
-> Fetching podspec for `geocoder` from `.symlinks/plugins/geocoder/ios`
-> Fetching podspec for `image_picker` from `.symlinks/plugins/image_picker/ios`
-> Fetching podspec for `location` from `.symlinks/plugins/location/ios`
-> Fetching podspec for `mlkit` from `.symlinks/plugins/mlkit/ios`
-> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
-> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
-> Fetching podspec for `url_launcher` from `.symlinks/plugins/url_launcher/ios`
-> Fetching podspec for `video_player` from `.symlinks/plugins/video_player/ios`

Resolving dependencies of `Podfile`
[!] CocoaPods could not find compatible versions for pod "Firebase/Core":
  In snapshot (Podfile.lock):
    Firebase/Core (= 5.10.0)

  In Podfile:
    cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 0.0.1, which depends on
      Firebase/Core

    mlkit (from `.symlinks/plugins/mlkit/ios`) was resolved to 0.6.3, which depends on
      Firebase/Core (~> 5.8.0)

It seems like you've changed the constraints of dependency `Firebase/Core` inside your development pod `mlkit`.
You should run `pod update Firebase/Core` to apply changes you've made.

/usr/local/lib/ruby/gems/2.4.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
/usr/local/lib/ruby/gems/2.4.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
/usr/local/lib/ruby/gems/2.4.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
/usr/local/lib/ruby/gems/2.4.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
/usr/local/lib/ruby/gems/2.4.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:257:in `process_topmost_state'
/usr/local/lib/ruby/gems/2.4.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/usr/local/lib/ruby/gems/2.4.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.6.0.beta.1/lib/cocoapods/resolver.rb:123:in `resolve'
/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.6.0.beta.1/lib/cocoapods/installer/analyzer.rb:896:in `block in resolve_dependencies'
/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.6.0.beta.1/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.6.0.beta.1/lib/cocoapods/installer/analyzer.rb:894:in `resolve_dependencies'
/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.6.0.beta.1/lib/cocoapods/installer/analyzer.rb:106:in `analyze'
/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.6.0.beta.1/lib/cocoapods/installer.rb:250:in `analyze'
/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.6.0.beta.1/lib/cocoapods/installer.rb:160:in `block in resolve_dependencies'
/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.6.0.beta.1/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.6.0.beta.1/lib/cocoapods/installer.rb:159:in `resolve_dependencies'
/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.6.0.beta.1/lib/cocoapods/installer.rb:122:in `install!'
/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.6.0.beta.1/lib/cocoapods/command/install.rb:48:in `run'
/usr/local/lib/ruby/gems/2.4.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.6.0.beta.1/lib/cocoapods/command.rb:52:in `run'
/usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.6.0.beta.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'`

Wrong package name

Hi,
First, thank you for developing this MLKit plugin for flutter :)
I'm trying to configure your plugin but it seems that it don't take my package name
When I launch my app, I have this error :

  • What went wrong:
    Execution failed for task ':mlkit:processDebugGoogleServices'.

No matching client found for package name 'com.azihsoyn.flutter.mlkit'

Could you tell me if there is a place to give my package name ?
Thank's

androidX compatibility

we need some changes for androidX compatibility:

  • import android.support.annotation.NonNull;
  • import android.support.media.ExifInterface;

Inception3 not supported ?

I uploaded custom tensorflowlite model which is based on InceptionV3,
plugin shows error:
The model is INCOMPATIBLE. It may contain unrecognized custom ops, or not FlatBuffer format: java.lang.IllegalArgumentException: Internal error: Cannot create interpreter: Didn't find op for builtin opcode 'CONV_2D' version '2'

CocoaPods could not find compatible versions for pod "Firebase/MLNaturalLanguage"

I cloned this repository, But example does not work with "Firebase/MLNaturalLanguage" version issue.

$ cd example

$ flutter run

Launching lib/main.dart on iPhone Xʀ in debug mode...
Running pod install...                                              0.6s
CocoaPods' output:
↳
      Preparing

    Analyzing dependencies

    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (`arm64`)

    Fetching external sources
    -> Fetching podspec for `Flutter` from `Pods/.symlinks/flutter/ios`
    -> Fetching podspec for `image_picker` from `Pods/.symlinks/plugins/image_picker/ios`
    -> Fetching podspec for `mlkit` from `Pods/.symlinks/plugins/mlkit/ios`

    Resolving dependencies of `Podfile`
    [!] CocoaPods could not find compatible versions for pod "Firebase/MLNaturalLanguage":
      In Podfile:
        mlkit (from `Pods/.symlinks/plugins/mlkit/ios`) was resolved to 0.8.3, which depends on
          Firebase/MLNaturalLanguage (~> 5.11.0)

    None of your spec sources contain a spec satisfying the dependency: `Firebase/MLNaturalLanguage (~> 5.11.0)`.

    You have either:
     * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
     * mistyped the name or version.
     * not added the source repo that hosts the Podspec to your Podfile.

    Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

    /Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
    /Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
    /Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
    /Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
    /Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:257:in `process_topmost_state'
    /Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
    /Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/resolver.rb:88:in `resolve'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/installer/analyzer.rb:939:in `block in resolve_dependencies'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/installer/analyzer.rb:937:in `resolve_dependencies'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/installer/analyzer.rb:118:in `analyze'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/installer.rb:398:in `analyze'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/installer.rb:221:in `block in resolve_dependencies'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/installer.rb:220:in `resolve_dependencies'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/installer.rb:156:in `install!'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/command/install.rb:51:in `run'
    /Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/command.rb:52:in `run'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/bin/pod:55:in `<top (required)>'
    /usr/local/bin/pod:22:in `load'
    /usr/local/bin/pod:22:in `<main>'

Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
  pod repo update



Error running pod install
Error launching application on iPhone Xʀ.

$ uname -a
Darwin jessica.local 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64

$ flutter --version
Flutter 1.5.4-hotfix.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 7a4c33425d (4 weeks ago) • 2019-04-29 11:05:24 -0700
Engine • revision 52c7a1e849
Tools • Dart 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

$ pod --version
1.7.0

$ pod list | grep -i firebase
  ANN9FirebaseAnalytics 0.0.2
  AppicFirebase 5.18.0
  ChatSDKFirebase 4.11.1
  CodableFirebase 0.2.1
  DryFirebase 0.0.2
  FireBasePod 0.1.2
  Firebase 6.1.0
  Firebase-Cocoa-SDK 2.3.4
  Firebase-RACExtensions 0.3.1
  FirebaseABTesting 3.0.0
  FirebaseAnalytics 6.0.1
  FirebaseAnalyticsInterop 1.2.0
  FirebaseAppIndexing 1.2.0
  FirebaseAuth 6.1.0
  FirebaseAuthInterop 1.0.0
  FirebaseChat 0.1.1
  FirebaseCheckVersion 1.0.9
  FirebaseCommunity 0.1.6
  FirebaseCore 6.0.1
  FirebaseCrash 3.1.1
  FirebaseDatabase 6.0.0
  FirebaseDeviceStore 0.0.1
  FirebaseDynamicLinks 4.0.0
  FirebaseFirestore 1.3.1
  FirebaseFunctions 2.5.1
  FirebaseGenericClient 0.1.1
  FirebaseHelper 1.0.0
  FirebaseInAppMessaging 0.14.1
  FirebaseInAppMessagingDisplay 0.14.0
  FirebaseInstanceID 4.1.0
  FirebaseInvites 3.0.1
  FirebaseMLCommon 0.16.0
  FirebaseMLModelInterpreter 0.16.0
  FirebaseMLNLLanguageID 0.16.1
  FirebaseMLNLSmartReply 0.16.1
  FirebaseMLNLTranslate 0.16.1
  FirebaseMLNaturalLanguage 0.16.1
  FirebaseMLVision 0.16.0
  FirebaseMLVisionAutoML 0.16.0
  FirebaseMLVisionBarcodeModel 0.16.0
  FirebaseMLVisionFaceModel 0.16.0
  FirebaseMLVisionLabelModel 0.16.0
  FirebaseMLVisionObjectDetection 0.16.0
  FirebaseMLVisionTextModel 0.16.0
  FirebaseMessaging 4.0.1
  FirebaseOSX 2.5.1
  FirebaseObjects 0.0.1
  FirebasePerformance 3.0.0
  FirebaseRemoteConfig 4.0.0
  FirebaseResultsController 1.0.0
  FirebaseRxSwiftExtensions 2.0.10
  FirebaseStorage 3.2.1
  FirebaseStorageCache 0.0.10
  FirebaseStorageCacheable 0.1.2
  FirebaseSwizzlingUtilities 2.0.0
  FirebaseUI 7.0.0
  FirebaseUtils 0.1.0
  FirebaseWrapper 0.1.0
  IF_FirebaseFollowHelperKit 0.0.1
  MKFirebaseObjectMapping 0.2.2
  MzzFirebase 0.1.0
  OneSDKFireBase 0.3.0
  ReactiveFirebase 0.1.3
  RxFirebase 0.3.6
  RxFirebaseAuth 2.2
  RxFirebaseAuthentication 0.3.7
  RxFirebaseDatabase 0.3.7
  RxFirebaseFirestore 0.3.7
  RxFirebaseFunctions 0.3.7
  RxFirebaseRemoteConfig 0.3.7
  RxFirebaseStorage 0.3.7
  Segment-Firebase 2.4.0
  mParticle-Google-Analytics-Firebase 7.9.1

MLKit driver license

I'm trying to read driver licenses barcodes, but the CameraMLVision never recognizes them. Although, it's working with other PDF417 barcodes. There is something related to? I'm using the example app.

Flutter project not compiling for iOS after upgrade to 0.6.2 (mlkit 0.6.2)

flutter build ios outputs:

** BUILD FAILED **
Xcode's output:
↳ === BUILD TARGET mlkit OF PROJECT Pods WITH CONFIGURATION Release ===
/Users/harikishore/Desktop/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.6.2/ios/Classes/MlkitPlugin.m:2
5:1: error: unknown type name 'FIRVisionTextRecognizer'
FIRVisionTextRecognizer *textDetector;
^
/Users/harikishore/Desktop/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.6.2/ios/Classes/MlkitPlugin.m:7
2:32: error: no visible @interface for 'FIRVision' declares the selector 'onDeviceTextRecognizer'
textDetector = [vision onDeviceTextRecognizer];
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
/Users/harikishore/Desktop/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.6.2/ios/Classes/MlkitPlugin.m:25:1: error: unknown type name 'FIRVisionTextRecognizer'
FIRVisionTextRecognizer *textDetector;
^
/Users/harikishore/Desktop/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.6.2/ios/Classes/MlkitPlugin.m:72:32: error: no visible @interface for 'FIRVision' declares the selector 'onDeviceTextRecognizer'
textDetector = [vision onDeviceTextRecognizer];
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~
2 errors generated.

Flutter Doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v0.8.4, on Mac OS X 10.13.6 17G65, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
[✓] Android Studio (version 3.1)
[✓] VS Code (version 1.27.2)
[✓] Connected devices (2 available)

• No issues found!

Running problem

Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Finished with error: Gradle task assembleDebug failed with exit code 1

android custom FirebaseMLException.

W/FirebaseModelManager( 2101): The remote model name is already registered: coco
E/ModelResourceManager( 2101): Error preloading model resource
E/ModelResourceManager( 2101): com.google.firebase.ml.common.FirebaseMLException: Remote model load failed with the model options: Local model name: unspecified. Remote model name: coco.
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zzon.zza(Unknown Source:33)
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zzpr.zza(Unknown Source:109)
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zzpr.zzln(Unknown Source:105)
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zzoa.zzf(Unknown Source:56)
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zzoc.zzlu(Unknown Source:7)
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zzoc.call(Unknown Source:24)
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zznn.zza(Unknown Source:30)
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zznq.run(Unknown Source:2)
E/ModelResourceManager( 2101): at android.os.Handler.handleCallback(Handler.java:789)
E/ModelResourceManager( 2101): at android.os.Handler.dispatchMessage(Handler.java:98)
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zzf.dispatchMessage(Unknown Source:6)
E/ModelResourceManager( 2101): at android.os.Looper.loop(Looper.java:164)
E/ModelResourceManager( 2101): at android.os.HandlerThread.run(HandlerThread.java:65)
E/ModelResourceManager( 2101): Caused by: com.google.firebase.ml.common.FirebaseMLException: Failed to get model URL
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zzoy.zza(Unknown Source:62)
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zzoy.zza(Unknown Source:2)
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zzph.zzb(Unknown Source:3)
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zzoz.zzmh(Unknown Source:79)
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zzoz.zzmb(Unknown Source:19)
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zzpk.load(Unknown Source:26)
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zzon.zza(Unknown Source:41)
E/ModelResourceManager( 2101): at com.google.android.gms.internal.firebase_ml.zzon.zza(Unknown Source:14)
E/ModelResourceManager( 2101): ... 12 more
E/ModelResourceManager( 2101): Caused by: java.io.IOException: SERVICE_NOT_AVAILABLE
E/ModelResourceManager( 2101): at com.google.firebase.iid.zzs.zza(Unknown Source:71)
E/ModelResourceManager( 2101): at com.google.firebase.iid.zzs.zza(Unknown Source:84)
E/ModelResourceManager( 2101): at com.google.firebase.iid.zzt.then(Unknown Source:4)
E/ModelResourceManager( 2101): at com.google.android.gms.tasks.zzd.run(Unknown Source:5)
E/ModelResourceManager( 2101): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
E/ModelResourceManager( 2101): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
E/ModelResourceManager( 2101): at java.lang.Thread.run(Thread.java:764)
W/System.err( 2101): com.google.firebase.ml.common.FirebaseMLException: Remote model load failed with the model options: Local model name: unspecified. Remote model name: coco.
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzon.zza(Unknown Source:33)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzpr.zza(Unknown Source:109)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzpr.zzln(Unknown Source:105)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzoa.zzf(Unknown Source:56)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zznt.call(Unknown Source:3)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zznn.zza(Unknown Source:30)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zznq.run(Unknown Source:2)
W/System.err( 2101): at android.os.Handler.handleCallback(Handler.java:789)
W/System.err( 2101): at android.os.Handler.dispatchMessage(Handler.java:98)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzf.dispatchMessage(Unknown Source:6)
W/System.err( 2101): at android.os.Looper.loop(Looper.java:164)
W/System.err( 2101): at android.os.HandlerThread.run(HandlerThread.java:65)
W/System.err( 2101): Caused by: com.google.firebase.ml.common.FirebaseMLException: Failed to get model URL
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzoy.zza(Unknown Source:62)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzoy.zza(Unknown Source:2)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzph.zzb(Unknown Source:3)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzoz.zzmh(Unknown Source:79)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzoz.zzmb(Unknown Source:19)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzpk.load(Unknown Source:26)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzon.zza(Unknown Source:41)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzon.zza(Unknown Source:14)
W/System.err( 2101): ... 11 more
W/System.err( 2101): Caused by: java.io.IOException: SERVICE_NOT_AVAILABLE
W/System.err( 2101): at com.google.firebase.iid.zzs.zza(Unknown Source:71)
W/System.err( 2101): at com.google.firebase.iid.zzs.zza(Unknown Source:84)
W/System.err( 2101): at com.google.firebase.iid.zzt.then(Unknown Source:4)
W/System.err( 2101): at com.google.android.gms.tasks.zzd.run(Unknown Source:5)
W/System.err( 2101): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
W/System.err( 2101): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
W/System.err( 2101): at java.lang.Thread.run(Thread.java:764)
E/FirebaseModelInterpreter( 2101): Remote model load failed with the model options: Local model name: unspecified. Remote model name: coco.
W/System.err( 2101): com.google.android.gms.tasks.RuntimeExecutionException: com.google.firebase.ml.common.FirebaseMLException: Remote model load failed with the model options: Local model name: unspecified. Remote model name: coco.
W/System.err( 2101): at com.google.android.gms.tasks.zzu.getResult(Unknown Source:15)
W/System.err( 2101): at com.azihsoyn.flutter.mlkit.MlkitPlugin$10.then(MlkitPlugin.java:358)
W/System.err( 2101): at com.azihsoyn.flutter.mlkit.MlkitPlugin$10.then(MlkitPlugin.java:350)
W/System.err( 2101): at com.google.android.gms.tasks.zzd.run(Unknown Source:5)
W/System.err( 2101): at android.os.Handler.handleCallback(Handler.java:789)
W/System.err( 2101): at android.os.Handler.dispatchMessage(Handler.java:98)
W/System.err( 2101): at android.os.Looper.loop(Looper.java:164)
W/System.err( 2101): at android.app.ActivityThread.main(ActivityThread.java:6944)
W/System.err( 2101): at java.lang.reflect.Method.invoke(Native Method)
W/System.err( 2101): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
W/System.err( 2101): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
W/System.err( 2101): Caused by: com.google.firebase.ml.common.FirebaseMLException: Remote model load failed with the model options: Local model name: unspecified. Remote model name: coco.
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzon.zza(Unknown Source:33)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzpr.zza(Unknown Source:109)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzpr.zzln(Unknown Source:105)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzoa.zzf(Unknown Source:56)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zznt.call(Unknown Source:3)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zznn.zza(Unknown Source:30)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zznq.run(Unknown Source:2)
W/System.err( 2101): at android.os.Handler.handleCallback(Handler.java:789)
W/System.err( 2101): at android.os.Handler.dispatchMessage(Handler.java:98)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzf.dispatchMessage(Unknown Source:6)
W/System.err( 2101): at android.os.Looper.loop(Looper.java:164)
W/System.err( 2101): at android.os.HandlerThread.run(HandlerThread.java:65)
W/System.err( 2101): Caused by: com.google.firebase.ml.common.FirebaseMLException: Failed to get model URL
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzoy.zza(Unknown Source:62)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzoy.zza(Unknown Source:2)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzph.zzb(Unknown Source:3)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzoz.zzmh(Unknown Source:79)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzoz.zzmb(Unknown Source:19)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzpk.load(Unknown Source:26)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzon.zza(Unknown Source:41)
W/System.err( 2101): at com.google.android.gms.internal.firebase_ml.zzon.zza(Unknown Source:14)
W/System.err( 2101): ... 11 more
W/System.err( 2101): Caused by: java.io.IOException: SERVICE_NOT_AVAILABLE
W/System.err( 2101): at com.google.firebase.iid.zzs.zza(Unknown Source:71)
W/System.err( 2101): at com.google.firebase.iid.zzs.zza(Unknown Source:84)
W/System.err( 2101): at com.google.firebase.iid.zzt.then(Unknown Source:4)
W/System.err( 2101): at com.google.android.gms.tasks.zzd.run(Unknown Source:5)
W/System.err( 2101): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
W/System.err( 2101): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
W/System.err( 2101): at java.lang.Thread.run(Thread.java:764)
E/FirebaseModelInterpreter( 2101): com.google.firebase.ml.common.FirebaseMLException: Remote model load failed with the model options: Local model name: unspecified. Remote model name: coco.
I/zygote64( 2101): Compiler allocated 4MB to compile int com.google.android.gms.internal.firebase_ml.zzwi.zzaa(java.lang.Object)
I/flutter ( 2101): original Image Size : Size(3504.0, 2336.0)
I/flutter ( 2101): offset : Offset(0.0, 210.0)
I/flutter ( 2101): configuration : ImageConfiguration(bundle: PlatformAssetBundle#dfb5d(), devicePixelRatio: 3.0, locale: en_US, textDirection: TextDirection.ltr, size: Size(360.0, 240.0), platform: android)
I/flutter ( 2101): rect container : Rect.fromLTRB(0.0, 210.0, 360.0, 450.0)
E/FirebaseInstanceId( 2101): Token retrieval failed: SERVICE_NOT_AVAILABLE
E/FirebaseInstanceId( 2101): Token retrieval failed: SERVICE_NOT_AVAILABLE

My application is crashing [ unfortunately app has stopped ]

`Launching lib/main.dart on SM G600FY in debug mode...
Initializing gradle...
[{"event":"app.progress","params":{"appId":"49ffe942-dc81-4723-aeef-ba0f8f721c78","id":"1","progressId":null,"message":"Resolving dependencies..."}}]Resolving dependencies...

[{"event":"app.progress","params":{"appId":"49ffe942-dc81-4723-aeef-ba0f8f721c78","id":"2","progressId":null,"message":"Running Gradle task 'assembleDebug'..."}}]Running Gradle task 'assembleDebug'...

Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk...
Syncing files to device SM G600FY...
D/libGLESv2(31033): DTS_GLAPI : DTS is not allowed for Package : com.vision.vision
D/libGLESv1(31033): DTS_GLAPI : DTS is not allowed for Package : com.vision.vision
V/ActivityThread(31033): updateVisibility : ActivityRecord{9f821dc token=android.os.BinderProxy@9ee4180 {com.vision.vision/com.vision.vision.MainActivity}} show : true
D/ViewRootImpl(31033): MSG_RESIZED_REPORT: ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 0) or=1
I/Timeline(31033): Timeline: Activity_idle id: android.os.BinderProxy@9ee4180 time:9474705
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 0
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 1
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 0
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 1
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 0
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 1
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 0
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 1
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 0
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 1
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 0
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 1
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 0
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 1
D/ViewRootImpl(31033): ViewPostImeInputStage processKey 0
D/ViewRootImpl(31033): ViewPostImeInputStage processKey 1
W/art (31033): Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[19,tid=31166,Native,Thread*=0xb809aea0,peer=0x12cdc0a0,"Thread-2095"]
D/ViewRootImpl(31033): #3 mView = null
D/ViewRootImpl(31033): #1 mView = com.android.internal.policy.PhoneWindow$DecorView{7587fe0 I.E...... R.....ID 0,0-0,0}
I/Choreographer(31033): Skipped 31 frames! The application may be doing too much work on its main thread.
D/ViewRootImpl(31033): MSG_RESIZED_REPORT: ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 0) or=1
I/Timeline(31033): Timeline: Activity_idle id: android.os.BinderProxy@b235e12 time:9489084
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 0
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 1
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 0
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 1
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 0
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 1
I/flutter (31033): Gptpressed
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 0
D/ViewRootImpl(31033): ViewPostImeInputStage processPointer 1
V/ActivityThread(31033): updateVisibility : ActivityRecord{a73d40d token=android.os.BinderProxy@b235e12 {com.vision.vision/com.vision.vision.MainActivity}} show : false
E/flutter (31033): [ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(39)] java.lang.NoSuchMethodError: No direct method (Ljava/io/InputStream;)V in class Landroid/media/ExifInterface; or its super classes (declaration of 'android.media.ExifInterface' appears in /system/framework/framework.jar)
E/flutter (31033): at com.azihsoyn.flutter.mlkit.MlkitPlugin.getRotationAngle(MlkitPlugin.java:736)
E/flutter (31033): at com.azihsoyn.flutter.mlkit.MlkitPlugin.onMethodCall(MlkitPlugin.java:141)
E/flutter (31033): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:222)
E/flutter (31033): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:96)
E/flutter (31033): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:656)
E/flutter (31033): at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (31033): at android.os.MessageQueue.next(MessageQueue.java:323)
E/flutter (31033): at android.os.Looper.loop(Looper.java:135)
E/flutter (31033): at android.app.ActivityThread.main(ActivityThread.java:7331)
E/flutter (31033): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (31033): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
E/flutter (31033): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
E/flutter (31033):
F/flutter (31033): [FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(76)] Check failed: CheckException(env).
F/libc (31033): Fatal signal 6 (SIGABRT), code -6 in tid 31033 (m.vision.vision)


Build fingerprint: 'samsung/o7proltedd/o7prolte:6.0.1/MMB29M/G600FYDDU1BRD2:user/release-keys'
Revision: '3'
ABI: 'arm'
pid: 31033, tid: 31033, name: m.vision.vision >>> com.vision.vision <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(76)] Check failed: CheckException(env).
'
r0 00000000 r1 00007939 r2 00000006 r3 b6f3eb94
r4 b6f3eb9c r5 b6f3eb4c r6 00000058 r7 0000010c
r8 bebd7ccc r9 00000000 sl 00000001 fp b6eddedb
ip 00000006 sp bebd7ba8 lr b6cbff15 pc b6cc2310 cpsr 40070010
backtrace:
#00 pc 00044310 /system/lib/libc.so (tgkill+12)
#1 pc 00041f11 /system/lib/libc.so (pthread_kill+32)
#2 pc 0001ba13 /system/lib/libc.so (raise+10)
#3 pc 00018c81 /system/lib/libc.so (__libc_android_abort+34)
#4 pc 00016840 /system/lib/libc.so (abort+4)
#5 pc 00fa7b9f /data/app/com.vision.vision-1/lib/arm/libflutter.so (offset 0xf99000)
#6 pc 00f9dde1 /data/app/com.vision.vision-1/lib/arm/libflutter.so (offset 0xf99000)
#7 pc 00f9cad7 /data/app/com.vision.vision-1/lib/arm/libflutter.so (offset 0xf99000)
#8 pc 00fcfb83 /data/app/com.vision.vision-1/lib/arm/libflutter.so (offset 0xf99000)
#9 pc 00fa81f5 /data/app/com.vision.vision-1/lib/arm/libflutter.so (offset 0xf99000)
#10 pc 00fab943 /data/app/com.vision.vision-1/lib/arm/libflutter.so (offset 0xf99000)
#11 pc 00012fcf /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+530)
#12 pc 0001309f /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+130)
#13 pc 00084455 /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22)
#14 pc 02fbe575 /system/framework/arm/boot.oat (offset 0x2fbe000)
Tombstone written to: /data/tombstones/tombstone_04
Lost connection to device.

issue with latest google-services dependency

Building a project with the latest version of google-services:4.2.0, the one recommended on the firebase console causes a dependency error. The newer com.google.firebase:[email protected] doesn't let gradle compile due to your library being dependent upon com.google.firebase:[email protected]. Might be worth making a note of in the readme if you don't plan on updating anytime soon.

BufferOverflowException when using FirebaseModelDataType.FLOAT32 in custom model

I see the following crash when using FirebaseModelDataType.FLOAT32 as the input type for my custom model:

2018-10-18 00:15:30.178 25593-25593/com.devrel.sample.fluttermlkit E/MethodChannel#plugins.flutter.io/mlkit: Failed to handle method call
    java.nio.BufferOverflowException
        at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:291)
        at java.nio.ByteBuffer.put(ByteBuffer.java:732)
        at com.azihsoyn.flutter.mlkit.MlkitPlugin.onMethodCall(MlkitPlugin.java:290)
        at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191)
        at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163)
        at android.os.MessageQueue.nativePollOnce(Native Method)
        at android.os.MessageQueue.next(MessageQueue.java:326)
        at android.os.Looper.loop(Looper.java:160)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

I think it might be because not enough memory is allocated in the ByteBuffer here:

ByteBuffer buffer = ByteBuffer.allocateDirect(toDim(_inputDims));

It looks like only the other input parameters are used when the type should be considered as well (if float then *4 the space needed).

Diffrent results from plugin and Python script on same model. - SELF SOLVED

The example code converts image 224x224x3 into long list where each pixel is recorded as RGB in buffer of length 224x244. In my opinion each channel should be serialized separately so first 224x244 is R channel the G then B.
Nevertheless using both method the results of custom not optimized float model are difffrent on Android phone than from Python script processing same image with same model.
I am trying almost a week to find difference, any hints ?

custom model only plugin

hey @azihsoyn,
Thank you for being the first in creating mlkit plugin for flutter, now that there is an official plugin for mlkit with the exception of being able to run custom models.

Do you think it would a good idea to make a plugin for just running a custom model and let the official plugin do the other stuff? so that the plugin can be lean

Cannot get the example to work. Need to initialize the FirebaseApp (FirebaseVisionTextDetector)?

Hi there, thank you for this plugin. I'm having a hard time getting the example to work:
Steps:
-Create new flutter project
-add mlkit: "^0.4.1" and image_picker: "^0.4.5" to dependencies
-get Packages
-copy pase code from main.dart in example folder to my project main.dart

run: The app opens up, when I select a file it shows the image in the container, but no text overlay and the text widget simply says 'Empty' even though the text is large and clear.

I get the following output (including error) from the Run console every time I select an image:

I/zygote64(17020): Do partial code cache collection, code=61KB, data=52KB
I/zygote64(17020): After code cache collection, code=61KB, data=52KB
I/zygote64(17020): Increasing code cache capacity to 256KB
I/flutter (17020): original Image Size : Size(720.0, 1280.0)
I/flutter (17020): offset : Offset(65.1, 80.0)
I/flutter (17020): configuration : ImageConfiguration(bundle: PlatformAssetBundle#eefb9(), devicePixelRatio: 2.6, locale: en_US, textDirection: TextDirection.ltr, size: Size(281.3, 500.0), platform: android)
I/flutter (17020): rect container : Rect.fromLTRB(65.1, 80.0, 346.3, 580.0)
I/flutter (17020): original Image Size : Size(720.0, 1280.0)
I/flutter (17020): offset : Offset(65.1, 80.0)
I/flutter (17020): configuration : ImageConfiguration(bundle: PlatformAssetBundle#eefb9(), devicePixelRatio: 2.6, locale: en_US, textDirection: TextDirection.ltr, size: Size(281.3, 500.0), platform: android)
I/flutter (17020): rect container : Rect.fromLTRB(65.1, 80.0, 346.3, 580.0)
I/flutter (17020): original Image Size : Size(720.0, 1280.0)
I/flutter (17020): offset : Offset(65.1, 80.0)
I/flutter (17020): configuration : ImageConfiguration(bundle: PlatformAssetBundle#eefb9(), devicePixelRatio: 2.6, locale: en_US, textDirection: TextDirection.ltr, size: Size(281.3, 500.0), platform: android)
I/flutter (17020): rect container : Rect.fromLTRB(65.1, 80.0, 346.3, 580.0)
I/flutter (17020): original Image Size : Size(720.0, 1280.0)
I/flutter (17020): offset : Offset(65.1, 80.0)
I/flutter (17020): configuration : ImageConfiguration(bundle: PlatformAssetBundle#eefb9(), devicePixelRatio: 2.6, locale: en_US, textDirection: TextDirection.ltr, size: Size(281.3, 500.0), platform: android)
I/flutter (17020): rect container : Rect.fromLTRB(65.1, 80.0, 346.3, 580.0)
I/flutter (17020): original Image Size : Size(720.0, 1280.0)
I/flutter (17020): offset : Offset(65.1, 80.0)
I/flutter (17020): configuration : ImageConfiguration(bundle: PlatformAssetBundle#eefb9(), devicePixelRatio: 2.6, locale: en_US, textDirection: TextDirection.ltr, size: Size(281.3, 500.0), platform: android)
I/flutter (17020): rect container : Rect.fromLTRB(65.1, 80.0, 346.3, 580.0)
I/flutter (17020): original Image Size : Size(720.0, 1280.0)
I/flutter (17020): offset : Offset(65.1, 80.0)
I/flutter (17020): configuration : ImageConfiguration(bundle: PlatformAssetBundle#eefb9(), devicePixelRatio: 2.6, locale: en_US, textDirection: TextDirection.ltr, size: Size(281.3, 500.0), platform: android)
I/flutter (17020): rect container : Rect.fromLTRB(65.1, 80.0, 346.3, 580.0)
I/flutter (17020): original Image Size : Size(720.0, 1280.0)
I/flutter (17020): offset : Offset(65.1, 80.0)
I/flutter (17020): configuration : ImageConfiguration(bundle: PlatformAssetBundle#eefb9(), devicePixelRatio: 2.6, locale: en_US, textDirection: TextDirection.ltr, size: Size(281.3, 500.0), platform: android)
I/flutter (17020): rect container : Rect.fromLTRB(65.1, 80.0, 346.3, 580.0)
I/flutter (17020): original Image Size : Size(720.0, 1280.0)
I/flutter (17020): offset : Offset(65.1, 80.0)
I/flutter (17020): configuration : ImageConfiguration(bundle: PlatformAssetBundle#eefb9(), devicePixelRatio: 2.6, locale: en_US, textDirection: TextDirection.ltr, size: Size(281.3, 500.0), platform: android)
I/flutter (17020): rect container : Rect.fromLTRB(65.1, 80.0, 346.3, 580.0)
I/flutter (17020): original Image Size : Size(720.0, 1280.0)
I/flutter (17020): offset : Offset(65.1, 80.0)
I/flutter (17020): configuration : ImageConfiguration(bundle: PlatformAssetBundle#eefb9(), devicePixelRatio: 2.6, locale: en_US, textDirection: TextDirection.ltr, size: Size(281.3, 500.0), platform: android)
I/flutter (17020): rect container : Rect.fromLTRB(65.1, 80.0, 346.3, 580.0)
I/FlutterActivityDelegate(17020): onResume setting current activity to this
E/MethodChannel#plugins.flutter.io/mlkit(17020): Failed to handle method call
E/MethodChannel#plugins.flutter.io/mlkit(17020): java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.kieserengineering.mlkittest. Make sure to call FirebaseApp.initializeApp(Context) first.
E/MethodChannel#plugins.flutter.io/mlkit(17020): 	at com.google.firebase.FirebaseApp.getInstance(Unknown Source:59)
E/MethodChannel#plugins.flutter.io/mlkit(17020): 	at com.google.firebase.ml.vision.FirebaseVision.getInstance(Unknown Source:0)
E/MethodChannel#plugins.flutter.io/mlkit(17020): 	at com.azihsoyn.flutter.mlkit.MlkitPlugin.onMethodCall(MlkitPlugin.java:84)
E/MethodChannel#plugins.flutter.io/mlkit(17020): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191)
E/MethodChannel#plugins.flutter.io/mlkit(17020): 	at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:136)
E/MethodChannel#plugins.flutter.io/mlkit(17020): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#plugins.flutter.io/mlkit(17020): 	at android.os.MessageQueue.next(MessageQueue.java:325)
E/MethodChannel#plugins.flutter.io/mlkit(17020): 	at android.os.Looper.loop(Looper.java:142)
E/MethodChannel#plugins.flutter.io/mlkit(17020): 	at android.app.ActivityThread.main(ActivityThread.java:6753)
E/MethodChannel#plugins.flutter.io/mlkit(17020): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#plugins.flutter.io/mlkit(17020): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:482)
E/MethodChannel#plugins.flutter.io/mlkit(17020): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
I/flutter (17020): PlatformException(error, Default FirebaseApp is not initialized in this process com.kieserengineering.mlkittest. Make sure to call FirebaseApp.initializeApp(Context) first., null)
I/flutter (17020): original Image Size : Size(720.0, 1280.0)
I/flutter (17020): offset : Offset(205.7, 330.0)
I/flutter (17020): configuration : ImageConfiguration(bundle: PlatformAssetBundle#eefb9(), devicePixelRatio: 2.6, locale: en_US, textDirection: TextDirection.ltr, size: Size(0.0, 0.0), platform: android)
I/flutter (17020): rect container : Rect.fromLTRB(205.7, 330.0, 205.7, 330.0)
I/flutter (17020): original Image Size : Size(1871.0, 2627.0)
I/flutter (17020): offset : Offset(27.7, 80.0)
I/flutter (17020): configuration : ImageConfiguration(bundle: PlatformAssetBundle#eefb9(), devicePixelRatio: 2.6, locale: en_US, textDirection: TextDirection.ltr, size: Size(356.1, 500.0), platform: android)
I/flutter (17020): rect container : Rect.fromLTRB(27.7, 80.0, 383.8, 580.0)

Do I need to do preprocessing ?

Hi,

I am new to Firebase and the MLKit. I was wondering if any preprocessing is required or if this is already being done by the plugin ?

I want to recognize urls out of an image from a browser. The mlkit plugin has problems with readings f.e equal signs or hyphens.

The original link: https://www.youtube.com/watch?v=F5KgsubkMCA

After Firebase OCR: https://www.youtube.com/watch?v-F5KgsubkMCA

As you can see "v=" is later "v-", sometimes also ":" are missing.

Is there a chance that you could implement some preprocessing ?

Input Firebase App can not be nil

Hi,

I am getting this error when trying to use MLKit plugin. Rest of flutterfire plugins are working.
There was another error I was getting
__FIRAPP_DEFAULT does not exist

This was solved by making following changes to AppDelegate.m

import UIKit
import Flutter
import Firebase

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
FirebaseApp.configure()
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}

But still I am getting the error mentioned in the topic. Please help!!

Thanks

Fresh install causes errors

Getting below errors while building for IOS. I do everything as instructed. My targe ios is 10.0

/Users/arrrrny/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.14.1/ios/Classes/MlkitPlugin.m:234:37: error: no visible @interface for 'FIRRemoteModel' declares the selector 'initWithName:allowsModelUpdates:initialConditions:updateConditions:'
[[FIRRemoteModel alloc] initWithName:modeName
~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
/Users/arrrrny/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.14.1/ios/Classes/MlkitPlugin.m:239:45: error: no visible @interface for 'FIRModelManager' declares the selector 'registerRemoteModel:'
[[FIRModelManager modelManager] registerRemoteModel:remoteModelSource];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/Users/arrrrny/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.14.1/ios/Classes/MlkitPlugin.m:238:18: warning: unused variable 'registrationSuccess' [-Wunused-variable]
BOOL registrationSuccess =
^
/Users/arrrrny/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.14.1/ios/Classes/MlkitPlugin.m:247:64: error: no visible @interface for 'FIRLocalModel' declares the selector 'initWithName:path:'
FIRLocalModel *localModel = [[FIRLocalModel alloc] initWithName:modeName
~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
/Users/arrrrny/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.14.1/ios/Classes/MlkitPlugin.m:250:45: error: no visible @interface for 'FIRModelManager' declares the selector 'registerLocalModel:'
[[FIRModelManager modelManager] registerLocalModel:localModel];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~
/Users/arrrrny/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.14.1/ios/Classes/MlkitPlugin.m:249:18: warning: unused variable 'registrationSuccess' [-Wunused-variable]
BOOL registrationSuccess =
^
/Users/arrrrny/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.14.1/ios/Classes/MlkitPlugin.m:261:9: error: unknown type name 'FIRModelOptions'; did you mean 'FIRModelOutputs'?
FIRModelOptions *options = [[FIRModelOptions alloc] initWithRemoteModelName:remoteModelName localModelName:localModelName];
^~~~~~~~~~~~~~~
FIRModelOutputs
In module 'FirebaseMLModelInterpreter' imported from /Users/arrrrny/Developer/ml_test/ios/Pods/Headers/Public/Firebase/Firebase.h:69:
/Users/arrrrny/Developer/ml_test/ios/Pods/FirebaseMLModelInterpreter/Frameworks/FirebaseMLModelInterpreter.framework/Headers/FIRModelOutputs.h:7:12: note: 'FIRModelOutputs' declared here
@interface FIRModelOutputs : NSObject
^
/Users/arrrrny/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.14.1/ios/Classes/MlkitPlugin.m:261:38: error: unknown receiver 'FIRModelOptions'; did you mean 'FIRModelOutputs'?
FIRModelOptions *options = [[FIRModelOptions alloc] initWithRemoteModelName:remoteModelName localModelName:localModelName];
^~~~~~~~~~~~~~~
FIRModelOutputs
In module 'FirebaseMLModelInterpreter' imported from /Users/arrrrny/Developer/ml_test/ios/Pods/Headers/Public/Firebase/Firebase.h:69:
/Users/arrrrny/Developer/ml_test/ios/Pods/FirebaseMLModelInterpreter/Frameworks/FirebaseMLModelInterpreter.framework/Headers/FIRModelOutputs.h:7:12: note: 'FIRModelOutputs' declared here
@interface FIRModelOutputs : NSObject
/Users/arrrrny/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.14.1/ios/Classes/MlkitPlugin.m:261:61: error: no visible @interface for 'FIRModelOutputs' declares the selector 'initWithRemoteModelName:localModelName:'
FIRModelOptions *options = [[FIRModelOptions alloc] initWithRemoteModelName:remoteModelName localModelName:localModelName];
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/arrrrny/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.14.1/ios/Classes/MlkitPlugin.m:262:65: error: no known class method for selector 'modelInterpreterWithOptions:'
FIRModelInterpreter *interpreter = [FIRModelInterpreter modelInterpreterWithOptions:options];
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/arrrrny/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.14.1/ios/Classes/MlkitPlugin.m:365:22: warning: implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
int length = [((NSArray *)o) count];

Remote Model not downloading.

Currently trying to run the interpreter with a custom model published on firebase called 'test'. I keep Getting these log statements and I can't figure out what is going on for the life of me.

Building input options Building output options Running detection Detection run Failed runWithInputs with error: Failed to load the custom model as no models currently exist on the device for the given model options: remoteModelName: test, localModelName: (null). However, a request has been made to download the remote model.

CocoaPods could not find compatible versions for pod "Firebase/MLNaturalLanguage"

I cloned this repository, But example does not work with "Firebase/MLNaturalLanguage" version issue.

$ cd example

$ flutter run

Launching lib/main.dart on iPhone Xʀ in debug mode...
Running pod install...                                              0.6s
CocoaPods' output:
↳
      Preparing

    Analyzing dependencies

    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (`arm64`)

    Fetching external sources
    -> Fetching podspec for `Flutter` from `Pods/.symlinks/flutter/ios`
    -> Fetching podspec for `image_picker` from `Pods/.symlinks/plugins/image_picker/ios`
    -> Fetching podspec for `mlkit` from `Pods/.symlinks/plugins/mlkit/ios`

    Resolving dependencies of `Podfile`
    [!] CocoaPods could not find compatible versions for pod "Firebase/MLNaturalLanguage":
      In Podfile:
        mlkit (from `Pods/.symlinks/plugins/mlkit/ios`) was resolved to 0.8.3, which depends on
          Firebase/MLNaturalLanguage (~> 5.11.0)

    None of your spec sources contain a spec satisfying the dependency: `Firebase/MLNaturalLanguage (~> 5.11.0)`.

    You have either:
     * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
     * mistyped the name or version.
     * not added the source repo that hosts the Podspec to your Podfile.

    Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

    /Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
    /Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
    /Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
    /Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
    /Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:257:in `process_topmost_state'
    /Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
    /Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/resolver.rb:88:in `resolve'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/installer/analyzer.rb:939:in `block in resolve_dependencies'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/installer/analyzer.rb:937:in `resolve_dependencies'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/installer/analyzer.rb:118:in `analyze'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/installer.rb:398:in `analyze'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/installer.rb:221:in `block in resolve_dependencies'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/installer.rb:220:in `resolve_dependencies'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/installer.rb:156:in `install!'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/command/install.rb:51:in `run'
    /Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/lib/cocoapods/command.rb:52:in `run'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.0/bin/pod:55:in `<top (required)>'
    /usr/local/bin/pod:22:in `load'
    /usr/local/bin/pod:22:in `<main>'

Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
  pod repo update



Error running pod install
Error launching application on iPhone Xʀ.

$ uname -a
Darwin jessica.local 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64

$ flutter --version
Flutter 1.5.4-hotfix.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 7a4c33425d (4 weeks ago) • 2019-04-29 11:05:24 -0700
Engine • revision 52c7a1e849
Tools • Dart 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

$ pod --version
1.7.0

$ pod list | grep -i firebase
  ANN9FirebaseAnalytics 0.0.2
  AppicFirebase 5.18.0
  ChatSDKFirebase 4.11.1
  CodableFirebase 0.2.1
  DryFirebase 0.0.2
  FireBasePod 0.1.2
  Firebase 6.1.0
  Firebase-Cocoa-SDK 2.3.4
  Firebase-RACExtensions 0.3.1
  FirebaseABTesting 3.0.0
  FirebaseAnalytics 6.0.1
  FirebaseAnalyticsInterop 1.2.0
  FirebaseAppIndexing 1.2.0
  FirebaseAuth 6.1.0
  FirebaseAuthInterop 1.0.0
  FirebaseChat 0.1.1
  FirebaseCheckVersion 1.0.9
  FirebaseCommunity 0.1.6
  FirebaseCore 6.0.1
  FirebaseCrash 3.1.1
  FirebaseDatabase 6.0.0
  FirebaseDeviceStore 0.0.1
  FirebaseDynamicLinks 4.0.0
  FirebaseFirestore 1.3.1
  FirebaseFunctions 2.5.1
  FirebaseGenericClient 0.1.1
  FirebaseHelper 1.0.0
  FirebaseInAppMessaging 0.14.1
  FirebaseInAppMessagingDisplay 0.14.0
  FirebaseInstanceID 4.1.0
  FirebaseInvites 3.0.1
  FirebaseMLCommon 0.16.0
  FirebaseMLModelInterpreter 0.16.0
  FirebaseMLNLLanguageID 0.16.1
  FirebaseMLNLSmartReply 0.16.1
  FirebaseMLNLTranslate 0.16.1
  FirebaseMLNaturalLanguage 0.16.1
  FirebaseMLVision 0.16.0
  FirebaseMLVisionAutoML 0.16.0
  FirebaseMLVisionBarcodeModel 0.16.0
  FirebaseMLVisionFaceModel 0.16.0
  FirebaseMLVisionLabelModel 0.16.0
  FirebaseMLVisionObjectDetection 0.16.0
  FirebaseMLVisionTextModel 0.16.0
  FirebaseMessaging 4.0.1
  FirebaseOSX 2.5.1
  FirebaseObjects 0.0.1
  FirebasePerformance 3.0.0
  FirebaseRemoteConfig 4.0.0
  FirebaseResultsController 1.0.0
  FirebaseRxSwiftExtensions 2.0.10
  FirebaseStorage 3.2.1
  FirebaseStorageCache 0.0.10
  FirebaseStorageCacheable 0.1.2
  FirebaseSwizzlingUtilities 2.0.0
  FirebaseUI 7.0.0
  FirebaseUtils 0.1.0
  FirebaseWrapper 0.1.0
  IF_FirebaseFollowHelperKit 0.0.1
  MKFirebaseObjectMapping 0.2.2
  MzzFirebase 0.1.0
  OneSDKFireBase 0.3.0
  ReactiveFirebase 0.1.3
  RxFirebase 0.3.6
  RxFirebaseAuth 2.2
  RxFirebaseAuthentication 0.3.7
  RxFirebaseDatabase 0.3.7
  RxFirebaseFirestore 0.3.7
  RxFirebaseFunctions 0.3.7
  RxFirebaseRemoteConfig 0.3.7
  RxFirebaseStorage 0.3.7
  Segment-Firebase 2.4.0
  mParticle-Google-Analytics-Firebase 7.9.1

Local model

Is local model supported? I see the local model register method in the APIs but for interpreter invoke method the only argument it asks for is the remote one. Can you please share a timeline when the local model will be available for inference?

Thanks

Release Mode Android | couldn't find "libflutter.so"

Hi all,

I'm having an issue when using the library and building a release apk for Android.

flutter -v doctor

[√] Flutter (Channel beta, v0.7.3, on Microsoft Windows [Version 10.0.17134.285], locale fr-FR)
• Flutter version 0.7.3 at C:\Users\lance\Dev\SDK\flutter
• Framework revision 3b309bda07 (3 weeks ago), 2018-08-28 12:39:24 -0700
• Engine revision af42b6dc95
• Dart version 2.1.0-dev.1.0.flutter-ccb16f7282

[√] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at C:\Users\lance\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.

[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 28.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] IntelliJ IDEA Community Edition (version 2018.2)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.1.5
• Flutter plugin version 28.0.4
• Dart plugin version 182.4323.44

[√] Connected devices (1 available)
• ONEPLUS A3003 • 94e1fa9b • android-arm64 • Android 8.0.0 (API 26)

• No issues found!

Reproduce issue

  1. Create an empty flutter project

  2. Replace main.dart with

https://pub.dartlang.org/packages/mlkit#-example-tab-

  1. Update pubspec.yaml to

mlkit: ^0.6.2 image_picker:

  1. run $ flutter build apk

  2. I am getting the following

AndroidRuntime: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/eu.my-domain.mlkit-test-VnjMxahfeCGMItX8kAUbAg==/base.apk"],nativeLibraryDirectories=[/data/app/eu.my-domain.mlkit-test-VnjMxahfeCGMItX8kAUbAg==/lib/arm64, /data/app/eu.my-domain.mlkit-test-VnjMxahfeCGMItX8kAUbAg==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]] couldn't find "libflutter.so"

This seems to be linked to
flutter/flutter#18939
flutter/flutter#18494

Any ideas why this is hapenning?

cannot run on ios

hi. I want to use your FirebaseVisionTextDetector.
my app works fine on android, but when tried to run on ios, build failed with following errors.
what would you suppose wrong with my project?

Xcode's output:

=== BUILD TARGET mlkit OF PROJECT Pods WITH CONFIGURATION Debug ===
In file included from /Users/kunugisayuri/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.6.0/ios/Classes/MlkitPlugin.m:1:
In file included from /Users/kunugisayuri/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.6.0/ios/Classes/MlkitPlugin.h:1:
In file included from /Users/kunugisayuri/StudioProjects/insurance_card_reader/ios/Pods/Headers/Public/Flutter/Flutter/Flutter.h:37:
In file included from /Users/kunugisayuri/StudioProjects/insurance_card_reader/ios/Pods/Headers/Public/Flutter/Flutter/FlutterAppDelegate.h:11:
/Users/kunugisayuri/StudioProjects/insurance_card_reader/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:140:58: warning: this block declaration is not a prototype [-Wstrict-prototypes]
completionHandler:(nonnull void (^)())completionHandler;
^
void
/Users/kunugisayuri/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.6.0/ios/Classes/MlkitPlugin.m:25:1: error: unknown type name 'FIRVisionTextDetector'; did you mean 'FIRVisionFaceDetector'?
FIRVisionTextDetector textDetector;
^~~~~~~~~~~~~~~~~~~~~
FIRVisionFaceDetector
In file included from /Users/kunugisayuri/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.6.0/ios/Classes/MlkitPlugin.m:2:
In file included from /Users/kunugisayuri/StudioProjects/insurance_card_reader/ios/Pods/Headers/Private/Firebase/Firebase.h:62:
In file included from /Users/kunugisayuri/StudioProjects/insurance_card_reader/ios/Pods/Headers/Public/FirebaseMLVision/FirebaseMLVision/FirebaseMLVision.h:19:
/Users/kunugisayuri/StudioProjects/insurance_card_reader/ios/Pods/Headers/Public/FirebaseMLVision/FirebaseMLVision/FIRVisionFaceDetector.h:22:12: note: 'FIRVisionFaceDetector' declared here
@interface FIRVisionFaceDetector : NSObject
^
/Users/kunugisayuri/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.6.0/ios/Classes/MlkitPlugin.m:186:41: error: type argument 'FIRVisionText' must be a pointer (requires a '
')
NSDictionary *visionTextToDictionary(id visionText) {
^
*
/Users/kunugisayuri/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.6.0/ios/Classes/MlkitPlugin.m:186:38: error: type arguments cannot be applied to non-class type 'id'
NSDictionary visionTextToDictionary(id visionText) {
^ ~~~~~~~~~~~~~~~
/Users/kunugisayuri/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.6.0/ios/Classes/MlkitPlugin.m:72:32: error: no visible @interface for 'FIRVision' declares the selector 'textDetector'
textDetector = [vision textDetector];
~~~~~~ ^~~~~~~~~~~~
/Users/kunugisayuri/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.6.0/ios/Classes/MlkitPlugin.m:82:43: error: type argument 'FIRVisionText' must be a pointer (requires a '
')
for (id feature in features) {
^
*
/Users/kunugisayuri/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.6.0/ios/Classes/MlkitPlugin.m:82:39: error: type arguments cannot be applied to non-class type 'id'
for (id feature in features) {
^ ~~~~~~~~~~~~~~~
/Users/kunugisayuri/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.6.0/ios/Classes/MlkitPlugin.m:188:17: error: property 'cornerPoints' not found on object of type '__strong id'
[visionText.cornerPoints enumerateObjectsUsingBlock:^(NSValue * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
^
/Users/kunugisayuri/flutter/.pub-cache/hosted/pub.dartlang.org/mlkit-0.6.0/ios/Classes/MlkitPlugin.m:195:35: error: property 'text' not found on object of type '__strong id'
@"text" : visionText.text,
^
1 warning and 8 errors generated.
Could not build the application for the simulator.
Error launching application on iPhone X.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.