当前注册人数107774人 邮箱: 密码: 注册新用户 忘记密码
首页 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个附件,已经成功下载1027次)

最值得关注的外文源代码

Motion Detection Algorithms
SilverLight Tutorial Video Download (Chinese)
Video Uploader to SQL Server Control
Web Conference
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论241次,此处显示最近20次评论! 查看所有评论

fhj  2010年03月12日
学习
dly16-406  2010年03月09日
下载了 很感谢 看看
mars  2010年03月08日
谢谢啦,
sdygq  2010年03月07日
谢谢了
lixcyy  2010年02月26日
不懂
一介路人  2010年01月22日
终于下载下来了, 哈哈,学习学习
tinian  2010年01月18日
真的不错啊,我正在做这方面的论文,太感谢你了!!!
mahong2020  2010年01月10日
只有登录后才可以下载,每次都是这一句
mahong2020  2010年01月10日
不错
mahong2020  2010年01月10日
blueice  2010年01月06日
正在寻找中,下载了。谢谢
frdream  2009年11月28日
谢谢了
anthem  2009年11月12日
e
prcruiser  2009年10月03日
谢谢
地狱伏龙  2009年09月26日
zdy751216  2009年09月14日
还要加另外的库吗
mylwzop  2009年09月09日
不好用
hq  2009年09月04日
能否提供用户感兴趣的部分的交互选择?
wzj  2009年09月04日
ahao
夏兰朵  2009年08月27日
要怎么样才能拿到积分啊。。。
字数在300字内
请如实评论
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved   免责声明
京ICP备08011023号