中国安防论坛

 找回密码
 注册
查看: 4671|回复: 1

[求助]小弟最近在一个基于DS-4002h的运动侦测的二次开发,由于是第一次不了解运动

[复制链接]

安防幼儿园学生

Rank: 1

积分
1
发表于 2007-4-21 17:33:42 | 显示全部楼层 |阅读模式
在海康威视公司的sdk开发包中,提供了一些与运动侦测有关的函数:
. Q4 |8 }5 y0 z7 y& I2 D. g+ o' Rint SetupMotionDetection(HANDLE hChannelHandle,RECT *rectList,int numberOF)
5 g, H: Z( Q, X( G. \# v/ B设置运动检测区域
0 r# p2 b: a$ P- Q int StartMotionDetection(HANDLE hChannelHandle)
启动运动检测
- x6 a! h- S6 x, r1 X& t$ R* p: wReadStreamData(HANDLE ChannelHandle,void *DataBuf,DWORD *Length,int *FrameType)
4 c( I" q' O, g4 p" Z 读指定长度的数据流
0 Q6 G0 R+ f( U; R7 ` int AdjustMotionDetectPrecision(HANDLE hChannelHandle, int iGrade, int iFastMotionDetectFps, int iSlowMotionDetectFps)
5 F' \+ Y& `, b L 调整运动分析灵敏度
7 i, l1 B, \! s& q$ ^int MotionAnalyzer(HANDLE hChannelHandle, char *MotionData, int iThreshold, int *iResult)
5 W, W0 C6 P& k6 |" s0 C 动态监测分析
7 C; S% B, z- ~3 _int StartVideoCapture(HANDLE hChannelHandle)
( @+ f0 x0 Y& ]3 w5 M 启动数据截取
2 ?* L0 o- T2 s+ D3 U4 }int RegisterMessageNotifyHandle(HWND hWnd, UINT MessageId)
! u7 j- r! L7 s5 n8 m1 Z9 W$ n6 {% e当数据准备好时,SDK会向hWnd窗口发送MessageId 消息,目标窗口收到Message后调用ReadStreamData读取一帧数据
7 T4 }( ?: F1 Z3 @ 通过以上相关函数如何来实现运动侦测,请各位大侠帮忙看看!!谢谢!!

安防小学生

Rank: 2

积分
94
QQ
发表于 2007-5-3 19:03:52 | 显示全部楼层

re:看不懂,幫不上忙

看不懂,幫不上忙
欢迎大家多多交流 安防零四区群527105
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

安豆网|Archiver|手机版|中国安防论坛 ( 粤ICP备09063021号 )

GMT+8, 2025-6-5 13:18 , Processed in 0.062950 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表