Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
c8f2d2bb
Commit
c8f2d2bb
authored
Sep 18, 2017
by
Dmitry Kurtaev
Committed by
Vadim Pisarevsky
Sep 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace createCaffeImporter to readNetFromCaffe (#1310)
parent
9fd5e99f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
17 deletions
+1
-17
gtrTracker.cpp
modules/tracking/src/gtrTracker.cpp
+1
-17
No files found.
modules/tracking/src/gtrTracker.cpp
View file @
c8f2d2bb
...
...
@@ -110,23 +110,7 @@ bool TrackerGOTURNImpl::initImpl(const Mat& image, const Rect2d& boundingBox)
//Load GOTURN architecture from *.prototxt and pretrained weights from *.caffemodel
String
modelTxt
=
"goturn.prototxt"
;
String
modelBin
=
"goturn.caffemodel"
;
Ptr
<
dnn
::
Importer
>
importer
;
try
//Import GOTURN model
{
importer
=
dnn
::
createCaffeImporter
(
modelTxt
,
modelBin
);
}
catch
(
const
cv
::
Exception
&
err
)
//Importer can throw errors, we will catch them
{
std
::
cerr
<<
err
.
msg
<<
std
::
endl
;
}
if
(
!
importer
)
{
cvError
(
CV_StsError
,
"cv::gtr::InitImpl"
,
"GOTURN network loading error..."
,
"gtrTracker.cpp"
,
117
);
}
importer
->
populateNet
(
net
);
importer
.
release
();
//We don't need importer anymore
net
=
dnn
::
readNetFromCaffe
(
modelTxt
,
modelBin
);
return
true
;
}
...
...
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