提交 863e9c69 编写于 作者: R Roman Donchenko 提交者: OpenCV Buildbot

Merge pull request #2322 from berak:b_cc_read

...@@ -1557,7 +1557,7 @@ bool CascadeClassifier::load( const String& filename ) ...@@ -1557,7 +1557,7 @@ bool CascadeClassifier::load( const String& filename )
bool CascadeClassifier::read(const FileNode &root) bool CascadeClassifier::read(const FileNode &root)
{ {
Ptr<CascadeClassifierImpl> ccimpl; Ptr<CascadeClassifierImpl> ccimpl = makePtr<CascadeClassifierImpl>();
bool ok = ccimpl->read_(root); bool ok = ccimpl->read_(root);
if( ok ) if( ok )
cc = ccimpl.staticCast<BaseCascadeClassifier>(); cc = ccimpl.staticCast<BaseCascadeClassifier>();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册