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,state,sx,sy,ex,ey,sen,time,thd
where
n is the motion region started from 1,
state is the state of this motion region. If it is 1, this motion is enabled. If it is 0, this motion region is disabled.
(sx,sy) is the coordinate in pixel of the left-top corner of the motion region.
(ex,ey) 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 0~300.
thd is the the percentage of motion triggered microblocks 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( (ex<=ImageWidth) && (ey<=ImageHeight) && (sx <= ex) && (sy <= ey) ) then motion region is correct.

The motion region was divided into several microblocks (16x16 pixels in a motion block). Every microblock has it own calculation of motion detection. This URL gives an threshold of the number of motion triggered microblocks in the motion region. For example, there are 200 microblocks in a motion region and the threshold of the percentage of motion trigger microblocks is set to 10. The motion detection will be triggered when the number of motion triggered microblocks 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,state,sx,sy,ex,ey,sen,time,thd
where
n is the motion region started from 1,
state is the state of this motion region. 0: disable, 1: enable
(sx,sy) is the coordinate in pixel of the left-top corner of the motion region.
(ex,ey) 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 and the range is 0~300
thd is the threshold of the percentage of motion triggered microblocks in the motion region and the range is 0~100

Attribute

Return of Message

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

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

Applicability

Status

Valid

See Also

MOTION_STATUS, MOTION_ENABLED, MOTION_SETTING, MOTION_SENSITIVITY

MOTION_ENABLED, MOTION_CONFIG_GET, MOTION_SENSITIVITY, MOTION_TIMER, MOTION_OBJ

Example

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

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

Back to

HOME, MPEG4 CGI, ENCODER CGI