当前注册人数162856人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB   站内搜索 BBS讨论社区 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

Motion Detection Algorithms

视频中运动检测算法源代码及演示代码

2007年12月13日
C# 2.0, Windows, .NET 2.0, GDI+, VS2005, Arch, Dev
本文实现了在连续视频数据流中几种不同的运动检测算法,他们都是基于当前帧图像和前一帧图像的比较,程序使用了AForge.NET framework库。其中的示例代码支持下面几种视频格式:AVI文件、网路相机的JPEG和MJPEG,本地的采集设备(USB相机等)。
相关知识

感兴趣区域的获得方法:

// create processing filters sequence
FiltersSequence processingFilter = new FiltersSequence( );
processingFilter.Add( new Difference( backgroundFrame ) );
processingFilter.Add( new Threshold( 15 ) );
processingFilter.Add( new Opening( ) );
processingFilter.Add( new Edges( ) );
// apply the filter
Bitmap tmp1 = processingFilter.Apply( currentFrame );

// extract red channel from the original image
IFilter extrachChannel = new ExtractChannel( RGB.R );
Bitmap redChannel = extrachChannel.Apply( image );
//  merge red channel with moving object borders
Merge mergeFilter = new Merge( );
mergeFilter.OverlayImage = tmp1;
Bitmap tmp2 = mergeFilter.Apply( redChannel );
// replace red channel in the original image
ReplaceChannel replaceChannel = new ReplaceChannel( RGB.R );
replaceChannel.ChannelImage = tmp2;
Bitmap tmp3 = replaceChannel.Apply( image );
源代码原文下载:
Motion Detection Algorithms Some approaches to detect motion in a video stream. There are many approaches for motion detection in a continuous video stream. All of them are based on comparing of the current video frame with one from the previous frames or with something that we'll call background. In this article, I'll try to describe some of the most common approaches. In description of these algorithms I'll use the AForge.NET framework, which is described in some other articles on Code Project: [1], [2]. So, if you are common with it, it will only help. The demo application supports the following types of video sources: * AVI files (using Video for Windows, interop library is included); * updating JPEG from internet cameras; * MJPEG (motion JPEG) streams from different internet cameras; * local capture device (USB cameras or other capture devices, DirectShow interop library is included).

源码图片

从本站下载附件及源代码(1个附件,已经成功下载1580次)

最值得关注的外文源代码

Creating Optical Character Recognition (OCR) applications using Neural Networks
SilverLight Tutorial Video Download (Chinese)
Video Uploader to SQL Server Control
Web Conference
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论324次,此处显示最近20次评论! 查看所有评论

xgy761220  2010年09月04日
太感谢了!!
liuerqing850924@163.com  2010年08月31日
很好,谢谢!
tianxingjian_sun  2010年07月29日
谢谢啊
雪中冰雨  2010年06月07日
真的挺好的,谢谢了
cqhxp  2010年05月02日
thank you
jiney03  2010年04月30日
下载不下来怎么回事
jiney03  2010年04月30日
下载不下来怎么回事
tyut  2010年04月25日
超有用,我也在找这个
shuaishuai  2010年04月24日
thanks
na05950111  2010年04月16日
正在找这个
黄建筑  2010年04月10日
谢谢
huilanghuilang  2010年04月08日
thank you
hanshion  2010年03月31日
谢谢分享 学习学习
老猴  2010年03月25日
谢谢分享 学习学习
linwei  2010年03月18日
谢谢分享 学习学习
fhj  2010年03月12日
学习
dly16-406  2010年03月09日
下载了 很感谢 看看
mars  2010年03月08日
谢谢啦,
sdygq  2010年03月07日
谢谢了
lixcyy  2010年02月26日
不懂
字数在300字内
请如实评论
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved   免责声明