Cloud Vision V1 API - Class Google::Cloud::Vision::V1::Feature (v0.7.0)

Reference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::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".

#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".
Returns
  • (::String) — Model to use for the feature. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

#type

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

#type=

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