基于ARM的视频监控系统的设计

  • 格式:pdf
  • 大小:3.05 MB
  • 文档页数:58

分类号: 密级: U D C: 编号: 学 位 论 文 基于ARM的视频监控系统的设计 程杰 指导教师姓名: 王宝珠 教 授 河北工业大学 申请学位级别: 硕 士 学科、专业名称: 电子与通信工程 论文提交日期: 2013年3月 论文答辩日期: 2013年4月 学位授予单位: 河北工业大学 答辩委员会主席: 评 阅 人: 2013年4月 Dissertation Submitted to Hebei University of Technology for The Master Degree of Electronics and Communications Engineering Design of video surveillance system based on ARM by Cheng Jie Supervisor: Prof. Wang Baozhu April 2013 河北工业大学硕士学位论文

i 基于ARM的视频监控系统的设计 摘 要 随着信息技术的不断发展,视频监控从早期的模拟监控进入了数字监控时代,计算机网络技术的快速发展,特别是嵌入式技术的逐渐普及,使得基于嵌入式技术的网络视频监控系统正逐渐取代一些传统的数字视频监控设备。嵌入式网络视频监控系统具有体积小、成本低、稳定性高、实时性好等优点,具有广阔的发展前景。 本文首先介绍了国内外视频监控系统的发展现状及未来趋势,分析了嵌入式网络视频监控系统的特点和关键技术;在此基础上,提出了一种基于ARM11和嵌入式Linux的远程视频监控系统的方案,硬件系统采用Tiny6410开发板作为嵌入式硬件开发平台。Tiny6410的核心板S3C6410集成了ARM1176JZF-S型号的CPU,正常运行频率可达553 MHz,具有高性价比、低功耗等特点。它采用32位内部总线架构,S3C6410内置强大的多媒体处理单元,可进行图像的处理、音频的处理、显示操作和缩放。在系统监控终端,使用现代的Z301摄像头通过USB接口与开发板相连,向S3C6410提供YUY2格式的视频帧。系统软件设计方面,在利用V4L2接口对数据进行采集的基础上,选择了具有高压缩效率的H.264压缩标准,通过CPU内部集成的MFC模块实现对视频流的硬件压缩。本系统通过将BOA移植到运行于ARM11开发板上的Linux系统中,建立了嵌入式web服务器,为远程客户端提供基于HTTP协议的网络接入方式,通过CGI脚本对远程客户端的请求进行响应,发送经过编码的视频数据包。 本文完成了图像的采集、编码、传输、显示模块的设计,在局域网内进行了调试与验证。在客户端应用了能够接受实时网络流的VLC开源软件,来接收目标板上服务器通过套接字发送的网络串流,它融合了FFmpeg与Libdvdcss库可以对大部分的视频数据进行解码与播放。实验结果表明:系统设计合理,方案可行,在发送帧率达到25fps时能够正常显示,丢包率很低。 关键词:视频监控,嵌入式系统,图像采集,图像压缩 ,图像传输 基于arm的视频监控系统的设计

ii DESIGN OF VIDEO SURVEILLANCE SYSTEM BASED ON ARM ABSTRACT Along with the continuous development of information technology, video surveillance from early analog control into the digital era, and the rapid development of computer network technology, in particular the increasing popularity of embedded technology, making the network video surveillance system based on embedded techn- ology is gradually replacing some traditional digital video surveillance equipment. Embedded network video surveillance system has the advantages of small size, low cost, high stability, good real-time, and has broad prospects for development. This paper first introduces the development status and future trends of the video surveillance system at home and abroad, the analysis of the characteristics of the embedded network video surveillance system and key technologies; proposed based on an ARM11 embedded Linux-based remote video surveillance system program, the system structure of a Tiny6410 development board as an embedded development hardware platform. The core board S3C6410 integrates ARM1176JZF-S CPU models, the normal operating frequency up to 553 MHz, and has a high cost, low power consumption, it uses 32-bit internal bus architecture S3C6410 built-in powerful multimedia processing unit can be image processing, audio and video processing, and display operations and scaling. Monitoring terminal in the system, the use of modern the Z301 camera connected by USB interface development board, to S3C6410 the YUY2 format of video frame. The system software design aspect, in V4L2 interface for data collection, is selected having a high compression efficiency of the H.264 compression standard hardware compression of the video stream, the first by internal CPU integrated MFC module. The system by boa ported to Linux systems running on the ARM11 development board, the establishment of an embedded web server for remote clients to provide network access based on the HTTP protocol to respond to requests for remote clients by CGI scripts sending a coded video data packets. This paper completed video capture, encoding, transmission, and display module design, debugging and verification in the LAN. VLC in the client can receive network streaming from target board server via the socket, it blends the FFmpeg with Libdvdcss library can decode and play most of the video data. Experimental results show that: the system design is reasonable and feasible, and can be displayed properly when sending the frame rate is more than 25fps, packet loss rate is very low. KEY WORDS: video surveillance, embedded system ,image acquisition, image compression, image transmission 河北工业大学硕士学位论文

iii 目录 第一章 绪论 ............................................................................................................................. 1 §1-1 课题来源与研究意义 ................................................................................................... 1 §1-2 视频监控发展现状 ....................................................................................................... 2 §1-3 视频监控发展趋势 ....................................................................................................... 2 §1-4 本论文系统方案与章节安排 ....................................................................................... 3 第二章 嵌入式硬件开发环境的搭建 ........................................................................ 5 §2-1嵌入式系统概述 ............................................................................................................ 5 2-1-1嵌入式系统概念 .................................................................................................... 5 2-1-2嵌入式系统的发展 ................................................................................................ 5 §2-2 ARM处理器 .................................................................................................................... 6 §2-3 S3C6410核心板 ............................................................................................................ 7 §2-4 Tiny6410开发板 .......................................................................................................... 8 §2-5 硬件模块介绍 ............................................................................................................... 9 2-5-1多格式编解码器 .................................................................................................... 9 2-5-2 存储器系统 ......................................................................................................... 10 2-5-2 串口模块 ............................................................................................................. 10 2-5-3 JTAG模块 ............................................................................................................ 11 2-5-4 SD储存卡 ............................................................................................................ 11 §2-6硬件系统总体设计 ...................................................................................................... 12 §2-7本章小结 ...................................................................................................................... 12 第三章 嵌入式系统的移植 ........................................................................................... 13 §3-1软件开发环境的搭建 .................................................................................................. 13 3-1-1 建立宿主机开发环境 ......................................................................................... 13 3-1-2 建立交叉编译开发环境 ..................................................................................... 14 §3-2 Uboot的制作与移植 .................................................................................................. 14 3-2-1 Uboot工作原理 .................................................................................................. 14 3-2-2 Uboot执行文件 .................................................................................................. 16 §3-3内核与文件系统的定制与移植 .................................................................................. 17 3-3-1 linux系统体系结构 .......................................................................................... 17 3-3-2 Linux内核的研究 .............................................................................................. 18 3-3-3 内核的配置与编译 ............................................................................................. 20 3-3-4 根文件系统的制作 ............................................................................................. 21 3-3-5 Linux系统的移植 .............................................................................................. 22 §3-4本章小结 ...................................................................................................................... 24