ios - FirebaseMLVisionTextModel 已被弃用,取而代之的是 MLKitTextRecognition

标签 ios firebase cocoapods firebase-mlkit google-mlkit

我正在使用 Firebase MLKit TextRecognition API。尝试更新时出现警告 'pod Firebase/MLVisionTextModel' .如何更新 Firebase MLKit 库?

[!] FirebaseMLVisionTextModel has been deprecated in favor of MLKitTextRecognition

最佳答案

Firebase 设备上的 API 已移至 GoogleMLKit 下.

On June 3, 2020, we made some changes to ML Kit for Firebase to better distinguish the on-device APIs from cloud based APIs. The current set of APIs is now split into the following two products:

  • A new product, simply called ML Kit, which will contain all the on-device APIs
  • Firebase Machine Learning, focused on cloud-based APIs and custom model deployment.

所以新版Firebase/MLVisionTextModelGoogleMLKit/TextRecognition
pod 'GoogleMLKit/TextRecognition'
还有一个Migration Guide到新的 API。

关于ios - FirebaseMLVisionTextModel 已被弃用,取而代之的是 MLKitTextRecognition,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63573344/

相关文章:

ios - 数据库中的组名。仅显示一组名称 UITableView 行

swift - Firebase连续上传中途停止,只上传最后一张图片

json - 将 FIRTimestamp 转换为 JSON

ios - Cocoapods 未完全向现有工作区项目添加新的 pod/依赖项

ios - Swift URLSession.shared.dataTask GET 请求-1001 返回超时

ios - 使用 downloadTaskWithRequest 时 ResumeData 为零

git - 遇到了意外的版本目录类

ios - Cocoapods 不更新单个 pod

ios - 如何在 UIView 中重新加载 TableView ?

c# - 关于用于 Unity 和线程任务的新 Firebase SDK