摘要
为了减轻制图教师批改尺规作业的工作量,提出一种基于图像处理的匹配算法。首先将纸质版作业拍照为图像;然后对图像进行灰度化,利用OTSU方法二值化,对有效区域进行裁剪,调节标准答案与学生作业像素尺寸大小,采用帧差法进行标准答案和学生作业的匹配,将标准答案与学生作业相减得出不同之处;最后在学生作业中将不同之处标记出来,从而实现尺规作业的自动批改。通过实验验证,该方法能快速准确地批改尺规作图。对于采用AutoCAD等软件绘图的作业只需另存为图片格式,同样适用于本文所述方法。
In order to reduce the workload of drawing teachers in correcting ruler-and-compass construction assignments,this paper proposes a matching algorithm based on image processing.Firstly,the paper homework is photographed as an image that is then grayed and binarized by OTSU method.The effective area is clipped,and the pixel size of the standard answer and the students'homework are adjusted.The frame difference method is used to match the standard answer and students'homework.The standard answer and the students'homework are subtracted to get their differences,which are finally marked in students'homework.Therefore,the automatic correction of students'homework is realized.The experimental results show that the method can correct ruler-and-compass construction homework quickly and accurately.The proposed method also applies to drawing homework with software such as AutoCAD,which only needs to be saved as an image format.
作者
朱文博
杜锋
ZHU Wenbo;DU Feng(School of Mechanical Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China)
出处
《软件工程》
2021年第11期42-46,共5页
Software Engineering
关键词
图像处理
图像匹配
帧差法
工程制图作业
自动批改
image processing
image matching
frame difference method
engineering drawing homework
automatic correction