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

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个附件,已经成功下载4787次)

最值得关注的外文源代码

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

delay  2023年05月31日
非常好!很有参考价值!谢谢分享
zhongguohua  2020年10月20日
挺好的,可以用
qq399981143  2020年06月22日
111
xinxinaijiao  2019年10月21日
还没下载,期待下载!!!
hei  2018年04月08日
挺不错的
cdsssendi  2018年01月30日
可以吧
YY  2018年01月28日
楼主为何下载不了
你好外星人  2017年12月16日
感谢分享
linyq89  2017年12月15日
还可以
Masterwayne  2017年09月18日
谢谢楼主分享
zachyuan  2017年09月18日
wangxianwen  2017年09月12日
谢谢楼主分享
venic  2017年09月06日
可以可以
freefly  2017年08月14日
看着效果不错
hahalm  2017年07月14日
可以可以
lulinghui  2017年06月14日
如何下载?
断了的弦  2017年05月31日
666
weng0516  2017年05月21日
谢谢分享,学习一下
haharabbit  2017年04月16日
非常感谢~
jiwy  2017年04月13日
非常感谢
字数在300字内
请如实评论
200万国内源码搜索
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved zhihuishi   免责声明