请帮助我......我想知道如何编写背景扣除代码

发布于 2024-09-18 05:09:56 字数 153 浏览 4 评论 0原文

我刚刚开始使用 OpenCV。我遇到了这个问题,我试图找到该代码的来源。有什么想法吗?

I'm just getting started with OpenCV. I came across this question, and I'm trying to find where that code came from. Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

左耳近心 2024-09-25 05:09:56

如果您没有背景的参考图像,那么您可以尝试对前 n 帧进行平均,并使用此类结果图像作为参考。这个数字 n 可以是 20 或类似的值,如果场景不太复杂的话应该足够了。我建议您阅读 OpenCV 官方书籍中有关背景扣除的章节(http://www .amazon.com/Learning-OpenCV-Computer-Vision-Library/dp/0596516134),因为还有一些其他类似的技术。

If you don't have reference image of the background then you could try to make an average of first n frames and use such resultant image as a reference. This number, n, could be 20 or similar and it should be enough if the scene isn't too complex. I recommend you to read a chapter about background subtraction in official OpenCV book (http://www.amazon.com/Learning-OpenCV-Computer-Vision-Library/dp/0596516134) as there are some of other similar techniques presented.

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