class Azure::CognitiveServices::ComputerVision::V1_0::Models::ColorInfo
An object providing additional metadata describing color attributes.
Attributes
accent_color[RW]
@return [String] Possible accent color.
dominant_color_background[RW]
@return [String] Possible dominant background color.
dominant_color_foreground[RW]
@return [String] Possible dominant foreground color.
dominant_colors[RW]
@return [Array<String>] An array of possible dominant colors.
is_bwimg[RW]
@return [Boolean] A value indicating if the image is black and white.
Public Class Methods
mapper()
click to toggle source
Mapper for ColorInfo
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/1.0/generated/azure_cognitiveservices_computervision/models/color_info.rb, line 35 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ColorInfo', type: { name: 'Composite', class_name: 'ColorInfo', model_properties: { dominant_color_foreground: { client_side_validation: true, required: false, serialized_name: 'dominantColorForeground', type: { name: 'String' } }, dominant_color_background: { client_side_validation: true, required: false, serialized_name: 'dominantColorBackground', type: { name: 'String' } }, dominant_colors: { client_side_validation: true, required: false, serialized_name: 'dominantColors', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, accent_color: { client_side_validation: true, required: false, serialized_name: 'accentColor', type: { name: 'String' } }, is_bwimg: { client_side_validation: true, required: false, serialized_name: 'isBWImg', type: { name: 'Boolean' } } } } } end