added extra warning about the automatic parameter loading for traincascade application when the param.xml file already exists

pull/2959/head
StevenPuttemans 11 years ago
parent 2df3abe16b
commit 03fe86f0a3
  1. 2
      apps/traincascade/cascadeclassifier.cpp

@ -506,6 +506,8 @@ void CvCascadeClassifier::save( const string filename, bool baseFormat )
bool CvCascadeClassifier::load( const string cascadeDirName )
{
cout << "Training parameters are loaded from the parameter file in data folder!" << endl;
cout << "Please empty the data folder if you want to use your own set of parameters." << endl;
FileStorage fs( cascadeDirName + CC_PARAMS_FILENAME, FileStorage::READ );
if ( !fs.isOpened() )
return false;

Loading…
Cancel
Save