From 03fe86f0a3df2d9771b27ba5dadd8a94aa278f77 Mon Sep 17 00:00:00 2001 From: StevenPuttemans Date: Thu, 10 Jul 2014 13:28:32 +0200 Subject: [PATCH] added extra warning about the automatic parameter loading for traincascade application when the param.xml file already exists --- apps/traincascade/cascadeclassifier.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/traincascade/cascadeclassifier.cpp b/apps/traincascade/cascadeclassifier.cpp index 7c18348ae5..b1bd4fa004 100644 --- a/apps/traincascade/cascadeclassifier.cpp +++ b/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;