|
在海康威视公司的sdk开发包中,提供了一些与运动侦测有关的函数: & k6 R5 P% t$ G. m- L p( Y8 K
int SetupMotionDetection(HANDLE hChannelHandle,RECT *rectList,int numberOF)
& }& J w$ n, A' n设置运动检测区域 % M4 A! P* X: A" D2 @( ]. L* p* a
int StartMotionDetection(HANDLE hChannelHandle) 启动运动检测 0 R, L( L1 Z; B. Q$ b4 @
ReadStreamData(HANDLE ChannelHandle,void *DataBuf,DWORD *Length,int *FrameType) : C+ `' {% t* d7 b d
读指定长度的数据流 6 V9 |+ O$ `- J' }
int AdjustMotionDetectPrecision(HANDLE hChannelHandle, int iGrade, int iFastMotionDetectFps, int iSlowMotionDetectFps)
/ I3 v% T2 p! p( A- b9 j! o7 ~调整运动分析灵敏度
. |- Z) T" O" ~$ l- B, }int MotionAnalyzer(HANDLE hChannelHandle, char *MotionData, int iThreshold, int *iResult) : H5 ~& [) W! x; c& k `
动态监测分析 : z5 F) H( w5 P7 y7 U V( j
int StartVideoCapture(HANDLE hChannelHandle) 4 H3 {1 t# w6 F N1 h
启动数据截取 / {4 `2 B0 a* S& L% o% b" O+ [
int RegisterMessageNotifyHandle(HWND hWnd, UINT MessageId) + H/ s/ I9 Z$ u( }: K; F: i! ]( l
当数据准备好时,SDK会向hWnd窗口发送MessageId 消息,目标窗口收到Message后调用ReadStreamData读取一帧数据 7 ]" F" |4 X( f& \9 F5 ?* u P) W
通过以上相关函数如何来实现运动侦测,请各位大侠帮忙看看!!谢谢!! |
|