Post on 08-Jan-2016
description
. . . M A K E Y O U R N E T W O R K S M A R T E R
Axis Technical Presentation
Ian Qvist
Agenda
Advanced Technical Presentation
•Introduction Axis 205 DNS function
•Introduction Camera Electronics and Optics
•HTTP – API command set
•Customized Web page with Axis Camera
•I/O control
•Scripting possibilities in Axis Camera
AXIS Dynamic DNS
AXIS Dynamic DNS
AXIS Dynamic DNS
Camera Electronics and Optics
Compression CPU
Flashmemory
DRAM
EthernetInterface
Camerafunctions
Lens Optical filter Image sensor
Introduction to cameras
A video sensor (CCD or CMOS) capture the light to create an electric signal
CCD size comp.
to:H=12.8V=9.6D=16
1"H=8.8V=6.6D=11
2/3"
H=6.4V=4.8D=8.0
1/2" H=4.4V=3.3D=5.5
1/3" H=3.2V=2.4D=4.0
1/4"
1/5 1/6”
CCD size
CCD size reduction helps: Smaller cameras because of smaller optics Reduction of sensor price Sensitivity constant or increased
CCD size reduction is helped by: Improvement of manufacturing processes
Clean rooms
CCD technology Hyper HAD OCL
Sony Micro lens technology improved sensitivity and reduced smear
80-100%of light captured by pixel -30dB Smear
+100% sensitivity compared to HAD
1 CCD Camera
Colour CCD
Each Pixel has a Colour Filter
B/W CCD
Lens, first in the camera
Optics – Lens• f value is specifying the field of view, trough above
formula we can calculate what f value we need• F is the value of the iris and is telling us how light
sensitive the lens is, number should be as low as possible
Let´s build a Camera
IR-Filter• Is letting visible light go through and is stopping IR.• In a color camera there is always IR filter but
normally not on b/w. Day and night color cameras is changing between day and night by taking the IR filter on or off.
IR-filter
Let´s build a Camera
Image Sensor• On high quality cameras the sensor is a CCD on low-
end it´s C-MOS• 752x582 is the amount of pixel and it is not equal to the
resolution but, it is the maximum theoretical resolution so it have substantial impact on picture quality, should be as high as possible
IR-Filter CCD
Let´s build a Camera
AGC (Automatic Gain Control)• If there is not enough of light, this circuit will amplifying
the signal to a sufficient level. This is making the picture brighter but have a disadvantage in increase noise
• Function is normally automatic but in more advanced cameras it can be switch off
IR-Filter CCD AGC
Let´s build a Camera
A/D converter• Signal from CCD is analogue and AGC have to be
analogue but from now on the signal will be digital trough Analogue/Digital conversion
IR-Filter CCD AGC A/D converter
Let´s build a Camera
Digital Signal Processor• Control: Iris, Shutter, AGC, White balance, Back
light compensation• Create the color• Making picture artificial sharp by Detail
IR-Filter CCD AGC A/D converter DSP
Iris
Let´s build a Camera
Memory• Is keeping the picture until it is ready to be send
IR-Filter CCD AGC A/D converter DSP
D/A converter
Video out
Memory
Iris
Let´s build a Camera
Ethernet interface• Is where the data is packed for TCP/IP
IR-Filter CCD AGC A/D converter DSP
D/A converter
Video out
Memory Ethernet interface
RJ45 TPIris
Let´s build a Camera. However!!!
AXIS using it´s core technology to make network cameras.
• ARTPEC • ETRAX, (Ethernet Token Ring, Axis)
ARTPEC ETRAXIR-Filter CCD
RJ45 TP
AGC A/D converter DSP
Compression
Ethernet interfaceIris
Memory
HTTP – API introduction
HTTP commands, Web design
•Understand camera HTTP commands.
•Seek HTTP command in manual and use these.
•Understand HTML structure.
•Make own HTML Web page.
•Construct own camera Web page on Web Server.
•Construct own camera Web page placed in camera.
•HI-HIT Web server
HTTP command in URL
URL address
HTTP command with parameters
? = delimiter to parameters & = delimiter to the next parameter.
Compression = 0 no compressionCompression = 100 max compression
HTML commands
http://www.w3.org/MarkUp/Guide/
<html>
<head> <title>New Page 1</title> </head>
<body> your code here </body>
</html>
HTML tags
title>My first HTML document</title>
<h1>An important heading</h1> <h2>A slightly less important heading</h2>
<p>This is a paragraph.</p>
<img src=“axis.jpg" width="200" height="150">
This a link to <a href=“my_page.html">My best page</a>.
<font color="#FF0000">hello in red</font><b> bold </b> <br> = new line
Camera Web page
1. Go to demo
2. Right click on white area
3. Click Source
Camera Web page HTML code
Enter camera IP address
You may change as you wish
Only camera resolution to be given
HI – HIT Web Server
One FTP stream
Thousands connectionsto Internet
Read the entire manual on following link:http://www.axis.com/techsup/cam_servers/tech_notes/live_video_iis.htm
HI –HIT configuration
Create the image directory on the Web server.Example: c:\inetpub\ftproot\liveCreate a Web Server alias (virtual directory) and use this as the image path in the Web pageExample: http://[WebServer]/live/
Get the LiveImg.dll and copy it to the "execute" directory in your Web server file tree (typically c:\inetpub\wwwroot\cgi-bin if you are using Microsoft IIS/PWS).
a) Configure Web Server
b) Configure Camera to FTP transfer
HI – HIT modification of Camera stream
Change these Parameters in your HTML code:
path: The image path (i.e. /live/image.jpg).fps | fpm: Frames/second or frames/minute.duration: For how many seconds the images should be pushed to the client.timeout: The image feed stops after timeout seconds if the image has not been updated.
Examples:Deliver 3 images/second during 60 seconds. Stop after30 seconds if the image has not been updated (default parameter values):http://<web_server>/cgi-bin/liveimg.dll?path=/live/image.jpg
Axis Camera I/O Control
Layout with I/O control
Layout with Output Buttons
HTTP I/O
Check Input
Activate Output
Note: camera returns status -> web browser get white
Scripting in Axis Camera
File system and memory
/ (root)
bin/
dev/
var/ (/tmp/var)
tmp/
etc/ (/mnt/flash/etc/)
usr/
mnt/
proc/
lib/ROMFS (read only)bin/ – built-in applicatinons, executeable filesdev/ – device fileslib/ – C-libraries used by applicationsproc/ – process informationusr/ – built-in web pages, cgi’s, scripts
JFFS (read/write)Configuration files, task.list, custom scripts, custom web
RAMFS (read/write)Temporary files, image buffer
Built-in editor – editcgi
http://<IP address>/admin-bin/editcgi.cgi?file=<file>
Edit files, create new files, browse the file system
FTP and telnet
FTP Get files Put files Set permisson on files (chmod 755)
Create directories
Telnet (enable telnet in the file /etc/inittab)
Run scripts/applications Run shell commands
Create/delete directories/files Set permissions on files
. . . M A K E Y O U R N E T W O R K S M A R T E R
Built-in applications
Built-in applications – bufferd
Pre-Buffer
Post-Buffer
The pre-buffer is continuously storing images in FIFO-order; whereby the latest image overwrites the eldest
On ’stop’, the pre-buffer stops. The post-buffer is then filled with the pre-specified number of images.
When the last image has been saved a status file is created.
Stop!
Capture images and store them on the RAM-disk (/tmp)
Built-in applications – smtpclient
Send e-mails with attachment
Built-in applications – sftpclient
FTP server
Upload images to an FTP server
Built-in applications – shttpclient
Open an HTTP connection Internally to local host (127.0.0.1) Externally to a remote Web server
Built-in applications – parhandclient
Parameter handler Set parameters Get parameters to a file as different
types
NAMEVALUE:
root.Network.IPAddress=”10.13.17.76”
RAW:
10.13.17.76
Built-in applications – alarm
Send a TCP message to a remote host
Built-in applications – logger
Write messages to a log file
Output example in /var/log/messages:Oct 10 08:13:14 AxisProduct myScript: Up and
running
. . . M A K E Y O U R N E T W O R K S M A R T E R
utask & task.list
utask & (user.)task.list
init
utask
/bin/utask
/etc/task.list/etc/user.task.list
Trigger appTrigger script
/etc/inittab
Task scheduler
Task.list – events
Trigger the script or application ... by time by date by boot by digital input by motion by video input (video servers)
. . . M A K E Y O U R N E T W O R K S M A R T E R
Custom web pages
Custom web pages
Files resident in /etc/httpd/html/ can be viewed from the URL http://<IP address>/local/
boa.conf
Edit the boa.conf file resident in /etc/httpd/conf/
Set the default path to your own filesAlias /index.html /etc/httpd/html/index.htmlAlias / /etc/httpd/html/
Create a CGI directorySriptAlias /local/scripts/ /etc/httpd/html/scripts/
Note! The files resident in the scripts directory must be executable
Questions and Answers