如何在OpenCV-Contrib-Python中获得KCF Tracker的跟踪信心?

发布于 2025-01-26 08:36:18 字数 557 浏览 1 评论 0原文

使用

我已经四处搜索,此页面是我可以找到的最接近的: 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

罪#恶を代价 2025-02-02 08:36:18

由于某种原因,该值未共享。正如您指出的那样,您可以在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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文