
Technical Manual
© 2006-2010 by HIKVISION. All rights reserved.
30
4.2.53.
int StopMotionDetection (int channelHandle);
Parameter:
int channelHandle channel handle
Explanation:
Stop motion detection;
Return value:
0—success; -1 – failed;
4.2.54.
int MotionAnalyzer(int channelHandle, char *MotionData, int iThreshold
,
int *iResult);
Parameter:
int channelHandle channel handle;
char *MotionData pointer of motion vector;
int iThreshold bound of area used in judging movement (0-100);
int *iResult It is the result of motion detection according to the bound of
area , and it is a array which size is set with parameter numberOfArea in the function
SetupMotionDetection . If the value of some areas is greater than 0 then it is means that
there is movement in this area.
Explanation:
Analyze motion detection. Motion detection is performed by DSP. The
Frame of pktMotionData given out by DSP is the motion information has been analyzed.
The movement of areas is performed by Host computer, and the data source is given by
frame of PktMotionData and the result is filled in parameter of iResult. The application can
analyze it by itself through the information of motion intensity provided by code stream or
the bound analyze calling this function. The data structure of motion intensity is explained
in 2.25
Return value:
0—success; -1 – failed;
4.2.55.
int SetupMotionDetectionEx(int hChannelHandle,int iGrade,int iFastMotionDetectFps,int
iSlowMotionDetectFps,UINT
delay,RECT
*RectList,
int
iAreas,
MOTION_DETECTION_CALLBACK MotionDetectionCallback,int reserved);
Parameter:
int hChannelHandle
channel handle;
int iGrade sensitiveness grade of motion analysis (0-6)
int iFastMotionDetectFps frame interval of high speed motion detection (0-12) , the
value 0 is means there is no need of high
motion detection and usually it is 2
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
UINT delay
The delay after the last motion detect
RECT
*rectList rectangle array
Int
iAreas number of rectangle