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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-rekognition/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)


2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2708

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)


2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2708

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)


2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2708

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)


2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2708

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)


2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2708

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)


2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2708

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)


2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2708

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