Interface Label

Label

interface Label {
    attributes?: Attribute[];
    color?: string;
    has_parent?: boolean;
    id?: number;
    name: string;
    parent_id?: null | number;
    project_id?: null | number;
    sublabels?: Sublabel[];
    svg?: string;
    task_id?: null | number;
    type?: LabelType;
}

Properties

attributes?: Attribute[]

The list of attributes. If you want to remove an attribute, you need to recreate the label and specify the remaining attributes.

Label

color?: string

The hex value for the RGB color. Will be generated automatically, unless specified explicitly.

Label

has_parent?: boolean

Label

id?: number

Label

name: string

Label

parent_id?: null | number

Label

project_id?: null | number

Label

sublabels?: Sublabel[]

Label

svg?: string

Label

task_id?: null | number

Label

type?: LabelType

Associated annotation type for this label * any - ANY * cuboid - CUBOID * ellipse - ELLIPSE * mask - MASK * points - POINTS * polygon - POLYGON * polyline - POLYLINE * rectangle - RECTANGLE * skeleton - SKELETON * tag - TAG

Label