Click here to Skip to main content
12,356,678 members (65,128 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB VB.NET
Hi , doing a project need use a webcam to detect motion . code must be in visual basic.
can any one help me?
Posted 22-Jul-11 5:41am
jeyi557
Comments
Manas Bhardwaj 22-Jul-11 11:44am
   
any effort?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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...
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Comments
Dave Kreskowiak 22-Jul-11 13:09pm
   
Actually, MS takes VB.NET very seriously. They've shown that there are more business projects out there written in VB/VB.NET than C/C++ and C# combined.

They won't be dumping a ton of resources into sharing feature sets and merging existing features between the two languages if they didn't take it seriously.

You might want to leave your bias out of the answers and just stick with the facts next time.
SAKryukov 22-Jul-11 17:45pm
   
Maybe I agree about a bias. However, VB.NET is well behind. There is also a cultural factor, which is just a medical fact: if someone demands "VB.NET only", who is the loser?
--SA
Dave Kreskowiak 22-Jul-11 18:23pm
   
Really? Besides pointer support, how so?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 22 Jul 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100