为满足工业现场对条码实用性的要求,提出了一种Data Matrix条码实用定位技术。将条码2-D的"L"形边界用1-D的距离为角度的函数来表达,根据Data Matrix条码边界特性在边界函数中求取出边界的直线方程以及旋转的角度;用圆搜索的方法减弱断裂直线对条码边界定位的影响;联立虚线边直线方程来确定虚线边的交点,达到对条码区域准确定位的目的。将此定位方法用于条码识别技术中,对像素大小为640×480的580幅图片进行测试,单个条码识别平均时间为21.93 ms,识别率为99.31%,达到实用性和可靠性的要求。
To meet the practical require ments of bar code in industrial site,we propose a practical bar code positioning technology.Using the function of 1-D distance to express the "L" shaped border of 2-D bar code,seeking out the boundary line equation and the rotation angle according to the boundary features of Data Matrix bar code in the boundary function,reducing the impact caused by fracture line of bar code boundary positioning through the way of round search,defining the intersection of dotted line through simultaneous linear equations,we can achieve the purpose of accurate positioning of bar code region.When applying the positioning technology into bar code recognition,testing the 580 images with 640×480 as their pixel sizes,we obtain the results that the average time for a single bar code recognition is 21.93ms and the recognition rate is 99.31%,which reach the requirements of practicality and reliability.