The first step, was to retrieve the image from camera into Image object. So that it can be displayed or do some processing on it.
Some of the IP cameras have an interface to acquire images or streams. One of the easiest interfaces is giving some steel JPEG images. For example via a simple HTTP request (e.g. http://webcam.mmhk.cz/axis
Here is code snippet to acquire an image from a URI and display in a PictureBox.
<eeSnippet>
//uri resource
Uri uri = new Uri("the uri goes here, e.g. http://webcam.mmhk.cz/axis-cgi/jp
//create a stream using a http web request
System.IO.Stream s =
System.Net.HttpWebRequest.
.GetResponse().GetResponse
//create an image object from stream
Image img = Image.FromStream(s);
//display image in a picture box
this.pictureBox1.Image = img;
</eeSnippet>
Simple and easy!
<eeQuote>Previously published in my blog: blog.mrt-web.com </eeQuote>