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

This commit is contained in:
StevenPuttemans 2014-07-10 13:28:32 +02:00
parent 2df3abe16b
commit 03fe86f0a3

View File

@ -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;