MLKitVision फ़्रेमवर्क रेफ़रंस
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
स्थिरांक
ये कॉन्सटेंट, दुनिया भर में उपलब्ध हैं.
-
इमेज का सोर्स UIImage
है.
-
इमेज का सोर्स CVPixelBuffer
है.
-
इमेज का सोर्स CMSampleBuffer
है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\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"]]