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

#blue ⇒ Integer

The Blue RGB value for a dominant color.

Returns:

  • (Integer)


2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2752

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

#css_color ⇒ String

The CSS color name of a dominant color.

Returns:

  • (String)


2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2752

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

#green ⇒ Integer

The Green RGB value for a dominant color.

Returns:

  • (Integer)


2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2752

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

#hex_code ⇒ String

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

Returns:

  • (String)


2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2752

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

#pixel_percent ⇒ Float

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

Returns:

  • (Float)


2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2752

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

#red ⇒ Integer

The Red RGB value for a dominant color.

Returns:

  • (Integer)


2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2752

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

#simplified_color ⇒ String

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

Returns:

  • (String)


2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2752

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