MLKitTextRecognitionCommon 框架参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
-
用于指明与机器学习套件兼容的图片的协议。
请勿自行实现此协议;而是改用 MLImage
来创建
MLKitCompatibleImage
。
声明
Objective-C
@protocol MLKCompatibleImage <NSObject>
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe \u003ccode\u003eMLKCompatibleImage\u003c/code\u003e protocol signifies images compatible with ML Kit, and developers should utilize \u003ccode\u003eMLImage\u003c/code\u003e for creation instead of direct implementation.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should not directly implement the \u003ccode\u003eMLKCompatibleImage\u003c/code\u003e protocol but rather use \u003ccode\u003eMLImage\u003c/code\u003e to create compatible images.\u003c/p\u003e\n"]]],["The `MLKCompatibleImage` protocol indicates images compatible with ML Kit. It should not be implemented directly. Instead, users should utilize `MLImage` to generate an `MLKitCompatibleImage`. This protocol, declared in Objective-C as `@protocol MLKCompatibleImage \u003cNSObject\u003e`, is globally available and serves as a marker for ML Kit-ready images.\n"],null,["# MLKitTextRecognitionCommon Framework Reference\n\nProtocols\n=========\n\nThe following protocols are available globally.\n- `\n ``\n ``\n `\n\n ### [MLKCompatibleImage](#/c:objc(pl)MLKCompatibleImage)\n\n `\n ` \n A protocol for indicating images that are compatible with ML Kit.\n\n Don't implement this protocol yourself; instead, use `MLImage` to create an\n `MLKitCompatibleImage`. \n\n #### Declaration\n\n Objective-C \n\n @protocol MLKCompatibleImage \u003cNSObject\u003e"]]