基于绘画的计算机辅助设计系统研究

2020-09-21 08:48:49翟景华
现代电子技术 2020年17期

翟景华

摘  要: 针对传统计算机辅助设计系统的反应时间较慢的问题,研究一种基于绘画的计算机辅助设计系统。设计一种绘画数位板,使用一款CMOS感光芯片,利用SMBus接口连接ROM和PIC18单片机内核,用来传输绘画过程中的特征数据,辅助计算机处理,主板单片机选用可重复擦写的AT24C20芯片,连接3个16位定时器,完成计算机辅助设计系统的硬件设计。软件部分首先提取绘画时呈现出的元素特征,利用基于小波变换事物边缘点的提取方法提取元素中的梯度因子,利用梯度因子迭代分割与配准,得到各元素特征,利用Java编程将计算得到的元素特征输入到系统中,完成软件部分的设计。实验结果表明,与传统计算机辅助设计系统相比,基于绘画的计算机辅助设计系统的反应速度更快,更适合实际使用。

关键词: 计算机辅助设计系统; 绘画元素; 系统反应时间; 数位板; 元素特征; 笔迹

中图分类号: TN99?34; X924                     文献标识码: A                       文章编号: 1004?373X(2020)17?0183?04

Abstract: In view of the long response time of the traditional CAD (computer aided design) system, a kind of CAD system based on drawing is studied. In terms of the system hardware, a digitizing tablet is designed. A CMOS (complementary metal?oxide semiconductor) photosensitive chip is used to connect ROM (read only memory) and SCM (single chip microcomputer) kernel PIC18 by interface SMBus (system management bus), so as to transmit the feature data in the drawing process. The rewritable chip AT24C20 is used as the SCM of auxiliary computer processing motherboard, and the auxiliary computer processing motherboard is connected to three 16?bit timers. So far, the hardware design of CAD system is completed. In terms of the software, the element features presented in the drawing are extracted first, and then the gradient factors in the elements are extracted with the wavelet transform based method of extracting the edge points of things. In addition, the iterative segmentation and registration of the gradient factors are used to get the element features, which are input into the system by Java programming. So far, the software design is completed. The experimental results show that, in comparison with the traditional CAD system, the drawing?based CAD system is of shorter response time and is more suitable for practical use.

Keywords: CAD system; drawing element; system response time; digitizing tablet; element feature; handwriting

0  引  言

随着计算机视觉技术的不断发展,在绘画上运用计算机辅助设计已经成为一项成熟的技术[1]。利用计算机辅助绘画,可以解决传统绘画方法无法随意改动的问题,计算机具有强大的多媒体功能,可以将抽象的问题表现出来[2]。在实际设计机械加工图纸和建筑制图图纸时,对于复杂和不容易表示清楚的部分,使用计算机辅助系统修订图纸时不需要重新画图,节省了设计工时[3]。计算机辅助设计系统可以在修订绘画设计的缺陷时,将有问题的设计文件从计算机中调出,在计算机上稍微改动设计图纸就可以,大大节省了改动时间。……

登录APP查看全文