基于Android平臺(tái)的電阻式觸摸屏校準(zhǔn)算法的研究與實(shí)現(xiàn)
本文選題:Android + 觸摸屏; 參考:《北京交通大學(xué)》2012年碩士論文
【摘要】:21世紀(jì)是以網(wǎng)絡(luò)為核心的信息時(shí)代,網(wǎng)絡(luò)已經(jīng)成為信息社會(huì)的命脈和全球經(jīng)濟(jì)發(fā)展的重要基礎(chǔ)。Android是Google公司也在2007年11月5日推出的一個(gè)開(kāi)源的,從它面世至今一直是程序員熱衷開(kāi)發(fā)的對(duì)象。越來(lái)越多的移動(dòng)終端開(kāi)始采用Android作為操作系統(tǒng)。由于輸入操作的需要,移動(dòng)終端均選用一塊全觸屏作為其主要的輸入方式,大部分的觸摸屏為電阻式觸摸屏。由于存在機(jī)械誤差和放大因素存在的誤差,幾乎所有電阻式觸摸屏的設(shè)備在出廠前均要經(jīng)過(guò)一定的校準(zhǔn)。同時(shí),Android源碼中沒(méi)有提供觸摸屏校準(zhǔn)的程序。因此,觸摸屏校準(zhǔn)算法的研究至關(guān)重要。 本文設(shè)計(jì)的觸摸屏校準(zhǔn)算法適用于Android2.3平臺(tái),在簡(jiǎn)要介紹了Android系統(tǒng)和觸摸屏的工作原理后,分析了Android系統(tǒng)的框架結(jié)構(gòu)、應(yīng)用程序的特點(diǎn)和Android開(kāi)發(fā)環(huán)境的搭建。接著,重點(diǎn)研究了觸摸屏校準(zhǔn)的原理,推導(dǎo)了經(jīng)典的校準(zhǔn)公式,并介紹了常用的觸摸屏校準(zhǔn)算法。同時(shí),對(duì)觸摸屏校準(zhǔn)算法的進(jìn)行了優(yōu)化,總結(jié)出本文中的校準(zhǔn)算法,并通過(guò)添加結(jié)果濾波和中值計(jì)算,減少了各種噪聲對(duì)觸摸屏的點(diǎn)坐標(biāo)數(shù)據(jù)的影響,提高了校準(zhǔn)的精度。 通過(guò)搭建Android開(kāi)發(fā)平臺(tái),設(shè)計(jì)了一種可以在Android系統(tǒng)中使用的校準(zhǔn)程序,對(duì)觸摸屏上獲得的點(diǎn)坐標(biāo)進(jìn)行校準(zhǔn)。經(jīng)交叉編譯后,將觸摸屏的校準(zhǔn)程序運(yùn)行在S3C6410平臺(tái)上進(jìn)行測(cè)試。測(cè)試結(jié)果顯示,經(jīng)過(guò)校準(zhǔn)后的觸摸屏,對(duì)于用戶(hù)觸摸點(diǎn)的坐標(biāo)判斷的準(zhǔn)確性和靈敏度都有了很大的提高,可以完成快速、準(zhǔn)確的坐標(biāo)變換功能。掌握這種技術(shù),對(duì)于降低移動(dòng)終端的成本至關(guān)重要。
[Abstract]:The 21st century is the information age with the network as the core. The network has become the lifeblood of the information society and the important foundation of the global economic development. It has been an object that programmers are keen to develop ever since it came out. More and more mobile terminals begin to use Android as the operating system. Because of the need of input operation, the mobile terminal chooses a full touch screen as its main input mode, and most of the touch screen is resistive touch screen. Because of the mechanical error and the error of magnification, almost all the resistive touch screen equipments have to be calibrated before leaving the factory. At the same time, Android source code does not provide touch-screen calibration procedures. Therefore, the research of touch screen calibration algorithm is very important. The calibration algorithm of touch screen designed in this paper is suitable for Android2.3 platform. After briefly introducing the working principle of Android system and touch screen, the frame structure of Android system, the characteristics of application program and the construction of Android development environment are analyzed. Then, the principle of touch screen calibration is studied, the classical calibration formula is deduced, and the commonly used touch screen calibration algorithm is introduced. At the same time, the calibration algorithm of touch screen is optimized, and the calibration algorithm in this paper is summarized. By adding the result filter and median calculation, the influence of various noises on the point coordinate data of touch screen is reduced, and the accuracy of calibration is improved. By building the Android development platform, a calibration program can be used in the Android system to calibrate the point coordinates obtained on the touch screen. After cross-compiling, the calibration program of touch screen is run on S3C6410 platform for test. The test results show that the calibrated touch screen can improve the accuracy and sensitivity of the user's touch point coordinate judgment greatly and can complete the rapid and accurate coordinate transformation function. Mastering this technology is essential to reduce the cost of mobile terminals.
【學(xué)位授予單位】:北京交通大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2012
【分類(lèi)號(hào)】:TP334.3
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 張春,郭興眾;雙環(huán)模糊調(diào)速系統(tǒng)的設(shè)計(jì)與仿真研究[J];安徽工程科技學(xué)院學(xué)報(bào)(自然科學(xué)版);2003年02期
2 吳素平;劉飛;;直流電機(jī)調(diào)速系統(tǒng)模糊控制仿真分析[J];長(zhǎng)沙電力學(xué)院學(xué)報(bào)(自然科學(xué)版);2006年04期
3 何世杰;;基于S3C2410的觸摸屏驅(qū)動(dòng)開(kāi)發(fā)及校準(zhǔn)算法[J];電腦知識(shí)與技術(shù);2010年19期
4 亢海偉,楊慶芬,王碩禾;基于MATLAB模糊邏輯工具箱的模糊控制系統(tǒng)仿真[J];電子技術(shù)應(yīng)用;2000年02期
5 楊偉鈞;戴青云;張輝;何最紅;;基于STC單片機(jī)的觸摸屏五點(diǎn)校準(zhǔn)算法設(shè)計(jì)與實(shí)現(xiàn)[J];儀器儀表用戶(hù);2008年03期
6 陳昱;江蘭帆;;基于Google Android平臺(tái)的移動(dòng)開(kāi)發(fā)研究[J];福建電腦;2008年11期
7 許榮斌;謝瑩;朱永紅;;觸摸屏校準(zhǔn)常用算法分析[J];工業(yè)控制計(jì)算機(jī);2006年04期
8 高煥堂;;迎接IT第三波:移動(dòng)時(shí)代[J];程序員;2008年01期
9 孟巖;;Android組件模型評(píng)析(上)[J];程序員;2008年01期
10 差沙;地獄男爵;;用Android開(kāi)發(fā)手機(jī)應(yīng)用[J];程序員;2008年01期
,本文編號(hào):1851341
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1851341.html