Feature

The type of Google Cloud Vision API detection to perform, and the maximum number of results to return for that type. MultipleFeature objects can be specified in thefeatures list.

JSON representation
{"type":enum (Type),"maxResults":number,"model":string}
Fields
type

enum (Type)

The feature type.

maxResults

number

Maximum number of results of this type. Does not apply toTEXT_DETECTION,DOCUMENT_TEXT_DETECTION, orCROP_HINTS.

model

string

Model to use for the feature. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

Type

Type of Google Cloud Vision API feature to be extracted.

Enums
TYPE_UNSPECIFIEDUnspecified feature type.
FACE_DETECTIONRun face detection.
LANDMARK_DETECTIONRun landmark detection.
LOGO_DETECTIONRun logo detection.
LABEL_DETECTIONRun label detection.
TEXT_DETECTIONRun text detection / optical character recognition (OCR). Text detection is optimized for areas of text within a larger image; if the image is a document, useDOCUMENT_TEXT_DETECTION instead.
DOCUMENT_TEXT_DETECTIONRun dense text document OCR. Takes precedence when bothDOCUMENT_TEXT_DETECTION andTEXT_DETECTION are present.
SAFE_SEARCH_DETECTIONRun Safe Search to detect potentially unsafe or undesirable content.
IMAGE_PROPERTIESCompute a set of image properties, such as the image's dominant colors.
CROP_HINTSRun crop hints.
WEB_DETECTIONRun web detection.
PRODUCT_SEARCHRun Product Search.
OBJECT_LOCALIZATIONRun localizer for object detection.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-06-27 UTC.