opencv / opencv_contrib

Repository for OpenCV's extra modules
Apache License 2.0
9.4k stars 5.76k forks source link

Tracker::update() always returns true #1121

Closed berak closed 7 years ago

berak commented 7 years ago
System information (version)

Tracker::update should return false, if it lost the object, but both the KCF and the GOTURN implementation always return true, so we can never find out, if it's nessecary to re-initialize it.

sovrasov commented 7 years ago

For KCF this feature can be done using confidence thresholding. Take a look at #1123.

sovrasov commented 7 years ago

I think GOTURN net can't give us a confidence of detection. @Auron-X am I right?

Auron-X commented 7 years ago

@sovrasov GOTURN was designed for tracking purposes and does not support detection. Although it can be trained in the same manner for detection task on object detection dataset, but in this case it will be closer to R-CNN net from which I believe GOTURN took inspiration

Auron-X commented 7 years ago

If you are asking about the confidence of tracking, then yes GOTURN and KCF algorithms has no mechanism to detect when tracker fails, because tracker needs some analog of Ground Truth - it can be target model, or detector that runs in parallel. For ex. TLD tracker includes all 3: Tracking, Learning (Model), Detection so it can 'correct' tracker errors in some way