View Source GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p3beta1ColorInfo (google_api_vision v0.25.0)

Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image.

Attributes

  • color (type: GoogleApi.Vision.V1.Model.Color.t, default: nil) - RGB components of the color.
  • pixelFraction (type: number(), default: nil) - The fraction of pixels the color occupies in the image. Value in range [0, 1].
  • score (type: number(), default: nil) - Image-specific score for this color. Value in range [0, 1].

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p3beta1ColorInfo{
  color: GoogleApi.Vision.V1.Model.Color.t() | nil,
  pixelFraction: number() | nil,
  score: number() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.