class Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Feature

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.

Attributes

max_results[RW]

Maximum number of results of this type. Does not apply to `TEXT_DETECTION`, ` DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`. Corresponds to the JSON property `maxResults` @return [Fixnum]

model[RW]

Model to use for the feature. Supported values: “builtin/stable” (the default if unset) and “builtin/latest”. Corresponds to the JSON property `model` @return [String]

type[RW]

The feature type. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1p1beta1/classes.rb, line 1829
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vision_v1p1beta1/classes.rb, line 1834
def update!(**args)
  @max_results = args[:max_results] if args.key?(:max_results)
  @model = args[:model] if args.key?(:model)
  @type = args[:type] if args.key?(:type)
end