Skip to main content

Class: KeypointsIO

Extends

  • TaskIO<"KEYPOINTS", { links: RawKeypointLink[]; objects: RawObjectKeypoints[]; referenceImageIndex: number; }>

Constructors

new KeypointsIO()

new KeypointsIO(raw: RawKeypointsIO, referenceImage?: ImageIO): KeypointsIO

Parameters

ParameterType

raw

RawKeypointsIO

referenceImage?

ImageIO

Returns

KeypointsIO

Overrides

TaskIO.constructor

Properties

readonly links: KeypointLink[];

objects

readonly objects: ObjectKeypoints[];

raw

readonly raw: RawTaskIO<"KEYPOINTS", {
links: RawKeypointLink[];
objects: RawObjectKeypoints[];
referenceImageIndex: number;
}>;

Inherited from

TaskIO.raw


referenceImage?

readonly optional referenceImage: ImageIO;

Accessors

data

get data(): RawData

Returns

RawData

Inherited from

TaskIO.data


key

get key(): Key

Returns

Key

Inherited from

TaskIO.key

Methods

toJSON()

toJSON(): RawTaskIO<"KEYPOINTS", {
links: RawKeypointLink[];
objects: RawObjectKeypoints[];
referenceImageIndex: number;
}>

Returns

RawTaskIO<"KEYPOINTS", { links: RawKeypointLink[]; objects: RawObjectKeypoints[]; referenceImageIndex: number; }>

Inherited from

TaskIO.toJSON