基于动态链接库的小幅面扫描仪驱动程序的设计与实现
发布时间:2018-11-15 15:17
【摘要】:扫描仪作为一种常见的计算机输入设备,在工作和学习中的应用越来越广泛,扫描速度和图像质量是衡量其性能的主要指标。因此,用精简的软件结构、较快的扫描速度来产生高质量的图像越来越受到用户的青睐。 本文通过对实验室现有的专业扫描仪驱动程序的三层结构的分析,尝试精简软件结构,在复用原有系统框架的基础上进行一些结构的调整,使其能够适用于小幅面的扫描仪。精简之后的驱动程序分为上层Windows驱动软件和底层硬件系统,去掉了原系统的中间层嵌入式控制系统,把原系统中与扫描芯片操作有关的代码编译到动态链接库中,让上层Windows驱动程序直接调用动态链接库的接口函数来实现扫描功能。为了提高图像获取速度,本项目采用USB通信协议与硬件传输命令和图像数据,采用多线程技术进行图像数据的读取,采用更加快速的GL847扫描仪控制芯片来提高数据的采集速度。动态链接库的使用使软件的复用性得到了提高,在一定程度实现了软件结构的简化。 本文重点介绍了动态链接库模块的分析与设计,在后期联机调试的过程中,发现复用的原驱动程序中的图像色彩增强模块存在一些问题,,这些问题严重影响了用户的体验。针对这些问题,本文给予了分析并进行修复。通过调试,验证了动态链接库中各个模块的可行性和有效性,达到了预期的效果。
[Abstract]:As a common computer input device, scanner is widely used in work and study. Scan speed and image quality are the main indexes to measure its performance. Therefore, it is more and more popular to produce high quality images with simplified software structure and faster scanning speed. By analyzing the three-layer structure of the present professional scanner driver in laboratory, this paper attempts to simplify the software structure and make some structural adjustments on the basis of reuse of the original system framework, so that it can be applied to the scanner with small format. The simplified driver is divided into the upper Windows driver software and the underlying hardware system. The embedded control system in the middle layer of the original system is removed, and the code related to the operation of the scanning chip is compiled into the dynamic link library. Let the upper Windows driver directly call the dynamic link library interface function to realize the scanning function. In order to improve the speed of image acquisition, the project adopts USB protocol, hardware to transmit commands and image data, multithread technology to read image data, and a faster GL847 scanner control chip to improve the speed of data acquisition. The use of dynamic link library improves the reusability of software and simplifies the software structure to a certain extent. This paper mainly introduces the analysis and design of dynamic link library module. In the process of on-line debugging, we find that there are some problems in the image color enhancement module of the reused original driver, which seriously affect the user's experience. In view of these problems, this article gives the analysis and carries on the repair. Through debugging, the feasibility and effectiveness of each module in DLL are verified, and the expected effect is achieved.
【学位授予单位】:西安电子科技大学
【学位级别】:硕士
【学位授予年份】:2013
【分类号】:TP334.22;TP391.41
本文编号:2333660
[Abstract]:As a common computer input device, scanner is widely used in work and study. Scan speed and image quality are the main indexes to measure its performance. Therefore, it is more and more popular to produce high quality images with simplified software structure and faster scanning speed. By analyzing the three-layer structure of the present professional scanner driver in laboratory, this paper attempts to simplify the software structure and make some structural adjustments on the basis of reuse of the original system framework, so that it can be applied to the scanner with small format. The simplified driver is divided into the upper Windows driver software and the underlying hardware system. The embedded control system in the middle layer of the original system is removed, and the code related to the operation of the scanning chip is compiled into the dynamic link library. Let the upper Windows driver directly call the dynamic link library interface function to realize the scanning function. In order to improve the speed of image acquisition, the project adopts USB protocol, hardware to transmit commands and image data, multithread technology to read image data, and a faster GL847 scanner control chip to improve the speed of data acquisition. The use of dynamic link library improves the reusability of software and simplifies the software structure to a certain extent. This paper mainly introduces the analysis and design of dynamic link library module. In the process of on-line debugging, we find that there are some problems in the image color enhancement module of the reused original driver, which seriously affect the user's experience. In view of these problems, this article gives the analysis and carries on the repair. Through debugging, the feasibility and effectiveness of each module in DLL are verified, and the expected effect is achieved.
【学位授予单位】:西安电子科技大学
【学位级别】:硕士
【学位授予年份】:2013
【分类号】:TP334.22;TP391.41
【参考文献】
相关期刊论文 前2条
1 吴汉颖;;解读形形色色的Gamma[J];广东印刷;2007年01期
2 曾嘉亮;;Gamma校正的快速算法及其C语言实现[J];信息技术;2006年04期
相关硕士学位论文 前9条
1 张朋昌;基于GL847的大幅面图像数据采集系统底层驱动软件研究与实现[D];西安电子科技大学;2010年
2 张斌;基于多线程的多CCD扫描仪驱动程序设计与实现[D];西安电子科技大学;2010年
3 吴晓康;图像采集控制模块设计与实现[D];西安电子科技大学;2010年
4 侯武蓉;多CCD扫描仪图像处理模块的研究与实现[D];西安电子科技大学;2010年
5 鲜征征;USB通信协议及接口驱动程序的研究与开发[D];电子科技大学;2005年
6 蒋勇;多CCD大幅面扫描仪的驱动程序设计与实现[D];西安电子科技大学;2006年
7 杜世清;基于动态链接库技术的族性化学结构检索系统[D];大连理工大学;2006年
8 陈劭;基于多线程应用的异构多核体系设计与实现[D];上海交通大学;2008年
9 郭宗飞;基于GL842的大幅面CIS扫描仪Linux驱动程序设计与实现[D];西安电子科技大学;2011年
本文编号:2333660
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2333660.html