|
在海康威视公司的sdk开发包中,提供了一些与运动侦测有关的函数:
" ]; ?7 b. H( D+ aint SetupMotionDetection(HANDLE hChannelHandle,RECT *rectList,int numberOF) 3 `( M( x/ j7 v
设置运动检测区域 ' w: v# |6 X2 V7 A% j
int StartMotionDetection(HANDLE hChannelHandle) 启动运动检测
, ^# @. O" r+ o" q* d, iReadStreamData(HANDLE ChannelHandle,void *DataBuf,DWORD *Length,int *FrameType) 2 j' P: o' d& o* h& D# g
读指定长度的数据流
3 D6 Y( }2 [9 t/ ~2 gint AdjustMotionDetectPrecision(HANDLE hChannelHandle, int iGrade, int iFastMotionDetectFps, int iSlowMotionDetectFps)
( a3 W1 |7 T8 I( {( U3 K$ A* M5 T! P调整运动分析灵敏度
! x2 o) f. T3 F& }+ h. w ]int MotionAnalyzer(HANDLE hChannelHandle, char *MotionData, int iThreshold, int *iResult) * {& [, n! n; T
动态监测分析 5 C& l! s( ~2 y# s8 f: e
int StartVideoCapture(HANDLE hChannelHandle)
0 h" y' ?/ w( W, D& z/ H- O启动数据截取 # e0 y6 N5 M) O# M j
int RegisterMessageNotifyHandle(HWND hWnd, UINT MessageId) % V4 |7 Z( H4 S# g' M6 F. S
当数据准备好时,SDK会向hWnd窗口发送MessageId 消息,目标窗口收到Message后调用ReadStreamData读取一帧数据
! e. G4 u# u0 I0 @; P& K9 T通过以上相关函数如何来实现运动侦测,请各位大侠帮忙看看!!谢谢!! |
|