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

Set of dominant colors and their corresponding scores.

Attributes

  • colors (type: list(GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p1beta1ColorInfo.t), default: nil) - RGB color values with their score and pixel fraction.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p1beta1DominantColorsAnnotation{
    colors:
      [GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p1beta1ColorInfo.t()] | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.