MOTION_SETTING

Description

> Set the motion configuration to the specific motion region.

> This URL will not take effect if the MOTION_ENABLED=0x00 or it is the QUAD Encoder. In Encoder device, the motion detection function is available in the sensor or/and video encoding engine. This URL will set the motion configuration to the video encoding engine only. Because in QUAD encoder, sensor's motion detection function is used, this URL will not take effect then.

> 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.

> 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_SETTING 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
> 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.

Attribute

- Write Only
- On-Fly

Return of Message

- Write Operation

> OK: MOTION_SETTING='1,50,50,100,100,80'
> or
> ERROR: MOTION_SETTING='1,50,50,100,100,80'

Applicability

- WPL Platform : All Encoders (Not take effect in QUAD encoder)
- EPL Platform : All Encoders
- PlatfotmT : All Encoders
- Multi-Channel Encoder : All Video Servers

Status

> Valid

See Also

- In mpeg4 CGI

> MOTION_STATUS, MOTION_ENABLED, MOTION_SENSITIVITY

- In encoder CGI

> MOTION_ENABLED, MOTION_CONFIG, MOTION_CONFIG_GET, MOTION_SENSITIVITY, MOTION_TIMER, MOTION_OBJ

Example

- Read Operation

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

- Write Operation

> http://ip:port/cgi-bin/mpeg4?USER=Admin&PWD=123456&MOTION_SETTING=1,50,50,100,100,80
> or
> http://ip:port/cgi-bin/cmd/mpeg4? MOTION_SETTING=1,50,50,100,100,80

Back to

> HOME, MPEG4 CGI, ENCODER CGI