Printing static picture fine observation system with real-time self-checking function

By designing a fine observation system for printing still picture with real-time self-test function, using technical means such as partial cutting, downsampling iteration and information loss analysis, the problem of low accuracy in small defect recognition in printed product images in the prior art is solved, and efficient and accurate printing defect recognition and real-time self-test are achieved.

CN120047433AActive Publication Date: 2025-05-27GUANGDONG XINTIANLI HLDG CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510500539.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-21
Publication Date
2025-05-27
Estimated Expiration
2045-04-21

AI Technical Summary

Technical Problem

The prior art recognizes small defects in printed product images with low accuracy, making it difficult to achieve real-time self-test, and has a large amount of calculation, which affects production efficiency.

Method used

A fine observation system for printing still picture with real-time self-test function is designed, including an image acquisition module, a defect screening module and a defect determination module. By partially cutting the printed product images, multiple rounds of downsampling iterations, analyzing local information losses, screening high printing information areas, identifying printing defect areas, and comparing the printing templates for defect identification.

Benefits of technology

It realizes accurate identification of small defects in printed product images, improves the accuracy and accuracy of printing defect recognition, reduces the amount of calculation, supports real-time self-test, and improves production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120047433A_ABST
    Figure CN120047433A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of image processing, in particular to a printing still picture fine observation system with a real-time self-checking function. The image acquisition module is used for acquiring a printed product image in the printing process; the defect screening module is used for carrying out local segmentation on the printed product image; multiple rounds of down-sampling iteration are carried out on different local areas, local information loss of each local area during each time of down-sampling iteration is analyzed, and high printing information areas are screened out; according to the edge lines and the area color difference in the high printing information area, a printing defect area is screened out from the high printing information area; and the flaw determination module is used for comparing the printing flaw area with a printing template and identifying the printing flaw in the printing flaw area. According to the method, the calculation amount in the flaw recognition process is reduced, and the flaw recognition accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and particularly to a fine observation system for printed still images with a real-time self-check function. Background Art

[0002] In the application of traditional printing technology, for example, when performing overall printing on paper packaging materials, common problems such as uneven printing, large indentation, low yield, paper path loss, complex dot structure, and low reduction degree of gradient color dots exist. These problems limit the clarity and fineness of printed patterns, make personalized customization difficult, result in high costs, relatively low production efficiency, and limit market competitiveness. Moreover, during printing, due to environmental factors and equipment reasons, printing defects such as misprinting and color difference may occur during the printing process. When completely checking the patterns of the entire printed product, the time cost will inevitably increase due to the excessive calculation amount, affecting the efficiency of normal printing production. Currently, the existing fine observation of printed still images usually uses deep learning to directly identify the images of printed products by a trained model. However, due to the complex model, the processing speed may be slow on a high-speed production line, making it difficult to achieve self-checking of printed products at a small time cost. There will also be a low accuracy in identifying some small defects. For example, for tiny defects, it is easy to miss detection. Summary of the Invention

[0003] In order to solve the technical problem of low accuracy in identifying small defects in printed product images, the purpose of the present invention is to provide a fine observation system for printed still images with a real-time self-check function. The specific technical solutions adopted are as follows: In a first aspect, an embodiment of the present invention provides a fine observation system for printed still images with a real-time self-check function. The system includes the following modules: An image acquisition module, configured to acquire images of printed products during the printing process; A defect screening module, configured to perform local segmentation on the images of printed products; perform multiple rounds of downsampling iteration on different local regions, analyze the local information loss of each local region during each downsampling iteration, and screen out high-printing-information regions; and screen out printing defect regions from the high-printing-information regions according to the edge lines and regional color differences in the high-printing-information regions; A defect determination module, configured to compare the printing defect regions with a printing template to identify printing defects in the printing defect regions.

[0004] Further, the analyzing the local information loss of each local region during each downsampling iteration and screening out high-printing-information regions includes: Calculate the structural similarity of the regions before and after downsampling for each local region, perform a negative correlation mapping process on the structural similarity to obtain the local information loss of each local region; for each local region, when the local information loss of the local region exceeds the preset normal loss range, stop the downsampling iteration. Determine the information loss amount of each local region according to the downsampling iteration times of each local region; screen out the high-printing information regions from the local regions according to the magnitude of the information loss amount.

[0005] Further, the determining the information loss amount of each local region according to the downsampling iteration times of each local region includes: Take any local region as the target local region, calculate the average value of the difference in the downsampling iteration times between the target local region and other local regions as the information loss amount of the target local region.

[0006] Further, the screening out the high-printing information regions from the local regions according to the magnitude of the information loss amount includes: Take the local regions with information loss amounts greater than the preset loss threshold as the high-printing information regions.

[0007] Further, the screening out the printing defect regions from the high-printing information regions according to the edge lines and regional color differences in the high-printing information regions includes: Determine the edge misprint possibility according to the repetition situation between the edge lines in the high-printing information region; Determine the color difference defect possibility according to the difference situation between the regional color differences in the high-printing information region; Combine the edge misprint possibility and the color difference defect possibility to obtain the printing defect probability of the high-printing information region; When the printing defect probability exceeds the preset normal defect range, take the high-printing information region corresponding to the printing defect probability as the printing defect region.

[0008] Further, the determining the edge misprint possibility according to the repetition situation between the edge lines in the high-printing information region includes: Take any edge line in the high-printing information region as the target edge line, and take any other edge line except the target edge line as the edge line to be analyzed; Perform linear fitting on the target edge line and the edge line to be analyzed respectively to obtain the target edge fitting line and the edge line to be analyzed fitting line; Determine the repetition probability of the corresponding target edge line and the edge line to be analyzed according to the inclination degree and length of the target edge fitting line and the edge line to be analyzed fitting line; Determine the possibility of misprinting of the target edge line by combining the repetition probability of the target edge line and other edge lines except the target edge line, and the coefficient of variation on both sides of the target edge line and other edge lines except the target edge line; Determine the possibility of edge misprinting in the high-printing information area according to the possibility of misprinting of all lines in the high-printing information area.

[0009] Further, the determining the possibility of color difference defect according to the difference situation between the regional color differences in the high-printing information area includes: Cluster the edge lines according to the lengths of all edge lines in the high-printing information area and the slopes of the corresponding edge fitting straight lines to obtain multiple clusters; For the target edge line, determine the possibility of line defect of the target edge line by combining the repetition probability between the target edge line and the edge lines within the cluster to which it belongs, and the coefficient of variation on both sides of the target edge line and the edge lines within the cluster to which it belongs; Determine the possibility of color difference defect in the high-printing information area according to the possibility of line defect of all lines in the high-printing information area.

[0010] Further, the comparing the printed defect area with the printing template and identifying the printed defects in the printed defect area includes: Use the projection method to project and map the printed defect area onto the printing template image, and determine the position of the printed defect area with printed defects on the printing template image; Identify the types of printed defects in the printed defect area.

[0011] Further, the locally segmenting the printed product image includes: Obtain the peak and valley points in the grayscale histogram of the printed product image; Use the region growing algorithm with the pixel points corresponding to the peak and valley points as seed points to obtain multiple local regions.

[0012] Further, the multi-round downsampling iteration for different local regions includes: Use the image pyramid algorithm to perform downsampling processing on the local regions.

[0013] In a second aspect, a method for fine observation of a printed still image with a real-time self-check function is provided, and the method includes: Obtain the printed product image during the printing process; Perform local segmentation on the printed product image; perform multiple rounds of downsampling iteration on different local regions, analyze the local information loss of each local region during each downsampling iteration, and screen out high-printing information regions; according to the edge lines and regional color differences in the high-printing information regions, screen out printing defect regions from the high-printing information regions; Compare the printing defect regions with the printing templates to identify the printing defects in the printing defect regions.

[0014] In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor. An executable code is stored in the memory. When the processor executes the executable code, the methods in various possible implementation embodiments of the first aspect are implemented.

[0015] In a fourth aspect, an embodiment of the present invention provides a computer program product, which includes: computer program code. When the computer program code runs on a computer, the computer is caused to execute the methods in the first aspect or any possible implementation manner of the first aspect.

[0016] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute the methods in various possible implementation embodiments of the first aspect.

[0017] The embodiments of the present invention have at least the following beneficial effects: Embodiments of the present invention relate to the field of image processing technology. First, the present invention performs local segmentation on the printed product image. The reason for performing local segmentation on the image is that not every area in the printed product image will have printing defects, but printing defects may occur in every area. Therefore, in order to achieve faster defect localization, embodiments of the present invention first perform block processing on the entire printed product image. Then, the printing defect area is screened out through the defect screening module. Because the more monotonous the information inside the local area is, the less likely it is that the local area contains printing information, or it only contains a small amount of printing information. When printing defects occur, it is highly likely in the area with a large number of printing defects. Therefore, through information loss, an area with a large amount of information can be obtained, and a high-printing-information area with a high content of printing information can be obtained, reducing the calculation amount when obtaining block printing defects in the future. Secondly, because the high-printing-information area contains relatively more printing patterns, the possibility of printing defects appears much greater than that of non-high-printing-information areas. Common printing defects are often misprinting and color difference. Therefore, the defect screening module screens out the printing defect area according to the edge lines and regional color difference in the high-printing-information area. Identifying printing defects in the printing defect area improves the accuracy of defect identification compared to directly detecting defects in the entire image. Moreover, after determining the printing defect area according to the defect screening module, when only identifying the printing defects in the printing defect area, the calculation amount in the defect identification process is reduced, improving the accuracy of defect identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0019] Figure 1 System block diagram of a fine observation system for printed still images with real-time self-check function provided by an embodiment of the present invention; Figure 2 Method flowchart of a fine observation method for printed still images with real-time self-check function provided by an embodiment of the present invention; Figure 3 Step flowchart implemented by the defect screening module 20 provided by an embodiment of the present invention; Figure 4 Structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0020] In order to further elaborate on the technical means and effects adopted by the present invention to achieve the intended invention purpose, the following, in conjunction with the accompanying drawings and preferred embodiments, details the specific implementation manners, structures, features and effects of a fine observation system for printed still images with a real-time self-check function proposed according to the present invention as follows.

[0021] In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments can be combined in any suitable form.

[0022] Among them, in the description of the embodiments of the present invention, unless otherwise specified, " / " means "or". For example, A / B can mean A or B. The "and / or" in the text is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present invention, "a plurality of" means two or more than two.

[0023] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as implying or suggesting relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features.

[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present invention belongs.

[0025] The following describes the embodiments of the present invention in conjunction with the accompanying drawings. Those of ordinary skill in the art will know that with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present invention are equally applicable to similar technical problems.

[0026] The embodiments of the present invention provide a specific implementation method of a fine observation system for printed still images with a real-time self-check function. This method is applicable to the scenario of printed defect detection. In this scenario, the printing equipment has a short period of stillness, that is, intermittent pauses during the operation of the machine. An image acquisition device is used to acquire images of the stationary printed products during the intermittent pauses.

[0027] The following specifically describes the specific solution of a fine observation system for printed still images with a real-time self-check function provided by the present invention in conjunction with the accompanying drawings.

[0028] Please refer to Figure 1 , which shows a system block diagram of a fine observation system for printed still images with a real-time self-check function provided by an embodiment of the present invention. The system includes the following modules: The image acquisition module 10 is used to acquire the image of the printed product during the printing process.

[0029] In the embodiments of the present invention, the self - inspection of the printing equipment is realized by using the printed pattern information during the printing process. Before the self - inspection, it is necessary to collect the information of the printing effect. The specific printing effect collection method is as follows: First, ensure that the printing equipment has a short - time pause, that is, an intermittent pause during the machine operation; then use the image acquisition device to acquire the image of the stationary printed product during the intermittent pause to obtain the stationary printed image.

[0030] Then, use the image segmentation algorithm to separate the background information from the acquired stationary printed image, and only retain the printed pattern. Finally, use the grayscale algorithm to grayscale the retained printed pattern to obtain the image of the printed product.

[0031] Through image segmentation and grayscaling, the acquisition and pre - processing of the image of the printed product to be self - inspected are completed.

[0032] The defect screening module 20 is used to perform local segmentation on the image of the printed product, perform multiple rounds of downsampling iteration on different local regions; analyze the local information loss of each local region during each downsampling iteration, screen out the high - printing - information regions; and screen out the printing defect regions from the high - printing - information regions according to the edge lines and regional color differences in the high - printing - information regions.

[0033] During the printing process, if a stop - for - self - inspection is performed for the defect test of the printed product, it will obviously delay the production efficiency. Without performing a stop - for - self - inspection for refined observation, a large amount of computing power is often required, and equipping higher - level processing equipment will inevitably increase the cost. Therefore, on the basis of non - stop self - inspection, the present invention proposes a local analysis method to determine the printing defect regions of the printed product, and then uses the local regions for refined comparison to complete the self - inspection of the printed product.

[0034] In some embodiments, the high - printing - information regions are determined from the image of the printed product, and the printing defect regions are screened out from the high - printing - information regions. That is, the above - mentioned defect screening module 20 can be realized through Figure 3 the steps shown as follows: Step S210, perform local segmentation on the image of the printed product, and perform multiple rounds of downsampling iteration on different local regions.

[0035] An image acquisition device is used to obtain the image of the printed product during the printing process. In the image of the printed product, printing defects do not occur in every area, but there is a possibility of printing defects in every area. Therefore, in order to achieve more rapid defect localization, in the embodiments of the present invention, the overall image of the printed product is first divided into blocks. Specifically: Obtain the grayscale histogram of the image of the printed product.

[0036] Use the method of local extrema to obtain the peak-valley points in the grayscale histogram of the image of the printed product; form a peak-valley point sequence , and each grayscale value in the peak-valley point sequence belongs to .

[0037] Use each pixel point corresponding to a peak-valley point as a seed point on the image of the printed product and perform processing using the region growing algorithm to achieve local segmentation of the image of the printed product, obtain A blocks, and use the blocks as local regions.

[0038] The logic of selecting peak-valley points for region growing here is that the peak-valley points are the basic background of most printed products and a small number of pixel points with grayscale values in the non-background area. Using these types of pixel points to divide the image of the printed product can better classify most of the background areas into the same unit, and for a small number of pixel points with grayscale values in the non-background area, similarly, the non-background area can be effectively divided.

[0039] Step S220: Perform multiple rounds of downsampling iterations on different local regions, analyze the local information loss of each local region during each downsampling iteration, and screen out high-printing-information regions.

[0040] Then, estimate the information loss amount for each block. The basic logic is as follows: The more monotonic the information inside the local region is, the less likely it is that the local region contains printing information, or it only contains a small amount of printing information. When printing defects occur, they are most likely in the areas with a large number of printing defects. Therefore, through information loss, regions with a large amount of information can be obtained, reducing the computational amount when obtaining block printing defects later.

[0041] First, perform multiple rounds of downsampling iterations on different local regions. In the embodiments of the present invention, the image pyramid algorithm is used to perform downsampling processing on the local regions.

[0042] Furthermore, analyze the local information loss of each local region during each downsampling iteration, and screen out high-printing-information regions: Calculate the structural similarity of the regions before and after downsampling for each local region, perform a negative correlation mapping process on the structural similarity to obtain the local information loss of each local region; for each local region, when the local information loss of the local region exceeds the preset normal loss range, stop the downsampling iteration; otherwise, when the local information loss of the local region belongs to the preset normal loss range, continue to perform downsampling on the local region. In the embodiment of the present invention, the preset normal loss range is , and in other embodiments, it can also be adjusted by the implementer according to the actual situation. Among them, the negative correlation mapping of the structural similarity can be achieved by subtracting the structural similarity from the constant 1.

[0043] After downsampling each local region, determine the information loss amount of each local region according to the downsampling iteration times of each local region. The larger the information loss amount, it indicates that the printed information in the th local region is more complex and has more information compared to the printed information of the remaining blocks, and at the same time, it also indicates that the th local region has a greater possibility of printing defects.

[0044] Take any local region as the target local region, calculate the mean value of the difference in the number of downsampling iteration times between the target local region and other local regions as the information loss amount of the target local region.

[0045] In some embodiments, taking the a-th local region as the target local region, the information loss amount of the target local region is calculated by the formula: ; where is the number of downsampling times of the a-th local region; is the number of downsampling times of the a'-th local region except the a-th local region; A is the number of other local regions except the a-th local region. ; , and there is always .

[0046] Regard the local regions with information loss amount greater than the preset loss threshold as high printed information regions. Because the greater the information loss amount, the more complex the corresponding printed information is and the greater the probability of printing defects.

[0047] In the embodiment of the present invention, the method for determining the preset loss threshold is: taking the median of the information loss amounts corresponding to the local regions as the preset loss threshold.

[0048] In some embodiments of the present invention, high-printing-information blocks can also be obtained by printing information content sequences. The specific obtaining method is as follows: All local regions are labeled with information loss amounts, and are sorted in descending order by the labels to obtain a printing information content sequence. The higher the ranking in the printing information content sequence, the more complex the printing information contained, and the greater the probability of printing defects. Select the first fifty percent of the local regions in the printing information content sequence as high-printing-information regions.

[0049] Step S230, according to the edge lines and regional color differences in the high-printing-information regions, screen out printing defect regions from the high-printing-information regions.

[0050] In steps S210 to S220, the downsampling algorithm is used to determine the information loss of local regions in the printed product image, and high-printing-information regions with relatively high printing information content are obtained. Since the high-printing-information regions contain relatively more printing patterns, the possibility of printing defects appears much greater than that of non-high-printing-information regions. Common defects in paper printing are often misprints and color differences. Therefore, the present invention analyzes the edges and gray values in the high-printing-information regions to obtain the probability of defects in each high-printing-information region.

[0051] First, according to the repetition of edge lines in the high-printing-information regions, determine the possibility of edge misprinting. The specific obtaining method is as follows: Taking the b-th high-printing-information region as an example, the printing defect probability of the specific defect probability is obtained as follows: First, for all edges of the b-th high-printing-information region, obtain the possibility of edge misprinting. The specific obtaining logic is as follows: Misprinting means that when the printing equipment prints a pattern at a specific position, due to the movement of the paper or the mutual friction between the equipment and the paper, the phenomenon of misaligned printing or ghosting appears. The most obvious feature of misprinting is the appearance of repeated edges, and because the patterns near the repeated edges are the same, the colors expressed are the same. Therefore, based on this feature, the possibility of edge misprinting can be obtained. The specific obtaining method is as follows: First, use the edge detection algorithm to perform edge detection on the b-th high-printing-information region to obtain all edge lines of the b-th high-printing-information region.

[0052] Then, obtain the repetition probability of each edge line. Take any edge line in the high-printing information area as the target edge line, and take any other edge line except the target edge line as the edge line to be analyzed. In the embodiment of the present invention, take the th edge line among all the edge lines in the b-th high-printing information area as the target edge line, and take the th edge line as the edge line to be analyzed. For example, the method for obtaining the corresponding repetition probability is as follows: Perform linear fitting on the target edge line and the edge line to be analyzed respectively to obtain the target edge fitting line and the edge line to be analyzed fitting line; in the embodiment of the present invention, for the th edge line and the th edge line, perform linear fitting respectively to obtain the target edge fitting line after fitting the th edge line and the edge line to be analyzed fitting line .

[0053] Because there are various forms of the th edge line and the th edge line, such as the irregular bending of the printed pattern, it is not convenient to calculate. Therefore, in the embodiment of the present invention, by performing linear fitting on the edge line, analyze the difference of the straight line to map the similarity of the edge. Because misprint is that the same printed pattern is printed multiple times, the more the slopes of the fitting lines and the lengths of the edge lines are the same, the greater the possibility that the edge lines corresponding to these two fitting lines are misprinted. Therefore, determine the repetition probability of the corresponding target edge line and the edge line to be analyzed according to the inclination degree and length of the target edge fitting line and the edge line to be analyzed fitting line.

[0054] First, perform difference calculation on the target edge fitting line and the edge line to be analyzed fitting line : ; where is the slope of the target edge fitting line corresponding to the th edge line, is the slope of the edge line to be analyzed fitting line corresponding to the th edge line, is the length of the th edge line, the The length of an edge line, where the length of the edge line is the number of pixels of the edge line; in the embodiments of the present invention, the slope of the edge-fitted straight line is used to characterize the inclination degree of the edge-fitted straight line; and the greater the difference, the smaller the similarity between the th edge line and the th edge line, and vice versa. Therefore, the similarity between the th edge line and the th edge line can be obtained as the repetition probability .

[0055] Using the above method, the repetition probability between the target edge line and all the remaining edge lines to be analyzed except the target edge line can be obtained.

[0056] Finally, combining the repetition probability of the target edge line and the other edge lines except the target edge line, and the coefficient of variation on both sides of the target edge line and the other edge lines except the target edge line, the line misprint possibility of the target edge line is determined. Specifically: Using the repetition probability between the th edge line and all the remaining edge lines, the line misprint possibility of the th edge line is obtained , as shown below: ; wherein, and respectively represent the coefficients of variation of the gray values of the pixel points on both sides of the th edge line and the th edge line.

[0057] Among them, the method for obtaining the coefficient of variation of the gray values of the pixel points on both sides of the edge line is: taking the left side of the edge line as the target side, taking the coefficient of variation of the gray values of the pixel points adjacent to the pixel points in the edge line in the target side as the left coefficient of variation, and averaging the coefficients of variation of the left and right sides of the edge line to obtain the coefficient of variation of the edge line.

[0058] The ratio of the coefficients of variation of two edge lines is used to measure the similarity degree of the gray values of the pixel points on both sides of the th edge line and the th edge line; the more similar the gray values of the pixel points on both sides of the th edge line and the th edge line, the smaller the corresponding , and vice versa, the corresponding The larger it is, because misprints are the same printed information being printed incorrectly multiple times, then when there are more edge lines similar to the th edge line among all the edge lines, and the grayscale representation forms on both sides of the edge lines are more similar, it indicates that the printing information corresponding to the th edge line is more likely to be misprinted, and vice versa.

[0059] Using the above method, the line misprint possibility of each edge line in the B high-printing information regions can be obtained.

[0060] According to the line misprint possibilities of all the lines in the high-printing information region, determine the edge misprint possibility of the high-printing information region. Specifically: for any high-printing information region ui, calculate the average value of the line misprint possibilities of all the lines in the high-printing information region ui as the edge misprint possibility of the high-printing information region ui.

[0061] Second, according to the differences between the regional color differences in the high-printing information region, determine the color difference defect possibility.

[0062] Color difference occurs during printing. Because the ink is uneven or the force applied by the equipment is not unified enough, the same pattern has different information expressions in different regions. Therefore, based on this logic, the embodiments of the present invention determine the color difference defect possibility of the high-printing information region.

[0063] Therefore, according to the lengths of all the edge lines in the high-printing information region and the slopes of the corresponding edge fitting lines, cluster the edge lines to obtain multiple clusters; for the target edge line, combine the repetition probability between the target edge line and the edge lines in the cluster to which it belongs, and the coefficient of variation on both sides of the target edge line and the edge lines in the cluster to which it belongs, to determine the line defect possibility of the target edge line; according to the line defect possibilities of all the lines in the high-printing information region, determine the color difference defect possibility of the high-printing information region. Specifically: take the average value of all the line defect possibilities in the high-printing information region to obtain the color difference defect possibility of the high-printing information region.

[0064] Obtain the color difference defect possibility of each high-printing information region. Specifically, taking the bth high-printing information region as an example, the method for obtaining the color difference defect possibility of its existence of color difference defects is as follows: First, for each high-printing information region, obtain the edges to get multiple edge lines.

[0065] Next, for each high-printing information region, use the line fitting method to obtain the edge fitting line corresponding to the edge lines in each high-printing information region.

[0066] The slope of the edge fitting line corresponding to the edge line in all high-printing information areas and the length of the edge line are used as the two-dimensional parameters of each edge line; Then, taking the b-th high-printing information area as an example, use the two-dimensional K-clustering algorithm to perform K-clustering on the two-dimensional parameters of slope-length for each edge line in the b-th high-printing information area, and obtain the cluster corresponding to each edge within the b-th high-printing information area; Next, for each edge line in the b-th high-printing information area, obtain the possibility of color difference defects based on the cluster corresponding to its corresponding edge. Here, still taking the -th edge line in the b-th high-printing information area as the target edge line, the possibility of color difference defects of the target edge line is calculated by the formula: ; Among them, represents the repetition probability of the -th edge line in the b-th high-printing information area and the -th edge line within the cluster to which the -th edge line belongs; is the coefficient of variation of the gray values of the pixel points on both sides of the -th edge line in the b-th high-printing information area; is the coefficient of variation of the gray values of the pixel points on both sides of the -th edge line within the cluster to which the -th edge line belongs; is the number of edge lines within the cluster to which the -th edge line belongs; is the number of edge lines in the b-th high-printing information area; is the line defect possibility of the -th edge line in the b-th high-printing information area.

[0067] The greater the difference in the performance of the gray values of the pixel points on both sides of the edge lines in the b-th high-printing information area and the edge lines in the same cluster in the remaining high-printing information areas, the greater the possibility of color difference, and vice versa.

[0068] The greater the probability of misprint or color difference defect in the b-th high-printing information area, the greater the probability of printing defect in the b-th high-printing information area, and vice versa.

[0069] Therefore, by combining the edge misprint possibility and the color difference defect possibility, the printing defect probability of the high-printing information area is obtained. Both the edge misprint possibility and the color difference defect possibility are positively correlated with the printing defect probability. In an embodiment of the present invention, the normalized value of the sum of the edge misprint possibility and the color difference defect possibility is used as the printing defect probability of the high-printing information area.

[0070] Printing defect probability The calculation formula is: ; where Norm is the normalization function.

[0071] By using the above method, the printing defect probability of each high-printing information area having a printing defect can be obtained. Then, based on the printing defect probability, the printing defect areas are screened out from the high-printing information areas.

[0072] As an embodiment of the present invention, when the printing defect probability exceeds the preset normal defect range, the high-printing information area corresponding to the printing defect probability is used as the printing defect area.

[0073] Specifically: for all high-printing information areas, a descending order sequence of printing defects can be obtained by sorting in descending order according to the size of the printing defect probability of the printing defects occurring; then, using the threshold screening method, the areas with printing defects in the descending order sequence of printing defects can be obtained by using the custom parameter method; specifically, the custom parameter method is to give a preset normal defect range through experience. When the value in the descending order sequence of printing defects is greater than the preset normal defect range, it is considered as a high-printing information block with defects; otherwise, it is the opposite; the preset normal defect range adopted in the present invention is [0 - 0.9], and this preset normal defect range can be adjusted according to the actual situation. The larger the parameter value of the right endpoint of the preset normal defect range, the more accurate the screening, but the corresponding calculation amount is larger.

[0074] Through the preset normal defect range, the printing defect areas existing in the printing process are screened out.

[0075] The defect determination module 30 is used to compare the printing defect area with the printing template and identify the printing defects in the printing defect area.

[0076] By comparing the printing defect area with a probability of having defects in the printed product image with the printing template, the printing defects are located and the electrical appliance is controlled to complete the printing production.

[0077] The printing defect areas where printing defects exist during the printing process are determined through the image acquisition module 10 and the defect screening module 20. Now, these printing defect areas are compared with the corresponding printing templates to locate the printing defects and control the printing equipment to complete the printing production. The specific method is as follows: 1. First, use the projection method to project and map all the printing defect areas onto the printing template image to determine the positions of the printing defect areas with printing defects on the printing template image; 2. Then, use the existing defect recognition model to identify the types of printing defects and retrieve the causes of the defects in the printing defect areas on the printing template image; 3. Finally, adjust the corresponding areas and the printing equipment according to the types of defects and the causes of the defects to complete the printing production.

[0078] Please refer to Figure 2 , which shows a method flowchart of a method for fine observation of a printing still image with a real-time self-check function provided by an embodiment of the present invention. The method includes the following steps: Step S100, obtaining a printed product image during the printing process; Step S200, performing local segmentation on the printed product image; performing multi-round downsampling iterations on different local areas, analyzing the local information loss of each local area during each downsampling iteration, screening out high-printing information areas; and screening out printing defect areas from the high-printing information areas according to the edge lines and regional color differences in the high-printing information areas; Step S300, comparing the printing defect areas with the printing templates to identify the printing defects in the printing defect areas.

[0079] Optionally, the transmission medium may be a wired link, such as but not limited to, coaxial cable, optical fiber, and digital subscriber line, etc., or a wireless link, such as but not limited to, Wireless Fidelity (WIFI), Bluetooth, and mobile device network, etc.

[0080] It should be noted that: for the device provided in the above embodiment, only the above-mentioned division of each functional module is used for illustration. In practical applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above.

[0081] Figure 4 is a schematic structural diagram of a computer device provided by an embodiment of the present invention. Exemplarily, as Figure 4As shown, the computer device 400 includes: a memory 410, a processor 420, and a computer program 430 stored in the memory 410 and running on the processor 420. When the processor 420 executes the computer program 430, the computer device can execute any one of the previously introduced fine observation systems for printed still images with real-time self-checking functions.

[0082] In addition, an embodiment of the present invention also protects a device, which may include a memory and a processor. Among them, an executable program code is stored in the memory, and the processor is used to call and execute the executable program code to execute a fine observation system for printed still images with real-time self-checking functions provided by an embodiment of the present invention.

[0083] An embodiment of the present invention can divide the functions of the device according to the above method examples. For example, it can correspond to each functional module, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is illustrative, only a logical function division, and there can be other division methods in actual implementation.

[0084] In the case of dividing each module according to each function, the device may further include a signal uploading module, a determination module, an adjustment module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be cited in the function description of the corresponding functional module, and will not be repeated here.

[0085] It should be understood that the device provided by an embodiment of the present invention is used to execute the above-mentioned fine observation system for printed still images with real-time self-checking functions, so it can achieve the same effect as the above implementation method.

[0086] In the case of adopting an integrated unit, the device may include a processing module and a storage module. Among them, when the device is applied to a device, the processing module can be used to control and manage the actions of the device. The storage module can be used to support the device to execute mutual program codes, etc. Among them, the processing module can be a processor or a controller, which can implement or execute various exemplary logical blocks, modules, and circuits described in combination with the disclosure of the present invention. The processor can also be a combination that realizes computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory.

[0087] In addition, the device provided by the embodiments of the present invention may specifically be a chip, a component or a module. The chip may include a connected processor and a memory. The memory is used to store instructions. When the processor calls and executes the instructions, the chip may execute a fine observation system for printed still images with a real-time self-checking function provided by the above embodiments.

[0088] The embodiments of the present invention further provide a computer-readable storage medium, in which computer program code is stored. When the computer program code runs on a computer, the computer is caused to execute the above-related method steps to implement a fine observation system for printed still images with a real-time self-checking function provided by the above embodiments.

[0089] The embodiments of the present invention further provide a computer program product. When the computer program product runs on a computer, the computer is caused to execute the above-related steps to implement a fine observation system for printed still images with a real-time self-checking function provided by the above embodiments.

[0090] Among them, the device, computer-readable storage medium, computer program product or chip provided by the embodiments of the present invention are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, which will not be elaborated here. Through the description of the above embodiments, those skilled in the art can understand that for the convenience and conciseness of description, only the above-mentioned division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In the embodiments provided by the present invention, it should be understood that the disclosed device and method can be implemented in other ways.

[0091] The device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form.

[0092] It should also be noted that in this text, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or terminal device including the said element.

[0093] It should be noted that: the above-mentioned sequence of embodiments of the present invention is only for description and does not represent the superiority or inferiority of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0094] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other, and the key point of each embodiment is to illustrate the differences from other embodiments.

[0095] The above content is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered within the protection scope of the present invention.

Claims

1. A printing still picture fine observation system with real-time self-checking function, characterized in that: The system includes the following modules: An image acquisition module, used to acquire images of printed products during the printing process; A defect screening module, used for performing local segmentation on the printed product image; Perform multiple rounds of downsampling iterations on different local areas, analyze the local information loss of each local area during each downsampling iteration, and screen out the high printing information area; based on the edge lines and regional color differences in the high printing information area, screen out the printing defect area from the high printing information area; The defect determination module is used to compare the printing defect area with the printing template and identify the printing defects in the printing defect area.

2. The printed still picture fine observation system with real-time self-checking function according to claim 1, characterized in that: The analysis of the local information loss of each local area during each downsampling iteration, and screening out high printing information areas, includes: Calculate the structural similarity of each local region before and after downsampling, perform negative correlation mapping on the structural similarity, and obtain the local information loss of each local region; for each local region, when the local information loss of the local region exceeds a preset normal loss range, stop downsampling iteration; The information loss amount of each local area is determined according to the number of downsampling iterations of each local area; and the high printing information area is screened out from the local area according to the size of the information loss amount.

3. The printed still picture fine observation system with real-time self-checking function according to claim 2 is characterized in that: The step of determining the amount of information loss in each local area according to the number of downsampling iterations in each local area includes: Taking any local area as a target local area, the average of the difference between the number of downsampling iterations of the target local area and other local areas is calculated as the information loss amount of the target local area.

4. The printed still picture fine observation system with real-time self-checking function according to claim 2, characterized in that: The step of selecting a high printing information area from a local area according to the amount of information loss includes: The local area where the information loss amount is greater than the preset loss threshold is regarded as a high printing information area.

5. The printed still picture fine observation system with real-time self-checking function according to claim 1, characterized in that: The step of screening out a printing defect area from the high printing information area according to edge lines and regional color difference in the high printing information area comprises: Determining the possibility of edge misprinting according to the repetition between edge lines in the high printing information area; Determining the possibility of color difference defects according to the difference between the regional color differences in the high printing information area; Combining the edge misprint possibility and the color difference defect possibility, the printing defect probability of the high printing information area is obtained; When the printing defect probability exceeds a preset normal defect range, a high printing information area corresponding to the printing defect probability is used as a printing defect area.

6. The printed still picture fine observation system with real-time self-checking function according to claim 5, characterized in that: Determining the possibility of edge misprinting according to the repetition between edge lines in the high printing information area includes: Taking any edge line in the high printing information area as the target edge line, and taking any other edge line except the target edge line as the edge line to be analyzed; Performing straight line fitting on the target edge line and the edge line to be analyzed respectively to obtain a target edge fitting straight line and a edge fitting straight line to be analyzed; Determine the repetition probability of the corresponding target edge line and the edge line to be analyzed according to the inclination and length of the target edge fitting line and the edge fitting line to be analyzed; Determine the possibility of misprinting of the target edge line by combining the repetition probability of the target edge line and other edge lines except the target edge line and the coefficient of variation on both sides of the target edge line and other edge lines except the target edge line; The misprint probability of the edge of the high printed information area is determined based on the misprint probability of all lines in the high printed information area.

7. The printed still picture fine observation system with real-time self-checking function according to claim 6, characterized in that: Determining the possibility of color difference defects according to the difference between the regional color differences in the high printing information area includes: According to the lengths of all edge lines in the high printing information area and the slopes of the corresponding edge fitting lines, the edge lines are clustered to obtain multiple clusters; For the target edge line, the probability of line defect of the target edge line is determined by combining the repetition probability between the target edge line and the edge lines in the corresponding cluster and the coefficient of variation between the target edge line and the edge lines in the corresponding cluster; The probability of color difference defects in the high printing information area is determined based on the probability of all line defects in the high printing information area.

8. The printed still picture fine observation system with real-time self-checking function according to claim 1, characterized in that: The step of comparing the printing defect area with the printing template to identify the printing defect in the printing defect area includes: Projecting the printing defect area on the printing template image by using a projection method to determine the position of the printing defect area where the printing defect exists on the printing template image; Identify the type of printing defect in the printing defect area.

9. The printed still picture fine observation system with real-time self-checking function according to claim 1, characterized in that: The locally segmenting the printed product image comprises: Obtaining peak and valley points in the grayscale histogram of the printed product image; The pixel points corresponding to the peak and valley points are used as seed points, and a region growing algorithm is used to obtain multiple local regions.

10. The printed still picture fine observation system with real-time self-checking function according to claim 1, characterized in that: The multiple rounds of downsampling iterations for different local areas include: The image pyramid algorithm is used to downsample the local area.

Citation Information

Patent Citations

  • Method for detecting multi-scale bottleneck defects, and device for achieving method

    CN103308523A

  • Self-adaptive transmission system for AR (Augmented Reality) piano teaching

    CN117714691A

  • Efficient multi-light-field contact lens flaw detection method and device based on cloud-machine vision

    CN119477816A

  • Printing model flaw detection method and system in 3D printing process

    CN119477915A

  • Positioning detection system for fabric defects

    CN119515857A