1 | initial version |
background subtraction needs MANY frames to work on, you may not construct a new instance every time you want to use it. this line:
BackgroundSubtractorKNN backSub = Video.createBackgroundSubtractorKNN();
should be moved into a "run once" function, like onCameraViewStarted()
have a look here, there''s a java sample, too !
2 | No.2 Revision |
background subtraction needs MANY frames to work on, you may should not construct a new instance every time you want to use it. this line:
BackgroundSubtractorKNN backSub = Video.createBackgroundSubtractorKNN();
should be moved into a "run once" function, like onCameraViewStarted()
have a look here, there''s a java sample, too !
3 | No.3 Revision |
background subtraction needs MANY frames to work on, learn from, you should not construct a new instance every time you want to use it. this line:
BackgroundSubtractorKNN backSub = Video.createBackgroundSubtractorKNN();
should be moved into a "run once" function, like onCameraViewStarted()
have a look here, there''s a java sample, too !