目的针对啤酒生产过程中啤酒瓶盖背景复杂、激光雕刻的电子监管码难以定位识别的问题,提出一种综合图像匹配、形态学、霍夫变换等算法的啤酒瓶盖激光字符定位算法。方法该算法先采用抗任意角度旋转的图像匹配方法实现定位符的精确定位,再对定位符图像做二值化、形态学运算、边缘检测、轮廓提取、霍夫变换等处理,最终定位到字符。结果实验表明,该算法可以抗任意角度旋转,定位准确,鲁棒性强,图像定位准确率位高达97%。结论该算法较好地解决了啤酒生产包装中,激光雕刻的电子监管码字符识别过程中因为背景复杂难以定位识别、定位识别准确率低的难题。
The work aims to put forward a new location algorithm of laser yards on beer bottle cap integrated with image matching, morphology and Hough transform, with respect to the complicated background of beer bottle cap in the process of producing beers and the problem of difficult location and recognition of electronic supervision codes engraved by laser. Firstly, an anti-arbitrary rotation image matching method was used to achieve accurate positioning of the locator. Secondly, binarization, morphological operation, edge detection, contour extraction, Hough transform and so on were carried out on the locator image. Finally, accurate positioning of the character was achieved. The experimental results showed that this method could give good positioning of arbitrary angle rotation locator and had higher veracity and robustness, and the image positioning accuracy was as high as 97%. The algorithm has properly solved such problems as difficult location and recognition and low accuracy of location and recognition due to complicated background in the process of producing beer packaging and recognizing the electronic supervision codes engraved by laser.