首先设计并实现一个基于摄像头的阅卷系统,该系统由试卷获取、灰度化、二值化、畸变变换、倾斜校正、图像定位和识别等图像处理流程组成.然后以此为依据,通过对重构技术及设计模式原则和方法的系统研究,对该系统框架进行优化和重构.本文充分参照现有的设计模式,通过重构技术,改善现有代码的质量,增加系统的可维护性和可复用性.%This paper designs and implements a camera-based information-card review system, which consists of a series of image process operations such as image acquisition, converting RGB into grayscale image, binary image, optic aberrance revising, skew angle correction, locating and identifying of image. Then optimized and refactored the framework of the system according to the systematic research of software refactoring and design patterns. This paper makes full refers to design patterns and improves the quality of existing code by the refactoring technology, and increases the system's maintainability and reusability.
展开▼