Method for reducing defective rate of finished products based on trademark surface parameter detection and control

The system of CCD cameras and laser detection heads detects and controls trademark surface parameters, solving the problem of high trademark defective rates in cigarette production, achieving precise detection and improving production efficiency.

CN118635141APending Publication Date: 2024-09-13HONGYUN HONGHE TOBACCO (GRP) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310223221.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-09
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

The existing technology lacks pre-production testing of trademark surface parameters in cigarette production, resulting in a high rate of defective finished products, large manual measurement errors, and low efficiency. It cannot meet the needs for accurate measurement of trademark indentation width and die-cutting size, affecting production. efficiency and product quality.

Method used

Using a system based on CCD camera and laser detection head, through pixel calibration, database modeling, information extraction and quality judgment, the position of the trademark printing pattern, die-cutting size, indentation width and depth are detected to achieve accurate detection and detection of trademark surface parameters. Control and eliminate unqualified raw materials.

Benefits of technology

It effectively reduces the rate of defective finished products, improves production efficiency, reduces material waste and downtime, enables rapid and accurate detection of the quality of trademark surface parameters, and improves detection accuracy and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118635141A
    Figure CN118635141A
Patent Text Reader

Abstract

The invention relates to a method for reducing the defective rate of finished products based on trademark surface parameter detection and control. The method comprises the following steps: firstly, inputting size parameters of various types of trademarks, trademark indentations and trademark printing patterns into a database to generate basic images, acquiring a corresponding standard trademark image in real time through a CCD (Charge Coupled Device) camera aiming at each basic image, and manually carrying out edge searching parameter optimization on the standard trademark image; edge searching parameters capable of accurately extracting the trademark, the trademark indentation and the trademark printing pattern edge on the standard trademark image are found, and database modeling is completed; carrying out sampling detection on a batch of trademarks to be detected, and extracting edge information in combination with the database model; calculating a corresponding distance through the extracted edge data information, comparing the distance with internal control, and respectively judging the surface parameter quality of the sample trademark; whether the batch trademark of the sample meets the production requirement or not is judged according to the sample surface parameter quality judgment result, unqualified batches of trademarks are removed from raw materials, and the defective rate of finished products is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a tobacco trademark quality detection and control method, in particular to a method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters. Background Art

[0002] The appearance quality of cigarettes is a top priority indicator in cigarette production, which includes the appearance quality of cigarette sticks, small boxes and carton boxes; small boxes and carton boxes are collectively referred to as trademarks in the cigarette industry. The factors determining the appearance quality of trademarks include trademark printing quality, trademark die-cutting size, and trademark die-cutting creasing quality.

[0003] Defects in trademark printing quality will cause the upper and lower box cover patterns to be misaligned in the finished product, resulting in appearance quality issues; Figure 6 and Figure 7 This is a schematic diagram comparing small box trademarks and strip box trademarks that have appearance quality problems due to defects in trademark printing quality with qualified products.

[0004] Unqualified trademark die-cutting size indicators will lead to loose packaging, uneven packaging or even detachment, and more seriously, the packaging machine will be unable to form the trademark package; small box trademarks cannot adapt to the packaging machine due to quality defects in the trademark die-cutting size, resulting in quality problems such as the bottom of the cigarette box cover and the bottom of the bevel being exposed; strip box trademarks cannot adapt to the packaging machine due to quality defects in the trademark die-cutting size, resulting in quality problems such as the folding edge of the strip box packaging. Figure 2 and Figure 3 This is a schematic diagram comparing small box trademarks and strip box trademarks that have appearance quality problems due to defects in trademark die-cutting size with qualified products.

[0005] The quality of trademark die-cutting indentation includes the quality of indentation width and indentation depth. In the production process of trademark folding, the indentation needs to be processed before folding. The indentation can play a folding guide role, which helps the final folding of the trademark, so that the folded packaging box is flatter and more beautiful. Generally, the control tolerance of trademark indentation width is within 0.3mm. If the width of trademark indentation is too wide or too narrow, it may cause the trademark to be not three-dimensional after folding, and the folding angle is not 90°, resulting in the final packaging not being tightly fitted and quality problems; unqualified indentation depth quality will result in the production of defective products with cracking problems; due to too many folded edges of the trademark, the accumulated errors of each folded edge may even directly lead to the final failure to fold smoothly or get stuck in the packaging machine. Figure 4 and Figure 5 This is a schematic diagram comparing small box trademarks and strip box trademarks that have appearance quality problems due to quality defects in the width of the trademark die-cutting indentation with qualified products. Figure 8 and Fig. 9 This is a schematic diagram comparing small box trademarks and strip box trademarks that have appearance quality problems due to quality defects in the depth of the trademark die-cutting indentation with qualified products.

[0006] At present, quality inspection is almost always based on the cigarette packs after forming. However, since the detection of trademark surface parameters is not considered before production to control the quality of trademark raw materials, when defective products are found in the current production, a batch of finished products has often been produced. Not only a series of defective product removal processes need to be completed, but also the machine needs to be stopped to check the cause. While causing material waste, it will also greatly reduce production efficiency and affect the entire industrial chain. More seriously, it has caused packaging equipment to jam and stop. Therefore, considering testing and controlling the surface parameters of raw material trademarks before production to reduce the defective rate of finished products has practical significance for cigarette production units and trademark printing units in terms of quality defect control and improving product quality.

[0007] Furthermore, when using existing technologies to detect trademark surface parameters such as trademark indentation width, manual measurement is usually performed using rulers and calipers. Manual measurement has large errors (greater than 0.5mm), low efficiency, and inability to fully sample for testing, making it difficult to meet the requirements for testing and quality control of trademark indentation width. Most of the measurements of trademark die-cutting dimensions are performed manually using measuring tools such as rulers and calipers. Since there are many test items and a long process, manual measurement has the following problems:

[0008] 1) It is time-consuming and labor-intensive, inefficient, requires few test samples, and has delayed data, which is not conducive to the control of trademark surface parameter quality;

[0009] 2) The detection accuracy is not high. The maximum detection accuracy is only 0.1mm, which cannot meet the requirements for accurate measurement of trademark surface parameters;

[0010] 3) The accuracy is not high. Due to the differences in individual subjective measurement habits of testers, the reproducibility of the test results is poor and the reliability of the test results is low.

[0011] The present invention is based on a detection device for trademark die-cutting size, angle and indentation width disclosed in Chinese utility model patent CN202121323819.3, which detects trademarks and trademark printing patterns, trademark indentation depth, trademark indentation width, and trademark die-cutting size; wherein a laser detection head is installed at the position of the CCD linear array camera in the original application when measuring the trademark indentation depth. The defective rate of finished products can be reduced by detecting and controlling the trademark surface parameters. Summary of the invention

[0012] The present invention provides a method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters, including the detection and control of the trademark printing pattern position, trademark die-cutting size, and trademark die-cutting indentation width and depth of the trademark raw materials, so as to control the quality of the trademark raw materials, eliminate unqualified raw materials, and eliminate the generation of defective products from the root. Specifically, the method of the present invention is as follows:

[0013] The method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters includes the following steps:

[0014] S1, pixel calibration: measuring the size of each pattern on the calibration piece by a CCD camera to obtain a corresponding pixel pattern, and establishing a corresponding relationship between the display screen pixel and the actual size by the ratio of the actual size to the corresponding pixel pattern size;

[0015] S2. Database modeling: Enter the size parameters of various types of trademarks, printed patterns on trademarks, and indentations on trademarks into the database to generate basic images. For each basic image, use a CCD camera to collect the corresponding standard trademark image in real time. Manually optimize the edge-finding parameters of the standard trademark image to find the edge-finding parameters that can accurately extract the trademark edge, the indentation edge, and the printed pattern edge on the trademark on the standard trademark image, and complete database modeling.

[0016] S3, extracting information; sampling and testing the batch of trademarks to be tested, placing the sample trademarks to be tested in the image acquisition area, setting the border-finding moving path of the CCD camera in combination with the database model, collecting the image of the trademark to be tested through the CCD camera, and extracting the trademark edge, the indentation edge on the trademark, and the edge of the printed pattern on the trademark;

[0017] S4, quality determination: by calculating the corresponding distance through the extracted edge data information, and then comparing it with the internal control, the surface parameter quality of the sample trademark is determined respectively; the surface parameter quality includes the trademark die-cutting size quality, the trademark indentation width quality, and the trademark printing quality;

[0018] S5. Eliminate unqualified batches; determine whether the trademark of the batch to which the sample belongs meets the production requirements through the sample surface parameter quality judgment results. If any of the surface parameter quality is unqualified, the trademark of the batch to which the sample belongs is determined to be unqualified, and the unqualified batch of trademarks will be eliminated from the raw materials.

[0019] Furthermore, the edge finding parameters in step S2 include accuracy, boundary strength, threshold, and burr size; the staff optimizes each edge finding parameter in sequence.

[0020] Furthermore, the optimization of edge-finding parameters in step S2 includes the following steps:

[0021] S2.1, precision selection, using a 3×3 Gaussian filter window size to perform Gaussian smoothing filtering on the collected CCD trademark image to eliminate noise interference;

[0022]

[0023] In formula (1), σ is the standard deviation of the Gaussian distribution, G(x,y) represents the filtered image, and x and y are the coordinates of the pixel points; define σ 2 For the accuracy of image filtering, under the condition of fixed template, by adjusting the setting σ 2 value, to achieve image noise suppression and image smoothing for different trademarks and printed patterns; the σ 2 The value setting range is 1-20;

[0024] S2.2, grayscale conversion is performed on the image after Gaussian filtering to obtain the grayscale image of the trademark, and RGB is converted to YUV, two major color spaces. The specific calculation method is:

[0025] Y=0.299R+0.587G+0.114B (2)

[0026] U=0.493(BY) (3)

[0027] V=0.877(RY) (4)

[0028] In formulas (2), (3), and (4), R is the red component, G is the green component, B is the blue component, Y is the brightness, U is the color, and V is the saturation;

[0029] S2.3, using the Sobel operator to perform edge detection on the grayscale image, extracting the coordinates of the trademark edge, the indentation edge on the trademark, and the edge point of the printed pattern on the trademark;

[0030] S2.4, the coordinate points (x 1 ,y 1 ),(x 2 ,y 2 )……(x m ,y m ), the least square method is used for fitting; the regression equation of the least square method is:

[0031]

[0032] According to the least squares method, let y i With a+bx i The sum of squares of the deviations is minimized, and we can obtain:

[0033]

[0034] in:

[0035]

[0036]

[0037] Through the above steps, the edge of each trademark, the edge of the indentation on the trademark, and the edge straight line of the printed pattern on the trademark can be fitted respectively. After the first linear regression analysis, the pixel distance from each point to the fitting straight line is calculated as the burr size, and the burr size value setting range is 1-50 pixels; the burr size value is set to remove discrete points with a large distance.

[0038] Furthermore, the step S2.3 includes the following steps:

[0039] S2.3.1, the Sobel operator contains two sets of 3×3 matrices, one for the horizontal and one for the vertical. By performing a planar convolution with the grayscale image, the approximate values ​​of the horizontal and vertical grayscale gradients can be obtained respectively:

[0040]

[0041]

[0042] In formulas (5) and (6), G x and G y Represent the approximate values ​​of the horizontal and vertical gradients respectively, and A represents the original grayscale image;

[0043] S2.3.2, the grayscale gradient is calculated by the horizontal and vertical grayscale gradient values ​​of each pixel in the image:

[0044]

[0045] S2.3.3, select appropriate boundary strength B and gradient threshold T, use row-by-row or column-by-column search method, compare the gray value and gray gradient of each pixel in the search border area with B and T respectively, only the points that simultaneously satisfy gray value A(x, y) ≥ B and gradient G(x, y) ≥ T are edge points, and other points are non-edge points.

[0046] Furthermore, the setting range of the threshold T is 0.1-0.95; the setting range of the boundary strength B when extracting the edge of the trademark is 1-200; the setting range of the boundary strength B when extracting the edge of the indentation on the trademark is 32-59; the setting range of the boundary strength B when extracting the edge of the printed pattern on the trademark is 1-76.

[0047] Furthermore, in the steps S2 and S3, a combined LED light source is used when acquiring images through a CCD camera, and the combined LED light source includes a top light source arranged around the CCD camera and a bottom light source arranged below the image acquisition area; the top light source includes a top upper light source, a top lower light source, a top left light source and a top right light source; the top light source is used when extracting the edge of the pattern on the printed trademark, and the light source intensity coefficient of the top light source is between 31-77; the top light source is used when extracting the indentation edge, and the light source intensity coefficient of the top light source is between 31-49; the bottom light source is used when extracting the trademark edge, and the light source intensity coefficient of the bottom light source is between 25-60; when measuring the upper edge of the transverse indentation, only the top upper light source is turned on; when measuring the lower edge of the transverse indentation, only the top lower light source is turned on; when measuring the left edge of the longitudinal indentation, only the top left light source is turned on; when measuring the right edge of the longitudinal indentation, only the top right light source is turned on.

[0048] Furthermore, the trademark includes a small box trademark and a strip box trademark, and the method for determining the printing quality of the small box trademark in step S4 is to place the small box trademark horizontally, and the printed pattern on the small box trademark is divided into three areas: left, middle, and right according to the pattern edge and grayscale difference and the position after folding into a box, and the distance from the printed pattern to the upper and lower edges of the small box trademark in each area is calculated respectively, and the printing quality defects are determined by the calculated distances; the printing quality defect determination includes the degree of offset and the degree of skew; the absolute value of the distance difference between the upper and lower edges of the printed pattern in each area and the upper and lower edges of the small box trademark is calculated , in order to determine the degree of deviation of the printed patterns in the three areas; calculate the absolute value of the difference between the distance from the edge of the printed pattern in the left area on the same side to the edge of the small box trademark and the distance from the edge of the printed pattern in the right area to the edge of the small box trademark, in order to determine the overall skewness of the printed pattern; the method for determining the printing quality of the strip box trademark in step S4 is to place the top of the strip box trademark horizontally to the left, and divide it into two upper and lower detection areas according to the pattern edge and grayscale difference and the position after folding into a box, measure and calculate the absolute value of the difference between the distance from the edge of the printed pattern in the two areas to the edge of the strip box trademark on the same side, in order to determine the overall skewness of the printed pattern.

[0049] Furthermore, the trademark includes a small box trademark and a strip box trademark; in the step S4, all the indentations are divided into a critical indentation group and a non-critical indentation group for determining the quality of the trademark indentation width. The indentations at the gluing and folding positions and the indentations at the critical folding positions of the cigarette pack forming belong to the critical indentation group, and the rest belong to the non-critical indentation group; if in the critical indentation group, if an indentation with a width exceeding the internal control range value appears, it is determined that the indentation width quality of the trademark is unqualified; if in the non-critical indentation group, if more than two indentations with a width exceeding the internal control range value appear, it is determined that the indentation width quality of the trademark is unqualified.

[0050] Furthermore, the trademark includes a small box trademark and a strip box trademark; when determining the die-cutting size quality of the trademark in the step S4, the sizes of the various parts that affect the packaging effect of the trademark are first marked as different detection sequences, and all detection sequences are divided into a key detection sequence group and a non-key detection sequence group, including the detection sequence of the gluing and folding position belongs to the key detection sequence group, and the rest are non-key detection sequence groups. If a detection sequence with a size exceeding the internal control range value appears in the key detection sequence group, it is determined that the die-cutting size quality of the trademark is unqualified. If more than two detection sequences with a size exceeding the internal control range value appear in the non-key detection sequence group, it is determined that the die-cutting size quality of the trademark is unqualified.

[0051] Furthermore, between step S4 and step S5, the quality of the trademark indentation depth is also determined; the trademark includes a small box trademark and a strip box trademark; the quality of the trademark indentation depth determination includes the following steps:

[0052] S4.1. Take a point to measure the distance. Replace the CCD camera on the testing equipment with a laser testing head. Use laser distance measurement to measure the depth of the indentation to be tested one by one. During the measurement, the laser path is perpendicular to the trademark surface. Perform laser distance measurement on several points at a certain distance on both sides of each indentation to be tested, and measure the distance from each point to the laser head.

[0053] S4.2. Calculation of indentation depth: the maximum value minus the minimum value among the measured distances is the indentation depth;

[0054] S4.3. Indentation depth quality judgment: All indentations are grouped according to the process of folding the trademark into a box and the position of each indentation in the trademark. Different quality judgment standards are used for indentations in different groups. All indentations are compared with the internal control range values ​​of the indentations, and then different quality judgment standards are used to determine whether the indentation depth quality is qualified.

[0055] Further, in the step S4.1, when taking points for distance measurement, points are taken from the trademark surface at a distance of 5 mm from one side of the indentation, and the line connecting the measured points passes through the inside of the indentation, and the point measurement is stopped until the position at a distance of 5 mm from the other side of the indentation is taken; thirty points are evenly spaced between the starting and ending points for collection, and the line connecting the measured points passes through the midpoint of each indentation, and when measuring each indentation, the line connecting the taken points is perpendicular to the indentation; when measuring the distance, each indentation is measured in sequence from left to right and from top to bottom, and after each indentation is measured, the laser head moves in a straight line from the end point of the measured indentation collection to the starting point of the next indentation to be measured; when measuring the distance of the first indentation, the movement path of the laser head points to the second indentation.

[0056] Furthermore, in the step S4.3, all the indentations are divided into a critical indentation group and a non-critical indentation group. The indentations at the gluing and folding positions and the indentations at the critical folding positions of the cigarette pack forming belong to the critical indentation group, and the rest belong to the non-critical indentation group. If an indentation with a depth exceeding the internal control range value appears in the critical indentation group, it is determined that the indentation depth quality of the trademark is unqualified. If more than two indentations with a depth exceeding the internal control range value appear in the non-critical indentation group, it is determined that the indentation depth quality of the trademark is unqualified.

[0057] The working principle of the present invention is as follows:

[0058] This method first generates a basic image in the system based on the size data of each type of trademark; then, by manually optimizing the edge-finding parameters such as the accuracy of the frame-finding, boundary strength, threshold, and rough edge size, the optimal conditions for the CCD camera to extract the edge of the standard trademark, the edge of the trademark indentation, and the edge of the printed pattern on the trademark are given, and the model is established and stored in the database after matching with the basic image; then, the trademark edge, the trademark indentation edge, and the trademark printed pattern edge are extracted under the combined illumination of the LED light source, and the required distance is calculated respectively, and then compared with the internal control to determine the surface parameter quality of the sample trademark; the surface parameter quality includes the trademark die-cutting size quality, the trademark indentation width quality, and the trademark printing quality. The qualified rate of each surface parameter of the sample trademark is used to further determine whether the batch of the sample is qualified, and unqualified batches of trademarks are eliminated from the raw materials.

[0059] When selecting the accuracy, the standard deviation has a great influence on the smoothing ability of the Gaussian filter. The larger the σ, the wider the frequency band of the Gaussian filter, and the better the smoothness of the image. However, the measured trademark is close to a plane, not a three-dimensional one, and because of the color and ink of the printed pattern, too smooth an image will lead to unrecognition. When the setting value is 1-20, the extraction effect is best. Due to the different colors, backgrounds, and textures of various types of trademarks, the range is also determined according to the actual situation when optimizing the edge-finding parameters. With the use of combined LED light sources, the extraction effect of the trademark edge, the trademark indentation edge, and the printed pattern edge is further enhanced. When modeling, the extraction parameters of the edges of various types of trademarks, the trademark indentation edges, and the printed pattern edges are adjusted to the optimal state.

[0060] The measurement error of straight line primitives mainly comes from the positioning error of edge objects. In this method, the least squares method is used to fit the straight line primitives, and the influence of isolated noise points on the edges is eliminated by calculating the distance, avoiding complex algorithm operations.

[0061] When measuring the indentation depth, laser ranging is used to measure the distance of thirty evenly spaced points on the outside of each indentation at a distance of 5mm from the edge as the starting point, and the distance between each point and the laser head is measured. The line connecting the measured points is perpendicular to the indentation and passes through the midpoint of the indentation, ensuring that the measurement path is the shortest and the measurement points are most evenly spaced, thereby improving the detection accuracy. The maximum value minus the minimum value of the thirty measured data is the depth of the indentation. During measurement, the movement path of the laser head passes vertically through the midpoint of each indentation, and after each indentation is measured, the laser head moves straight from the end point of the measured indentation collection to the starting point of the next indentation to be measured. When measuring the distance of the first indentation detected, the movement path of the laser head points to the second indentation detected, which can make the movement path of the laser head shortest during distance measurement, saving measurement time and improving overall measurement efficiency.

[0062] When judging the trademark indentation quality and the trademark die-cutting size quality, they are divided into key group and non-key group according to the position of the indentation, the function of each indentation, and the position of the die-cutting size detection sequence, and the two groups use different quality judgment standards to improve the accuracy of judging qualified and unqualified trademarks and avoid unnecessary elimination and waste.

[0063] The beneficial effects of the present invention are as follows:

[0064] (I) By testing the surface parameters of the trademark at the front end of production to control its quality and determine the adaptability of the trademark to the machine, it is judged whether the trademark meets the production standards, and the use of raw materials that will produce defective products is eliminated from the root, without waiting for the finished product quality inspection step or problems in the production process to start the shutdown inspection to eliminate defective products; avoiding waste of production materials while greatly improving production efficiency. After using this method, the overall defective rate of the production workshop in a single day decreased by about 51.72%; the proportion of defective rates caused by unqualified trademarks decreased by about 32.32%, which effectively reduced the defective rate of finished products, saved a series of supporting materials, and improved production efficiency.

[0065] (II) This detection method is aimed at the complex patterns and backgrounds of trademarks. It constructs a set of detection methods based on the optimization of edge-finding parameters such as measurement accuracy, threshold, burr size, and boundary strength. Combined with the use of combined LED lights, it avoids complex algorithm processing, has low usage conditions, and a wide range of applications, and can achieve rapid and accurate detection of quality defects in trademark surface parameters.

[0066] (III) This method has the characteristics of high detection accuracy, fast speed and simple operation, which can meet the needs of trademark surface parameter quality defect detection and improve detection efficiency. When relying on manual detection, it is too inefficient to extract too many samples for detection. After adopting this method, the number of samples that can be detected in each batch of trademarks is increased, further improving the detection accuracy, optimizing the detection results, and avoiding misdetection and misrejection; it has good application and promotion value. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 This is a schematic diagram of the process described in Example 1 of the present invention;

[0068] Figure 2 The qualified finished trademark products of the present invention and the unqualified ones caused by the unqualified quality of the trademark die-cutting size

[0069] Comparison chart of finished products and defective products;

[0070] Figure 3 The qualified finished trademark products of the present invention and the unqualified ones caused by the unqualified quality of the trademark die-cutting size

[0071] Comparison chart of finished products and defective products;

[0072] Figure 4 The qualified trademark finished product of the present invention and the unqualified trademark indentation width quality caused

[0073] Comparison chart of finished products and defective products;

[0074] Figure 5 The qualified trademark finished product of the present invention and the unqualified trademark indentation width quality caused

[0075] Comparison chart of finished products and defective products;

[0076] Figure 6 A comparison diagram of qualified finished trademark products of the present invention and defective finished products caused by unqualified trademark printing quality;

[0077] Figure 7 A comparison diagram of qualified finished trademark products of the present invention and defective finished products caused by unqualified trademark printing quality;

[0078] Figure 8 A comparison diagram of qualified finished trademark products of the present invention and defective finished products caused by unqualified trademark indentation depth quality;

[0079] Fig. 9 A comparison diagram of qualified finished trademark products of the present invention and defective finished products caused by unqualified trademark indentation depth quality;

[0080] Fig.10A comparison diagram of a small box trademark and a small box trademark printing pattern according to Example 1 of the present invention, showing a successful edge finding example and a failed edge finding example;

[0081] Fig.11 A comparison diagram of a successful edge finding sample and a failed edge finding sample of a small box trademark indentation according to Example 1 of the present invention;

[0082] Fig.12 A comparison diagram of a small box trademark and a small box trademark printing pattern according to Example 1 of the present invention, showing a successful edge finding example and a failed edge finding example;

[0083] Fig.13 A comparison diagram of a successful edge finding sample and a failed edge finding sample of a small box trademark indentation according to Example 2 of the present invention;

[0084] Fig.14 The basic image and partition diagram of the small box trademark to be tested according to Example 1 of the present invention;

[0085] Fig.15 The basic image and partition diagram of the strip box trademark to be tested in Example 1 of the present invention;

[0086] Fig.16 This is a schematic diagram of the basic image of the small box trademark to be tested and the indentation to be tested according to Example 2 of the present invention;

[0087] Fig.17 This is a schematic diagram of the basic image of the box trademark to be tested and the indentation to be tested according to Example 2 of the present invention;

[0088] Fig.18 This is a schematic diagram of the basic image of the small box trademark to be tested and the detection sequence according to Example 3 of the present invention;

[0089] Fig.19 This is a schematic diagram of the basic image of the box trademark to be tested and the detection sequence according to Example 3 of the present invention;

[0090] Fig. 20 This is a schematic diagram of the small box trademark in Example 4 of the present invention located in a coordinate system;

[0091] Fig.21 This is a schematic diagram of the movement path of the laser head when detecting a small box trademark according to Embodiment 4 of the present invention;

[0092] Fig. 22 This is a schematic diagram of the box trademark in the coordinate system described in Example 4 of the present invention;

[0093] Fig.23 This is a schematic diagram of the movement path of the laser head when detecting the strip box trademark according to Example 4 of the present invention;

[0094] Fig.24 This is a schematic diagram of the calibration component described in Example 1 of the present invention. DETAILED DESCRIPTION

[0095] In order to make the technical means, creative features and objectives achieved by the present invention easy to understand, the technical solution of the present invention is further explained below in combination with the embodiment and specific implementation method of the method based on trademark surface parameter detection and control to reduce the defective rate of finished products given by the present invention.

[0096] The specific embodiments provided for the present invention are as follows:

[0097] The present invention is based on a detection device for trademark die-cutting size, angle and indentation width disclosed in Chinese utility model patent CN202121323819.3, and detects trademarks and trademark printing patterns.

[0098] Example 1, determination of trademark printing quality:

[0099] S1, pixel calibration: the size of each pattern on the calibration piece is measured by a CCD camera to obtain the corresponding pixel pattern. The calibration piece is as follows: Fig.24 The corresponding relationship between the display screen pixels and the actual size is established through the ratio of the actual size to the corresponding pixel pattern size.

[0100] S2, database modeling; entering the size parameters of various types of trademarks, printed patterns on trademarks, and indentations on trademarks into the database to generate basic images, and using a CCD camera to capture the corresponding standard trademark image in real time for each basic image. Fig.16 As shown in FIG. 1 , it is a basic image of the indentation of the trademark to be tested, where indentation numbers 1-18 are the indentations to be tested. Fig.18 The figure shows the basic image of a standard trademark of one specification and its sequence standard to be detected. Then, the edge-finding parameters of the standard trademark image are optimized manually. The edge-finding is to accurately find and extract the edge of the trademark, the edge of the indentation on the trademark, and the edge of the printed pattern on the trademark. The edge-finding parameters that can accurately extract the edge of the trademark, the edge of the indentation on the trademark, and the edge of the printed pattern on the trademark on the standard trademark image are found to complete the database modeling. The optimized edge-finding parameters include, in order, the accuracy of the border finding, the boundary strength, the threshold, and the size of the burrs; the optimization steps include:

[0101] S2.1, precision selection, using a 3×3 Gaussian filter window size to perform Gaussian smoothing filtering on the collected CCD trademark image to eliminate noise interference;

[0102]

[0103] In formula (1), σ is the standard deviation of the Gaussian distribution, G(x,y) represents the filtered image, and x and y are the coordinates of the pixel points. The standard deviation has a great influence on the smoothing ability of the Gaussian filter. The larger σ is, the wider the bandwidth of the Gaussian filter is, and the better the smoothing of the image is. However, since the trademark is close to a plane and the printed pattern is affected by color, pattern, printing ink, etc., a large σ will lead to extraction failure. Define σ in algorithm programming 2 For the accuracy of image filtering, different σ should be set according to different categories of trademarks. 2 value, to achieve noise suppression and image smoothing for different trademarks and printed images; here σ 2 The extraction effect is best when the value setting range is 1-20.

[0104] S2.2, grayscale conversion is performed on each image after Gaussian filtering to obtain the grayscale image of the trademark, and RGB is converted to YUV, two major color spaces. The specific calculation method is:

[0105] Y=0.299R+0.587G+0.114B (2)

[0106] U=0.493(BY) (3)

[0107] V=0.877(RY) (4)

[0108] In formulas (2), (3), and (4), R is the red component, G is the green component, B is the blue component, Y is the brightness, U is the color, and V is the saturation.

[0109] S2.3, using the Sobel operator to perform edge detection on the grayscale image, extracting the coordinates of the trademark edge, the indentation edge on the trademark, and the edge point of the printed pattern on the trademark.

[0110] S2.3.1, the Sobel operator contains two sets of 3×3 matrices, one for the horizontal direction and the other for the vertical direction. By performing a planar convolution with the grayscale image, the approximate values ​​of the horizontal and vertical grayscale gradients can be obtained respectively:

[0111]

[0112]

[0113] In formulas (5) and (6), G x and G y Represent the approximate values ​​of the horizontal and vertical gradients respectively, and A represents the original grayscale image;

[0114] S2.3.2, the grayscale gradient is calculated by the horizontal and vertical grayscale gradient values ​​of each pixel in the image:

[0115]

[0116] S2.3.3, select appropriate boundary strength B and gradient threshold T, use row-by-row or column-by-column search method, compare the grayscale gradient and grayscale value of each pixel point in the border search area with B and T respectively, only the points that simultaneously satisfy the grayscale value A(x,y)≥B and the gradient G(x,y)≥T are edge points, and the other points are non-edge points. The setting range of threshold T is 0.1-0.95; when extracting the edge of the trademark, the setting range of boundary strength B is 1-200; when extracting the edge of the indentation on the trademark, the setting range of boundary strength B is 32-59; when extracting the edge of the printed pattern on the trademark, the setting range of boundary strength B is 1-76.

[0117] S2.4, the coordinate points (x 1 ,y 1 ),(x 2 ,y 2 )……(x m ,y m ), the least square method is used for fitting; the regression equation of the least square method is:

[0118]

[0119] According to the least squares method, let y i With a+bx i The sum of squares of the deviations is minimized, and we can obtain:

[0120]

[0121] in:

[0122]

[0123]

[0124] Through formula (1) to formula (10), the trademark edge, the indentation edge on the trademark, and the edge straight line of the printed pattern on the trademark of each trademark can be fitted respectively. After the first linear regression analysis, the pixel distance from each point to the fitting straight line is calculated as the burr size, and the burr size value setting range is 1-50 pixels. Select a suitable value to remove discrete points with a large distance.

[0125] like Fig.10 , Fig.11 As shown in the figure, there are comparisons of successful and failed examples of edge finding of trademarks, trademark indentations and trademark patterns, where "x" is the edge point of the trademark and the pattern on the trademark extracted during edge finding. When the edge points can be connected and fitted into a straight line, the edge finding is successful.

[0126] S3, extracting information; placing the top of the trademark to be tested horizontally to the left in the image acquisition area, setting the CCD camera to find the border moving path in combination with the database model, and using the CCD camera to collect the image of the trademark to be tested in a row-by-row search and tracking manner from left to right to extract the edges of the trademark and printed pattern.

[0127] A combined LED light source is used in combination when capturing images in step S2 and step S3. The combined LED light source includes a top light source arranged around the CCD camera and a bottom light source arranged below the image capture area. The top light source is used when extracting the edge of the printed pattern, and the light source intensity coefficient of the top light source is between 31 and 77; the bottom light source is used when extracting the edge of the trademark, and the light source intensity coefficient of the bottom light source is between 25 and 60.

[0128] like Fig.12 As shown, it is a comparison chart of successful edge finding examples of trademarks and trademark printed patterns and failed edge finding examples of trademarks and trademark printed patterns when the light source direction and light source intensity coefficient are moderate, where "x" is the edge point of the trademark and the pattern on the trademark extracted during edge finding, and the edge finding is successful when the edge points can be connected and fitted into a straight line.

[0129] S4, quality determination; Fig.14 As shown, the small box trademark is placed horizontally with the top facing left, and the trademark is divided into 6 detection positions, namely D1 to D6, according to the pattern edge and grayscale difference; the corresponding printed pattern on the trademark is divided into three areas of left, middle and right according to the position of folding into the box, namely Fig.10 Area 1, Area 2, and Area 3. Calculate the attached Fig.10 The distances between the boundaries of the six detection positions in , where D1 is the distance between the upper side of the printed pattern in area 1 and the trademark boundary; D2 is the distance between the lower side of the printed pattern in area 1 and the trademark boundary; D3 is the distance between the upper side of the printed pattern in area 2 and the trademark boundary; D4 is the distance between the lower side of the printed pattern in area 2 and the trademark boundary; D5 is the distance between the upper side of the printed pattern in area 3 and the trademark boundary; D6 is the distance between the lower side of the printed pattern in area 3 and the trademark boundary; the printing quality defects are determined by the following calculation.

[0130]

[0131]

[0132] In formula (1), dis 12 Indicates the degree of deviation of the upper box cover pattern, dis 34 It is expressed as the degree of deviation of the pattern on the back of the box. 56 is the degree of deviation of the lower box cover pattern. 15 、dis 26is the overall skewness of the printed pattern. According to the quality requirements in actual cigarette production, the pattern deviation threshold ε is set. 1 and the overall skewness value of the printed pattern ε 2 Evaluate quality defects. 1 0.2mm, ε 2 0.1mm. Using the above method, 23 samples were taken from a batch of small box trademarks for testing, and the results are shown in the following table:

[0133] Small box trademark printing pattern deviation (unit: mm)

[0134]

[0135]

[0136] The overall skewness of the printed pattern of the small box trademark (unit: mm)

[0137]

[0138] S5, remove unqualified batches. From the test results, it can be seen that the offset of samples 2, 4, and 22 is within the tolerance threshold, and it can be determined that the overall pattern printing is in good condition. The remaining samples have exceeded the tolerance threshold, and there are quality defects in the printed pattern. The unqualified printing quality ratio in the tested samples accounts for 10% or more, and it is determined that this batch of small box trademarks is unqualified. The use of this batch of trademark raw materials will result in defective cigarette packs, and this batch of trademark raw materials will be removed before production.

[0139] Use the above method to determine the printing quality defects of the strip box trademark, and replace the small box trademark with the strip box trademark. Fig.15 As shown, the top of the strip box trademark is placed horizontally to the left, and the trademark is divided into 4 detection positions, namely D1 to D4, according to the pattern edge and grayscale difference. The corresponding printed pattern on the strip box trademark is divided into upper and lower two areas according to the position of folding into a box, namely area 1 and area 2. The distances between the boundaries of the four detection positions are calculated based on the detection data, where D1 is the distance between the left side of the printed pattern in area 1 and the strip box trademark boundary; D2 is the distance between the right side of the printed pattern in area 1 and the strip box trademark boundary; D3 is the distance between the left side of the printed pattern in area 2 and the strip box trademark boundary; D4 is the distance between the right side of the printed pattern in area 2 and the strip box trademark boundary; and the printing quality defects are determined by the following calculations.

[0140]

[0141] In formula (3), dis 13 、dis 24The overall skewness of the printed pattern. According to the quality requirements in actual cigarette production, the overall skewness value ε of the printed pattern of the carton trademark is set to evaluate the quality defects, and ε is 0.1mm. 13 、dis 24 It should be less than or equal to ε. Using the above method, 20 samples were taken from a batch of box labels for testing, and the results are shown in the following table:

[0142] The overall skewness of the printed pattern of the box trademark (unit: mm)

[0143]

[0144]

[0145] From the test results, it can be seen that the dis 24 The deviation exceeds the tolerance threshold, and it can be judged that the overall pattern printing is unqualified. The printing pattern quality of other samples is qualified. The unqualified printing quality ratio in the tested samples accounts for 35%, which exceeds 10%. It is judged that this batch of box trademarks is unqualified. The use of this batch of box trademark raw materials will result in defective cigarette packs. This batch of box trademark raw materials will be eliminated before production.

[0146] The method proposed in this paper can objectively detect and evaluate the printing quality of trademarks from two dimensions: the degree of printed pattern deviation and the degree of overall pattern skewness. It can effectively guide trademark manufacturers to improve production processes and printing quality in a targeted manner, thereby reducing quality defective cigarette packs in cigarette production, reducing market quality feedback risks, and reducing the consumption of manpower and materials.

[0147] Example 2, quality determination of trademark indentation width:

[0148] Steps S1 and S2 refer to Example 1;

[0149] S3, extract information; place the top of the trademark to be tested horizontally to the left in the image acquisition area. Combined with the database model, set the CCD camera to find the border movement path, and use the CCD camera to collect the image of the trademark to be tested in a row-by-row search and tracking manner from top to bottom and from left to right to extract the edge of the indentation to be tested.

[0150] A combined LED light source is installed around the CCD camera, including a top upper light source, a top lower light source, a top left light source, and a top right light source. The combined LED light source is used in conjunction with the CCD camera to collect images in steps S2 and S3. During image collection, the light source intensity coefficient is set between 31 and 49, and the four light sources are all irradiated at a 45° angle to the center of the border area of ​​the CCD camera on the trademark; when measuring the upper edge of the horizontal indentation, only the top upper light source is turned on; when measuring the lower edge of the horizontal indentation, only the top lower light source is turned on; when measuring the left edge of the longitudinal indentation, only the top left light source is turned on; when measuring the right edge of the longitudinal indentation, only the top right light source is turned on.

[0151] like Fig.13 As shown, it is a comparison chart of successful trademark indentation edge finding examples and failed trademark indentation edge finding examples when the light source direction and light source intensity coefficient are moderate, where "x" is the trademark indentation edge point extracted during edge finding, and the edge finding is successful when the edge points can be connected and fitted into a straight line.

[0152] S4, quality judgment: the width of each indentation is obtained by the distance between the two sides of the indentation, and then the width of each indentation is compared with the internal control value to judge the width quality of each indentation. Then, according to the influence of each indentation on the gluing and molding effect of the trademark, all indentations are divided into key indentation groups and non-key indentation groups. Fig.16 As shown, among them, indentations 3, 13, 4, 14, 5, 15, 6, and 16 are in the gluing and folding position. If the folding is not good, the glue will not be strong; when indentations 8, 9, 10, 11, and 12 are in the key position of cigarette package forming, if the folding is not good, it will cause defects such as the bottom of the box cover exposed and the upper and lower widths inconsistent after the cigarette package is formed; therefore, indentations 3, 13, 4, 14, 5, 15, 6, 16, 8, 9, 10, 11, and 12 are divided into key group indentations, and the remaining indentations 1, 2, 7, 17, and 18 are not in the gluing position and the key position of packaging, and have little effect on the gluing and forming effects, and are divided into non-key indentation groups. If there is an indentation with a width exceeding the internal control range value in the key indentation group, it is determined that the quality of the indentation width of the trademark is unqualified. If there are more than two indentations with a width exceeding the internal control range value in the non-key indentation group, it is determined that the quality of the indentation width of the trademark is unqualified.

[0153] The above method was used to test the indentation width of three samples taken from a batch of small box trademarks. The test results are shown in the following table:

[0154] Small box trademark sampling test results (unit: mm)

[0155] Indentation number Internal control mean Internal control minimum Internal control maximum value Sample 1 Sample 2 Sample 3 1 1.40 1.39 1.40 1.41 1.39 1.40 2 1.39 1.35 1.43 1.40 1.37 1.39 3 1.43 1.41 1.44 1.43 1.42 1.43 4 1.41 1.40 1.43 1.42 1.42 1.42 5 1.41 1.40 1.42 1.41 1.41 1.41 6 1.42 1.41 1.44 1.43 1.42 1.42 7 1.41 1.41 1.42 1.42 1.42 1.42 8 1.42 1.41 1.43 1.43 1.43 1.41 9 1.41 1.40 1.41 1.40 1.40 1.41 10 1.38 1.37 1.40 1.40 1.38 1.39 1 1 1.40 1.39 1.41 1.39 1.39 1.40 12 1.40 1.39 1.40 1.39 1.37 1.40 13 1.43 1.41 1.44 1.42 1.43 1.44 14 1.40 1.39 1.41 1.40 1.40 1.39 15 1.42 1.41 1.43 1.41 1.41 1.42 16 1.43 1.41 1.44 1.42 1.40 1.43 17 1.37 1.36 1.38 1.39 1.37 1.36 18 1.37 1.36 1.38 1.38 1.38 1.37

[0156] S5. Eliminate unqualified batches; according to the test results, it can be seen that samples 1 and 3 are qualified brands of indentation width quality, and sample 2 is unqualified. When the unqualified ratio of indentation width in the test samples accounts for 10% or more, the batch of brands is judged to be unqualified. Therefore, the raw materials of this batch of brands will lead to defective cigarette packs, and the raw materials of this batch of brands can be eliminated before production. If the number of brands in this batch is too large, the number of samples should be appropriately increased and tested again.

[0157] The above trademark indentation width detection method is used to detect a certain type of box trademark. The basic image of the box trademark and the indentation of the box trademark to be detected are as follows: Fig.17 As shown, it includes indentations 1-10 to be tested. Among them, 2 and 9 are at the gluing position. If they are not folded well, the glue will not be strong; 4, 5, 6, and 7 are at the key position of strip box forming. If they are not folded well, it will lead to defects such as poor strip box forming and loose cellophane wrapping of the strip box; therefore, the key indentation group includes indentations 2, 4, 5, 6, 7, and 9. Indentations 1, 3, 8, and 10 are shorter, and their folding positions are relatively fixed, which has little effect on the strip box forming effect, and belong to the non-critical indentation group. Three sample strip box trademarks were sampled from a batch for testing, and the test results are shown in the following table:

[0158] Sampling test results of box trademarks (unit: mm)

[0159] Indentation number Internal control mean Internal control minimum Internal control maximum value Sample 1 Sample 2 Sample 3 1 1.18 1.13 1.24 1.19 1.11 1.23 2 1.19 1.12 1.26 1.23 1.19 1.24 3 1.18 1.11 1.26 1.21 1.23 1.18 4 1.18 1.12 1.24 1.23 1.21 1.18 5 1.25 1.14 1.37 1.25 1.26 1.25 6 1.17 1.10 1.24 1.20 1.22 1.24 7 1.22 1.10 1.33 1.28 1.28 1.20 8 1.26 1.18 1.34 1.21 1.23 1.28 9 1.25 1.17 1.34 1.20 1.22 1.21 10 1.26 1.18 1.33 1.25 1.15 1.21

[0160] According to the test results, it can be seen that samples 1 and 3 are box labels with qualified indentation width quality; indentation 1 and indentation 10 in sample 2 are not within the internal control range, but since indentation 1 and indentation 10 are non-critical indentations, and only two indentations are not within the internal control range, sample 2 is also a box label with qualified indentation width quality. All three samples in this batch are box labels with qualified indentation width quality, so this batch of box labels is qualified, and it is expected to have good adaptability to the machine and can enter the production process. If the number of trademarks in this batch is too large, the number of samples should be appropriately increased and re-tested.

[0161] Example 3, determination of trademark die-cutting size quality:

[0162] Steps S1 and S2 refer to Example 1;

[0163] S3, extracting information; placing the top of the trademark to be tested horizontally to the left in the image acquisition area, setting the CCD camera to find the border moving path in combination with the database model, and collecting the image of the trademark to be tested through the CCD camera in a row-by-row search and tracking manner from left to right, and extracting the trademark and the indentation edge on the trademark.

[0164] A combined LED light source is used in cooperation during image acquisition in steps S2 and S3. The combined LED light source includes a top light source arranged around the CCD camera and a bottom light source arranged below the image acquisition area. A top light source is used when extracting the edge of the indentation on the trademark, and the top light source includes a top upper light source, a top lower light source, a top left light source, and a top right light source. The four light sources are all irradiated at a 45° angle to the center of the border area of ​​the CCD camera on the trademark; when measuring the upper edge of the horizontal indentation, only the top upper light source is turned on; when measuring the lower edge of the horizontal indentation, only the top lower light source is turned on; when measuring the left edge of the longitudinal indentation, only the top left light source is turned on; when measuring the right edge of the longitudinal indentation, only the top right light source is turned on; the light source intensity coefficient of the top light source is between 31-77. A bottom light source is used when extracting the edge of the trademark, and the light source intensity coefficient of the bottom light source is between 25-60.

[0165] S4, quality determination; Fig.18 As shown in the figure, the dimensions of each part that affect the effect of the trademark packaging after molding are marked as 38 detection sequences; a corresponding relationship is established between the extracted edge data and each detection sequence. If the two ends of the detection sequence are adjacent to the indentation, half of the distance of the adjacent indentation width is counted into the detection sequence. All detection sequences are divided into key detection sequence group and non-key detection sequence group. The detection sequence at the gluing and folding position belongs to the key detection sequence group, and the rest belongs to the non-key detection sequence group. The non-key detection sequence group includes detection sequences 1, 4, 9, 11, 12, 13, 19, 20, 23, 24, 25, 27, 30, 32, 33, 34, 35, 36, 37; the key detection sequence group includes detection sequences 2, 3, 5, 6, 7, 8, 10, 14, 15, 16, 17, 18, 21, 22, 26, 28, 29, 31, 38. Calculate the size of each detection sequence and compare the size of each detection sequence with the internal control value. If a detection sequence with a size exceeding the internal control range appears in the key detection sequence group, it is judged that the die-cutting size quality of the trademark is unqualified. If more than two detection sequences in the non-key detection sequence group have a size exceeding the internal control range, it is judged that the die-cutting size quality of the trademark is unqualified.

[0166] S5. Eliminate unqualified batches; determine the quality of the trademark die-cutting size based on the above results. When the unqualified ratio of a single sheet in the batch of test samples accounts for 10% or more, the batch of trademarks is determined to be unqualified and the batch of trademarks is eliminated from the production raw materials.

[0167] The above trademark die-cutting size quality detection method was used to test ten sample small box trademarks. The test results are shown in the following table:

[0168] Small box trademark sampling test results (unit: mm)

[0169]

[0170] It can be seen from this that only Samples 6 and 8 are qualified small box trademarks. When the unqualified ratio of a single sample is 10% or above, the batch of small box trademarks is judged to be unqualified, and this batch of small box trademarks cannot be used for production, and the batch of small box trademarks will be removed from the production raw materials.

[0171] The above trademark die-cutting size quality detection method is used to detect a certain type of strip box trademark. The basic image of the strip box trademark of this type and the size of each part of the strip box trademark that affects the effect of the trademark packaging molding are marked into 19 detection sequences as follows: Fig.19 As shown. The non-critical detection sequence group includes detection sequences 6, 8, 9, 10, and 11; the critical detection sequence group includes detection sequences 1, 2, 3, 4, 5, 7, 12, 13, 14, 15, 16, 17, 18, and 19. Ten sample strips and trademarks were sampled from a batch for testing, and the test results are shown in the following table:

[0172] Sampling test results of box trademarks (unit: mm)

[0173]

[0174] Through data comparison, there are die-cutting size exceeding the standard in Samples 1, 2, 3, 4 and 8, and the die-cutting sizes of the remaining samples are within the internal control range. In Sample 1, test numbers 6, 9, 10 and 14 exceed the internal control range, among which test numbers 6, 9 and 10 are non-critical items, and test number 14 is a critical item, so Sample 1 is a strip box trademark with unqualified die-cutting size; Samples 2 and 3 are both test number 9 exceeding the internal control range, and because test number 9 is a non-critical item, Samples 2 and 3 are both strip box trademarks with qualified die-cutting size; In Sample 4, test number 15 exceeds the internal control range, and test number 15 is a critical item, so Sample 4 is a strip box trademark with unqualified die-cutting size; In Sample 8, test numbers 12 and 18 exceed the internal control range, and test numbers 12 and 18 are critical items, so Sample 8 is a strip box trademark with unqualified die-cutting size. In summary, 3 out of 10 samples of this batch of small box trademarks failed, with a failure rate of 30%. This batch of small strip box trademarks cannot be used for production, and this batch of strip box trademarks should be removed from the production raw materials. If the number of trademarks in this batch is too large, the number of samples should be appropriately increased and retested.

[0175] Example 4, quality determination of trademark indentation depth:

[0176] Replace the CCD camera on the testing equipment with a laser testing head, place the samples to be tested on the image acquisition platform of the testing equipment in turn, establish a coordinate system, input the midpoint coordinates of each indentation and the starting and ending point coordinates of each indentation into the indentation depth detection device, and start measuring the depth of all indentations on each trademark in turn.

[0177] like Fig. 20 As shown, the measured trademark is placed horizontally, the uppermost edge of the trademark coincides with the Y axis, and the leftmost edge of the trademark coincides with the X axis. All the indentations on the horizontally placed trademark are marked as the 1st to the 18th in the order from left to right and from top to bottom; the midpoint coordinates corresponding to each indentation are a(60.02, 87.08), b(147.12, 87.08), c(24.79, 76.13), d(65.02, 76.13), e(109.57, 76.13), f(198.79, 76.13), g(11.96, 49.01), h(37.62,49.01), i(60.02,49.01), j(72.02,49.01), k(147.12,49.01), l(169.48,49.01), m(24.79,22.78), n(65.02,22.78), o(109.57,22.78), p(198.79,22.78), q(60.02,10.89), r(147.12,10.89), measure each indentation in numerical order when measuring distance.

[0178] When measuring the depth of each indentation, points are taken on the trademark surface between two points 5mm away from the edges of the indentation on both sides. A total of 30 points need to be taken at even intervals, and the line segment connected by the taken points is perpendicular to the measured indentation and passes through the midpoint of the measured indentation. When measuring, the laser head moves from the measurement starting point at one end of the indentation to the measurement end point at the other end. After measuring each indentation, the laser head moves straight from the measured indentation collection end point to the next indentation collection starting point to be measured; when measuring the distance of the first indentation, the laser head movement path points to the second indentation.

[0179] like Fig.21 As shown, the moving path of the laser head in this embodiment measures indentations 1, 2, 3...18 in sequence, passing through the midpoints a, b, c...r of each indentation in sequence on the way. The detection starting point coordinates and end point coordinates of indentations 1 to 18 and the midpoint coordinates of each indentation in the whole detection process are shown in the following table:

[0180] Coordinate table of the midpoint of the small box trademark indentation and the starting point of the detection path

[0181]

[0182] The depth of the indentation is obtained by subtracting the minimum distance from the maximum distance among the 30 distances taken for each indentation. The depth of all indentations of the 20 sample trademarks is measured in sequence according to the above process.

[0183] Then, the average indentation depth needs to be determined, and the qualified product trademarks within two months are sampled as the standard group to measure their indentation depth data. The average indentation depth can be taken to obtain the average indentation depth table of each indentation, as shown in the following table:

[0184] Table of average indentation depth of small box trademarks (unit: mm)

[0185]

[0186] It can be considered that when the indentation values ​​of the trademark are the mean, the adaptability of the auxiliary materials to the machine is good, so we position the mean as the standard value of the indentation depth. After determining the standard value, it is necessary to further revise and determine the internal control range value of each indentation depth value. First, remove the obvious outliers of the indentation data in the standard group, that is, the measurement values ​​in the group whose deviation from the mean value exceeds two times the standard deviation, and then set the minimum and maximum values ​​detected as the upper and lower limits of the internal control interval; the interval between the final upper and lower limits is the internal control range value. The final internal control range values ​​are shown in the following table:

[0187] Small box trademark indentation depth internal control range value table (unit: mm)

[0188]

[0189] Next, all the indentations are divided into key indentation groups and non-key indentation groups according to their impact on the gluing and molding effects of the trademarks. Among them, indentations 3, 13, 4, 14, 5, 15, 6, and 16 are in the gluing folding position. If the folding is not good, the glue will not be strong; indentations 8, 9, 10, 11, and 12 in the figure are in the key position of cigarette package molding. If the folding is not good, it will cause defects such as the bottom of the box cover exposed and the upper and lower widths inconsistent after the cigarette package is formed; therefore, indentations 3, 13, 4, 14, 5, 15, 6, 16, 8, 9, 10, 11, and 12 are classified as key group indentations, and the remaining indentations 1, 2, 7, 17, and 18 are not in the gluing position and packaging key position, and have little effect on the gluing and molding effects, and are classified as non-key indentation groups. If an indentation with a depth exceeding the internal control range appears in the critical indentation group, it is determined that the indentation depth quality of the trademark is unqualified; if more than two indentations with a depth exceeding the internal control range appear in the non-critical indentation group, it is determined that the indentation depth quality of the trademark is unqualified.

[0190] The indentation depth data of the 20 samples measured in this embodiment are shown in the following table: Small box trademark sample measurement data table (unit: mm)

[0191]

[0192] Through data comparison, we can determine that among the 20 samples measured, only all the indentations in Sample No. 1, Sample No. 2, and Sample No. 3 are within the internal control range, and are trademarks with qualified indentation depths; among Sample No. 17, only the depth of Indentation 7 exceeds the internal control range, and Indentation 7 belongs to the non-critical indentation group, so Sample No. 17 also belongs to a trademark with qualified indentation depth. The remaining samples all have indentations included in the critical indentation group that exceed the internal control range.

[0193] If the unqualified rate of samples reaches 10% or more, the batch of trademarks in which the samples are located is judged to be unqualified. Only three of the 20 samples sampled from the batch of trademarks are qualified, and the qualified rate is only 15%. The batch of trademarks is unqualified raw materials, with poor adaptability to the machine and cannot enter the production process. The batch of trademarks is removed from the production raw materials. If the number of trademarks in the batch is too large, the number of samples should be appropriately increased and re-tested.

[0194] Use the above method to sample and test the box trademark. Fig. 22 As shown, the box label is placed forward in a plane rectangular coordinate system, the leftmost edge of the box label coincides with the Y axis, and the bottommost edge of the box label coincides with the X axis. All the indentations on the box label are marked as the 1st to the 10th in the order from top to bottom and from left to right; the midpoint coordinates of each indentation are a(25.75, 266.75), b(306.25, 266.75), c(166, 254), d(25.75, 202), e(3 06.25, 202), f(166, 150), g(25.75, 137), h(306.25, 137), i(166, 125), j(166, 20); when measuring distance, each indentation is measured in sequence from left to right and from top to bottom, and after each indentation is measured, the laser head moves straight from the end point of the measured indentation collection to the starting point of the next indentation to be measured; when measuring the distance of the first indentation, the moving path of the laser head points to the second indentation.

[0195] like Fig.23 As shown, the moving path of the laser head in this embodiment measures indentations 1, 8, 4...7 in sequence, passing through the midpoints a, h, d...g of each indentation in sequence on the way. The detection starting point coordinates and end point coordinates of the indentation detected during the entire detection process and the midpoint coordinates of each indentation are shown in the following table:

[0196] Coordinate table of the midpoint of the box label indentation and the starting point of the detection path

[0197]

[0198] The determined internal control mean and internal control range values ​​of the box trademark indentation depth are shown in the following table:

[0199] Average value table of indentation depth of box trademark (unit: mm)

[0200] Indentation No. 1 Indentation No. 2 Indentation No. 3 Indentation No. 4 Indentation number 5 Indentation No. 6 Indentation No. 7 Indentation number 8 Indentation No. 9 Indentation number 10 Mean 0.13 0.16 0.15 0.15 0.17 0.18 0.18 0.14 0.17 0.14

[0201] Table of internal control range values ​​for the indentation depth of box labels (unit: mm)

[0202] Indentation No. 1 Indentation No. 2 Indentation No. 3 Indentation No. 4 Indentation number 5 Indentation No. 6 Indentation No. 7 Indentation number 8 Indentation No. 9 Indentation number 10 Mean 0.13 0.16 0.15 0.15 0.17 0.18 0.18 0.14 0.17 0.14 Upper limit 0.16 0.19 0.17 0.21 0.23 0.23 0.22 0.17 0.19 0.17 Lower limit 0.1 0.14 0.11 0.12 0.13 0.14 0.13 0.12 0.13 0.12

[0203] Among them, indentations 2 and 9 are at the gluing position. If they are not folded well, the glue will not be strong. Indentations 4, 5, 6, and 7 are at the key position of the strip box. If they are not folded well, the strip box will not be well formed and the cellophane wrapping of the strip box will not be tight. Indentations 1, 3, 8, and 10 are shorter, and their folding positions are relatively fixed, which has little effect on the strip box forming effect. Therefore, indentations 1, 3, 8, and 10 are non-critical indentation groups, and the rest are critical indentation groups.

[0204] The indentation depth data of each of the 20 box trademark samples measured in this embodiment are shown in the following table:

[0205] Box label sample measurement data table (unit: mm)

[0206] Indentation No. 1 Indentation No. 2 Indentation No. 3 Indentation No. 4 Indentation number 5 Indentation No. 6 Indentation No. 7 Indentation number 8 Indentation No. 9 Indentation number 10 Mean 0.13 0.16 0.15 0.15 0.17 0.18 0.18 0.14 0.17 0.14 Upper limit 0.16 0.19 0.17 0.21 0.23 0.23 0.22 0.17 0.19 0.17 Lower limit 0.10 0.14 0.11 0.12 0.13 0.14 0.13 0.12 0.13 0.12 1 0.13 0.16 0.13 0.14 0.14 0.18 0.19 0.17 0.16 0.13 2 0.15 0.19 0.11 0.18 0.22 0.15 0.17 0.13 0.15 0.15 3 0.09 0.19 0.16 0.21 0.14 0.15 0.22 0.18 0.16 0.13 4 0.15 0.15 0.16 0.15 0.19 0.20 0.15 0.16 0.15 0.14 5 0.14 0.15 0.11 0.20 0.13 0.21 0.17 0.14 0.19 0.13 6 0.12 0.19 0.14 0.17 0.19 0.21 0.16 0.15 0.16 0.16 7 0.10 0.18 0.11 0.18 0.17 0.23 0.15 0.17 0.16 0.14 8 0.13 0.16 0.12 0.18 0.14 0.21 0.14 0.15 0.17 0.14 9 0.11 0.16 0.14 0.16 0.19 0.20 0.11 0.15 0.17 0.12 10 0.14 0.19 0.13 0.14 0.15 0.19 0.18 0.16 0.15 0.11 11 0.13 0.15 0.16 0.19 0.17 0.16 0.20 0.16 0.17 0.12 12 0.09 0.17 0.15 0.17 0.15 0.19 0.16 0.13 0.19 0.13 13 0.14 0.17 0.12 0.14 0.14 0.22 0.15 0.16 0.15 0.14 14 0.12 0.18 0.16 0.13 0.13 0.15 0.18 0.14 0.15 0.16 15 0.12 0.16 0.10 0.19 0.20 0.16 0.22 0.17 0.16 0.12 16 0.11 0.19 0.12 0.13 0.22 0.22 0.20 0.14 0.17 0.13 17 0.14 0.14 0.12 0.13 0.20 0.21 0.21 0.14 0.16 0.12 18 0.12 0.18 0.11 0.12 0.16 0.15 0.20 0.14 0.18 0.13 19 0.15 0.18 0.14 0.20 0.22 0.17 0.17 0.13 0.18 0.16 20 0.11 0.14 0.13 0.13 0.18 0.21 0.19 0.15 0.19 0.13

[0207] Through data comparison, we can determine that among the 20 samples measured, all the indentations of sample No. 1, sample No. 2, sample No. 4, sample No. 5, sample No. 6, sample No. 7, sample No. 8, sample No. 11, sample No. 13, sample No. 14, sample No. 16, sample No. 17, sample No. 18, sample No. 19, and sample No. 20 are within the internal control range and belong to the trademarks with qualified indentation depth; in sample No. 3, the depths of indentation 1 and indentation 8 exceed the internal control range, and indentation 1 and indentation 8 belong to the non-critical indentation group, and because the indentations of the non-critical group do not exceed two items, sample No. 3 belongs to the box trademark with qualified indentation depth; In sample No. 12, the depth of indentation 1 exceeds the internal control range, but indentation 1 belongs to the non-critical group indentation, so sample No. 12 is a strip box trademark with a qualified indentation depth; in sample No. 15, the depth of indentation 3 exceeds the internal control range, but indentation 3 belongs to the non-critical group indentation, so sample No. 15 is a strip box trademark with a qualified indentation depth.

[0208] 19 out of 20 samples taken from this batch of trademarks are qualified, with a pass rate of 95%. This batch of trademarks are qualified raw materials and are expected to have good adaptability to the machine and can enter the production process.

[0209] Example 5: In Examples 1 to 4, the raw materials whose trademark die-cutting size quality, trademark indentation width quality, trademark indentation depth quality, and trademark printing quality are judged to be all qualified can enter the production process, otherwise they will be discarded.

[0210] After a series of indicator controls were implemented on the trademarks, the overall defective rate within a single day dropped by about 51.72%; the proportion of defective rates due to unqualified trademarks dropped by about 32.32%, which effectively reduced the defective rate of finished products, saved a series of supporting materials, and improved production efficiency.

[0211] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, and do not constitute a limitation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. For example, food packaging boxes, beverage packaging boxes, gift packaging boxes, etc. can all use the method described in this invention to detect the size of raw materials before boxing, so as to achieve the purpose of screening raw materials and reducing the defective rate of finished products. In addition, the claims attached to the present invention are intended to cover all changes and modifications that fall within the scope and boundaries of the attached claims, or the equivalent forms of such scope and boundaries.

Claims

1. A method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters, characterized in that: The following steps are involved: S1, pixel calibration: measuring the size of each pattern on the calibration piece by a CCD camera to obtain a corresponding pixel pattern, and establishing a corresponding relationship between the display screen pixel and the actual size by the ratio of the actual size to the corresponding pixel pattern size; S2. Database modeling: Enter the size parameters of various types of trademarks, printed patterns on trademarks, and indentations on trademarks into the database to generate basic images. For each basic image, use a CCD camera to collect the corresponding standard trademark image in real time. Manually optimize the edge-finding parameters of the standard trademark image to find the edge-finding parameters that can accurately extract the trademark edge, the indentation edge, and the printed pattern edge on the trademark on the standard trademark image, and complete database modeling. S3, extracting information; sampling and testing the batch of trademarks to be tested, placing the sample trademarks to be tested in the image acquisition area, setting the border-finding moving path of the CCD camera in combination with the database model, collecting the image of the trademark to be tested through the CCD camera, and extracting the trademark edge, the indentation edge on the trademark, and the edge of the printed pattern on the trademark; S4, quality determination: by calculating the corresponding distance through the extracted edge data information, and then comparing it with the internal control, the surface parameter quality of the sample trademark is determined respectively; the surface parameter quality includes the trademark die-cutting size quality, the trademark indentation width quality, and the trademark printing quality; S5. Eliminate unqualified batches; determine whether the trademark of the batch to which the sample belongs meets the production requirements through the sample surface parameter quality judgment results. If any of the surface parameter quality is unqualified, the trademark of the batch to which the sample belongs is determined to be unqualified, and the unqualified batch of trademarks will be eliminated from the raw materials.

2. The method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters as claimed in claim 1, characterized in that: The edge-finding parameters in step S2 include accuracy, boundary strength, threshold, and burr size; the staff optimizes each edge-finding parameter in sequence.

3. The method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters as claimed in claim 2, characterized in that: The optimization of edge-finding parameters in step S2 includes the following steps: S2.1, precision selection, using a 3×3 Gaussian filter window size to perform Gaussian smoothing filtering on the collected CCD trademark image to eliminate noise interference; In formula (1), σ is the standard deviation of the Gaussian distribution, G(x,y) represents the filtered image, and x and y are the coordinates of the pixel points; define σ 2 For the accuracy of image filtering, under the condition of fixed template, by adjusting the setting σ 2 value, to achieve image noise suppression and image smoothing for different trademarks and printed patterns; the σ 2 The value setting range is 1-20; S2.2, grayscale conversion is performed on the image after Gaussian filtering to obtain the grayscale image of the trademark, and RGB is converted to YUV, two major color spaces. The specific calculation method is: Y=0.299R+0.587G+0.114B (2) U=0.493(BY) (3) V=0.877(RY) (4) In formulas (2), (3), and (4), R is the red component, G is the green component, B is the blue component, Y is the brightness, U is the color, and V is the saturation; S2.3, using the Sobel operator to perform edge detection on the grayscale image, extracting the coordinates of the trademark edge, the indentation edge on the trademark, and the edge point of the printed pattern on the trademark; S2.4, based on the coordinate points (x1, y1), (x2, y2)…(x1, y1) of the trademark edge, the indentation edge on the trademark, and the edge of the printed pattern on the trademark extracted by the Sobel operator m ,y m ), the least square method is used for fitting; the regression equation of the least square method is: According to the least squares method, let y i With a+bx i The sum of squares of the deviations is minimized, and we can obtain: in: Through the above steps, the edge of each trademark, the edge of the indentation on the trademark, and the edge straight line of the printed pattern on the trademark can be fitted respectively. After the first linear regression analysis, the pixel distance from each point to the fitting straight line is calculated as the burr size, and the burr size value setting range is 1-50 pixels; the burr size value is set to remove discrete points with a large distance.

4. The method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters as claimed in claim 3, characterized in that: The step S2.3 comprises the following steps: S2.3.1, the Sobel operator contains two sets of 3×3 matrices, one for the horizontal and one for the vertical. By performing a planar convolution with the grayscale image, the approximate values ​​of the horizontal and vertical grayscale gradients can be obtained respectively: In formulas (5) and (6), G x and G y Represent the approximate values ​​of the horizontal and vertical gradients respectively, and A represents the original grayscale image; S2.3.2, the grayscale gradient is calculated by the horizontal and vertical grayscale gradient values ​​of each pixel in the image: S2.3.3, select appropriate boundary strength B and gradient threshold T, use row-by-row or column-by-column search method, compare the gray value and gray gradient of each pixel in the search border area with B and T respectively, only the points that simultaneously satisfy gray value A(x, y) ≥ B and gradient G(x, y) ≥ T are edge points, and other points are non-edge points.

5. The method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters as claimed in claim 4, characterized in that: The setting range of the threshold T is 0.1-0.95; when extracting the edge of the trademark, the setting range of the boundary strength B is 1-200; when extracting the edge of the indentation on the trademark, the setting range of the boundary strength B is 32-59; when extracting the edge of the printed pattern on the trademark, the setting range of the boundary strength B is 1-76.

6. The method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters as claimed in claim 5, characterized in that: In the steps S2 and S3, a combined LED light source is used when performing image acquisition by a CCD camera, and the combined LED light source includes a top light source arranged around the CCD camera and a bottom light source arranged below the image acquisition area; the top light source includes a top upper light source, a top lower light source, a top left light source and a top right light source; the top light source is used when extracting the edge of the pattern on the printed trademark, and the light source intensity coefficient of the top light source is between 31-77; the top light source is used when extracting the indentation edge, and the light source intensity coefficient of the top light source is between 31-49; the bottom light source is used when extracting the trademark edge, and the light source intensity coefficient of the bottom light source is between 25-60; when measuring the upper edge of the transverse indentation, only the top upper light source is turned on; when measuring the lower edge of the transverse indentation, only the top lower light source is turned on; when measuring the left edge of the longitudinal indentation, only the top left light source is turned on; when measuring the right edge of the longitudinal indentation, only the top right light source is turned on.

7. The method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters as claimed in claim 1, characterized in that: The trademark includes a small box trademark and a strip box trademark. The method for judging the printing quality of the small box trademark in step S4 is to place the small box trademark horizontally, and the printed pattern on the small box trademark is divided into three areas: left, middle and right according to the pattern edge and grayscale difference and the position after folding into a box. The distance from the printed pattern to the upper and lower edges of the small box trademark in each area is calculated respectively, and the printing quality defects are judged by the calculated distance; the printing quality defect judgment includes the degree of deviation and the degree of skew; the absolute value of the distance difference between the upper and lower edges of the printed pattern in each area and the upper and lower edges of the small box trademark is calculated, and the printing quality defects are judged by the calculated distance. This determines the degree of deviation of the printed pattern in the three areas; calculates the absolute value of the difference between the distance from the edge of the printed pattern in the left area on the same side to the edge of the small box trademark and the distance from the edge of the printed pattern in the right area to the edge of the small box trademark, so as to determine the overall skewness of the printed pattern; the method for determining the printing quality of the strip box trademark in step S4 is to place the top of the strip box trademark horizontally to the left, and divide it into two upper and lower detection areas according to the pattern edge and grayscale difference and the position after folding into a box, and measures and calculates the absolute value of the difference between the distance from the edge of the printed pattern in the two areas to the edge of the strip box trademark on the same side, so as to determine the overall skewness of the printed pattern.

8. The method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters as claimed in claim 1, characterized in that: The trademark includes a small box trademark and a strip box trademark; in the step S4, all the indentations are divided into a critical indentation group and a non-critical indentation group for determining the quality of the trademark indentation width. The indentations at the gluing and folding positions and the indentations at the critical folding positions of the cigarette pack forming belong to the critical indentation group, and the rest belong to the non-critical indentation group; if in the critical indentation group, if an indentation with a width exceeding the internal control range value appears, it is determined that the indentation width quality of the trademark is unqualified; if in the non-critical indentation group, if more than two indentations with a width exceeding the internal control range value appear, it is determined that the indentation width quality of the trademark is unqualified.

9. The method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters as claimed in claim 1, characterized in that: The trademark includes a small box trademark and a strip box trademark; when determining the die-cutting size quality of the trademark in the step S4, the sizes of the various parts that affect the packaging effect of the trademark are first marked as different detection sequences, and all detection sequences are divided into a key detection sequence group and a non-key detection sequence group, including the detection sequence of the gluing and folding position belongs to the key detection sequence group, and the rest are non-key detection sequence groups. If a detection sequence with a size exceeding the internal control range value appears in the key detection sequence group, it is determined that the die-cutting size quality of the trademark is unqualified. If more than two detection sequences with a size exceeding the internal control range value appear in the non-key detection sequence group, it is determined that the die-cutting size quality of the trademark is unqualified.

10. The method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters as claimed in claim 1, characterized in that: The step between step S4 and step S5 also includes determining the quality of the trademark indentation depth; the trademark includes a small box trademark and a strip box trademark; the determination of the quality of the trademark indentation depth includes the following steps: S4.

1. Take a point to measure the distance. Replace the CCD camera on the testing equipment with a laser testing head. Use laser distance measurement to measure the depth of the indentation to be tested one by one. During the measurement, the laser path is perpendicular to the trademark surface. Perform laser distance measurement on several points at a certain distance on both sides of each indentation to be tested, and measure the distance from each point to the laser head. S4.

2. Calculation of indentation depth: the maximum value minus the minimum value among the measured distances is the indentation depth; S4.

3. Indentation depth quality judgment: All indentations are grouped according to the process of folding the trademark into a box and the position of each indentation in the trademark. Different quality judgment standards are used for indentations in different groups. All indentations are compared with the internal control range values ​​of the indentations, and then different quality judgment standards are used to determine whether the indentation depth quality is qualified.

11. The method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters as claimed in claim 10, characterized in that: In the step S4.1, when taking points for distance measurement, points are taken from the trademark surface at a distance of 5 mm from one side of the indentation, and the line connecting the taken measurement points passes through the inside of the indentation. The point measurement is stopped until the position at a distance of 5 mm from the other side of the indentation is taken; thirty points are evenly spaced between the starting and ending points for collection, and the line connecting the taken measurement points passes through the midpoint of each indentation, and when measuring each indentation, the line connecting the taken points is perpendicular to the indentation; when measuring distance, each indentation is measured in sequence from left to right and from top to bottom, and after each indentation is measured, the laser head moves straightly from the end point of the measured indentation collection to the starting point of the next indentation to be measured; when measuring the distance of the first indentation, the movement path of the laser head points to the second indentation.

12. The method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters according to claim 11, characterized in that: In the step S4.3, all the indentations are divided into a critical indentation group and a non-critical indentation group. The indentations at the gluing and folding positions and the critical folding positions of the cigarette pack forming belong to the critical indentation group, and the rest belong to the non-critical indentation group. If there are indentations in the critical indentation group whose depth exceeds the internal control range value, it is determined that the indentation depth quality of the trademark is unqualified. If there are more than two indentations in the non-critical indentation group whose depth exceeds the internal control range value, it is determined that the indentation depth quality of the trademark is unqualified.

Citation Information

Cited By

  • Soft bag ironing detection system

    CN120558963A