From cc2675e357a7f8b7502d493804561a33b409868e Mon Sep 17 00:00:00 2001 From: Thomas Boy <thomas-boy@idiv.de> Date: Tue, 21 Aug 2018 17:19:49 +0200 Subject: [PATCH] todo --- Demo.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Demo.cpp b/Demo.cpp index 42d40c2..0a522cc 100644 --- a/Demo.cpp +++ b/Demo.cpp @@ -277,9 +277,9 @@ int main(int argc, char * argv[]) } cout <<"b) we train the background with random choosen files"<< fileName<<endl; - int j=255; + //int j=255; vector<string> myRandomTrainList; //we save all draws in a list which will save to the results - for(i=0;i<amountTrainingSteps;i++,j--) + for(i=0;i<amountTrainingSteps;i++) { //random index @@ -300,15 +300,15 @@ int main(int argc, char * argv[]) cv::Mat img_mask; cv::Mat img_bkgmodel; - //adapter learning rate - if(j>62) - bgs->setLearningRate(j); +// //adapter learning rate +// if(j>62) +// bgs->setLearningRate(j); bgs->process(img_input, img_mask, img_bkgmodel); // by default, it shows automatically the foreground mask image - //we save the bk gmodel - std::string bkTestFileName = inputDir + "bk_"+TToolBox::mNzero(i)+".jpg"; - imwrite(bkTestFileName.c_str(),img_bkgmodel); +// //we save the bk gmodel +// std::string bkTestFileName = inputDir + "bk_"+TToolBox::mNzero(i)+".jpg"; +// imwrite(bkTestFileName.c_str(),img_bkgmodel); } else { -- GitLab