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
, orCROP_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
, orCROP_HINTS
.
Returns
-
(::Integer) — Maximum number of results of this type. Does not apply to
TEXT_DETECTION
,DOCUMENT_TEXT_DETECTION
, orCROP_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::V1p4beta1::Feature::Type
Returns
- (::Google::Cloud::Vision::V1p4beta1::Feature::Type) — The feature type.
#type=
def type=(value) -> ::Google::Cloud::Vision::V1p4beta1::Feature::Type
Parameter
- value (::Google::Cloud::Vision::V1p4beta1::Feature::Type) — The feature type.
Returns
- (::Google::Cloud::Vision::V1p4beta1::Feature::Type) — The feature type.