google_api_vision v0.21.0 GoogleApi.Vision.V1.Model.ColorInfo View Source

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

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.Vision.V1.Model.ColorInfo{
  color: GoogleApi.Vision.V1.Model.Color.t(),
  pixelFraction: number(),
  score: number()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.