安装后,本机防火墙核心应用程序和mlkit。mlkit不工作,当我尝试使用函数textRecognizerProcessImage时会失败。
我跟着:https://invertase.io/oss/react-native-firebase/v6/ml-vision/quick-start,另外,对于ios,我做了一个downloaded安装,并看到了mlkit是如何下载的。然而,上述错误发生在android和ios上。有人有线索吗?
编辑:我还可以使用google-services.json和googleservice-info.plist访问firebase项目。
相关的部分来自我的package.json。我正在为所有人使用最新版本。(正如您所看到的,我也在使用/auth和/database,它们都工作得很好!
"dependencies": {
"@react-native-firebase/app": "^6.0.0",
"@react-native-firebase/auth": "^6.0.0",
"@react-native-firebase/database": "^6.0.0",
"@react-native-firebase/ml-vision": "^6.0.0",
"react": "16.9.0",
"react-native": "0.61.1"
},
firebase.json:
{
"react-native": {
"ml_vision_face_model": true,
"ml_vision_ocr_model": true,
"ml_vision_barcode_model": true,
"ml_vision_label_model": true,
"ml_vision_image_label_model": true
}
}
发布于 2019-09-27 15:24:17
简单的解决办法..。这些文件谈到
import vision from '@react-native-firebase/ml-vision';
导入视觉库。但是,vision.anyFunctionHere不能工作,因为它不是实例。
解决方案是使用vision().anyFunctionHere (而不是厄运的括号,它花费了我几个小时的时间和大量的挫折感-.)
https://stackoverflow.com/questions/58137053
复制相似问题