版本说明

最新版本

Android API 最新版本

群组 ID工件名称版本最后更新时间
com.google.android.gmsplay-services-mlkit-barcode-scanning18.3.02023 年 8 月 1 日
com.google.android.gmsplay-services-mlkit-document-scanner16.0.0-beta12024 年 2 月 20 日
com.google.android.gmsplay-services-mlkit-face-detection17.1.02022 年 8 月 16 日
com.google.android.gmsplay-services-mlkit-image-labeling16.0.82022 年 8 月 16 日
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta52023 年 11 月 7 日
com.google.android.gmsplay-services-mlkit-language-id17.0.02022 年 8 月 16 日
com.google.android.gmsplay-services-mlkit-smart-reply16.0.0-beta12022 年 12 月 6 日
com.google.android.gmsplay-services-mlkit-subject-segmentation16.0.0-beta12023 年 11 月 7 日
com.google.android.gmsplay-services-mlkit-text-recognition19.0.02023 年 5 月 2 日
com.google.android.gmsplay-services-mlkit-text-recognition-chinese16.0.02023 年 5 月 2 日
com.google.android.gmsplay-services-mlkit-text-recognition-devanagari16.0.02023 年 5 月 2 日
com.google.android.gmsplay-services-mlkit-text-recognition-japanese16.0.02023 年 5 月 2 日
com.google.android.gmsplay-services-mlkit-text-recognition-korean16.0.02023 年 5 月 2 日
com.google.android.gmsplay-services-code-scanner16.1.02023 年 8 月 1 日
com.google.mlkit条形码扫描17.2.02023 年 8 月 1 日
com.google.mlkitcamera16.0.0-beta32022 年 1 月 25 日
com.google.mlkit数字墨水识别18.1.02023 年 1 月 31 日
com.google.mlkit实体提取16.0.0-beta52024 年 2 月 20 日
com.google.mlkit人脸检测16.1.62024 年 2 月 20 日
com.google.mlkit人脸网格检测16.0.0-beta22024 年 2 月 20 日
com.google.mlkit给图片加标签17.0.82024 年 2 月 20 日
com.google.mlkit图片标签 - 自定义17.0.22023 年 11 月 7 日
com.google.mlkitlanguage-id17.0.52024 年 2 月 20 日
com.google.mlkitlinkfirebase17.0.02022 年 1 月 25 日
com.google.mlkit对象检测17.0.12024 年 2 月 20 日
com.google.mlkit对象检测自定义17.0.12023 年 11 月 7 日
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta22022 年 1 月 25 日
com.google.mlkit姿势检测18.0.0-beta42024 年 2 月 20 日
com.google.mlkit姿势检测准确18.0.0-beta42024 年 2 月 20 日
com.google.mlkit分割自拍16.0.0-beta52024 年 2 月 20 日
com.google.mlkit智能回复17.0.32024 年 2 月 20 日
com.google.mlkit文字识别16.0.02023 年 5 月 2 日
com.google.mlkit文字-识别-中文16.0.02023 年 5 月 2 日
com.google.mlkit文字识别-梵文16.0.02023 年 5 月 2 日
com.google.mlkit文字识别-日语16.0.02023 年 5 月 2 日
com.google.mlkit文字识别-韩语16.0.02023 年 5 月 2 日
com.google.mlkit翻译17.0.22023 年 11 月 7 日

iOS API 最新版本

工件名称版本最后更新时间
GoogleMLKit5.0.02024 年 2 月 20 日
MLKitBarcodeScanning4.0.02024 年 2 月 20 日
MLKitCommon10.0.02024 年 2 月 20 日
MLKitDigitalInkRecognition4.0.02024 年 2 月 20 日
MLKitEntityExtraction1.0.0-beta112024 年 2 月 20 日
MLKitFaceDetection4.0.02024 年 2 月 20 日
MLKitImageLabeling4.0.02024 年 2 月 20 日
MLKitImageLabelingCommon6.0.02024 年 2 月 20 日
MLKitImageLabelingCustom4.0.02024 年 2 月 20 日
机器学习套件语言 ID5.0.02024 年 2 月 20 日
MLKitLinkFirebase4.0.02024 年 2 月 20 日
MLKitObjectDetection4.0.02024 年 2 月 20 日
MLKitObjectDetectionCommon6.0.02024 年 2 月 20 日
MLKitObjectDetectionCustom4.0.02024 年 2 月 20 日
MLKitPoseDetection1.0.0-beta122024 年 2 月 20 日
MLKitPoseDetectionAccurate1.0.0-beta122024 年 2 月 20 日
MLKitPoseDetectionCommon1.0.0-beta122024 年 2 月 20 日
MLKitSegmentationCommon1.0.0-beta102024 年 2 月 20 日
MLKitSegmentationSelfie1.0.0-beta102024 年 2 月 20 日
MLKitSmartReply4.0.02024 年 2 月 20 日
MLKitTextRecognition3.0.02024 年 2 月 20 日
MLKitTextRecognitionCommon2.0.02024 年 2 月 20 日
MLKitTextRecognitionChinese2.0.02024 年 2 月 20 日
MLKitTextRecognitionDevanagari2.0.02024 年 2 月 20 日
MLKitTextRecognitionJapanese2.0.02024 年 2 月 20 日
MLKitTextRecognitionKorean2.0.02024 年 2 月 20 日
MLKitTranslate4.0.02024 年 2 月 20 日
MLKitVision6.0.02024 年 2 月 20 日
MLImage1.0.0-beta52024 年 2 月 20 日

发布版本历史记录

2024 年 2 月 20 日

此版本加入了一些新功能,并进行了改进。

iOS API 详细信息

下表列出了此版本中发生更改的 iOS API。

工件名称版本已更新?
GoogleMLKit5.0.02024 年 2 月 20 日
MLKitBarcodeScanning4.0.02024 年 2 月 20 日
MLKitCommon10.0.02024 年 2 月 20 日
MLKitDigitalInkRecognition4.0.02024 年 2 月 20 日
MLKitEntityExtraction1.0.0-beta112024 年 2 月 20 日
MLKitFaceDetection4.0.02024 年 2 月 20 日
MLKitImageLabeling4.0.02024 年 2 月 20 日
MLKitImageLabelingCommon6.0.02024 年 2 月 20 日
MLKitImageLabelingCustom4.0.02024 年 2 月 20 日
机器学习套件语言 ID5.0.02024 年 2 月 20 日
MLKitLinkFirebase4.0.02024 年 2 月 20 日
MLKitObjectDetection4.0.02024 年 2 月 20 日
MLKitObjectDetectionCommon6.0.02024 年 2 月 20 日
MLKitObjectDetectionCustom4.0.02024 年 2 月 20 日
MLKitPoseDetection1.0.0-beta122024 年 2 月 20 日
MLKitPoseDetectionAccurate1.0.0-beta122024 年 2 月 20 日
MLKitPoseDetectionCommon1.0.0-beta122024 年 2 月 20 日
MLKitSegmentationCommon1.0.0-beta102024 年 2 月 20 日
MLKitSegmentationSelfie1.0.0-beta102024 年 2 月 20 日
MLKitSmartReply4.0.02024 年 2 月 20 日
MLKitTextRecognition3.0.02024 年 2 月 20 日
MLKitTextRecognitionCommon2.0.02024 年 2 月 20 日
MLKitTextRecognitionChinese2.0.02024 年 2 月 20 日
MLKitTextRecognitionDevanagari2.0.02024 年 2 月 20 日
MLKitTextRecognitionJapanese2.0.02024 年 2 月 20 日
MLKitTextRecognitionKorean2.0.02024 年 2 月 20 日
MLKitTranslate4.0.02024 年 2 月 20 日
MLKitVision6.0.02024 年 2 月 20 日
MLImage1.0.0-beta52024 年 2 月 20 日

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning18.3.0
com.google.android.gmsplay-services-mlkit-document-scanner16.0.0-beta1
com.google.android.gmsplay-services-mlkit-face-detection17.1.0
com.google.android.gmsplay-services-mlkit-image-labeling16.0.8
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta5
com.google.android.gmsplay-services-mlkit-language-id17.0.0
com.google.android.gmsplay-services-mlkit-smart-reply16.0.0-beta1
com.google.android.gmsplay-services-mlkit-subject-segmentation16.0.0-beta1
com.google.android.gmsplay-services-mlkit-text-recognition19.0.0
com.google.android.gmsplay-services-mlkit-text-recognition-chinese16.0.0
com.google.android.gmsplay-services-mlkit-text-recognition-devanagari16.0.0
com.google.android.gmsplay-services-mlkit-text-japanese16.0.0
com.google.android.gmsplay-services-mlkit-text-korean16.0.0
com.google.android.gmsplay-services-code-scanner16.1.0
com.google.mlkit条形码扫描17.2.0
com.google.mlkitcamera16.0.0-beta3
com.google.mlkit数字墨水识别 18.1.0
com.google.mlkit实体提取16.0.0-beta5
com.google.mlkit人脸检测16.1.6
com.google.mlkit人脸网格检测16.0.0-beta2
com.google.mlkit给图片加标签17.0.8
com.google.mlkit图片标签 - 自定义17.0.2
com.google.mlkitlanguage-id17.0.5
com.google.mlkitlinkfirebase17.0.0
com.google.mlkit对象检测17.0.1
com.google.mlkit对象检测自定义17.0.1
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta2
com.google.mlkit姿势检测18.0.0-beta4
com.google.mlkit姿势检测准确18.0.0-beta4
com.google.mlkit分割自拍16.0.0-beta5
com.google.mlkit智能回复17.0.3
com.google.mlkit文字识别16.0.0
com.google.mlkit文字-识别-中文16.0.0
com.google.mlkit文字识别-梵文16.0.0
com.google.mlkit文字识别-日语16.0.0
com.google.mlkit文字识别-韩语16.0.0
com.google.mlkit翻译17.0.2

新功能

  • 在 Android 上,新增了 Document Scanner API,以提供包含界面和机器学习逻辑的扫描流程。

改进

  • 在 Android 上,修复了由旧版 play-services-basement 依赖项导致的安全漏洞
  • 在 iOS 上,添加了对 Xcode 15.1.0 的支持。
  • 对于 iOS,修复了 libwebp 库中的安全漏洞。
  • 在 iOS 上,更新了 Cocoapods 依赖项以与 Firebase 10 兼容。
  • 在 iOS 上,修复了 TextRecognition 以使用较新版本的 FlatBuffer。
  • 对于 iOS,在隐私清单文件中添加了关于使用所需原因 API 的说明。
  • iOS 平台支持的最低 iOS 版本从 11.0 提高到了 12.0。

2023 年 11 月 7 日

