如何在OpenCV-Contrib-Python中获得KCF Tracker的跟踪信心?
使用
我已经四处搜索,此页面是我可以找到的最接近的: https://github.com/ OPENCV/OPENCV_CONTRIB/PULL/1123 。 I believe maxVal on line 344 in trackerKCF.cpp是我想要输出的变量,但找不到任何实际获取它的功能。
我正在使用OpenCV-Contrib-Python版本:4.5.5.64。
谢谢!
When tracking an object using the KCF Tracker from opencv, is there a way to get the actual confidence value of the tracker outputted?
I have searched around and this page was the closest I could find: https://github.com/opencv/opencv_contrib/pull/1123. I believe maxVal on line 344 in trackerKCF.cpp is the variable I am looking to have outputted but cannot find any functions to actually obtain it.
I am using opencv-contrib-python version: 4.5.5.64.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于某种原因,该值未共享。正如您指出的那样,您可以在OPENCV源中看到该值是在local Max_val变量中计算的,并且不会以任何方式持续或共享。当然,您可以编辑代码以将MAX_VAL保存在某些公共类变量中,然后重新编译,如果您想遇到很多麻烦。
For some reason, that value is not shared. As you pointed out, you can see in the OpenCV source that the value is calculated in a local max_val variable and not persisted or shared in any way. Of course, you could edit the code to save max_val in some public class variable, and then re-compile, if you want to go to that much trouble.