Skip to content

face_StandardCollector

faceclassOpenCV 5.0.0
import { face_StandardCollector } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSface_StandardCollector
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 face_PredictCollector.

Default predict collector

Trace minimal distance with treshhold checking (that is default behavior for most predict logic)

Constructors and members

static create

Static constructor

create(threshold: number): face_StandardCollector | null;
2 available overloads
create(): face_StandardCollector | null;
create(threshold: number): face_StandardCollector | null;
threshold

set threshold

Returns

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

getMinLabel

Returns label with minimal distance

getMinLabel(): number;
Returns

The number result.

getMinDist

Returns minimal distance value

getMinDist(): number;
Returns

The number result.

getResults

Return results as vector

getResults(sorted: boolean): std__pair_int__doubleVector;
2 available overloads
getResults(): std__pair_int__doubleVector;
getResults(sorted: boolean): std__pair_int__doubleVector;
sorted

If set, results will be sorted by distance Each values is a pair of label and distance.

Returns

The std__pair_int__doubleVector result. Release returned native handles with using or delete(), including handles nested in results.

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.