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
6e96bb2c
Commit
6e96bb2c
authored
Jan 30, 2020
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2382 from kunaltyagi:multi_tld_patch
parents
0a8d841b
c98a434f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
multiTracker.cpp
modules/tracking/src/multiTracker.cpp
+4
-2
No files found.
modules/tracking/src/multiTracker.cpp
View file @
6e96bb2c
...
...
@@ -127,6 +127,7 @@ namespace cv
#endif
detect_all
(
imageForDetector
,
image_blurred
,
tmpCandidates
,
detectorResults
,
detect_flgs
,
trackers
);
bool
success
=
false
;
for
(
int
k
=
0
;
k
<
targetNum
;
k
++
)
{
//TLD Tracker data extraction
...
...
@@ -174,10 +175,11 @@ namespace cv
data
->
confident
=
false
;
data
->
failedLastTime
=
true
;
return
fals
e
;
continu
e
;
}
else
{
success
=
true
;
boundingBoxes
[
k
]
=
candidates
[
k
][
it
-
candidatesRes
[
k
].
begin
()];
data
->
failedLastTime
=
false
;
if
(
trackerNeedsReInit
[
k
]
||
it
!=
candidatesRes
[
k
].
begin
())
...
...
@@ -244,7 +246,7 @@ namespace cv
}
return
true
;
return
success
;
}
void
detect_all
(
const
Mat
&
img
,
const
Mat
&
imgBlurred
,
std
::
vector
<
Rect2d
>&
res
,
std
::
vector
<
std
::
vector
<
tld
::
TLDDetector
::
LabeledPatch
>
>
&
patches
,
std
::
vector
<
bool
>
&
detect_flgs
,
...
...
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