Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

just saying, please put this line in fron of the while loop:

    BackgroundSubtractorMOG2 bgsubtraction = Video.createBackgroundSubtractorMOG2();

(it's useless, if you create a new instance for each frame)

just saying, please put move this line in fronfront of the while loop:

    BackgroundSubtractorMOG2 bgsubtraction = Video.createBackgroundSubtractorMOG2();

(it's useless, if you create a new instance for each frame)

just saying, please move this line in front of the while loop:

    BackgroundSubtractorMOG2 bgsubtraction = Video.createBackgroundSubtractorMOG2();

(it's (it has to learn a model from several images, so it's useless, if you create a new instance for each frame)

just saying, please move this line in front of the while loop:

    BackgroundSubtractorMOG2 bgsubtraction = Video.createBackgroundSubtractorMOG2();

(it has to learn a model from several images, so it's useless, if you create a new instance for each frame)