Wednesday, February 9, 2011

Vb.net Serial Control

If you are looking to do a serial link to a micro controller in VB.Net I found a couple of great sites with tutorials and downloads:

http://www.innovatic.dk/knowledg/SerialCOM/SerialCOM.htm

and

http://www.dreamincode.net/forums/topic/37361-serial-port-communication-in-vbnet/

Both are great tutorials if you are looking to jump start your project.

Tuesday, February 8, 2011

Robot Vision

My robot vision experimentation so far is not going well. I think I'm expecting too much too soon. I use RoboRealm (http://www.roborealm.com/) which does a pretty good job of color and motion tracking, but if I change lighting condition that will change the way RoboRealm sees objects and colors because the light will be reflected differently which makes it hard to find settings that will work from dusk to dawn.

OpenCV can be a great tool. I downloaded the latest version 2.2 from here: http://sourceforge.net/projects/opencvlibrary/ and to use it more easily with Visual Studio and VB.net I found and downloaded the EMGU openCV .net wrapper from here: http://www.emgu.com/wiki/index.php/Main_Page

Now once you get both installed, the EMGU folder had a sample solution you can open in Visual Studio which gives you sample programs from WebCam to Face Detection and so on. Now the draw backs are the Face Detection sample for VB.Net is written to work with a static image. What I want to do is live video face recognition. One would think combining the sample of the WebCam plus the face detection would be straight forward but so far all I have produced is errors.

My searching on the net have revealed several "so-called" tutorials that give incomplete code samples and wonderfully frustrating videos of people with face detection software working, but never provide enough information to actually reproduce the desired effect.

I think in the long run a robot or AI program would do well to use several sources for video imaging and I'd like to work towards using both RoboRealm and OpenCV to create modules that will give my creations the ability to see and track objects and people but so far it is a task that is easier said than done.