檔案下載中心
解決方案
常問問題
專業詞彙
產品維修制度

常問問題  
 
 How to get pre-alarm and post-alarm images via the PIXORD event ?

Get Post-Alarm Images
  • In here, we define Post-alarm images are the image after the alarm triggered of the PIXORD Camera server.
  • PIXORD Event system allows the PIXORD Camera server stopping the streaming video transmission until the alarm is triggered for the purpose of saving network traffic.
Pre/Post-Alarm Concept
  • In here, we define Post-alarm images are the image after the alarm triggered of the PIXORD Camera server.
  • PIXORD Event system allows the PIXORD Camera server stopping the streaming video transmission until the alarm is triggered for the purpose of saving network traffic.


The Event Script of Post-alarm
* * * * * RUN:
motion_init -cam 1 -sensitivity 5;
motion_start -cam 1 -interval 50;
%
Set motion detection task on camera 1 in the background with sensitivity 5 and detecting interval to 500ms.


* * * * * M1:
http
-id 1
-interval 100
-duration 1000;
%

When the motion detected on camera 1, the PIXORD Camera server will feed out images which is queued in the buffer to the server-push-image requested client thought HTTP protocol. The transmission will keep on 10000ms with the 1 fps frame rate.

In this script, the PIXORD server will send images to the client with listen id=1. A request command likes below example,

http://root:pass@192.168.1.128/getimage?camera=1&fmt=sif&id=1

The Request of Pre/Post-Alarm
HTTP URL Request Syntax

http://IP/getimage?camera=[1/2/3/4]&fmt=[qsif/sif/full]&id=[0~9]

Where
camera : Specifies the camera source, i.e. 1- 4
fmt : Specifies the image format (HxV), where: qsif = 176x112 (NTSC), sif = 352x240 (NTSC) and full = 704x480 (NTSC)
id : 0~9, Where Identifier to match in event script, if event is started with HTTP action node, then this request will pause until trigger comes and matching id inside the action node.

Note that if script doesn’t start with valid id for specified camera and format, above id setting automatically disable, then continue image will feed out.


Get Pre-Alarm Images
  • In here, we define Pre-alarm images are the image before the alarm detected by the PIXORD Camera server occurs.
  • PIXORD Event system allows you set a buffer to queuing live images in the built-in memory. And auto dump these images to you when the specified event trigger condition occurs.
The Event Script of Pre-Alarm
* * * * * RUN:
buffer_init -cam 1 -fmt sif -imagenum 50;
buffer_start -cam 1 -fmt sif -interval 50 -duration -1;
Create a buffer for channel 1 to store 50 sif size images. And specifies the time interval between every consecutive image to 500ms .


motion_init -cam 1 -sensitivity 5;
motion_start -cam 1 -interval 50;
%

Set motion detection task on camera 1 in the background with sensitivity 5 and detecting interval to 500ms.


* * * * * M1:
http
-id 2
-delay 10
-buffer;
%
When the motion detected on camera 1, the PIXORD Camera server will feed out images which is queued in the buffer to the server-push-image requested client thought HTTP protocol after delay 100 ms. In this script, the PIXORD server will send images to the client with listen id=2. A request command likes below example, http://root:pass@192.168.1.128/getimage?camera=1&fmt=sif&id=2

Get Pre-Alarm Images
In the conclusion, you can combine the above pre/post alarm event scripts as below,

* * * * * RUN:
buffer_init -cam 1 -fmt sif -imagenum 50;
buffer_start -cam 1 -fmt sif -interval 50 -duration -1;


motion_init -cam 1 -sensitivity 5;
motion_start -cam 1 -interval 50;
%

* * * * * M1:
http
-id 1
-interval 100
-duration 1000;
http
-id 2
-delay 10
-buffer;
%



Copyright© 2007, PiXORD Corporation.
is a registered trademark of PiXORD Corporation. All rights reserved.