此版本加入了一些新功能,并进行了改进。

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning18.3.0
com.google.android.gmsplay-services-mlkit-face-detection17.1.0
com.google.android.gmsplay-services-mlkit-image-labeling16.0.8
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta5
com.google.android.gmsplay-services-mlkit-language-id17.0.0
com.google.android.gmsplay-services-mlkit-smart-reply16.0.0-beta1
com.google.android.gmsplay-services-mlkit-subject-segmentation16.0.0-beta1
com.google.android.gmsplay-services-mlkit-text-recognition19.0.0
com.google.android.gmsplay-services-mlkit-text-recognition-chinese16.0.0
com.google.android.gmsplay-services-mlkit-text-recognition-devanagari16.0.0
com.google.android.gmsplay-services-mlkit-text-japanese16.0.0
com.google.android.gmsplay-services-mlkit-text-korean16.0.0
com.google.android.gmsplay-services-code-scanner16.1.0
com.google.mlkit条形码扫描17.2.0
com.google.mlkitcamera16.0.0-beta3
com.google.mlkit数字墨水识别 18.1.0
com.google.mlkit实体提取16.0.0-beta4
com.google.mlkit人脸检测16.1.5
com.google.mlkit人脸网格检测16.0.0-beta1
com.google.mlkit给图片加标签17.0.7
com.google.mlkit图片标签 - 自定义17.0.2
com.google.mlkitlanguage-id17.0.4
com.google.mlkitlinkfirebase17.0.0
com.google.mlkit对象检测17.0.0
com.google.mlkit对象检测自定义17.0.1
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta2
com.google.mlkit姿势检测18.0.0-beta3
com.google.mlkit姿势检测准确18.0.0-beta3
com.google.mlkit分割自拍16.0.0-beta4
com.google.mlkit智能回复17.0.2
com.google.mlkit文字识别16.0.0
com.google.mlkit文字-识别-中文16.0.0
com.google.mlkit文字识别-梵文16.0.0
com.google.mlkit文字识别-日语16.0.0
com.google.mlkit文字识别-韩语16.0.0
com.google.mlkit翻译17.0.2

新功能

改进

2023 年 8 月 1 日

此版本包含新功能。

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning18.3.0
com.google.android.gmsplay-services-mlkit-face-detection17.1.0
com.google.android.gmsplay-services-mlkit-image-labeling16.0.8
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta4
com.google.android.gmsplay-services-mlkit-language-id17.0.0
com.google.android.gmsplay-services-mlkit-smart-reply16.0.0-beta1
com.google.android.gmsplay-services-mlkit-text-recognition19.0.0
com.google.android.gmsplay-services-mlkit-text-recognition-chinese16.0.0
com.google.android.gmsplay-services-mlkit-text-recognition-devanagari16.0.0
com.google.android.gmsplay-services-mlkit-text-japanese16.0.0
com.google.android.gmsplay-services-mlkit-text-korean16.0.0
com.google.android.gmsplay-services-code-scanner16.1.0
com.google.mlkit条形码扫描17.2.0
com.google.mlkitcamera16.0.0-beta3
com.google.mlkit数字墨水识别 18.1.0
com.google.mlkit实体提取16.0.0-beta4
com.google.mlkit人脸检测16.1.5
com.google.mlkit人脸网格检测16.0.0-beta1
com.google.mlkit给图片加标签17.0.7
com.google.mlkit图片标签 - 自定义17.0.1
com.google.mlkitlanguage-id17.0.4
com.google.mlkitlinkfirebase17.0.0
com.google.mlkit对象检测17.0.0
com.google.mlkit对象检测自定义17.0.0
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta2
com.google.mlkit姿势检测18.0.0-beta3
com.google.mlkit姿势检测准确18.0.0-beta3
com.google.mlkit分割自拍16.0.0-beta4
com.google.mlkit智能回复17.0.2
com.google.mlkit文字识别16.0.0
com.google.mlkit文字-识别-中文16.0.0
com.google.mlkit文字识别-梵文16.0.0
com.google.mlkit文字识别-日语16.0.0
com.google.mlkit文字识别-韩语16.0.0
com.google.mlkit翻译17.0.1

新功能

2023 年 5 月 2 日

此版本包含新功能。

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning18.2.0
com.google.android.gmsplay-services-mlkit-face-detection17.1.0
com.google.android.gmsplay-services-mlkit-image-labeling16.0.8
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta4
com.google.android.gmsplay-services-mlkit-language-id17.0.0
com.google.android.gmsplay-services-mlkit-smart-reply16.0.0-beta1
com.google.android.gmsplay-services-mlkit-text-recognition19.0.0
com.google.android.gmsplay-services-mlkit-text-recognition-chinese16.0.0
com.google.android.gmsplay-services-mlkit-text-recognition-devanagari16.0.0
com.google.android.gmsplay-services-mlkit-text-japanese16.0.0
com.google.android.gmsplay-services-mlkit-text-korean16.0.0
com.google.android.gmsplay-services-code-scanner16.0.0
com.google.mlkit条形码扫描17.1.0
com.google.mlkitcamera16.0.0-beta3
com.google.mlkit数字墨水识别 18.1.0
com.google.mlkit实体提取16.0.0-beta4
com.google.mlkit人脸检测16.1.5
com.google.mlkit人脸网格检测16.0.0-beta1
com.google.mlkit给图片加标签17.0.7
com.google.mlkit图片标签 - 自定义17.0.1
com.google.mlkitlanguage-id17.0.4
com.google.mlkitlinkfirebase17.0.0
com.google.mlkit对象检测17.0.0
com.google.mlkit对象检测自定义17.0.0
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta2
com.google.mlkit姿势检测18.0.0-beta3
com.google.mlkit姿势检测准确18.0.0-beta3
com.google.mlkit分割自拍16.0.0-beta4
com.google.mlkit智能回复17.0.2
com.google.mlkit文字识别16.0.0
com.google.mlkit文字-识别-中文16.0.0
com.google.mlkit文字识别-梵文16.0.0
com.google.mlkit文字识别-日语16.0.0
com.google.mlkit文字识别-韩语16.0.0
com.google.mlkit翻译17.0.1

新功能

  • 在 Android 上,我们于 2023 年 3 月 29 日升级了适用于拉丁脚本的 Text Recognition API 的未捆绑版本。提升了性能并添加了所有屏幕方向支持。
  • 在 Android 上,除了拉丁字母之外,“文字识别”的独立版本扩展至中文、梵文、日语和韩语。与捆绑版本相比,此 API 提供的功能与捆绑版本相同,但由 Google Play 服务提供支持,对应用大小的影响缩减至约 260 KB。
  • 在 Android 上,文字识别 v2 的升级捆绑版本(从 Beta 版进入正式版)。

2023 年 3 月 21 日

此版本包含新功能。

iOS API 详细信息

下表列出了此版本中发生更改的 iOS API。

工件名称版本已更新?
GoogleMLKit4.0.0
MLKitBarcodeScanning3.0.0
MLKitCommon9.0.0
MLKitDigitalInkRecognition3.0.0
MLKitEntityExtraction1.0.0-beta10
MLKitFaceDetection3.0.0
MLKitImageLabeling3.0.0
MLKitImageLabelingCommon5.0.0
MLKitImageLabelingCustom3.0.0
机器学习套件语言 ID4.0.0
MLKitLinkFirebase3.0.0
MLKitMDD5.0.0
MLKitNaturalLanguage5.0.0
MLKitObjectDetection3.0.0
MLKitObjectDetectionCommon5.0.0
MLKitObjectDetectionCustom3.0.0
MLKitPoseDetection1.0.0-beta11
MLKitPoseDetectionAccurate1.0.0-beta11
MLKitPoseDetectionCommon1.0.0-beta11
MLKitSegmentationCommon1.0.0-beta9
MLKitSegmentationSelfie1.0.0-beta9
MLKitSmartReply3.0.0
MLKitTextRecognition2.0.0
MLKitTextRecognitionCommon1.0.0
MLKitTextRecognitionChinese1.0.0
MLKitTextRecognitionDevanagari1.0.0
MLKitTextRecognitionJapanese1.0.0
MLKitTextRecognitionKorean1.0.0
MLKitTranslate3.0.0
MLKitVision5.0.0
MLKitVisionKit6.0.0
MLKitXenoCommon1.0.0-beta11
MLImage1.0.0-beta4

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning18.2.0
com.google.android.gmsplay-services-mlkit-face-detection17.1.0
com.google.android.gmsplay-services-mlkit-image-labeling16.0.8
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta4
com.google.android.gmsplay-services-mlkit-language-id17.0.0
com.google.android.gmsplay-services-mlkit-smart-reply16.0.0-beta1
com.google.android.gmsplay-services-mlkit-text-recognition18.0.2
com.google.android.gmsplay-services-code-scanner16.0.0
com.google.mlkit条形码扫描17.1.0
com.google.mlkitcamera16.0.0-beta3
com.google.mlkit数字墨水识别 18.1.0
com.google.mlkit实体提取16.0.0-beta4
com.google.mlkit人脸检测16.1.5
com.google.mlkit人脸网格检测16.0.0-beta1
com.google.mlkit给图片加标签17.0.7
com.google.mlkit图片标签 - 自定义17.0.1
com.google.mlkitlanguage-id17.0.4
com.google.mlkitlinkfirebase17.0.0
com.google.mlkit对象检测17.0.0
com.google.mlkit对象检测自定义17.0.0
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta2
com.google.mlkit姿势检测18.0.0-beta3
com.google.mlkit姿势检测准确18.0.0-beta3
com.google.mlkit分割自拍16.0.0-beta4
com.google.mlkit智能回复17.0.2
com.google.mlkit文字识别16.0.0-beta6
com.google.mlkit文字-识别-中文16.0.0-beta6
com.google.mlkit文字识别-梵文16.0.0-beta6
com.google.mlkit文字识别-日语16.0.0-beta6
com.google.mlkit文字识别-韩语16.0.0-beta6
com.google.mlkit翻译17.0.1

新功能

  • 在 Android 上,Google 代码扫描器从 Beta 版升级到正式版。
  • 在 Android 上,添加了对在条形码扫描中返回所有潜在条形码的支持。
  • 在 iOS 设备上,已从 Beta 版升级到“正式版”的文字识别 v2 版本。

改进

  • 在 iOS 上,将 Xcode 支持的最低版本提高到了 14.2.0。
  • iOS 平台支持的最低 iOS 版本从 10.0 提高到了 11.0。
  • 在 iOS 设备上,移除了对位码的支持。
  • 在 iOS 上,升级了 MLKitCommon、MLKitLinkFirebase、MLKitNaturalLanguage 和 MLKitVision 中 GTMSessionFetcher/Core 依赖项的版本范围,以支持 Firebase 10。

2023 年 1 月 31 日

