|
|
在海康威视公司的sdk开发包中,提供了一些与运动侦测有关的函数: ) M( D, ]) H7 f8 `6 d S' g8 V
int SetupMotionDetection(HANDLE hChannelHandle,RECT *rectList,int numberOF) . ^" K! J9 S6 p9 @
设置运动检测区域 + W" w; J3 l) G: P. Z
int StartMotionDetection(HANDLE hChannelHandle) 启动运动检测 + l- u9 h8 c* l, V8 @/ a
ReadStreamData(HANDLE ChannelHandle,void *DataBuf,DWORD *Length,int *FrameType) : J+ ~) h& O; d$ i1 {8 T1 ]" m
读指定长度的数据流
9 e( y7 W! T: G. h- ~- c6 w6 ]int AdjustMotionDetectPrecision(HANDLE hChannelHandle, int iGrade, int iFastMotionDetectFps, int iSlowMotionDetectFps)
: z/ i8 W/ Y m( G调整运动分析灵敏度
7 w' s8 \$ H3 t+ r/ {6 T D3 M# V/ g. Gint MotionAnalyzer(HANDLE hChannelHandle, char *MotionData, int iThreshold, int *iResult) # M" T9 n i2 T# p, B- `
动态监测分析 0 Q# a9 ~* [1 U9 z1 G7 R
int StartVideoCapture(HANDLE hChannelHandle)
/ ^( F* w7 q; \ S' Z' K0 I x! I启动数据截取 2 {6 R8 ~! }2 `/ U( h
int RegisterMessageNotifyHandle(HWND hWnd, UINT MessageId)
+ |* C* o$ z. q v% @2 v当数据准备好时,SDK会向hWnd窗口发送MessageId 消息,目标窗口收到Message后调用ReadStreamData读取一帧数据 * [6 k( g/ A) y, \! {
通过以上相关函数如何来实现运动侦测,请各位大侠帮忙看看!!谢谢!! |
|