Document
Feature

Feature

Feature Stay organized with collections Save and categorize content based on your preference

Related articles

Astrill VPN Review 2024: Is It Worth the Cost? How to change VPN protocols or select Smart Protocol The Best Free UK VPN for 2024 [Get a UK IP Address] Split Tunneling explained: Does Your VPN Have It? Do VPNs Hide Search & Browsing History?


Feature



Stay organized with collections

Save and categorize content based on your preferences.


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 (type),
  " maxresult ":integer,
  " model ":string
}

Fields
type

enum (type)

The feature type.

maxResults

integer

maximum number of result of this type . Does not apply toTEXT_DETECTION, DOCUMENT_TEXT_DETECTION, or CROP_HINTS.

model

string

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 cutting-edge model release updated weekly.

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 hint .
WEB_DETECTION run web detection .
PRODUCT_SEARCH Run Product Search.
object_localization Run localizer for object detection.



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

Last update 2022 – 10 – 17 UTC .