此版本包含新功能。

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning18.1.0
com.google.android.gmsplay-services-mlkit-face-detection17.1.0
com.google.android.gmsplay-services-mlkit-image-labeling16.0.8
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta4
com.google.android.gmsplay-services-mlkit-language-id17.0.0
com.google.android.gmsplay-services-mlkit-smart-reply16.0.0-beta1
com.google.android.gmsplay-services-mlkit-text-recognition18.0.2
com.google.android.gmsplay-services-code-scanner16.0.0-beta3
com.google.mlkit条形码扫描17.0.3
com.google.mlkitcamera16.0.0-beta3
com.google.mlkit数字墨水识别 18.1.0
com.google.mlkit实体提取16.0.0-beta4
com.google.mlkit人脸检测16.1.5
com.google.mlkit人脸网格检测16.0.0-beta1
com.google.mlkit给图片加标签17.0.7
com.google.mlkit图片标签 - 自定义17.0.1
com.google.mlkitlanguage-id17.0.4
com.google.mlkitlinkfirebase17.0.0
com.google.mlkit对象检测17.0.0
com.google.mlkit对象检测自定义17.0.0
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta2
com.google.mlkit姿势检测18.0.0-beta3
com.google.mlkit姿势检测准确18.0.0-beta3
com.google.mlkit分割自拍16.0.0-beta4
com.google.mlkit智能回复17.0.2
com.google.mlkit文字识别16.0.0-beta6
com.google.mlkit文字-识别-中文16.0.0-beta6
com.google.mlkit文字识别-梵文16.0.0-beta6
com.google.mlkit文字识别-日语16.0.0-beta6
com.google.mlkit文字识别-韩语16.0.0-beta6
com.google.mlkit翻译17.0.1

新功能

2022 年 12 月 6 日

此版本加入了一些新功能并修复了一些问题。

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning18.1.0
com.google.android.gmsplay-services-mlkit-face-detection17.1.0
com.google.android.gmsplay-services-mlkit-image-labeling16.0.8
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta4
com.google.android.gmsplay-services-mlkit-language-id17.0.0
com.google.android.gmsplay-services-mlkit-smart-reply16.0.0-beta1
com.google.android.gmsplay-services-mlkit-text-recognition18.0.2
com.google.android.gmsplay-services-code-scanner16.0.0-beta3
com.google.mlkit条形码扫描17.0.3
com.google.mlkitcamera16.0.0-beta3
com.google.mlkit数字墨水识别 18.0.0
com.google.mlkit实体提取16.0.0-beta4
com.google.mlkit人脸检测16.1.5
com.google.mlkit人脸网格检测16.0.0-beta1
com.google.mlkit给图片加标签17.0.7
com.google.mlkit图片标签 - 自定义17.0.1
com.google.mlkitlanguage-id17.0.4
com.google.mlkitlinkfirebase17.0.0
com.google.mlkit对象检测17.0.0
com.google.mlkit对象检测自定义17.0.0
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta2
com.google.mlkit姿势检测18.0.0-beta3
com.google.mlkit姿势检测准确18.0.0-beta3
com.google.mlkit分割自拍16.0.0-beta4
com.google.mlkit智能回复17.0.2
com.google.mlkit文字识别16.0.0-beta6
com.google.mlkit文字-识别-中文16.0.0-beta6
com.google.mlkit文字识别-梵文16.0.0-beta6
com.google.mlkit文字识别-日语16.0.0-beta6
com.google.mlkit文字识别-韩语16.0.0-beta6
com.google.mlkit翻译17.0.1

新功能

  • 在 Android 中添加了未捆绑版本的智能回复 API。 与捆绑版本相比,未捆绑版本可将应用下载大小缩减了 5.5MB。

bug 修复

  • 在 Android 中,修复了一个不支持除 ARGB_8888 以外的位图配置的条形码扫描问题

2022 年 9 月 20 日

此版本加入了一些新功能,并进行了改进。

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning18.1.0
com.google.android.gmsplay-services-mlkit-face-detection17.1.0
com.google.android.gmsplay-services-mlkit-image-labeling16.0.8
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta4
com.google.android.gmsplay-services-mlkit-language-id17.0.0
com.google.android.gmsplay-services-mlkit-text-recognition18.0.2
com.google.android.gmsplay-services-code-scanner16.0.0-beta3
com.google.mlkit条形码扫描17.0.2
com.google.mlkitcamera16.0.0-beta3
com.google.mlkit数字墨水识别 18.0.0
com.google.mlkit实体提取16.0.0-beta4
com.google.mlkit人脸检测16.1.5
com.google.mlkit人脸网格检测16.0.0-beta1
com.google.mlkit给图片加标签17.0.7
com.google.mlkit图片标签 - 自定义17.0.1
com.google.mlkitlanguage-id17.0.4
com.google.mlkitlinkfirebase17.0.0
com.google.mlkit对象检测17.0.0
com.google.mlkit对象检测自定义17.0.0
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta2
com.google.mlkit姿势检测18.0.0-beta3
com.google.mlkit姿势检测准确18.0.0-beta3
com.google.mlkit分割自拍16.0.0-beta4
com.google.mlkit智能回复17.0.2
com.google.mlkit文字识别16.0.0-beta6
com.google.mlkit文字-识别-中文16.0.0-beta6
com.google.mlkit文字识别-梵文16.0.0-beta6
com.google.mlkit文字识别-日语16.0.0-beta6
com.google.mlkit文字识别-韩语16.0.0-beta6
com.google.mlkit翻译17.0.1

新功能

  • 在 Android 上添加了捆绑版人脸网格检测 API。该 API 的公开 Beta 版最适合距离摄像头大约 2 米(约 7 英尺)内的人脸,并且可为检测到的人脸提供 468 个 3D 点和三角形信息,并且延迟时间较短(在 Pixel 3 设备上为 14 毫秒)。在 BOUNDING_BOX_ONLY 模式下,延迟时间可进一步缩短约 20%。

改进

  • 在 Android 上,通过在支持的 CPU 上启用 fp16 模型推断,缩短了 Pose Detection API 的延迟时间。
  • 在 Android 上,通过在识别结果中提供符号和旋转信息,改进了文字识别 v2

2022 年 9 月 20 日

此版本加入了一些新功能,并进行了改进。

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning18.1.0
com.google.android.gmsplay-services-mlkit-face-detection17.1.0
com.google.android.gmsplay-services-mlkit-image-labeling16.0.8
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta4
com.google.android.gmsplay-services-mlkit-language-id17.0.0
com.google.android.gmsplay-services-mlkit-text-recognition18.0.2
com.google.android.gmsplay-services-code-scanner16.0.0-beta3
com.google.mlkit条形码扫描17.0.2
com.google.mlkitcamera16.0.0-beta3
com.google.mlkit数字墨水识别 18.0.0
com.google.mlkit实体提取16.0.0-beta4
com.google.mlkit人脸检测16.1.5
com.google.mlkit人脸网格检测16.0.0-beta1
com.google.mlkit给图片加标签17.0.7
com.google.mlkit图片标签 - 自定义17.0.1
com.google.mlkitlanguage-id17.0.4
com.google.mlkitlinkfirebase17.0.0
com.google.mlkit对象检测17.0.0
com.google.mlkit对象检测自定义17.0.0
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta2
com.google.mlkit姿势检测18.0.0-beta3
com.google.mlkit姿势检测准确18.0.0-beta3
com.google.mlkit分割自拍16.0.0-beta4
com.google.mlkit智能回复17.0.2
com.google.mlkit文字识别16.0.0-beta6
com.google.mlkit文字-识别-中文16.0.0-beta6
com.google.mlkit文字识别-梵文16.0.0-beta6
com.google.mlkit文字识别-日语16.0.0-beta6
com.google.mlkit文字识别-韩语16.0.0-beta6
com.google.mlkit翻译17.0.1

新功能

  • 在 Android 上添加了捆绑版 Face Mesh Detection API。该 API 的公开 Beta 版最适用于距离摄像头大约 2 米(或大约 6.5 英尺)内的人脸,并且可为检测到的人脸提供 468 个 3D 点和三角形信息,并且延迟时间较短(在 Pixel 3 设备上为 14 毫秒)。在 BOUNDING_BOX_ONLY 模式下,延迟时间可进一步减少约 20%。

改进

  • 在 Android 上,通过在支持的 CPU 上启用 fp16 模型推断,缩短了 Pose Detection API 的延迟时间。
  • 在 Android 上,通过在识别结果中提供符号和旋转信息,改进了文字识别 v2

2022 年 8 月 23 日

改进

  • 在 Android 上,升级了未捆绑版本的 Barcode Scanning API。提高了召回率、长尾延迟、低质量图片容忍度和边界框稳定性。使其性能与捆绑版本的性能相同。 Google Play 服务会自动处理此升级,因此您无需对应用进行任何更改。

2022 年 8 月 16 日

此版本进行了一些改进。

iOS API 详细信息

下表列出了此版本中发生更改的 iOS API。

工件名称版本已更新?
GoogleMLKit3.2.0
MLKitBarcodeScanning2.2.0
MLKitCommon8.0.0
MLKitDigitalInkRecognition2.2.0
MLKitEntityExtraction1.0.0-beta9
MLKitFaceDetection2.2.0
MLKitImageLabeling2.2.0
MLKitImageLabelingCommon4.2.0
MLKitImageLabelingCustom2.2.0
机器学习套件语言 ID3.2.0
MLKitLinkFirebase2.2.0
MLKitNaturalLanguage4.2.0
MLKitObjectDetection2.2.0
MLKitObjectDetectionCommon4.2.0
MLKitObjectDetectionCustom2.2.0
MLKitPoseDetection1.0.0-beta10
MLKitPoseDetectionAccurate1.0.0-beta10
MLKitPoseDetectionCommon1.0.0-beta10
MLKitSegmentationCommon1.0.0-beta8
MLKitSegmentationSelfie1.0.0-beta8
MLKitSmartReply2.2.0
MLKitTextRecognition1.4.0-beta6
MLKitTextRecognitionCommon1.0.0-beta6
MLKitTextRecognitionChinese1.0.0-beta6
MLKitTextRecognitionDevanagari1.0.0-beta6
MLKitTextRecognitionJapanese1.0.0-beta6
MLKitTextRecognitionKorean1.0.0-beta6
MLKitTranslate2.2.0
MLKitVision4.2.0

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning18.1.0
com.google.android.gmsplay-services-mlkit-face-detection17.1.0
com.google.android.gmsplay-services-mlkit-image-labeling16.0.8
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta4
com.google.android.gmsplay-services-mlkit-language-id17.0.0
com.google.android.gmsplay-services-mlkit-text-recognition18.0.1
com.google.android.gmsplay-services-code-scanner16.0.0-beta3
com.google.mlkit条形码扫描17.0.2
com.google.mlkitcamera16.0.0-beta3
com.google.mlkit数字墨水识别 18.0.0
com.google.mlkit实体提取16.0.0-beta4
com.google.mlkit人脸检测16.1.5
com.google.mlkit给图片加标签17.0.7
com.google.mlkit图片标签 - 自定义17.0.1
com.google.mlkitlanguage-id17.0.4
com.google.mlkitlinkfirebase17.0.0
com.google.mlkit对象检测17.0.0
com.google.mlkit对象检测自定义17.0.0
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta2
com.google.mlkit姿势检测18.0.0-beta2
com.google.mlkit姿势检测准确18.0.0-beta2
com.google.mlkit分割自拍16.0.0-beta4
com.google.mlkit智能回复17.0.2
com.google.mlkit文字识别16.0.0-beta4
com.google.mlkit文字-识别-中文16.0.0-beta4
com.google.mlkit文字识别-梵文16.0.0-beta4
com.google.mlkit文字识别-日语16.0.0-beta4
com.google.mlkit文字识别-韩语16.0.0-beta4
com.google.mlkit翻译17.0.1

