class Google::Apis::VisionV1::DominantColorsAnnotation
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::VisionV1::ColorInfo>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/vision_v1/classes.rb, line 945 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_v1/classes.rb, line 950 def update!(**args) @colors = args[:colors] if args.key?(:colors) end