Skip to content

bgsegm_createBackgroundSubtractorGMG

bgsegmfunctionOpenCV 5.0.0
import { bgsegm_createBackgroundSubtractorGMG } from '@banou/opencv-wasm'

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

ARGUMENTSinitializationFrames, decisionThreshold
FUNCTIONbgsegm_createBackgroundSubtractorGMG
RETURN TYPEbgsegm_BackgroundSubtractorGMG | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Creates a GMG Background Subtractor

bgsegm_createBackgroundSubtractorGMG(initializationFrames: number, decisionThreshold: number): bgsegm_BackgroundSubtractorGMG | null;
3 available overloads
bgsegm_createBackgroundSubtractorGMG(): bgsegm_BackgroundSubtractorGMG | null;
bgsegm_createBackgroundSubtractorGMG(initializationFrames: number): bgsegm_BackgroundSubtractorGMG | null;
bgsegm_createBackgroundSubtractorGMG(initializationFrames: number, decisionThreshold: number): bgsegm_BackgroundSubtractorGMG | null;
initializationFrames

number of frames used to initialize the background models.

decisionThreshold

Threshold value, above which it is marked foreground, else background.

Returns

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