|
|
在海康威视公司的sdk开发包中,提供了一些与运动侦测有关的函数:
9 [! E' K) j* a& R0 ^2 r lint SetupMotionDetection(HANDLE hChannelHandle,RECT *rectList,int numberOF)
: E% F# h/ @3 r2 H; w3 T1 H设置运动检测区域
& n5 A+ ?* o2 [int StartMotionDetection(HANDLE hChannelHandle) 启动运动检测 0 J8 }: A: w" R& T
ReadStreamData(HANDLE ChannelHandle,void *DataBuf,DWORD *Length,int *FrameType) 4 Q3 s# i+ @; S0 _; y# K
读指定长度的数据流 1 r8 d/ A% H* w9 d
int AdjustMotionDetectPrecision(HANDLE hChannelHandle, int iGrade, int iFastMotionDetectFps, int iSlowMotionDetectFps)
' z* c2 [( H3 {! E调整运动分析灵敏度
2 h2 i! I, C& x$ Q sint MotionAnalyzer(HANDLE hChannelHandle, char *MotionData, int iThreshold, int *iResult) 6 u6 A2 `; q2 l* ]
动态监测分析 ' l% z6 E# L: s* o$ Z+ J! X* [, o
int StartVideoCapture(HANDLE hChannelHandle)
, ?, B s! j4 k启动数据截取
3 b. g+ B5 p' X3 L/ T$ t' mint RegisterMessageNotifyHandle(HWND hWnd, UINT MessageId)
7 W- f1 q' N( |9 O当数据准备好时,SDK会向hWnd窗口发送MessageId 消息,目标窗口收到Message后调用ReadStreamData读取一帧数据 & Z: a0 T3 k; C, T# m" G
通过以上相关函数如何来实现运动侦测,请各位大侠帮忙看看!!谢谢!! |
|