vb.net中的运动检测 [英] Motion detection in vb.net

查看:61
本文介绍了vb.net中的运动检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

做项目需要使用网络摄像头来检测运动.代码必须使用Visual Basic.

Hi , doing a project need use a webcam to detect motion . code must be in visual basic.
can any one help me?

推荐答案

由于VB.NET不支持指针,因此您将发现在VB中进行图像处理非常困难.NET.

在该主题上找到的所有示例都将使用C ++或C#,因为它们支持指针,因此可以更快地处理图像数据.

本文 [
Because VB.NET doesn''t support pointers, you''re going to find it very difficult to do image processing in VB.NET.

All examples you find on this subject are going to be in either C++ or C# becuase they support pointers and can process image data much quicker because of that fact.

This article[^] is the best one I''ve seen on motion detection around the site. Notice, everything is in C#, for a reason...


如果您想在.NET中提供帮助,我建议不要说:代码必须在Visual Basic中. ".该代码很可能将使用C#,有时甚至是C ++/CLI,特别是在图像识别等严肃的领域.您不能期望VB.NET中会写很多严肃的东西.微软并不认真对待VB,它一直落后于C#.如果您至少不了解C#,就无法进行任何认真的.NET开发.

您不需要VB.NET,因为.NET中没有语言障碍.您可以在所有VB.NET项目中使用C#项目.

在其他情况下,您将需要使用C ++(或其他本机非托管库)并通过P/Invoke在您的.NET项目中使用它.

现在,您需要查看以下开放源代码库:

AForge.NET,
http://en.wikipedia.org/wiki/AForge.NET [ ^ ],http://www.aforgenet.com/ [^ ];

OpenCV, http://en.wikipedia.org/wiki/OpenCV [ http://opencv.willowgarage.com/wiki/ [ ^ ] ;

VXL, http://en.wikipedia.org/wiki/VXL [ http://vxl .sourceforge.net/ [ ^ ],http://www.vxletech.com/ [ ^ ].

祝你好运,
—SA
If you ever want to help in .NET, I would advice never say: "code must be in Visual Basic". Most likely, the code will be in C#, sometimes in C++/CLI, especially in such serious areas as image recognition. You cannot expect that a lot of serious stuff is written in VB.NET. Microsoft does not take VB seriously, it''s always been well behind C#. You cannot do any serious .NET development if you do not understand at least some of C#.

You don''t require VB.NET as there are not language barriers in .NET; you can use C# projects in all your VB.NET projects.

In other cases, you will need to use C++ (or other native unmanaged libraries) and use it in your .NET projects using P/Invoke.

Now, you need to look in the following Open Source libraries:

AForge.NET, http://en.wikipedia.org/wiki/AForge.NET[^], http://www.aforgenet.com/[^];

OpenCV, http://en.wikipedia.org/wiki/OpenCV[^], http://opencv.willowgarage.com/wiki/[^];

VXL, http://en.wikipedia.org/wiki/VXL[^], http://vxl.sourceforge.net/[^], http://www.vxletech.com/[^].

Good luck,
—SA


这篇关于vb.net中的运动检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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