class Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1DominantColorsAnnotation

Set of dominant colors and their corresponding scores.

Attributes

colors[RW]

RGB color values with their score and pixel fraction. Corresponds to the JSON property `colors` @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ColorInfo>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1p1beta1/classes.rb, line 1580
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 1585
def update!(**args)
  @colors = args[:colors] if args.key?(:colors)
end