38
5. API for Acquiring/Changing Parameters of VN-E4 _
5.6. Motion Detect
Acquiring Motion Parameters of Motion Detect from VN-E4
Format
/api/param?video.input(Number).detection.velocity
Example
When acquiring motion parameters of motion detect for video input channel 1
/api/param?video.input(1).detection.velocity
Example of response
video.input(1).detection.velocity=10&200 OK
Interpretation
Acquire the motion parameters of motion detect. VN-E4 enables motion detect to be adjusted for each of the 4
video inputs. Specify a value between 1 to 4 for the number. A value between 0 to 100 will be returned. The
larger the value, the easier it will be to detect objects moving at high speed. The smaller the value, the easier it
will be to detect slow-moving objects.
Allowed users
admin, operator, user
Setting Motion Parameters of Motion Detect for VN-E4
Format
/api/param?video.input(Number).detection.velocity=data
Example
When setting motion parameters of motion detect for video input channel 1
/api/param?video.input(1).detection.velocity=10
Example of response
video.input(1).detection.velocity&200 OK
Interpretation
Change the motion parameters of motion detect. VN-E4 enables motion detect to be adjusted for each of the 4
video inputs. Specify a value between 1 to 4 for the number. Specify a value between 0 to 100. The larger the
value, the easier it will be to detect objects moving at high speed. The smaller the value, the easier it will be to
detect slow-moving objects.
Allowed users
admin, operator
Acquiring Motion Detect Mask from VN-E4
Format
/api/param?video.input(Number).detection.area
Example
When acquiring the motion detect mask of video input channel 1
/api/param?video.input(1).detection.area
Example of response
video.input(1).detection.area=000102030405060708091011121314151617&200 OK
Interpretation
Acquire the mask of motion detect. VN-E4 enables motion detect to be adjusted for each of the 4 video inputs.
Specify a value between 1 to 4 for the number. 36 ASCII characters will be returned.
The screen of VN-E4 is made up of 12 x 12 = 144 blocks, and mask can be set to on/off for each block. This
information can be represented in 188 bits = 18-byte hexadecimal. (Response is returned in ASCII character
strings.Therefore, 36 characters will be returned.) The bit string will appear as follows when mask is set to off
for the top left block only.
10000000 00000000 00000000 ,,,
Storage in bytes will begin from the LSB and represented in a hexadecimal value as shown below.
01 00 00 ,,,
The hexadecimal value denotes the 18 ASCII characters acquired via this API that are expressed in ASCII
codes. For example, the following character string will be returned when only the top left and bottom right
blocks are masked.
video.input(1).detection.area=010000000000000000000000000000000080
Allowed users
admin, operator, user