CGI/Generic Driver Commands
48
z
Pan Tilt and Zoom Control and Preset Position
To control the Pan, Tilt, and Zoom behavior of a Sony
camera, the following PTZ control URL is used.
Method:
GET/POST
Syntax:
control PTZ behavior
http://<
servername>/cgi-bin/
control?<
parameter>=<value>[&<parameter>=
<
value>... ]
with the following meanings
<parameter>=<value>
port=<int>
camera=<int>
hsrcamera=<int>
whoami=<string>
move=<string>
pan=<float>
tilt=<float>
zoom=<int>
rpan=<float>
rtilt=<float>
rzoom=<float>
rfocus=<float>
Values
1, 2
1 .. 4
1..16
<any
value>
home
up,
down,
left,
right,
upleft,
upright,
downleft,
downright
-180.0 - 180.0
-180.0 - 180.0
1 - 999
-360.0 - 360.0
-360.0 - 360.0
-999 - 999
-999 - 999
Description
The COM port is selected with this
parameter. If omitted, the camera
parameters is used.
Selects the source camera. If
omitted, the default camera is used.
Selects the HSR camera if HSR is
used.
Returns the name of the configured
driver.
Moves the device to the home
position for Visca.
Moves the device to preset position
home1, home2, home3 or home4 for
Kalatel.
Moves the device approx. 5 degrees
in the specified direction for Visca.
Moves the device in the specified
direction for Kalatel.
Pans the device relative to the
centre position.
Not used for Kalatel.
Tilts the device relative to the
centre position.
Not used for Kalatel.
Zooms the device n steps relative to
the wide position.
Not used for Kalatel.
Pans the device relative to the
current position.
Tilts the device relative to the
current position.
Moves zoom. Positive values
means zoom in and negative values
means zoom out. Only used for
Kalatel.
Moves focus. Positive values means
focus near and negative values
means focus far. Only used for
Kalatel.
CGI/Generic Driver Commands
The following CGI parameter descriptions are
intended to help administrators create applications, and
are available only in English. Refer to “Settings” (page
11) for usual setting methods.
x
CGI Parameter
This part describes the CGI support in the video
network station.
z
Image Requests
Request a JPEG image (snapshot) with specified
properties.
Method:
GET
Syntax:
request for JPEG image with specified
properties
Note:
image.jpg should be replaced “fullsize.jpg” or
“hugesize.jpg”
http://<
servername>/cgi-bin/
<
image.jpg>[?<parameter>=<value>[&<parameter>
=<
value>...]]
with the following parameters and values
Example:
a Fullsize image from camera 1 with
compression of 25
http://myserver/cgi-bin/
fullsize.jpg?camera=1&compression=25
<parameter>=<value>
camera=<int>
compression=<int>
colorlevel=<int>
clock=<int>
date=<int>
motion=<int>
Values
1 .. 4
0 - 100
0 - 100
0, 1
0, 1
0 - 65400
Description
Selects the source camera.
Adjusts the compression level of
the image. Higher value
corresponds to higher compression,
i.e. lower quality and smaller image
size.
Sets level of color or grayscale.
0 = grayscale, 100 = full color.
Shows/hides the time stamp.
0 = hide, 1 = show
Shows/hides the date.
0 = hide, 1 = show
Number of streaming images.
0 means forever