Referência do framework do MLKitVision
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Constantes
As constantes a seguir estão disponíveis globalmente.
-
A origem da imagem é um UIImage
.
-
A origem da imagem é um CVPixelBuffer
.
-
A origem da imagem é um CMSampleBuffer
.
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-25 UTC.
[null,null,["Última atualização 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"]]