摘要
在对电能计量装置上的Data Matrix码进行识别过程中,拍摄角度、光照等因素会给识别过程带来困难.针对这一问题,提出一种基于局部阈值与Otsu算法的Data Matrix码识别算法.该算法首先将彩色图像进行灰度化处理,并使用中值滤波算法滤除噪声,将局部阈值与Otsu算法相结合来实现对Data Matrix码图像的二值化处理;然后,利用腐蚀、膨胀等算法进一步滤除背景,采用Canny算法检测Data Matrix码边缘;最后,使用Hough变换提取L形区域,并进行旋转、插值等操作实现对二维码区域的识别.实验结果表明,本方法在复杂光照、复杂拍摄角度的条件下,可实现对Data Matrix码的完整提取与识别,对Data Matrix码在电能计量装置上的推广有重要意义.
In the process of recognizing Data Matrix code used in the electric energy metering device,the shooting angle,illumination may cause difficulty.Aiming at this problem,this paper proposes a Data Matrix code recognition algorithm based on local threshold and Otsu algorithm.The algorithm firstly gradates the color image,and uses the median filtering algorithm to filter out the noise.The local threshold is combined with the Otsu algorithm to realize the binary processing of the Data Matrix code image.And then,the corrosion algorithm and expansion algorithm are utilized to further filter out the background,and the Canny algorithm is used to detect the edge of the Data Matrix code.Finally,the Hough transform is used to extract the L-shaped region,the rotation operation and interpolation operation are performed to realize the recognition of the twodimensional code region.The experimental results show that the method can realize the complete extraction and identification of Data Matrix code under the condition of complex illumination and complex shooting angle,which is of great significance to the promotion of Data Matrix code on electric energy metering device.
作者
李波
曹敏
李仕林
杨明
林聪
姚鸿泰
王先培
LI Bo;CAO Min;LI Shilin;YANG Ming;LIN Cong;YAO Hongtai;WANG Xianpei(Electric Power Research Institute of Yunnan Power Grid Co.,Ltd.,Kunming 650217,China;Key Laboratory of CSG for Electric Power Measurement,Kunming 650217,China;School of Electronic Information,Wuhan University,Wuhan 430072,China)
出处
《武汉大学学报(工学版)》
CAS
CSCD
北大核心
2019年第11期1020-1027,共8页
Engineering Journal of Wuhan University
基金
国家自然科学基金项目(编号:51707135)
南方电网公司重点项目(编号:YNKJQQ00000283)
云南电网公司重点项目(编号:YN2014-2-001)