Skip to content

gapi_ot_ObjectTrackerParams

gapiclassOpenCV 5.0.0
import { gapi_ot_ObjectTrackerParams } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSgapi_ot_ObjectTrackerParams
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

gapi ot object tracker params value in the OpenCV API.

Constructors and members

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

max_num_objects

Maximum number of trackable objects in a frame. Valid range: 1 <= max_num_objects. Or it can be -1 if there is no limitation of maximum number in X86. KMB/TBH has limitation up to 1024. Default value is -1 which means there is no limitation in X86. KMB/TBH is -1 means 200.

max_num_objects: number;

input_image_format

Input color format. Supports 0(BGR), 1(NV12), 2(BGRX) and 4(I420)

input_image_format: number;

tracking_per_class

Specifies whether tracker to use detection class for keeping id of an object. If it is true, new detection will be associated from previous tracking only when those two have same class. class id of an object is fixed across video frames. If it is false, new detection can be associated across different-class objects. In this case, the class id of an object may change across video frames depending on the tracker input. It is recommended to turn this option off when it is likely that detector confuses the class of object. For example, when detector confuses bicycle and motorbike. Turning this option off will increase the tracking reliability as tracker will ignore the class label of detector. n: Default value is true.

tracking_per_class: boolean;

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.