All AbelCam functionality has been terminated October 8th 2019
 
 
 
Navigation

Edit detail for Pan Tilt Zoom revision 1 of 8

1 2 3 4 5 6 7 8
Editor: sse
Time: 2009/10/30 19:36:41 GMT+1
Note:

changed:
-
<h1>Tilt/Pan Control</h1>
<p>you can control the supported PTZ devices </p>
<p>use the following links:</p>
<h3>Directions</h3>
<p>direction followed by number of steps</p>
<p><b>up</b><br>
<a href="http://localhost:8080/up-2">http://localhost:8080/up-2</a></p>
<p><b>down</b><br>
<a href="http://localhost:8080/down-5">http://localhost:8080/down-5</a>
</p>
<b>left</b><br>
<a href="http://localhost:8080/left-5">http://localhost:8080/left-5</a>
<p>
<b>right</b><br>
<a href="http://localhost:8080/right-3">http://localhost:8080/right-3</a></p>
<p>
<b>home</b><br>
<a href="http://localhost:8080/home-0">http://localhost:8080/home-0</a></p>
<p>
<b>absolute position</b><br>
http://localhost:8080/pos-pan,tilt<br>
</p>
<p>&nbsp;</p><p>Examples:</p>

<p><a href="http://localhost:8080/pos-1,1">http://localhost:8080/pos-1,1</a> moves to 1, 1</p>
<p><a href="http://localhost:8080/pos--10,-10">http://localhost:8080/pos--10,-10</a> moves to -10, -10</p>
<p><a href="http://localhost:8080/pos--1,10">http://localhost:8080/pos--10,10</a> moves to -10, 10</p>
<p><a href="http://localhost:8080/pos-10,10">http://localhost:8080/pos-10,10</a> moves to 10, 10</p>
<p><a href="http://localhost:8080/pos-10,-10">http://localhost:8080/pos-10,-10</a> moves to 10, -10</p>
<p><small>if your AbelCam is on, you can try the examples above</small></p>

<h2>Multiple PTZ devices</h2>
If you have multiple PTZ devices, you can address them by passing their number in the URL:<br>
<p><a href="http://localhost:8080/pos-+1,10">http://localhost:8080/pos0-+1,-10</a> moves device #0 to to 1, -10</p>
You may also control more than one device per URL:<br>
<p><a href="http://localhost:8080/pos0-10,10&amp;pos1-50,50&amp;zoom2-1.5">http://localhost:8080/pos0-10,10&amp;pos1-50,50&amp;zoom2-1.5</a><br> moves device #0 to to 10, 10, device #1 to 50,50 and zooms device #2 to 1.5</p>

<h2>!ImageMap</h2>
this sample uses camera #0

<p style="background: #DDDDDD;">
<font color="blue">&lt;a href="/imagemap"&gt;&lt;img src="/current0.jpg?</font><font color="green">&lt;!--#random --&gt;</font><font color="blue">" ismap border="0" alt="Click to move camera"&gt;&lt;/a&gt;</font>
</p>
<p>Clicking on the image transfers the coordinates to AbelCam. The camera will be positioned. After completion of the move, the browser will be redirected to the same page it came from.<br>
The #random include is used to prevent caching in the browser.</p>
<p>The version below creates an image for positioning showing the current PT position as a red dot, just like the Pan Tilt window within AbelCam.<br>
When the image used as imagemap has a different size than the output size of the camera to be positioned, you need to use the size parameter in the imagemap url for the coordinates to be calculated correctly.<br>
If multiple cameras are to be positioned from the same page, a cam=x parameter needs to be provided as well.
</p>
<p style="background: #DDDDDD;">
<font color="blue">&lt;a href="/imagemap?size=160x120"&gt;&lt;img src="/ptzmap.jpg?r=</font><font color="green">&lt;!--#random --&gt;</font><font color="blue">&cam=0&size=160x120" ismap border="0" alt="Click to move camera"&gt;&lt;/a&gt;</font>
</p>
See the imagemap.html file in the wwwroot folder, which should also be available as<br>
<p><a href="http://localhost:8080/imagemap.html">http://localhost:8080/imagemap.html</a>

<h1>Zoom Control</h1>

zoom control is implemented with the /zoom URL.

<p style="background: #DDDDDD;">
http://localhost:8080/zoom<font color="red">X</font>-<font color="red">V</font>
</p>

<font color="red">X</font> = camera number, not required if you're only using one camera<br>
<font color="red">V</font> = zoom value, range limits are defined in the camera <a href="/en/documentation/help/helpform?helpid=22">zoom configuration</a>
<p>
example:<br>
<a href="http://localhost:8080/zoom0-1.5">http://localhost:8080/zoom0-1.5</a>
</p>

Tilt/Pan Control

you can control the supported PTZ devices

use the following links:

Directions

direction followed by number of steps

up
http://localhost:8080/up-2

down
http://localhost:8080/down-5

left
http://localhost:8080/left-5

right
http://localhost:8080/right-3

home
http://localhost:8080/home-0

absolute position
http://localhost:8080/pos-pan,tilt

 

Examples:

http://localhost:8080/pos-1,1 moves to 1, 1

http://localhost:8080/pos--10,-10 moves to -10, -10

http://localhost:8080/pos--10,10 moves to -10, 10

http://localhost:8080/pos-10,10 moves to 10, 10

http://localhost:8080/pos-10,-10 moves to 10, -10

if your AbelCam is on, you can try the examples above

Multiple PTZ devices

If you have multiple PTZ devices, you can address them by passing their number in the URL:

http://localhost:8080/pos0-+1,-10 moves device #0 to to 1, -10

You may also control more than one device per URL:

http://localhost:8080/pos0-10,10&pos1-50,50&zoom2-1.5
moves device #0 to to 10, 10, device #1 to 50,50 and zooms device #2 to 1.5

ImageMap

this sample uses camera #0

<a href="/imagemap"><img src="/current0.jpg?<!--#random -->" ismap border="0" alt="Click to move camera"></a>

Clicking on the image transfers the coordinates to AbelCam. The camera will be positioned. After completion of the move, the browser will be redirected to the same page it came from.
The #random include is used to prevent caching in the browser.

The version below creates an image for positioning showing the current PT position as a red dot, just like the Pan Tilt window within AbelCam.
When the image used as imagemap has a different size than the output size of the camera to be positioned, you need to use the size parameter in the imagemap url for the coordinates to be calculated correctly.
If multiple cameras are to be positioned from the same page, a cam=x parameter needs to be provided as well.

<a href="/imagemap?size=160x120"><img src="/ptzmap.jpg?r=<!--#random -->&cam=0&size=160x120" ismap border="0" alt="Click to move camera"></a>

See the imagemap.html file in the wwwroot folder, which should also be available as

http://localhost:8080/imagemap.html

Zoom Control

zoom control is implemented with the /zoom URL.

http://localhost:8080/zoomX-V

X = camera number, not required if you're only using one camera
V = zoom value, range limits are defined in the camera zoom configuration

example:
http://localhost:8080/zoom0-1.5