Class: Google::Cloud::Vision::V1::ColorInfo
- Inherits:
-
Object
- Object
- Google::Cloud::Vision::V1::ColorInfo
- Defined in:
- lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb
Overview
Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image.
Instance Attribute Summary collapse
-
#color ⇒ Google::Type::Color
RGB components of the color.
-
#pixel_fraction ⇒ Float
The fraction of pixels the color occupies in the image.
-
#score ⇒ Float
Image-specific score for this color.
Instance Attribute Details
#color ⇒ Google::Type::Color
Returns RGB components of the color.
428 |
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 428 class ColorInfo; end |
#pixel_fraction ⇒ Float
Returns The fraction of pixels the color occupies in the image. Value in range [0, 1].
428 |
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 428 class ColorInfo; end |
#score ⇒ Float
Returns Image-specific score for this color. Value in range [0, 1].
428 |
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 428 class ColorInfo; end |