MOTION_CONFIG

Description

> Set the motion configuration to the specific motion region.

> This URL will not take effect if the MOTION_ENABLED=0x00.

> If there is no input arguments, it will return motion configurations of all motion region. The format of input argument or return message is

> n,ex,ey,sx,sy,sen,time,threshold
> where
> n is the motion region started from 1,
> (ex,ey) is the coordinate in pixel of the left-top corner of the motion region.
> (sx,sy) is the coordinate in pixel of the right-button corner of the motion region
> sen is the sensitivity of the motion region and the range is 0~100.
> time is the motion timer in unit of second and the range is 1~300. threshold is the percentage of the moving micro-blocks in the motion region.

> The motion timer means the time interval started from a motion trigger (in control session) does not have motion trigger again. In other words, the remote host will not receive two successive motion triggers in control session during the motion time interval. Note that the motion trigger in video B2 data will not be affected by this timer.

> The motion region starts at the (0,0). The motion region was checked by following formula.
> if( (sx<=ImageWidth) && (sy<=ImageHeight) && (sx <= ex) && (sy <= ey) ) then motion region is correct.

> The motion region was divided into several micro-blocks (16x16 pixel in a motion block). Every micro-block has it own calculation of motion detection. The threshold is of the percentage of number of motion triggered micro-blocks in the motion region. For example, there are 200 micro-blocks in a motion region and the threshold is set to 10. The motion detection will be triggered when the number of motion triggered micro-blocks is higher than 20 in this region.

> If the CHANNEL=n was not set with this URL to the Multi-Channel device, this command is read-only command and the CHANNEL 1 video server's MOTION_CONFIG configuration will be returned. If the CHANNEL 1 video server does not connect to the router, the error message will be returned.

Input Argument

> n,ex,ey,sx,sy,sen,thd
> where
> n is the motion region started from 1,
> (ex,ey) is the coordinate in pixel of the left-top corner of the motion region.
> (sx,sy) is the coordinate in pixel of the right-button corner of the motion region
> sen is the sensitivity of the motion region and the range is 0~100.
> thd is the percentage of the moving micro-blocks in the motion region and the range is 0~100

Attribute

- Readable and Writable
- On-Fly

Return of Message

- Read Operation

> MOTION_CONFIG='1,0,0,0,0,0,1,10'
> MOTION_CONFIG='2,0,0,0,0,0,1,10'
> MOTION_CONFIG='3,0,0,0,0,0,1,10'

- Write Operation

> OK: MOTION_CONFIG='1,50,50,100,100,80,5,10'
> or
> ERROR: MOTION_CONFIG='1,50,50,100,100,5,10'

Applicability

- EPL Platform : All Encoders
- PlatfotmT : All Encoders
- Multi-Channel Encoder : 4CH or 16CH Video Servers

Status

> Valid

See Also

- In mpeg4 CGI

> MOTION_STATUS, MOTION_ENABLED, MOTION_SETTING, MOTION_SENSITIVITY

- In encoder CGI

> MOTION_ENABLED, MOTION_CONFIG_GET, MOTION_SENSITIVITY, MOTION_TIMER, MOTION_OBJ

Example

- Read Operation

> http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&MOTION_CONFIG
> or
> http://ip:port/cgi-bin/cmd/encoder?MOTION_CONFIG

- Write Operation

> http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&MOTION_CONFIG=1,50,50,100,100,80,5,10
> or
> http://ip:port/cgi-bin/cmd/encoder? MOTION_CONFIG=1,50,50,100,100,80,5,10

Back to

> HOME, MPEG4 CGI, ENCODER CGI