MLKitVision 框架参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis documentation outlines globally available constants used for specifying the source type of a \u003ccode\u003eGMLImage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMLImage\u003c/code\u003e source can be represented by \u003ccode\u003eUIImage\u003c/code\u003e, \u003ccode\u003eCVPixelBuffer\u003c/code\u003e, or \u003ccode\u003eCMSampleBuffer\u003c/code\u003e, each associated with a specific constant.\u003c/p\u003e\n"],["\u003cp\u003eThese constants (\u003ccode\u003eGMLImageSourceTypeImage\u003c/code\u003e, \u003ccode\u003eGMLImageSourceTypePixelBuffer\u003c/code\u003e, \u003ccode\u003eGMLImageSourceTypeSampleBuffer\u003c/code\u003e) are primarily used within the Objective-C environment.\u003c/p\u003e\n"]]],["The provided content defines three constants related to image source types in Objective-C. `GMLImageSourceTypeImage` (value 0) signifies a `UIImage` source. `GMLImageSourceTypePixelBuffer` (value 1) denotes a `CVPixelBuffer` source. `GMLImageSourceTypeSampleBuffer` (value 2) indicates a `CMSampleBuffer` source. Each constant represents a specific type of image data format that can be used. These constants are available globally.\n"],null,["# MLKitVision Framework Reference\n\nConstants\n=========\n\nThe following constants are available globally.\n- `\n ``\n ``\n `\n\n ### [GMLImageSourceTypeImage](#/c:GMLImage.h@GMLImageSourceTypeImage)\n\n `\n ` \n Image source is a `UIImage`. \n\n #### Declaration\n\n Objective-C \n\n static const /ml-kit/reference/ios/mlkitvision/api/reference/Type-Definitions#/c:GMLImage.h@T@GMLImageSourceType GMLImageSourceTypeImage = 0\n\n- `\n ``\n ``\n `\n\n ### [GMLImageSourceTypePixelBuffer](#/c:GMLImage.h@GMLImageSourceTypePixelBuffer)\n\n `\n ` \n Image source is a `CVPixelBuffer`. \n\n #### Declaration\n\n Objective-C \n\n static const /ml-kit/reference/ios/mlkitvision/api/reference/Type-Definitions#/c:GMLImage.h@T@GMLImageSourceType GMLImageSourceTypePixelBuffer = 1\n\n- `\n ``\n ``\n `\n\n ### [GMLImageSourceTypeSampleBuffer](#/c:GMLImage.h@GMLImageSourceTypeSampleBuffer)\n\n `\n ` \n Image source is a `CMSampleBuffer`. \n\n #### Declaration\n\n Objective-C \n\n static const /ml-kit/reference/ios/mlkitvision/api/reference/Type-Definitions#/c:GMLImage.h@T@GMLImageSourceType GMLImageSourceTypeSampleBuffer = 2"]]