Skip to content

DISOpticalFlow_create

Motion and trackingfunctionOpenCV 5.0.0
import { DISOpticalFlow_create } from '@banou/opencv-wasm'

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

ARGUMENTSpreset
FUNCTIONDISOpticalFlow_create
RETURN TYPEDISOpticalFlow | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Creates an instance of DISOpticalFlow

DISOpticalFlow_create(preset: number): DISOpticalFlow | null;
2 available overloads
DISOpticalFlow_create(): DISOpticalFlow | null;
DISOpticalFlow_create(preset: number): DISOpticalFlow | null;
preset

one of PRESET_ULTRAFAST, PRESET_FAST and PRESET_MEDIUM

Returns

The DISOpticalFlow | null 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.