Giter VIP home page Giter VIP logo

mcarlomagno / fluttermobilenet Goto Github PK

View Code? Open in Web Editor NEW
24.0 3.0 7.0 16.11 MB

πŸ¦ΎπŸ€– Mobilenet model implementation for image classification using the tflite library, a Flutter plugin for accessing TensorFlow Lite API.

License: BSD 3-Clause "New" or "Revised" License

Kotlin 0.60% Swift 1.92% Objective-C 0.18% Dart 97.30%
machine-learning mobilenets artifficial-intelligence flutter dart image-classification tensroflow

fluttermobilenet's People

Contributors

mcarlomagno 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

Watchers

 avatar  avatar  avatar

fluttermobilenet's Issues

Not working

Flutter run key commands.
h Repeat this help message.
c Clear the screen
q Quit (terminate the application on the device).
E/flutter (25354): [ERROR:flutter/shell/platform/android/platform_view_android_jni_impl.cc(43)] java.lang.NoSuchMethodError: No virtual method getOrDefault(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; in class Ljava/util/HashMap; or its super classes (declaration of 'java.util.HashMap' appears in /system/framework/core-libart.jar)
E/flutter (25354): at sq.flutter.tflite.TflitePlugin.loadModel(TflitePlugin.java:221)
E/flutter (25354): at sq.flutter.tflite.TflitePlugin.onMethodCall(TflitePlugin.java:95)
E/flutter (25354): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/flutter (25354): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/flutter (25354): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
E/flutter (25354): at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (25354): at android.os.MessageQueue.next(MessageQueue.java:150)
E/flutter (25354): at android.os.Looper.loop(Looper.java:139)
E/flutter (25354): at android.app.ActivityThread.main(ActivityThread.java:5541)
E/flutter (25354): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (25354): at java.lang.reflect.Method.invoke(Method.java:372)
E/flutter (25354): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
E/flutter (25354): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
E/flutter (25354):
F/flutter (25354): [FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(942)] Check failed: CheckException(env).

NoSuchMethodError: The getter height was called on null

E/flutter (11295): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: CameraException(Uninitialized CameraController, startImageStream was called on uninitialized CameraController.)
E/flutter (11295): #0 CameraController.startImageStream (package:camera/camera.dart:383:7)
E/flutter (11295): #1 CameraService.startStreaming (package:FlutterMobilenet/services/camera-service.dart:39:23)
E/flutter (11295): #2 HomeState.startRecognitions (package:FlutterMobilenet/widgets/home.dart:58:22)
E/flutter (11295): #3 HomeState.startUp (package:FlutterMobilenet/widgets/home.dart:51:7)
E/flutter (11295):
E/flutter (11295): #4 HomeState.didChangeAppLifecycleState (package:FlutterMobilenet/widgets/home.dart:113:7)
E/flutter (11295): #5 WidgetsBinding.handleAppLifecycleStateChanged (package:flutter/src/widgets/binding.dart:704:16)
E/flutter (11295): #6 ServicesBinding._handleLifecycleMessage (package:flutter/src/services/binding.dart:192:5)
E/flutter (11295): #7 BasicMessageChannel.setMessageHandler. (package:flutter/src/services/platform_channel.dart:74:49)
E/flutter (11295): #8 _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:283:33)
E/flutter (11295): #9 _invoke3. (dart:ui/hooks.dart:280:15)
E/flutter (11295): #10 _rootRun (dart:async/zone.dart:1190:13)
E/flutter (11295): #11 _CustomZone.run (dart:async/zone.dart:1093:19)
E/flutter (11295): #12 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
E/flutter (11295): #13 _invoke3 (dart:ui/hooks.dart:279:10)
E/flutter (11295): #14 _dispatchPlatformMessage (dart:ui/hooks.dart:154:5)
E/flutter (11295):

======== Exception caught by widgets library =======================================================
The following NoSuchMethodError was thrown building CameraScreen(dirty, dependencies: [MediaQuery], state: _CameraScreenState#fc335):
The getter 'height' was called on null.
Receiver: null
Tried calling: height

Could you help how to solve this issue?

Thanks!

TickerProviderStateMixin, and others...

Do you ever need the mixin TickerProviderStateMixin?

At Home screen you declare the variable AppLifecycleState _appLifecycleState; where is it used?

Why did you choose a singleton for each "service"? And what about a "normal" class?

Thank you

cannot run on ios

Analyzing dependencies

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

Fetching external sources
-> Fetching podspec for `Flutter` from `Flutter`
-> Fetching podspec for `camera` from `.symlinks/plugins/camera/ios`
-> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
-> Fetching podspec for `tflite` from `.symlinks/plugins/tflite/ios`

Resolving dependencies of `Podfile`
  CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
[!] CocoaPods could not find compatible versions for pod "tflite":
  In Podfile:
    tflite (from `.symlinks/plugins/tflite/ios`)

Specs satisfying the `tflite (from `.symlinks/plugins/tflite/ios`)` dependency were found, but they required a higher minimum deployment target.

/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:684:in `attempt_to_activate'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in `process_topmost_state'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:94:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1074:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

Error output from CocoaPods:
↳

[!] Automatically assigning platform `iOS` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Error running pod install
Error launching application on iPhone 12 Pro Max.

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.