改进

  • 在 Android 和 iOS 设备上,我们升级了翻译模型,以提高准确性。
  • 在 Android 设备上,已完成未捆绑版本的语言识别 Beta 版测试。
  • 在 Android 上,公开了文字识别文字识别 v2 的置信度分数。
  • 在 Android 上,为每个支持未捆绑版本的机器学习套件 Detector 实现了 OptionalModuleApi 接口,以便在使用未捆绑版本时,您可以使用 Google Play 服务 ModuleInstallClient API 来控制安装和检查可用性。
  • 在 iOS 上,将 MLKitLinkFirebaseFirebaseCoreFirebaseInstallations 依赖项的版本范围从 8.x 升级到了 9.x,以使机器学习套件与 Firebase 9.x 兼容。

2022 年 6 月 28 日

此版本进行了一些改进。

iOS API 详细信息

下表列出了此版本中发生更改的 iOS API。

工件名称版本已更新?
GoogleMLKit3.1.0
MLKitBarcodeScanning2.1.0
MLKitCommon7.0.0
MLKitDigitalInkRecognition2.1.0
MLKitEntityExtraction1.0.0-beta8
MLKitFaceDetection2.1.0
MLKitImageLabeling2.1.0
MLKitImageLabelingCommon4.1.0
MLKitImageLabelingCustom2.1.0
机器学习套件语言 ID3.1.0
MLKitLinkFirebase2.1.0
MLKitNaturalLanguage4.1.0
MLKitObjectDetection2.1.0
MLKitObjectDetectionCommon4.1.0
MLKitObjectDetectionCustom2.1.0
MLKitPoseDetection1.0.0-beta9
MLKitPoseDetectionAccurate1.0.0-beta9
MLKitPoseDetectionCommon1.0.0-beta9
MLKitSegmentationCommon1.0.0-beta7
MLKitSegmentationSelfie1.0.0-beta7
MLKitSmartReply2.1.0
MLKitTextRecognition1.4.0-beta5
MLKitTextRecognitionCommon1.0.0-beta5
MLKitTextRecognitionChinese1.0.0-beta5
MLKitTextRecognitionDevanagari1.0.0-beta5
MLKitTextRecognitionJapanese1.0.0-beta5
MLKitTextRecognitionKorean1.0.0-beta5
MLKitTranslate2.1.0
MLKitVision4.1.0

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning18.0.0
com.google.android.gmsplay-services-mlkit-face-detection17.0.1
com.google.android.gmsplay-services-mlkit-image-labeling16.0.7
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta3
com.google.android.gmsplay-services-mlkit-language-id17.0.0-beta1
com.google.android.gmsplay-services-mlkit-text-recognition18.0.0
com.google.android.gmsplay-services-code-scanner16.0.0-beta2
com.google.mlkit条形码扫描17.0.2
com.google.mlkitcamera16.0.0-beta3
com.google.mlkit数字墨水识别 18.0.0
com.google.mlkit实体提取16.0.0-beta4
com.google.mlkit人脸检测16.1.5
com.google.mlkit给图片加标签17.0.7
com.google.mlkit图片标签 - 自定义17.0.1
com.google.mlkitlanguage-id17.0.4
com.google.mlkitlinkfirebase17.0.0
com.google.mlkit对象检测17.0.0
com.google.mlkit对象检测自定义17.0.0
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta2
com.google.mlkit姿势检测18.0.0-beta2
com.google.mlkit姿势检测准确18.0.0-beta2
com.google.mlkit分割自拍16.0.0-beta4
com.google.mlkit智能回复17.0.2
com.google.mlkit文字识别16.0.0-beta4
com.google.mlkit文字-识别-中文16.0.0-beta4
com.google.mlkit文字识别-梵文16.0.0-beta4
com.google.mlkit文字识别-日语16.0.0-beta4
com.google.mlkit文字识别-韩语16.0.0-beta4
com.google.mlkit翻译17.0.0

改进

  • 改进了智能回复模型,可生成更准确的回复并大幅缩减 5 MB 的模型大小。
  • 在 Android 上,增加了允许用户通过 Google Code Scanner API 中的扫描仪视图手动输入条形码的选项。

2022 年 5 月 10 日

此版本包含新功能。

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-code-scanner16.0.0-beta1

新功能

  • 在 Android 上添加了新的 Google Code Scanner API。Google 扫码器的公开 Beta 版提供了一个完整的扫描解决方案,无需您的应用请求相机权限,同时可以保护用户隐私。这是通过将扫描代码的任务委托给 Google Play 服务并仅将扫描结果返回给您的应用来实现的。

2022 年 4 月 26 日

此版本进行了一些改进。

iOS API 详细信息

下表列出了此版本中发生更改的 iOS API。

工件名称版本已更新?
GoogleMLKit3.0.0
MLKitBarcodeScanning2.0.0
MLKitCommon6.0.0
MLKitDigitalInkRecognition2.0.0
MLKitEntityExtraction1.0.0-beta7
MLKitFaceDetection2.0.0
MLKitImageLabeling2.0.0
MLKitImageLabelingCommon4.0.0
MLKitImageLabelingCustom2.0.0
机器学习套件语言 ID3.0.0
MLKitLinkFirebase2.0.0
MLKitNaturalLanguage4.0.0
MLKitObjectDetection2.0.0
MLKitObjectDetectionCommon4.0.0
MLKitObjectDetectionCustom2.0.0
MLKitPoseDetection1.0.0-beta8
MLKitPoseDetectionAccurate1.0.0-beta8
MLKitPoseDetectionCommon1.0.0-beta8
MLKitSegmentationCommon1.0.0-beta6
MLKitSegmentationSelfie1.0.0-beta6
MLKitSmartReply2.0.0
MLKitTextRecognition1.4.0-beta4
MLKitTextRecognitionCommon1.0.0-beta4
MLKitTextRecognitionChinese1.0.0-beta4
MLKitTextRecognitionDevanagari1.0.0-beta4
MLKitTextRecognitionJapanese1.0.0-beta4
MLKitTextRecognitionKorean1.0.0-beta4
MLKitTranslate2.0.0
MLKitVision4.0.0

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning18.0.0
com.google.android.gmsplay-services-mlkit-face-detection17.0.1
com.google.android.gmsplay-services-mlkit-image-labeling16.0.7
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta3
com.google.android.gmsplay-services-mlkit-language-id17.0.0-beta1
com.google.android.gmsplay-services-mlkit-text-recognition18.0.0
com.google.mlkit条形码扫描17.0.2
com.google.mlkitcamera16.0.0-beta3
com.google.mlkit数字墨水识别 18.0.0
com.google.mlkit实体提取16.0.0-beta4
com.google.mlkit人脸检测16.1.5
com.google.mlkit给图片加标签17.0.7
com.google.mlkit图片标签 - 自定义17.0.1
com.google.mlkitlanguage-id17.0.3
com.google.mlkitlinkfirebase17.0.0
com.google.mlkit对象检测17.0.0
com.google.mlkit对象检测自定义17.0.0
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta2
com.google.mlkit姿势检测18.0.0-beta2
com.google.mlkit姿势检测准确18.0.0-beta2
com.google.mlkit分割自拍16.0.0-beta4
com.google.mlkit智能回复17.0.1
com.google.mlkit文字识别16.0.0-beta4
com.google.mlkit文字-识别-中文16.0.0-beta4
com.google.mlkit文字识别-梵文16.0.0-beta4
com.google.mlkit文字识别-日语16.0.0-beta4
com.google.mlkit文字识别-韩语16.0.0-beta4
com.google.mlkit翻译17.0.0

改进

  • 改进了智能回复模型,可更好地检测敏感主题。
  • 在 Android 上,升级了捆绑版本文本识别 v2 API 中的所有语言模型。提升了性能并添加了针对拉丁语的全屏幕方向支持。
  • 在 iOS 上,将 Xcode 支持的最低版本提高到了 13.2.1。

2022 年 2 月 22 日

此版本加入了一些新功能,并进行了改进。

iOS API 详细信息

下表列出了此版本中发生更改的 iOS API。

工件名称版本已更新?
GoogleMLKit2.6.0
MLKitBarcodeScanning1.7.0
MLKitCommon5.0.0
MLKitDigitalInkRecognition1.5.0
MLKitEntityExtraction1.0.0-beta6
MLKitFaceDetection1.5.0
MLKitImageLabeling1.5.0
MLKitImageLabelingCommon3.0.0
MLKitImageLabelingCustom1.5.0
机器学习套件语言 ID2.0.0
MLKitLinkFirebase1.5.0
MLKitNaturalLanguage3.0.0
MLKitObjectDetection1.5.0
MLKitObjectDetectionCommon3.0.0
MLKitObjectDetectionCustom1.5.0
MLKitPoseDetection1.0.0-beta7
MLKitPoseDetectionAccurate1.0.0-beta7
MLKitPoseDetectionCommon1.0.0-beta7
MLKitSegmentationCommon1.0.0-beta5
MLKitSegmentationSelfie1.0.0-beta5
MLKitSmartReply1.5.0
MLKitTextRecognition1.4.0-beta3
MLKitTextRecognitionCommon1.0.0-beta3
MLKitTextRecognitionChinese1.0.0-beta3
MLKitTextRecognitionDevanagari1.0.0-beta3
MLKitTextRecognitionJapanese1.0.0-beta3
MLKitTextRecognitionKorean1.0.0-beta3
MLKitTranslate1.5.0
MLKitVision3.0.0

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning18.0.0
com.google.android.gmsplay-services-mlkit-face-detection17.0.1
com.google.android.gmsplay-services-mlkit-image-labeling16.0.7
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta3
com.google.android.gmsplay-services-mlkit-language-id17.0.0-beta1
com.google.android.gmsplay-services-mlkit-text-recognition18.0.0
com.google.mlkit条形码扫描17.0.2
com.google.mlkitcamera16.0.0-beta3
com.google.mlkit数字墨水识别 18.0.0
com.google.mlkit实体提取16.0.0-beta4
com.google.mlkit人脸检测16.1.5
com.google.mlkit给图片加标签17.0.7
com.google.mlkit图片标签 - 自定义17.0.1
com.google.mlkitlanguage-id17.0.3
com.google.mlkitlinkfirebase17.0.0
com.google.mlkit对象检测17.0.0
com.google.mlkit对象检测自定义17.0.0
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta2
com.google.mlkit姿势检测18.0.0-beta2
com.google.mlkit姿势检测准确18.0.0-beta2
com.google.mlkit分割自拍16.0.0-beta4
com.google.mlkit智能回复17.0.0
com.google.mlkit文字识别16.0.0-beta3
com.google.mlkit文字-识别-中文16.0.0-beta3
com.google.mlkit文字识别-梵文16.0.0-beta3
com.google.mlkit文字识别-日语16.0.0-beta3
com.google.mlkit文字识别-韩语16.0.0-beta3
com.google.mlkit翻译17.0.0

新功能

改进

  • 在 Android 上,人脸检测 API 捆绑版本中的升级版模型。改进了精确模式下的回想度和延迟时间,并将 APK 大小影响从 11.6 MB 减少到 6.9 MB。
  • 在 iOS 上,支持在 Barcode Scanning API 中进行 CP437 文本编码的 ECI 代码。

