BagLAN Bilgisayar Ve Iletisim Sistemleri
   

Teknik Not: Canlı tek görüntü ( Snapshot)           Axis
 


Burada verilen bilgiler aşağıdaki ürünler ve sürümler için geçerlidir:

  • AXIS 2100/2120/2400/2401/2420  F/W sürüm 2.12'den ve AXIS 2400+/2401+  F/W sürüm 3.01'dan itibaren geçerlidir.

Özet
Bu sayfada, Axis Network Kamera'dan gelen tek bir canlı görüntünün (snapshot)  web sayfasına aktarılması anlatılmaktadır.

Açıklama
Bazı
web tarayıcıları cache belleklerinde görüntüyü,  html ve tekst bilgilerinden farklı olarak saklarlar. Kaynaktan gelen görüntülerin değişip, değişilmediğine bakılmaksızın  cache bellekte saklanılması söz  konusudur. Axis Network kameralar daima canlı görüntü vermesine rağmen bazı tarayıcılarda görüntüyü içeren sayfalara geri döndüğünüzde eski görüntüler ile karşılaşırsınız. Aşağıdaki örnekte bu problemi ortadan kaldırmak için bir CGI parametresi kullanılmıştır. HTML sayfası ayrıca bir meta tag içermekte olup, bu özellikten dolayı html sayfası her 30 saniyede bir tekrar yüklenmektedir.

Örnek

<html>
<head>
<META http-equiv="Refresh" content="30">
<!-- The Meta tag above makes this page refresh every 30 seconds -->
<!-- Change the number 30 into your desired refresh rate or remove this -->
<!-- Tag if you do not want the page to refresh automatically -->

<title>JPG Image Demo</title>
</head>
<body>
<center>
<h2>JPEG image</h2>

<!-- Cut from here to the end of image display comment -->
<!-- Note: If you do not see a JavaScript below in the view source window you must -->
<!-- first save the html file from your browser, then open the saved -->
<!-- file in a text editor, for instance Notepad.-->

<SCRIPT LANGUAGE="JavaScript">
// Set the BaseURL to the url of your camera
// Example: var BaseURL = "http://172.21.1.122/";

var BaseURL = "http://[myCamera]/";

// The two following lines need to be changed if an AXIS 2400/2400+ is used:

var Camera = ""; // If you use an AXIS 2400/2400+, comment away this line by inserting "//"
// var Camera = "n"; // Change n to the Video source used in the AXIS 2400/2400+ and remove "//"

// Go to the camera used and remove the "//" in front of the ImageResolution to be used.
// Note that only one can be enabled.

// AXIS 2100
// var ImageResolution = "320x240";var DisplayWidth = "320";var DisplayHeight = "240";
// var ImageResolution = "640x480";var DisplayWidth = "640";var DisplayHeight = "480";

// AXIS 2120/2400/2400+/2401/2401+/2420 PAL
// var ImageResolution = "352x288";var DisplayWidth = "352";var DisplayHeight = "288";
// var ImageResolution = "704x576";var DisplayWidth = "704";var DisplayHeight = "576";

// AXIS 2120/2400/2400+/2401/2401+/2420 NTSC
// var ImageResolution = "352x240";var DisplayWidth = "352";var DisplayHeight = "240";
// var ImageResolution = "704x480";var DisplayWidth = "704";var DisplayHeight = "480";


// No changes required below this point
var File = "axis-cgi/jpg/image.cgi?resolution=" + ImageResolution;
if (Camera != "") {File += "&camera=" + Camera;}
theDate = new Date();
var output = "<IMG SRC=\"";
output += BaseURL;
output += File;
output += "&dummy=";
output += theDate.getTime().toString(10);
// The above dummy cgi-parameter enforce a bypass of the browser image cache.
output += "\" HEIGHT=\"";
output += DisplayHeight;
output += "\" WIDTH=\"";
output += DisplayWidth;
output += "\" ALT=\"Live Image\">";
document.write(output);
</script>
<!-- End of image display part -->
</body>
</html>

 


Bu tanımların sisteminizde oluşturabileceği değişikliklerden dolayı Axis ve BağLAN hiç bir sorumluluk kabul etmez. Detaylı uygulama için sistem yöneticinize danışınız.  


 

 
 


Axis Türkiye Distribütörü
Copyright © 2005 BağLAN Bilgisayar ve İletişim sistemleri
Grafik ve Web tasarımı BağLAN Bilgisayar Bünyesinde hazırlanmıştır.
İsim ve Markalar ilgili firmaların tescilli ürünleridir
IP kamera çözümleri
Document content, © Axis Communications, All Rights Reserved
www.baglan.com.tr Anasayfa BagLAN Bilgisayar Hakkinda Her türlü konu hakkinda bize yazin