Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
614e2543
Commit
614e2543
authored
Nov 29, 2017
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10170 from LaurentBerger:Issue10166
parents
29e4a494
606a5fd5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
core.hpp
modules/core/include/opencv2/core.hpp
+1
-0
ann_mlp.cpp
modules/ml/src/ann_mlp.cpp
+1
-1
No files found.
modules/core/include/opencv2/core.hpp
View file @
614e2543
...
...
@@ -3139,6 +3139,7 @@ public:
template
<
typename
_Tp
>
static
Ptr
<
_Tp
>
load
(
const
String
&
filename
,
const
String
&
objname
=
String
())
{
FileStorage
fs
(
filename
,
FileStorage
::
READ
);
CV_Assert
(
fs
.
isOpened
());
FileNode
fn
=
objname
.
empty
()
?
fs
.
getFirstTopLevelNode
()
:
fs
[
objname
];
if
(
fn
.
empty
())
return
Ptr
<
_Tp
>
();
Ptr
<
_Tp
>
obj
=
_Tp
::
create
();
...
...
modules/ml/src/ann_mlp.cpp
View file @
614e2543
...
...
@@ -1399,7 +1399,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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment