Class: Aws::Rekognition::Types::DominantColor

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-rekognition/types.rb

Overview

A description of the dominant colors in an image.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#blueInteger

The Blue RGB value for a dominant color.

Returns:

  • (Integer)


2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
# File 'lib/aws-sdk-rekognition/types.rb', line 2695

class DominantColor < Struct.new(
  :red,
  :blue,
  :green,
  :hex_code,
  :css_color,
  :simplified_color,
  :pixel_percent)
  SENSITIVE = []
  include Aws::Structure
end

#css_colorString

The CSS color name of a dominant color.

Returns:

  • (String)


2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
# File 'lib/aws-sdk-rekognition/types.rb', line 2695

class DominantColor < Struct.new(
  :red,
  :blue,
  :green,
  :hex_code,
  :css_color,
  :simplified_color,
  :pixel_percent)
  SENSITIVE = []
  include Aws::Structure
end

#greenInteger

The Green RGB value for a dominant color.

Returns:

  • (Integer)


2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
# File 'lib/aws-sdk-rekognition/types.rb', line 2695

class DominantColor < Struct.new(
  :red,
  :blue,
  :green,
  :hex_code,
  :css_color,
  :simplified_color,
  :pixel_percent)
  SENSITIVE = []
  include Aws::Structure
end

#hex_codeString

The Hex code equivalent of the RGB values for a dominant color.

Returns:

  • (String)


2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
# File 'lib/aws-sdk-rekognition/types.rb', line 2695

class DominantColor < Struct.new(
  :red,
  :blue,
  :green,
  :hex_code,
  :css_color,
  :simplified_color,
  :pixel_percent)
  SENSITIVE = []
  include Aws::Structure
end

#pixel_percentFloat

The percentage of image pixels that have a given dominant color.

Returns:

  • (Float)


2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
# File 'lib/aws-sdk-rekognition/types.rb', line 2695

class DominantColor < Struct.new(
  :red,
  :blue,
  :green,
  :hex_code,
  :css_color,
  :simplified_color,
  :pixel_percent)
  SENSITIVE = []
  include Aws::Structure
end

#redInteger

The Red RGB value for a dominant color.

Returns:

  • (Integer)


2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
# File 'lib/aws-sdk-rekognition/types.rb', line 2695

class DominantColor < Struct.new(
  :red,
  :blue,
  :green,
  :hex_code,
  :css_color,
  :simplified_color,
  :pixel_percent)
  SENSITIVE = []
  include Aws::Structure
end

#simplified_colorString

One of 12 simplified color names applied to a dominant color.

Returns:

  • (String)


2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
# File 'lib/aws-sdk-rekognition/types.rb', line 2695

class DominantColor < Struct.new(
  :red,
  :blue,
  :green,
  :hex_code,
  :css_color,
  :simplified_color,
  :pixel_percent)
  SENSITIVE = []
  include Aws::Structure
end