Skip to content

KeypointDetector

Defined in: packages/runntime/src/zoo/tasks/cv/keypointDetection.ts:60

readonly landmarkNames: readonly ("nose" | "leftEye" | "rightEye" | "leftEar" | "rightEar" | "leftShoulder" | "rightShoulder" | "leftElbow" | "rightElbow" | "leftWrist" | "rightWrist" | "leftHip" | "rightHip" | "leftKnee" | "rightKnee" | "leftAnkle" | "rightAnkle")[]

Defined in: packages/runntime/src/zoo/tasks/cv/keypointDetection.ts:62

The landmark names, in COCO_LANDMARKS order.


readonly skeleton: readonly readonly ["nose" | "leftEye" | "rightEye" | "leftEar" | "rightEar" | "leftShoulder" | "rightShoulder" | "leftElbow" | "rightElbow" | "leftWrist" | "rightWrist" | "leftHip" | "rightHip" | "leftKnee" | "rightKnee" | "leftAnkle" | "rightAnkle", "nose" | "leftEye" | "rightEye" | "leftEar" | "rightEar" | "leftShoulder" | "rightShoulder" | "leftElbow" | "rightElbow" | "leftWrist" | "rightWrist" | "leftHip" | "rightHip" | "leftKnee" | "rightKnee" | "leftAnkle" | "rightAnkle"][]

Defined in: packages/runntime/src/zoo/tasks/cv/keypointDetection.ts:64

Pairs of landmark names to draw as limbs.

detectKeypoints(image, options?): Promise<KeypointDetection[]>

Defined in: packages/runntime/src/zoo/tasks/cv/keypointDetection.ts:66

Image in, the people in it out, best first.

ImageBuffer

DetectKeypointsOptions

Promise<KeypointDetection[]>


dispose(): void

Defined in: packages/runntime/src/zoo/tasks/cv/keypointDetection.ts:71

Frees the weights and every GPU buffer the runner holds.

void