Hi,
Thank you @DonManfred for this library
Firebase ML Vision
App Starts successfully and barcode or text can be scanned, but when I switch to Face, Contour-Recognition, the app crashes!
the unfiltered log file logged errors:
AssetsDir/clown_nose.png: open failed: ENOENT (No such file or directory),
face_detector_v2_jni.cc:33 Loading models/fssd_25_8bit_v1.tflite
face_detector_v2_jni.cc:41 Unable to open asset: models/fssd_25_8bit_v1.tflite
and others errors.
I confirm that the file 'clown_nose.png' exists at File Folder and can be read, if I pressed Button1.
Have I missed something? Please help!
my manifest file:
Thank you @DonManfred for this library
Firebase ML Vision
App Starts successfully and barcode or text can be scanned, but when I switch to Face, Contour-Recognition, the app crashes!
the unfiltered log file logged errors:
AssetsDir/clown_nose.png: open failed: ENOENT (No such file or directory),
face_detector_v2_jni.cc:33 Loading models/fssd_25_8bit_v1.tflite
face_detector_v2_jni.cc:41 Unable to open asset: models/fssd_25_8bit_v1.tflite
and others errors.
I confirm that the file 'clown_nose.png' exists at File Folder and can be read, if I pressed Button1.
Have I missed something? Please help!
B4X:
spRegognizers_ItemClick(3, Face Detection)
app passed NULL surface
Using Face Detector Processor
Unable to decode stream: java.io.FileNotFoundException: AssetsDir/clown_nose.png: open failed: ENOENT (No such file or directory)
Considering local module com.google.android.gms.vision.dynamite.face:180000 and remote module com.google.android.gms.vision.dynamite.face:0
Selected local version of com.google.android.gms.vision.dynamite.face
face_detector_v2_jni.cc:33 Loading models/fssd_25_8bit_v1.tflite
face_detector_v2_jni.cc:41 Unable to open asset: models/fssd_25_8bit_v1.tflite
face_detector_v2_jni.cc:33 Loading models/fssd_25_8bit_gray_v1.tflite
face_detector_v2_jni.cc:41 Unable to open asset: models/fssd_25_8bit_gray_v1.tflite
face_detector_v2_jni.cc:33 Loading models/LMprec_600.emd
face_detector_v2_jni.cc:41 Unable to open asset: models/LMprec_600.emd
face_detector_v2_jni.cc:33 Loading models/BCLlefteyeclosed_200.emd
face_detector_v2_jni.cc:41 Unable to open asset: models/BCLlefteyeclosed_200.emd
face_detector_v2_jni.cc:33 Loading models/BCLrighteyeclosed_200.emd
face_detector_v2_jni.cc:41 Unable to open asset: models/BCLrighteyeclosed_200.emd
face_detector_v2_jni.cc:33 Loading models/BCLjoy_200.emd
face_detector_v2_jni.cc:41 Unable to open asset: models/BCLjoy_200.emd
face_detector_v2_jni.cc:33 Loading models/MFT_fssd_fastgray.pb
face_detector_v2_jni.cc:41 Unable to open asset: models/MFT_fssd_fastgray.pb
face_detector_v2_jni.cc:33 Loading models/contours.tfl
face_detector_v2_jni.cc:41 Unable to open asset: models/contours.tfl
face_detector_v2_jni.cc:33 Loading models/blazeface.tfl
face_detector_v2_jni.cc:41 Unable to open asset: models/blazeface.tfl
Could not open 'models/fssd_25_8bit_v1.tflite'.
--------- beginning of crash
Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 19371 (FirebaseMLHandl)
my manifest file:
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>
)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.DarkTheme)
'End of default text.
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)
AddPermission(android.permission.CAMERA) ' Required to be able to access the camera device.
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE) ' Allows an application to write to external storage.
AddApplicationText(
<service android:name="com.google.firebase.components.ComponentDiscoveryService" >
<meta-data
android:name="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar"
android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data
android:name="com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar"
android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data
android:name="com.google.firebase.components:com.google.firebase.ml.common.CommonComponentRegistrar"
android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data
android:name="com.google.firebase.components:com.google.firebase.ml.vision.VisionRegistrar"
android:value="com.google.firebase.components.ComponentRegistrar" />
</service>
)