1 中南民族大学 毕业论文(设计)
学院: 生物医学工程学院 专业: 生物医学工程 年级: 2008 题目: 基于图像处理的目标跟踪系统 学生姓名: 熊章靖 学号:******** 指导教师姓名: 谢勤岚 职称: 教授
2012年5月10日 2
中南民族大学本科毕业论文(设计)原创性声明 本人郑重声明:所呈交的论文是本人在导师的指导下独立进行研究所取得的研究成果。除了文中特别加以标注引用的内容外,本论文不包含任何其他个人或集体已经发表或撰写的成果作品。本人完全意识到本声明的法律后果由本人承担。
作者签名: 2012年5月10日 1
目 录 摘要 .................................................................................................................................................. 1 Abstract........................................................................................................................................... 1 1 引言 .............................................................................................................................................. 2 2 OpenCV的体系结构 ....................................................................................................................... 3 2.1 OpenCV中的常用数据结构体系 ........................................................................................ 3 2.2 OpenCV中常用类体系 ........................................................................................................ 4 2.3 OpenCV常用的函数 ............................................................................................................ 4 3 视频处理....................................................................................................................................... 7 3.1 用HighGUI对视频进行读写处理 ...................................................................................... 7 3.1.1 获取摄像头,显示图像 ......................................................................................... 7 3.2 对AVI文件的处理 .............................................................................................................. 8 4 运动目标检测 ............................................................................................................................. 11 4.1 运动目标检测的基本方法 .............................................................................................. 11 4.2 本文的检测算法 .............................................................................................................. 12 4.3 开运算和闭运算 .............................................................................................................. 14 5 程序编辑及结果分析 ................................................................................................................. 15 5.1配置Visual C++ 6.0 ........................................................................................................ 15 5.1.1全局设置 ................................................................................................................. 15 5.1.2项目设置 ................................................................................................................. 17 5.2程序运行演示 .................................................................................................................... 17 5.3运行结果分析 .................................................................................................................... 18 结论 ................................................................................................................................................ 19 参考文献......................................................................................................................................... 20 致谢词 ............................................................................................................................................ 21 1
基于图像处理的目标跟踪系统 摘要:介绍了一种基于OpenCV的运动物体跟踪算法,用于实现在背景中检测出运动目标并实施警戒等特定提示的目的。该算法利用背景差分法得到当前帧中的静止的背景模型,并在不断更新的视频图像中检测前景图像,提取出运动目标。简单介绍了必要的函数和数据结构,以及重要的程序板块。实验结果表明,该方法可以较好地实现视频序列中运动目标的检测,具有实时性,并能得到较好的检测结果。相信在安防监督领域有更为广泛的运用。
关键字:运动目标检测;背景差分法;OpenCV
The target tracking system based on image processing Abstract:It's introducing a kind of moving objects tracking algorithm based on OpenCV,which is used to realize the purpose of detection on moving objects in background and implementing of specific tips for warning.The algorithm gets the static background model in the current frame with the background-finite-difference method, and tests the foreground images in the constantly updated video images ,and extracts the moving targets from them, .In addition, it introduces the necessary functions,data structures and the important program plates. The results we get from the experiment shows that this method can well realize moving targets detection in video sequences, which are defined, and we can get a good test results from it with believing that this method will be more used of in the security supervision areas.