REST Resource: projects.locations.datasets.annotationSpecs

Resource: AnnotationSpec

A definition of an annotation.

JSON representation
{
  "name": string,
  "displayName": string,
  "category": number,
  "exampleCount": number
}
Fields
name

string

Output only. Resource name of the annotation spec. Form:

'projects/{project_id}/locations/{locationId}/datasets/{datasetId}/annotationSpecs/{annotationSpecId}'

displayName

string

Required. The name of the annotation spec to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.

category

number

This field is required in image segmentation and is only useful in it. In

categoryMask, each pixel represents the category of the pixel in original image. This field associates each categoryMask with one AnnotationSpec. No two AnnotationSpecs in a dataset can have the same categoryMask. Valid range for categories is 1 to 254 inclusive. Also, 0 and 255 are also allowed where 0 is assumed to be background while 255 signifies unknown regions.

exampleCount

number

Output only. The number of examples in the parent dataset labeled by the annotation spec.

Methods

get

Gets an annotation spec.
Was this page helpful? Let us know how we did:

Send feedback about...

Cloud AutoML Vision
Need help? Visit our support page.