Skip to content

TrackerNano

Motion and trackingclassOpenCV 5.0.0
import { TrackerNano } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSTrackerNano
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 Tracker.

the Nano tracker is a super lightweight dnn-based general object tracking.

Nano tracker is much faster and extremely lightweight due to special model structure, the whole model size is about 1.9 MB. Nano tracker needs two models: one for feature extraction (backbone) and the another for localization (neckhead). Model download link: https://github.com/HonglinChu/SiamTrackers/tree/master/NanoTrack/models/nanotrackv2 Original repo is here: https://github.com/HonglinChu/NanoTrack Author: HongLinChu, 1628464345qq:.com

Constructors and members

static create

TrackerNano.create: Constructor

create(parameters: TrackerNano_Params): TrackerNano | null;
2 available overloads
create(): TrackerNano | null;
create(parameters: TrackerNano_Params): TrackerNano | null;
parameters

NanoTrack parameters TrackerNano::Params

Returns

The TrackerNano | null result.

static create1

TrackerNano.create1: Constructor

create1(backbone: dnn_Net, neckhead: dnn_Net): TrackerNano | null;
backbone

pre-loaded backbone model

neckhead

pre-loaded neckhead model

Returns

The TrackerNano | 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.

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.