2022 年 1 月 25 日

此版本包含 Android 上的内部改进和问题修复。

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning18.0.0
com.google.android.gmsplay-services-mlkit-face-detection17.0.0
com.google.android.gmsplay-services-mlkit-image-labeling16.0.7
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta3
com.google.android.gmsplay-services-mlkit-language-id17.0.0-beta1
com.google.android.gmsplay-services-mlkit-text-recognition18.0.0
com.google.mlkit条形码扫描17.0.2
com.google.mlkitcamera16.0.0-beta3
com.google.mlkit数字墨水识别18.0.0
com.google.mlkit实体提取16.0.0-beta4
com.google.mlkit人脸检测16.1.4
com.google.mlkit给图片加标签17.0.7
com.google.mlkit图片标签 - 自定义17.0.1
com.google.mlkitlanguage-id17.0.3
com.google.mlkitlinkfirebase17.0.0
com.google.mlkit对象检测17.0.0
com.google.mlkit对象检测自定义17.0.0
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta2
com.google.mlkit姿势检测18.0.0-beta1
com.google.mlkit姿势检测准确18.0.0-beta1
com.google.mlkit分割自拍16.0.0-beta4
com.google.mlkit智能回复17.0.0
com.google.mlkit文字识别16.0.0-beta3
com.google.mlkit文字-识别-中文16.0.0-beta3
com.google.mlkit文字识别-梵文16.0.0-beta3
com.google.mlkit文字识别-日语16.0.0-beta3
com.google.mlkit文字识别-韩语16.0.0-beta3
com.google.mlkit翻译17.0.0

改进

  • 之前使用过 @RecentlyNonNull@RecentlyNullable 的地方使用的是严格的可为 null 性注解(@NonNull@Nullable)。进行此项更改后,曾经导致 null 性警告的原因现在会在构建 Kotlin 代码或使用 Java null 检查框架时导致错误。
  • 在 Android 上,支持在 Barcode Scanning API 中进行 CP437 文本编码的 ECI 代码。 .

bug 修复

  • 修复了条形码 128B 和代码 128C 原始值具有额外字符的条形码扫描问题

2021 年 12 月 14 日

此版本包括内部改进和问题修复。

iOS API 详细信息

下表列出了此版本中发生更改的 iOS API。

工件名称版本已更新?
GoogleMLKit2.5.0
MLKitBarcodeScanning1.6.0
MLKitCommon5.0.0
MLKitDigitalInkRecognition1.5.0
MLKitEntityExtraction1.0.0-beta6
MLKitFaceDetection1.5.0
MLKitImageLabeling1.5.0
MLKitImageLabelingCommon3.0.0
MLKitImageLabelingCustom1.5.0
机器学习套件语言 ID2.0.0
MLKitLinkFirebase1.5.0
MLKitNaturalLanguage3.0.0
MLKitObjectDetection1.5.0
MLKitObjectDetectionCommon3.0.0
MLKitObjectDetectionCustom1.5.0
MLKitPoseDetection1.0.0-beta7
MLKitPoseDetectionAccurate1.0.0-beta7
MLKitPoseDetectionCommon1.0.0-beta7
MLKitSegmentationCommon1.0.0-beta5
MLKitSegmentationSelfie1.0.0-beta5
MLKitSmartReply1.5.0
MLKitTextRecognition1.4.0-beta3
MLKitTextRecognitionCommon1.0.0-beta3
MLKitTextRecognitionChinese1.0.0-beta3
MLKitTextRecognitionDevanagari1.0.0-beta3
MLKitTextRecognitionJapanese1.0.0-beta3
MLKitTextRecognitionKorean1.0.0-beta3
MLKitTranslate1.5.0
MLKitVision3.0.0

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning17.0.0
com.google.android.gmsplay-services-mlkit-face-detection16.2.1
com.google.android.gmsplay-services-mlkit-image-labeling16.0.6
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta2
com.google.android.gmsplay-services-mlkit-language-id16.0.0-beta2
com.google.android.gmsplay-services-mlkit-text-recognition17.0.1
com.google.mlkit条形码扫描17.0.1
com.google.mlkitcamera16.0.0-beta2
com.google.mlkit数字墨水识别17.0.1
com.google.mlkit实体提取16.0.0-beta3
com.google.mlkit人脸检测16.1.3
com.google.mlkit给图片加标签17.0.6
com.google.mlkit图片标签 - 自定义17.0.0
com.google.mlkitlanguage-id17.0.2
com.google.mlkitlinkfirebase16.1.1
com.google.mlkit对象检测16.2.8
com.google.mlkit对象检测自定义16.3.4
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta1
com.google.mlkit姿势检测17.0.1-beta7
com.google.mlkit姿势检测准确17.0.1-beta7
com.google.mlkit分割自拍16.0.0-beta3
com.google.mlkit智能回复16.2.0
com.google.mlkit文字识别16.0.0-beta2
com.google.mlkit文字-识别-中文16.0.0-beta2
com.google.mlkit文字识别-梵文16.0.0-beta2
com.google.mlkit文字识别-日语16.0.0-beta2
com.google.mlkit文字识别-韩语16.0.0-beta2
com.google.mlkit翻译16.1.2

bug 修复

  • 修复了文字识别 v2 中阻止文字识别结果正确返回已识别语言的问题。
  • 在 Android 上,修复了语言识别中的一个问题:升级到 AGP 7.0.0 或更高版本后,应用可能会崩溃。
  • 在 Android 上,修复了姿势检测中的本地参考表可能会溢出的问题
  • 在 Android 上,修复了数字墨水识别实体提取中的一个问题:当应用以 API 级别 31 为目标平台并在 Android S 上运行时,可能会抛出运行时异常。
  • 在 iOS 上,如果条形码未采用 UTF-8 格式编码以匹配 API 引用,则针对 rawValue 返回 nil

2021 年 9 月 28 日

此版本加入了一些新功能、进行了改进并修复了一些问题。

iOS API 详细信息

下表列出了此版本中发生更改的 iOS API。

工件名称版本已更新?
GoogleMLKit2.4.0
MLKitBarcodeScanning1.5.0
MLKitCommon4.0.0
MLKitDigitalInkRecognition1.4.0
MLKitEntityExtraction1.0.0-beta5
MLKitFaceDetection1.4.0
MLKitImageLabeling1.4.0
MLKitImageLabelingCommon2.0.0
MLKitImageLabelingCustom1.4.0
机器学习套件语言 ID1.4.0
MLKitLinkFirebase1.4.0
MLKitNaturalLanguage2.0.0
MLKitObjectDetection1.4.0
MLKitObjectDetectionCommon2.0.0
MLKitObjectDetectionCustom1.4.0
MLKitPoseDetection1.0.0-beta6
MLKitPoseDetectionAccurate1.0.0-beta6
MLKitPoseDetectionCommon1.0.0-beta6
MLKitSegmentationCommon1.0.0-beta4
MLKitSegmentationSelfie1.0.0-beta4
MLKitSmartReply1.4.0
MLKitTextRecognition1.4.0-beta2
MLKitTextRecognitionCommon1.0.0-beta2
MLKitTextRecognitionChinese1.0.0-beta2
MLKitTextRecognitionDevanagari1.0.0-beta2
MLKitTextRecognitionJapanese1.0.0-beta2
MLKitTextRecognitionKorean1.0.0-beta2
MLKitTranslate1.4.0
MLKitVision2.0.0

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.2.1
com.google.android.gmsplay-services-mlkit-face-detection16.2.0
com.google.android.gmsplay-services-mlkit-image-labeling16.0.5
com.google.android.gmsplay-services-mlkit-image-labeling-custom16.0.0-beta1
com.google.android.gmsplay-services-mlkit-language-id16.0.0-beta2
com.google.android.gmsplay-services-mlkit-text-recognition17.0.0
com.google.mlkit条形码扫描17.0.0
com.google.mlkitcamera16.0.0-beta1
com.google.mlkit数字墨水识别17.0.0
com.google.mlkit实体提取16.0.0-beta2
com.google.mlkit人脸检测16.1.2
com.google.mlkit给图片加标签17.0.5
com.google.mlkit图片标签 - 自定义16.3.1
com.google.mlkitlanguage-id17.0.1
com.google.mlkitlinkfirebase16.1.1
com.google.mlkit对象检测16.2.7
com.google.mlkit对象检测自定义16.3.3
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta1
com.google.mlkit姿势检测17.0.1-beta6
com.google.mlkit姿势检测准确17.0.1-beta6
com.google.mlkit分割自拍16.0.0-beta2
com.google.mlkit智能回复16.2.0
com.google.mlkit文字识别16.0.0-beta1
com.google.mlkit文字-识别-中文16.0.0-beta1
com.google.mlkit文字识别-梵文16.0.0-beta1
com.google.mlkit文字识别-日语16.0.0-beta1
com.google.mlkit文字识别-韩语16.0.0-beta1
com.google.mlkit翻译16.1.2

新功能

  • 在 Android 上,添加了由 Google Play 服务提供支持的 Custom Image Labeling API 的未捆绑版本,以将对 APK 大小的影响从 5.5 MB 减少到 600 KB。
  • 在 iOS 上,针对文本识别 v2TextElement 添加了 recognizedLanguages 属性。

改进

bug 修复

  • 在 Android 上,修复了语言识别中的一个问题,即 SDK 可能会返回意外的 unknown 标记的问题。
  • 在 iOS 上,修复了生成 .ipa 文件时出现的位码重新编译问题。

2021 年 8 月 11 日

此版本加入了一些新功能,并进行了改进。

iOS API 详细信息

下表列出了此版本中发生更改的 iOS API。

工件名称版本已更新?
MLKitBarcodeScanning1.4.0
MLKitCommon3.1.0
MLKitDigitalInkRecognition1.3.0
MLKitEntityExtraction1.0.0-beta4
MLKitFaceDetection1.3.0
MLKitImageLabeling1.3.0
MLKitImageLabelingCommon1.3.0
MLKitImageLabelingCustom1.3.0
机器学习套件语言 ID1.3.0
MLKitLinkFirebase1.3.0
MLKitObjectDetection1.3.0
MLKitObjectDetectionCommon1.3.0
MLKitObjectDetectionCustom1.3.0
MLKitPoseDetection1.0.0-beta5
MLKitPoseDetectionAccurate1.0.0-beta5
MLKitPoseDetectionCommon1.0.0-beta5
MLKitSegmentationCommon1.0.0-beta3
MLKitSegmentationSelfie1.0.0-beta3
MLKitSmartReply1.3.0
MLKitTextRecognition1.4.0-beta1
MLKitTextRecognitionCommon1.0.0-beta1
MLKitTextRecognitionChinese1.0.0-beta1
MLKitTextRecognitionDevanagari1.0.0-beta1
MLKitTextRecognitionJapanese1.0.0-beta1
MLKitTextRecognitionKorean1.0.0-beta1
MLKitTranslate1.3.0
MLKitVision1.3.0

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.2.1
com.google.android.gmsplay-services-mlkit-face-detection16.2.0
com.google.android.gmsplay-services-mlkit-image-labeling16.0.5
com.google.android.gmsplay-services-mlkit-language-id16.0.0-beta1
com.google.android.gmsplay-services-mlkit-text-recognition17.0.0
com.google.mlkit条形码扫描17.0.0
com.google.mlkitcamera16.0.0-beta1
com.google.mlkit数字墨水识别17.0.0
com.google.mlkit实体提取16.0.0-beta2
com.google.mlkit人脸检测16.1.2
com.google.mlkit给图片加标签17.0.5
com.google.mlkit图片标签 - 自定义16.3.1
com.google.mlkitlanguage-id17.0.0
com.google.mlkitlinkfirebase16.1.1
com.google.mlkit对象检测16.2.6
com.google.mlkit对象检测自定义16.3.3
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta1
com.google.mlkit姿势检测17.0.1-beta5
com.google.mlkit姿势检测准确17.0.1-beta5
com.google.mlkit分割自拍16.0.0-beta2
com.google.mlkit智能回复16.2.0
com.google.mlkit文字识别16.0.0-beta1
com.google.mlkit文字-识别-中文16.0.0-beta1
com.google.mlkit文字识别-梵文16.0.0-beta1
com.google.mlkit文字识别-日语16.0.0-beta1
com.google.mlkit文字识别-韩语16.0.0-beta1
com.google.mlkit翻译16.1.2

新功能

  • 新增了文字识别 v2,除了针对拉丁语之外,该版本增加了对中文、梵文、日语和韩语文字的支持,并大幅增加了支持的语言范围。此 API 作为捆绑库提供,包含经过改进的基于机器学习的块/段落检测以及更新后的模型,可提高识别准确性。
  • 在 Android 上,添加了由 Google Play 服务提供支持的未捆绑版本的语言识别,以将对 APK 大小的影响减少约 500KB。

改进

  • 升级了 Barcode Scanning API 的捆绑版本。提高了召回率、长尾延迟、低质量图片容忍度和边界框稳定性。
  • 升级了 Pose Detection API,以提高准确性。此外,还添加了人脸特征点的实验性 Z 坐标
  • 在 Android 上,更新了语言识别的模型,以提高准确性。

重大变更

  • 在 Android 上,文字识别有两项重大变更:
    • 移除了废弃的 TextRecognition.getClient() 方法。请改用 TextRecognition.getClient(TextRecognizerOptions.DEFAULT_OPTIONS)
    • TextRecognizerOptions 已从 com.google.mlkit.vision.text 移至 com.google.mlkit.vision.text.latin
  • 在 Android 上,对于条形码扫描语言识别,主要版本递增仅是由于对非公开 API 进行的破坏性更改所致。在应用中升级其依赖项版本时,无需更改代码。
  • 在 Android 上,由于使用率极低,机器学习套件不再支持 API 级别 16、17 和 18。现在,支持的最低级别是 API 级别 19 (KitKat)。

注意

  • 在 iOS 上,要让项目使用 v1 版本的文字识别,请务必在 podfile 中将版本固定到 2.2.0 或更低版本。例如,向 pod 文件添加 pod 'GoogleMLKit/TextRecognition','2.2.0' 会将您的应用固定到此功能的最新 v1 版本。

2021 年 6 月 29 日

此版本加入了一些新功能,并进行了改进。

iOS API 详细信息

下表列出了此版本中发生更改的 iOS API。

工件名称版本已更新?
MLKitBarcodeScanning1.3.0
MLKitCommon3.0.0
MLKitDigitalInkRecognition1.3.0
MLKitEntityExtraction1.0.0-beta4
MLKitFaceDetection1.3.0
MLKitImageLabeling1.3.0
MLKitImageLabelingCommon1.3.0
MLKitImageLabelingCustom1.3.0
机器学习套件语言 ID1.3.0
MLKitLinkFirebase1.3.0
MLKitObjectDetection1.3.0
MLKitObjectDetectionCommon1.3.0
MLKitObjectDetectionCustom1.3.0
MLKitPoseDetection1.0.0-beta4
MLKitPoseDetectionAccurate1.0.0-beta4
MLKitPoseDetectionCommon1.0.0-beta4
MLKitSegmentationCommon1.0.0-beta2
MLKitSegmentationSelfie1.0.0-beta2
MLKitSmartReply1.2.0
MLKitTextRecognition1.3.0
MLKitTranslate1.3.0
MLKitVision1.3.0

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.2.0
com.google.android.gmsplay-services-mlkit-face-detection16.2.0
com.google.android.gmsplay-services-mlkit-image-labeling16.0.5
com.google.android.gmsplay-services-mlkit-text-recognition16.3.0
com.google.mlkit条形码扫描16.2.0
com.google.mlkitcamera16.0.0-beta1
com.google.mlkit数字墨水识别17.0.0
com.google.mlkit实体提取16.0.0-beta2
com.google.mlkit人脸检测16.1.2
com.google.mlkit给图片加标签17.0.5
com.google.mlkit图片标签 - 自定义16.3.1
com.google.mlkitlanguage-id16.1.1
com.google.mlkitlinkfirebase16.1.1
com.google.mlkit对象检测16.2.6
com.google.mlkit对象检测自定义16.3.3
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta1
com.google.mlkit姿势检测17.0.1-beta4
com.google.mlkit姿势检测准确17.0.1-beta4
com.google.mlkit分割自拍16.0.0-beta2
com.google.mlkit智能回复16.1.1
com.google.mlkit翻译16.1.2

新功能

改进

  • 升级了实体提取模型,提升了针对 Android 和 iOS 系统的质量。
  • 在 Android 上,针对特定 CPU 规格改进了 Pose Detection 性能。
  • 在 Android 上,修复了 Entity ExtractionDigital Ink Recognition API 的 okhttp3 不兼容问题
  • 在 iOS 上,将 Xcode 支持的最低版本提高到了 12.4。
  • 在 iOS 上,将 MLKitCommon 中的 GoogleDataTransport 依赖项的版本范围从 8.x 升级到了 9.x,并将 MLKitLinkFirebase 中的 FirebaseCore 依赖项的版本范围从 7.x 升级到了 8.x,以使机器学习套件与 Firebase 8.x 兼容。将 MLKitLinkFirebaseFirebaseInstanceID 迁移到了 FirebaseInstallations
  • 重大变更:在 iOS 上,移除了对已弃用的远程 AutoML 训练的自定义模型的标签支持,模型元数据中没有嵌入标签。请使用其元数据中包含标签的模型更新托管在 Firebase 控制台上的此类远程模型。

2021 年 6 月 2 日

此补丁版本修复了 com.google.mlkit:face-detection 库中的一个 bug

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.1.5
com.google.android.gmsplay-services-mlkit-face-detection16.1.7
com.google.android.gmsplay-services-mlkit-image-labeling16.0.4
com.google.android.gmsplay-services-mlkit-text-recognition16.2.0
com.google.mlkit条形码扫描16.1.2
com.google.mlkitcamera16.0.0-beta1
com.google.mlkit数字墨水识别16.2.0
com.google.mlkit实体提取16.0.0-beta1
com.google.mlkit人脸检测16.1.1
com.google.mlkit给图片加标签17.0.4
com.google.mlkit图片标签 - 自定义16.3.1
com.google.mlkitlanguage-id16.1.1
com.google.mlkitlinkfirebase16.1.1
com.google.mlkit对象检测16.2.5
com.google.mlkit对象检测自定义16.3.2
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta1
com.google.mlkit姿势检测17.0.1-beta3
com.google.mlkit姿势检测准确17.0.1-beta3
com.google.mlkit分割自拍16.0.0-beta1
com.google.mlkit智能回复16.1.1
com.google.mlkit翻译16.1.2

2021 年 5 月 25 日

此版本包含一些新功能,并做出了一些改进。

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.1.5
com.google.android.gmsplay-services-mlkit-face-detection16.1.7
com.google.android.gmsplay-services-mlkit-image-labeling16.0.4
com.google.android.gmsplay-services-mlkit-text-recognition16.2.0
com.google.mlkit条形码扫描16.1.2
com.google.mlkitcamera16.0.0-beta1
com.google.mlkit数字墨水识别16.2.0
com.google.mlkit实体提取16.0.0-beta1
com.google.mlkit人脸检测16.1.0
com.google.mlkit给图片加标签17.0.4
com.google.mlkit图片标签 - 自定义16.3.1
com.google.mlkitlanguage-id16.1.1
com.google.mlkitlinkfirebase16.1.1
com.google.mlkit对象检测16.2.5
com.google.mlkit对象检测自定义16.3.2
com.google.mlkitplaystore-dynamic-feature-support16.0.0-beta1
com.google.mlkit姿势检测17.0.1-beta3
com.google.mlkit姿势检测准确17.0.1-beta3
com.google.mlkit分割自拍16.0.0-beta1
com.google.mlkit智能回复16.1.1
com.google.mlkit翻译16.1.2

改进

2021 年 5 月 4 日

此补丁版本修复了 Custom Image Labeling API 中的崩溃回归问题。

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.1.4
com.google.android.gmsplay-services-mlkit-face-detection16.1.6
com.google.android.gmsplay-services-mlkit-image-labeling16.0.3
com.google.android.gmsplay-services-mlkit-text-recognition16.1.3
com.google.mlkit条形码扫描16.1.1
com.google.mlkitcamera16.0.0-beta1
com.google.mlkit数字墨水识别16.2.0
com.google.mlkit实体提取16.0.0-beta1
com.google.mlkit人脸检测16.0.7
com.google.mlkit给图片加标签17.0.3
com.google.mlkit图片标签 - 自定义16.3.1
com.google.mlkitlanguage-id16.1.1
com.google.mlkitlinkfirebase16.1.1
com.google.mlkit对象检测16.2.4
com.google.mlkit对象检测自定义16.3.1
com.google.mlkit姿势检测17.0.1-beta3
com.google.mlkit姿势检测准确17.0.1-beta3
com.google.mlkit分割自拍16.0.0-beta1
com.google.mlkit智能回复16.1.1
com.google.mlkit翻译16.1.2

bug 修复

2021 年 4 月 27 日

此版本包含一些新功能,并做出了一些改进。

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.1.4
com.google.android.gmsplay-services-mlkit-face-detection16.1.6
com.google.android.gmsplay-services-mlkit-image-labeling16.0.3
com.google.android.gmsplay-services-mlkit-text-recognition16.1.3
com.google.mlkit条形码扫描16.1.1
com.google.mlkitcamera16.0.0-beta1
com.google.mlkit数字墨水识别16.2.0
com.google.mlkit实体提取16.0.0-beta1
com.google.mlkit人脸检测16.0.7
com.google.mlkit给图片加标签17.0.3
com.google.mlkit图片标签 - 自定义16.3.1
com.google.mlkitlanguage-id16.1.1
com.google.mlkitlinkfirebase16.1.0
com.google.mlkit对象检测16.2.4
com.google.mlkit对象检测自定义16.3.1
com.google.mlkit姿势检测17.0.1-beta3
com.google.mlkit姿势检测准确17.0.1-beta3
com.google.mlkit分割自拍16.0.0-beta1
com.google.mlkit智能回复16.1.1
com.google.mlkit翻译16.1.2

改进

  • 在 Android 上,为 MLKit 视觉功能引入了相机帮助程序库,可直接在流式模式下与相机输出搭配使用。它会在内部使用 CameraX

  • 在 Android 上,在更多设备上为使用基本模型进行对象检测和跟踪启用了 NNAPI 加速,以加快模型推断并节省能源。

bug 修复

  • 在 Android 上,修复了当 InputImage 由具有非零 rotationDegrees 的位图构造时 FaceDetection API 中出现的问题。

2021 年 3 月 30 日

此版本进行了一些改进并修复了一些问题。

改进

  • 数字墨水识别 API 添加了针对梵文脚本语言的新模型。
  • 在 Android 上,更新了人脸检测 API 和 Image Labeling API 的外部依赖项版本。

bug 修复

  • 在 Android 上,向 Translate API 添加了网络权限,因此应用无需声明此权限。

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.1.4
com.google.android.gmsplay-services-mlkit-face-detection16.1.5
com.google.android.gmsplay-services-mlkit-image-labeling16.0.3
com.google.android.gmsplay-services-mlkit-text-recognition16.1.3
com.google.mlkit条形码扫描16.1.1
com.google.mlkit数字墨水识别16.2.0
com.google.mlkit实体提取16.0.0-beta1
com.google.mlkit人脸检测16.0.6
com.google.mlkit给图片加标签17.0.3
com.google.mlkit图片标签 - 自定义16.3.1
com.google.mlkitlanguage-id16.1.1
com.google.mlkitlinkfirebase16.1.0
com.google.mlkit对象检测16.2.3
com.google.mlkit对象检测自定义16.3.1
com.google.mlkit姿势检测17.0.1-beta3
com.google.mlkit姿势检测准确17.0.1-beta3
com.google.mlkit分割自拍16.0.0-beta1
com.google.mlkit智能回复16.1.1
com.google.mlkit翻译16.1.2

2021 年 3 月 2 日

此版本加入了一些新功能,并进行了改进。

iOS API 详细信息

下表列出了此版本中发生更改的 iOS API。

工件名称版本已更新?
MLKitBarcodeScanning1.2.0
MLKitCommon2.1.0
MLKitDigitalInkRecognition1.2.0
MLKitEntityExtraction1.0.0-beta3
MLKitFaceDetection1.2.0
MLKitImageLabeling1.2.0
MLKitImageLabelingCommon1.2.0
MLKitImageLabelingCustom1.2.0
机器学习套件语言 ID1.2.0
MLKitLinkFirebase1.2.0
MLKitObjectDetection1.2.0
MLKitObjectDetectionCommon1.2.0
MLKitObjectDetectionCustom1.2.0
MLKitPoseDetection1.0.0-beta3
MLKitPoseDetectionAccurate1.0.0-beta3
MLKitPoseDetectionCommon1.0.0-beta3
MLKitSegmentationCommon1.0.0-beta1
MLKitSegmentationSelfie1.0.0-beta1
MLKitSmartReply1.2.0
MLKitTextRecognition1.2.0
MLKitTranslate1.2.0
MLKitVision1.2.0

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.1.4
com.google.android.gmsplay-services-mlkit-face-detection16.1.4
com.google.android.gmsplay-services-mlkit-image-labeling16.0.2
com.google.android.gmsplay-services-mlkit-text-recognition16.1.3
com.google.mlkit条形码扫描16.1.1
com.google.mlkit数字墨水识别16.1.0
com.google.mlkit实体提取16.0.0-beta1
com.google.mlkit人脸检测16.0.5
com.google.mlkit给图片加标签17.0.2
com.google.mlkit图片标签 - 自定义16.3.1
com.google.mlkitlanguage-id16.1.1
com.google.mlkitlinkfirebase16.1.0
com.google.mlkit对象检测16.2.3
com.google.mlkit对象检测自定义16.3.1
com.google.mlkit姿势检测17.0.1-beta3
com.google.mlkit姿势检测准确17.0.1-beta3
com.google.mlkit分割自拍16.0.0-beta1
com.google.mlkit智能回复16.1.1
com.google.mlkit翻译16.1.1

新功能

  • 添加了 Selfie Segmentation API,这是一个基于 CPU 的解决方案,可让开发者轻松地将背景与场景中的用户分离开来,让您专注于重要内容。

改进

  • 在 iOS 中将 Xcode 支持的最低版本提高到了 12.2。

2021 年 2 月 5 日

此补丁版本修复了 Face Detection API 中的回归 bug。

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.1.4
com.google.android.gmsplay-services-mlkit-face-detection16.1.4
com.google.android.gmsplay-services-mlkit-image-labeling16.0.2
com.google.android.gmsplay-services-mlkit-text-recognition16.1.3
com.google.mlkit条形码扫描16.1.1
com.google.mlkit数字墨水识别16.1.0
com.google.mlkit实体提取16.0.0-beta1
com.google.mlkit人脸检测16.0.5
com.google.mlkit给图片加标签17.0.2
com.google.mlkit图片标签 - 自定义16.3.1
com.google.mlkitlanguage-id16.1.1
com.google.mlkitlinkfirebase16.1.0
com.google.mlkit对象检测16.2.3
com.google.mlkit对象检测自定义16.3.1
com.google.mlkit姿势检测17.0.1-beta2
com.google.mlkit姿势检测准确17.0.1-beta2
com.google.mlkit智能回复16.1.1
com.google.mlkit翻译16.1.1

改进和 bug 修复

  • 人脸检测版本 16.1.3(瘦)和 16.0.4(捆绑)中引入了回归 bug,导致人脸检测不佳。此补丁版本修复了该 bug。

2021 年 1 月 26 日

此版本加入了一些新功能、进行了改进并修复了一些问题。

iOS API 详细信息

下表列出了此版本中发生更改的 iOS API。

工件名称版本已更新?
MLKitBarcodeScanning1.1.0
MLKitDigitalInkRecognition1.1.0
MLKitEntityExtraction1.0.0-beta2
MLKitFaceDetection1.1.0
MLKitImageLabeling1.1.0
MLKitImageLabelingCustom1.1.0
机器学习套件语言 ID1.1.0
MLKitLinkFirebase1.1.0
MLKitObjectDetection1.1.0
MLKitObjectDetectionCustom1.1.0
MLKitPoseDetection1.0.0-beta2
MLKitPoseDetectionAccurate1.0.0-beta2
MLKitSmartReply1.1.0
MLKitTextRecognition1.1.0
MLKitTranslate1.1.0

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.1.4
com.google.android.gmsplay-services-mlkit-face-detection16.1.3
com.google.android.gmsplay-services-mlkit-image-labeling16.0.2
com.google.android.gmsplay-services-mlkit-text-recognition16.1.3
com.google.mlkit条形码扫描16.1.1
com.google.mlkit数字墨水识别16.1.0
com.google.mlkit实体提取16.0.0-beta1
com.google.mlkit人脸检测16.0.4
com.google.mlkit给图片加标签17.0.2
com.google.mlkit图片标签 - 自定义16.3.1
com.google.mlkitlanguage-id16.1.1
com.google.mlkitlinkfirebase16.1.0
com.google.mlkit对象检测16.2.3
com.google.mlkit对象检测自定义16.3.1
com.google.mlkit姿势检测17.0.1-beta2
com.google.mlkit姿势检测准确17.0.1-beta2
com.google.mlkit智能回复16.1.1
com.google.mlkit翻译16.1.1

新功能

改进和 bug 修复

  • Pose Detection API 可以识别更多姿势,例如用户在做下蹲和俯卧撑时正对着摄像头。
  • Pose Detection API 基础模型和准确模型要小得多。此更改不会影响模型的质量。
  • Android Vision API 已更新。由 Google Play 服务支持的拉取 SDK 中的未捆绑变体的大小减少了约 16% (~160KB)。

2020 年 12 月 8 日

此版本加入了一些新功能、进行了改进并修复了一些问题。

iOS API 详细信息

下表列出了此版本中发生更改的 iOS API。

工件名称版本已更新?
MLKitBarcodeScanning1.0.0
MLKitDigitalInkRecognition1.0.0
MLKitEntityExtraction1.0.0-beta1
MLKitFaceDetection1.0.0
MLKitImageLabeling1.0.0
MLKitImageLabelingCustom1.0.0
机器学习套件语言 ID1.0.0
MLKitLinkFirebase1.0.0
MLKitObjectDetection1.0.0
MLKitObjectDetectionCustom1.0.0
MLKitPoseDetection1.0.0-beta1
MLKitPoseDetectionAccurate1.0.0-beta1
MLKitSmartReply1.0.0
MLKitTextRecognition1.0.0
MLKitTranslate1.0.0

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.1.3
com.google.android.gmsplay-services-mlkit-face-detection16.1.2
com.google.android.gmsplay-services-mlkit-image-labeling16.0.1
com.google.android.gmsplay-services-mlkit-text-recognition16.1.2
com.google.mlkit条形码扫描16.1.0
com.google.mlkit数字墨水识别16.1.0
com.google.mlkit实体提取16.0.0-beta1
com.google.mlkit人脸检测16.0.3
com.google.mlkit给图片加标签17.0.1
com.google.mlkit图片标签 - 自定义16.3.0
com.google.mlkitlanguage-id16.1.1
com.google.mlkitlinkfirebase16.1.0
com.google.mlkit对象检测16.2.2
com.google.mlkit对象检测自定义16.3.0
com.google.mlkit姿势检测17.0.1-beta1
com.google.mlkit姿势检测准确17.0.1-beta1
com.google.mlkit智能回复16.1.1
com.google.mlkit翻译16.1.1

新功能

  • 机器学习套件不再是 Beta 版。机器学习套件的所有 API(不包括姿势检测和实体提取)均已升级为正式版。
  • 添加了 Entity Extraction API(Beta 版)。 借助此 API,您可以检测和定位原始文本中的实体(例如地址、日期/时间等)。它支持 11 种实体类型和 15 种语言,并且使用支持 Android Q 及更高版本中智能文本选择的技术。

    实体提取可完全离线运行(除了一次性下载约 700KB 的选定语言模型之外),且支持 Android 和 iOS。

改进和 bug 修复

  • 重大变更:移除了 AutoML 图片标签 API。现在,自定义图片标签 API 和自定义对象检测和跟踪 API 直接支持使用 AutoML Vision Edge 训练的自定义图片分类模型。
  • 自定义图片标签自定义对象检测和跟踪现在支持 Firebase 中托管的远程模型。
    • 添加了 RemoteModelSourceFirebaseModelSourceCustomRemoteModel 类,以支持在 Firebase 服务器上远程托管的自定义模型。此外,还添加了对使用由 AutoML Vision Edge 训练的本地自定义模型的清单路径创建 LocalModel 实例的支持。
    • 对于自定义图片标签 API,向 CustomImageLabelerOptions 类添加了远程自定义模型支持。
    • 对于自定义对象检测 API,向 CustomObjectDetectorOptions 类添加了远程自定义模型支持。
  • 在 Android 上,显著减小了 Vision API 的 SDK 大小。对于具有未捆绑变体(由 Google Play 服务提供支持)的 API,拉取 SDK 的大小会缩减约 900KB(约为原始大小的 65%)。对于所有其他 Vision API,拉取式 SDK 的大小将减少约 600KB。数字手写识别属于例外情况,其 SDK 大小保持不变。
  • 在 Android 上,在部分设备和操作系统(目前搭载 Android Q 或 R 的 Pixel 3、3XL、4、4XL)上,为 STREAM_MODE 中的使用基本模型进行对象检测和跟踪启用了 NNAPI 加速,以加快模型推断并节省能源。
  • 在 Android 上,修复了 Barcode Scanning API 中的一个问题,即它在搭载 camera-camera2:1.0.0-beta08 版或更高版本的某些设备上无法正常运行。

