BackgroundSubtractorMOG2.create constructor
BackgroundSubtractorMOG2.create({})
Implementation
factory BackgroundSubtractorMOG2.create({
int history = 500,
double varThreshold = 16,
bool detectShadows = true,
}) {
final p = calloc<cvg.BackgroundSubtractorMOG2>();
cvRun(
() => cvideo.cv_BackgroundSubtractorMOG2_create_1(
history,
varThreshold,
detectShadows,
p,
),
);
return BackgroundSubtractorMOG2(p);
}