All AbelCam functionality has been terminated October 8th 2019
 
 
 
Navigation

Edit detail for Pan Tilt Zoom revision 3 of 8

1 2 3 4 5 6 7 8
Editor: sse
Time: 2010/08/31 15:34:27 GMT+2
Note:

added:
When the move is completed, AbelCam returns a page informing what has been done.
To configure the page to be returned, put a file named **movedone.html** in the wwwroot folder. AbelCam "SSIs":/en/documentation/webserver/ServerSideIncludes are available for that html file


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

When the move is completed, AbelCam returns a page informing what has been done. To configure the page to be returned, put a file named **movedone.html** in the wwwroot folder. AbelCam "SSIs?":/en/documentation/webserver/ServerSideIncludes? are available for that html file

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
If V has a sign (+/-), the value is relative, it will be added to the current zoom value

example:
http://localhost:8080/zoom0-1.5 zooms cam 1 to 1.5
http://localhost:8080/zoom0-0.5 decrements zoom by 0.5, new value 1.0
http://localhost:8080/zoom0-+1 increments zoom by 1.0, new value 2.0

If the input resolution = output resolution, a zoom value of 1.0 shows the whole image, lower values (if permitted by the zoom configuration) will create a black frame around the image.