joaofaro / KCFcpp

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

How to judge whether the target is lost or not #23

Open wwwjjwww opened 5 years ago

wwwjjwww commented 5 years ago

I need to judge whether the target is lost after the prediction, how to judge whether the target is lost or not?

kefeng16 commented 5 years ago

update function returns a boolean.

holyhao commented 5 years ago

@keFengis hi, i find that in kcftracker.cpp line 173, it returns a vc::Rect rather than a boolean? so ,can you help me ?

StormArcher commented 5 years ago

@keFengis like is ? (True, (836.0, 193.0, 399.0, 621.0)) bbox = KCFtracker.update(frame) from KCFcpp-py-wrapper 

StormArcher commented 5 years ago

I found a problem whem I use the


bbox = KCFtracker.update(frame) print(bbox ) (True, (836.0, 193.0, 399.0, 621.0))


but when I use the bbox such as bbox[1][0] the type of bbox will change from tuple to list such as follew : bbox [789, 183, 458, 640] <class 'list'>

StormArcher commented 5 years ago

@holyhao as above

StormArcher commented 5 years ago

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 ?

kefeng16 commented 5 years ago

中文交流

StormArcher commented 5 years ago

@keFengis 如何判断目标丢失,你有好办法吗? 我用了两个python调用c++的方法 我又想使用init()多次,又想判断目标是否丢失 但是这两个方法各自只具有一个功能

1 opencv的库里面的kcf(就是opencvAPI)是有一个布尔型retval判断是否丢失。 如下: retval, boundingBox = cv.Tracker.update( image ) retval就是true或者false判断是不是丢失。但是他这个函数有个问题就是不能init()多次。 2 github上 KCFcpp-py-wrapper这个分享是有init()多次这种支持的,但是没有返回值。这个cython的封装是在joao的基础上做的。所以我来这里来提问,想知道是否c++这里面有布尔型返回值来判断是否丢失.

而且我发现一个有趣的现象: 在KCFcpp-py-wrapper中如下操作,打印出来的是一个元组,元组0位置是布尔型,我猜这就是布尔判断 bbox = KCFtracker.update(frame) print(bbox ) (True, (836.0, 193.0, 399.0, 621.0))

但是当我想用这个元组0位置的 布尔型 在if条件句中做判断的时候. bbox[0] 上面的元组合就会很奇怪的变成列表 print(bbox ) [789, 183, 458, 640]

所以,不管这个问题是如何出现的,我想使用这个判断是否丢失的方法,你能提供帮助吗?谢谢

kefeng16 commented 5 years ago

c++的话,peak_value 反应相似度似乎@zhujinchao123 python的我就不知到了

mshmoon commented 5 years ago

c++的话,peak_value 反应相似度似乎@zhujinchao123 python的我就不知到了

楼上2位大神,我如何运行这个程序,我make之后 ./KCF,毫无反应

kefeng16 commented 5 years ago

修改一下主函数,或者执行的时候带上参数

PapaMadeleine2022 commented 5 years ago

@zhujinchao123 have you solved this problem? judge whether the target is lost or not?

PapaMadeleine2022 commented 5 years ago

c++的话,peak_value 反应相似度似乎@zhujinchao123 python的我就不知到了

“peak_value 反应相似度似乎” 这句话什么意思? 可以judge whether the target is lost or not?

Jail0910 commented 4 years ago

c++的话,peak_value 反应相似度似乎@zhujinchao123 python的我就不知到了

楼上2位大神,我如何运行这个程序,我make之后 ./KCF,毫无反应

你会了吗

kefeng16 commented 4 years ago

有参数啊,后面要接参数吧!

在 2019年10月23日,21:14,Jiangjianyu notifications@github.com<mailto:notifications@github.com> 写道:

c++的话,peak_value 反应相似度似乎@zhujinchao123https://github.com/zhujinchao123 python的我就不知到了

楼上2位大神,我如何运行这个程序,我make之后 ./KCF,毫无反应

你会了吗

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/joaofaro/KCFcpp/issues/23?email_source=notifications&email_token=AHADV77LD72NLXBL343BX2DQQBEZTA5CNFSM4FYB3BGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECBLLPA#issuecomment-545437116, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHADV7ZWN7U5L6YOQMVGEX3QQBEZTANCNFSM4FYB3BGA.

Jail0910 commented 4 years ago

有参数啊,后面要接参数吧! 在 2019年10月23日,21:14,Jiangjianyu notifications@github.com<mailto:notifications@github.com> 写道: c++的话,peak_value 反应相似度似乎@zhujinchao123https://github.com/zhujinchao123 python的我就不知到了 楼上2位大神,我如何运行这个程序,我make之后 ./KCF,毫无反应 你会了吗 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub<#23?email_source=notifications&email_token=AHADV77LD72NLXBL343BX2DQQBEZTA5CNFSM4FYB3BGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECBLLPA#issuecomment-545437116>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHADV7ZWN7U5L6YOQMVGEX3QQBEZTANCNFSM4FYB3BGA.

我知道要接参数,但我不知道怎么接,接什么参数

Tomingz commented 3 years ago

@zhujinchao123 你好,请问如何判断KCF是否丢失目标,你后续有思路了吗?

jiejiezhang commented 2 years ago

@zhujinchao123 你好,请问如何判断KCF是否丢失目标,你后续有思路了吗?

同问,如何判断丢失目标

Jail0910 commented 2 years ago

你好我已经收到你的邮件,我会尽快回复,谢谢!姜建宇

Jail0910 commented 2 years ago

你好我已经收到你的邮件,我会尽快回复,谢谢!姜建宇

cg126 commented 2 years ago

c++的话,peak_value 反应相似度似乎@zhujinchao123 python的我就不知到了

楼上2位大神,我如何运行这个程序,我make之后 ./KCF,毫无反应

要输入图片序列以及第一张图片中目标的位置

zhangxiaowe commented 2 years ago

@cg126 你好,这个我运行了参数还是没有反应,可以加我扣扣号1873126840私下交流下?

zhangxiaowe commented 2 years ago

c++的话,peak_value 反应相似度似乎@zhujinchao123 python的我就不知到了

楼上2位大神,我如何运行这个程序,我make之后 ./KCF,毫无反应

你会了吗

我是运行了参数,还是没有反应,可以私下聊聊?可以加我扣扣1873126840

Jail0910 commented 2 years ago

你好我已经收到你的邮件,我会尽快回复,谢谢!姜建宇

Jail0910 commented 1 year ago

你好我已经收到你的邮件,我会尽快回复,谢谢!姜建宇