【正文】
學(xué)士學(xué)位論文 題目: Android 二維碼的掃描識(shí)別 設(shè)計(jì)人 : 蘭紅林 指導(dǎo)教師: 李富萍 所屬系部:計(jì)算機(jī)科學(xué)與技術(shù)學(xué)院 專(zhuān)業(yè)班級(jí):計(jì)算機(jī)科學(xué)與技術(shù) 082021 2021 年 6 月 1 日 太原科技大學(xué)學(xué)士學(xué)位論文 I 中文摘要 一維條碼在生產(chǎn)和生活的各個(gè)方面得到了廣泛的應(yīng)用,極大的提高了生產(chǎn)率,但是一維條碼本身的缺點(diǎn):信息量小、依賴(lài)數(shù)據(jù)庫(kù)等也日益的現(xiàn)露出來(lái)。二維條碼本身具有高容 量、高密度、糾錯(cuò)能力強(qiáng)、安全強(qiáng)度高等特點(diǎn),使得二維條碼作為信息的載體在信息自動(dòng)化領(lǐng)域發(fā)揮著越來(lái)越重要的作用。 QRCode 作為快速響應(yīng)二維碼,以其獨(dú)特的優(yōu)勢(shì),在漢語(yǔ)國(guó)家發(fā)展迅速。目前,國(guó)內(nèi) QR碼的識(shí)別大多是基于 PC 的 ,Android 平臺(tái)上當(dāng)前流行的二維碼識(shí)別軟件普遍存在著掃描速度慢,需要精確對(duì)焦等缺點(diǎn) 。 該軟件 基于 Android開(kāi)發(fā)平臺(tái)在 windows環(huán)境下采用面向?qū)ο蠓椒ㄟM(jìn)行開(kāi)發(fā)。首先 ,進(jìn)行需求分析, 繪制了 用例圖和活動(dòng)圖 。然后 , 在概要設(shè)計(jì)中建立了系統(tǒng)功能 模型, 并在詳細(xì)設(shè)計(jì)階段 對(duì)圖片處理過(guò)程進(jìn)行 設(shè)計(jì) 。 最后 , 對(duì) 軟件進(jìn)行編碼和測(cè)試 。該軟件實(shí)現(xiàn)了二維碼的掃描與識(shí)別, 具有很強(qiáng)的實(shí)用性 。 關(guān)鍵字 : 二維碼 ; QRCode; 解碼 ; Android 太原科技大學(xué)學(xué)士學(xué)位論文 II The scanning and recongnition of twodimensional barcode Author: Lan Honglin Tutor: Li Fuping Abstract Onedimension barcode is widely used recent years in all aspect of life, which greatly improved the productivity. However, the faults of 1D barcode have bee increasingly apparent, the information storage of it is so little, and also it must be rely on database. Twodimension barcode has the characteristics of high capacity, high density, high security and good error correction ability, which make it play more and more important role in information and automation field. QRCode(Quick Response Code), as a 2D barcode, develops rapidly in Chinese speaking countries with its unique advantages. At present, in our nation, recognition of QRCode mostly bases on PC, and the recognition speed and accuracy are not so good. Moreover, the popular barcode recognition software on android platform has some shortings prevalently, such as slow speed of recognition, etc. The development of the software is based on Android platform by objectoriented programming method under the Windows OS. Firstly, this paper describes the detailed demand analysis to draw use case diagram and activity diagram. Then constructing the system function model in general design, meanwhile, designing the details of diagram process. Finally, the software implements the scanning and recognition of twodimensional barcode by decoding and testing, after that, this software has robust applicable ability. Key words: Twodimensional barcode。QRCode。decoding。Android太原科技大學(xué)學(xué)士學(xué)位論文 I 目錄 第一章 系統(tǒng)概述 ................................................................... 1 系統(tǒng)開(kāi)發(fā)背景和意義 ............................................................ 1 系統(tǒng)開(kāi)發(fā)背景 ............................................................ 1 系統(tǒng)開(kāi)發(fā)的意義 .......................................................... 1 二維碼介紹 .............................................................. 2 開(kāi)發(fā)工具介紹 .................................................................. 3 Eclipse簡(jiǎn)介 ............................................................. 3 JDK簡(jiǎn)介 ................................................................. 3 Android SDK簡(jiǎn)介 ......................................................... 4 ADT簡(jiǎn)介 ................................................................. 4 項(xiàng)目開(kāi)發(fā)環(huán)境 .................................................................. 4 硬件環(huán)境 ................................................................ 4 軟件環(huán)境 ................................................................ 5 環(huán)境搭建 ...................................................................... 5 下載和安裝 Android SDK ................................................... 5 安裝 Eclipse和 ADT插件 ................................................... 5 第二章 可行性研究和需求分析 ........................................................ 7 可行性研究 .................................................................... 7 技術(shù)可行性 .............................................................. 7 經(jīng)濟(jì)可行性 .............................................................. 7 操作可行性 .............................................................. 7 社會(huì)可行性 .............................................................. 8 需求分析 ...................................................................... 8 系統(tǒng)功能需求 ............................................................ 8 系統(tǒng)功能結(jié)構(gòu)圖 .......................................................... 9 太原科技大學(xué)學(xué)士學(xué)位論文 II 系統(tǒng) 用例圖 ............................................................. 10 系統(tǒng)活動(dòng)圖 ............................................................. 11 技術(shù)需求 ..................................................................... 11 性能需求 ..................................................................... 12 第三章 系統(tǒng)總體設(shè)計(jì) .............................................................. 14 系統(tǒng)總體設(shè)計(jì)目標(biāo) ............................................................. 14 系統(tǒng)概要設(shè)計(jì) ................................................................. 14 系統(tǒng)模塊結(jié)構(gòu)設(shè)計(jì) ........................................................ 14 計(jì)算機(jī)物理系統(tǒng)配置方案設(shè)計(jì) .............................................. 15 系統(tǒng)功能模塊 ................................................................. 15 系統(tǒng)總體功能模塊 ........................................................ 16 拍照解碼功能模塊 ........................................................ 16 第四章 系統(tǒng)詳細(xì)設(shè)計(jì) .............................................................. 17 系統(tǒng)流程圖 ................................................................... 17 圖片處理過(guò)程圖 ............................................................... 17 界面設(shè)計(jì) ..................................................................... 18 第五章 系統(tǒng)編碼實(shí)現(xiàn) .............................................................. 20 基本編碼設(shè)置 ................................................................. 20 相機(jī)預(yù)覽實(shí)現(xiàn) ................................................................. 21 關(guān)閉相機(jī)實(shí)現(xiàn) ................................................................. 22 拍照解碼實(shí)現(xiàn) ..............................................................