基于形态学处理算法的条烟复核技术
Cigarette Carton Check System Based on Morphological Processing Algorithm
-
摘要: 为解决传统人工条烟复核方法与现有高速自动卷烟分拣系统不匹配等问题,基于形态学处理算法,利用条烟条码唯一性,提出了一种条烟图像自动识别方法。采用正方形自适应结构元素形态学算法处理二值化图像,减少条码内部条空区域对连通域的干扰,得到多个候选子连通域;采用子区域筛选方法定位条码区域,通过投影法定位可识别的字符并分割数字,完成条烟信息识别。以不同姿态不同品种的条烟图片在Matlab中进行仿真实验,测试条码定位分割算法的鲁棒性。结果表明:①该方法能够有效避免条烟表面字符、图形信息及光照噪声带来的干扰。②投影法可将供人识别字符与条空区域快速分割开,实现数字的有效定位,对于条码倾斜、低像素图像的数字分割效果良好。③加权模板匹配法结合模糊判别准则的数字识别算法,对于低品质数字以及易混淆数字均具有较好的识别效果。④在现场测试条件下,系统识别效率可达2686次/h,准确率达95.2%。在满足系统要求下,采用该方法能够大幅提升条烟图像识别效率和准确性。Abstract: To match a carton check system with the throughput of the high-speed automatic cigarette sorting system,an automatic carton image recognizing method based on morphological processing algorithm was proposed on the basis of unique carton bar code.The binarized images were processed by the square self-adaptive structure element morphological algorithm to minimize the interference of blank zones in a barcode on connected domain and obtain several candidate connected subdomains.By subrange filtering method to position barcode range,by projection method to position the discernible characters,segment figures and complete the recognition of carton information,the simulation experiment was conducted with pictures of cigarette cartons of different brands and randomly placed in Matlab to test the robustness of barcode positioning and segmentation algorithm.The results showed that:1) The method effectively avoided the interferences brought about by character,image information and illuminating noises from carton surface.2) Projection method segmented visible characters from blank zones in barcode quickly,implemented effective figure positioning and performed well in figure segmentation for oblique barcode,low pixel image.3) Low quality or indistinguishable figures were well recognized by weighted matching algorithm combined with fuzzy criterion number recognition algorithm.4) On-site testing showed that the recognition efficiency of the system reached 2 686 times per hour with the accuracy of 95.2%.
下载: