View Source GoogleApi.Language.V2.Model.XPSColorMap (google_api_language v0.15.0)

Map from color to display name. Will only be used by Image Segmentation for uCAIP.

Attributes

  • annotationSpecIdToken (type: String.t, default: nil) - Should be used during training.
  • color (type: GoogleApi.Language.V2.Model.Color.t, default: nil) - This type is deprecated in favor of the IntColor below. This is because google.type.Color represent color has a float which semantically does not reflect discrete classes/categories concept. Moreover, to handle it well we need to have some tolerance when converting to a discretized color. As such, the recommendation is to have API surface still use google.type.Color while internally IntColor is used.
  • displayName (type: String.t, default: nil) - Should be used during preprocessing.
  • intColor (type: GoogleApi.Language.V2.Model.XPSColorMapIntColor.t, default: nil) -

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Language.V2.Model.XPSColorMap{
  annotationSpecIdToken: String.t() | nil,
  color: GoogleApi.Language.V2.Model.Color.t() | nil,
  displayName: String.t() | nil,
  intColor: GoogleApi.Language.V2.Model.XPSColorMapIntColor.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.