You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i followed all instructions and try to run example of this repo, just replaced wtih my custom model
to detect labels of image. text detection is working fine. i m using latest flutter and android Q sdk.
here is my log: I/BufferQueueProducer(2878): [SurfaceTexture-0-2878-0](this:0xc4a7c000,id:0,api:1,p:2878,c:2878) queueBuffer: fps=9.97 dur=1003.41 max=102.14 min=99.24 E/AndroidRuntime( 2878): FATAL EXCEPTION: CameraBackground E/AndroidRuntime( 2878): Process: com.example.ml_flr, PID: 2878 E/AndroidRuntime( 2878): java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.ml.vision.label.FirebaseVisionImageLabeler.processImage(com.google.firebase.ml.vision.common.FirebaseVisionImage)' on a null object reference E/AndroidRuntime( 2878): at io.flutter.plugins.firebaselivestreammlvision.LocalVisionEdgeDetector.handleDetection(LocalVisionEdgeDetector.java:48) E/AndroidRuntime( 2878): at io.flutter.plugins.firebaselivestreammlvision.FirebaseLivestreamMlVisionPlugin$Camera.processImage(FirebaseLivestreamMlVisionPlugin.java:539) E/AndroidRuntime( 2878): at io.flutter.plugins.firebaselivestreammlvision.FirebaseLivestreamMlVisionPlugin$Camera.access$1300(FirebaseLivestreamMlVisionPlugin.java:279) E/AndroidRuntime( 2878): at io.flutter.plugins.firebaselivestreammlvision.FirebaseLivestreamMlVisionPlugin$Camera$3.onImageAvailable(FirebaseLivestreamMlVisionPlugin.java:549) E/AndroidRuntime( 2878): at android.media.ImageReader$ListenerHandler.handleMessage(ImageReader.java:812) E/AndroidRuntime( 2878): at android.os.Handler.dispatchMessage(Handler.java:106) E/AndroidRuntime( 2878): at android.os.Looper.loop(Looper.java:164) E/AndroidRuntime( 2878): at android.os.HandlerThread.run(HandlerThread.java:65) I/BufferQueueProducer( 2878): [SurfaceTexture-1-2878-1](this:0xbba7e000,id:2,api:4,p:485,c:2878) queueBuffer: slot 1 is dropped, handle=0xdb7a3760 I/BufferQueueProducer( 2878): [ImageReader-1440x1080f23m2-2878-0](this:0xc0d0c000,id:1,api:4,p:2878,c:2878) queueBuffer: slot 1 is dropped, handle=0xdb7a5d00 D/ViewRootImpl@a702665[MainActivity]( 2878): MSG_WINDOW_FOCUS_CHANGED 0
i followed all instructions and try to run example of this repo, just replaced wtih my custom model
to detect labels of image. text detection is working fine. i m using latest flutter and android Q sdk.
here is my log:
I/BufferQueueProducer(2878): [SurfaceTexture-0-2878-0](this:0xc4a7c000,id:0,api:1,p:2878,c:2878) queueBuffer: fps=9.97 dur=1003.41 max=102.14 min=99.24 E/AndroidRuntime( 2878): FATAL EXCEPTION: CameraBackground E/AndroidRuntime( 2878): Process: com.example.ml_flr, PID: 2878 E/AndroidRuntime( 2878): java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.ml.vision.label.FirebaseVisionImageLabeler.processImage(com.google.firebase.ml.vision.common.FirebaseVisionImage)' on a null object reference E/AndroidRuntime( 2878): at io.flutter.plugins.firebaselivestreammlvision.LocalVisionEdgeDetector.handleDetection(LocalVisionEdgeDetector.java:48) E/AndroidRuntime( 2878): at io.flutter.plugins.firebaselivestreammlvision.FirebaseLivestreamMlVisionPlugin$Camera.processImage(FirebaseLivestreamMlVisionPlugin.java:539) E/AndroidRuntime( 2878): at io.flutter.plugins.firebaselivestreammlvision.FirebaseLivestreamMlVisionPlugin$Camera.access$1300(FirebaseLivestreamMlVisionPlugin.java:279) E/AndroidRuntime( 2878): at io.flutter.plugins.firebaselivestreammlvision.FirebaseLivestreamMlVisionPlugin$Camera$3.onImageAvailable(FirebaseLivestreamMlVisionPlugin.java:549) E/AndroidRuntime( 2878): at android.media.ImageReader$ListenerHandler.handleMessage(ImageReader.java:812) E/AndroidRuntime( 2878): at android.os.Handler.dispatchMessage(Handler.java:106) E/AndroidRuntime( 2878): at android.os.Looper.loop(Looper.java:164) E/AndroidRuntime( 2878): at android.os.HandlerThread.run(HandlerThread.java:65) I/BufferQueueProducer( 2878): [SurfaceTexture-1-2878-1](this:0xbba7e000,id:2,api:4,p:485,c:2878) queueBuffer: slot 1 is dropped, handle=0xdb7a3760 I/BufferQueueProducer( 2878): [ImageReader-1440x1080f23m2-2878-0](this:0xc0d0c000,id:1,api:4,p:2878,c:2878) queueBuffer: slot 1 is dropped, handle=0xdb7a5d00 D/ViewRootImpl@a702665[MainActivity]( 2878): MSG_WINDOW_FOCUS_CHANGED 0
code:
`
import 'package:firebase_livestream_ml_vision/firebase_livestream_ml_vision.dart';
import 'package:flutter/material.dart';
import 'detector_painters.dart';
`
The text was updated successfully, but these errors were encountered: