mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Try to solve issue 10166
This commit is contained in:
@@ -1329,7 +1329,7 @@ Ptr<ANN_MLP> ANN_MLP::load(const String& filepath)
|
||||
{
|
||||
FileStorage fs;
|
||||
fs.open(filepath, FileStorage::READ);
|
||||
|
||||
CV_Assert(fs.isOpened());
|
||||
Ptr<ANN_MLP> ann = makePtr<ANN_MLPImpl>();
|
||||
|
||||
((ANN_MLPImpl*)ann.get())->read(fs.getFirstTopLevelNode());
|
||||
|
||||
Reference in New Issue
Block a user