The invention discloses a cigarette hard
carton damage defect detection
system and method, and the
system comprises an image collection unit which comprises a shooting angle adjustable camera shooting
assembly and an array type LED
light source assembly; the
image processing unit is used for carrying out gray
processing,
edge detection, dynamic binarization, denoising,
sharpening enhancement and the like on the acquired image, and the
image detection unit is used for generating a dynamic
mask area to carry out defect detection on the
image based on a detected straight line and dynamic rectangular tracking
algorithm. Performing
spatial positioning on spots in the
image based on a rectangular matching
algorithm of coordinate transformation, and when detecting that a certain spot is not in any rectangular range, judging whether the spot is a defect or not by combining a grading
algorithm based on a color block area threshold value; and the result
execution unit is used for outputting the defect detection result to the
elimination mechanism, the early warning mechanism and the display
assembly. According to the invention, the embedded
visual detection module is used for carrying out
machine visual online detection on the damage and scratch defects of the
carton, so that the sound-light alarm and
elimination of the defective cigarette
carton are realized, the defective cigarette carton is prevented from entering the next process, the long-time tracing caused by difficulty in finding problems is also avoided, and the production efficiency is improved. And the control capability of a workshop aiming at the carton defect quality problem is greatly improved.