Merge pull request #2322 from berak:b_cc_read
This commit is contained in:
commit
863e9c699a
@ -1557,7 +1557,7 @@ bool CascadeClassifier::load( const String& filename )
|
||||
|
||||
bool CascadeClassifier::read(const FileNode &root)
|
||||
{
|
||||
Ptr<CascadeClassifierImpl> ccimpl;
|
||||
Ptr<CascadeClassifierImpl> ccimpl = makePtr<CascadeClassifierImpl>();
|
||||
bool ok = ccimpl->read_(root);
|
||||
if( ok )
|
||||
cc = ccimpl.staticCast<BaseCascadeClassifier>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user