|
|
在海康威视公司的sdk开发包中,提供了一些与运动侦测有关的函数: : c7 Z/ j6 u8 Q
int SetupMotionDetection(HANDLE hChannelHandle,RECT *rectList,int numberOF) 8 N5 s0 w, ^" n
设置运动检测区域
1 C* @; J/ C- } g3 }" w4 [int StartMotionDetection(HANDLE hChannelHandle) 启动运动检测
9 ^" A1 e# \# ?# FReadStreamData(HANDLE ChannelHandle,void *DataBuf,DWORD *Length,int *FrameType) 5 n: W4 H6 `8 W
读指定长度的数据流 ; h. i9 Y/ ~& {* A& d4 z5 ^ F; g7 }
int AdjustMotionDetectPrecision(HANDLE hChannelHandle, int iGrade, int iFastMotionDetectFps, int iSlowMotionDetectFps)
$ \, L; l: o: s调整运动分析灵敏度
. t, R4 D/ C/ P9 G* O/ pint MotionAnalyzer(HANDLE hChannelHandle, char *MotionData, int iThreshold, int *iResult)
' p5 S$ d7 n: M5 h+ g) X动态监测分析
0 T" b$ s2 ?* r) j" L) f/ l( oint StartVideoCapture(HANDLE hChannelHandle) . m+ X9 \$ g& c/ ]
启动数据截取 " A& Z! ]: X/ Z0 s3 }
int RegisterMessageNotifyHandle(HWND hWnd, UINT MessageId) ) x: x8 \* R0 p' z
当数据准备好时,SDK会向hWnd窗口发送MessageId 消息,目标窗口收到Message后调用ReadStreamData读取一帧数据 ' C5 t0 Q2 c3 P
通过以上相关函数如何来实现运动侦测,请各位大侠帮忙看看!!谢谢!! |
|