Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

XPSColorMap

import type { XPSColorMap } from "https://googleapis.deno.dev/v1/language:v2.ts";

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

interface XPSColorMap {
annotationSpecIdToken?: string;
color?: Color;
displayName?: string;
}

§Properties

§
annotationSpecIdToken?: string
[src]

Should be used during training.

§
color?: Color
[src]

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?: string
[src]

Should be used during preprocessing.