基于ARM的图像采集与处理系统
- 格式:wps
- 大小:117.50 KB
- 文档页数:38
• 116•利用STM32单片机为控制芯片驱动OV2640模块,实现图像采集,通过wifi 模块把采集的图像通过TCP 协议传输给移动端手持Android 设备。
Qt 开发软件通过socket 接口编程设计出了app 用于图像实时显示OV2640模块采集的图像。
实验结果表明图像传输稳定,可以实现实时的无线图像传输。
OV2640模块可以和其它设备组合,对未来图像类设备有很好的应用潜力。
图像传输应用广泛,在安防设备上可以通过摄像头监控家门、小区等,对犯罪侦查、丢失物品寻找等起到很大作用。
在人工智能领域,需要识别特定事物,比如人脸识别、物体识别等,需要采集很多的图像样本,离不开图像采集技术。
在没有线的束缚下,摄像头和显示终端分离,无线图像传输在日常生活中也有很大的实用性,例如可以在忙着洗衣做饭的时候监控小孩的实时举动,可以查看特定角落的实时画面。
本文探索了图像监控的关键技术图像采集和传输,并通过wifi 模块由TCP 协议实现无线图像传输。
在没有线的束缚下,摄像头和显示终端分离。
在wifi 信号覆盖范围内可以实时探索看不到的或者人类不方便探索的角落。
1 无线图像传输系统无线图像传输系统分为图像采集部分、数据传输部分和终端显示部分。
三者关系如图1所示。
的滤波器,逐行排列,形成方形采集阵列,BG/GR 形式构成的像素大约可以达到200w 个。
在采集光的时候也是逐行扫描采集,直到扫描完成。
其中内部集成了数字图像处理模块,可以直接输出JPEG, GRB422和YCbCr 等数据格式。
Ov2640模块使用的是正点原子的A TK-OV2640摄像头模块。
它共有18个引脚。
其中最重要的是SCCB 总线和HREF 行同步线,VSYNC 场同步线和8位并行数据线。
SCCB 总线和I2C 总线类似用于单片机向Ov2640模块发送控制命令。
在图像采集开始之后,模块会产生采集输出时序。
HREF 输出高电平时,根据时钟进行像素数据的读取,HREF 线变为低电平时读取的数据无效,循环采集直到采完一帧为止。
学校代号***** 学号********** 分类号TP18 密级公开硕士学位论文基于ARM9的图像采集系统的研究学位申请人姓名刘白皓培养单位长沙理工大学导师姓名及职称黄敏副教授学科专业通信与信息系统研究方向嵌入式系统论文提交日期2011年3月学校代号:10536学号:0810801515密级:公开长沙理工大学硕士学位论文基于ARM9的图像采集系统的研究学位申请人姓名刘白皓导师姓名及职称黄敏副教授培养单位长沙理工大学专业名称通信与信息系统论文提交日期2011年3月论文答辩日期2011年5月答辩委员会主席车生兵教授The Design of Image Acquisition System Based on ARM9ByLIU BaihaoB.E.( Anhui University of Architecture) 2008A thesis submitted in partial satisfaction of theRequirements for the degree ofMaster of EngineeringinCommunication and Information SysteminChangsha University of Science & TechnologySupervisorProfessor Huang MinMarch, 2011长沙理工大学学位论文原创性声明本人郑重声明:所呈交的论文是本人在导师的指导下独立进行研究所取得的研究成果。
除了文中特别加以标注引用的内容外,本论文不包含任何其他个人或集体已经发表或撰写的成果作品。
对本文的研究做出重要贡献的个人和集体,均已在文中以明确方式标明。
本人完全意识到本声明的法律后果由本人承担。
作者签名:日期:年月日学位论文版权使用授权书本学位论文作者完全了解学校有关保留、使用学位论文的规定,同意学校保留并向国家有关部门或机构送交论文的复印件和电子版,允许论文被查阅和借阅。
毕业设计说明书基于ARM的嵌入式数字图像处理系统设计学生姓名:张占龙学号: 0905034314学院:信息与通信工程学院专业:测控技术与仪器指导教师:张志杰2013年 6月摘要简述了数字图像处理的应用以及一些基本原理。
使用S3C2440处理器芯片,linux内核来构建一个简易的嵌入式图像处理系统。
该系统使用u-boot作为启动引导程序来引导linux内核以及加载跟文件系统,其中linux内核与跟文件系统均采用菜单配置方式来进行相应配置。
应用界面使用QT制作,系统主要实现了一些简单的图像处理功能,比如灰度话、增强、边缘检测等。
整个程序是基于C++编写的,因此有些图像变换的算法可能并不是最优化的,但基本可以满足要求。
在此基础上还会对系统进行不断地完善。
关键词:linnux 嵌入式图像处理边缘检测AbstractThis paper expounds the application of digital image processing and some basic principles. The use of S3C2440 processor chip, the Linux kernel to construct a simple embedded image processing system. The system uses u-boot as the bootloader to boot the Linux kernel and loaded with file system, Linux kernel and file system are used to menu configuration to make corresponding configuration. The application interface is made using QT, system is mainly to achieve some simple image processing functions, such as gray, enhancement, edge detection. The whole procedure is prepared based on the C++, so some image transform algorithm may not be optimal, but it can meet the basic requirements. On this basis, but also on the system constantly improve.Keywords:linux embedded system image processing edge detection目录第一章绪论 (1)1.1 数字图像处理概述 (1)1.2 数字图像处理现状分析 (5)1.3 本文章节简介 (8)第二章图像处理理论 (8)2.1 图像信息的基本知识 (8)2.1.1 视觉研究与图像处理的关系 (8)2.1.2 图像数字化 (10)2.1.3 图像的噪声分析 (10)2.1.4 图像质量评价 (11)2.1.5 彩色图像基本知识 (11)2.2 图像变换 (13)2.2.1 离散傅里叶变换 (13)2.2.2 离散沃尔什-哈达玛变换(DWT-DHT) (20)2.2.3 离散余弦变换(DCT) (21)2.2.4 离散图像变换的一般表达式 (23)2.3 图像压缩编码 (24)2.3.1 图像编码的基本概念 (24)2.4 图像增强和复原 (24)2.4.1 灰度变换 (24)2.4.2 图像的同态增晰 (26)2.4.3 图像的锐化 (27)2.5 图像分割 (27)2.5.1 简单边缘检测算子 (27)2.6 图像描述和图像识别 (28)第三章需求分析 (28)3.1 系统需求分析 (28)3.2 可行性分析 (28)3.3 系统功能分析 (29)第四章概要设计 (29)4.1 图像采集 (30)4.2 图像存储 (31)4.3 图像处理(image processing) (31)4.4 图像显示 (32)4.5 网络通讯 (32)第五章详细设计 (32)5.1 Linux嵌入式系统的构建 (33)5.1.1 启动引导程序的移植 (33)5.1.2 Linux内核移植 (33)5.1.3 根文件系统的移植 (34)5.2 图像处理功能的实现 (34)5.2.1 彩色图像的灰度化 (34)5.2.2 灰度图的直方图均衡化增强 (35)5.2.3 图像二值化 (35)5.2.4 边缘检测 (36)第六章调试与维护 (36)附录 A (37)参考文献 (43)致谢 (44)第一章绪论1.1 数字图像处理概述数字图像处理(Digital Image Processing)又称为计算机图像处理,它是指将图像信号转换成数字信号并利用计算机对其进行处理的过程。
基于STM32的图像动态采集系统摘要随着科技水平的提高,ARM的应用越来越广泛。
本论文旨在对ARM的深入学习,论文对 STM32驱动OV7670图像传感器、以及图像在SSD1289驱动控制芯片的显示、以及图片在SD卡上以文件形式的存储和读取进行了初步的探索和研究。
设计过程中多亏了前辈们的刻苦、钻研留下了宝贵的资料。
对OV7670的驱动程序的开发,主要是引脚的学习和寄存器的配置,对SD卡图片存储的开发采用的是文件的方式存储,简单地说,就是存储的到SD卡上图片能在电脑上直接打开。
期间牵扯到移植文件系统FATFS到STM32上,以前没有这方面的开发经验,主要参考前人的经验。
SSD1289驱动程序主要也是一些引脚和寄存器的配置。
开发过程中牵扯到STM32的中断向量表的配置等很多基础知识,在图片存储过程中则牵扯到很多存储格式的问题,使问题变得复杂化,最后通过查阅相关资料都一一解决。
经过对STM32开发板和OV7670等芯片的学习,最后实现了图像的动态显示、图片的实时采集、存储和读取。
设计过程中碰到了很多问题、一些与课题相关的问题基本都解决了,还有些不属于本论文研究范围的,比如图片的优化显示、清晰度,虽然可以通过驱动程序让清晰度更高,但更多的与芯片本身性能有关,没去做深入的探索和研究。
关键词:STM32,OV7670,SD卡,SSD1289,驱动Based on the dynamic STM32 image acquisition systemABSTRACTWith the improvement of science and technology level, ARM used more widely. This paper aims to further study of the ARM, paper STM32 drive to OV7670 image sensor, and image in the SSD1289 drive control chip of the display, and images on the SD card to file form of storage and read a preliminary exploration and research.The design process of thanks to predecessor, studied hard left invaluable material. To OV7670 driver development, mainly is the pin learning and register configuration, SD card to the development of the storage of the picture is the way file storage, say simply, it is stored to SD card pictures can open direct on the computer. Involved in transplantation during the file system FATFS to STM32, before the development experience, main reference previous experience. SSD1289 driver is primarily some pin and registers configuration. The development process STM32 involved in the interruption of the configuration and many to scale basic knowledge, in the photo storage process is involved in a lot of storage formats, become more complicated, and finally by consulting relevant material all 11 to solve.After the STM32 development board and OV7670 etc chip learning, and finally realize image, the dynamic display of the picture of the real-time data acquisition, storage and read. In the process of design met with many problems, some of the problems and issues related to the basic are solved, and some do not belong to this research scope of, such as pictures of the optimization of the display, definition, although can through the driver let more clear, but more about performance and chip itself, not to do in-depth exploration and research.Key words: STM32, OV7670, SD card, SSD1289, drive目录前言 0第1章STM32处理器概述 (2)STM32简介 (2)Cortex-M3内核简介 (2)STM32开发板资源介绍 (12)STM32中断 (12)第2章×××××× (13)×××××× (13)×××××× (13)×××××× (13)×××××× (14)×××××× (14)第3章×××××× (15)×××××× (15)×××××× (15)×××××× (15)×××××× (15)第4章×××××× (16)×××××× (16)×××××× (16)×××××× (16)×××××× (16)第5章×××××× (17)×××××× (17)×××××× (17)×××××× (17)×××××× (17)×××××× (17)×××××× (17)结论 (18)谢辞 (19)参考文献 (20)附录 (22)外文资料翻译 (23)前言随着社会智能化程度的提高,特别是近年来物联网的发展,图像动态采集越来越多地应用到社会的各个领域。
(二 〇 一 二 年 六 月本科毕业设计说明书 学校代码: 10128 学 号:题 目:基于单片机的图像处理采集系统设计与实现 学生姓名: 学 院: 系 别: 专 业: 班 级: 指导教师:摘要传统的工业级图像处理采集系统大多是由CCD摄像头、图像采集卡和PC机组成,虽已得到了广泛的应用,但是它具有结构复杂,成本高,体积大,功耗大等缺点。
随着单片机的迅速发展,开发一种智能控制及智能处理功能的微型图像处理采集系统成为可能,并且也克服了传统图像处理采集系统的诸多缺点。
本设计提出了基于单片机的图像采集系统,该系统主要由四大模块组成:第一个是单片机控制模块,对摄像头进行控制;第二个是摄像头模块,即进行图像拍摄和取图;第三个是Zigbee无线传输模块,功能是将图像传送到上位机;最后是上位机,实现图像显示功能。
其优点是硬件电路简单,软件功能完善,控制系统可靠,性价比较高,使用环境广泛及成本低等。
利用Proteus和Keil进行仿真调试,可以看到设计内容的运行结果,验证系统运的行正确及稳定性,并且实现了图像处理采集功能,所以具有一定的实用和参考价值。
关键词:单片机;Proteus;图像采集AbstractThe traditional industrial image processing collection system by CCD camera, mostly image collection card and PC unit into, although already a wide range of applications, but it has the structure is complex, high cost, big volume and shortcomings, such as big power consumption. With the rapid development of the single chip microcomputer, the development of a kind of intelligent control and intelligent processing function of micro image processing collection system possible, and also overcome traditional image processing collection system of many of the faults.This design is put forward based on SCM image acquisition system, the system consists of four modules: the first one is the single chip microcomputer control module, the camera to control; The second is a camera module, the image shoot and take diagram; The third is Zigbee wireless transmission module, the function is will images to PC; Finally the PC, realize image display function. Its advantage is hardware circuit is simple, software perfect function, control system and reliable, high cost performance, use extensive and environment cost low status. Use Proteus and Keil simulation commissioning, can see the operation of the design content, as demonstrated the correct and do the system stability, and realize the image processing collection function, so has certain practical and reference value.Keywords:Single-Chip Microcomputer;Proteus; Image Capture目录第一章绪论 (1)1.1 课题研究现状 (1)1.2 课题研究目的意义 (1)1.3 本课题研究的主要内容 (1)第二章硬件设计 (2)2.1 系统设计方案 (2)2.2 硬件简介 (2)2.2.1 80C51简介 (2)2.2.2 I/O端口 (4)2.2.3 控制引脚 (5)2.3 摄像头 (6)2.3.1 波特率 (6)2.3.2 数据包 (6)2.3.3 摄像头控制指令 (6)2.4 Zigbee无线传输模块 (9)2.4.1 Zigbee简介 (9)2.4.2 Zigbee技术应用领域 (10)2.4.3 Zigbee 技术特点 (10)第三章软件设计及调试 (12)3.1 Keil调试 (12)3.1.1 Keil简介 (12)3.1.2 Keil调试过程 (12)3.2 程序设计 (19)3.3 电路图设计 (20)3.3.1 Proteus简介 (20)3.3.2 电路图设计过程 (23)3.4 Keil与Proteus联机调试 (27)结论 (30)参考文献 (31)附录 (32)程序清单 (32)谢辞 (34)第一章绪论1.1 课题研究现状随着现代电子信息技术的迅速发展,使得信息处理技术越来越重要,而图像处理采集技术在信息处理技术当中有着异常重要的位置。