Reference documentation and code samples for the Cloud Vision V1 Client class Type.
Type of Google Cloud Vision API feature to be extracted.
Protobuf type google.cloud.vision.v1.Feature.Type
Methods
name
Parameter | |
---|---|
Name | Description |
value |
mixed
|
value
Parameter | |
---|---|
Name | Description |
name |
mixed
|
Constants
TYPE_UNSPECIFIED
Value: 0
Unspecified feature type.
Generated from protobuf enum TYPE_UNSPECIFIED = 0;
FACE_DETECTION
Value: 1
Run face detection.
Generated from protobuf enum FACE_DETECTION = 1;
LANDMARK_DETECTION
Value: 2
Run landmark detection.
Generated from protobuf enum LANDMARK_DETECTION = 2;
LOGO_DETECTION
Value: 3
Run logo detection.
Generated from protobuf enum LOGO_DETECTION = 3;
LABEL_DETECTION
Value: 4
Run label detection.
Generated from protobuf enum LABEL_DETECTION = 4;
TEXT_DETECTION
Value: 5
Run text detection / optical character recognition (OCR). Text detection
is optimized for areas of text within a larger image; if the image is
a document, use DOCUMENT_TEXT_DETECTION
instead.
Generated from protobuf enum TEXT_DETECTION = 5;
DOCUMENT_TEXT_DETECTION
Value: 11
Run dense text document OCR. Takes precedence when both
DOCUMENT_TEXT_DETECTION
and TEXT_DETECTION
are present.
Generated from protobuf enum DOCUMENT_TEXT_DETECTION = 11;
SAFE_SEARCH_DETECTION
Value: 6
Run Safe Search to detect potentially unsafe or undesirable content.
Generated from protobuf enum SAFE_SEARCH_DETECTION = 6;
IMAGE_PROPERTIES
Value: 7
Compute a set of image properties, such as the image's dominant colors.
Generated from protobuf enum IMAGE_PROPERTIES = 7;
CROP_HINTS
Value: 9
Run crop hints.
Generated from protobuf enum CROP_HINTS = 9;
WEB_DETECTION
Value: 10
Run web detection.
Generated from protobuf enum WEB_DETECTION = 10;
PRODUCT_SEARCH
Value: 12
Run Product Search.
Generated from protobuf enum PRODUCT_SEARCH = 12;
OBJECT_LOCALIZATION
Value: 19
Run localizer for object detection.
Generated from protobuf enum OBJECT_LOCALIZATION = 19;