使用Opencv使用相机进行运动检测 [英] motion detection with a camera using Opencv

查看:217
本文介绍了使用Opencv使用相机进行运动检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个旨在使用OpenCV用相机检测运动的项目
该项目的第一部分是使用固定摄像机检测运动.

请帮帮我

非常感谢

I am doing a project which aims to detect motion with a camera using OpenCV
the first part of the project is to detect motion with a fixed camera.

Please help me

Thanks a lot

推荐答案

您可以使用后台方法.从视频中提取背景,并使用当前图像减去背景.如果有东西在移动,您可以通过这种方式找到.而且OpenCv可以构建有助于您使用的背景,还具有减号方法.
You can use background method. Abstract the background from the vedio and use current image minus the background. If there is somethins is moving, you can find in this way. And OpenCv has funtion to build the background which could help you and also has the minus method.


这个问题在这样的论坛中是不可能回答的. (通过Google)对此主题进行一些研究,您会发现许多示例和建议.然后,您将需要使用这些知识来构建您的解决方案.当您对代码的特定领域有技术疑问时,请回到此处,其他人将尽力为您提供帮助.
This question is impossible to answer in a forum like this. Do some research into this subject (via Google) and you will find many examples and suggestions. You will then need to use that knowledge to build your solution. When you have technical questions with specific areas of your code then come back here and people will try to help you.


这篇关于使用Opencv使用相机进行运动检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