face_StandardCollector
import { face_StandardCollector } 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 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;thresholdset threshold
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;The this result.
getMinLabel
Returns label with minimal distance
getMinLabel(): number;The number result.
getMinDist
Returns minimal distance value
getMinDist(): number;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;sortedIf set, results will be sorted by distance Each values is a pair of label and distance.
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.