The invention provides a packaging box
anomaly detection method and device based on semantic constraint and geometric prior, and relates to the technical field of defect detection.The method comprises the steps that local geometric description information is extracted from three-dimensional
point cloud data and input into a geometric
perception measurement module to generate a geometric reliability coefficient; performing adaptive modulation on a
local scale parameter based on
direction vector prediction by using the coefficient, and constructing a multi-
modal anomaly metric constrained by geometric prior; and inputting a to-be-detected sample into the
anomaly detection model obtained by training, calculating a local anomaly metric value of each region through the multi-
modal anomaly metric, generating an anomaly
score graph reflecting an anomaly degree, and performing threshold segmentation and connected
domain analysis to realize detection and positioning of the anomaly of the packaging box. According to the method, high-precision packaging box
anomaly detection can be realized under the condition of not depending on a large amount of
manual annotation data, and the reliability and efficiency of packaging box quality detection are remarkably improved.