Method for reducing defective rate of finished products on basis of trademark surface parameter measurement and control

Through the combination of CCD camera and laser detection head, real-time detection and control of trademark surface parameters are realized, which solves the problem of low detection accuracy of trademark surface parameters in cigarette production, reduces the rate of defective finished products, and improves production efficiency and detection accuracy. .

WO2024183440A1PCT designated stage expired Publication Date: 2024-09-12HONGYUN HONGHE TOBACCO (GRP) CO LTD

Patent Information

Application Number
PCT/CN2024/070624
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-09
Filing Date
2024-01-04
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

The existing technology fails to effectively detect and control trademark surface parameters in cigarette production, resulting in a high rate of defective finished products, low production efficiency, and low detection accuracy, which cannot meet the needs for accurate measurement of trademark indentation width and die-cut size.

Method used

Using a detection device that combines a CCD camera and a laser detection head, through pixel calibration, database modeling, information extraction and quality determination steps, the trademark printing pattern, die-cutting size, indentation width and depth are detected and controlled in real time, and unqualified products are eliminated. Raw materials to ensure that the quality of trademark surface parameters meets standards.

Benefits of technology

It significantly reduces the defective rate of finished products, improves production efficiency, has high detection accuracy, fast speed, and wide application range. It can quickly and accurately detect quality defects in trademark surface parameters, reducing manual measurement errors and material waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024070624_12092024_PF_FP_ABST
    Figure CN2024070624_12092024_PF_FP_ABST
Patent Text Reader

Abstract

A method for reducing a defective rate of finished products on the basis of trademark surface parameter measurement and control. The method comprises: first, inputting size parameters of various types of trademarks, trademark indentations and printed trademark patterns into a database, so as to generate basic images, and for each basic image, collecting a corresponding standard trademark image in real time by means of a CCD camera, manually performing edge finding parameter optimization on the standard trademark image, and finding edge finding parameters, by means of which edges of a trademark, a trademark indentation and a printed trademark pattern can be accurately extracted from the standard trademark image, thereby completing database modeling; then, performing sampling inspection on trademarks of a batch to be subjected to inspection, and extracting edge information in view of a database model; calculating corresponding distances by means of extracted edge data information, and then comparing the corresponding distances with internal control, and respectively determining the surface parameter quality of sample trademarks; and by means of sample surface parameter quality determination results, determining whether the trademarks of the batch where the samples are located meet production requirements, and eliminating trademarks of an unaccepted batch from raw materials. In this way, a defective rate of finished products is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

A method for reducing the defective rate of finished products based on the detection and control of trademark surface parameters Technical Field

[0001] The present 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 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 indentation quality.

[0003] Defects in trademark printing quality can cause the upper and lower box cover patterns of the finished product to be misaligned, which can cause appearance quality problems. Figures 6 and 7 are schematic diagrams comparing small box trademarks and strip box trademarks that have appearance quality problems due to defects in trademark printing quality with qualified products.

[0004] Failure to meet the die-cutting dimensional specifications for labels can lead to loose, uneven, or even detached packaging, and in more serious cases, the packaging machine can't form the label. Small box labels, due to die-cutting dimensional defects, can't adapt to the packaging machine, leading to quality issues such as exposed bottoms or corners on cigarette pack lids. Strip box labels, due to die-cutting dimensional defects, can also lead to quality issues with the folding edges of strip packaging. Figures 2 and 3 show a comparison of small box labels and strip box labels with appearance quality issues due to die-cutting dimensional defects, compared to qualified products.

[0005] The quality of trademark die-cut indentations includes both indentation width and depth. During the folding process, trademarks must be creased before folding. The indentation acts as a folding guide, aiding in the final folding process and resulting in a smoother, more aesthetically pleasing package. The indentation width is generally controlled within a tolerance of 0.3mm. Indentations that are too wide or too narrow may result in a less three-dimensional folded label, with angles not forming a 90° angle, resulting in a flawed final package and quality issues. Inadequate indentation depth can result in defective products with cracked edges. Excessive folding can lead to cumulative errors and even lead to folding failures or jamming in the packaging machine. Figures 4 and 5 show comparisons of small box and strip labels with appearance quality issues due to indentation width quality defects compared to qualified products. Figures 8 and 9 show comparisons of small box and strip labels with appearance quality issues due to indentation depth quality defects compared to qualified products.

[0006] Currently, quality inspections are almost exclusively conducted on finished cigarette packs. Because pre-production testing of label surface parameters is not considered to control the quality of raw materials, defective products are often discovered after an entire batch of finished products has been produced. This necessitates not only a series of defective product removal processes but also production downtime to investigate the cause. This wastes material and significantly reduces production efficiency, impacting the entire supply chain. In even more serious cases, it can cause packaging equipment to jam and shut down. Therefore, pre-production testing and control of raw material label surface parameters to reduce the defect rate in finished products is of practical significance for both cigarette manufacturers and label printing companies in terms of controlling quality defects and improving product quality.

[0007] Furthermore, when using existing technologies to test 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 measurement of trademark die-cut dimensions is done manually using measuring tools such as rulers and calipers. Due to the large number of test items and the lengthy process, manual measurement has the following problems:

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

[0009] 2) The detection accuracy is not high, with the highest detection accuracy being 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] Based on the device for detecting trademark die-cutting dimensions, angles, and indentation widths disclosed in Chinese utility model patent CN202121323819.3, this invention detects trademarks and printed patterns, as well as indentation depth, width, and die-cut dimensions. When measuring indentation depth, a laser detection head is installed in place of the CCD linear array camera in the original application. By detecting and controlling trademark surface parameters, the defective rate of finished products can be reduced.

[0012] Summary of the Invention

[0013] The present invention provides a method for reducing the defective rate of finished products by detecting and controlling trademark surface parameters. This method includes detecting and controlling the position of the trademark printing pattern, the trademark die-cutting dimensions, and the width and depth of the trademark die-cutting indentation on the trademark raw materials. This method controls the quality of the trademark raw materials, eliminates unqualified raw materials, and eliminates defective products at the root. Specifically, the method of the present invention is as follows:

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

[0015] S1. Pixel calibration: Using a CCD camera to measure the size of each pattern on the calibration piece to obtain the corresponding pixel pattern, and establishing the correspondence between the display screen pixels and the actual size through the ratio of the actual size to the corresponding pixel pattern size;

[0016] S2. Database modeling: The dimensional parameters of various trademark types, printed patterns on trademarks, and indentations on trademarks are entered into the database to generate basic images. For each basic image, a corresponding standard trademark image is captured in real time using a CCD camera. Edge-finding parameters for the standard trademark image are manually optimized to find edge-finding parameters that can accurately extract the trademark edge, the indentation edge, and the printed pattern edge on the trademark, completing database modeling.

[0017] S3. Extract information: Sample the batch of trademarks to be tested and place the sample trademarks to be tested in the image acquisition area. Based on the database model, set the CCD camera to find the border movement path, and use the CCD camera to capture the image of the trademark to be tested, and extract the trademark edge, the edge of the indentation on the trademark, and the edge of the printed pattern on the trademark;

[0018] S4. Quality determination: Calculate the corresponding distances based on the extracted edge data information, then compare 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, trademark indentation width quality, and trademark printing quality.

[0019] S5. Eliminate unqualified batches; determine whether the trademark of the batch to which the sample belongs meets the production requirements based on 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 trademark of the unqualified batch will be eliminated from the raw materials.

[0020] 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.

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

[0022] 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;

[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 coordinate positions 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 the suppression of image noise and image smoothing for different trademarks and printed patterns; the σ 2 The value setting range is 1-20;

[0024] S2.2, perform grayscale conversion on the Gaussian filtered image to obtain the grayscale image of the trademark, and convert RGB to YUV color space. The specific calculation method is: Y = 0.299R + 0.587G + 0.114B (2) U = 0.493 (BY) (3) V = 0.877 (RY) (4)

[0025] 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;

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

[0027] S2.4, based on the Sobel operator, the coordinate points (x1, y1), (x2, y2)... (x m ,y m ), the least square method is used for fitting; the regression equation of the least square method is:

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

[0029] in:

[0030] Through the above steps, straight lines can be fitted for the edge of each trademark, the edge of the indentation on the trademark, and the edge of the printed pattern on the trademark. After the first linear regression analysis, the pixel distance from each point to the fitted straight line is calculated as the burr size, and the burr size value setting range is 1-50 pixels. By setting the burr size value, discrete points with large distances are removed.

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

[0032] S2.3.1, the Sobel operator consists of 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 grayscale gradients for the horizontal and vertical directions can be obtained as follows:

[0033] In formulas (5) and (6), G x and G y Represent the horizontal and vertical gradient approximations respectively, and A represents the original grayscale image;

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

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

[0036] 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; and the setting range of the boundary strength B when extracting the edge of the printed pattern on the trademark is 1-76.

[0037] Furthermore, in 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; only the top upper light source is turned on when measuring the upper edge of the horizontal indentation; only the top lower light source is turned on when measuring the lower edge of the horizontal indentation; only the top left light source is turned on when measuring the left edge of the longitudinal indentation; and only the top right light source is turned on when measuring the right edge of the longitudinal indentation.

[0038] Furthermore, the trademark includes a small box trademark and a strip box trademark. 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. 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 the 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.

[0039] Furthermore, the trademark includes a small box trademark and a strip box trademark; in the step S4, the trademark indentation width quality is determined by dividing all indentations into a critical indentation group and a non-critical indentation group. The indentations at the gluing and folding positions and the indentations at the key 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 width exceeding the internal control range value appears in the critical indentation group, it is determined that the indentation width quality of the trademark is unqualified; if more than two indentations with a width exceeding the internal control range value appear in the non-critical indentation group, it is determined that the indentation width quality of the trademark is unqualified.

[0040] Furthermore, the trademark includes a small box trademark and a strip box trademark; when determining the die-cutting size quality of the trademark in 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.

[0041] Furthermore, between step S4 and step S5, the process 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:

[0042] S4.1. Point Distance Measurement: Replace the CCD camera on the testing equipment with a laser detection head. Measure the depth of each indentation on the sample using laser ranging. Keep the laser path perpendicular to the trademark surface. Measure the distance between each point and the laser head, measuring the distance between each point and the laser head.

[0043] S4.2. Calculate the indentation depth by subtracting the minimum value from the maximum value of the measured distance to obtain the indentation depth.

[0044] 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 applied to indentations in different groups. All indentations are compared with the indentation internal control range values, and then different quality judgment standards are used to determine whether the indentation depth quality is qualified.

[0045] Furthermore, in step S4.1, when taking points for distance measurement, points are taken starting from the trademark surface at a position 5 mm away from the indentation on 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 a position 5 mm away from the edge of the other side of the indentation is taken on the other side of the indentation; 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 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.

[0046] Furthermore, in step S4.3, all 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.

[0047] The working principle of the present invention is as follows: This method first generates a basic image in the system based on the dimensional data of various types of trademarks; then, by manually optimizing the edge-finding parameters such as frame-finding accuracy, boundary strength, threshold, and burr size, the optimal conditions for extracting the standard trademark edge, the trademark indentation edge, and the edge of the printed pattern on the trademark are determined by the CCD camera. After matching with the basic image, a model is established and stored in the database; then, under the combined illumination of a combined LED light source, the trademark edge, the trademark indentation edge, and the trademark printed pattern edge are extracted, and the required distances are calculated. These are 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 to which the sample belongs is qualified, and unqualified batches of trademarks are eliminated from the raw materials.

[0048] When selecting accuracy, the standard deviation significantly impacts the smoothing ability of the Gaussian filter. A larger σ indicates a wider Gaussian filter bandwidth, resulting in improved image smoothing. However, the trademark being measured is typically flat, not three-dimensional. Furthermore, due to factors such as the color and ink of the printed pattern, excessive image smoothing can render it unrecognizable. A setting between 1 and 20 yields the best extraction results. Due to the varying colors, backgrounds, and textures of various trademark types, the optimization of edge-finding parameters is tailored to the specific situation. The use of a combined LED light source further enhances the extraction of trademark edges, indentation edges, and printed pattern edges. Optimum extraction parameters for each type of trademark edge, indentation edge, and printed pattern edge are then adjusted during modeling.

[0049] 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.

[0050] When measuring indentation depth, laser ranging is performed at thirty evenly spaced points, starting from a point 5mm from the outer edge of each indentation. The distance from each point to the laser head is measured. The line connecting the measured points is perpendicular to the indentation and passes through its midpoint, ensuring the shortest measurement path and the most even spacing of the measurement points, thereby improving detection accuracy. The indentation depth is determined by subtracting the minimum from the maximum value of the thirty measured data. During measurement, the laser head moves perpendicularly through the midpoint of each indentation. After measuring each indentation, the laser head moves in a straight line from the end point of the measured indentation to the starting point of the next indentation to be measured. When measuring the distance of the first indentation, the laser head moves towards the second indentation to minimize the laser head movement path during distance measurement, saving measurement time and improving overall measurement efficiency.

[0051] In addition, when judging the trademark indentation quality and the trademark die-cutting size quality, they are divided into key groups and non-key groups according to the position of the indentation, the function of each indentation, and the position of the die-cutting size detection sequence, and judged separately. The two groups use different quality judgment standards to improve the accuracy of judging qualified and unqualified trademarks and avoid unnecessary rejection and waste.

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

[0053] (1) By testing the trademark surface parameters at the front end of production to control its quality and determine the trademark's adaptability to the machine, it is determined whether the trademark meets the production standards. This eliminates the use of raw materials that will produce defective products from the root, eliminating the need to wait until problems arise in the finished product quality inspection step or during the production process to start shutting down the machine for inspection and eliminating defective products; avoiding waste of production materials while greatly improving production efficiency. After using this method, the overall defective rate of the production workshop decreased by approximately 51.72% per day; the proportion of defective rates caused by unqualified trademarks decreased by approximately 32.32%, effectively reducing the defective rate of finished products, saving a series of supporting materials, and improving production efficiency.

[0054] (2) 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 trademark surface parameter quality defects.

[0055] (3) This method features high accuracy, rapid speed, and simple operation, meeting the requirements for detecting surface parameter quality defects in trademarks and improving detection efficiency. Manual testing, due to its low efficiency, does not allow for the extraction of sufficient samples for testing. This method increases the number of samples that can be tested per batch of trademarks, further improving detection accuracy, optimizing test results, and avoiding false detections and rejections. It has excellent application and promotion value. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] FIG1 is a schematic diagram of the process of Example 1 of the present invention;

[0057] FIG2 is a comparison diagram of qualified finished trademark products according to the present invention and defective finished products caused by unqualified trademark die-cutting dimensions and quality;

[0058] FIG3 is a comparison diagram of qualified finished trademark products according to the present invention and defective finished products caused by unqualified trademark die-cutting dimensions and quality;

[0059] FIG4 is a comparison diagram of qualified finished trademark products according to the present invention and defective finished products resulting from unqualified trademark indentation width quality;

[0060] FIG5 is a comparison diagram of qualified finished trademark products according to the present invention and defective finished products resulting from unqualified trademark indentation width quality;

[0061] FIG6 is a comparison diagram of qualified finished trademark products according to the present invention and defective finished products resulting from unqualified trademark printing quality;

[0062] FIG7 is a comparison diagram of qualified finished trademark products according to the present invention and defective finished products resulting from unqualified trademark printing quality;

[0063] FIG8 is a comparison diagram of qualified finished trademark products according to the present invention and defective finished products resulting from unqualified trademark indentation depth quality;

[0064] FIG9 is a comparison diagram of qualified finished trademark products according to the present invention and defective finished products resulting from unqualified trademark indentation depth quality;

[0065] FIG10 is a comparison diagram of a successful edge finding example and an unsuccessful edge finding example of a small box trademark and a small box trademark printed pattern according to Example 1 of the present invention;

[0066] FIG11 is a comparison diagram of a successful edge finding example and a failed edge finding example of a small box trademark indentation according to Example 1;

[0067] FIG12 is a comparison diagram of successful edge finding examples and failed edge finding examples of the small box trademark and the small box trademark printed pattern according to Example 1 of the present invention;

[0068] FIG13 is a comparison diagram of a successful edge finding example and a failed edge finding example of a small box trademark indentation according to Example 2;

[0069] FIG14 is a schematic diagram of the basic image and partitions of the small box trademark to be tested in Example 1;

[0070] FIG15 is a schematic diagram of the basic image and partitions of the strip box trademark to be tested in Example 1;

[0071] FIG16 is a schematic diagram of a basic image of a small box trademark to be tested and an indentation to be tested according to Example 2;

[0072] FIG17 is a schematic diagram of a basic image of a box trademark to be tested and an indentation to be tested according to Example 2;

[0073] FIG18 is a schematic diagram of a basic image of a small box trademark to be tested and a detection sequence according to Example 3;

[0074] FIG19 is a schematic diagram of a basic image of a box trademark to be tested and a detection sequence according to Example 3;

[0075] FIG20 is a schematic diagram of the small box trademark according to Example 4 of the present invention located in a coordinate system;

[0076] FIG21 is a schematic diagram of the movement path of the laser head when detecting a small box trademark according to Example 4;

[0077] FIG22 is a schematic diagram of the box trademark according to Example 4 of the present invention located in the coordinate system;

[0078] FIG23 is a schematic diagram of the movement path of the laser head when detecting the label on the strip box according to Example 4;

[0079] FIG24 is a schematic diagram of the calibration component described in Example 1 of the present invention. DETAILED DESCRIPTION

[0080] 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 conjunction with the embodiments and specific implementation methods of the present invention based on the detection and control of trademark surface parameters to reduce the defective rate of finished products.

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

[0082] 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 is used to detect trademarks and trademark printing patterns.

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

[0084] S1, pixel calibration: Use a CCD camera to measure the size of each pattern on the calibration piece to obtain the corresponding pixel pattern. The calibration piece is shown in Figure 24. The correspondence between the display screen pixels and the actual size is established by the ratio of the actual size to the corresponding pixel pattern size.

[0085] S2, database modeling; the size parameters of each type of trademark, the printed pattern on the trademark, and the indentation on the trademark are entered into the database to generate a basic image, and the corresponding standard trademark image is collected in real time by a CCD camera for each basic image. As shown in Figure 16, it is a basic image of the indentation of the trademark to be tested, where the indentation numbers 1-18 are the indentations to be tested. As shown in Figure 18, it is a basic image of one specification of the standard trademark and its sequence standard to be tested. Then, the edge-finding parameters of the standard trademark image are manually optimized. Edge-finding means accurately finding and extracting 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:

[0086] 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;

[0087] In formula (1), σ is the standard deviation of the Gaussian distribution, G(x,y) represents the filtered image, and x and y are the coordinate positions 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, ink, etc., a large σ will lead to extraction failure. Define σ in algorithm programming 2 For the accuracy of image filtering, different σ is set according to the needs of different categories of trademarks. 2 value, to achieve the suppression of noise and image smoothing for different trademarks and printed images; here σ 2 The extraction effect is best when the value setting range is set to 1-20.

[0088] S2.2, perform grayscale conversion on each image after Gaussian filtering to obtain the grayscale image of the trademark, and convert RGB to YUV color space. The specific calculation method is: Y = 0.299R + 0.587G + 0.114B (2) U = 0.493 (BY) (3) V = 0.877 (RY) (4)

[0089] 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.

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

[0091] S2.3.1, the Sobel operator consists of 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 grayscale gradients for the horizontal and vertical directions can be obtained as follows:

[0092] In formulas (5) and (6), G x and G y Represent the horizontal and vertical gradient approximations respectively, and A represents the original grayscale image;

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

[0094] S2.3.3. Select an appropriate boundary strength B and gradient threshold T. Using a row-by-row or column-by-column search method, compare the grayscale gradient and grayscale value of each pixel within the border search area with B and T, respectively. Only points that simultaneously satisfy grayscale value A(x,y) ≥ B and gradient G(x,y) ≥ T are considered edge points; all other points are considered non-edge points. The setting range for threshold T is 0.1-0.95. When extracting trademark edges, the setting range for boundary strength B is 1-200; when extracting the edge of an indentation on a trademark, the setting range for boundary strength B is 32-59; and when extracting the edge of a printed pattern on a trademark, the setting range for boundary strength B is 1-76.

[0095] S2.4, the coordinate points (x1, y1), (x2, y2)...(x1, y1) of the trademark edge, the indentation edge, and the printed pattern edge 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:

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

[0097] in:

[0098] By using formulas (1) to (10), the trademark edge, the indentation edge 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. The burr size value setting range is 1-50 pixels. Select an appropriate value and remove discrete points with a large distance.

[0099] As shown in Figures 10 and 11, there are comparisons of successful and failed examples of edge finding for trademarks, trademark indentations, and trademark patterns. "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.

[0100] S3, extract information; place the top of the trademark to be tested horizontally to the left in the image acquisition area, and set the CCD camera to find the border movement path based on the database model. Use the CCD camera to capture the image of the trademark to be tested using a left-to-right line-by-line search and tracking method to extract the edges of the trademark and printed pattern.

[0101] During image acquisition in steps S2 and S3, a combined LED light source is used. This combined LED light source includes a top light source positioned around the CCD camera and a bottom light source positioned below the image acquisition area. The top light source is used to extract the edges of the printed pattern, with a light intensity coefficient between 31 and 77. The bottom light source is used to extract the edges of the trademark, with a light intensity coefficient between 25 and 60.

[0102] As shown in Figure 12, this is a comparison 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. Among them, "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.

[0103] S4, quality determination; As shown in Figure 14, place the small box trademark horizontally with the top facing left, and divide the trademark 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 the folded box, namely Area 1, Area 2, and Area 3 in Figure 10. Based on the detection data, the distances between the boundaries of the 6 detection positions in Figure 10 are calculated respectively, 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 calculations.

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

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

[0106] Overall skewness of the printed pattern on the small box trademark (unit: mm)

[0107] S5, eliminate 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 have printing pattern quality defects. The unqualified printing quality ratio of the tested samples accounts for 10% or more. It is determined that the small box trademarks of this batch are unqualified. The use of the raw materials of this batch of trademarks will result in defective cigarette packs. The raw materials of this batch of trademarks will be eliminated before production.

[0108] The above method is used to determine printing quality defects on a strip box label. The small box label is replaced with a strip box label, as shown in Figure 15. The top of the strip box label is placed horizontally to the left. The label is divided into four detection positions, D1 to D4, based on pattern edges and grayscale differences. The printed pattern on the strip box label is divided into upper and lower regions, Region 1 and Region 2, based on the position where it is folded into the box. The distances between the boundaries of the four detection positions are calculated based on the detection data. D1 is the distance between the left side of the printed pattern in Region 1 and the strip box label boundary; D2 is the distance between the right side of the printed pattern in Region 1 and the strip box label boundary; D3 is the distance between the left side of the printed pattern in Region 2 and the strip box label boundary; and D4 is the distance between the right side of the printed pattern in Region 2 and the strip box label boundary. Printing quality defects are determined using the following calculations.

[0109] In formula (3), dis 13 、dis 24 The overall skewness of the printed pattern. According to the quality requirements of 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 Should be less than or equal to ε. Using the above method, 20 samples were taken from a batch of box labels for testing. The results are shown in the following table:

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

[0111] From the test results, it can be seen that the dis24 offset of samples 5, 8, 9, 10, 14, 15, and 17 exceeds the tolerance threshold, and it can be determined that the overall pattern printing is unqualified. The printing pattern quality of the remaining samples is qualified. The unqualified printing quality rate in the test samples accounts for 35%, which is more than 10%. It is determined 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.

[0112] 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, lowering the risk of market quality feedback, and reducing the consumption of manpower and materials.

[0113] Example 2, quality assessment of trademark indentation width:

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

[0115] S3. Extract information: Place the top of the trademark to be tested horizontally to the left in the image acquisition area. Based on the database model, set the CCD camera's border-finding movement path. Use the CCD camera to capture the trademark image, searching and tracking from top to bottom and left to right, row by row, to extract the indentation edge to be tested.

[0116] A combination of LED light sources 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. This combination of LED light sources is used in conjunction with the CCD camera to acquire images in steps S2 and S3. During image acquisition, the light source intensity coefficient is set between 31 and 49, and all four light sources illuminate the center of the CCD camera's border search area on the trademark at a 45° angle. Only the top upper light source is enabled when measuring the upper edge of a horizontal indentation; only the top lower light source is enabled when measuring the lower edge of a horizontal indentation; only the top left light source is enabled when measuring the left edge of a vertical indentation; and only the top right light source is enabled when measuring the right edge of a vertical indentation.

[0117] As shown in Figure 13, this is a comparison of successful examples and failed examples of trademark indentation edge finding when the light source direction and light source intensity coefficient are moderate. "x" is the trademark indentation edge point extracted during edge finding. When the edge points can be connected and fitted into a straight line, the edge finding is successful.

[0118] S4. Quality Assessment: The width of each indentation is calculated by measuring the distance between its two edges. Each indentation width is then compared with the internal control value to assess its quality. All indentations are then divided into critical and non-critical groups based on their impact on the gluing and molding of the label. As shown in Figure 16, indentations 3, 13, 4, 14, 5, 15, 6, and 16 are located at the gluing and folding positions. If the folding is not done properly, the glue will not be strong enough. Indentations 8, 9, 10, 11, and 12 are located at the key position for cigarette pack forming. If the folding is not done properly, defects such as the bottom of the box lid being exposed and the upper and lower widths being inconsistent will occur after the cigarette pack is formed. Therefore, indentations 3, 13, 4, 14, 5, 15, 6, 16, 8, 9, 10, 11, and 12 are classified as the key indentation group. The remaining indentations 1, 2, 7, 17, and 18 are not located at the gluing and packaging key positions and have little impact on the gluing and forming effects. They are therefore classified as the non-key indentation group. If any indentation in the key indentation group has a width exceeding the internal control range, the trademark indentation width quality is determined to be unqualified. If more than two indentations in the non-key indentation group have a width exceeding the internal control range, the trademark indentation width quality is determined to be unqualified.

[0119] 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:

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

[0121] S5. Eliminate unqualified batches. The test results indicate that samples 1 and 3 meet the quality standards for indentation width, while sample 2 fails. If the percentage of unqualified indentation widths in the tested samples reaches 10% or higher, the batch is deemed unqualified. Therefore, the raw materials from this batch will produce substandard cigarette packs and can be eliminated before production. If the batch contains too many brands, the number of samples should be increased and retested.

[0122] The above trademark indentation width detection method is used to detect a certain type of strip box trademark. The basic image of this type of strip box trademark and the indentations to be detected for this type of strip box trademark are shown in Figure 17, including indentations 1-10 to be tested. Among them, 2 and 9 are in the gluing position. If they are not folded well, the glue will not be strong; 4, 5, 6, and 7 are in the key positions for strip box molding. If they are not folded well, it will lead to defects such as poor strip box molding 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 molding effect, and they 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:

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

[0124] The test results show that Samples 1 and 3 meet the quality standards for indentation width. In Sample 2, Indentations 1 and 10 are outside the internal control range. However, since Indentations 1 and 10 are non-critical and only two of them are outside the internal control range, Sample 2 also meets the quality standards for indentation width. All three samples in this batch meet the quality standards for indentation width, and therefore this batch of strips is qualified and is expected to be well adapted for machine use and ready for production. If the batch contains too many strips, the number of samples should be increased and retested.

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

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

[0127] 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. Use the CCD camera to capture the image of the trademark to be tested in a row-by-row search and tracking manner from left to right, and extract the trademark and the indentation edge on the trademark.

[0128] A combined LED light source is used in conjunction with 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. The 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 toward 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. 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-60.

[0129] S4, quality assessment; As shown in Figure 18, the dimensions of each part that affects the post-molding effect of the trademark packaging 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 a detection sequence are adjacent to an indentation, half the distance of the adjacent indentation width is included in the detection sequence. All detection sequences are divided into key detection sequence groups and non-key detection sequence groups. The detection sequence at the gluing and folding position belongs to the key detection sequence group, and the rest belong 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, and 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, and 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.

[0130] S5. Eliminate unqualified batches; use the above results to determine the die-cutting quality of the trademarks. If the unqualified percentage of individual sheets in the batch of tested samples is 10% or more, the batch of trademarks is deemed unqualified and will be removed from the production raw materials.

[0131] Ten sample small box trademarks were tested using the above trademark die-cutting size quality test method. The test results are shown in the following table:

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

[0133] 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 small box trademarks in this batch are judged to be unqualified, and this batch of small box trademarks cannot be used for production, and the small box trademarks in this batch are removed from the production raw materials.

[0134] Using the above trademark die-cutting dimension quality inspection method, a certain type of strip box trademark was inspected. The basic image of this type of strip box trademark and the dimensions of each part of this type of strip box trademark that affect the packaging effect of the trademark were marked into 19 inspection sequences, as shown in Figure 19. The non-critical inspection sequence group includes inspection sequences 6, 8, 9, 10, and 11; the critical inspection sequence group includes inspection sequences 1, 2, 3, 4, 5, 7, 12, 13, 14, 15, 16, 17, 18, and 19. Ten sample strip box trademarks were sampled from a batch for inspection, and the inspection results are shown in the following table:

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

[0136] Through data comparison, there are die-cutting size exceeding the standard in Samples 1, 2, 3, 4, and 8, while 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 them, test numbers 6, 9, and 10 are non-critical items, and test number 14 is a critical item. Therefore, Sample 1 is a strip box trademark with unqualified die-cutting size. Samples 2 and 3 both have test number 9 exceeding the internal control range. 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. Therefore, 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. Since test numbers 12 and 18 are critical items, Sample 8 is a strip box trademark with unqualified die-cutting size. In summary, 3 of the 10 samples from this batch of small box labels failed, resulting in a 30% failure rate. This batch of small strip box labels cannot be used in production and should be removed from the raw materials. If the number of labels in this batch is too large, the number of samples should be increased and retested.

[0137] Example 4, trademark indentation depth quality determination:

[0138] Replace the CCD camera on the testing equipment with a laser detection 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 coordinates of the starting and ending points of each indentation into the indentation depth detection device, and start measuring the depth of all indentations on each trademark in turn.

[0139] As shown in Figure 20, the trademark to be measured is placed horizontally, with the uppermost edge of the trademark coinciding with the Y axis and the leftmost edge of the trademark coinciding with the X axis. All 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.9 6, 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), each indentation is measured in numerical order when measuring distance.

[0140] When measuring the depth of each indentation, we measure the depth of the trademark surface between two points 5mm from either side of the indentation. A total of 30 evenly spaced points are measured, and the line connecting these points is perpendicular to the measured indentation and passes through its midpoint. The laser head moves from the starting point at one end of the indentation to the end point at the other. After measuring each indentation, the laser head moves in a straight line from the measured indentation end point to the starting point of the next indentation to be measured. When measuring the distance of the first indentation, the laser head moves toward the second indentation.

[0141] As shown in FIG21 , the movement 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. The coordinates of the starting and ending points of indentations 1 to 18 and the midpoint coordinates of each indentation during the entire detection process are shown in the following table:

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

[0143] The depth of the indentation is determined by subtracting the minimum distance from the maximum distance of the 30 points taken for each indentation. The indentation depths of all 20 sample trademarks were measured sequentially according to the above process.

[0144] Then, we need to determine the average indentation depth. We sample qualified product trademarks within two months as a standard group and measure their indentation depth data. We take the average of the indentation depths and obtain the average indentation depth table for each indentation, as shown in the following table:

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

[0146] 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. Then, the minimum and maximum values ​​detected are set 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:

[0147] Table of internal control range values ​​for the indentation depth of small box trademarks (unit: mm)

[0148] Next, all indentations were divided into a critical indentation group and a non-critical indentation group based on their impact on the gluing and molding process. Indentations 3, 13, 4, 14, 5, 15, 6, and 16 are located at the gluing and folding positions. A poor folding will result in a weak glue bond. Indentations 8, 9, 10, 11, and 12 are located at the critical forming position of the cigarette pack. A poor folding will result in defects such as exposed lids and inconsistent widths after the pack is formed. Therefore, indentations 3, 13, 4, 14, 5, 15, 6, 16, 8, 9, 10, 11, and 12 are classified as critical indentations. The remaining indentations 1, 2, 7, 17, and 18 are not located at the gluing or packaging critical positions and have little impact on gluing and molding, so they are classified as non-critical indentations. If an indentation with a depth exceeding the internal control range appears in the critical indentation group, the trademark is judged to have an indentation depth quality that is unqualified; if more than two indentations with a depth exceeding the internal control range appear in the non-critical indentation group, the trademark is judged to have an indentation depth quality that is unqualified.

[0149] 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 depth; in sample No. 17, only the depth of indentation 7 exceeds the internal control range, and indentation 7 belongs to the non-critical indentation group. Therefore, 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.

[0150] If the unqualified rate of samples reaches 10% or above, the batch of trademarks in that batch is considered unqualified. If only three of the 20 samples from that batch of trademarks passed, the pass rate is only 15%. This batch of trademarks is unqualified raw material and has poor adaptability to the machine, so it cannot enter the production process and should be removed from the production raw material. If the batch of trademarks is too large, the number of samples should be increased and retested.

[0151] Small box trademark sample measurement data table (unit: mm)

[0152] The above method is used to sample and test the box label. As shown in Figure 22, the box label is placed in a plane rectangular coordinate system, with the leftmost edge of the box label coinciding with the Y axis and the bottommost edge of the box label coinciding with the X axis. All the indentations on the box label are marked as 1 to 10 in 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(25.75, 202), and d(25.75, 202). (306.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 in a straight line from the end point of the measured indentation to the starting point of the next indentation to be measured; when measuring the distance of the first indentation, the laser head moves the path pointing to the second indentation.

[0153] The indentation depth data of the 20 samples measured in this embodiment are shown in the following table:

[0154] As shown in FIG23 , the movement 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. The coordinates of the starting point and end point of the indentations detected during the entire detection process, as well as the coordinates of the midpoints of each indentation, are shown in the following table:

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

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

[0157] Average depth of indentation on box labels (unit: mm)

[0158] Internal Control Range Value Table for Carton Trademark Indentation Depth (Unit: mm)

[0159] Indentations 2 and 9 are located at the gluing point. Poor folding will result in weak glue. Indentations 4, 5, 6, and 7 are located at a critical position for carton formation. Poor folding can lead to poor carton formation and defects such as loose cellophane wrapping. Indentations 1, 3, 8, and 10 are shorter and have a relatively fixed folding position, making them less impactful on carton formation. Therefore, indentations 1, 3, 8, and 10 are considered a non-critical indentation group, while the remaining indentations are considered critical.

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

[0161] Box trademark sample measurement data table (unit: mm)

[0162] 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 are trademarks with qualified indentation depths; indentation 1 and indentation 8 in sample No. 3 exceed the internal control range, and indentation 1 and indentation 8 belong to the non-critical indentation group. Since the number of indentations exceeding the standard in the non-critical group does not exceed two items, sample No. 3 belongs to the box trademark with qualified indentation depths; In sample No. 10, the depth of indentation 10 exceeds the internal control range, but indentation 10 belongs to the non-critical group indentation, so sample No. 10 belongs to the strip 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 belongs to the strip box trademark with 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 belongs to the strip box trademark with qualified indentation depth.

[0163] 19 out of 20 samples taken from this batch of trademarks were 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.

[0164] Example 5: In Examples 1 to 4, the raw materials must be qualified in terms of trademark die-cutting size quality, trademark indentation width quality, trademark indentation depth quality, and trademark printing quality before they can enter the production process, otherwise they will be discarded.

[0165] After a series of indicator controls were implemented on trademarks, the overall defective rate within a single day dropped by approximately 51.72%; the proportion of defective rates due to unqualified trademarks dropped by approximately 32.32%, effectively reducing the defective rate of finished products, saving a series of supporting materials, and improving production efficiency.

[0166] It should be understood that the above specific embodiments of the present invention are merely 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 scope of protection 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 color space. The specific calculation method is as follows: 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 10, 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

Patent Citations

  • Cigarette packet seal defect detecting system based on image identification technology

    CN103512888A

  • Cigarette packet paper indentation data detection system and detection method thereof

    CN111412834A

  • Cigarette case defect recognition method combining deep learning and image processing

    CN112132196A

  • Carding sliver defect detection method and device based on machine vision

    CN113777033A

  • Cigarette auxiliary material paper defect detection method based on deep learning visual inspection

    CN114022412A

Cited By

  • Method and system for detecting stiffness of anti-counterfeit label paper

    CN118897970A

  • Keyboard leather sheath production quality detection method

    CN119151906A

  • Package printing quality real-time monitoring method

    CN119151926A

  • Burr detection method and system for copper rod electrolytic polishing

    CN120259282A

  • A burr detection method and system for copper rod electrolytic polishing

    CN120259282B