Abstract:The color coherence vector method is used to detect the line order of various connection lines. Firstly, the collected image of the wire harness is filtered by median filter to eliminate the noise. Then, the image of the detection area of the wire harness is cropped and binarized. After that, each wire is segmented to get their contours. According to the position of each wire, the corresponding image blocks of each wire in the original image are extracted, and whose color coherence vector (CCV) features are calculated. Finally, the normalized CCV features of each detected wire and the features of each wire in the template are compared by using Euclidean distance. The experimental results show that the proposed method can achieve high accuracy (97.8%) and speed (15fps) in the line order detection, and meets the real-time detection requirements.