I try to use Don Manfred's example program
Firebase ML-Vision (OnDevice Text-, Barcode-, Face-, Contour-Recognition and Imagelabeling)
but I have an error on the code line:
thanks for your help
Solved with Firebase Vision ML Kit #3
.
Firebase ML-Vision (OnDevice Text-, Barcode-, Face-, Contour-Recognition and Imagelabeling)
but I have an error on the code line:
B4X:
detector.Initialize("MLVision",CameraSourcePreview1,GraphicOverlay1,File.Combine(File.DirAssets,"clown_nose.png"),vision.BARCODE_DETECTION)
Using Barcode Detector Processor
Error occurred on line: 75 (Main)
java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.firebase.ml.vision.barcode.FirebaseVisionBarcodeDetector
com.google.firebase.ml.vision.FirebaseVision.getVisionBarcodeDetector()' on a null object reference
at com.google.firebase.samples.mlkit.barcodescanning.BarcodeScanningProcessor.<init>(BarcodeScanningProcessor.java:52)
at de.donmanfred.FirebaseDetectorwrapper.createCameraSource(FirebaseDetectorwrapper.java:479)
at de.donmanfred.FirebaseDetectorwrapper.Initialize(FirebaseDetectorwrapper.java:93)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.shell.DebugResumableSub$RemoteResumableSub.resume(DebugResumableSub.java:22)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)...
Solved with Firebase Vision ML Kit #3
.
Last edited: