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

Set of dominant colors and their corresponding scores.

Attributes

  • colors (type: list(GoogleApi.Vision.V1.Model.ColorInfo.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.DominantColorsAnnotation{
  colors: [GoogleApi.Vision.V1.Model.ColorInfo.t()] | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.