def test_LSBPapply(self):
     bgs = bw.BackgroundSubtractorLSBP()
     frames = create_frameswithmovingcircle(nframes=5,
                                            width=1080,
                                            height=720)
     for fg in frames.apply_backgroundsegmenter(bgs):
         pass
Пример #2
0
 def test_LSBPapply(self):
     bgs = bw.BackgroundSubtractorLSBP()
     frames = create_frameswithmovingcircle(nframes=5,
                                            width=1080,
                                            height=720)
     for fg in bgs.iter_apply(frames):
         pass
 def test_LSBP(self):
     bgs = bw.BackgroundSubtractorLSBP(History=2)
     bw.detect_movement(self.vfs,
                        bgs=bgs,
                        analysispath=self.tempdirname1,
                        overwrite=True)
 def test_LSBPparams(self):
     bgs = bw.BackgroundSubtractorLSBP(nSamples=10)
     self.assertEqual(bgs.get_params()['nSamples'], 10)
 def test_LSBPdefaultinstantiation(self):
     bw.BackgroundSubtractorLSBP()