Skip to content

TrackerCSRT

trackingclassOpenCV 5.0.0
import { TrackerCSRT } from '@banou/opencv-wasm'

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

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

Tracking is an important issue for many computer vision applications in real world scenario. The development in this area is very fragmented and this API is an interface useful for plug several algorithms and compare them. the CSRT tracker

The implementation is based on [Lukezic_IJCV2018] Discriminative Correlation Filter with Channel and Spatial Reliability

Constructors and members

static create

Create CSRT tracker instance

create(parameters: TrackerCSRT_Params): TrackerCSRT | null;
2 available overloads
create(): TrackerCSRT | null;
create(parameters: TrackerCSRT_Params): TrackerCSRT | null;
parameters

CSRT parameters TrackerCSRT::Params

Returns

The TrackerCSRT | null result.

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.

setInitialMask

void init(InputArray image, const Rect& boundingBox) CV_OVERRIDE; bool update(InputArray image, CV_OUT Rect& boundingBox) CV_OVERRIDE;

setInitialMask(mask: Mat): void;
mask

mask argument (Mat).

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.