|
在海康威视公司的sdk开发包中,提供了一些与运动侦测有关的函数: % a8 r3 t9 i: D$ |$ Z8 x
int SetupMotionDetection(HANDLE hChannelHandle,RECT *rectList,int numberOF)
+ D. b4 m$ l( v& m# I- V设置运动检测区域 ' h+ m/ d A5 t Z9 M
int StartMotionDetection(HANDLE hChannelHandle) 启动运动检测
' b; a! R# }7 R7 |/ UReadStreamData(HANDLE ChannelHandle,void *DataBuf,DWORD *Length,int *FrameType) 3 i! P- [- G& m' H# J
读指定长度的数据流 9 Y1 Z" n5 i9 }0 }7 ?" E* _' s" J
int AdjustMotionDetectPrecision(HANDLE hChannelHandle, int iGrade, int iFastMotionDetectFps, int iSlowMotionDetectFps) + z; i7 l7 B! Q0 Q
调整运动分析灵敏度 # A8 O# r: M# H+ S: G. `7 {
int MotionAnalyzer(HANDLE hChannelHandle, char *MotionData, int iThreshold, int *iResult) ( A+ M$ v, i6 }+ x2 r! w
动态监测分析 0 @' V, F3 f, \8 ?, W
int StartVideoCapture(HANDLE hChannelHandle) 8 G( W' |8 s; c
启动数据截取 * p, M. d9 d9 }3 Q( h3 t
int RegisterMessageNotifyHandle(HWND hWnd, UINT MessageId) 6 Q( p' q+ Q& P1 [) G: u
当数据准备好时,SDK会向hWnd窗口发送MessageId 消息,目标窗口收到Message后调用ReadStreamData读取一帧数据
3 q( D) Y& B. ~; ~- P通过以上相关函数如何来实现运动侦测,请各位大侠帮忙看看!!谢谢!! |
|