Cloud Vision V1p4beta1 API - Class Google::Cloud::Vision::V1p4beta1::Feature (v0.5.1)

Reference documentation and code samples for the Cloud Vision V1p4beta1 API class Google::Cloud::Vision::V1p4beta1::Feature.

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#max_results

def max_results() -> ::Integer
Returns
  • (::Integer) — Maximum number of results of this type. Does not apply to TEXT_DETECTION, DOCUMENT_TEXT_DETECTION, or CROP_HINTS.

#max_results=

def max_results=(value) -> ::Integer
Parameter
  • value (::Integer) — Maximum number of results of this type. Does not apply to TEXT_DETECTION, DOCUMENT_TEXT_DETECTION, or CROP_HINTS.
Returns
  • (::Integer) — Maximum number of results of this type. Does not apply to TEXT_DETECTION, DOCUMENT_TEXT_DETECTION, or CROP_HINTS.

#model

def model() -> ::String
Returns
  • (::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 bleeding edge release updated weekly.

#model=

def model=(value) -> ::String
Parameter
  • value (::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 bleeding edge release updated weekly.
Returns
  • (::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 bleeding edge release updated weekly.

#type

def type() -> ::Google::Cloud::Vision::V1p4beta1::Feature::Type
Returns

#type=

def type=(value) -> ::Google::Cloud::Vision::V1p4beta1::Feature::Type
Parameter
Returns