buy Pro
 
 
 
Navigation

Follow AbelCam
 Send to
 
Licenses
Opinions
Thanks again for writing such a nice program!
I am so impressed. FTP runs without missing a beat ... Something I have NEVER seen before from a cam program. Usually I get a few images undersize every day or the ftp fails a few times during the day. NOT with your program it runs flawless. Another thing is the quality of the ftp images is much better than my old software, yet the images are about 1/8 the size.... Just gain gain gain ....

 Ken Carpenter  more>>

 

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.
AbelCams Server Side Includes 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.