A method, device and storage medium for detecting quality of artificial synthetic wood board
By constructing a convolutional neural network and using simulated data sets and real data sets for training, the problem of low detection accuracy of artificial synthetic wood boards and high cost of data set production is solved, and efficient and accurate wood board quality detection is achieved.
Patent Information
- Application Number
- CN202210376386.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-11
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-04-11
AI Technical Summary
When the existing wood board quality inspection system detects man-made synthetic wood boards, the accuracy is low, the data set production cost is high, and it cannot meet the needs of real-time detection.
By constructing a convolutional neural network, using simulated data sets for pre-training, and combining real data sets for iterative training, a deep learning model that can efficiently detect defects in artificial synthetic wood boards is formed.
It improves the detection accuracy, reduces the cost of data set production, achieves a balance between compatibility, running time and accuracy, and is suitable for quality inspection of artificial synthetic wood boards and other wood boards.
Smart Images

Figure CN115017672B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wood board detection, and in particular to a method for detecting the quality of an artificial synthetic wood board, and a device and a storage medium for realizing the method. Background Art
[0002] With the rapid development of the furniture industry, the artificial synthetic wood board industry has also developed rapidly. Artificial synthetic wood boards are made from the scraps generated during the wood processing process and chemical adhesives. Artificial synthetic wood boards need to be quality inspected after production to detect whether the surface integrity and size of the boards meet the requirements, and then the boards that do not meet the corresponding quality requirements can be removed. The quality inspection of artificial synthetic wood boards is mainly divided into manual visual inspection and machine inspection. For manual visual inspection, there are problems such as large accuracy error and low inspection efficiency, while machine inspection has high accuracy and efficiency, so machine inspection gradually replaces manual visual inspection.
[0003] At present, the machine detection system is composed of a combination of multiple graphics algorithms, each of which implements different functions, such as using edge detection algorithms to locate defects and using comparison algorithms to obtain abnormal conditions on the product surface. However, in order to obtain a higher detection accuracy, the algorithms used by the current machine detection system are usually complex and cumbersome, which inevitably takes a long time to calculate and has poor compatibility with different types of wood grain, making the machine detection system less capable of real-time detection in the actual production line. In addition, the current deep learning algorithm research is aimed at defects on the surface of ordinary solid wood, such as wood knots, dead knots and cracks, which account for a large proportion of the size in the graphics, and the detection can achieve a high accuracy rate. However, for defects on the surface of artificial synthetic wood boards with a small proportion of the size, higher hardware requirements and time costs are required, which cannot meet the needs of artificial synthetic wood board quality detection. Moreover, in the actual wood board quality detection process, the final detection accuracy is often unsatisfactory due to problems such as the small number of samples in the real data set. In order to improve the detection accuracy, some people use a large amount of manpower to manually annotate to produce the required number of real data sets, which greatly increases the cost of data set production. Summary of the invention
[0004] The purpose of the present invention is to provide a method for detecting the quality of artificial synthetic wood boards, which can detect the quality of artificial synthetic wood boards, improve the detection accuracy and reduce the production cost of data sets. At the same time, a device and a storage medium for implementing the method are also provided.
[0005] To achieve the above object, the present invention provides a method for detecting the quality of an artificial synthetic wood board, the method comprising:
[0006] S100, obtaining and preprocessing an image of an artificial synthetic wood board, and making simulated defects on the preprocessed image of the artificial synthetic wood board to form a simulation data set;
[0007] S200, building a convolutional neural network;
[0008] S300, training the convolutional neural network using the simulation data set;
[0009] S400, training the pre-trained convolutional neural network using a real data set, wherein the defect type of the real data set is consistent with the defect type of the simulation data set;
[0010] S500, using the convolutional neural network trained in step S400 to perform quality inspection on the artificial synthetic wood board.
[0011] Preferably, in step S100, the simulation data set is formed by the following steps:
[0012] S101, constructing a simulation defect mathematical model according to a real defect database, and generating random simulation defects using the simulation defect data model, wherein the real defect database includes a real surface oil stain database and / or a real surface scratch database, and the simulation defect mathematical model is selected from one or more of a surface oil stain mathematical model and a surface scratch mathematical model, wherein:
[0013] The expression of the surface oil pollution model is:
[0014]
[0015] D(x,y)=N(μ1,μ2,σ1 2 ,σ2 2 ,ρ)
[0016] F oil is the surface oil pollution model, F oil,i is the i-th real surface oil pollution sample randomly selected from the real surface oil pollution database, D(x,y) is F oil The central coordinates of the distribution are two-dimensionally normally distributed, and μ1, μ2, σ1, σ2, ρ are all constants;
[0017] The expression of the surface scratch mathematical model is:
[0018] F scr =F scr,i ×P
[0019] F scr is the generated surface scratch model, F scr , i is a real surface scratch sample randomly selected from the real surface scratch database, P is the matrix displacement of the defect;
[0020] S102, placing random simulated defects on the pre-processed artificial synthetic wood board image to form a simulated defect image, and multiple simulated defect images form a simulation data set.
[0021] Preferably, the convolutional neural network is a convolutional neural network optimized based on the residual network Resnet18, and the convolutional neural network includes 17 convolutional layers, and the 17 convolutional layers are divided into five convolutional groups. The first convolutional group includes a convolutional layer, and the convolutional layer uses a 7*7 convolutional kernel. The second to fifth convolutional groups each include four convolutional layers, and each convolutional group includes 2 residual blocks.
[0022] Preferably, before using the simulation data set to train the convolutional neural network, the ImageNet data set is also used to train the convolutional neural network.
[0023] Preferably, in the convolutional neural network, a Leaky ReLU activation function is used in the activation function layer or a maximum pooling layer is used before ReLU.
[0024] Preferably, in step S100, the preprocessing includes:
[0025] Repair the artificial synthetic wood board image through the calibration board image;
[0026] According to the external parameter relationship between different cameras, multiple artificial synthetic wood board images are spliced together;
[0027] The region of interest is extracted from the spliced artificial synthetic wood board image to obtain an artificial synthetic wood board image containing only the wood board area.
[0028] Preferably, in S400, using the trained convolutional neural network to perform quality inspection on the artificial synthetic wood board includes:
[0029] Acquire the original image of the artificial synthetic wood board and perform preprocessing;
[0030] The trained convolutional neural network is used to recognize the preprocessed artificial synthetic wood board images to detect whether there are defects in the artificial synthetic wood board.
[0031] The present invention also discloses a man-made synthetic wood board quality detection device, the man-made synthetic wood board quality detection device comprising:
[0032] A data set establishment module is used to obtain and pre-process an image of an artificial synthetic wood board, and to create simulated defects on the pre-processed image of the artificial synthetic wood board to form a simulated data set;
[0033] Neural network building blocks for building convolutional neural networks;
[0034] A first training module, used for training the convolutional neural network using the simulation data set;
[0035] A second training module is used to train the pre-trained convolutional neural network using a real data set, wherein the defect type of the real data set is consistent with the defect type of the simulation data set;
[0036] The quality detection module is used to perform quality detection on the artificial synthetic wood board using the convolutional neural network trained by the second training module.
[0037] The present invention also discloses a man-made synthetic wood board quality detection device, the man-made synthetic wood board quality detection device comprising:
[0038] at least one processor; and
[0039] At least one memory is coupled to the at least one processor and stores a computer program for execution by the at least one processor, and when the computer program is executed by the at least one processor, the apparatus performs the method described above.
[0040] The present invention also discloses a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a machine, the method described above is implemented.
[0041] The beneficial effects of the present invention are:
[0042] (1) The present invention prepares a simulation data set to pre-train the convolutional neural network. On the one hand, the convolutional neural network can better extract the defect features of the wooden board and improve the accuracy of the convolutional neural network in extracting the defect features of the artificial synthetic wooden board. On the other hand, by preparing a simulation data set to expand the data set for training the convolutional neural network, the problems of small data set size and high data set production cost in the actual detection process are solved.
[0043] (2) The present invention can achieve a balance among compatibility, running time and accuracy, and obtain a better real-time detection effect. It is not only suitable for the quality inspection of artificial synthetic wood boards, but also suitable for the quality inspection of other wood boards, and has a wider scope of application. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is a flow chart of a method for detecting quality of an artificial synthetic wood board in one embodiment of the present invention;
[0045] Figure 2 It is a flow chart of simulation data set production;
[0046] Figure 3 It is a schematic diagram of a convolutional neural network;
[0047] Figure 4 It is a convolutional neural network training flowchart;
[0048] Figure 5 It is a flow chart of quality inspection of artificial synthetic wood board;
[0049] Figure 6 It is a structural block diagram of a device for detecting quality of an artificial synthetic wood board in one embodiment of the present invention. DETAILED DESCRIPTION
[0050] The technical solutions of the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings of the present invention.
[0051] Since the methods used in the prior art for wood board quality detection are not universally applicable, they cannot accurately detect the defects of artificial synthetic wood boards. At the same time, the methods used in the prior art for wood board quality detection also have the disadvantages of redundant detection algorithms, high data set production costs, and low detection accuracy. The present invention discloses a method, device, and storage medium for detecting the quality of artificial synthetic wood boards, which can detect the quality of artificial synthetic wood boards, has a wider range of applications, and also has the advantages of low data set production costs, high detection accuracy, and high speed.
[0052] like Figure 1 As shown, a method for detecting the quality of an artificial synthetic wood board based on deep learning according to an embodiment of the present invention comprises the following steps:
[0053] S100, obtaining and preprocessing an image of an artificial synthetic wood board, and making simulated defects on the preprocessed image of the artificial synthetic wood board to form a simulation data set;
[0054] Specifically, the data set is used for the training of the deep learning model. The scale of the data set can affect the training results of the deep learning model. Generally, in order for the deep learning model to obtain better detection accuracy, a data set of more than 10,000 images is required. However, in practical applications, the data set is small (the actual collected data is limited and the number of samples is too small), which makes the training results of the deep learning model unsatisfactory. In order to obtain better detection accuracy, the present invention expands the data set by making a simulation data set to solve the problem of low detection accuracy due to the small scale of the data set in practical applications, and also solves the problem of high data set production cost caused by artificially making data sets.
[0055] Furthermore, when making a simulation data set, first obtain the images of artificial synthetic wood boards and preprocess these artificial synthetic wood board images. The images of artificial synthetic wood boards here can be obtained by photographing the artificial synthetic wood boards on the assembly line with at least one camera. When implemented, it is best to photograph the artificial synthetic wood boards on the assembly line with two cameras, and use a collection protection box as the outer cover of the collection lighting system, so that the contrast of the collected artificial synthetic wood board images is relatively high, less affected by the outside world, and the characteristics of the defective areas on the image surface are relatively obvious. After the images of artificial synthetic wood boards are obtained, the images of artificial synthetic wood boards are preprocessed so that the preprocessed images of artificial synthetic wood boards meet the subsequent use requirements of deep learning models. Before preprocessing, the collected images are also subjected to image enhancement processing to ensure the quality of the images in the subsequent recognition process. The image enhancement processing here includes image grayscale compensation, image overlap blocking, and smoothing filtering processed in sequence.
[0056] During implementation, the artificial synthetic wood board image is preprocessed through the following steps:
[0057] Firstly, the artificial synthetic wood board image is repaired according to the calibration board image to eliminate the influence of the intrinsic and extrinsic parameters of the camera itself.
[0058] Secondly, the artificial synthetic wood board images taken by multiple cameras are spliced according to the external parameter relationship between different cameras;
[0059] Finally, since there are non-wooden areas in the artificial synthetic wood board image taken by the camera, it is necessary to extract the region of interest of the artificial synthetic wood board image to remove the non-wooden areas, so as to obtain an artificial synthetic wood board image with only the wooden board area.
[0060] After the artificial synthetic wood board image is preprocessed, simulated defects are made on the preprocessed artificial synthetic wood board image to form a simulation data set. Specifically, Figure 2 As shown:
[0061] First, a simulation defect mathematical model is constructed based on a real defect database, and random simulation defects are generated using the simulation defect data model. The real defect database here includes a real surface oil stain data set and / or a real surface scratch data set. The simulation defect mathematical model is selected from one or more of the surface oil stain mathematical model and the surface scratch mathematical model. Of course, in other embodiments, other actual defect models can also be selected, such as a plate defect mathematical model, a pattern missing mathematical model, etc., which can be selected according to actual needs. Among them,
[0062] (1) The mathematical model of surface oil pollution is expressed as:
[0063]
[0064] D(x,y)=N(μ1,μ2,σ1 2 ,σ2 2 ,ρ)
[0065] Among them, F oil is the surface oil pollution model, F oil,i is the i-th real surface oil pollution sample randomly selected from the real surface oil pollution database, D(x,y) is F oil The central coordinates of , which presents a two-dimensional normal distribution, μ1, μ2, σ1, σ2, ρ are all constants.
[0066] (2) The expression of the mathematical model of surface scratches is:
[0067] F scr =F scr,i ×P
[0068] Among them, F scr is the generated surface scratch model, F scr,i is a real surface scratch sample randomly selected from the real surface scratch database, and P is the matrix displacement of the defect.
[0069] Finally, simulated defects are randomly placed on the preprocessed artificial synthetic wood board image to form a simulated defect image, and multiple simulated defect images form a simulation data set.
[0070] S200, building a convolutional neural network;
[0071] Specifically, after the simulation data set is prepared, a convolutional neural network is constructed to perform quality inspection on the artificial synthetic wood board. In the present invention, after the simulation data set is prepared, a convolutional neural network optimized based on the residual network Resnet18 is constructed. Figure 3 As shown in the figure, the convolutional neural network optimized based on the residual network Resnet18 has a total of 21 layers, including 17 convolutional layers, which are divided into five convolutional groups, namely the first convolutional group, the second convolutional group, the third convolutional group, the fourth convolutional group and the fifth convolutional group. The first convolutional group contains one convolutional layer, which uses a 7*7 convolutional kernel. The second to fifth convolutional groups each contain four convolutional layers, and each convolutional group contains 2 residual blocks.
[0072] In this embodiment, since the dimensions of different convolution groups are different, the dimensions are unified through a 1×1 convolution layer, that is, the residual block performs identity mapping on information of different dimensions (that is, the weight and bias parameters are set to 0): H(x) = F(x) + x. As shown in the figure, all the final information is passed to the fully connected layer through the average pooling layer to obtain the final prediction value.
[0073] S300, training the convolutional neural network using the simulation data set;
[0074] Specifically, Figure 4 As shown in the figure, after constructing a convolutional neural network optimized based on the residual network Resnet18, the convolutional neural network is pre-trained using a simulation data set so that the convolutional neural network can better extract the defect characteristics of artificial synthetic wood boards and improve the training efficiency. By pre-training the convolutional neural network using a simulation data set, the accuracy of quality detection of artificial synthetic wood boards can be improved.
[0075] Furthermore, if Figure 4 As shown, in order to improve the accuracy of the convolutional neural network in extracting defect features of artificial synthetic wood boards, the ImageNet dataset can be used to pre-train the convolutional neural network constructed above before the convolutional neural network is trained using the simulation dataset.
[0076] Furthermore, the parameters of the convolutional neural network can be adjusted and optimized in the following ways to improve the accuracy of the convolutional neural network in extracting the defect features of artificial synthetic wood boards:
[0077] (1) Use the Leaky ReLU activation function in the activation layer function layer to solve the Dying ReLU problem. Its expression is:
[0078]
[0079] The reason why Leaky ReLU is used in the activation function layer is that in actual operation, if the learning rate is too large, 40% of the neurons in the convolutional neural network will be dead. Therefore, the problem of dying ReLU can be solved by using Leaky ReLU in the activation function layer. i The preferred value is 1e-3, at which point the accuracy can reach 99.83, the loss is 0.0046, and the AUC-ROC is 1.
[0080] (2) Use Max-pooling before ReLU to save computation. Max-pooling can also reduce the problem of estimated mean shift caused by convolutional layer parameter errors, thereby retaining more texture information and improving the accuracy of defect feature extraction.
[0081] (3) Adjust the parameters of each convolutional layer, use the test set to train the convolutional neural network, and adjust the parameters according to the training results so that the convolutional neural network can accurately extract defect features.
[0082] (4) The loss function and the auxiliary function center loss are used to improve the accuracy of convolutional neural network in extracting defect features of artificial synthetic wood boards. The loss function here is composed of Softmax and Cross-entropy loss, where:
[0083] The softmax function is as follows:
[0084]
[0085] z is a set of results output by a fully connected layer of a neural network. In the present invention, there are 5 categories, namely 4 defects and 1 non-defective. z is a 1*5 vector, and the subscript j is 0 to 4. k is the kth value of the fully connected layer.
[0086] The Cross-entropy loss function is as follows:
[0087]
[0088] f(z c ) is the above-mentioned f(z k ), y c is the true value of the sample.
[0089] The SGD optimizer with momentum can also be introduced to improve the accuracy of the convolutional neural network in extracting the defect features of artificial synthetic wood boards. At the same time, cosine decay can also be used to appropriately reduce the learning rate to improve the accuracy of the convolutional neural network in extracting the defect features of artificial synthetic wood boards.
[0090] (5) Add channel attention mechanism and spatial attention mechanism to the last convolutional layer and the first convolutional layer, while not changing the convolutional neural network, to pre-train the parameters. By adopting the channel attention mechanism and spatial attention mechanism, each sample can have its own unique set of weights, and unique feature channel weighting adjustment can be performed according to the characteristics of the sample itself, thereby enhancing the feature channel and eliminating redundant feature channels.
[0091] S400, training the pre-trained convolutional neural network using a real data set, wherein the defect type of the real data set is consistent with the defect type of the simulation data set;
[0092] Specifically, Figure 4As shown, after the convolutional neural network is pre-trained with a simulation data set, the pre-trained convolutional neural network is further iteratively trained using a real data set to ensure that the convolutional neural network can accurately identify the corresponding defect features. The real data set here is consistent with the defect type of the simulation data set. The real data set includes a real surface oil stain data set and / or a real surface scratch data set. For example, when the defect type in the simulation data set is surface oil stain, the defect type in the real data set is also surface oil stain. For example, when the defect type in the simulation data set is surface scratch, the defect type in the real data set is also surface scratch. During implementation, the pre-trained convolutional neural network can be trained with a surface oil stain data set so that the convolutional neural network can accurately identify the defect feature of surface oil stain. The pre-trained convolutional neural network can be trained with a surface scratch data set so that the convolutional neural network can accurately identify the defect feature of surface scratch.
[0093] In this embodiment, the real data set can be obtained through the following steps:
[0094] Firstly, an original image of the artificial synthetic wood board on the production line is obtained, and the original image can be collected by multiple cameras.
[0095] Secondly, the original image is preprocessed. The preprocessing here is detailed above and will not be repeated here.
[0096] Finally, the preprocessed original images are annotated to form a real data set. The annotation here can be done manually.
[0097] S500, using the convolutional neural network trained in step S400 to perform quality inspection on the artificial synthetic wood board.
[0098] Specifically, Figure 5 As shown, after the convolutional neural network is trained with a real data set, the convolutional neural network can be used to perform quality inspection on artificial synthetic wood boards to detect whether there are corresponding defects on the artificial synthetic wood boards, such as whether there are surface oil stains, surface scratches, etc. In implementation, when using the convolutional neural network to perform quality inspection on artificial synthetic wood boards, it is first necessary to preprocess the original image of the acquired artificial synthetic wood boards. The preprocessing here is also performed in the above-mentioned manner, which will not be described one by one here. After the original image of the artificial synthetic wood board is preprocessed, the image of the artificial synthetic wood board is recognized by the trained convolutional neural network to detect whether there are defects such as surface oil stains and surface scratches.
[0099] Furthermore, during implementation, a morphological algorithm can be used to detect the integrity of the surface of the artificial synthetic wood board, and the quality of the artificial synthetic wood board can be comprehensively determined based on the integrity detection results and the prediction results of the convolutional neural network.
[0100] like Figure 6 As shown, the present invention also discloses a quality detection device for artificial synthetic wood board, including a data set establishment module, a neural network construction module, a first training module, a second training module and a quality detection module. Among them, the data set establishment module is used to obtain the artificial synthetic wood board image and preprocess it, and make simulated defects on the preprocessed artificial synthetic wood board image to form a simulated data set; the neural network construction module is used to construct a convolutional neural network; the first training module is used to train the convolutional neural network using the simulated data set; the second training module is used to train the pretrained convolutional neural network using a real data set, and the defect type of the real data set is consistent with the defect type of the simulated data set; the quality detection module is used to perform quality detection on the artificial synthetic wood board using the convolutional neural network trained by the second training module.
[0101] Specifically, when performing quality inspection of artificial synthetic wood boards, the data set establishment module obtains images of artificial synthetic wood boards and preprocesses these images of artificial synthetic wood boards so that the preprocessed images of artificial synthetic wood boards meet the requirements of subsequent deep learning model use. After the images of artificial synthetic wood boards are preprocessed, simulated defects are further produced in the preprocessed images of artificial synthetic wood boards, such as surface oil defects, surface scratch defects, etc. How the data set establishment module preprocesses the images of artificial synthetic wood boards and produces simulated defects is described above in detail, and will not be repeated here.
[0102] Furthermore, after the simulation data set is established, the neural network construction module constructs a convolutional neural network that can detect the quality of the artificial synthetic wood board. The convolutional neural network is described in detail above and will not be described in detail here.
[0103] Furthermore, after the convolutional neural network is constructed, the first training module uses the prepared simulation data set to pre-train the convolutional neural network to improve the accuracy of the convolutional neural network in extracting defect features of artificial synthetic wood boards.
[0104] Furthermore, after the first training module pre-trains the convolutional neural network, the second training module retrains the convolutional neural network using real data to ensure that the convolutional neural network can accurately identify corresponding defect features.
[0105] Finally, the quality inspection module uses the trained convolutional neural network to perform quality inspection on the artificial synthetic wood board to detect whether the artificial synthetic wood board has corresponding defects.
[0106] The present invention also discloses a man-made synthetic wood board quality detection device, comprising a memory, a processor and a computer program, wherein the computer program is stored in the memory and can be run in the processor, such as a man-made synthetic wood board quality detection program. When implemented, the processor can implement various steps in the above method when executing the computer program, such as obtaining and preprocessing the man-made synthetic wood board image, making simulated defects on the preprocessed man-made synthetic wood board image, forming a simulated data set, etc.
[0107] Exemplarily, the computer program may be divided into one or more units, which are stored in the memory and executed by the memory to implement the present invention. The one or more units may be a series of computer program instruction segments capable of implementing specific functions, and the computer program instruction segments are used to describe the execution process of the computer program in the device.
[0108] The present invention also discloses a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the above method can be implemented. The computer program includes a computer program code, which can be in source code form, an executable file or some intermediate form, etc. The computer-readable medium can include any entity or device, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), etc. that can carry the computer program code.
[0109] The present invention prepares a simulation data set to pre-train a convolutional neural network. On the one hand, it can enable the convolutional neural network to better extract the defect features of wooden boards and improve the accuracy of the convolutional neural network in extracting the defect features of artificial synthetic wooden boards. On the other hand, by preparing a simulation data set to expand the data set for training the convolutional neural network, the problems of small data set size and high label production cost in the actual detection process are solved.
[0110] In addition, the present invention can achieve a balance in compatibility, running time and accuracy, and obtain better real-time detection effect. It is not only suitable for quality detection of artificial synthetic wood boards, but also suitable for quality detection of other wood boards, and has a wider scope of application.
[0111] The technical contents and technical features of the present invention have been disclosed as above. However, those skilled in the art may still make various substitutions and modifications based on the teachings and disclosures of the present invention without departing from the spirit of the present invention. Therefore, the protection scope of the present invention should not be limited to the contents disclosed in the embodiments, but should include various substitutions and modifications that do not depart from the present invention and are covered by the claims of this patent application.
Claims
1. A method for detecting the quality of an artificial synthetic wood board, characterized in that: The method for detecting the quality of the artificial synthetic wood board comprises: S100, obtaining an artificial synthetic wood board image and preprocessing it, making simulated defects on the preprocessed artificial synthetic wood board image to form a simulated data set, wherein the simulated data set is formed by the following steps: S101, constructing a simulation defect mathematical model according to a real defect database, and generating random simulation defects using the simulation defect data model, wherein the real defect database includes a real surface oil stain database and / or a real surface scratch database, and the simulation defect mathematical model is selected from one or more of a surface oil stain mathematical model and a surface scratch mathematical model, wherein: The expression of the surface oil pollution model is: , , F oil is the surface oil pollution model, F oil,i is the i-th real surface oil pollution sample randomly selected from the real surface oil pollution database, for F oil The central coordinates of the distribution are two-dimensionally normally distributed, and μ1, μ2, σ1, σ2, ρ are all constants; The expression of the surface scratch mathematical model is: , F scr For the generated surface scratch model, F scr,i is a real surface scratch sample randomly selected from the real surface scratch database, P is the matrix displacement of the defect; S102, placing random simulated defects on the pre-processed artificial synthetic wood board image to form a simulated defect image, and the multiple simulated defect images form a simulated data set; S200, constructing a convolutional neural network, wherein the convolutional neural network is a convolutional neural network optimized based on a residual network Resnet18, wherein the convolutional neural network includes 17 convolutional layers, wherein the 17 convolutional layers are divided into five convolutional groups, wherein the first convolutional group includes one convolutional layer, wherein the convolutional layer uses a 7×7 convolutional kernel, and the second to fifth convolutional groups each include four convolutional layers, and each convolutional group includes two residual blocks, and in the convolutional neural network, a Leaky ReLU activation function is used in the activation function layer or a maximum pooling layer is used before ReLU; S300, training the convolutional neural network using the simulation data set; S400, training the pre-trained convolutional neural network using a real data set, wherein the defect type of the real data set is consistent with the defect type of the simulation data set; S500, using the convolutional neural network trained in step S400 to perform quality inspection on the artificial synthetic wood board.
2. The method for detecting the quality of artificial synthetic wood board according to claim 1, characterized in that: Before using the simulation dataset to train the convolutional neural network, the ImageNet dataset was also used to train the convolutional neural network.
3. The method for detecting the quality of artificial synthetic wood board according to claim 1, characterized in that: In step S100, the preprocessing includes: Repair the artificial synthetic wood board image through the calibration board image; According to the external parameter relationship between different cameras, multiple artificial synthetic wood board images are spliced together; The region of interest is extracted from the spliced artificial synthetic wood board image to obtain an artificial synthetic wood board image containing only the wood board area.
4. The method for detecting the quality of artificial synthetic wood board according to claim 1, characterized in that: In S400, the quality inspection of artificial synthetic wood panels using the trained convolutional neural network includes: Acquire the original image of the artificial synthetic wood board and perform preprocessing; The trained convolutional neural network is used to recognize the preprocessed artificial synthetic wood board images to detect whether there are defects in the artificial synthetic wood board.
5. A quality inspection device for artificial synthetic wood board, characterized in that: The artificial synthetic wood board quality detection device comprises: The data set establishment module is used to obtain and preprocess the artificial synthetic wood board image, create simulated defects on the preprocessed artificial synthetic wood board image, and form a simulated data set. The simulated data set is constructed by constructing a simulated defect mathematical model based on a real defect database, and using the simulated defect data model to generate random simulated defects, and placing the random simulated defects on the preprocessed artificial synthetic wood board image to form a simulated defect image, which is further formed by multiple simulated defect images. The real defect database includes a real surface oil stain database and / or a real surface scratch database. The simulated defect mathematical model is selected from one or more of a surface oil stain mathematical model and a surface scratch mathematical model, wherein, The expression of the surface oil pollution model is: , , F oil is the surface oil pollution model, F oil,i is the i-th real surface oil pollution sample randomly selected from the real surface oil pollution database, for F oil The central coordinates of the distribution are two-dimensionally normally distributed, and μ1, μ2, σ1, σ2, ρ are all constants; The expression of the surface scratch mathematical model is: , F scr For the generated surface scratch model, F scr,i is a real surface scratch sample randomly selected from the real surface scratch database, P is the matrix displacement of the defect; A neural network building module, used to build a convolutional neural network, wherein the convolutional neural network is a convolutional neural network optimized based on the residual network Resnet18, and the convolutional neural network includes 17 convolutional layers, and the 17 convolutional layers are divided into five convolutional groups, the first convolutional group includes one convolutional layer, and the convolutional layer uses a 7×7 convolutional kernel, and the second to fifth convolutional groups each include four convolutional layers, and each convolutional group includes 2 residual blocks, and in the convolutional neural network, a leaky ReLU activation function is used in the activation function layer or a maximum pooling layer is used before ReLU; A first training module, used for training the convolutional neural network using the simulation data set; A second training module is used to train the pre-trained convolutional neural network using a real data set, wherein the defect type of the real data set is consistent with the defect type of the simulation data set; The quality detection module is used to perform quality detection on the artificial synthetic wood board using the convolutional neural network trained by the second training module.
6. A quality inspection device for artificial synthetic wood board, characterized in that: The artificial synthetic wood board quality detection device comprises: at least one processor; and At least one memory, the at least one memory is coupled to the at least one processor and stores a computer program for execution by the at least one processor, when the computer program is executed by the at least one processor, the apparatus performs the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a machine, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Artificial board surface defect detection method and system
CN110554052A
Wood floor surface defect detection method based on unsupervised deep learning
CN111986199A
Wood board defect detection method, device and apparatus based on neural network and medium
CN113989183A
Machine learning-based methods and systems for deffect detection and analysis using ultrasound scans
US20220019190A1
