Class: Google::Cloud::Vision::V1p3beta1::ColorInfo

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#color::Google::Type::Color

Returns RGB components of the color.

Returns:



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].

Returns:

  • (::Float)

    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

#score::Float

Returns Image-specific score for this color. Value in range [0, 1].

Returns:

  • (::Float)

    Image-specific score for this color. 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