Class: Google::Cloud::Vision::V1p3beta1::ColorInfo
- Inherits:
-
Object
- Object
- Google::Cloud::Vision::V1p3beta1::ColorInfo
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/vision/v1p3beta1/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.
482 483 484 485 |
# File 'proto_docs/google/cloud/vision/v1p3beta1/image_annotator.rb', line 482 class ColorInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#pixel_fraction ⇒ ::Float
Returns The fraction of pixels the color occupies in the image. Value in range [0, 1].
482 483 484 485 |
# File 'proto_docs/google/cloud/vision/v1p3beta1/image_annotator.rb', line 482 class ColorInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |