Class Feature (3.6.0)

Feature(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Users describe the type of Google Cloud Vision API tasks to perform over images by using Feature\ s. Each Feature indicates a type of image detection task to perform. Features encode the Cloud Vision API vertical to operate on and the number of top-scoring results to return.

Attributes

NameDescription
type_ google.cloud.vision_v1p1beta1.types.Feature.Type
The feature type.
max_results int
Maximum number of results of this type.
model str
Model to use for the feature. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". DOCUMENT_TEXT_DETECTION and TEXT_DETECTION also support "builtin/weekly" for the bleeding edge release updated weekly.

Classes

Type

Type(value)

Type of image feature.

Values: TYPE_UNSPECIFIED (0): Unspecified feature type. FACE_DETECTION (1): Run face detection. LANDMARK_DETECTION (2): Run landmark detection. LOGO_DETECTION (3): Run logo detection. LABEL_DETECTION (4): Run label detection. TEXT_DETECTION (5): Run OCR. DOCUMENT_TEXT_DETECTION (11): Run dense text document OCR. Takes precedence when both DOCUMENT_TEXT_DETECTION and TEXT_DETECTION are present. SAFE_SEARCH_DETECTION (6): Run computer vision models to compute image safe-search properties. IMAGE_PROPERTIES (7): Compute a set of image properties, such as the image's dominant colors. CROP_HINTS (9): Run crop hints. WEB_DETECTION (10): Run web detection.