A digital image multi-type defect detection and positioning system
By designing a multi-type defect detection and positioning system and using image feature extraction and style analysis technology, efficient defect detection and positioning of a large number of digital images has been achieved, solving the problem of low efficiency of the existing system, improving detection efficiency and reducing misjudgments. .
Patent Information
- Application Number
- CN202410881623.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-07-03
AI Technical Summary
The existing defect detection system is inefficient and cannot efficiently detect and locate multiple types of defects on a large number of digital images. In particular, it has insufficient processing capabilities for general-purpose images.
A multi-type defect detection and positioning system for digital images is designed, including a detection receiving module, a defect detection module, a defect positioning module and a defect output module. Through image feature extraction, style analysis and fine positioning technology, defects can be quickly screened out. Picture and identify defective areas.
It improves the detection efficiency of defective images, avoids misjudgments due to image characteristics, and can accurately locate defective areas from a large number of images with less calculation.
Smart Images

Figure CN118411416B
Abstract
Description
Technical Field
[0001] The invention relates to the field of electrical digital data processing, and in particular to a multi-type defect detection and positioning system for digital images. Background Art
[0002] In some work situations, a large number of digital images need to be screened to find qualified images. The common method is to manually screen or use the system to analyze the images one by one. This method is inefficient and will take a lot of time when the number of images is too large. Therefore, a more efficient image defect detection system is needed to help better screen images.
[0003] The foregoing discussion of the background art is intended only to facilitate an understanding of the present invention. This discussion does not acknowledge or admit that any of the material referred to is part of the common general knowledge.
[0004] Now many defect detection systems have been developed. After a lot of searching and reference, it is found that the existing defect detection systems are such as the system disclosed in the publication number CN116342495B. These system methods generally include: obtaining the surface grayscale image of the cloth to be detected, segmenting the surface grayscale image; obtaining the grayscale value sequence set in each preset direction in the preset direction set of the target sub-region; determining the grayscale change abnormality index corresponding to the grayscale value sequence; determining the neighborhood difference index corresponding to the first grayscale value sequence in two adjacent grayscale value sequences; determining the grayscale continuity index of the target sub-region in the preset direction; determining the abnormal direction corresponding to the target sub-region; analyzing and processing the abnormality degree of the target sub-region; and performing loose warp defect detection on the cloth to be detected. However, this system is used to detect specific defects of specific images, and analyzes and processes single images. It is not suitable for defect detection of a large number of general pictures, and the efficiency is low. Summary of the invention
[0005] The purpose of the present invention is to propose a multi-type defect detection and positioning system for digital images in response to the existing deficiencies.
[0006] The present invention adopts the following technical solution:
[0007] A multi-type defect detection and positioning system for digital images, comprising a detection receiving module, a defect detection module, a defect positioning module and a defect output module;
[0008] The detection receiving module is used to receive the image information to be detected and unify the format, the defect detection module is used to detect whether there are defects in the image, the defect positioning module is used to locate the specific defect position of the image with defects, and the defect output module is used to display the defect content of the image;
[0009] The detection receiving module includes an image receiving unit and a format standardization unit, wherein the image receiving unit is used to receive an image to be detected, and the format standardization unit is used to convert the received image into the same image format;
[0010] The defect detection module includes a defect information storage unit, an image feature extraction unit and a defect comparison analysis unit. The defect information storage unit is used to store basic information of various defect types. The image feature extraction unit is used to extract feature data of the image to be tested. The defect comparison analysis unit is used to compare and analyze the feature data with the basic information to screen out images with defects.
[0011] The defect location module includes a defect image cache unit, a region segmentation unit and a fine location unit. The defect image cache unit is used to receive the screened defective image, the region segmentation unit is used to segment the image into multiple sub-regions, and the fine location unit analyzes and locates the sub-regions based on the defect type to obtain the specific coordinates of the defect;
[0012] The defect output module includes a defect capture unit, a defect storage unit and a defect display unit. The defect capture unit captures the defect area according to the defect coordinates. The defect storage unit is used to save the defect image, defect area and defect type. The defect display unit is used to display the defect content.
[0013] Furthermore, the image feature extraction unit includes a feature item information annotation register, a feature item execution processor and a feature data memory, wherein the feature item information annotation register is used to store the calculation method and calculation parameters of each feature item, the feature item execution processor is used to calculate the feature item data of each image, and the feature data memory is used to store the feature item data of each image;
[0014] Further, the defect comparison and analysis unit includes a feature interception processor, a style analysis processor and a defect confirmation processor, wherein the feature interception processor intercepts corresponding elements from the feature vector according to the influence vector to form a target vector, the style analysis processor is used to analyze the target vectors of all images to determine the overall style vector of the image to be tested, and the defect confirmation processor is used to analyze and process the target vector, the comparison vector and the style vector to confirm the image with defects;
[0015] Furthermore, the style analysis processor calculates the overall style vector of the image to be tested according to the following formula: :
[0016] ;
[0017] Where n is the number of images to be tested, is the target vector of the i-th image;
[0018] The defect confirmation processor calculates the defect index P of the i-th image according to the following formula: i :
[0019] ;
[0020] Where m is the number of elements in the control vector, is the coordination coefficient, is the control vector;
[0021] The defect confirmation processor determines that an image with a defect index less than a defect threshold is a defective image;
[0022] Further, the fine positioning unit includes a positioning parameter selection processor, a block parsing processor and a positioning output processor, wherein the positioning parameter selection processor selects a corresponding parameter data packet according to the defect type of the image, the block parsing processor performs parsing processing on the image of each block area based on the parameter data packet, and the positioning output processor determines the area constituting the defect based on the parameter data packet and the parsing result and outputs the defect coordinates;
[0023] The positioning output processor calculates the index difference value of two adjacent square areas according to the following formula: :
[0024] ;
[0025] in, is the lateral lock parameter in the parameter data package, To lock the parameters in the parameter data package vertically, is the defect index value of the first square area, is the defect index value of the second square area, is the area coordinate of the first square area, The area coordinates of the second square area;
[0026] Each indicator difference value corresponds to a boundary line. The positioning output processor sorts the indicator difference values from large to small, and highlights the boundary lines in sequence. When the highlighted boundary lines form a closed area, the highlighting process is stopped. The closed area formed is the defect area, and the information of the closed area boundary line is sent to the defect output module.
[0027] The beneficial effects achieved by the present invention are:
[0028] This system first determines the images with defects from a large number of images through an analysis method with less computational effort, and then accurately analyzes the screened images to determine the defective areas, which can effectively improve the detection efficiency of defective images. In the process of screening defective images, the style vectors of all images are introduced to avoid misjudgment of defects due to image characteristics.
[0029] To further understand the features and technical contents of the present invention, please refer to the following detailed description and drawings of the present invention. However, the drawings provided are only for reference and description and are not intended to limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a schematic diagram of the overall structural framework of the present invention;
[0031] Figure 2 This is a schematic diagram of the defect detection module of the present invention;
[0032] Figure 3 This is a schematic diagram of the defect location module of the present invention;
[0033] Figure 4 It is a schematic diagram of the defect comparison and analysis unit of the present invention;
[0034] Figure 5 It is a schematic diagram of the fine positioning unit of the present invention. DETAILED DESCRIPTION
[0035] The following is an explanation of the embodiments of the present invention through specific embodiments. Those skilled in the art can understand the advantages and effects of the present invention from the contents disclosed in this specification. The present invention can be implemented or applied through other different specific embodiments, and the details in this specification can also be modified and changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. In addition, the drawings of the present invention are only simple schematic illustrations and are not depicted according to actual sizes. It is stated in advance. The following embodiments will further explain the relevant technical contents of the present invention in detail, but the disclosed contents are not intended to limit the scope of protection of the present invention.
[0036] Embodiment 1: This embodiment provides a multi-type defect detection and positioning system for digital images, combining Figure 1 , including a detection receiving module, a defect detection module, a defect location module and a defect output module;
[0037] The detection receiving module is used to receive the image information to be detected and unify the format, the defect detection module is used to detect whether there are defects in the image, the defect positioning module is used to locate the specific defect position of the image with defects, and the defect output module is used to display the defect content of the image;
[0038] The detection receiving module includes an image receiving unit and a format standardization unit, wherein the image receiving unit is used to receive an image to be detected, and the format standardization unit is used to convert the received image into the same image format;
[0039] The defect detection module includes a defect information storage unit, an image feature extraction unit and a defect comparison analysis unit. The defect information storage unit is used to store basic information of various defect types. The image feature extraction unit is used to extract feature data of the image to be tested. The defect comparison analysis unit is used to compare and analyze the feature data with the basic information to screen out images with defects.
[0040] The defect location module includes a defect image cache unit, a region segmentation unit and a fine location unit. The defect image cache unit is used to receive the screened defective image, the region segmentation unit is used to segment the image into multiple sub-regions, and the fine location unit analyzes and locates the sub-regions based on the defect type to obtain the specific coordinates of the defect;
[0041] The defect output module includes a defect capture unit, a defect storage unit and a defect display unit. The defect capture unit captures the defect area according to the defect coordinates. The defect storage unit is used to save the defect image, defect area and defect type. The defect display unit is used to display the defect content.
[0042] The image feature extraction unit includes a feature item information annotation register, a feature item execution processor and a feature data memory, wherein the feature item information annotation register is used to store the calculation method and calculation parameters of each feature item, the feature item execution processor is used to calculate the feature item data of each image, and the feature data memory is used to store the feature item data of each image;
[0043] The defect comparison and analysis unit includes a feature interception processor, a style analysis processor and a defect confirmation processor. The feature interception processor intercepts corresponding elements from the feature vector according to the influence vector to form a target vector. The style analysis processor is used to analyze the target vectors of all images to determine the overall style vector of the image to be tested. The defect confirmation processor is used to analyze and process the target vector, the comparison vector and the style vector to confirm the image with defects.
[0044] The style analysis processor calculates the style vector of the entire image to be tested according to the following formula: :
[0045] ;
[0046] Where n is the number of images to be tested, is the target vector of the i-th image;
[0047] The defect confirmation processor calculates the defect index P of the i-th image according to the following formula: i :
[0048] ;
[0049] Where m is the number of elements in the control vector, is the coordination coefficient, is the control vector;
[0050] The defect confirmation processor determines that an image with a defect index less than a defect threshold is a defective image;
[0051] The fine positioning unit includes a positioning parameter selection processor, a block parsing processor and a positioning output processor. The positioning parameter selection processor selects a corresponding parameter data packet according to the defect type of the image. The block parsing processor performs parsing processing on the image of each block area based on the parameter data packet. The positioning output processor determines the area constituting the defect based on the parameter data packet and the parsing result and outputs the defect coordinates.
[0052] The positioning output processor calculates the index difference value of two adjacent square areas according to the following formula: :
[0053] ;
[0054] in, is the lateral lock parameter in the parameter data package, To lock the parameters in the parameter data package vertically, is the defect index value of the first square area, is the defect index value of the second square area, is the area coordinate of the first square area, The area coordinates of the second square area;
[0055] Each indicator difference value corresponds to a boundary line. The positioning output processor sorts the indicator difference values from large to small, and highlights the boundary lines in sequence. When the highlighted boundary lines form a closed area, the highlighting process is stopped. The closed area formed is the defect area, and the information of the closed area boundary line is sent to the defect output module.
[0056] Embodiment 2: This embodiment includes all the contents of Embodiment 1, and provides a multi-type defect detection and positioning system for digital images, including a detection receiving module, a defect detection module, a defect positioning module and a defect output module;
[0057] The detection receiving module is used to receive the image information to be detected and unify the format, the defect detection module is used to detect whether there are defects in the image, the defect positioning module is used to locate the specific defect position of the image with defects, and the defect output module is used to display the defect content of the image;
[0058] The detection receiving module includes an image receiving unit and a format standardization unit, wherein the image receiving unit is used to receive an image to be detected, and the format standardization unit is used to convert the received image into the same image format;
[0059] Combination Figure 2 The defect detection module includes a defect information storage unit, an image feature extraction unit and a defect comparison analysis unit. The defect information storage unit is used to store basic information of various defect types. The image feature extraction unit is used to extract feature data of the image to be tested. The defect comparison analysis unit is used to compare and analyze the feature data with the basic information to screen out images with defects.
[0060] Combination Figure 3 The defect location module includes a defect image cache unit, a region segmentation unit and a fine positioning unit. The defect image cache unit is used to receive the screened image with defects. The region segmentation unit is used to segment the image into multiple sub-regions. The fine positioning unit analyzes and locates the sub-regions based on the defect type to obtain the specific coordinates of the defect.
[0061] The defect output module includes a defect capture unit, a defect storage unit and a defect display unit. The defect capture unit captures the defect area according to the defect coordinates. The defect storage unit is used to save the defect image, defect area and defect type. The defect display unit is used to display the defect content.
[0062] The image feature extraction unit includes a feature item information annotation register, a feature item execution processor and a feature data memory, wherein the feature item information annotation register is used to store the calculation method and calculation parameters of each feature item, the feature item execution processor is used to calculate the feature item data of each image, and the feature data memory is used to store the feature item data of each image;
[0063] The process of calculating the feature item data by the feature item execution processor comprises the following steps:
[0064] S1, obtain an image;
[0065] S2, obtaining annotation information of a feature item;
[0066] S3, obtaining statistical data from the image based on the annotation information;
[0067] S4, calculating and processing the statistical data based on the annotation information to obtain a feature value;
[0068] S5, repeating steps S2 to S4 to obtain feature values of all feature items, and saving them to the corresponding image numbers in the feature data storage;
[0069] The eigenvalues of all eigenvalues constitute the eigenvector of the image;
[0070] The basic information of the defect type includes the type number, the impact vector and the control vector. The type number is used to distinguish and identify the defect type. The number of elements in the impact vector is the same as the number of elements in the feature vector. The element value in the impact vector is 0 or 1. 1 indicates that the corresponding feature item will affect the defect of this type, and 0 indicates that the corresponding feature item does not affect the defect of this type. The number of elements in the control vector is the same as the number of elements with a value of 1 in the impact vector, which is used to indicate the basic proportional relationship of the corresponding feature items.
[0071] Combination Figure 4 The defect comparison and analysis unit includes a feature interception processor, a style analysis processor and a defect confirmation processor. The feature interception processor intercepts corresponding elements from the feature vector according to the influence vector to form a target vector. The style analysis processor is used to analyze the target vectors of all images to determine the overall style vector of the image to be tested. The defect confirmation processor is used to analyze and process the target vector, the comparison vector and the style vector to confirm the image with defects.
[0072] The style analysis processor calculates the style vector of the entire image to be tested according to the following formula: :
[0073] ;
[0074] Where n is the number of images to be tested, is the target vector of the i-th image;
[0075] The defect confirmation processor calculates the defect index P of the i-th image according to the following formula: i :
[0076] ;
[0077] Where m is the number of elements in the control vector, is the coordination coefficient, is the control vector;
[0078] The defect confirmation processor determines an image whose defect index is less than a defect threshold as a defect image;
[0079] The defect comparison and analysis unit packages defect images of the same defect type and sends them to the defect positioning module;
[0080] The region segmentation unit includes a specification setting processor, an image segmentation processor and a partition information register, wherein the specification setting processor is used to set segmentation parameters, the image segmentation processor divides the image into a plurality of square regions based on the segmentation parameters, and the partition information register is used to store image information and region coordinate information of each square region;
[0081] Combination Figure 5 The fine positioning unit includes a positioning parameter selection processor, a block parsing processor and a positioning output processor. The positioning parameter selection processor selects a corresponding parameter data packet according to the defect type of the image. The block parsing processor performs parsing processing on the image of each block area based on the parameter data packet. The positioning output processor determines the area constituting the defect based on the parameter data packet and the parsing result and outputs the defect coordinates.
[0082] The process of obtaining the defect index value of the block area by parsing the block parsing processor comprises the following steps:
[0083] S21, converting the block image into an analytical matrix according to the target parameter in the parameter data packet, wherein each element in the analytical matrix corresponds to an image information value of each pixel in the block image, the image information value including but not limited to gray value, brightness value, saturation value, etc., and the target parameter is used to determine which type of image information value to use;
[0084] S22, the block analysis processor calculates the defect index value V of the block area according to the following formula:
[0085] ;
[0086] Among them, A is the indicator matrix in the positioning parameters, and B is the analytical matrix;
[0087] The positioning output processor calculates the index difference value of two adjacent square areas according to the following formula: :
[0088] ;
[0089] in, is the lateral lock parameter in the parameter data package, To lock the parameters in the parameter data package vertically, is the defect index value of the first square area, is the defect index value of the second square area, is the area coordinate of the first square area, The area coordinates of the second square area;
[0090] Adjacent is divided into upper and lower adjacent and left and right adjacent. When it is upper and lower adjacent, x 1 With x 2 Same, when adjacent to each other, y 1 With y 2 same;
[0091] Each indicator difference value corresponds to a boundary line, and the positioning output processor sorts the indicator difference values from large to small, and highlights the boundary lines in sequence. When the highlighted boundary lines form a closed area, the highlighting process is stopped, and the closed area formed is the defect area, and the information of the closed area boundary line is sent to the defect output module;
[0092] The defect display unit includes a display framework processor and a content retrieval processor, wherein the display framework processor is used to process the user's interactive operation and determine the display item, and the content retrieval processor retrieves the corresponding display content according to the display item;
[0093] By default, the defect display unit displays the defect type existing in the image to be tested. After clicking the defect type, the defect display unit displays the specific image with the defect. After clicking the image, the defect display unit displays the defect area of the image.
[0094] The i appearing in the above text is an ordinal number used to indicate a sequence number.
[0095] The contents disclosed above are only preferred feasible embodiments of the present invention, and do not limit the protection scope of the present invention. Therefore, all equivalent technical changes made using the contents of the present invention specification and drawings are included in the protection scope of the present invention. In addition, the elements therein can be updated as technology develops.
Claims
1. A multi-type defect detection and positioning system for digital images, It is characterized in that It includes a detection receiving module, a defect detection module, a defect location module and a defect output module; The detection receiving module is used to receive the image information to be detected and unify the format, the defect detection module is used to detect whether there are defects in the image, the defect positioning module is used to locate the specific defect position of the image with defects, and the defect output module is used to display the defect content of the image; The detection receiving module includes an image receiving unit and a format standardization unit, wherein the image receiving unit is used to receive an image to be detected, and the format standardization unit is used to convert the received image into the same image format; The defect detection module includes a defect information storage unit, an image feature extraction unit and a defect comparison analysis unit. The defect information storage unit is used to store basic information of various defect types. The image feature extraction unit is used to extract feature data of the image to be tested. The defect comparison analysis unit is used to compare and analyze the feature data with the basic information to screen out images with defects. The defect location module includes a defect image cache unit, a region segmentation unit and a fine location unit. The defect image cache unit is used to receive the screened defective image, the region segmentation unit is used to segment the image into multiple sub-regions, and the fine location unit analyzes and locates the sub-regions based on the defect type to obtain the specific coordinates of the defect; The defect output module includes a defect capture unit, a defect storage unit and a defect display unit. The defect capture unit captures the defect area according to the defect coordinates. The defect storage unit is used to save the defect image, defect area and defect type. The defect display unit is used to display the defect content. The defect comparison and analysis unit includes a feature interception processor, a style analysis processor and a defect confirmation processor. The feature interception processor intercepts corresponding elements from the feature vector according to the influence vector to form a target vector. The style analysis processor is used to analyze the target vectors of all images to determine the overall style vector of the image to be tested. The defect confirmation processor is used to analyze and process the target vector, the comparison vector and the style vector to confirm the image with defects. The style analysis processor calculates the style vector of the entire image to be tested according to the following formula: : ; Where n is the number of images to be tested, is the target vector of the i-th image; The defect confirmation processor calculates the defect index P of the i-th image according to the following formula: i : ; Where m is the number of elements in the control vector, is the coordination coefficient, is the control vector; The defect confirmation processor determines an image whose defect index is less than a defect threshold as a defect image; The fine positioning unit includes a positioning parameter selection processor, a block parsing processor and a positioning output processor. The positioning parameter selection processor selects a corresponding parameter data packet according to the defect type of the image. The block parsing processor performs parsing processing on the image of each block area based on the parameter data packet. The positioning output processor determines the area constituting the defect based on the parameter data packet and the parsing result and outputs the defect coordinates. The positioning output processor calculates the index difference value of two adjacent square areas according to the following formula: : ; in, is the lateral lock parameter in the parameter data package, To lock the parameters in the parameter data package vertically, is the defect index value of the first square area, is the defect index value of the second square area, is the area coordinate of the first square area, The area coordinates of the second square area; Each indicator difference value corresponds to a boundary line. The positioning output processor sorts the indicator difference values from large to small, and highlights the boundary lines in sequence. When the highlighted boundary lines form a closed area, the highlighting process is stopped. The closed area formed is the defect area, and the information of the closed area boundary line is sent to the defect output module.
2. A digital image multi-type defect detection and positioning system as claimed in claim 1, It is characterized in that The image feature extraction unit includes a feature item information annotation register, a feature item execution processor and a feature data memory. The feature item information annotation register is used to save the calculation method and calculation parameters of each feature item. The feature item execution processor is used to calculate the feature item data of each image. The feature data memory is used to save the feature item data of each image.
Citation Information
Patent Citations
Image Processing-Based Fabric Defect Detection Method
CN116342495B
IC wafer surface defect detection method
CN108648168A
Real-time 3D printing concrete defect detection system based on image recognition
CN117381937A
PCBA circuit board processing defect detection and analysis system based on image recognition
CN117571743A
Automated defect classification and detection
US20230343078A1
