Skip to main content
Version: 0.10.0

Type Alias: KeypointDetection<F, L>

KeypointDetection<F, L> = object

Defined in: extensions/cv/tasks/keypointDetection.ts:85

Result structure representing a single detected bounding box and its associated landmarks.

Type Parameters

F

F extends BoxFormat

L

L extends PropertyKey

Properties

box

readonly box: BoundingBox<F>

Defined in: extensions/cv/tasks/keypointDetection.ts:87

Scaled bounding box coordinates matching the input image resolution.


confidence

readonly confidence: number

Defined in: extensions/cv/tasks/keypointDetection.ts:93

Overall confidence score of the detection (between 0.0 and 1.0). When several boxes are merged by NMS, this is the highest score in the merged group, so it does not depend on how many low-scoring boxes were absorbed.


landmarks

readonly landmarks: Landmarks<L>

Defined in: extensions/cv/tasks/keypointDetection.ts:95

Map of landmark names to their scaled pixel coordinates and individual confidence scores.