如何捕获文件夹中的运动 [英] How to captured motion in a folder

查看:132
本文介绍了如何捕获文件夹中的运动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,首先我要使用运动检测来捕获图像.之后我将调用计时器.请告诉我网络摄像头进行运动检测的代码,然后我将使用计时器.我真的不知道用于运动检测的代码.请帮助我..

dear sir, first i want motion detect to capture images.after i will call the timer.please tell me in code to motion detect by webcamera and i will use the timer. i really don''t know the code for motion detection.please help me..

推荐答案

如果您要说的话,
您将在每个计时器刻度上使用网络摄像头捕获图像
并想知道是否发生了任何运动

然后
您有两张图片,一张用于最后一个计时器滴答,第二张用于当前计时器滴答

将两个图像都转换为二进制值
并比较图像的二进制值(如果不相等),则表明发生了某些运动.

祝您编码愉快!
:)
if you mean to say,
you are capturing images using webcam on every timer tick
and want to know whether any motion is happened

then
you have two images one for last timer tick and second for current timer tick

convert both images in binary values
and compare binary values of images if it''s not equal then it indicates some motion is ocuured.

Happy Coding!
:)


开始阅读本文,学习以下内容:运动检测算法 [ ^ ]
Start reading, learning from this article: Motion Detection Algorithms[^]


这篇关于如何捕获文件夹中的运动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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