CN116188475A - Intelligent control method, system and medium for automatic optical detection of appearance defects - Google Patents
Intelligent control method, system and medium for automatic optical detection of appearance defects Download PDFInfo
- Publication number
- CN116188475A CN116188475A CN202310494369.1A CN202310494369A CN116188475A CN 116188475 A CN116188475 A CN 116188475A CN 202310494369 A CN202310494369 A CN 202310494369A CN 116188475 A CN116188475 A CN 116188475A
- Authority
- CN
- China
- Prior art keywords
- defect
- information
- defects
- detected
- features
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000007547 defect Effects 0.000 title claims abstract description 493
- 238000000034 method Methods 0.000 title claims abstract description 124
- 238000001514 detection method Methods 0.000 title claims abstract description 65
- 230000003287 optical effect Effects 0.000 title claims abstract description 41
- 230000004927 fusion Effects 0.000 claims abstract description 81
- 238000004519 manufacturing process Methods 0.000 claims abstract description 22
- 238000003709 image segmentation Methods 0.000 claims abstract description 14
- 238000007781 pre-processing Methods 0.000 claims abstract description 8
- 238000012545 processing Methods 0.000 claims description 63
- 238000012549 training Methods 0.000 claims description 24
- 230000002159 abnormal effect Effects 0.000 claims description 23
- 230000006870 function Effects 0.000 claims description 22
- 238000003860 storage Methods 0.000 claims description 11
- 239000003086 colorant Substances 0.000 claims description 10
- 230000005856 abnormality Effects 0.000 claims description 8
- 238000009826 distribution Methods 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 7
- 238000007621 cluster analysis Methods 0.000 claims description 7
- 238000013135 deep learning Methods 0.000 claims description 6
- 238000012935 Averaging Methods 0.000 claims description 4
- 238000007689 inspection Methods 0.000 claims 1
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000004422 calculation algorithm Methods 0.000 description 5
- 238000010801 machine learning Methods 0.000 description 3
- 238000004380 ashing Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 229910052736 halogen Inorganic materials 0.000 description 2
- 150000002367 halogens Chemical class 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000010606 normalization Methods 0.000 description 2
- 230000002950 deficient Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 229940079593 drug Drugs 0.000 description 1
- 239000003814 drug Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 235000013305 food Nutrition 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/8851—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
- G06T7/001—Industrial image inspection using an image reference approach
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/30—Determination of transform parameters for the alignment of images, i.e. image registration
- G06T7/33—Determination of transform parameters for the alignment of images, i.e. image registration using feature-based methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/25—Determination of region of interest [ROI] or a volume of interest [VOI]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/26—Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/54—Extraction of image or video features relating to texture
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/56—Extraction of image or video features relating to colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/74—Image or video pattern matching; Proximity measures in feature spaces
- G06V10/75—Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
- G06V10/757—Matching configurations of points or features
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/74—Image or video pattern matching; Proximity measures in feature spaces
- G06V10/761—Proximity, similarity or dissimilarity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/762—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using clustering, e.g. of similar faces in social networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/764—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/77—Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
- G06V10/80—Fusion, i.e. combining data from various sources at the sensor level, preprocessing level, feature extraction level or classification level
- G06V10/806—Fusion, i.e. combining data from various sources at the sensor level, preprocessing level, feature extraction level or classification level of extracted features
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/82—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/8851—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
- G01N2021/8883—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges involving the calculation of gauges, generating models
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/8851—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
- G01N2021/8887—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges based on image processing techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Medical Informatics (AREA)
- Databases & Information Systems (AREA)
- Computing Systems (AREA)
- Artificial Intelligence (AREA)
- Chemical & Material Sciences (AREA)
- Quality & Reliability (AREA)
- Pathology (AREA)
- Immunology (AREA)
- Biochemistry (AREA)
- Analytical Chemistry (AREA)
- Life Sciences & Earth Sciences (AREA)
- Signal Processing (AREA)
- Image Analysis (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Abstract
The invention discloses an intelligent control method, a system and a medium for automatic optical detection of appearance defects, which comprise the following steps: acquiring image information of an object to be detected, preprocessing the image information, and generating an interested region of the object to be detected; searching a corresponding image template according to the characteristic information of the object to be detected, registering with the region of interest of the object to be detected, and carrying out partial image segmentation according to the registration result to obtain a defect region; constructing a defect identification model, extracting multi-dimensional characteristics of a defect area, and carrying out characteristic fusion on the multi-dimensional characteristics to obtain multi-dimensional fusion characteristics; performing defect identification by utilizing multi-dimensional fusion characteristics, and outputting the types of defects and the technological processes corresponding to the defects; and generating production early warning corresponding to the process flow. The invention improves the detection precision and detection efficiency of the appearance defects by learning the multidimensional characteristics of the defects, and is beneficial to improving the yield of products.
Description
Technical Field
The invention relates to the technical field of appearance defect detection, in particular to an intelligent control method, system and medium for automatic optical detection of appearance defects.
Background
Appearance defect detection refers to quality detection of appearance of an article, and comprises detection of defects, flaws, scratches, pits, cracks and other problems. Appearance defects have great influence on the quality and the attractiveness of the product, so that quality problems and customer complaints caused by the product defects can be effectively avoided by carrying out appearance defect detection. Appearance defect detection is typically achieved by computer vision techniques, using image processing algorithms and machine learning algorithms. For example, segmentation and marking of defects may be performed using image processing techniques, while automatic classification and identification may be performed using machine learning algorithms. Appearance defect detection is widely applied to industrial production, such as the fields of electronic products, automobile parts, foods, medicines and the like.
Aiming at the problems of low detection efficiency, poor consistency, high labor cost and the like of the artificial appearance defects in the current product production, the development of the industry is greatly limited, and the detection equipment adopted by a few manufacturers is difficult to meet the requirements of actual production due to low detection efficiency. Aiming at the automatic optical detection of the appearance defects of the object, the defects in the image are detected and classified based on a machine vision image processing algorithm and a machine learning algorithm, and the appearance defects of the object are identified. The robustness of the feature information extracted by the traditional image processing method is poor, and the detection effect is affected, so that how to identify the defects with high precision through deep learning in the optical detection of the appearance defects is an urgent problem which cannot be solved in real-time detection.
Disclosure of Invention
In order to solve the technical problems, the invention provides an intelligent control method, an intelligent control system and an intelligent control medium for automatic optical detection of appearance defects.
The first aspect of the present invention provides an intelligent control method for automatic optical detection of appearance defects, comprising:
acquiring image information of an object to be detected, preprocessing the image information of the object to be detected, and generating an interested region of the object to be detected;
searching a corresponding image template according to the characteristic information of the object to be detected, registering the image template with an interested region of the object to be detected, and carrying out partial image segmentation according to registration results to obtain a defect region;
constructing a defect identification model, extracting multi-dimensional characteristics of a defect area, and carrying out characteristic fusion on the multi-dimensional characteristics to obtain multi-dimensional fusion characteristics;
training the defect identification model through a defect sample with label information, carrying out defect identification by utilizing the multi-dimensional fusion characteristics, and outputting the types of defects and the technological processes corresponding to the defects;
and analyzing the abnormal information of the production process flow according to the types of the defects and the process flow corresponding to the defects, and generating related early warning information.
In the scheme, a corresponding image template is searched according to characteristic information of an object to be detected, the image template is registered with an interested region of the object to be detected, partial image segmentation is carried out according to a registration result, and a defect region is obtained, specifically:
Extracting processing information of an object to be detected, and searching a multi-angle image template of the object to be detected in a related database according to the processing information;
acquiring shape features in images of different angles from a multi-angle graph template of an object to be detected, simplifying the repeated shape features, determining feature points according to the shape features, and matching the feature points according to self-adaptive traversal;
and generating a matching point pair through a matching result, determining whether matching is successful or not according to proportion information of the matching point pair to all the characteristic points, comparing pixel points after the matching is successful, acquiring deviation pixel points, performing image segmentation according to a preset image block size, and acquiring a defect area.
In the scheme, a defect identification model is constructed, multi-dimensional characteristics of a defect area are extracted, and the multi-dimensional characteristics are subjected to characteristic fusion to obtain multi-dimensional fusion characteristics, specifically:
extracting position features, colors and texture features of the defect region on an object to be detected, and performing similarity calculation within a preset range according to the position features, the colors and the shape features to obtain a similar region with the same size as the defect region;
calculating information entropy of the defect area and the similar area, and taking the information entropy deviation of the defect area and the similar area as the characteristic of the defect area;
Inputting the defect area into a YOLOv5 network, extracting features with different scales by using a feature pyramid, performing feature fusion to generate multi-scale fusion features, and performing multi-core learning on the multi-scale fusion features of the defect area, the color, the texture features and the defect area information entropy;
and determining kernel functions of various features on defect identification by using a voting method, determining the weights of the kernel functions according to the defect identification rate of the single feature, performing kernel fusion on the kernel functions by using linear combination, and outputting multi-dimensional fusion features of the defect region.
In this scheme, through the defect sample that has label information to carry out training to defect identification model, utilize the multidimension degree fusion characteristic to carry out defect identification, the kind of output defect and the technological process that the defect corresponds specifically do:
obtaining a defect sample according to historical defect detection data of an object to be detected, retrieving a historical defect detection result to obtain a defect category of the defect sample, and setting a category label through the defect category to obtain an initial defect sample set;
extracting a production process flow of an object to be detected, dividing the production process flow according to corresponding processing equipment information, constructing a sub-flow sequence, and acquiring configuration abnormality information and historical fault information of the processing equipment;
Matching the time stamp of the configuration abnormal information and the time stamp of the historical fault information with the time stamp of the defect sample, and setting a fault label of the defect sample according to the configuration abnormal information and the historical fault information of the processing equipment if the time deviation is smaller than a preset time threshold;
performing cluster analysis on the defect sample, establishing a corresponding relation between a clustering result and each sub-process in the sub-process sequence, and obtaining an updated defect sample set;
constructing a defect identification model based on deep learning, dividing the defect identification model into a defect classification branch and a defect tracing branch, taking YOLOv5 as a backbone network in the defect classification branch, and carrying out multidimensional feature fusion by a multi-core learning method;
training defect classification branches by using the initial defect sample set, and identifying and classifying defects through training the defect classification branches after reaching standards to obtain defect classification results;
and constructing defect tracing branches through SVM classifiers, constructing an equivalent number of SVM classifiers according to the number of subsequences, training by using the updated defect sample set, inputting defect classification results into the defect tracing branches, and acquiring a sub-flow which leads to defect generation.
In the scheme, the defect sample is subjected to cluster analysis, a corresponding relation between a clustering result and each sub-flow in the sub-flow sequence is established, and an updated defect sample set is obtained, specifically:
Obtaining a fault label of a defect sample, wherein the defect sample has at least one fault label, and the equipment of each sub-process and corresponding marked abnormal information are used as main component directions;
projecting in the main component direction according to configuration abnormality information and historical fault information in the fault label, obtaining characteristic scattered point distribution, obtaining a marked defect sample in each sub-process according to the characteristic scattered point distribution, and taking the marked defect sample as an initial clustering center;
obtaining Euclidean distance from each defect sample in an initial defect sample set to an initial clustering center, distributing the defect sample to the initial clustering center closest to the initial clustering center, and generating a clustering result in each initial clustering center;
continuously updating the clustering center and the clustering result through iterative computation, averaging the defect samples in the clustering result to obtain a new clustering center, and comparing the distance between the defect sample and the belonging clustering center with the distance between the defect sample and the clustering center in the previous time in each iteration;
if the distance between the defect sample and the other cluster centers is smaller than or equal to the distance, the defect sample is reserved in the cluster center, otherwise, the distance between the defect sample and the other cluster centers is calculated, and the defect sample belongs to the cluster center closest to the cluster center;
When the iteration number threshold is met, the clustering result of the last iteration is selected as a final clustering result, and a corresponding relation between the clustering result and each sub-process in the sub-process sequence is established according to the class cluster in the final clustering result, so that an updated defect sample set is obtained.
In the scheme, the abnormal information of the production process flow is analyzed according to the types of the defects and the process flow corresponding to the defects, and relevant early warning information is generated, specifically:
obtaining the type information of the defects and the sub-processes corresponding to the defects, carrying out independent marking on the sub-processes, retrieving standard processing parameters of an object to be detected, and extracting standard processing parameters of the marked sub-processes from the standard processing parameters;
analyzing the parameter deviation of the operation parameters of the processing equipment in the sub-process and the standard processing parameters of the marking sub-process, and generating processing early warning information when the parameter deviation is larger than a preset deviation threshold value, and displaying the early warning information corresponding to the defects in a preset mode;
and generating parameter compensation through parameter deviation, correcting the processing equipment, and optimizing standard processing parameters according to the parameter compensation and defect conditions of the process flow.
The second aspect of the present invention also provides an intelligent control system for automatic optical detection of appearance defects, the system comprising: the intelligent control method for the automatic optical detection of the appearance defects comprises a memory and a processor, wherein the memory comprises an intelligent control method program for the automatic optical detection of the appearance defects, and the intelligent control method program for the automatic optical detection of the appearance defects realizes the following steps when being executed by the processor:
Acquiring image information of an object to be detected, preprocessing the image information of the object to be detected, and generating an interested region of the object to be detected;
searching a corresponding image template according to the characteristic information of the object to be detected, registering the image template with an interested region of the object to be detected, and carrying out partial image segmentation according to registration results to obtain a defect region;
constructing a defect identification model, extracting multi-dimensional characteristics of a defect area, and carrying out characteristic fusion on the multi-dimensional characteristics to obtain multi-dimensional fusion characteristics;
training the defect identification model through a defect sample with label information, carrying out defect identification by utilizing the multi-dimensional fusion characteristics, and outputting the types of defects and the technological processes corresponding to the defects;
and analyzing the abnormal information of the production process flow according to the types of the defects and the process flow corresponding to the defects, and generating related early warning information.
The third aspect of the present invention also provides a computer-readable storage medium, in which a smart control method program for automatic optical detection of an appearance defect is included, which when executed by a processor, implements the steps of a smart control method for automatic optical detection of an appearance defect as described in any one of the above.
The invention discloses an intelligent control method, a system and a medium for automatic optical detection of appearance defects, which comprise the following steps: acquiring image information of an object to be detected, preprocessing the image information, and generating an interested region of the object to be detected; searching a corresponding image template according to the characteristic information of the object to be detected, registering with the region of interest of the object to be detected, and carrying out partial image segmentation according to the registration result to obtain a defect region; extracting multi-dimensional characteristics of the defect area, and carrying out characteristic fusion on the multi-dimensional characteristics to obtain multi-dimensional fusion characteristics; constructing a defect identification model, carrying out defect identification by utilizing multi-dimensional fusion characteristics, and outputting the types of defects and the corresponding technological processes of the defects; and generating production early warning corresponding to the process flow. The invention improves the detection precision and detection efficiency of the appearance defects by learning the multidimensional characteristics of the defects, and is beneficial to improving the yield of products.
Drawings
FIG. 1 is a flow chart of an intelligent control method for automatic optical detection of appearance defects according to the present invention;
FIG. 2 is a flow chart of a method of acquiring multi-dimensional characteristics of a defect region in accordance with the present invention;
FIG. 3 illustrates a flow chart of a method of defect identification using multi-dimensional fusion features in accordance with the present invention;
FIG. 4 shows a block diagram of an intelligent control system for automatic optical detection of defects in appearance in accordance with the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those described herein, and therefore the scope of the present invention is not limited to the specific embodiments disclosed below.
FIG. 1 is a flow chart of an intelligent control method for automatic optical detection of appearance defects according to the present invention.
As shown in fig. 1, a first aspect of the present invention provides an intelligent control method for automatic optical detection of appearance defects, which includes:
s102, obtaining image information of an object to be detected, preprocessing the image information of the object to be detected, and generating an interested region of the object to be detected;
s104, searching a corresponding image template according to the characteristic information of the object to be detected, registering the image template with the region of interest of the object to be detected, and carrying out partial image segmentation according to the registration result to obtain a defect region;
S106, constructing a defect identification model, extracting multi-dimensional characteristics of a defect area, and carrying out characteristic fusion on the multi-dimensional characteristics to obtain multi-dimensional fusion characteristics;
s108, training the defect identification model through a defect sample with label information, carrying out defect identification by utilizing the multi-dimensional fusion characteristics, and outputting the types of defects and the process flows corresponding to the defects;
s110, analyzing abnormal information of the production process flow according to the types of the defects and the process flow corresponding to the defects, and generating related early warning information.
It should be noted that, determining a lighting scheme according to the shape and size information of the object to be measured, lighting through a preset light source, and in the field of machine vision, the types of the commonly used light sources include: the method comprises the steps of debugging and determining shooting parameters of a camera array by using a halogen light source, a fluorescent light source, an infrared light source, an LED light source and the like, obtaining image information of an object to be detected by using the camera array, and carrying out pretreatment such as filtering, denoising, ashing, background removal and the like on the image information to obtain image information only comprising the object to be detected as an interested area;
extracting processing information of an object to be detected, including processing materials, processing patterns and the like, and searching a multi-angle image template of the object to be detected in a related database according to the processing information; acquiring shape features in images of different angles from a multi-angle graph template of an object to be detected, simplifying repeated shape features, determining feature points according to the shape features, selecting a region of interest, and matching the feature points according to self-adaptive traversal; and generating a matching point pair through a matching result, determining whether matching is successful or not according to proportion information of the matching point pair to all the characteristic points, comparing pixel points after the matching is successful, acquiring deviation pixel points, performing image segmentation according to a preset image block size, and acquiring a defect area.
FIG. 2 is a flow chart of a method of the present invention for obtaining multi-dimensional characteristics of a defect area.
According to the embodiment of the invention, a defect identification model is constructed, the multidimensional features of a defect area are extracted, and feature fusion is carried out on the multidimensional features to obtain multidimensional fusion features, specifically:
s202, extracting position features, colors and texture features of a defect region on an object to be detected, and carrying out similarity calculation within a preset range according to the position features, the colors and the shape features to obtain a similar region with the same size as the defect region;
s204, calculating information entropy of the defect area and the similar area, and taking the information entropy deviation of the defect area and the similar area as the characteristic of the defect area;
s206, inputting the defect area into a YOLOv5 network, extracting features with different scales by using a feature pyramid, performing feature fusion to generate multi-scale fusion features, and performing multi-core learning on the multi-scale fusion features of the defect area, the color, the texture features and the defect area information entropy;
and S208, determining kernel functions of various features on defect recognition by using a voting method, determining the weights of the kernel functions according to the defect recognition rate of the single feature, performing kernel fusion on the kernel functions by using linear combination, and outputting multi-dimensional fusion features of the defect region.
It should be noted that, the richness of the features is represented by the information entropy of each region of the image, whether defects exist or not can be represented according to the difference of the information entropy, the image information of the defect region is input into a YOLOv5 network, the features are extracted by convolution calculation, the extracted features are input into a feature pyramid structure in the YOLOv5 network, multi-scale semantic features are obtained from top to bottom in the feature map, the features of different scales are subjected to feature fusion to generate multi-scale fusion features, and the multi-scale fusion features, the information entropy deviation features and the color texture features are respectively used as single features for defect identification. Selecting an optimal kernel function for a single feature by utilizing a voting method in multi-kernel learning; the method comprises the steps of obtaining a related image data set through a big data means, carrying out gray level conversion and scale normalization on an image, respectively extracting single features in the image data set, carrying out defect recognition based on the single features according to a preset model, marking according to defect recognition results, determining the recognition result of the single features, determining the recognition rate of the single features, obtaining the weight value of the single features by the ratio of the recognition rate of the single features to the sum of the recognition rates of all the features, training the weight value serving as the weight of a kernel function, carrying out kernel fusion on the kernel function in a linear combination mode, and outputting multi-dimensional fusion features of a defect region.
FIG. 3 illustrates a flow chart of a method of defect identification using multi-dimensional fusion features in accordance with the present invention.
According to the embodiment of the invention, the defect identification model is trained through the defect sample with the label information, the multi-dimensional fusion characteristic is utilized for defect identification, and the types of defects and the process flows corresponding to the defects are output, specifically:
s302, obtaining a defect sample according to historical defect detection data of an object to be detected, retrieving a historical defect detection result to obtain a defect type of the defect sample, and setting a type label through the defect type to obtain an initial defect sample set;
s304, extracting a production process flow of an object to be detected, dividing the production process flow according to corresponding processing equipment information, constructing a sub-flow sequence, and acquiring configuration abnormal information and historical fault information of the processing equipment;
s306, matching the time stamp of the configuration abnormal information and the time stamp of the historical fault information with the time stamp of the defect sample, and setting a fault label of the defect sample according to the configuration abnormal information and the historical fault information of the processing equipment if the time deviation is smaller than a preset time threshold;
s308, carrying out cluster analysis on the defect sample, establishing a corresponding relation between a clustering result and each sub-process in the sub-process sequence, and obtaining an updated defect sample set;
S310, constructing a defect recognition model based on deep learning, dividing the defect recognition model into a defect classification branch and a defect tracing branch, taking YOLOv5 as a backbone network in the defect classification branch, and carrying out multidimensional feature fusion by a multi-core learning method;
s312, training defect classification branches by using the initial defect sample set, and identifying and classifying defects through training the defect classification branches after reaching standards to obtain defect classification results;
s314, constructing defect tracing branches through SVM classifiers, constructing an equivalent number of SVM classifiers according to the number of subsequences, training by using the updated defect sample set, inputting defect classification results into the defect tracing branches, and obtaining a sub-flow which leads to defect generation.
It should be noted that, the defect recognition model is divided into a defect classification branch and a defect tracing branch, the target detection loss of defect recognition classification is divided into a classification loss and a regression loss by using YOLOv5 as a main network in the defect classification branch, and the aspect ratio of the anchor frame is considered by using CIoU loss as a loss, so that the regression speed and the accuracy of the anchor frame are effectively improved.
The fault label of a defect sample is obtained, wherein the defect sample has at least one fault label, and equipment of each sub-flow and corresponding marked abnormal information are taken as main component directions; projecting in the main component direction according to configuration abnormality information and historical fault information in the fault label, obtaining characteristic scattered point distribution, obtaining a marked defect sample in each sub-process according to the characteristic scattered point distribution, and taking the marked defect sample as an initial clustering center; obtaining Euclidean distance from each defect sample in an initial defect sample set to an initial clustering center, distributing the defect sample to the initial clustering center closest to the initial clustering center, and generating a clustering result in each initial clustering center; continuously updating the clustering center and the clustering result through iterative computation, averaging the defect samples in the clustering result to obtain a new clustering center, and comparing the distance between the defect sample and the belonging clustering center with the distance between the defect sample and the clustering center in the previous time in each iteration; if the distance between the defect sample and the other cluster centers is smaller than or equal to the distance, the defect sample is reserved in the cluster center, otherwise, the distance between the defect sample and the other cluster centers is calculated, and the defect sample belongs to the cluster center closest to the cluster center; when the iteration number threshold is met, the clustering result of the last iteration is selected as a final clustering result, and a corresponding relation between the clustering result and each sub-process in the sub-process sequence is established according to the class cluster in the final clustering result, so that an updated defect sample set is obtained.
It should be noted that, the kind information of the defect and the sub-process corresponding to the defect are obtained, the sub-process is marked separately, the standard processing parameters of the object to be measured are searched, and the standard processing parameters of the marked sub-process are extracted from the standard processing parameters; analyzing the parameter deviation of the operation parameters of the processing equipment in the sub-process and the standard processing parameters of the marking sub-process, and generating processing early warning information when the parameter deviation is larger than a preset deviation threshold value, and displaying the early warning information corresponding to the defects in a preset mode; and generating parameter compensation through parameter deviation, correcting the processing equipment, and optimizing standard processing parameters according to the parameter compensation and defect conditions of the process flow.
According to the embodiment of the invention, the defective objects are classified secondarily according to the defect types, specifically:
obtaining the defect type and defect size information of the object with the defect, and setting a defect label of the object with the defect;
dividing the defects into repairable defects and unrepairable defects according to defect types, and setting defect size thresholds of the defect types in the repairable defects;
searching in the defect labels according to the repairable defects, temporarily suspending the defect labels which accord with the defect types corresponding to the repairable defects, extracting the defect size information in the suspended defect labels, and comparing the defect size threshold values;
If the defect label is smaller than or equal to the defect label, performing defect repair on the object with the defect, otherwise, classifying the defect label as an unrepairable defect;
in the repairing process, a similar area with the same size as the defect area is obtained, and the characteristic information of the similar area is used as a repairing reference of the defect area.
FIG. 4 shows a block diagram of an intelligent control system for automatic optical detection of defects in appearance in accordance with the present invention.
The second aspect of the present invention also provides an intelligent control system 4 for automatic optical detection of appearance defects, the system comprising: a memory 41, and a processor 42, wherein the memory includes a smart control method program for automatic optical detection of appearance defects, and the smart control method program for automatic optical detection of appearance defects realizes the following steps when executed by the processor:
acquiring image information of an object to be detected, preprocessing the image information of the object to be detected, and generating an interested region of the object to be detected;
searching a corresponding image template according to the characteristic information of the object to be detected, registering the image template with an interested region of the object to be detected, and carrying out partial image segmentation according to registration results to obtain a defect region;
constructing a defect identification model, extracting multi-dimensional characteristics of a defect area, and carrying out characteristic fusion on the multi-dimensional characteristics to obtain multi-dimensional fusion characteristics;
Training the defect identification model through a defect sample with label information, carrying out defect identification by utilizing the multi-dimensional fusion characteristics, and outputting the types of defects and the technological processes corresponding to the defects;
and analyzing the abnormal information of the production process flow according to the types of the defects and the process flow corresponding to the defects, and generating related early warning information.
It should be noted that, determining a lighting scheme according to the shape and size information of the object to be measured, lighting through a preset light source, and in the field of machine vision, the types of the commonly used light sources include: the method comprises the steps of debugging and determining shooting parameters of a camera array by using a halogen light source, a fluorescent light source, an infrared light source, an LED light source and the like, obtaining image information of an object to be detected by using the camera array, and carrying out pretreatment such as filtering, denoising, ashing, background removal and the like on the image information to obtain image information only comprising the object to be detected as an interested area;
extracting processing information of an object to be detected, including processing materials, processing patterns and the like, and searching a multi-angle image template of the object to be detected in a related database according to the processing information; acquiring shape features in images of different angles from a multi-angle graph template of an object to be detected, simplifying repeated shape features, determining feature points according to the shape features, selecting a region of interest, and matching the feature points according to self-adaptive traversal; and generating a matching point pair through a matching result, determining whether matching is successful or not according to proportion information of the matching point pair to all the characteristic points, comparing pixel points after the matching is successful, acquiring deviation pixel points, performing image segmentation according to a preset image block size, and acquiring a defect area.
According to the embodiment of the invention, a defect identification model is constructed, the multidimensional features of a defect area are extracted, and feature fusion is carried out on the multidimensional features to obtain multidimensional fusion features, specifically:
extracting position features, colors and texture features of the defect region on an object to be detected, and performing similarity calculation within a preset range according to the position features, the colors and the shape features to obtain a similar region with the same size as the defect region;
calculating information entropy of the defect area and the similar area, and taking the information entropy deviation of the defect area and the similar area as the characteristic of the defect area;
inputting the defect area into a YOLOv5 network, extracting features with different scales by using a feature pyramid, performing feature fusion to generate multi-scale fusion features, and performing multi-core learning on the multi-scale fusion features of the defect area, the color, the texture features and the defect area information entropy;
and determining kernel functions of various features on defect identification by using a voting method, determining the weights of the kernel functions according to the defect identification rate of the single feature, performing kernel fusion on the kernel functions by using linear combination, and outputting multi-dimensional fusion features of the defect region.
It should be noted that, the richness of the features is represented by the information entropy of each region of the image, whether defects exist or not can be represented according to the difference of the information entropy, the image information of the defect region is input into a YOLOv5 network, the features are extracted by convolution calculation, the extracted features are input into a feature pyramid structure in the YOLOv5 network, multi-scale semantic features are obtained from top to bottom in the feature map, the features of different scales are subjected to feature fusion to generate multi-scale fusion features, and the multi-scale fusion features, the information entropy deviation features and the color texture features are respectively used as single features for defect identification. Selecting an optimal kernel function for a single feature by utilizing a voting method in multi-kernel learning; the method comprises the steps of obtaining a related image data set through a big data means, carrying out gray level conversion and scale normalization on an image, respectively extracting single features in the image data set, carrying out defect recognition based on the single features according to a preset model, marking according to defect recognition results, determining the recognition result of the single features, determining the recognition rate of the single features, obtaining the weight value of the single features by the ratio of the recognition rate of the single features to the sum of the recognition rates of all the features, training the weight value serving as the weight of a kernel function, carrying out kernel fusion on the kernel function in a linear combination mode, and outputting multi-dimensional fusion features of a defect region.
According to the embodiment of the invention, the defect identification model is trained through the defect sample with the label information, the multi-dimensional fusion characteristic is utilized for defect identification, and the types of defects and the process flows corresponding to the defects are output, specifically:
obtaining a defect sample according to historical defect detection data of an object to be detected, retrieving a historical defect detection result to obtain a defect category of the defect sample, and setting a category label through the defect category to obtain an initial defect sample set;
extracting a production process flow of an object to be detected, dividing the production process flow according to corresponding processing equipment information, constructing a sub-flow sequence, and acquiring configuration abnormality information and historical fault information of the processing equipment;
matching the time stamp of the configuration abnormal information and the time stamp of the historical fault information with the time stamp of the defect sample, and setting a fault label of the defect sample according to the configuration abnormal information and the historical fault information of the processing equipment if the time deviation is smaller than a preset time threshold;
performing cluster analysis on the defect sample, establishing a corresponding relation between a clustering result and each sub-process in the sub-process sequence, and obtaining an updated defect sample set;
constructing a defect identification model based on deep learning, dividing the defect identification model into a defect classification branch and a defect tracing branch, taking YOLOv5 as a backbone network in the defect classification branch, and carrying out multidimensional feature fusion by a multi-core learning method;
Training defect classification branches by using the initial defect sample set, and identifying and classifying defects through training the defect classification branches after reaching standards to obtain defect classification results;
and constructing defect tracing branches through SVM classifiers, constructing an equivalent number of SVM classifiers according to the number of subsequences, training by using the updated defect sample set, inputting defect classification results into the defect tracing branches, and acquiring a sub-flow which leads to defect generation.
It should be noted that, the defect recognition model is divided into a defect classification branch and a defect tracing branch, the target detection loss of defect recognition classification is divided into a classification loss and a regression loss by using YOLOv5 as a main network in the defect classification branch, and the aspect ratio of the anchor frame is considered by using CIoU loss as a loss, so that the regression speed and the accuracy of the anchor frame are effectively improved.
The fault label of a defect sample is obtained, wherein the defect sample has at least one fault label, and equipment of each sub-flow and corresponding marked abnormal information are taken as main component directions; projecting in the main component direction according to configuration abnormality information and historical fault information in the fault label, obtaining characteristic scattered point distribution, obtaining a marked defect sample in each sub-process according to the characteristic scattered point distribution, and taking the marked defect sample as an initial clustering center; obtaining Euclidean distance from each defect sample in an initial defect sample set to an initial clustering center, distributing the defect sample to the initial clustering center closest to the initial clustering center, and generating a clustering result in each initial clustering center; continuously updating the clustering center and the clustering result through iterative computation, averaging the defect samples in the clustering result to obtain a new clustering center, and comparing the distance between the defect sample and the belonging clustering center with the distance between the defect sample and the clustering center in the previous time in each iteration; if the distance between the defect sample and the other cluster centers is smaller than or equal to the distance, the defect sample is reserved in the cluster center, otherwise, the distance between the defect sample and the other cluster centers is calculated, and the defect sample belongs to the cluster center closest to the cluster center; when the iteration number threshold is met, the clustering result of the last iteration is selected as a final clustering result, and a corresponding relation between the clustering result and each sub-process in the sub-process sequence is established according to the class cluster in the final clustering result, so that an updated defect sample set is obtained.
It should be noted that, the kind information of the defect and the sub-process corresponding to the defect are obtained, the sub-process is marked separately, the standard processing parameters of the object to be measured are searched, and the standard processing parameters of the marked sub-process are extracted from the standard processing parameters; analyzing the parameter deviation of the operation parameters of the processing equipment in the sub-process and the standard processing parameters of the marking sub-process, and generating processing early warning information when the parameter deviation is larger than a preset deviation threshold value, and displaying the early warning information corresponding to the defects in a preset mode; and generating parameter compensation through parameter deviation, correcting the processing equipment, and optimizing standard processing parameters according to the parameter compensation and defect conditions of the process flow.
The third aspect of the present invention also provides a computer-readable storage medium, in which a smart control method program for automatic optical detection of an appearance defect is included, which when executed by a processor, implements the steps of a smart control method for automatic optical detection of an appearance defect as described in any one of the above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present invention may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. An intelligent control method for automatic optical detection of appearance defects is characterized by comprising the following steps:
acquiring image information of an object to be detected, preprocessing the image information of the object to be detected, and generating an interested region of the object to be detected;
searching a corresponding image template according to the characteristic information of the object to be detected, registering the image template with an interested region of the object to be detected, and carrying out partial image segmentation according to registration results to obtain a defect region;
constructing a defect identification model, extracting multi-dimensional characteristics of a defect area, and carrying out characteristic fusion on the multi-dimensional characteristics to obtain multi-dimensional fusion characteristics;
training the defect identification model through a defect sample with label information, carrying out defect identification by utilizing the multi-dimensional fusion characteristics, and outputting the types of defects and the technological processes corresponding to the defects;
and analyzing the abnormal information of the production process flow according to the types of the defects and the process flow corresponding to the defects, and generating related early warning information.
2. The intelligent control method for automatic optical detection of appearance defects according to claim 1, wherein the method is characterized in that the corresponding image template is retrieved according to the characteristic information of the object to be detected, the image template is registered with the region of interest of the object to be detected, and the local image segmentation is performed according to the registration result to obtain the defect region, specifically:
Extracting processing information of an object to be detected, and searching a multi-angle image template of the object to be detected in a related database according to the processing information;
acquiring shape features in images of different angles from a multi-angle graph template of an object to be detected, simplifying the repeated shape features, determining feature points according to the shape features, and matching the feature points according to self-adaptive traversal;
and generating a matching point pair through a matching result, determining whether matching is successful or not according to proportion information of the matching point pair to all the characteristic points, comparing pixel points after the matching is successful, acquiring deviation pixel points, performing image segmentation according to a preset image block size, and acquiring a defect area.
3. The intelligent control method for automatic optical detection of appearance defects according to claim 1, wherein a defect identification model is constructed, multi-dimensional characteristics of a defect area are extracted, and the multi-dimensional characteristics are subjected to characteristic fusion to obtain multi-dimensional fusion characteristics, specifically:
extracting position features, colors and texture features of the defect region on an object to be detected, and performing similarity calculation within a preset range according to the position features, the colors and the shape features to obtain a similar region with the same size as the defect region;
Calculating information entropy of the defect area and the similar area, and taking the information entropy deviation of the defect area and the similar area as the characteristic of the defect area;
inputting the defect area into a YOLOv5 network, extracting features with different scales by using a feature pyramid, performing feature fusion to generate multi-scale fusion features, and performing multi-core learning on the multi-scale fusion features of the defect area, the color, the texture features and the defect area information entropy;
and determining kernel functions of various features on defect identification by using a voting method, determining the weights of the kernel functions according to the defect identification rate of the single feature, performing kernel fusion on the kernel functions by using linear combination, and outputting multi-dimensional fusion features of the defect region.
4. The intelligent control method for automatic optical detection of appearance defects according to claim 1, wherein the defect identification model is trained by using defect samples with label information, the defect identification is performed by using the multi-dimensional fusion characteristics, and the types of defects and the technological processes corresponding to the defects are specifically as follows:
obtaining a defect sample according to historical defect detection data of an object to be detected, retrieving a historical defect detection result to obtain a defect category of the defect sample, and setting a category label through the defect category to obtain an initial defect sample set;
Extracting a production process flow of an object to be detected, dividing the production process flow according to corresponding processing equipment information, constructing a sub-flow sequence, and acquiring configuration abnormality information and historical fault information of the processing equipment;
matching the time stamp of the configuration abnormal information and the time stamp of the historical fault information with the time stamp of the defect sample, and setting a fault label of the defect sample according to the configuration abnormal information and the historical fault information of the processing equipment if the time deviation is smaller than a preset time threshold;
performing cluster analysis on the defect sample, establishing a corresponding relation between a clustering result and each sub-process in the sub-process sequence, and obtaining an updated defect sample set;
constructing a defect identification model based on deep learning, dividing the defect identification model into a defect classification branch and a defect tracing branch, taking YOLOv5 as a backbone network in the defect classification branch, and carrying out multidimensional feature fusion by a multi-core learning method;
training defect classification branches by using the initial defect sample set, and identifying and classifying defects through training the defect classification branches after reaching standards to obtain defect classification results;
and constructing defect tracing branches through SVM classifiers, constructing an equivalent number of SVM classifiers according to the number of subsequences, training by using the updated defect sample set, inputting defect classification results into the defect tracing branches, and acquiring a sub-flow which leads to defect generation.
5. The intelligent control method for automatic optical detection of appearance defects according to claim 4, wherein the method is characterized in that the defect samples are subjected to cluster analysis, the corresponding relation between the cluster result and each sub-process in the sub-process sequence is established, and an updated defect sample set is obtained, specifically:
obtaining a fault label of a defect sample, wherein the defect sample has at least one fault label, and the equipment of each sub-process and corresponding marked abnormal information are used as main component directions;
projecting in the main component direction according to configuration abnormality information and historical fault information in the fault label, obtaining characteristic scattered point distribution, obtaining a marked defect sample in each sub-process according to the characteristic scattered point distribution, and taking the marked defect sample as an initial clustering center;
obtaining Euclidean distance from each defect sample in an initial defect sample set to an initial clustering center, distributing the defect sample to the initial clustering center closest to the initial clustering center, and generating a clustering result in each initial clustering center;
continuously updating the clustering center and the clustering result through iterative computation, averaging the defect samples in the clustering result to obtain a new clustering center, and comparing the distance between the defect sample and the belonging clustering center with the distance between the defect sample and the clustering center in the previous time in each iteration;
If the distance between the defect sample and the other cluster centers is smaller than or equal to the distance, the defect sample is reserved in the cluster center, otherwise, the distance between the defect sample and the other cluster centers is calculated, and the defect sample belongs to the cluster center closest to the cluster center;
when the iteration number threshold is met, the clustering result of the last iteration is selected as a final clustering result, and a corresponding relation between the clustering result and each sub-process in the sub-process sequence is established according to the class cluster in the final clustering result, so that an updated defect sample set is obtained.
6. The intelligent control method for automatic optical detection of appearance defects according to claim 1, wherein the method is characterized in that the abnormal information of the production process flow is analyzed according to the types of the defects and the process flow corresponding to the defects, and related early warning information is generated, specifically:
obtaining the type information of the defects and the sub-processes corresponding to the defects, carrying out independent marking on the sub-processes, retrieving standard processing parameters of an object to be detected, and extracting standard processing parameters of the marked sub-processes from the standard processing parameters;
analyzing the parameter deviation of the operation parameters of the processing equipment in the sub-process and the standard processing parameters of the marking sub-process, and generating processing early warning information when the parameter deviation is larger than a preset deviation threshold value, and displaying the early warning information corresponding to the defects in a preset mode;
And generating parameter compensation through parameter deviation, correcting the processing equipment, and optimizing standard processing parameters according to the parameter compensation and defect conditions of the process flow.
7. An intelligent control system for automatic optical detection of appearance defects, the system comprising: the intelligent control method for the automatic optical detection of the appearance defects comprises a memory and a processor, wherein the memory comprises an intelligent control method program for the automatic optical detection of the appearance defects, and the intelligent control method program for the automatic optical detection of the appearance defects realizes the following steps when being executed by the processor:
acquiring image information of an object to be detected, preprocessing the image information of the object to be detected, and generating an interested region of the object to be detected;
searching a corresponding image template according to the characteristic information of the object to be detected, registering the image template with an interested region of the object to be detected, and carrying out partial image segmentation according to registration results to obtain a defect region;
constructing a defect identification model, extracting multi-dimensional characteristics of a defect area, and carrying out characteristic fusion on the multi-dimensional characteristics to obtain multi-dimensional fusion characteristics;
training the defect identification model through a defect sample with label information, carrying out defect identification by utilizing the multi-dimensional fusion characteristics, and outputting the types of defects and the technological processes corresponding to the defects;
And analyzing the abnormal information of the production process flow according to the types of the defects and the process flow corresponding to the defects, and generating related early warning information.
8. The intelligent control system for automatic optical detection of appearance defects according to claim 7, wherein the steps of constructing a defect identification model, extracting multi-dimensional characteristics of a defect area, and performing characteristic fusion on the multi-dimensional characteristics to obtain multi-dimensional fusion characteristics are as follows:
extracting position features, colors and texture features of the defect region on an object to be detected, and performing similarity calculation within a preset range according to the position features, the colors and the shape features to obtain a similar region with the same size as the defect region;
calculating information entropy of the defect area and the similar area, and taking the information entropy deviation of the defect area and the similar area as the characteristic of the defect area;
inputting the defect area into a YOLOv5 network, extracting features with different scales by using a feature pyramid, performing feature fusion to generate multi-scale fusion features, and performing multi-core learning on the multi-scale fusion features of the defect area, the color, the texture features and the defect area information entropy;
and determining kernel functions of various features on defect identification by using a voting method, determining the weights of the kernel functions according to the defect identification rate of the single feature, performing kernel fusion on the kernel functions by using linear combination, and outputting multi-dimensional fusion features of the defect region.
9. The intelligent control system for automatic optical inspection of appearance defects according to claim 7, wherein the defect recognition model is trained by using defect samples with label information, and the multi-dimensional fusion features are used for defect recognition, and the types of defects and the technological processes corresponding to the defects are specifically as follows:
obtaining a defect sample according to historical defect detection data of an object to be detected, retrieving a historical defect detection result to obtain a defect category of the defect sample, and setting a category label through the defect category to obtain an initial defect sample set;
extracting a production process flow of an object to be detected, dividing the production process flow according to corresponding processing equipment information, constructing a sub-flow sequence, and acquiring configuration abnormality information and historical fault information of the processing equipment;
matching the time stamp of the configuration abnormal information and the time stamp of the historical fault information with the time stamp of the defect sample, and setting a fault label of the defect sample according to the configuration abnormal information and the historical fault information of the processing equipment if the time deviation is smaller than a preset time threshold;
performing cluster analysis on the defect sample, establishing a corresponding relation between a clustering result and each sub-process in the sub-process sequence, and obtaining an updated defect sample set;
Constructing a defect identification model based on deep learning, dividing the defect identification model into a defect classification branch and a defect tracing branch, taking YOLOv5 as a backbone network in the defect classification branch, and carrying out multidimensional feature fusion by a multi-core learning method;
training defect classification branches by using the initial defect sample set, and identifying and classifying defects through training the defect classification branches after reaching standards to obtain defect classification results;
and constructing defect tracing branches through SVM classifiers, constructing an equivalent number of SVM classifiers according to the number of subsequences, training by using the updated defect sample set, inputting defect classification results into the defect tracing branches, and acquiring a sub-flow which leads to defect generation.
10. A computer-readable storage medium, characterized by: the computer readable storage medium comprises a smart control method program for automatic optical detection of appearance defects, which when executed by a processor, implements the smart control method steps for automatic optical detection of appearance defects as defined in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310494369.1A CN116188475B (en) | 2023-05-05 | 2023-05-05 | Intelligent control method, system and medium for automatic optical detection of appearance defects |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310494369.1A CN116188475B (en) | 2023-05-05 | 2023-05-05 | Intelligent control method, system and medium for automatic optical detection of appearance defects |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116188475A true CN116188475A (en) | 2023-05-30 |
CN116188475B CN116188475B (en) | 2023-07-25 |
Family
ID=86442706
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310494369.1A Active CN116188475B (en) | 2023-05-05 | 2023-05-05 | Intelligent control method, system and medium for automatic optical detection of appearance defects |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116188475B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116501001A (en) * | 2023-06-27 | 2023-07-28 | 江苏宝孚克新能源科技有限公司 | Flexible aluminum alloy cable production process optimization control method and system |
CN116523909A (en) * | 2023-06-30 | 2023-08-01 | 广州市斯睿特智能科技有限公司 | Visual detection method and system for appearance of automobile body |
CN116645362A (en) * | 2023-06-29 | 2023-08-25 | 日照鲁光电子科技有限公司 | Intelligent quality detection method and system for silicon carbide wafer |
CN116934837A (en) * | 2023-09-13 | 2023-10-24 | 上海超群检测科技股份有限公司 | Object detection processing method, device, system, electronic equipment and storage medium |
CN116953196A (en) * | 2023-09-20 | 2023-10-27 | 上海飞挺管业制造有限公司 | Defect detection and safety state assessment method for steel tee joint |
CN117654907A (en) * | 2023-11-29 | 2024-03-08 | 嘉兴嘉视自动化科技有限公司 | Automatic eliminating method and system for strip detector |
CN117974601A (en) * | 2024-02-01 | 2024-05-03 | 广东工业大学 | Method and system for detecting surface defects of silicon wafer based on template matching |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103868935A (en) * | 2014-02-14 | 2014-06-18 | 中国科学院合肥物质科学研究院 | Cigarette appearance quality detection method based on computer vision |
CN108982508A (en) * | 2018-05-23 | 2018-12-11 | 江苏农林职业技术学院 | A kind of plastic-sealed body IC chip defect inspection method based on feature templates matching and deep learning |
WO2022053001A1 (en) * | 2020-09-10 | 2022-03-17 | 上海航天精密机械研究所 | Weld seam internal defect intelligent detection device and method, and medium |
CN115791822A (en) * | 2022-11-08 | 2023-03-14 | 磐柔(厦门)工业智能有限公司 | Visual detection algorithm and detection system for wafer surface defects |
CN115880248A (en) * | 2022-12-13 | 2023-03-31 | 哈尔滨耐是智能科技有限公司 | Surface scratch defect identification method and visual detection equipment |
-
2023
- 2023-05-05 CN CN202310494369.1A patent/CN116188475B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103868935A (en) * | 2014-02-14 | 2014-06-18 | 中国科学院合肥物质科学研究院 | Cigarette appearance quality detection method based on computer vision |
CN108982508A (en) * | 2018-05-23 | 2018-12-11 | 江苏农林职业技术学院 | A kind of plastic-sealed body IC chip defect inspection method based on feature templates matching and deep learning |
WO2022053001A1 (en) * | 2020-09-10 | 2022-03-17 | 上海航天精密机械研究所 | Weld seam internal defect intelligent detection device and method, and medium |
CN115791822A (en) * | 2022-11-08 | 2023-03-14 | 磐柔(厦门)工业智能有限公司 | Visual detection algorithm and detection system for wafer surface defects |
CN115880248A (en) * | 2022-12-13 | 2023-03-31 | 哈尔滨耐是智能科技有限公司 | Surface scratch defect identification method and visual detection equipment |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116501001A (en) * | 2023-06-27 | 2023-07-28 | 江苏宝孚克新能源科技有限公司 | Flexible aluminum alloy cable production process optimization control method and system |
CN116501001B (en) * | 2023-06-27 | 2023-09-05 | 江苏宝孚克新能源科技有限公司 | Flexible aluminum alloy cable production process optimization control method and system |
CN116645362A (en) * | 2023-06-29 | 2023-08-25 | 日照鲁光电子科技有限公司 | Intelligent quality detection method and system for silicon carbide wafer |
CN116645362B (en) * | 2023-06-29 | 2024-01-23 | 日照鲁光电子科技有限公司 | Intelligent quality detection method and system for silicon carbide wafer |
CN116523909A (en) * | 2023-06-30 | 2023-08-01 | 广州市斯睿特智能科技有限公司 | Visual detection method and system for appearance of automobile body |
CN116523909B (en) * | 2023-06-30 | 2023-09-29 | 广州市斯睿特智能科技有限公司 | Visual detection method and system for appearance of automobile body |
CN116934837A (en) * | 2023-09-13 | 2023-10-24 | 上海超群检测科技股份有限公司 | Object detection processing method, device, system, electronic equipment and storage medium |
CN116934837B (en) * | 2023-09-13 | 2023-11-24 | 上海超群检测科技股份有限公司 | Object detection processing method, device, system, electronic equipment and storage medium |
CN116953196A (en) * | 2023-09-20 | 2023-10-27 | 上海飞挺管业制造有限公司 | Defect detection and safety state assessment method for steel tee joint |
CN116953196B (en) * | 2023-09-20 | 2023-12-05 | 上海飞挺管业制造有限公司 | Defect detection and safety state assessment method for steel tee joint |
CN117654907A (en) * | 2023-11-29 | 2024-03-08 | 嘉兴嘉视自动化科技有限公司 | Automatic eliminating method and system for strip detector |
CN117974601A (en) * | 2024-02-01 | 2024-05-03 | 广东工业大学 | Method and system for detecting surface defects of silicon wafer based on template matching |
Also Published As
Publication number | Publication date |
---|---|
CN116188475B (en) | 2023-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN116188475B (en) | Intelligent control method, system and medium for automatic optical detection of appearance defects | |
CN111179251B (en) | Defect detection system and method based on twin neural network and by utilizing template comparison | |
CN108765412B (en) | Strip steel surface defect classification method | |
CN110148130B (en) | Method and device for detecting part defects | |
CN108734184B (en) | Method and device for analyzing sensitive image | |
CN108764361B (en) | Working condition identification method of indicator diagram of beam-pumping unit based on integrated learning | |
TW202013248A (en) | Method and apparatus for vehicle damage identification | |
CN111242899B (en) | Image-based flaw detection method and computer-readable storage medium | |
Liu et al. | Unsupervised segmentation and elm for fabric defect image classification | |
CN111914902B (en) | Traditional Chinese medicine identification and surface defect detection method based on deep neural network | |
CN112907561A (en) | Notebook appearance flaw detection method based on deep learning | |
CN109886932A (en) | Gear ring of wheel speed sensor detection method of surface flaw based on SVM | |
CN108460344A (en) | Dynamic area intelligent identifying system in screen and intelligent identification Method | |
CN111161237A (en) | Fruit and vegetable surface quality detection method, storage medium and sorting device thereof | |
CN115661160B (en) | Panel defect detection method, system, device and medium | |
CN113591948A (en) | Defect pattern recognition method and device, electronic equipment and storage medium | |
CN114494780A (en) | Semi-supervised industrial defect detection method and system based on feature comparison | |
CN115147363A (en) | Image defect detection and classification method and system based on deep learning algorithm | |
CN114066848A (en) | FPCA appearance defect visual inspection system | |
CN117314919B (en) | Packaging bag production analysis method, system and storage medium based on machine vision | |
CN114549513A (en) | Part identification method, part identification device, quality inspection method, electronic device, and storage medium | |
Zhang et al. | Fabric defect detection based on visual saliency map and SVM | |
CN112836724A (en) | Object defect recognition model training method and device, electronic equipment and storage medium | |
CN110458231B (en) | Ceramic product detection method, device and equipment | |
CN116664540A (en) | Rubber sealing ring surface defect detection method based on Gaussian line detection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A Smart Control Method, System, and Medium for Automatic Optical Detection of Appearance Defects Effective date of registration: 20231226 Granted publication date: 20230725 Pledgee: Bank of Communications Limited Shenzhen Branch Pledgor: Dezhong (Shenzhen) laser Intelligent Technology Co.,Ltd. Registration number: Y2023980074404 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right |