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

asked Oct 3 '16

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.

Preview: (hide)

Comments

nice catch !

berak gravatar imageberak (Oct 3 '16)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 (Oct 3 '16)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 (Oct 3 '16)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 (Oct 4 '16)edit