Skip to content

Commit 57c8860

Browse files
author
klchang
committed
fix a runtime bug.
1 parent c8f2d2b commit 57c8860

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/tracking/samples/tutorial_multitracker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ int main( int argc, char** argv ){
6262
//! [selectmulti]
6363

6464
//quit when the tracked object(s) is not provided
65-
if(objects.size()<1)
65+
if(ROIs.size()<1)
6666
return 0;
6767

6868
// initialize the tracker
6969
//! [init]
7070
std::vector<Ptr<Tracker> > algorithms;
71-
for (size_t i = 0; i < objects.size(); i++)
71+
for (size_t i = 0; i < ROIs.size(); i++)
7272
{
7373
algorithms.push_back(createTrackerByName(trackingAlg));
7474
objects.push_back(ROIs[i]);

0 commit comments

Comments
 (0)