mlkit icon indicating copy to clipboard operation
mlkit copied to clipboard

[Bug report] Failed to initialize detector

Open SlamDunk007 opened this issue 1 year ago • 2 comments

Describe the bug When I use MlKit Object detection to detect,sometimes will show this issue

"Failed to initialize detector" of addOnFailureListener method

anyone can help to solve this or know the reason

SlamDunk007 avatar Sep 26 '23 12:09 SlamDunk007

Could you provide more info? e.g. which SDK (object detection with base or custom model?), SDK version, OS version, full stacktrace

ai-plays avatar Oct 02 '23 17:10 ai-plays

mlkit version:'com.google.mlkit:object-detection:17.0.0' OS Version:android 10,Redmi Note9 Pro

I get the error from this method:addOnFailureListener response it just show:Failed to initialize detector

detect(inputImage)?.addOnSuccessListener(activity) { detectedObjects -> }?.addOnFailureListener(activity) { e -> // get this error from here }

It only crash on Google play package sometimes

Looking forward to your reply!

SlamDunk007 avatar Nov 20 '23 06:11 SlamDunk007