KeypointDetector
Defined in: packages/runntime/src/zoo/tasks/cv/keypointDetection.ts:60
Properties
Section titled “Properties”landmarkNames
Section titled “landmarkNames”
readonlylandmarkNames: 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.
skeleton
Section titled “skeleton”
readonlyskeleton: 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.
Methods
Section titled “Methods”detectKeypoints()
Section titled “detectKeypoints()”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.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<KeypointDetection[]>
dispose()
Section titled “dispose()”dispose():
void
Defined in: packages/runntime/src/zoo/tasks/cv/keypointDetection.ts:71
Frees the weights and every GPU buffer the runner holds.
Returns
Section titled “Returns”void