Abstract:Up to now, in most network cable factories, the detection of twistedpair pitch is still completed by manual sampling test. In china, most of the existing twistedpair pitch detection methods based on machine vision are remained in laboratory stage. In real production line, the detection results of these methods cannot satisfy the actual industrial detection requirements. Aiming at this problem, a realtime detection method is proposed for twistedpair pitch based on edge reconstruction. The method firstly extracts the edge data of the twistedpair with fast twisted pair edge detection method, and then reconstructs the twisted pair edge with Hammerstein model and hybrid particle swarm optimization (HPSO) algorithm. By this way, the method can filter out noise and obtain smooth twistedpair edge curve with precise twisted point position. On this basis, the twistedpair pitch data can be obtained finally through finding the twisted point positions. Through testing, the method can detect 125 m cable product per minute, the detection error is controlled between -161%~158%, all the specifications can meet the requirements of industrial realtime detection, and this method has high practical application value.