针对棒材生产车间环境的复杂性和现有棒材计数方法的不精确性,文中提出了一种准确,高效的棒材自适应计数方法。该方法采用局部二元模式描述棒材的截面纹理,有效地将棒材截面图像与复杂的背景进行分离,使用阈值渐增的二值化方法获取图像中的局部灰度极大值,将此最大值点作为棒材的中心点。最后对棒材的半径使用聚类方法对误判点进行过滤,进而统计计数。实验结果表明,该方法极大地提高了棒材计数的效率,并将识别准确率提高到了98%。
In order to resolve the problem of the complexity of the bar production plant environment and the inaccuracy of the existing counting methods, an accurate and efficient adaptive bars counting method is presented in this paper. This method uses the principle of local binary pattern to describe the texture of the bar cross-section, which effectively separates the background of the steel bars. And it uses binarization method with incre4~ing threshold to get the local maximum value of the gray level image, as the center point of the bar. At last, on the radius uses clustering method to filter the misjudged points and then counts statistics. The experiments show that this method greatly improves the efficiency and the accurate to ninety eight percent.