OpenCV图像形变处理.doc

上传人:ni****g 文档编号:546188327 上传时间:2022-11-23 格式:DOC 页数:56 大小:1.52MB
返回 下载 相关 举报
OpenCV图像形变处理.doc_第1页
第1页 / 共56页
OpenCV图像形变处理.doc_第2页
第2页 / 共56页
OpenCV图像形变处理.doc_第3页
第3页 / 共56页
OpenCV图像形变处理.doc_第4页
第4页 / 共56页
OpenCV图像形变处理.doc_第5页
第5页 / 共56页
点击查看更多>>
资源描述

《OpenCV图像形变处理.doc》由会员分享,可在线阅读,更多相关《OpenCV图像形变处理.doc(56页珍藏版)》请在金锄头文库上搜索。

1、摘 要煤炭是我国重要的能源资源,煤炭行业在我国长期停留在人工开采水平,生产效率低,存在许多潜在的安全问题,如瓦斯爆炸,地下渗水事故经常发生。中国煤矿安全生产面临的形势十分严峻。中国煤矿生产安全问题,在对各方面产生了影响,为了彻底解决煤矿安全生产,必须加强管理,采取多种措施,做出艰苦的努力。通过对矿井图像形变测量与分析系统的研究与设计,利用视频监控系统,实时采集支撑矿井坑道支柱的图像,地面或中心监控人员可以直接对井下坑道支柱情况进行实时监控,不仅可以直接监控和记录坑道支柱的情况,还可以发现事故隐患,有效的防患于未然,同时若发生事故,也能为事故的提供第一手图像数据资料,为今后的安全生产提供了可靠的

2、保证。因此,基于矿井图像形变测量与分析系统的研究与设计为目的的视频监控系统是现代矿井安全生产监控系统的重要组成部分。本软件系统是用基于C/C+语言编程的在OpenCV环境下开发设计的以矿井图像形变测量与分析系统研究与设计为核心的煤矿井下视频监控系统。该系统的思想主要是采用计算机视觉技术智能监控矿井坑道支柱的形变。本课题的模拟环境为个人笔记本,型号为联想G470,系统中使用的摄像头为笔记本自带摄像头,在白色纸张上画一条长方形黑线,假设为坑道支柱。矿井图像形变测量与分析系统研究与设计课题的模块分为四部分:采集数据,处理数据,保存数据和报警。其运行情况如下:系统开始运行后,摄像头不断采集矿井坑道支柱

3、的图像,实时采集和保存坑道支柱的角度信息,同时对图像进行处理,判断坑道支柱是否倾斜或形变,根据倾斜和形变情况选择是否保存现场图像和发出警报。用于设计本系统的OpenCV是一个Intel开源计算机视觉库,它包含了一系列C函数和少量C+类,实现了图像处理和计算机视觉方面的很多通用算法。优化后的代码,可用于实时图像处理,它具有良好的便携性,提供了低层次与高层次的应用程序编程接口(API)和高效的英特尔IPP多媒体库接口,为您使用的Intel CPU优化代码,提高程序的性能。关键词:OpenCV;图像处理;支柱形变;APIABSTRACTCoal is Chinas important energy

4、resources, the coal industry in China have long remained at the level of artisanal mining, production efficiency is low, there are many potential security issues, such as gas explosions, underground seepage Accidents often occur. Faced by the Chinese coal mine production safety situation is very gri

5、m. China coal mine production safety problems on all aspects of an impact, in order to solve the coal mine production safety, strengthen management, adopt various measures to make strenuous efforts.Mine image deformation measurement and analysis of research and design of the system, the use of video

6、 surveillance systems, real-time acquisition to support the image of the pillars of the mine tunnel, the ground or center monitoring personnel can direct real-time monitoring of the pillars of the underground tunnel, not only can directly monitor and record tunnel pillars, but also the timely detect

7、ion of an accident seedling to take preventive measures, but also for post hoc analysis of the accident to provide first-hand image data to provide a reliable guarantee for the future production safety. Mine-based image deformation measurement and analysis system for research and design for the purp

8、ose of video surveillance system is an important part of modern mine safety monitoring system.The software system is based on the C / C+ programming language OpenCV environment, development and design to mine image deformation measurement and analysis of coal mine systems research and design as the

9、core video surveillance system. The idea of the system is the use of computer vision, intelligent monitoring of the mine tunnel pillar deformation. The simulation environment of the subject as a personal notebook, model for the Lenovo G470, the camera system used in the notebook comes with a camera,

10、 to draw a rectangle of black lines on white paper, assuming that the tunnel pillar. Mine image deformation measurement module for analysis of system design issues are divided into four parts: data collection, data processing, and save the data and alarm. Its operation is as follows: after the syste

11、m starts running, the camera continuously capture the image of the mine tunnel pillar, real-time acquisition and preservation of the tunnel pillar angle information, image processing, to determine whether the tunnel pillar tilt or deformation, tilt and deformation conditions, select Do you want to s

12、ave the live images and sound the alarm. OpenCV for the design of this system is the Intel Open Source Computer Vision library, which consists of a series of C functions and a small amount of C+ class to achieve a general algorithm for image processing and computer vision. Code optimized for real-ti

13、me image processing, has a good portability, low-level and advanced application programming interfaces (APIs), provides the interface for efficient multimedia library of Intel IPP, Intel CPUs can be used against you optimized code to improve program performance.Key Words:OpenCV; Image Processing; Pi

14、llar Deformation; API目 录1 绪论11.1 本课题研究的背景和意义11.1.1 课题研究背景11.1.2 课题研究方法21.2 本课题相关概念的引入21.2.1 图像处理21.2.2 图像31.2.3 图像的矩阵表示41.2.4 颜色表41.2.5 灰度图像和彩色图像51.3 BMP文件结构及其存取61.3.1 BMP文件简介61.3.2 BMP文件结构71.4 图像分割101.5 本章小结102 系统分析122.1 系统可行性分析122.2 系统需求分析122.2.1 系统功能描述122.2.2 系统难点122.2.3 系统设计思想132.2.4 系统开发工具132.2

15、.5 系统模块132.3 系统方案选择142.3.1 方案选择142.3.2 确定方案开发环境的选择152.3.3 方案结果162.4 本章小结163 开发环境及工具介绍163.1 OpenCV163.1.1 OpenCV简介163.1.2 OpenCV的应用领域183.2 计算机视觉183.3 API的概念203.3.1 API 声明213.3.2 消息(Messages)213.3.3 事件(Event)213.3.4 MSYS简介213.4 本章小结224 系统设计234.1 功能模块设计234.2程序主流程图264.3主要函数功能描述264.4本章小结335系统实现345.1系统配置345.2系统界面设计365.3各模块功能的实现415.4本章小结426系统测试和运行结果436.1 系统测试436.2 系统运行结果447 结束语47致谢48参考文献49-49-1 绪 论解决煤矿安全生产问题是一项长期、艰巨和复杂的工作,但又必须从眼前抓起,甚至采取必要的强制手段推行,而信息技术的广泛应用是加强和改进煤矿安全生产工作的有效手段。随着计算机应用在各行各业的逐步普及,煤炭生产水平目前逐步实现了自动化,生产效率大大提高。因为煤矿开采的环境特殊,特别容易发生事故,煤矿行业也被称为高危险的行业。对矿井图像形变测量与分析系统研究与设计有了一

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号