我正在使用 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/MLVisionTextModel
是 GoogleMLKit/TextRecognition
pod 'GoogleMLKit/TextRecognition'
还有一个Migration Guide到新的 API。
关于ios - FirebaseMLVisionTextModel 已被弃用,取而代之的是 MLKitTextRecognition,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63573344/