|
|
在海康威视公司的sdk开发包中,提供了一些与运动侦测有关的函数: % C+ @& J' B8 e7 M
int SetupMotionDetection(HANDLE hChannelHandle,RECT *rectList,int numberOF) ' d, s$ N, c6 l- S5 t+ _4 H6 \" U) m/ G
设置运动检测区域 # w% A' o9 Z8 @/ O3 |& t6 l$ v5 t
int StartMotionDetection(HANDLE hChannelHandle) 启动运动检测
4 D. p' |; K0 ]# w3 x0 IReadStreamData(HANDLE ChannelHandle,void *DataBuf,DWORD *Length,int *FrameType)
) A) n) X/ g/ Z9 y5 _+ D3 g" o2 V读指定长度的数据流
9 p; r% r( W8 l- I) |2 zint AdjustMotionDetectPrecision(HANDLE hChannelHandle, int iGrade, int iFastMotionDetectFps, int iSlowMotionDetectFps) 9 f" ]* A- ?3 o( `' `4 s
调整运动分析灵敏度 + {2 p2 X. i; `; n0 S' W
int MotionAnalyzer(HANDLE hChannelHandle, char *MotionData, int iThreshold, int *iResult) . P& C! q( i+ T0 @7 i3 M2 ?
动态监测分析 ; _9 i' V) }2 B
int StartVideoCapture(HANDLE hChannelHandle) 7 C) }6 N8 K. K! j# J) H- T
启动数据截取 " S6 }. e) a5 l
int RegisterMessageNotifyHandle(HWND hWnd, UINT MessageId)
9 H% k4 r' D7 Z n, d3 Q4 L. w% W! U当数据准备好时,SDK会向hWnd窗口发送MessageId 消息,目标窗口收到Message后调用ReadStreamData读取一帧数据 . d4 W9 ?7 v% v! e! P- o, Z. {# @
通过以上相关函数如何来实现运动侦测,请各位大侠帮忙看看!!谢谢!! |
|