Skip to content

gapi_video_BackgroundSubtractorType

gapiclassOpenCV 5.0.0
import { gapi_video_BackgroundSubtractorType } from '@banou/opencv-wasm'

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

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

This namespace contains G-API Operations and functions for video-oriented algorithms, like optical flow and background subtraction.

Constructors and members

static TYPE_BS_MOG2

type bs mog2 constant (0), defined by OpenCV for cv::gapi::video.

TYPE_BS_MOG2: gapi_video_BackgroundSubtractorTypeValue<0>,

static TYPE_BS_KNN

type bs knn constant (1), defined by OpenCV for cv::gapi::video.

TYPE_BS_KNN: gapi_video_BackgroundSubtractorTypeValue<1>

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.