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

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

Instance Attribute Details

#colorGoogle::Type::Color

Returns RGB components of the color.

Returns:



394
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 394

class ColorInfo; end

#pixel_fractionFloat

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



394
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 394

class ColorInfo; end

#scoreFloat

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



394
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 394

class ColorInfo; end