added extra warning about the automatic parameter loading for traincascade application when the param.xml file already exists
This commit is contained in:
parent
2df3abe16b
commit
03fe86f0a3
@ -506,6 +506,8 @@ void CvCascadeClassifier::save( const string filename, bool baseFormat )
|
|||||||
|
|
||||||
bool CvCascadeClassifier::load( const string cascadeDirName )
|
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 );
|
FileStorage fs( cascadeDirName + CC_PARAMS_FILENAME, FileStorage::READ );
|
||||||
if ( !fs.isOpened() )
|
if ( !fs.isOpened() )
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user