PDA

View Full Version : Security System



marquito0081
January 31, 2005, 18:08:21
I want to use this control for a web application

it's possible??


I need to make a security system for to monitoring since internet, it means that i want to see my program since a browser in other place.

I want to see 4 cameras in the same time, it is possible??

maybe do you have any examples??

it's neccesary to use .net version 7.1? I have the 7.0 version.

If my camera has another functions like to detect movement could I use this functonality of my camera?

If I can't to use this control in a web application how could i do for to monitoring my system since internet???

thank you so mutch for your soon answer.

Stefan Geissler
February 1, 2005, 09:08:52
Hello


I need to make a security system for to monitoring since internet, it means that i want to see my program since a browser in other place.

I want to see 4 cameras in the same time, it is possible??


First of all, you must write an application, that acts like a web server. It sends a HTML page to the browser that downloads the images, that are created by the cameras. If the images from are saved to hard disc, they can be displayed in the HTML page with a simple img src tag ( <img src=http://your.ip.adress/camera1.jpg>)
The HTML page should have a reload script, so the images automatically reloaded. This is controlled by the HTML page in the browser, not in your application. Except you would snap an image at every GET that comes from the browser and save it to hard disc, before sending it.



maybe do you have any examples??

No, i have no samples. But i think, the first step is to find a small web server sample, that can be enhances with one or more IC Imaging Controls.



it's neccesary to use .net version 7.1? I have the 7.0 version.


If you want to use .NET, you must use 7.1



If my camera has another functions like to detect movement could I use this functonality of my camera?


This depends on the WDM driver of the camera.

Stefan Geissler
February 1, 2005, 12:23:23
Hello,

I found a webserver for .NET 7.1 C# that can be used with IC Imaging Control.
http://www.codeguru.com/Csharp/.NET/net_general/article.php/c4603/

It uses an HTML file as follows:


<html>
<head><script type="text/javascript">
<!--
function reload()
{
window.location="http://Your.IP.Here:5050";
}
// -->
</script></HEAD><BODY onload="window.setTimeout('reload()',2000)">
IC Imaging Control in C# Webserver<br>
<img src="test.jpg"></img>
</body>
</html>


IC Imaging Control sames images to "test.jpg" and the browser reloads the HTML page automatically.

Stefan Geissler
February 2, 2005, 08:41:01
Hello,

The simplest way to create a small webcam application is following:
Compile the HTTPSVR sample that comes with the MSDN. This sample is available for VC++ 6.0 too. This sample implements a complete web server for HTTP.
Then use the HTML script of my last post.
Create a small application with IC Imaging Control, that saves in a timer event each second an image into the HTML directory, where the HTML files are saved.

Then you have your own web cam. If you would like to use more than one camera, you may start the image saving application for all cameras and use different image file names for each camera. You only need to extend the HTML file, so all images are displayed.

Stefan Geissler
February 2, 2005, 13:41:40
Hello,

The javascript will not work in IE. It must be changed from
window.location="http://Your.IP.Here:5050";
to
window.location.reload();

marquito0081
February 3, 2005, 20:57:29
THANK YOU SO MUCH FOR YOUR HELP.

I'M GOING TO TRY THE ADVICES.

I'VE PROGRAMED A CONSOLE APPLICATION, BUT I DON'T KNOW HOW TO MONITORE SINCE INTERNET, I'M GOING TO TRY BUT I HAVE ANOTHER QUESTIONS.

IF IT WORKS I HAVE TO PROGRAM AGAIN FOR THE WEB?

PLEASE I CAN'T TO USE THE CODE FOR TO CREATE AN AVI VIDEO WITH MY CONTROL BECAUSE I DON'T KNOW HOW TO ADD MY CODECS INTO THE SOURCE CODE.

DO YOU HAVE ANY EXAMPLE FOR TO CAPTURE AN AVI FILE? IF IT'S POSSIBLE TO SEND A SOURCE ODE THAT CONTAIN VALID CODECS, BECAUSE I CAN'T TO CAPTURE THE AVI BECAUSE I DON'T KNOW WHAT CODECS MY PC CONTAINS.

Stefan Geissler
February 4, 2005, 09:27:02
Hello,

Please see the samples "Capture an AVI File" that reside in the samples directory of your IC Imaging Control installation.

With the hints i gave in my posts, you can not send AVI files. The videos are not streamed. The hints work in this way, that images are taken from the live video stream of the camera. The images are saved into the HTML directory of the web server. The HTML file, that is downloaded by the users through the internet shows the saved images. It also reloads itself each second (see the JAVA script), so you get the impression of a live video.

If you want to provide images from the camera through the internet, i suggest to install the HTTPSVR sample that comes with MSDN. Then you make some simple tries to create a HTML file and try to see it in your browser. I think, this gives you the right impression to proceed.