
Technical Manual
© 2006-2010 by HIKVISION. All rights reserved.
29
int iSlowMotionDetectFps frame interval of low speed motion detection (>13) , the
value of 0 is means there is no need of low speed motion
detection
Explanation:
To adjust motion synthesize sensitiveness, and can adjust the sensitiveness of motion
detection dynamically during encoding. It also decides the sensitiveness of whole DSP
motion synthesizes. It is different from the parameter iThreshold of MotionAnalyze function,
the latter mainly used in analyzing some area‘s motion by host computer. The grade 0 is the
most sensitive and grade 6 is the most insensitive. The recommended value is 2;
Notes: The adaptive function described below is invalid in DS-42xx card.
Please compare the parameter iGrade and 0x80000000 with the OR operator
(iGrade|0x80000000), then the new algorithm will be adopted .With the new algorithm,
the precision of motion detection is greatly improved
Return value:
0—success; -1 – failed;
4.2.51.
int SetupMotionDetection(int channelHandle, RECT *rectList, int iAreas) ;
Parameter:
int channelHandle channel handle
RECT *rectList rectangle array
int iAreas number of rectangle
(
The Max value is 100
)
Explanation:
Set motion detection areas. When receive the data frame of marcblock‘s movement
information (PktMotion Detection), call function MotionAnalyzer which can analyze every
needed detection areas that is set by SetupMotionDetection. If the threshold of some areas
(iThreshold in MotionAnalyzer function) is reached, the finally result will be marked in
returned array (iResult in MotionAnalyze function); the rectangle range of DS-40xxHCI is
(0, 0, 703, 575).
Return value:
0—success; -1 – failed;
4.2.52.
int StartMotionDetection(int channelHandle);
Parameter :
int channelHandle channel handle
Explanation:
To startup motion detection. Motion detection information can be transmitted by data stream.
When we find the frame type is PktMotionDetection we can use MotionAnalyze function to
analyze the movement information, and the result is returned by parameter iResult in
MotionAnalyzer. We can also analyze by ourself according to the data format given by the
SDK refer to section 2.5 for the motion information format;
Notes: Motion detection and the encoding are independent from each other; the user program
can run motion detection under the condition of no running encoding program.
Return value:
0—success; -1 – failed;