bgsegm_createBackgroundSubtractorGMG
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
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;initializationFramesnumber of frames used to initialize the background models.
decisionThresholdThreshold 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.