joaofaro / KCFcpp

C++ Implementation of KCF Tracker
BSD 3-Clause "New" or "Revised" License
889 stars 445 forks source link

what if object disappears? #21

Open LoFaiTh opened 6 years ago

LoFaiTh commented 6 years ago

What the function update returns if object disappears, say occluded for a while? Is there any way to return confidence?

ludv1x commented 5 years ago

I have the same question. It would be nice to have an OpenCV-compatible interface for update() function which returns a special flag if the object disappears. https://docs.opencv.org/3.4.1/d0/d0a/classcv_1_1Tracker.html#a549159bd0553e6a8de356f3866df1f18

yyyy3531614 commented 5 years ago

Same issue here. How to decide whether it is lost when call update() with a new frame ?

ludv1x commented 5 years ago

I guess it make sense to use peak_value variable from here https://github.com/joaofaro/KCFcpp/blob/master/src/kcftracker.cpp#L185 as a confidence measure of the tracker. But it would be nice to have this opportunity in public API.

StormArcher commented 5 years ago

@ludv1x I konw the opencv API have the flag . such as --> retval, boundingBox = cv.Tracker.update( image ) the flag is retval

-->Problem ONR : but the API (you said) has a big disadvantages that it cant re-init the Tracker(in other word ,we cant init a tracker 2 times ). And I need the function (re-init ),so i must use the kcf (joaofaro/KCFcpp),this code has the function ,we can init the Tracker many times.

-->Problem TWO : so can you give me some advice for how to use the peak_value (just like use the flag in opencv API )?

-->Problem THREE : uoip/KCFcpp-py-wrapper I use the python kcf wrappered from c++ kcf ( joao .f). do you have any good ideas ?

HaoQChen commented 5 years ago

Did you fix that now?