针对现有的基于图像处理的棒材计数方法不准确且不能适应不同直径和不同切断工艺的问题,提出一种利用迭代霍夫圆变换和多阈值连通区域面积法统计实现成捆棒材的可靠计数。该方法先提取成捆棒材在图像中的位置即感兴趣区域(ROI)并规格化,再对规格化后的ROI进行迭代霍夫圆变换提取棒材进行计数,最后进行多阈值连通区域面积法统计遗漏棒材,并与迭代霍夫圆变换计数结果求和得到最终计数结果。实验表明,该方法计数准确率高,能适应不同棒材直径和不同的切断工艺。
Existing steel bar counting methods based on image processing are not accurate and cannot adapt to steel bar diameter variation, or changes in the production process. This paper presents an au- tomatic steel bar counting method which makes use of an iterative Hough round transformation and a multi-threshold connectivity area. The algorithm first extracts ROI by morphological operations. Then, it scales the image size according to the diameter of the input steel bars to the standardization diameter size to accommodate the bars diameter change. Nest, an iterative Hough round transforma- tion is applied to the scaled ROI to extract steel bars. Finally, a multi-threshold connectivity area method is used to calculate the remaining bars. Experiments show that the algorithm can adapt to the steel bar diameter changes and changes in the production process with high accuracy.