我正在尝试使用Google ML Kit条形码检测功能。为此,我已经安装了由Google提供的这个示例应用程序。我还将我的应用程序连接到我的Firebase项目之一。当我打开应用程序并在Barode detection中进入LivePreviewActivity时,摄像头启动但没有检测到条形码!根据快速开始指南,我还添加了。
在我的清单文件中。此外,我已经包含了这个。
在BarcodeScanningProcessor.java文件中。
我遇到的错误是:
条码检测失败 com.google.firebase.ml.common.FirebaseMLException: 等待条形码检测模型下载,请稍候。 E/BarcodeNativeHandle:加载模块出错 java.lang.ClassNotFoundException: 找不到类“com.google.android.gms.chimera.DynamiteModuleInitializer”。
我已经在华为Mate 8和三星Galaxy S7 Edge两部手机上安装了该应用程序,但该应用程序无法从这两个手机中检测到条形码。
我的目标是从实时相机预览中检测/扫描条形码。 谢谢。
<meta-data
android:name="com.google.firebase.ml.vision.DEPENDENCIES"
android:value="barcode" />
在我的清单文件中。此外,我已经包含了这个。
FirebaseVisionBarcodeDetectorOptions options =
new FirebaseVisionBarcodeDetectorOptions.Builder()
.setBarcodeFormats(
FirebaseVisionBarcode.FORMAT_CODE_128)
.build();
在BarcodeScanningProcessor.java文件中。
我遇到的错误是:
条码检测失败 com.google.firebase.ml.common.FirebaseMLException: 等待条形码检测模型下载,请稍候。 E/BarcodeNativeHandle:加载模块出错 java.lang.ClassNotFoundException: 找不到类“com.google.android.gms.chimera.DynamiteModuleInitializer”。
我已经在华为Mate 8和三星Galaxy S7 Edge两部手机上安装了该应用程序,但该应用程序无法从这两个手机中检测到条形码。
我的目标是从实时相机预览中检测/扫描条形码。 谢谢。