The invention discloses an
aviation electric
connector pin position deviation detection method and belongs to the field of
machine vision high-precision detection, for solving the problems of low efficiency and proneness to missed detection existing in manual detection of an electric connector. According to the
aviation electric
connector pin position deviation detection method, pin template images with different specifications are made; electric
connector pin images are obtained; an area of interest with the pin images is reserved, and background interference is filtered; coordinates of
optimal matching points are obtained as approximate positions of pins by performing
template matching on the electric connector pin images by use of the pin template images; search is carried out by taking the approximate positions of the pins as centers, pin bright spots are sought, calculated
mass center positions are taken as position information of the pin centers under an image coordinate
system, then after the position information is converted into position information under an actual physical coordinate
system, the position information under the actual physical coordinate
system is compared to an electric connector
contact hole position arrangement standard in a
national standard, and whether pin position deviations are within an allowed scope is determined. The method has the advantages of high precision, high
automation efficiency and low
miss rate.