计算机应用 ›› 2014, Vol. 34 ›› Issue (10): 3014-3019.DOI: 10.11772/j.issn.1001-9081.2014.10.3014

• 虚拟现实与数字媒体 • 上一篇    下一篇

基于图像检测的双绞线绕距测量方法

王刚,石守东,林宜丙   

  1. 宁波大学 信息科学与工程学院,浙江 宁波 315211
  • 收稿日期:2014-04-28 修回日期:2014-06-18 出版日期:2014-10-01 发布日期:2014-10-30
  • 通讯作者: 王刚
  • 作者简介:王刚(1989-),男,浙江绍兴人,硕士研究生,主要研究方向:图像处理;石守东(1964-), 男,浙江宁海人,副教授,博士,主要研究方向:机器视觉、图像处理;林宜丙(1991-),男,福建宁德人,硕士研究生,主要研究方向:图像处理。
  • 基金资助:

    “信息与通信工程”浙江省重中之重学科开放基金资助项目

Pitch measurement methed of twisted-pair wire based on image detection

WANG Gang,SHI Shoudong,LIN Yibing   

  1. College of Information Science and Engineering, Ningbo University, Ningbo Zhejiang 315211, China
  • Received:2014-04-28 Revised:2014-06-18 Online:2014-10-01 Published:2014-10-30
  • Contact: WANG Gang
  • Supported by:

    Information and communication engineering priority discipline open fund in zhejiang province

摘要:

针对双绞线绕距测量,提出了一种图像检测框架。此框架通过图像分割、修复、细化、拟合以及比例尺的设置,可实时计算出双绞线绕距值。在此框架下,针对传统二维最大类间方差法——Otsu运行时间较长的问题,提出了一种新的基于区域斜分的快速算法。快速算法通过对二维直方图区域重新划分,结合快速查找表以及递推算法,大大减少了分割时间。针对图像缺失的问题,采用了基于边缘检测的算法对其特定区域进行填充修复,并对修复后的图像进行细化。通过最小二乘法,拟合细化图像中的单像素点,得到拟合曲线。通过计算拟合曲线交点间的距离可得双绞线绕距的图像距离。最后将图像距离按比例尺转换为绕距的测量值。实验结果表明,基于区域斜分的快速算法其分割时间约为传统算法的0.22%,且两种算法的分割效果基本一致。将图像检测方法测得的绕距值与其真实值进行比较,结果表明测量值与真实值的绝对误差为0.48%。通过使用图像检测方法测量双绞线绕距,可以准确测得绕距值,提高绕距测量的效率。

Abstract:

To measure the pitch of twisted-pair wires, a kind of image detection framework was put forward. With image segmentation, image restoration, image thinning, curve fitting and scale setting, the pitch of twisted-pair wires was calculated in real time. In combination with this framework, to deal with the problem that the traditional two-dimensional maximum between-cluster variance algorithm (Otsu) runs too slow, a new fast algorithm based on regional diagonal points was proposed. With redefining two-dimensional histogram area, using the quick lookup table and recursion method, it reduced running time drastically. To solve the problem of image missing, an edge detection algorithm was adopted. After repairing, the image thinning operation was acted on the image. The least square method was used to fit the single pixel point of thinning image, then fitting curve was acquired. It could acquire the pitch of twisted-pair wires in the image by calculating the distance between the fitting curve intersections. Finally the distance in image was converted to an observed value by the scale. The experimental results show that the segmentation time of fast algorithm is about 0.22% of traditional algorithm. And two segmentation results of algorithms are identical. With the pitch from the image detection method comparing with its real value, results show that the absolute errors between both of them are 0.48%. Through the image detection method, the pitch is measured accurately and the efficiency of twisted-pair pitch measurement is improved.

中图分类号: