Class: Google::Cloud::Vision::V1::ColorInfo

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/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

Instance Attribute Details

#color::Google::Type::Color

Returns RGB components of the color.

Returns:



494
495
496
497
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 494

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



494
495
496
497
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 494

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



494
495
496
497
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 494

class ColorInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end