[][src]Function opencv::bgsegm::create_background_subtractor_gmg

pub fn create_background_subtractor_gmg(
    initialization_frames: i32,
    decision_threshold: f64
) -> Result<PtrOfBackgroundSubtractorGMG>

Creates a GMG Background Subtractor

Parameters

  • initializationFrames: number of frames used to initialize the background models.
  • decisionThreshold: Threshold value, above which it is marked foreground, else background.

C++ default parameters

  • initialization_frames: 120
  • decision_threshold: 0.8