//stream.saveSnapshot(file);
BufferedImage sns;
if( (sns = stream.getSnapshot()) != null ) {
if( this.bgs == null )
this.bgs = new MOGBGS(new BackgroundSubtractorMOG2(10, 90f));
this.bgs.setShowFg(true);
((MOGBGS)this.bgs).setMovePercent(0.01f);
this.bgs.process(ImgConverter.toMat(sns));
if( this.bgs.isMoving() ) {