The invention relates to the technical field of AI vision, in particular to a
sesame seed candy forming defect real-time detection method and device based on AI vision. The method comprises the following steps: respectively collecting multimode images of qualified
sesame seed candies, generating a qualified characteristic
fingerprint set, and calculating
sugar body
light transmission uniformity and sesame adhesion density as
a domain parameter set; constructing a probability
distribution model, and setting an anomaly judgment threshold value and
a domain parameter early warning threshold value; collecting a multi-mode image of the to-be-detected
sesame seed candy in real time, extracting a to-be-detected feature
fingerprint, and calculating the light-transmitting uniformity of a to-be-detected candy body and the sesame adhesion density; calculating a comprehensive abnormal
score, and judging a defect; and capturing a low-confidence sample based on the comprehensive anomaly
score, obtaining an artificial correction feedback sample, and updating a probability
distribution model, an anomaly judgment threshold value and
a domain parameter early warning threshold value by utilizing the feedback sample through online
incremental learning. According to the invention, the detection cost of a high-yield
production line can be reduced, and the model deployment period is shortened.