基于凹点搜寻的棒材计数方法研究

Research of Counting Method of Bars Based on Concave Dots Searching

  • 摘要: 针对现有的成捆棒材计数方法存在计算速度低、色差偏差大、计算量大、易受边缘模糊及残缺影响的问题,提出了一种通过对成捆棒材中的黏连棒材进行分割,然后统计连通区域,从而达到棒材计数目的的新方法。该方法首先对成捆棒材的图像进行预处理,利用Canny边缘检测获得黏连棒材的边缘轮廓,然后在此轮廓上扫描凹区域,将临近的凹点作为一个凹点群,取其中最突出的点作为此处凹点;再利用凹点匹配条件进行匹配,以匹配成功的凹点对作为界限来分割图像,最后统计分割后的连通区域,即达到计数的目的。实验结果表明, 该方法对于黏连棒材的分割特别准确,分割后的图像边缘与成捆棒材的实际边缘很贴近,在无互相遮挡的情况下,直径为12 mm以上的钢筋的分割准确率达到99.99%以上,直径为10~12 mm的钢筋的分割准确率在99.80%以上,达到了企业认可的标准。

     

    Abstract: In view of problems that current counting methods of bundles of bars have low rate of calculation, great color bias and large calculated amount, and are easy to be influenced by vague or incompletion edge, the paper proposed a new counting method of bars by dividing adherent bars and counting connected areas. Firstly, the method pre-processes images of bundles of bars and uses Canny edge detection to obtain edge contour of adherent bars, then scans concave areas in the contour, takes the close concave dots as a concave dot group, and takes the most prominent point as a concave dot. Next, it uses concave dot matching condition to segment the image with those successfully matched concave dots. Finally, it counts connected areas segmented to achieve counting purpose. The experiment result showed that the method has a high accuracy for segmentation of adherent bars, and the segmented edge of image is very similar to the real edge of bundles of bars. The accuracy ratio of segmentation for steel bars whose diameters are above 12 mm is than 99.99%, while the one for steel bars whose diameters are between 10 mm and 12 mm is more than 99.80% without blooking, which satisfies the accepted standard of enterprises.

     

/

返回文章
返回