Dokumentacja platformy MLKitVision
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Stałe
Poniższe stałe są dostępne na całym świecie.
-
Źródło obrazu to UIImage
.
-
Źródło obrazu to CVPixelBuffer
.
-
Źródło obrazu to CMSampleBuffer
.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]