Detection interface

Represents one detection by a detection task.

Signature:

export declare interface Detection 

Properties

Property Type Description
boundingBox BoundingBox The bounding box of the detected objects.
categories Category[] A list of Category objects.
keypoints NormalizedKeypoint[] List of keypoints associated with the detection. Keypoints represent interesting points related to the detection. For example, the keypoints represent the eye, ear and mouth from face detection model. Or in the template matching detection, e.g. KNIFT, they can represent the feature points for template matching. Contains an empty list if no keypoints are detected.

Detection.boundingBox

The bounding box of the detected objects.

Signature:

boundingBox?: BoundingBox;

Detection.categories

A list of Category objects.

Signature:

categories: Category[];

Detection.keypoints

List of keypoints associated with the detection. Keypoints represent interesting points related to the detection. For example, the keypoints represent the eye, ear and mouth from face detection model. Or in the template matching detection, e.g. KNIFT, they can represent the feature points for template matching. Contains an empty list if no keypoints are detected.

Signature:

keypoints: NormalizedKeypoint[];