Axis Technical Training

Download Report

Transcript Axis Technical Training

... MAKE
YOUR
NETWORK
SMARTER
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
Flash
memory
Camera
functions
Compression
CPU
DRAM
Lens
Optical filter
Image sensor
Ethernet
Interface
Introduction to cameras
A video
sensor (CCD or CMOS)
capture the light to create an electric
signal
CCD size comp.
to:
1"
2/3"
H=8.8
V=6.6
D=11
H=12.8
V=9.6
D=16
1/3"
1/2" H=6.4
V=4.8
D=8.0
1/5
H=4.4
V=3.3
D=5.5
1/6”
1/4"
H=3.2
V=2.4
D=4.0
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
B/W CCD
Colour CCD
Each Pixel has a Colour Filter
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
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.
Let´s build a Camera
IR-Filter
CCD
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
Let´s build a Camera
IR-Filter CCD
AGC
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
Let´s build a Camera
IR-Filter CCD
AGC
A/D converter
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
Let´s build a Camera
IR-Filter CCD
AGC
A/D converter
DSP
Iris
Digital Signal Processor
•
•
•
Control: Iris, Shutter, AGC, White balance, Back
light compensation
Create the color
Making picture artificial sharp by Detail
Let´s build a Camera
IR-Filter CCD
AGC
A/D converter
DSP
Memory
Iris
Video out
D/A converter
Memory
• Is keeping the picture until it is ready to be send
Let´s build a Camera
IR-Filter CCD
AGC
A/D converter
DSP
Memory
Ethernet interface
RJ45 TP
Iris
Video out
D/A converter
Ethernet interface
• Is where the data is packed for TCP/IP
Let´s build a Camera. However!!!
IR-Filter CCD
ARTPEC
ETRAX
RJ45 TP
Iris
AGC
A/D converter
DSP
Ethernet interface
Compression
Memory
AXIS using it´s core technology to make
network cameras.
• ARTPEC
• ETRAX, (Ethernet Token Ring, Axis)
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 compression
Compression = 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
2. Right click on white area
1. Go to demo
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
Thousands connections
to Internet
One FTP stream
Read the entire manual on following link:
http://www.axis.com/techsup/cam_servers/tech_notes/live_video_iis.htm
HI –HIT configuration
a) Configure Web Server
Create the image directory on the Web server.
Example: c:\inetpub\ftproot\live
Create a Web Server alias (virtual directory) and use this as the image path in the Web page
Example: 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).
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 after
30 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/
lib/
proc/
mnt/
ROMFS (read only)
bin/ – built-in applicatinons, executeable files
dev/ – device files
lib/ – C-libraries used by applications
proc/ – process information
usr/ – built-in web pages, cgi’s, scripts
usr/
etc/ (/mnt/flash/etc/)
JFFS (read/write)
tmp/
RAMFS
var/ (/tmp/var)
Configuration files, task.list, custom scripts, custom web
(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
... MAKE
YOUR
NETWORK
SMARTER
Built-in applications
Built-in applications – bufferd
Capture images and store them on the RAM-disk (/tmp)
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 prespecified number of images.
When the last image has been saved a
status file is created.
Built-in applications – smtpclient
Send e-mails with attachment
Built-in applications – sftpclient
Upload images to an FTP server
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
... MAKE
YOUR
NETWORK
SMARTER
utask & task.list
utask & (user.)task.list
init
/bin/utask
/etc/inittab
Task scheduler
utask
Trigger app
Trigger script
/etc/task.list
/etc/user.task.list
Task.list – events
Trigger
-
the script or application ...
by time
by date
by boot
by digital input
by motion
by video input (video servers)
... MAKE
YOUR
NETWORK
SMARTER
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 files
Alias /index.html /etc/httpd/html/index.html
Alias / /etc/httpd/html/
- Create a CGI directory
SriptAlias /local/scripts/ /etc/httpd/html/scripts/
Note! The files resident in the scripts directory must be executable
Questions and Answers