The invention relates to the technical field of
machine vision, in particular to a cigarette box stack type
anomaly detection method and device based on
binocular vision, and the method comprises the steps: S1, collecting an image of each type of standard stack, forming three-dimensional
point cloud data, and building a
standard model; s2, determining whether an object exists or not by using two visual angles provided by the binocular camera; s3, collecting images under two visual angles, determining an overlapping region of the two images, detecting feature points in the overlapping region, matching the two images through the feature points, and then aligning and splicing the two images; and S4, generating three-dimensional
point cloud data of the stack
pile by calculating
parallax of the image, segmenting and identifying each cigarette box, comparing the three-dimensional
point cloud data of the current category with the
standard model of the stack
pile of the corresponding category, and judging whether the cigarette box in the stack
pile is abnormal or not. According to the method, the images are collected through the binocular camera, the three-dimensional
data point cloud picture is obtained, the category, the position and the shape of each
smoke box are recognized, and the stack abnormal condition is comprehensively detected in real time.