Commit 03fe86f0 authored by StevenPuttemans's avatar StevenPuttemans

added extra warning about the automatic parameter loading for traincascade…

added extra warning about the automatic parameter loading for traincascade application when the param.xml file already exists
parent 2df3abe1
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment