The invention belongs to the field of
visual inspection technologies and relates to an irregular part detection and positioning method. The method includes the following steps that: step 1, the template image of a part is collected, a
contour matching algorithm for the template image is established; step 2, a transfer device transfers a part to be tested to a position under a photographing device;step 3, a strip
light source lamp is turned on so as to perform auxiliary illumination; step 4, the image is binarized; step 5,
contour matching algorithm operation is performed on the image, so thatposition information can be obtained; step 6, the position information is transmitted to an external device, and numerical display
algorithm operation is performed on the position information, so that a readable position numerical value and angle numerical value are obtained. Therefore, the influence of ambient light can be eliminated, at the same time, an entire workpiece can be uniformly illuminated, and therefore, high-contrast image information can be obtained, so that
software analysis can be facilitated; and therefore, with the above equipment, steps and algorithms adopted, manufacturing use costs can be controlled, and the accuracy of detection and positioning can be ensured.