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
cff92579
Commit
cff92579
authored
Sep 25, 2017
by
Alexander Alekhin
Committed by
GitHub
Sep 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1375 from jrobble:fix_caffe_swaprb
Set swapRB to false in GOTURN tracker
parents
8d0ed6e9
2fd0d744
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
gtrTracker.cpp
modules/tracking/src/gtrTracker.cpp
+4
-4
test_trackers.cpp
modules/tracking/test/test_trackers.cpp
+1
-1
No files found.
modules/tracking/src/gtrTracker.cpp
View file @
cff92579
...
...
@@ -153,11 +153,11 @@ bool TrackerGOTURNImpl::updateImpl(const Mat& image, Rect2d& boundingBox)
searchPatch
=
searchPatch
-
128
;
//Convert to Float type
Mat
targetBlob
=
dnn
::
blobFromImage
(
targetPatch
);
Mat
searchBlob
=
dnn
::
blobFromImage
(
searchPatch
);
Mat
targetBlob
=
dnn
::
blobFromImage
(
targetPatch
,
1.0
f
,
Size
(),
Scalar
(),
false
);
Mat
searchBlob
=
dnn
::
blobFromImage
(
searchPatch
,
1.0
f
,
Size
(),
Scalar
(),
false
);
net
.
setInput
(
targetBlob
,
"
.
data1"
);
net
.
setInput
(
searchBlob
,
"
.
data2"
);
net
.
setInput
(
targetBlob
,
"data1"
);
net
.
setInput
(
searchBlob
,
"data2"
);
Mat
resMat
=
net
.
forward
(
"scale"
).
reshape
(
1
,
1
);
...
...
modules/tracking/test/test_trackers.cpp
View file @
cff92579
...
...
@@ -532,7 +532,7 @@ TEST_P(DistanceAndOverlap, DISABLED_Scaled_Data_TLD)
TEST_P
(
DistanceAndOverlap
,
DISABLED_GOTURN
)
{
TrackerTest
test
(
TrackerGOTURN
::
create
(),
dataset
,
0
,
100
,
NoTransform
);
TrackerTest
test
(
TrackerGOTURN
::
create
(),
dataset
,
18
,
.5
f
,
NoTransform
);
test
.
run
();
}
...
...
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