A method and system for detecting quality of printed matter based on image features
By constructing a standard printed matter image library and performing quality inspection feature extraction and defect identification, the problem of single detection in the existing technology is solved and the accuracy and efficiency of printed matter quality inspection are improved.
Patent Information
- Application Number
- CN202311844472.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-12-29
Smart Images

Figure CN117764970B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image analysis, and in particular to a method and system for detecting quality of printed matter based on image features. Background Art
[0002] Printing quality inspection is an indispensable part of the printing production process. It can ensure the stability and consistency of printed quality, improve product competitiveness, reduce printing production costs, reduce defective rates, improve production efficiency, and increase customer satisfaction and trust. There are various types of printed materials, including books, newspapers, magazines, packaging boxes, etc. Different types of printed materials have different printing processes and materials, and require different inspection methods and equipment for quality inspection. However, most of the current inspection technologies are aimed at quality inspection of a single product and cannot meet the quality inspection needs of different types of printed materials. Summary of the invention
[0003] The present application provides a method and system for detecting the quality of printed products based on image features, which are used to solve the technical problem that the single printed product quality detection technology in the prior art cannot meet the quality detection requirements of different types of printed products.
[0004] In a first aspect of the present application, a method for detecting quality of printed products based on image features is provided, the method comprising: obtaining a set of standard template images and constructing a library of standard printed product images; preprocessing the printed product image to be detected to obtain a target printed product image; matching the target printed product image with the library of standard printed product images to obtain a target template image, performing quality inspection feature extraction based on the target template image to obtain a plurality of standard quality inspection features; locking a plurality of feature extraction regions based on the plurality of standard quality inspection features and in combination with the target template image; performing quality inspection feature extraction on the target template image and the target printed product image based on the plurality of feature extraction regions to obtain a template quality feature set and an inspection product quality feature set, wherein one quality inspection feature corresponds to at least one feature extraction region; performing feature comparison and defect identification based on the template quality feature set and the inspection product quality feature set to obtain a printed product quality detection result.
[0005] In a second aspect of the present application, a printed product quality inspection system based on image features is provided, the system comprising: a standard printed product image library construction module, the standard printed product image library construction module is used to obtain a standard template image set and construct a standard printed product image library; a target printed product image acquisition module, the target printed product image acquisition module is used to obtain a target printed product image after preprocessing the printed product image to be inspected; multiple standard quality inspection feature acquisition modules, the multiple standard quality inspection feature acquisition modules are used to match the target printed product image with the standard printed product image library to obtain a target template image, perform quality inspection feature extraction based on the target template image, and obtain multiple standard quality inspection features; multiple A feature extraction area locking module, wherein the multiple feature extraction area locking modules are used to lock multiple feature extraction areas according to the multiple standard quality inspection features in combination with the target template image; a quality inspection feature extraction module, wherein the quality inspection feature extraction module is used to perform quality inspection feature extraction on the target template image and the target printed product image according to the multiple feature extraction areas to obtain a template quality feature set and an inspection product quality feature set, wherein one quality inspection feature corresponds to at least one feature extraction area; a printed product quality inspection result acquisition module, wherein the printed product quality inspection result acquisition module is used to perform feature comparison and defect identification through the template quality feature set and the inspection product quality feature set to obtain a printed product quality inspection result.
[0006] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0007] The present application provides a method for detecting quality of printed products based on image features, which relates to the field of image analysis technology. A standard printed product image library is constructed, and a target printed product image is matched with the standard printed product image library to obtain a target template image, perform quality inspection feature extraction, obtain multiple standard quality inspection features, and lock multiple feature extraction areas. Quality inspection feature extraction is performed on the target template image and the target printed product image to obtain a template quality feature set and an inspection product quality feature set. The printed product quality detection result is obtained through feature comparison and defect identification. The technical problem that the single printed product quality detection technology in the prior art cannot meet the quality detection requirements of different types of printed products is solved, and the technical effect of flexibly adjusting the detection process according to different quality inspection requirements to improve the accuracy and efficiency of detection is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0009] Figure 1 A schematic diagram of a process flow of a printed product quality detection method based on image features provided in an embodiment of the present application;
[0010] Figure 2 A schematic diagram of a process for obtaining multiple standard quality inspection features in a printed product quality inspection method based on image features provided in an embodiment of the present application;
[0011] Figure 3 A schematic diagram of a process for obtaining quality defect identification results in a printed product quality detection method based on image features provided in an embodiment of the present application;
[0012] Figure 4 A schematic diagram of the structure of a printed product quality detection system based on image features provided in an embodiment of the present application.
[0013] Explanation of the reference numerals: standard printed product image library construction module 11, target printed product image acquisition module 12, multiple standard quality inspection feature acquisition module 13, multiple feature extraction area locking module 14, quality inspection feature extraction module 15, printed product quality inspection result acquisition module 16. DETAILED DESCRIPTION
[0014] The present application provides a printed product quality detection method based on image features, which is used to solve the technical problem that the single printed product quality detection technology in the prior art cannot meet the quality detection requirements of different types of printed products.
[0015] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0016] It should be noted that the terms "first", "second", etc. in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products, or devices.
[0017] Embodiment 1
[0018] like Figure 1 As shown, the present application provides a method for detecting the quality of printed matter based on image features, the method comprising:
[0019] 1. A method for detecting the quality of printed matter based on image features, characterized in that the method comprises:
[0020] P10: Obtain a standard template image set and build a standard print image library;
[0021] Furthermore, step P10 of the embodiment of the present application further includes:
[0022] P11: Acquire multiple types of printed matter, and collect standard template images according to the multiple types of printed matter to obtain multiple standard template images;
[0023] P12: After cleaning and screening the plurality of standard template images, a standard template image set is obtained;
[0024] P13: Construct the standard printed matter image library according to the standard template image set and multiple printed matter types.
[0025] It should be understood that, based on big data, multiple types of printed materials are obtained. For example, according to their purpose, they can be divided into commercial prints, cultural prints, packaging prints, etc.; according to the consumables used for printing, they can be divided into paper prints, plastic prints, metal prints, etc.; according to printing colors, they can be divided into monochrome prints, two-color prints, multi-color prints, etc., and then according to multiple types of printed materials, standard template images are collected separately to obtain multiple standard template images, that is, standard images of the printing templates of printed materials. Furthermore, the multiple standard template images are cleaned and screened separately to screen out template images that do not meet the standard specifications to obtain a standard template image set, and according to multiple types of printed materials and their corresponding standard template images, the standard printed material image library is constructed, which can be used for standard image feature extraction.
[0026] P20: After preprocessing the printed matter image to be detected, a target printed matter image is obtained;
[0027] Specifically, a printed image to be detected is received and preprocessed, such as adjusting the image position and size by resizing, cropping, rotating, and other operations. Further, noise in the image, such as color distortion, pixel distortion, etc., can be removed by using a wavelet filtering algorithm or any denoising algorithm, and histogram equalization, contrast stretching, and other methods are used to enhance the contrast and brightness of the image, making the image clearer and easier to observe, thereby obtaining a target printed image.
[0028] P30: Matching the target printed product image with the standard printed product image library to obtain a target template image, and extracting quality inspection features based on the target template image to obtain a plurality of standard quality inspection features;
[0029] Further, such as Figure 2 As shown, step P30 of the embodiment of the present application also includes:
[0030] P31: Obtain the target printed product type and target printed product quality requirements;
[0031] P32: Based on the target printed product type and target printed product quality requirements, combined with the target template image, quality inspection feature extraction is performed to obtain multiple standard quality inspection features, including appearance features, color features, clarity features, size features, overprint features, and ink performance features.
[0032] In a possible embodiment of the present application, the target printed product image is matched in the standard printed product image library through the target printed product type corresponding to the target printed product image to obtain a target template image, and quality inspection feature extraction is performed based on the target printed product type and target printed product quality requirements in combination with the target template image to obtain multiple standard quality inspection features, including appearance features, color features, clarity features, size features, overprint features, and ink performance features, which can reflect the product's appearance, color, clarity and other quality characteristics.
[0033] P40: According to the plurality of standard quality inspection features, combined with the target template image, locking a plurality of feature extraction areas;
[0034] Furthermore, step P40 of the embodiment of the present application also includes:
[0035] P41: extracting key quality inspection features according to the plurality of standard quality inspection features, and using the remaining standard quality inspection features as conventional quality inspection features;
[0036] P42: Assign inspection weights to the key quality inspection features and routine quality inspection features;
[0037] P43: According to the inspection weights and in combination with the target template image, a plurality of feature extraction regions are respectively locked for the key quality inspection features and the conventional quality inspection features.
[0038] Specifically, according to customer quality inspection requirements, key quality inspection features are extracted from the multiple standard quality inspection features, such as color features, clarity features, and size features, as key detection features, and the remaining standard quality inspection features are used as routine quality inspection features, and inspection weights are assigned to the key quality inspection features and routine quality inspection features. The inspection weight of the key quality inspection features is greater than that of the routine quality inspection features, and the weight of each key quality inspection feature is different. Furthermore, according to the inspection weight, the number of inspection areas is assigned to each quality inspection feature. The larger the weight, the more inspection areas. According to the number of inspection areas, the inspection area is locked in the target template image, and a corresponding number of feature extraction areas are locked for the key quality inspection features and the routine quality inspection features, respectively.
[0039] P50: Extract quality inspection features from the target template image and the target printed product image according to the multiple feature extraction regions to obtain a template quality feature set and an inspection product quality feature set, wherein one quality inspection feature corresponds to at least one feature extraction region;
[0040] Exemplarily, each quality inspection feature may correspond to multiple different feature extraction areas. For example, text clarity may correspond to multiple text clarity inspection areas. Therefore, according to the multiple feature extraction areas, quality inspection features are extracted for the target template image and the target printed product image respectively to obtain a template quality feature set and an inspection product quality feature set, which respectively contain multiple feature images of multiple quality inspection features, and one quality inspection feature corresponds to at least one feature extraction area, which can improve the comprehensiveness of feature extraction.
[0041] P60: Feature comparison and defect identification are performed through the template quality feature set and the inspection product quality feature set to obtain the printed product quality inspection result.
[0042] Further, such as Figure 3 As shown, step P60 of the embodiment of the present application also includes:
[0043] P61: Using the template quality feature set as training data, obtaining a first discriminant sub-model, and determining a network sharing weight based on the first discriminant sub-model;
[0044] P62: Based on the first discriminant sub-model and the network shared weight, a defect feature discrimination model is constructed;
[0045] P63: The template quality feature set and the inspected product quality feature set are subjected to feature comparison and defect identification through the defect feature discrimination model to obtain a quality defect identification result.
[0046] It should be understood that defects in printed images are identified by comparing the feature images in the template quality feature set and the inspection product quality feature set one by one. First, the template quality feature set is used as training data and combined with machine learning principles, such as supervised training in combination with a BP neural network until the output converges to obtain a first discriminant sub-model. The BP neural network is a multi-layer feedforward neural network trained according to an error back propagation algorithm. It does not require a mathematical equation for the mapping relationship between input and output to be determined in advance. It only learns a certain rule through its own training to obtain a result closest to the expected output value when an input value is given.
[0047] Furthermore, according to the weight distribution of each parameter in the first discriminant sub-model, the network shared weight is determined, and then according to the network shared weight and the first discriminant sub-model, a defect feature discrimination model is constructed. The defect feature discrimination model includes the first discriminant sub-model and another sub-model that is exactly the same, that is, two network models with shared weights. Two sets of feature recognition data can be output by inputting two image samples, and then the similarity of the two sets of feature recognition data can be compared to determine whether quality defects occur. The template quality feature set and the inspection product quality feature set are input into the defect feature discrimination model for feature comparison and defect recognition, and the quality defect recognition result can be obtained.
[0048] Furthermore, step P63 of the embodiment of the present application also includes:
[0049] P63-1: Perform feature recognition and analysis on the template quality feature set through the first discriminant sub-model in the defect feature discrimination model to obtain standard feature analysis data;
[0050] P63-2: Perform feature recognition and analysis on each image in the inspection product quality feature set through the second discriminant sub-model in the defect feature discrimination model to obtain sample feature analysis data;
[0051] P63-3: Based on the standard feature analysis data and the sample feature analysis data, feature comparison calculation is performed through a loss function to obtain a feature loss value;
[0052] P63-4: Obtain quality defect identification results based on the characteristic loss value.
[0053] Specifically, the template quality feature set and the inspection product quality feature set are input into the defect feature discrimination model, and the template quality feature set is subjected to feature recognition and analysis through the first discriminant sub-model to obtain standard feature analysis data, and each feature image in the inspection product quality feature set is subjected to feature recognition and analysis through the second discriminant sub-model to obtain sample feature analysis data. Furthermore, the standard feature analysis data and the sample feature analysis data are subjected to feature comparison calculation through a loss function to obtain a feature loss value. The loss function is a function used to reflect the difference between input images by calculating the "distance" between two feature vectors. The difference between the images of the template quality feature set and the inspection product quality feature set is the feature loss value. The larger the feature loss value, the greater the difference between the images, and the more likely it is that a quality defect exists.
[0054] Furthermore, step P63 of the embodiment of the present application also includes:
[0055] P63-5: When the characteristic loss value is greater than or equal to the preset loss threshold, the defect determination result of the corresponding area is unqualified;
[0056] P63-6: When the characteristic loss value is less than the preset loss threshold, the defect determination result of the corresponding area is qualified;
[0057] P63-7: In the same way, multiple defect discrimination results are obtained, and the multiple defect discrimination results are weighted according to the corresponding quality inspection features to obtain multiple quality inspection feature defect recognition results;
[0058] P63-8: Based on multiple quality inspection feature defect identification results, obtain quality defect identification results.
[0059] Exemplarily, when the feature loss value is greater than or equal to a preset loss threshold, it means that the difference between the target printed image and the template image exceeds the allowable range, and the corresponding area may have quality defects, then the defect discrimination result of the corresponding area is unqualified; when the feature loss value is less than the preset loss threshold, it means that the difference between the target printed image and the template image is within the allowable range, and the possibility of quality defects in the corresponding area is very low, then the defect discrimination result of the corresponding area is qualified, and defect discrimination is performed according to the above judgment rules to obtain multiple defect discrimination results, and the multiple defect discrimination results are weighted calculated according to the corresponding quality inspection features to obtain multiple quality inspection feature defect recognition results. For example, multiple discrimination results of text clarity are weighted calculated to obtain the text clarity of the target printed product, and multiple quality inspection feature defect recognition results are collectively used as the quality defect recognition result of the target printed product.
[0060] In summary, the embodiments of the present application have at least the following technical effects:
[0061] The present application constructs a standard printed product image library, matches the target printed product image with the standard printed product image library, obtains the target template image, performs quality inspection feature extraction, obtains multiple standard quality inspection features, and locks multiple feature extraction areas, performs quality inspection feature extraction on the target template image and the target printed product image, obtains the template quality feature set and the inspection product quality feature set, and obtains the printed product quality inspection result through feature comparison and defect identification.
[0062] The technical effect of flexibly adjusting the testing process according to different quality inspection requirements to improve the accuracy and efficiency of testing has been achieved.
[0063] Embodiment 2
[0064] Based on the same inventive concept as the printed product quality detection method based on image features in the aforementioned embodiment, Figure 4 As shown, the present application provides a print quality detection system based on image features, and the system and method embodiments in the present application are based on the same inventive concept. The system includes:
[0065] A standard printed product image library construction module 11, wherein the standard printed product image library construction module 11 is used to obtain a standard template image set and construct a standard printed product image library;
[0066] A target printed matter image acquisition module 12, wherein the target printed matter image acquisition module 12 is used to obtain a target printed matter image after preprocessing the printed matter image to be detected;
[0067] A plurality of standard quality inspection feature acquisition modules 13, wherein the plurality of standard quality inspection feature acquisition modules 13 are used to match the target printed product image with the standard printed product image library to obtain a target template image, and to extract quality inspection features according to the target template image to obtain a plurality of standard quality inspection features;
[0068] A plurality of feature extraction region locking modules 14, wherein the plurality of feature extraction region locking modules 14 are used to lock a plurality of feature extraction regions according to the plurality of standard quality inspection features in combination with the target template image;
[0069] A quality inspection feature extraction module 15, the quality inspection feature extraction module 15 is used to extract quality inspection features of the target template image and the target printed product image according to the multiple feature extraction areas, and obtain a template quality feature set and an inspection product quality feature set, wherein one quality inspection feature corresponds to at least one feature extraction area;
[0070] The printed product quality detection result acquisition module 16 is used to perform feature comparison and defect identification through the template quality feature set and the inspection product quality feature set to obtain the printed product quality detection result.
[0071] Furthermore, the standard printed product image library construction module 11 is also used to perform the following steps:
[0072] Acquire multiple printed matter types, and collect standard template images respectively according to the multiple printed matter types to obtain multiple standard template images;
[0073] After cleaning and screening the plurality of standard template images, a standard template image set is obtained;
[0074] The standard printed matter image library is constructed according to a standard template image set and a plurality of printed matter types.
[0075] Furthermore, the multiple standard quality inspection feature acquisition module 13 is also used to perform the following steps:
[0076] Obtain target printed product type and target printed product quality requirements;
[0077] According to the target printed product type and target printed product quality requirements, combined with the target template image, quality inspection feature extraction is performed to obtain multiple standard quality inspection features, including appearance features, color features, clarity features, size features, overprint features, and ink performance features.
[0078] Furthermore, the plurality of feature extraction region locking modules 14 are further configured to perform the following steps:
[0079] Extracting key quality inspection features based on the multiple standard quality inspection features, and using the remaining standard quality inspection features as routine quality inspection features;
[0080] Assigning inspection weights to the key quality inspection features and routine quality inspection features;
[0081] According to the inspection weights and in combination with the target template image, a plurality of feature extraction regions are respectively locked for the key quality inspection features and the conventional quality inspection features.
[0082] Furthermore, the printed product quality detection result acquisition module 16 is further configured to perform the following steps:
[0083] Using the template quality feature set as training data, obtaining a first discriminant sub-model, and determining a network sharing weight based on the first discriminant sub-model;
[0084] Based on the first discriminant sub-model and the network shared weight, a defect feature discrimination model is constructed;
[0085] The template quality feature set and the inspected product quality feature set are subjected to feature comparison and defect identification through the defect feature discrimination model to obtain a quality defect identification result.
[0086] Furthermore, the printed product quality detection result acquisition module 16 is further configured to perform the following steps:
[0087] Performing feature recognition and analysis on the template quality feature set through the first discriminant sub-model in the defect feature discrimination model to obtain standard feature analysis data;
[0088] Performing feature recognition and analysis on each image in the inspection product quality feature set through the second discriminant sub-model in the defect feature discrimination model to obtain sample feature analysis data;
[0089] Based on the standard feature analysis data and the sample feature analysis data, feature comparison calculation is performed through a loss function to obtain a feature loss value;
[0090] A quality defect recognition result is obtained according to the feature loss value.
[0091] Furthermore, the printed product quality detection result acquisition module 16 is further configured to perform the following steps:
[0092] When the characteristic loss value is greater than or equal to the preset loss threshold, the defect determination result of the corresponding area is unqualified;
[0093] When the characteristic loss value is less than the preset loss threshold, the defect identification result of the corresponding area is qualified;
[0094] In this way, multiple defect identification results are obtained, and the multiple defect identification results are weighted according to the corresponding quality inspection features to obtain multiple quality inspection feature defect recognition results;
[0095] Based on multiple quality inspection feature defect recognition results, quality defect recognition results are obtained.
[0096] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of this specification are described. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0097] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
[0098] This specification and the drawings are merely exemplary illustrations of the present application and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, a person skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present application and its equivalents, the present application intends to include these modifications and variations.
Claims
1. A method for detecting the quality of printed matter based on image features, characterized in that: The method comprises: Obtain a standard template image set and build a standard print image library; After preprocessing the printed matter image to be detected, a target printed matter image is obtained; Matching the target printed product image with the standard printed product image library to obtain a target template image, and extracting quality inspection features based on the target template image to obtain a plurality of standard quality inspection features; According to the plurality of standard quality inspection features, in combination with the target template image, locking a plurality of feature extraction areas; According to the multiple feature extraction areas, quality inspection feature extraction is performed on the target template image and the target printed product image to obtain a template quality feature set and an inspection product quality feature set, wherein one quality inspection feature corresponds to at least one feature extraction area; By using the template quality feature set and the inspection product quality feature set, feature comparison and defect identification are performed to obtain a printed product quality inspection result; Among them, obtaining a standard template image set and building a standard printed product image library includes: Acquire multiple printed matter types, and collect standard template images respectively according to the multiple printed matter types to obtain multiple standard template images; After cleaning and screening the plurality of standard template images, a standard template image set is obtained; Constructing the standard printed matter image library according to the standard template image set and multiple printed matter types; The step of extracting quality inspection features according to the target template image to obtain a plurality of standard quality inspection features further includes: Obtain target printed product type and target printed product quality requirements; According to the target printed product type and target printed product quality requirements, combined with the target template image, quality inspection feature extraction is performed to obtain multiple standard quality inspection features, including appearance features, color features, clarity features, size features, overprint features, and ink performance features; Wherein, according to the plurality of standard quality inspection features, in combination with the target template image, locking a plurality of feature extraction areas also includes: Extracting key quality inspection features based on the multiple standard quality inspection features, and using the remaining standard quality inspection features as conventional quality inspection features; Assigning inspection weights to the key quality inspection features and routine quality inspection features; According to the inspection weights, in combination with the target template image, a plurality of feature extraction regions are respectively locked for the key quality inspection features and the conventional quality inspection features; The step of performing feature comparison and defect identification by using the template quality feature set and the inspection product quality feature set further includes: Using the template quality feature set as training data, obtaining a first discriminant sub-model, and determining a network sharing weight based on the first discriminant sub-model; Based on the first discriminant sub-model and the network shared weight, a defect feature discrimination model is constructed; The template quality feature set and the inspected product quality feature set are subjected to feature comparison and defect identification through the defect feature discrimination model to obtain a quality defect identification result; Among them, the template quality feature set and the inspection product quality feature set are subjected to feature comparison and defect identification through the defect feature discrimination model to obtain a quality defect identification result, including: Performing feature recognition and analysis on the template quality feature set through the first discriminant sub-model in the defect feature discrimination model to obtain standard feature analysis data; Performing feature recognition and analysis on each image in the inspection product quality feature set through the second discriminant sub-model in the defect feature discrimination model to obtain sample feature analysis data; Based on the standard feature analysis data and the sample feature analysis data, feature comparison calculation is performed through a loss function to obtain a feature loss value; A quality defect recognition result is obtained according to the feature loss value.
2. The method according to claim 1, characterized in that The step of obtaining a quality defect identification result according to the feature loss value further includes: When the characteristic loss value is greater than or equal to the preset loss threshold, the defect determination result of the corresponding area is unqualified; When the characteristic loss value is less than the preset loss threshold, the defect identification result of the corresponding area is qualified; In this way, multiple defect identification results are obtained, and the multiple defect identification results are weighted according to the corresponding quality inspection features to obtain multiple quality inspection feature defect recognition results; Based on multiple quality inspection feature defect recognition results, quality defect recognition results are obtained.
3. A printed product quality detection system based on image features, characterized in that: The system comprises: A standard printed product image library construction module, wherein the standard printed product image library construction module is used to obtain a standard template image set and construct a standard printed product image library; A target printed matter image acquisition module, wherein the target printed matter image acquisition module is used to obtain a target printed matter image after preprocessing the printed matter image to be detected; A plurality of standard quality inspection feature acquisition modules, wherein the plurality of standard quality inspection feature acquisition modules are used to match the target printed product image with the standard printed product image library to obtain a target template image, and to extract quality inspection features based on the target template image to obtain a plurality of standard quality inspection features; A plurality of feature extraction area locking modules, wherein the plurality of feature extraction area locking modules are used to lock a plurality of feature extraction areas according to the plurality of standard quality inspection features in combination with the target template image; A quality inspection feature extraction module, the quality inspection feature extraction module is used to extract quality inspection features of the target template image and the target printed product image according to the multiple feature extraction areas, and obtain a template quality feature set and an inspection product quality feature set, wherein one quality inspection feature corresponds to at least one feature extraction area; A printed product quality inspection result acquisition module, the printed product quality inspection result acquisition module is used to perform feature comparison and defect identification through the template quality feature set and the inspection product quality feature set to obtain the printed product quality inspection result; The standard print image library construction module is also used to perform the following steps: Acquire multiple printed matter types, and collect standard template images respectively according to the multiple printed matter types to obtain multiple standard template images; After cleaning and screening the plurality of standard template images, a standard template image set is obtained; Constructing the standard printed matter image library according to the standard template image set and multiple printed matter types; The plurality of standard quality inspection feature acquisition modules are also used to perform the following steps: Obtain target printed product type and target printed product quality requirements; According to the target printed product type and target printed product quality requirements, combined with the target template image, quality inspection feature extraction is performed to obtain multiple standard quality inspection features, including appearance features, color features, clarity features, size features, overprint features, and ink performance features; The plurality of feature extraction area locking modules are further configured to perform the following steps: Extracting key quality inspection features based on the multiple standard quality inspection features, and using the remaining standard quality inspection features as routine quality inspection features; Assigning inspection weights to the key quality inspection features and routine quality inspection features; According to the inspection weights, in combination with the target template image, a plurality of feature extraction regions are respectively locked for the key quality inspection features and the conventional quality inspection features; The printed product quality detection result acquisition module is also used to perform the following steps: Using the template quality feature set as training data, obtaining a first discriminant sub-model, and determining a network sharing weight based on the first discriminant sub-model; Based on the first discriminant sub-model and the network shared weight, a defect feature discrimination model is constructed; The template quality feature set and the inspected product quality feature set are subjected to feature comparison and defect identification through the defect feature discrimination model to obtain a quality defect identification result; The printed product quality detection result acquisition module is also used to perform the following steps: Performing feature recognition and analysis on the template quality feature set through the first discriminant sub-model in the defect feature discrimination model to obtain standard feature analysis data; Performing feature recognition and analysis on each image in the inspection product quality feature set through the second discriminant sub-model in the defect feature discrimination model to obtain sample feature analysis data; Based on the standard feature analysis data and the sample feature analysis data, feature comparison calculation is performed through a loss function to obtain a feature loss value; A quality defect recognition result is obtained according to the feature loss value.
Citation Information
Patent Citations
Printed product quality real-time monitoring and quality inspection system based on image recognition
CN112258460A
Printed matter online detection method, system and device based on image acquisition
CN112288688A
