The type of Google Cloud Vision API detection to perform, and the maximum number of results to return for that type. Multiple Feature
objects can be specified in the features
list.
JSON representation | |
---|---|
{
"type": enum( |
Fields | |
---|---|
type |
The feature type. |
maxResults |
Maximum number of results of this type. Does not apply to |
model |
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_UNSPECIFIED |
Unspecified feature type. |
FACE_DETECTION |
Run face detection. |
LANDMARK_DETECTION |
Run landmark detection. |
LOGO_DETECTION |
Run logo detection. |
LABEL_DETECTION |
Run label detection. |
TEXT_DETECTION |
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. |
DOCUMENT_TEXT_DETECTION |
Run dense text document OCR. Takes precedence when both DOCUMENT_TEXT_DETECTION and TEXT_DETECTION are present. |
SAFE_SEARCH_DETECTION |
Run Safe Search to detect potentially unsafe or undesirable content. |
IMAGE_PROPERTIES |
Compute a set of image properties, such as the image's dominant colors. |
CROP_HINTS |
Run crop hints. |
WEB_DETECTION |
Run web detection. |
PRODUCT_SEARCH |
Run Product Search. |
CUSTOM_LABEL_DETECTION |
Run custom label detection. |
OBJECT_LOCALIZATION |
Run localizer for object detection. |
IMAGE_QUALITY |
Run quality scorer. |
OBJECT_ATTRIBUTES |
Compute attributes of objects detected in the image. Four domains of objects are supported. Please select via Feature.model (required): "builtin/apparel", "builtin/car", "builtin/food" or "builtin/wildlife". |
QUALITY_OPTIMIZATION |
Run quality optimization algorithms. There are three types of operations: COMPRESSION, ENHANCEMENT and QUALITY_SCORE. COMPRESSION and ENHANCEMENT parameters, and QUALITY_SCORE model choice can are specified in imageContext.quality_optimization_params. |
BARCODE_DETECTION |
Run barcode detection and recognition. |
DOCUMENT_PARSING |
Run document parsing algorithms to extract structured data such as tables and forms. The results are found in fullTextAnnotation -> page -> block with type either TABLE for tables or KEY_VALUE_PAIR for key-value pairs in forms. |