Commit eb8f5b88 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #845 from tjom:master

parents f077f58e 4791d8f0
...@@ -58,7 +58,7 @@ void FaceRecognizer::load(const String &filename) ...@@ -58,7 +58,7 @@ void FaceRecognizer::load(const String &filename)
{ {
FileStorage fs(filename, FileStorage::READ); FileStorage fs(filename, FileStorage::READ);
if (!fs.isOpened()) if (!fs.isOpened())
CV_Error(Error::StsError, "File can't be opened for writing!"); CV_Error(Error::StsError, "File can't be opened for reading!");
this->load(fs); this->load(fs);
fs.release(); fs.release();
} }
......
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