使用 emgucv 进行背景扣除的最佳选择?

发布于 2024-08-16 01:31:01 字数 45 浏览 6 评论 0原文

您能建议使用 emgucv 进行背景扣除的好选择吗?我的项目是实时行人检测。

can you suggest a good option for background subtraction using emgucv? my project is real time pedestrian detection.

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

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

发布评论

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

评论(2

心奴独伤 2024-08-23 01:31:01

不确定你是否还需要这个,但是......在 EmguCV 中,如果你有 2 个图像类型 Image 或任何其他类型,称为 img1 和 img2,执行 img1 - img2 确实有效!还有一个叫做 AbsDiff 的函数,我认为它的工作原理是这样的:img1.AbsDiff(img2),你可以研究一下。

如果您已经有背景图片 (img1) 并且有当前帧 (img2),则可以执行上述操作。

Not sure if you still need this, but...in EmguCV, if you have 2 images of say type Image<Bgr, Byte> or any other type, called img1 and img2, doing img1 - img2 does work! There is a function called AbsDiff as well, I think it works like this: img1.AbsDiff(img2), you could look into that.

If you already have the picture of the background (img1) and you have the current frame (img2), you could do the above.

赠佳期 2024-08-23 01:31:01

这很有可能,看看 EMGU 提供的“MotionDetection”示例,这应该可以帮助您入门。

实际上,删除前景的代码实际上被命名为“_forgroundDetector”,它是“_motionHistory”,它表示存储已发生的运动。

该示例包含您需要的一切,如果您在运行时遇到问题,请告诉我,

欢呼

克里斯

参见:从 _capture.QueryFrame() 中删除背景

This is quite possible take a look at the "MotionDetection" example provided with EMGU this should get you started.

Effectively the code that removes the foreground is effectively named "_forgroundDetector" it is the "_motionHistory" that presents stores what movement has occurred.

The example has everything you need if you have trouble running it let me know,

Cheer

Chris

See:Removing background from _capture.QueryFrame()

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