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

FirebaseMLVisionTextModel has been deprecated in favor of MLKitTextRecognition

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

[!] FirebaseMLVisionTextModel has been deprecated in favor of MLKitTextRecognition

Firebase on-device 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。