diff --git a/Demo.cpp b/Demo.cpp index 42d40c20b14addaa031967482cb4c87e593846d8..0a522cc9674d4f12157aa65340e34bb089e4fb67 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 {