2020 年 11 月 2 日

此版本进行了一些改进并修复了一些问题。

iOS:GoogleMLKit/LinkFirebase 0.64.1

改进和 bug 修复

  • 将 MLKitLinkFirebase 中的 FirebaseCore 依赖项的版本范围从 6.x 升级到 7.x,将 FirebaseInstanceID 依赖项从 4.x 升级到 7.x。

2020 年 10 月 29 日

此版本进行了一些改进并修复了一些问题。

iOS:GoogleMLKit/Common 0.64.2

改进和 bug 修复

  • 将 MLKitCommon 中 GoogleUtilities/UserDefaults 依赖项的版本范围从 6.x 升级到了 7.x。

2020 年 10 月 26 日

此版本进行了一些改进并修复了一些问题。

iOS:GoogleMLKit/Common 0.64.1

改进和 bug 修复

  • 将 MLKitCommon 中 GoogleDataTransport 依赖项的版本范围从 7.x 升级到了 8.x。

2020 年 9 月 29 日

此版本加入了一些新功能、进行了改进并修复了一些问题。

iOS API 版本:0.64.0

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.1.2
com.google.android.gmsplay-services-mlkit-face-detection16.1.1
com.google.android.gmsplay-services-mlkit-image-labeling16.0.0
com.google.android.gmsplay-services-mlkit-text-recognition16.1.1
com.google.mlkit条形码扫描16.0.3
com.google.mlkit数字墨水识别16.1.0
com.google.mlkit人脸检测16.0.2
com.google.mlkit给图片加标签17.0.0
com.google.mlkit给图片加标签的 automl16.2.1
com.google.mlkit图片标签 - 自定义16.2.1
com.google.mlkitlanguage-id16.1.1
com.google.mlkitlinkfirebase16.0.1
com.google.mlkit对象检测16.2.1
com.google.mlkitobject-detectio-custom16.2.1
com.google.mlkit姿势检测17.0.0
com.google.mlkit姿势检测准确17.0.0
com.google.mlkit智能回复16.1.1
com.google.mlkit翻译16.1.1

新功能

  • 在 Android 上,添加了由 Google Play 服务提供支持的“瘦”Image Labeling API 变体。与捆绑的变体相比,对应用的大小缩减了约 3 MB。

改进和 bug 修复

  • 重大变更:将姿势检测拆分为两个库,以优化大小。一个库仅捆绑快速模型,而另一个库仅捆绑准确的模型。如果您仅使用一组模型,这有助于节省应用大小。iOS 也发生了同样的变化:PoseDetection pod 现在仅包含快速模型。如需使用准确的模型,请改用 PoseDetectionAccurate Pod。
  • 在 iOS 上,修复了在姿势检测器取消分配过程中发生的内存泄漏问题。

2020 年 8 月 25 日

此版本加入了一些新功能、进行了改进并修复了一些问题。

iOS API 版本:0.63.0

Android API 详细信息

下表列出了此版本中已更改的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.1.2
com.google.android.gmsplay-services-mlkit-face-detection16.1.1
com.google.android.gmsplay-services-mlkit-text-recognition16.1.1
com.google.mlkit条形码扫描16.0.3
com.google.mlkit数字墨水识别16.1.0
com.google.mlkit人脸检测16.0.2
com.google.mlkit给图片加标签17.0.0
com.google.mlkit给图片加标签的 automl16.2.1
com.google.mlkit图片标签 - 自定义16.2.1
com.google.mlkitlanguage-id16.1.1
com.google.mlkitlinkfirebase16.0.1
com.google.mlkit对象检测16.2.1
com.google.mlkitobject-detectio-custom16.2.1
com.google.mlkit姿势检测16.0.0
com.google.mlkit智能回复16.1.1
com.google.mlkit翻译16.1.1

新功能

  • 添加了 Pose Detection API,这是一种基于 CPU 的轻量级通用解决方案,可供开发者实时跟踪用户在其应用内的身体操作。姿势检测可以实时匹配用户身体的 33 点骨架匹配(通过手脚跟踪),并且经过调整,非常适用于复杂的运动用例。

    姿势检测还可完全离线工作,提供两种操作模式(快速且准确),并支持 Android 和 iOS。

改进和 bug 修复

  • 添加了对在 Android 上使用 URI 创建 LocalModel 的支持。
  • 数字墨水识别中针对菲律宾语 (fil/tl)、乌兹别克语 (uz-Latn) 和柏柏尔 (ber-Latn) 的新拉丁脚本识别器。
  • 改进了数字手写识别中的西里尔文字语言模型。
  • 自 BCP-47 中废弃了 iw 以来,在 Android 的语言识别中,将希伯来语代码从 iw 更改为了 he

2020 年 7 月 28 日

此版本加入了一些新功能、进行了改进并修复了一些问题。

iOS API 版本:0.62.0

Android API 详细信息

下表列出了此版本中的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.1.1
com.google.android.gmsplay-services-mlkit-face-detection16.1.0
com.google.android.gmsplay-services-mlkit-text-recognition16.1.0
com.google.mlkit条形码扫描16.0.2
com.google.mlkit数字墨水识别16.0.0
com.google.mlkit人脸检测16.0.1
com.google.mlkit给图片加标签16.2.0
com.google.mlkit给图片加标签的 automl16.2.0
com.google.mlkit图片标签 - 自定义16.2.0
com.google.mlkitlanguage-id16.1.0
com.google.mlkitlinkfirebase16.0.0
com.google.mlkit对象检测16.2.0
com.google.mlkit对象检测自定义16.2.0
com.google.mlkit智能回复16.1.0
com.google.mlkit翻译16.1.0

新功能

  • 添加了新的数字手写识别 API,用于识别在数字界面(例如触摸屏)上手写的文字和形状。支持 300 多种语言,以及表情符号和自动绘图。该技术为 Gboard、Google 翻译应用和 Quick, Draw! 游戏中的手写识别布局提供支持。

    数字手写识别可完全离线运行(除了一次性下载语言包之外),同时支持 Android 和 iOS。

  • 在 Android 上,添加了对指定您自己的自定义 Executor 的支持,以便运行成本高昂的任务,例如加载模型、推断图片标签以及对象检测和跟踪。在此版本中,所有机器学习套件 API 现在都支持自定义执行器。

    默认情况下,机器学习套件使用高度优化的内部代管线程池来运行后台任务。此 API 适用于特定的用例,在这些用例中,开发者希望改为完全控制其应用中的线程。

改进和 bug 修复

  • 在 Android 上,对于 Barcode Scanning API,修复了输入图片的旋转处理问题。

2020 年 7 月 15 日

此版本进行了一些改进并修复了一些问题。

iOS:GoogleMLKit/Common 0.61.1

改进和 bug 修复

  • 将 MLKitCommon 中 GoogleDataTransport 依赖项的版本范围从 3.2 或更高版本升级到了 7.0 或更高版本。
  • 从 MLKitCommon 中移除了 GoogleDataTransportCCTSupport 依赖项。

2020 年 7 月 1 日

此版本加入了一些新功能、进行了改进并修复了一些问题。

iOS API 版本:0.61.0

Android API 详细信息

下表列出了此版本中的 Android API。

群组 ID工件名称版本已更新?
com.google.android.gmsplay-services-mlkit-barcode-scanning16.1.0
com.google.android.gmsplay-services-mlkit-face-detection16.1.0
com.google.android.gmsplay-services-mlkit-text-recognition16.1.0
com.google.mlkit条形码扫描16.0.1
com.google.mlkit人脸检测16.0.1
com.google.mlkit给图片加标签16.1.0
com.google.mlkit给图片加标签的 automl16.1.0
com.google.mlkit图片标签 - 自定义16.1.0
com.google.mlkitlanguage-id16.1.0
com.google.mlkitlinkfirebase16.0.0
com.google.mlkit对象检测16.1.0
com.google.mlkit对象检测自定义16.1.0
com.google.mlkit智能回复16.1.0
com.google.mlkit翻译16.1.0

新功能

  • 图片标签以及对象检测和跟踪 API 现在支持基于浮点的自定义模型。
  • 在 Android 上,添加了对指定自己的自定义 Executor 的支持,以便运行成本高昂的任务,例如加载模型以及向除图片标签以及对象检测和跟踪以外的所有 API 进行推断。

    默认情况下,机器学习套件使用高度优化的内部代管线程池来运行后台任务。此 API 适用于特定的用例,在这些用例中,开发者希望改为完全控制其应用中的线程。

改进和 bug 修复

  • 重大变更:在 iOS 上,对于 Barcode Scanning API,修复了 BarcodePersonName 中的拼写错误,并将其 pronounciation 属性重命名为 pronunciation
  • 修复了 iOS 上的 Translate API 和 Smart Reply API 中的问题:如果设备语言区域未指定区域(例如“en”而非“en-US”),应用便会崩溃。

2020 年 6 月 3 日

Android:16.0.0 / iOS:0.60.0

这是机器学习套件作为独立 SDK 的第一个版本,独立于 Firebase。此 SDK 提供之前通过适用于 Firebase SDK 的机器学习套件提供的所有设备端 API。如需详细了解此变更以及有关迁移现有应用的说明,请参阅我们的迁移指南

此版本加入了一些新功能、进行了改进并修复了一些问题。

新功能

改进和 bug 修复

  • 在 Android 上,在由 Google Play 服务提供支持的 Face Detection API 的“薄”变体中支持人脸轮廓功能。与捆绑的变体相比,对应用的大小缩减了约 20.3 MB。
  • 在 Android 上,通过将图片处理代码从 Java 移至原生代码,改进了条形码扫描 API 和人脸检测 API 的 CameraX 和 Camera2 性能
  • 已向所有 API 添加了 Android Jetpack 生命周期支持。开发者可以使用 addObserver 在应用发生屏幕旋转或用户 / 系统关闭时自动管理机器学习套件 API 的启动和拆解。这样可以更轻松地集成 CameraX。
  • 文字识别 API:现在提供最普遍的识别语言
  • 人脸检测 API:现在提供人脸的欧拉 X 角。
  • Barcode Scanning API [捆绑]:添加了对损坏的 PDF417 启动/停止模式检测的支持,将召回率提高了 10%。
  • 对象检测和跟踪 API:更新了定位器模型,提高了平均精度,并将占用空间减少了约 700KB。

旧版

如需了解 2020 年 6 月 3 日之前的更改,请参阅 Firebase 版本说明