diff --git a/modules/video/src/bgfg_gmg.cpp b/modules/video/src/bgfg_gmg.cpp index 42d6fb1691..be41db859f 100644 --- a/modules/video/src/bgfg_gmg.cpp +++ b/modules/video/src/bgfg_gmg.cpp @@ -280,7 +280,7 @@ namespace } } } - else if (updateBackgroundModel_) + else { // training-mode update