If multitracker's update function returns false, how to tell which object returned false?

asked 2016-10-02 23:49:02 -0600

newuser5001 gravatar image

According to cv::MultiTracker Class Reference http://docs.opencv.org/3.1.0/d8/d77/c...

bool update (const Mat &image)

returns just a single boolean, so how to tell which of the objects being tracked returned the false?

Thanks for any help.

edit retag flag offensive close merge delete

Comments

nice catch !

berak gravatar imageberak ( 2016-10-02 23:52:25 -0600 )edit

Euhm if I get it correctly, it only returns false if it does not succeed in updating the rectangles. Since a guessed position will always be available, I am really unsure if it should return a true or false for each box, because update will always be possible, either by prediction or by a new true positive detection...

StevenPuttemans gravatar imageStevenPuttemans ( 2016-10-03 08:55:45 -0600 )edit
1

@StevenPuttemans , do you think, it can "self-heal" a lost tracker ?

since the only way to (re-) initialize a rect is to add a new tracker, and there's no way to remove a stalled one - i'm afraid, the whole multitracker instance is invalid then.

berak gravatar imageberak ( 2016-10-03 09:41:33 -0600 )edit

Hmm in principle it should, as long as your detector and tracker together cope. But there are possible cases where it cant and where the tracker will go on a wild goose chase.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-10-04 02:38:19 -0600 )edit