class Google::Apis::VisionV1::Feature

The Feature indicates what type of image detection task to perform. Users describe the type of Google Cloud Vision API tasks to perform over images by using Features. Features encode the Cloud Vision API vertical to operate on and the number of top-scoring results to return.

Attributes

max_results[RW]

Maximum number of results of this type. Corresponds to the JSON property `maxResults` @return [Fixnum]

type[RW]

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

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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