The invention discloses an
ampoule bottle printed word defect detection method based on
image registration, which comprises the following steps of: 1, acquiring an
ampoule bottle printed word image by using a
linear array industrial camera to obtain a template image and a to-be-registered image; 2, performing feature point extraction and feature point description on the template image by using an SURF
algorithm, and performing feature point extraction and feature point description on the to-be-registered image; step 3, performing
feature point matching by using an FLANN matching
algorithm; 4, according to the matched feature point pairs, calculating a
transformation matrix of the to-be-registered image mapped to the template image; 5, calibrating the to-be-registered image through the
transformation matrix, and eliminating image
distortion; and 6, carrying out image difference on the template image and the calibrated to-be-registered image to obtain a difference image, and judging whether the printed characters have defects or not according to the difference image. According to the method, the
feature extraction, matching, correction and detection of the
ampoule bottle printed character image can be quickly and effectively realized, and the detection process takes less time.