Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wwwjjwww opened this issue Sep 29, 2018 · 25 comments
Open

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

wwwjjwww opened this issue Sep 29, 2018 · 25 comments

Comments

@wwwjjwww
Copy link

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

@kefeng16
Copy link

update function returns a boolean.

@holyhao
Copy link

holyhao commented Dec 7, 2018

@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
Copy link

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

@StormArcher
Copy link

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
Copy link

@holyhao as above

@StormArcher
Copy link

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
Copy link

中文交流

@StormArcher
Copy link

@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
Copy link

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

@mshmoon
Copy link

mshmoon commented Jan 27, 2019

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

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

@kefeng16
Copy link

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

@PapaMadeleine2022
Copy link

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

@PapaMadeleine2022
Copy link

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

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

@Jail0910
Copy link

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

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

你会了吗

@kefeng16
Copy link

kefeng16 commented Oct 23, 2019 via email

@Jail0910
Copy link

有参数啊,后面要接参数吧! 在 2019年10月23日,21:14,Jiangjianyu <notifications@github.commailto: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
Copy link

Tomingz commented Feb 24, 2021

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

@jiejiezhang
Copy link

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

同问,如何判断丢失目标

@Jail0910
Copy link

Jail0910 commented Jan 28, 2022 via email

1 similar comment
@Jail0910
Copy link

Jail0910 commented Jun 13, 2022 via email

@cg126
Copy link

cg126 commented Jun 13, 2022

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

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

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

@zhangxiaowe
Copy link

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

@zhangxiaowe
Copy link

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

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

你会了吗

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

@Jail0910
Copy link

Jail0910 commented Jul 4, 2022 via email

1 similar comment
@Jail0910
Copy link

Jail0910 commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests