MOTION_CONFIG_GET

 

Description

Read the Motion Configuration by motion region basis.

The return message format is almost the same as the format of MOTION_CONFIG input argument without motion region index.

If the CHANNEL=n was not set with this URL to the Multiple Channel Video Encoders, the CHANNEL 1 MOTION_CONFIG_GET configuration will be returned. If the CHANNEL 1 module does not connect to the router, the error message will be returned.

Input Argument

n
where
n is the motion region index started from 1.

Attribute

Return of Message

Format of the Return Message

n,state,sx,sy,ex,ey,sen,time,thd
where
n is the motion region started from 1. It is the motion region requested by this URL.
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 1~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 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.

Special Note:
There is no "OK:" in the return message in this URL.
The "ERROR: invalid argument" will be returned if the input motion region n is out of motion region index range.

Return Message of MOTION_CONFIG_GET=1 could be MOTION_CONFIG_GET='1,0,0,0,0,0,0,1,10'

Applicability

Status

Valid

See Also

MOTION_STATUS, MOTION_ENABLED, MOTION_SETTING, MOTION_SENSITIVITY

MOTION_ENABLED, MOTION_CONFIG, MOTION_SENSITIVITY, MOTION_TIMER, MOTION_OBJ

Example

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

Back to

HOME, MPEG4 CGI, ENCODER CGI