Skip to content

rapid_Tracker

rapidclassOpenCV 5.0.0
import { rapid_Tracker } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSrapid_Tracker
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. Inherits Algorithm.

Abstract base class for stateful silhouette trackers

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.

compute

Estimate the pose of the tracker's configured 3D model from image edges, updating rotation and translation arrays.

compute(img: Mat, num: number, len: number, K: Mat, rvec: Mat, tvec: Mat, termcrit: TermCriteria): number;
2 available overloads
compute(img: Mat, num: number, len: number, K: Mat, rvec: Mat, tvec: Mat): number;
compute(img: Mat, num: number, len: number, K: Mat, rvec: Mat, tvec: Mat, termcrit: TermCriteria): number;
img

img argument (Mat).

num

num argument (number).

len

len argument (number).

K

k argument (Mat).

rvec

Input/output value, modified by the native operation. rvec argument (Mat).

tvec

Input/output value, modified by the native operation. tvec argument (Mat).

termcrit

termcrit argument (TermCriteria).

Returns

The number result.

clearState

Discard the tracker's accumulated internal state before tracking a new sequence.

clearState(): void;

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.