Commit 57c88600 authored by klchang's avatar klchang

fix a runtime bug.

parent c8f2d2bb
......@@ -62,13 +62,13 @@ int main( int argc, char** argv ){
//! [selectmulti]
//quit when the tracked object(s) is not provided
if(objects.size()<1)
if(ROIs.size()<1)
return 0;
// initialize the tracker
//! [init]
std::vector<Ptr<Tracker> > algorithms;
for (size_t i = 0; i < objects.size(); i++)
for (size_t i = 0; i < ROIs.size(); i++)
{
algorithms.push_back(createTrackerByName(trackingAlg));
objects.push_back(ROIs[i]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment