A graphic printing quality analysis system based on machine vision

Through the graphic printing quality analysis system based on machine vision and the feature determination of text and picture analysis modules, the problems of low detection efficiency and poor accuracy of digital graphic printed matter in the existing technology are solved, and efficient and accurate printing without original input is realized. Accurate printing quality inspection.

CN118072319BActive Publication Date: 2024-08-23人民教育出版社有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410048630.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-12
Publication Date
2024-08-23
Estimated Expiration
2044-01-12

AI Technical Summary

Technical Problem

The existing technology has low efficiency and poor accuracy in detecting the quality of digital graphics and text printing. It is especially unable to effectively detect graphic and text prints with a high degree of freedom that do not have original printing originals.

Method used

A graphic printing quality analysis system based on machine vision is used to scan graphic printed products, segment text and picture areas through the collection unit, segmentation unit and analysis unit respectively, and use the text analysis module and picture analysis module to analyze the color difference according to the color difference. value, deviation distance ratio and feature library comparison to achieve intelligent judgment of printing quality.

Benefits of technology

It improves the efficiency and accuracy of digital graphics and text printing quality inspection, can quickly identify printing defects without printing originals, and improves the accuracy of printing quality analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118072319B
    Figure CN118072319B
Patent Text Reader

Abstract

The present invention relates to the field of image analysis technology, and in particular to a machine vision-based graphic printing quality analysis system, comprising a collection unit, a segmentation unit, an image feature library, and an analysis unit. The present invention uses a segmentation unit to segment text and pictures on a printed collection image of a graphic printing product, and performs quality analysis and determination on the text area and the picture area, so as to facilitate feedback determination of printing quality based on text features and picture features respectively, and determine whether there are defects in the printing of the text part according to the inherent characteristics of the printed text, and at the same time, segment the picture features by creating color difference lines based on the color difference values ​​in the standard image, and then determine whether there are defects in the printed part of the picture by similarity comparison with the basic element image in the image feature library, so as to realize intelligent printing quality determination on the basis of no printed original input, and greatly improve the quality detection efficiency and accuracy of digital graphic printing.
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 analysis, and in particular to a graphic printing quality analysis system based on machine vision. Background Art

[0002] Graphic printing is a technology that uses processes such as plate making, inking, and pressurization to transfer ink to the surface of materials such as paper and textiles to batch reproduce the contents of the original manuscripts. Due to different printing methods or printing conditions, the printing quality of printed products varies, so it is necessary to screen the quality of printed products. Most of the printing quality is compared manually, which not only consumes manpower, but also easily causes visual fatigue and harms the human body after long-term work.

[0003] Chinese patent publication number: CN110530895A, discloses a method and device for detecting printing quality; its technical point is to extract a data point group of a dot pattern from a printed product, and then extract information of each nominal position in the dot pattern, and realize printing quality detection according to a coding rule. It can be seen that in the existing printing detection technology, only by comparing according to a pre-set coding rule or a graphic original can the corresponding printed graphic complete quality detection be realized, and such a printing quality detection system requires the pre-input of a printing sample, and its batch printing type has a high efficiency, but it cannot achieve a high detection efficiency for the current digital graphic printing with a relatively high degree of freedom, and the accuracy of the graphic printing quality detection is low. Summary of the invention

[0004] To this end, the present invention provides a graphic printing quality analysis system based on machine vision, so as to overcome the problems of poor quality detection efficiency and low accuracy for digital graphic printing in the prior art.

[0005] To achieve the above object, the present invention provides a graphic printing quality analysis system based on machine vision, comprising:

[0006] A collection unit, which is used to scan the graphic printed product to form a printed collection image of the graphic printed product;

[0007] A segmentation unit connected to the acquisition unit, used for performing text recognition on the printed acquired image, and segmenting the printed acquired image into a text area and a picture area;

[0008] An image feature library, which stores several basic element images;

[0009] An analysis unit, which is connected to the segmentation unit and the image feature library respectively, and includes a text analysis module and a picture analysis module;

[0010] The text analysis module is used to calculate and determine according to the positions of the pixel points corresponding to the maximum color value and the pixel points corresponding to the minimum color value in the text image, determine to mark the text image as color-difference text or defective text, and determine whether the text area of ​​the printed collected image is qualified according to the real-time defect ratio of the area of ​​each text image marked as defective text to the total area of ​​the printed collected image;

[0011] The picture analysis module is used to create color difference lines at adjacent edges of two adjacent pixels according to the color difference values ​​in the standard image, and perform contour extraction and color extraction in the closed area formed by the color difference lines, and calculate and determine the contour similarity and color similarity with each basic element image in the image feature library to determine whether to mark the closed area as a defective area. The picture analysis module can also determine whether the picture area of ​​the printed captured image is qualified according to the ratio of the defective area to the total area of ​​the printed captured image.

[0012] Furthermore, the text analysis module is provided with a standard intra-character color difference, and the text analysis module can obtain the text image of any character in the text area of ​​the printed captured image, extract the color value of each pixel in the text image, and select the maximum color value and the minimum color value in each pixel of the text image to calculate the difference, and obtain the real-time color difference of the text image for judgment.

[0013] If the real-time color difference is less than or equal to the standard color difference, the text analysis module marks the text image as uniform color text, calculates the color average of the text image, and determines the text image of the next text in the text area of ​​the printed captured image;

[0014] If the real-time color difference is greater than the standard color difference, the text analysis module will calculate the deviation distance ratio based on the position of the pixel point corresponding to the maximum color value and the pixel point corresponding to the minimum color value and make a judgment to mark the text image as color difference text or defective text.

[0015] Furthermore, when the real-time color difference of the text image of any text is greater than the standard color difference, the text analysis module obtains the horizontal distance and the vertical distance of the text image to calculate the basic distance of the text, and obtains the relative distance of deviation between the pixel point corresponding to the maximum color value and the pixel point corresponding to the minimum color value in the text image, and calculates the deviation distance ratio according to the relative distance of deviation and the basic distance of the text;

[0016] Among them, Ap=Ld / Lu, Ap is the deviation distance ratio, Ld is the deviation relative distance, and Lu is the text basic distance.

[0017] Furthermore, a preset distance ratio is set in the text analysis module, and the text analysis module can determine the deviation distance ratio according to the preset distance ratio.

[0018] If the deviation distance ratio is less than the preset distance ratio, the text analysis module marks the text image as defective text;

[0019] If the deviation distance ratio is greater than or equal to the preset distance ratio, the text analysis module creates a check line in the text image, and divides and determines the pixel points on the check line to determine whether to mark the text image as color-difference text or defective text;

[0020] The verification line is a line connecting a pixel point corresponding to a maximum color value and a pixel point corresponding to a minimum color value in the text image.

[0021] Furthermore, a preset number of groups is set in the text analysis module. When the deviation distance ratio is greater than or equal to the preset distance ratio, the text analysis module creates the verification line in the text image, obtains the number of all pixels on the verification line, and calculates the number of pixels in any group according to the preset number of groups. The text analysis module takes any end of the verification line as the starting point, groups each pixel point toward the other end in sequence, and calculates the color average value of each group of pixels for determination.

[0022] If the color average values ​​of each group of pixels are increasing or decreasing from the starting point, the text analysis module marks the text image as color-difference text;

[0023] If the color average values ​​of each group of pixels do not increase or decrease from the starting point, the text analysis module marks the text image as defective text.

[0024] Furthermore, a preset defect ratio is set in the text analysis module. After the text analysis module completes marking of the text images of all the texts in the text area of ​​the printed captured image, it calculates the real-time defect ratio of the area of ​​each text image marked as defective text to the total area of ​​the printed captured image.

[0025] If the real-time defect ratio is less than or equal to the preset defect ratio, the text analysis module determines that the text area of ​​the printed captured image is qualified;

[0026] If the real-time defect ratio is greater than the preset defect ratio, the text analysis module determines that the text area of ​​the printed captured image is unqualified.

[0027] Furthermore, the picture analysis module is provided with a standard intra-picture color difference value, and the picture analysis module can obtain the picture area of ​​the printed captured image, and calculate the difference of the color values ​​of any two adjacent pixels in the picture area as the picture color difference value.

[0028] If the color difference value of the picture is less than or equal to the color difference value within the standard picture, the picture analysis module does not create a color difference line between the current two pixel points;

[0029] If the image color difference is greater than the standard image color difference, the image analysis module will create a color difference line at the adjacent edges of the two pixels.

[0030] Furthermore, when the picture analysis module completes the color difference determination and the creation of the color difference lines for all two adjacent pixel points in the picture area of ​​the printed captured image, it will determine each created color difference line.

[0031] If there are a number of color difference lines in the picture area of ​​the printed captured image that do not form a closed area, the picture analysis module will adjust the color difference value in the standard picture according to the number of color difference lines that do not form a closed area, and increase the color difference value in the standard picture until all the created color difference lines can form a closed area;

[0032] If all the color difference lines in the picture area of ​​the printed captured image can form a number of closed areas, the picture analysis module will perform feature extraction in any area to determine whether to mark the closed area as a defective area;

[0033] Wherein, E'=E×[1+(Qx / 4×Qs)], E' is the color difference value in the standard image after adjustment, E is the color difference value in the standard image before adjustment, Qx is the number of color difference lines that do not form a closed area, and Qs is the number of all pixels in the picture area of ​​the printed captured image;

[0034] The closed area is an area formed by connecting a plurality of color difference lines end to end, or an area formed by connecting a plurality of color difference lines and the edge of the picture area of ​​the printed captured image end to end;

[0035] The feature extraction includes contour extraction and color extraction.

[0036] Furthermore, the picture analysis module is provided with standard shape similarity and standard color similarity. When all the color difference lines in the picture area of ​​the printed captured image can form a plurality of closed areas, the picture analysis module can extract the contour shape of any closed area, and calculate the contour similarity of the closed area with the contour of each basic element image in the image feature library.

[0037] If the contour shape of the closed area and the contour similarity of each basic element image in the image feature library are both less than the standard shape similarity, the image analysis module marks the closed area as a defective area;

[0038] If the contour shape similarity of the closed area and the contour similarity of any basic element image in the image feature library is greater than or equal to the standard shape similarity, the picture analysis module marks the basic element image as a similar element image, extracts the color distribution of the closed area, and calculates the color similarity of the color distribution of the closed area and each similar element image. When the color similarity of the closed area and each similar element image is less than the standard color similarity, the picture analysis module marks the closed area as a defective area; when the color similarity of the closed area and any similar element image is greater than or equal to the standard color similarity, the picture analysis module does not mark the closed area and makes a judgment on the next closed area.

[0039] Furthermore, the picture analysis module is also provided with a preset defect ratio. After completing the determination marking of all closed areas in the picture area of ​​the printed captured image, the picture analysis module calculates the picture defect ratio of all marked defective areas to the total area of ​​the printed captured image.

[0040] If the image defect ratio is less than or equal to the preset defect ratio, the image analysis module determines that the image area of ​​the printed captured image is qualified;

[0041] If the image defect ratio is greater than a preset defect ratio, the image analysis module determines that the image area of ​​the printed captured image is unqualified.

[0042] Compared with the prior art, the beneficial effect of the present invention lies in that the printed captured image of the graphic printed product is segmented into text and pictures through a segmentation unit, and a text analysis module and a picture analysis module are respectively set to respectively perform quality analysis and judgment on the text area and the picture area of ​​the printed captured image, so as to facilitate feedback judgment on the printing quality according to the text features and the picture features respectively, and determine whether there are defects in the printing of the text part according to the characteristics of the printed text itself, and at the same time, segment the picture features by creating color difference lines according to the color difference values ​​in the standard image, and then determine whether there are defects in the printed part of the picture by similarity comparison with the basic element images in the image feature library, so as to realize intelligent printing quality judgment on the basis of no printed original input, and greatly improve the quality inspection efficiency and accuracy of digital graphic printing.

[0043] Furthermore, by setting the standard intra-character color difference in the text analysis module, the text image of any segmented text can be judged, and the maximum color value and the minimum color value in each pixel of the text image are selected to calculate the difference, which can show the color state of the same text in the graphic printing preparation. When the real-time color difference is less than or equal to the standard color difference, it means that the printing color error of the text is small, so it is marked as uniform color text, and the color average value of the text image is calculated for easy output as a parameter for quality detection, while improving the efficiency of printing quality detection.

[0044] Furthermore, when the real-time color difference of the text image is greater than the standard color difference, the relative deviation distance between the pixel point corresponding to the maximum color value and the pixel point corresponding to the minimum color value in the text image is obtained, and the deviation distance ratio is calculated by the basic distance of the text to indicate whether the maximum color value and the minimum color value are farther away or further back relative to the text itself. When the deviation distance ratio is less than the preset distance ratio, it indicates that the two color maximum value points in the text image are relatively close. Therefore, it can be quickly determined that the text is printed unevenly, so it is marked as defective text to quickly lock the printing defect position.

[0045] In particular, when determining the color average value of grouped pixels, if the color average value of each group changes uniformly in a gradually decreasing or increasing manner from one end of the verification line to the other, and the distance of the change, that is, the relative distance of the deviation, is not lower than the requirement of the preset distance ratio, then it is determined that the text is rendered, and therefore it is marked as color-difference text, and it is assumed that there is no defect. On the contrary, if there is no corresponding gradient pattern in the color change on the verification line, then it is determined that there is a printing defect in this part, and therefore it is marked as defective text. The text area of ​​the printed captured image is determined to be qualified based on the area ratio of the defective text, thereby further ensuring the accuracy of the printing quality inspection and analysis.

[0046] Furthermore, by setting the standard in-image color difference value in the image analysis module, the area with a large color difference between two adjacent pixels can be quickly determined. For two adjacent pixels with a large color difference, a color difference line is created between the current two pixels, which can enable rapid feature segmentation of the entire image area, facilitate feature extraction of each closed area after segmentation, and make the feature extraction and comparison results more accurate.

[0047] In particular, an image feature library is set up to store a large number of basic element images, and contour and color features are used to find basic element images similar to the closed area. If there is a basic element image that is relatively close to the closed area, a certain picture element in the part of the picture area is determined. If it is determined that the image feature of the closed area is not similar to the basic element image, then it is determined that there is a printing defect in this part, and by setting a preset defect ratio, it is determined whether the picture area of ​​the printed acquisition image is qualified. On the basis of ensuring the printing quality detection efficiency of the printed acquisition image, the printing quality judgment without the original is realized, and the accuracy of the printing quality analysis and detection is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 This is a connection diagram of the image and text printing quality analysis system based on machine vision in this embodiment;

[0049] Figure 2 is a connection diagram of the analysis unit of this embodiment;

[0050] Figure 3 This is a flow chart of the picture analysis module of this embodiment for determining the formation of a closed area;

[0051] Figure 4 This is a flow chart of the image analysis module determining a defect area mark in this embodiment. DETAILED DESCRIPTION

[0052] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0053] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0054] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.

[0055] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0056] See also Figure 1 As shown, it is a connection diagram of a graphic printing quality analysis system based on machine vision in this embodiment. This embodiment provides a graphic printing quality analysis system based on machine vision, including:

[0057] A collection unit, which is used to scan the graphic printed product to form a printed collection image of the graphic printed product;

[0058] A segmentation unit connected to the acquisition unit, used for performing text recognition on the printed acquired image, and segmenting the printed acquired image into a text area and a picture area;

[0059] An image feature library, which stores several basic element images;

[0060] An analysis unit, which is connected to the segmentation unit and the image feature library respectively, and includes a text analysis module and a picture analysis module;

[0061] The text analysis module is used to calculate and determine according to the positions of the pixel points corresponding to the maximum color value and the pixel points corresponding to the minimum color value in the text image, determine to mark the text image as color-difference text or defective text, and determine whether the text area of ​​the printed collected image is qualified according to the real-time defect ratio of the area of ​​each text image marked as defective text to the total area of ​​the printed collected image;

[0062] The picture analysis module is used to create color difference lines at adjacent edges of two adjacent pixels according to the color difference values ​​in the standard image, and perform contour extraction and color extraction in the closed area formed by the color difference lines, and calculate and determine the contour similarity and color similarity with each basic element image in the image feature library to determine whether to mark the closed area as a defective area. The picture analysis module can also determine whether the picture area of ​​the printed captured image is qualified according to the ratio of the defective area to the total area of ​​the printed captured image.

[0063] Please continue reading Figure 2 As shown, 1 is a connection diagram of the analysis unit of this embodiment;

[0064] In this embodiment, the printed captured image of the graphic printed product is segmented into text and pictures by a segmentation unit, and a text analysis module and a picture analysis module are respectively set in the analysis unit to respectively analyze and determine the quality of the text area and the picture area of ​​the printed captured image, so as to facilitate feedback and determination of the printing quality according to the text features and the picture features respectively, and determine whether there are defects in the printing of the text part according to the characteristics of the printed text itself, and at the same time, segment the picture features by creating color difference lines according to the color difference values ​​in the standard image, and then determine whether there are defects in the printed part of the picture by similarity comparison with the basic element images in the image feature library, so as to realize intelligent printing quality determination without input of a printed original plate, and greatly improve the efficiency and accuracy of quality inspection for digital graphic printing.

[0065] Specifically, the text analysis module is provided with a standard intra-character color difference. The text analysis module can obtain a text image of any character in the text area of ​​the printed captured image, extract the color value of each pixel in the text image, and select the maximum color value and the minimum color value in each pixel of the text image to calculate the difference, and obtain the real-time color difference of the text image for judgment.

[0066] If the real-time color difference is less than or equal to the standard color difference, the text analysis module marks the text image as uniform color text, calculates the color average of the text image, and determines the text image of the next text in the text area of ​​the printed captured image;

[0067] If the real-time color difference is greater than the standard color difference, the text analysis module will calculate the deviation distance ratio based on the position of the pixel point corresponding to the maximum color value and the pixel point corresponding to the minimum color value and make a judgment to mark the text image as color difference text or defective text.

[0068] By setting the standard intra-character color difference in the text analysis module, the text image of any segmented text can be judged, and the maximum color value and the minimum color value in each pixel of the text image are selected to calculate the difference, which can show the color state of the same text in the preparation of graphic printing. When the real-time color difference is less than or equal to the standard color difference, it means that the printing color error of the text is small, so it is marked as uniform color text, and the color average value of the text image is calculated to facilitate the output as a parameter for quality detection, while improving the detection efficiency of printing quality. In this embodiment, the color value set is the total RGB value, that is, the overall color value obtained by R+G+B. The set standard intra-character color difference is generally set according to the printing requirements. If the printed font is a special color or an artistic font, the standard intra-character color difference needs to be adjusted accordingly. In order to ensure a higher quality detection accuracy, the standard intra-character color difference is usually set not to exceed 12.

[0069] Specifically, when the real-time color difference of the text image of any text is greater than the standard color difference, the text analysis module obtains the horizontal distance and the vertical distance of the text image to calculate the basic distance of the text, and obtains the relative distance of deviation between the pixel point corresponding to the maximum color value and the pixel point corresponding to the minimum color value in the text image, and calculates the deviation distance ratio according to the relative distance of deviation and the basic distance of the text;

[0070] Among them, Ap=Ld / Lu, Ap is the deviation distance ratio, Ld is the deviation relative distance, and Lu is the text basic distance.

[0071] Specifically, a preset distance ratio is set in the text analysis module, and the text analysis module can determine the deviation distance ratio according to the preset distance ratio.

[0072] If the deviation distance ratio is less than the preset distance ratio, the text analysis module marks the text image as defective text;

[0073] If the deviation distance ratio is greater than or equal to the preset distance ratio, the text analysis module creates a check line in the text image, and divides and determines the pixel points on the check line to determine whether to mark the text image as color-difference text or defective text;

[0074] The verification line is a line connecting a pixel point corresponding to a maximum color value and a pixel point corresponding to a minimum color value in the text image.

[0075] When the real-time color difference of the text image is greater than the standard color difference, the relative deviation distance between the pixel point corresponding to the maximum color value and the pixel point corresponding to the minimum color value in the text image is obtained, as well as the text basic distance calculation deviation distance ratio, to indicate whether the maximum color value and the minimum color value are farther away or further back relative to the text itself. When the deviation distance ratio is less than the preset distance ratio, it indicates that the two color maximum value points in the text image are relatively close. Therefore, it can be quickly determined that the text is printed unevenly, so it is marked as defective text to quickly lock the printing defect position.

[0076] In this embodiment, the horizontal distance and the vertical distance of the text image are obtained to calculate the basic text distance, wherein the smaller value of the horizontal span distance and the vertical span distance of the text image is used as the basic text distance, which can effectively avoid the judgment error brought to the system by the gradient or color change effect caused by the font rendering. Usually, when the distance is less than 50% of the basic text distance, the text cannot be rendered separately, so the preset distance ratio is generally set to about 0.5.

[0077] Specifically, a preset number of groups is set in the text analysis module. When the deviation distance ratio is greater than or equal to the preset distance ratio, the text analysis module creates the verification line in the text image, obtains the number of all pixels on the verification line, and calculates the number of pixels in any group according to the preset number of groups. The text analysis module takes any end of the verification line as the starting point, groups each pixel point toward the other end in sequence, and calculates the color average value of each group of pixels for determination.

[0078] If the color average values ​​of each group of pixels are increasing or decreasing from the starting point, the text analysis module marks the text image as color-difference text;

[0079] If the color average values ​​of each group of pixels do not increase or decrease from the starting point, the text analysis module marks the text image as defective text.

[0080] Specifically, a preset defect ratio is set in the text analysis module. After the text analysis module completes marking of the text images of all the texts in the text area of ​​the printed captured image, it calculates the real-time defect ratio of the area of ​​each text image marked as defective text to the total area of ​​the printed captured image.

[0081] If the real-time defect ratio is less than or equal to the preset defect ratio, the text analysis module determines that the text area of ​​the printed captured image is qualified;

[0082] If the real-time defect ratio is greater than the preset defect ratio, the text analysis module determines that the text area of ​​the printed captured image is unqualified.

[0083] When determining the color average value of grouped pixels, if the color average value of each group changes uniformly in a gradually decreasing or increasing manner from one end of the verification line to the other, and the distance of the change, that is, the relative distance of the deviation, is not less than the requirement of the preset distance ratio, then it is determined that the text is rendered, and therefore it is marked as color-difference text, and it is assumed that there is no defect. On the contrary, if there is no corresponding gradient pattern in the color change on the verification line, then it is determined that there is a printing defect in this part, and therefore it is marked as defective text. The text area of ​​the printed captured image is determined to be qualified based on the area ratio of the defective text, which further ensures the accuracy of the printing quality inspection and analysis.

[0084] Among them, the preset defect ratio is set to determine the ratio of defect area, which is generally set according to printing requirements. In this embodiment, the preset defect ratio is set to 0.015, that is, when the defect area of ​​the text image is less than 1.5% of the total area, it is considered qualified.

[0085] Please continue reading Figure 3 As shown, it is a flow chart of the picture analysis module of this embodiment for determining the formation of a closed area;

[0086] Specifically, the picture analysis module is provided with a standard intra-picture color difference value, and the picture analysis module can obtain the picture area of ​​the printed captured image, and calculate the difference between the color values ​​of any two adjacent pixels in the picture area as the picture color difference value.

[0087] If the color difference value of the picture is less than or equal to the color difference value within the standard picture, the picture analysis module does not create a color difference line between the current two pixel points;

[0088] If the image color difference is greater than the standard image color difference, the image analysis module will create a color difference line at the adjacent edges of the two pixels.

[0089] Specifically, when the picture analysis module completes the color difference determination and the creation of the color difference lines for all two adjacent pixel points in the picture area of ​​the printed captured image, it will determine each created color difference line.

[0090] If there are a number of color difference lines in the picture area of ​​the printed captured image that do not form a closed area, the picture analysis module will adjust the color difference value in the standard picture according to the number of color difference lines that do not form a closed area, and increase the color difference value in the standard picture until all the created color difference lines can form a closed area;

[0091] If all the color difference lines in the picture area of ​​the printed captured image can form a number of closed areas, the picture analysis module will perform feature extraction in any area to determine whether to mark the closed area as a defective area;

[0092] Wherein, E'=E×[1+(Qx / 4×Qs)], E' is the color difference value in the standard image after adjustment, E is the color difference value in the standard image before adjustment, Qx is the number of color difference lines that do not form a closed area, and Qs is the number of all pixels in the picture area of ​​the printed captured image;

[0093] The closed area is an area formed by connecting a plurality of color difference lines end to end, or an area formed by connecting a plurality of color difference lines and the edge of the picture area of ​​the printed captured image end to end;

[0094] The feature extraction includes contour extraction and color extraction.

[0095] By setting the color difference value within the standard image in the picture analysis module, the area with a large color difference between two adjacent pixels can be quickly determined. For the area with a large color difference between two adjacent pixels, a color difference line is created between the current two pixels, which can enable the overall picture area to achieve rapid feature segmentation, facilitate feature extraction of each closed area after segmentation, and make the feature extraction and comparison results more accurate. At the same time, since the picture analysis module adjusts the color difference value within the standard image when there are several color difference lines that do not constitute a closed area in the picture area of ​​the printed captured image, until the created color difference lines can all constitute a closed area, the initial color difference value within the standard image does not need to be set too large. Its adaptive mechanism can be used to perform repeated adjustments and judgments for multiple times, so that the final adjusted color difference value within the standard image reaches a state suitable for printing the captured image. The initial color difference value within the standard image is generally set to be the same as the color difference value within the standard character, and in this embodiment, the setting does not exceed 12.

[0096] Please continue reading Figure 4 As shown, it is a flow chart of the image analysis module determining the defect area mark in this embodiment;

[0097] Specifically, the picture analysis module is provided with standard shape similarity and standard color similarity. When all the color difference lines in the picture area of ​​the printed captured image can form a number of closed areas, the picture analysis module can extract the contour shape of any closed area and calculate the contour similarity of the closed area with the contour of each basic element image in the image feature library.

[0098] If the contour shape of the closed area and the contour similarity of each basic element image in the image feature library are both less than the standard shape similarity, the image analysis module marks the closed area as a defective area;

[0099] If the contour shape similarity of the closed area and the contour similarity of any basic element image in the image feature library is greater than or equal to the standard shape similarity, the picture analysis module marks the basic element image as a similar element image, extracts the color distribution of the closed area, and calculates the color similarity of the color distribution of the closed area and each similar element image. When the color similarity of the closed area and each similar element image is less than the standard color similarity, the picture analysis module marks the closed area as a defective area; when the color similarity of the closed area and any similar element image is greater than or equal to the standard color similarity, the picture analysis module does not mark the closed area and makes a judgment on the next closed area.

[0100] Specifically, the picture analysis module is also provided with a preset defect ratio. After completing the determination marking of all closed areas in the picture area of ​​the printed captured image, the picture analysis module calculates the picture defect ratio of all marked defective areas to the total area of ​​the printed captured image.

[0101] If the image defect ratio is less than or equal to the preset defect ratio, the image analysis module determines that the image area of ​​the printed captured image is qualified;

[0102] If the image defect ratio is greater than a preset defect ratio, the image analysis module determines that the image area of ​​the printed captured image is unqualified.

[0103] An image feature library is set up to store a large number of basic element images, and contour and color features are used to find basic element images similar to the closed area. If there is a basic element image that is relatively close to the closed area, a certain picture element in the part of the picture area is determined. If it is determined that the image feature of the closed area is not similar to the basic element image, then it is determined that there is a printing defect in this part, and whether the picture area of ​​the printed acquisition image is qualified is determined by setting a preset defect ratio. The preset defect ratio is the area ratio, so it is the same as the preset defect ratio used for text image defect determination, which is 0.015. On the basis of ensuring the printing quality detection efficiency of the printed acquisition image, the printing quality determination without the original is realized, and the accuracy of the printing quality analysis and detection is improved.

[0104] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

[0105] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A graphic printing quality analysis system based on machine vision, characterized in that: include, A collection unit, which is used to scan the graphic printed product to form a printed collection image of the graphic printed product; A segmentation unit connected to the acquisition unit, used for performing text recognition on the printed acquired image, and segmenting the printed acquired image into a text area and a picture area; An image feature library, which stores several basic element images; An analysis unit, which is connected to the segmentation unit and the image feature library respectively, and includes a text analysis module and a picture analysis module; The text analysis module is used to calculate and determine according to the positions of the pixel points corresponding to the maximum color value and the pixel points corresponding to the minimum color value in the text image, determine to mark the text image as color-difference text or defective text, and determine whether the text area of ​​the printed collected image is qualified according to the real-time defect ratio of the area of ​​each text image marked as defective text to the total area of ​​the printed collected image; The picture analysis module is used to create color difference lines at adjacent edges of two adjacent pixels according to the color difference values ​​in the standard image, and perform contour extraction and color extraction in the closed area formed by the color difference lines, and calculate and determine the contour similarity and color similarity with each basic element image in the image feature library to determine whether to mark the closed area as a defective area. The picture analysis module can also determine whether the picture area of ​​the printed captured image is qualified according to the ratio of the defective area to the total area of ​​the printed captured image.

2. The image and text printing quality analysis system based on machine vision according to claim 1 is characterized in that: The text analysis module is provided with a standard intra-character color difference. The text analysis module can obtain a text image of any character in the text area of ​​the printed captured image, extract the color value of each pixel in the text image, and select the maximum color value and the minimum color value in each pixel of the text image to calculate the difference, and obtain the real-time color difference of the text image for judgment. If the real-time color difference is less than or equal to the standard color difference, the text analysis module marks the text image as uniform color text, calculates the color average of the text image, and determines the text image of the next text in the text area of ​​the printed captured image; If the real-time color difference is greater than the standard color difference, the text analysis module will calculate the deviation distance ratio based on the position of the pixel point corresponding to the maximum color value and the pixel point corresponding to the minimum color value and make a judgment to mark the text image as color difference text or defective text.

3. The image and text printing quality analysis system based on machine vision according to claim 2 is characterized in that: When the real-time color difference of the text image of any text is greater than the standard color difference, the text analysis module obtains the horizontal distance and the vertical distance of the text image to calculate the basic distance of the text, and obtains the relative distance of deviation between the pixel point corresponding to the maximum color value and the pixel point corresponding to the minimum color value in the text image, and calculates the deviation distance ratio according to the relative distance of deviation and the basic distance of the text; Among them, Ap=Ld / Lu, Ap is the deviation distance ratio, Ld is the deviation relative distance, and Lu is the text basic distance.

4. The image and text printing quality analysis system based on machine vision according to claim 3 is characterized in that: The text analysis module is provided with a preset distance ratio, and the text analysis module can determine the deviation distance ratio according to the preset distance ratio. If the deviation distance ratio is less than the preset distance ratio, the text analysis module marks the text image as defective text; If the deviation distance ratio is greater than or equal to the preset distance ratio, the text analysis module creates a check line in the text image, and divides and determines the pixel points on the check line to determine whether to mark the text image as color-difference text or defective text; The verification line is a line connecting a pixel point corresponding to a maximum color value and a pixel point corresponding to a minimum color value in the text image.

5. The image and text printing quality analysis system based on machine vision according to claim 4 is characterized in that: The text analysis module is provided with a preset number of groups. When the deviation distance ratio is greater than or equal to the preset distance ratio, the text analysis module creates the verification line in the text image, obtains the number of all pixels on the verification line, and calculates the number of pixels in any group according to the preset number of groups. The text analysis module takes any end of the verification line as a starting point, groups each pixel point toward the other end in sequence, and calculates the color average value of each group of pixels for determination. If the color average values ​​of each group of pixels are increasing or decreasing from the starting point, the text analysis module marks the text image as color-difference text; If the color average values ​​of each group of pixels do not increase or decrease from the starting point, the text analysis module marks the text image as defective text.

6. The image and text printing quality analysis system based on machine vision according to claim 2 is characterized in that: The text analysis module is provided with a preset defect ratio. After the text analysis module completes marking of the text images of all the texts in the text area of ​​the printed captured image, it calculates the real-time defect ratio of the area of ​​each text image marked as defective text to the total area of ​​the printed captured image. If the real-time defect ratio is less than or equal to the preset defect ratio, the text analysis module determines that the text area of ​​the printed captured image is qualified; If the real-time defect ratio is greater than the preset defect ratio, the text analysis module determines that the text area of ​​the printed captured image is unqualified.

7. The image and text printing quality analysis system based on machine vision according to claim 1, characterized in that: The image analysis module is provided with a standard intra-image color difference value. The image analysis module can obtain the image area of ​​the printed captured image and calculate the difference between the color values ​​of any two adjacent pixels in the image area as the image color difference value. If the color difference value of the picture is less than or equal to the color difference value within the standard picture, the picture analysis module does not create a color difference line between the current two pixel points; If the image color difference is greater than the standard image color difference, the image analysis module will create a color difference line between the adjacent edges of the two pixels.

8. The image and text printing quality analysis system based on machine vision according to claim 7, characterized in that: When the picture analysis module completes the color difference determination and the creation of color difference lines for all two adjacent pixel points in the picture area of ​​the printed captured image, it will determine each created color difference line. If there are a number of color difference lines in the picture area of ​​the printed captured image that do not form a closed area, the picture analysis module will adjust the color difference value in the standard picture according to the number of color difference lines that do not form a closed area, and increase the color difference value in the standard picture until all the created color difference lines can form a closed area; If all the color difference lines in the picture area of ​​the printed captured image can form a number of closed areas, the picture analysis module will perform feature extraction in any area to determine whether to mark the closed area as a defective area; Wherein, E'=E×[1+(Qx / 4×Qs)], E' is the color difference value in the standard image after adjustment, E is the color difference value in the standard image before adjustment, Qx is the number of color difference lines that do not form a closed area, and Qs is the number of all pixels in the picture area of ​​the printed captured image; The closed area is an area formed by connecting a plurality of color difference lines end to end, or an area formed by connecting a plurality of color difference lines and the edge of the picture area of ​​the printed captured image end to end; The feature extraction includes contour extraction and color extraction.

9. The image and text printing quality analysis system based on machine vision according to claim 8, characterized in that: The picture analysis module is provided with standard shape similarity and standard color similarity. When all the color difference lines in the picture area of ​​the printed captured image can form a number of closed areas, the picture analysis module can extract the contour shape of any closed area and calculate the contour similarity of the closed area with the contour of each basic element image in the image feature library. If the contour shape of the closed area and the contour similarity of each basic element image in the image feature library are both less than the standard shape similarity, the image analysis module marks the closed area as a defective area; If the contour shape similarity of the closed area and the contour similarity of any basic element image in the image feature library is greater than or equal to the standard shape similarity, the picture analysis module marks the basic element image as a similar element image, extracts the color distribution of the closed area, and calculates the color similarity of the color distribution of the closed area and each similar element image. When the color similarity of the closed area and each similar element image is less than the standard color similarity, the picture analysis module marks the closed area as a defective area; when the color similarity of the closed area and any similar element image is greater than or equal to the standard color similarity, the picture analysis module does not mark the closed area and makes a judgment on the next closed area.

10. The image and text printing quality analysis system based on machine vision according to claim 9, characterized in that: The picture analysis module is also provided with a preset defect ratio. After completing the determination marking of all closed areas in the picture area of ​​the printed captured image, the picture analysis module calculates the picture defect ratio of all marked defect areas to the total area of ​​the printed captured image. If the image defect ratio is less than or equal to the preset defect ratio, the image analysis module determines that the image area of ​​the printed captured image is qualified; If the image defect ratio is greater than a preset defect ratio, the image analysis module determines that the image area of ​​the printed captured image is unqualified.