def test_LSBPapply(self):
     bgs = bw.BackgroundSubtractorLSBP()
     frames = create_frameswithmovingcircle(nframes=5,
                                            width=1080,
                                            height=720)
     for fg in frames.apply_backgroundsegmenter(bgs):
         pass
Exemplo n.º 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_MOG2apply(self):
     bgs = bw.BackgroundSubtractorMOG2(History=10)
     frames = create_frameswithmovingcircle(nframes=5,
                                            width=1080,
                                            height=720)
     for fg in frames.apply_backgroundsegmenter(bgs,
                                                roi=(10, 710, 10, 500),
                                                nroi=(20, 30, 20, 30)):
         pass
Exemplo n.º 4
0
 def test_KNNapply(self):
     bgs = bw.BackgroundSubtractorKNN(History=10)
     frames = create_frameswithmovingcircle(nframes=5,
                                            width=1080,
                                            height=720)
     for fg in bgs.iter_apply(frames,
                              roi=(10, 710, 10, 500),
                              nroi=(20, 30, 20, 30)):
         pass