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, 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". 
DOCUMENT_TEXT_DETECTIONandTEXT_DETECTIONalso 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_DETECTIONandTEXT_DETECTIONalso 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_DETECTIONandTEXT_DETECTIONalso support "builtin/weekly" for the bleeding edge release updated weekly. 
#type
def type() -> ::Google::Cloud::Vision::V1::Feature::Type
    Returns
    
  - (::Google::Cloud::Vision::V1::Feature::Type) — The feature type.
 
#type=
def type=(value) -> ::Google::Cloud::Vision::V1::Feature::Type
    Parameter
    
  - value (::Google::Cloud::Vision::V1::Feature::Type) — The feature type.
 
    Returns
    
- (::Google::Cloud::Vision::V1::Feature::Type) — The feature type.