The invention relates to the technical field of appearance detection, and discloses a detection method suitable for product appearance, comprising the following steps: S1, after receiving a photographing instruction, photographing by a camera; s2, performing
template matching on the current picture instance; s3, after matching, creating an ROI (
Region of Interest) by taking the instance as the center, and
cutting the picture by utilizing the current ROI; s4, carrying out preprocessing on the
cut picture; s5, performing
spot analysis on the
grayscale image; s6, creating an ROI (
Region of Interest) according to the maximum area, and
cutting the picture by utilizing the ROI; s7, calling a
deep learning module to carry out defect detection on the
cut picture; s8, selecting defects meeting conditions by utilizing a
spot analysis tool, and generating a defect effect picture; s9, performing data dequeuing; and S10, sending an OK / NG
signal, storing the picture, and ending the process. By performing
template matching,
cutting,
gray level picture conversion and
spot analysis on the product appearance shot picture and further performing cutting multiple
processing, the product detection accuracy is ensured, the product detection efficiency is improved, and the production time is saved.