A method for detecting the appearance of automobile central control panel based on deep learning

Through deep learning technology and AlexNet model, combined with CMOS camera and normalized squared difference matching method, the problem of low efficiency and low accuracy in appearance detection of automobile central control panel is solved, and fast and accurate detection results are achieved, which is suitable for Complex screen printing shape and brightness consistency detection.

CN114004786BActive Publication Date: 2024-10-29CHANGZHOU SHINCO AUTOMOTIVE ELECTRONICS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111091963.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-17
Publication Date
2024-10-29
Estimated Expiration
2041-09-17

AI Technical Summary

Technical Problem

The existing technology has low efficiency, high cost, and low accuracy in the appearance inspection of automobile central control panels. Moreover, manual inspection is easily interfered by environmental factors and cannot meet the increase in output and quality requirements.

Method used

The car center control panel appearance detection method based on deep learning is used, the AlexNet convolutional neural network model is used for target positioning and brightness measurement, combined with the CMOS camera to collect images, the normalized squared difference matching method is used for template matching, and the brightness mean value is calculated. Set a preset threshold for judgment.

Benefits of technology

It achieves fast and accurate detection results, improves detection efficiency, reduces the cost of manual detection, ensures strict control of product quality, and is suitable for complex screen printing shape and brightness consistency detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114004786B_ABST
    Figure CN114004786B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for detecting the appearance of a central control panel of an automobile based on deep learning, the method comprising collecting and inputting a sample button silk screen image through an image sensor; performing target positioning on the sample button silk screen image to obtain the coordinates of the sample button silk screen image; obtaining an image of a product to be detected; cutting out the button silk screen image of the product to be detected; performing template matching and brightness measurement to obtain a percentage; comparing with a preset threshold to determine the result; and outputting the result. The present invention applies image processing technology to the field of appearance detection of a central control panel of an automobile, and can obtain detection results conveniently and quickly, solving the problems of low efficiency, time-consuming and labor-intensive reading, and low accuracy of traditional naked eye detection. At the same time, a deep learning neural network model is introduced into the target positioning for the template, and through improvement, it is made more suitable for the scene of central control panel detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of digital image processing, specifically to the field of screen printing defect detection, and in particular to a method for detecting the appearance of a central control panel of an automobile based on deep learning. Background Art

[0002] The appearance inspection of the central control panel of the car mainly includes the shape and position inspection of the button screen printing and the brightness consistency inspection of each screen printing on the same product. Its technology mainly includes the positioning of the screen printing. Screen printing refers to using a screen as a base and making a screen printing plate with images through a photosensitive platemaking method. Screen printing consists of five major elements: screen printing plate, scraper, ink, printing table and substrate. Printing is based on the basic principle that the mesh holes of the image part of the screen printing plate can pass through the ink, while the mesh holes of the non-image part cannot pass through the ink. When printing, pour ink at one end of the screen printing plate, use a scraper to apply a certain pressure to the ink part on the screen printing plate, and move at a constant speed toward the other end of the screen printing plate. During the movement, the ink is squeezed from the mesh holes of the image part to the substrate by the scraper.

[0003] At present, the main technologies for target positioning are the connected domain method and the sliding window method. The connected domain method is to identify pixels in the image that meet certain connectivity rules as the same target. First, the image is adaptively binarized, and then the connected domain in the image is framed after preprocessing such as median filtering, dilation and corrosion. The advantage of this method is that it has a wide range of applications and can be used to identify any type of image, and the location of the target is determined based on the connected domain. However, this method is easily interfered by external environmental factors. At the same time, the shape of the button silk screen is complex, and a single silk screen will produce multiple connected domains. At the same time, the bright part of the touch screen will cause interference and reduce accuracy.

[0004] The sliding window method is to slide the set template in the original image in an ergodic manner, and then generate a new image with the template's upper left corner coordinates representing the template's position, reflecting the matching degree of all points in the original image when they coincide with the template's upper left corner coordinates. In this image, find the point with the largest pixel, that is, find the position of the template's upper left corner coordinates when the matching degree is the highest, thereby achieving the positioning of the target. This method has high positioning accuracy, but low efficiency and cannot be used in actual production activities.

[0005] At present, a large amount of labor is needed to detect the appearance defects of the product in the appearance inspection link of the central control panel of the car before it leaves the factory. During the specific inspection, the workers need to stare at the product repeatedly under high-brightness lighting conditions. However, with the increase of eye fatigue and the increase of the number of inspections, the missed inspection and false inspection rates will gradually increase, and the inspection efficiency will gradually decrease. This makes manual inspection inefficient, costly, and the inspection results cannot be guaranteed, and the product quality cannot be strictly controlled. Due to the increasing production and quality requirements of the central control panel of the car, the manual inspection indicators cannot be quantified, lack unified standards, and have low efficiency. Therefore, a faster and more effective method is needed to replace manual inspection. Deep learning method is a character recognition based on deep learning, which is a new idea of ​​character recognition that has become popular in recent years. By training a large number of character samples and inputting them into the classifier, the fuzzy mapping relationship between the character image and the output result is obtained, thereby realizing target positioning, which can effectively solve the above technical problems. Summary of the invention

[0006] In order to effectively solve the above technical problems, the present invention provides a method for detecting the appearance of a central control panel of an automobile based on deep learning, which is performed according to the following steps:

[0007] Step 1: Collect and input the sample button silk screen image through the image sensor;

[0008] Step 2: Locate the sample button silk screen image, obtain the coordinates of the sample button silk screen image, and introduce the deep learning neural network model to make it more suitable for the detection of the current scene, including:

[0009] Mark all the collected sample button silk screen images, determine the resolution of each sample button silk screen image, divide them into two parts: training data set and test data set, use AlexNet convolutional neural network model, randomly extract a certain number of button silk screen images from the training data set for training, and use the images in the test data set for testing;

[0010] Step 3: Acquire the image of the product to be inspected through the image sensor;

[0011] Step 4: Cut out the button silk screen image of the product to be tested;

[0012] Step 5: Perform template matching and brightness measurement to obtain a percentage; the template matching is to compare the button silk screen image cut out in step 4 with the image of the corresponding position in the sample; the brightness measurement is to determine whether the brightness of each button silk screen image on the product to be tested is consistent;

[0013] Step 6: Compare with the preset threshold and determine the result;

[0014] Step 7: Output the results.

[0015] Furthermore, the image sensor in step 1 and step 3 is a digital camera using a CMOS camera.

[0016] Furthermore, the step 2 also includes: the AlexNet convolutional neural network model is trained using five layers of convolution and three layers of full connection, and the resolution size of the sample button silk screen image is processed to 224×224 resolution; the input layer, the input is 224×224×3, through an 11×11 convolution kernel, a sliding step size of 4 pixels, 96 feature maps are output and pooled; network layer 1, using a 5×5 convolution kernel, convolution generates 256 feature maps and pools; network layer 2, using a 5×5 convolution kernel, convolution generates 256 feature maps; network layer 3, using Using a 3×3 convolution kernel, convolution generates 384 feature maps; network layer 4, using a 3×3 convolution kernel, convolution generates 384 feature maps; network layer 5, using a 3×3 convolution kernel, convolution generates 256 feature maps; network layer 6 is the first fully connected layer; network layers 7 and 8, as feature extraction layers, use the features of the network layer 6 as extreme learning machines for classification training, and let the extreme learning machine calculate parameters; the AlexNet convolutional neural network model uses a linear positive single Relu function as an activation function in each convolution layer.

[0017] Furthermore, in step 5, the template matching uses the normalized square difference matching method. When the perfect match is achieved, the matching degree is 0. The larger the matching value, the worse the matching degree. The matching value calculation formula is:

[0018]

[0019] In the formula, I(x, y) represents the button silk screen image of the product to be tested, T(x′, y′) represents the button silk screen template image of the sample, and I(x+x′, y+y′) represents the pixel point of the button silk screen image covered by the button silk screen template image when the coordinates of the upper left corner of the button silk screen template image are located at (x, y) in the button silk screen image. The coordinates of the upper left corner of the button silk screen template image in the button silk screen image represent the position of the button silk screen template image, which reflects the matching degree of all points in the button silk screen image when they coincide with the coordinates of the upper left corner of the button silk screen template image. The point with the largest pixel is found in this image, that is, the position of the coordinates of the upper left corner of the button silk screen template image when the matching degree is the highest is found, thereby achieving matching.

[0020] The template matching makes the shape errors and position deviations of the button silk screen have more obvious similarity differences, thereby improving the accuracy of judgment.

[0021] Furthermore, in step 5, the brightness measurement is performed using the formula The brightness mean is calculated to be the average brightness of all the button screen images involved in the consistency comparison, and the brightness measurement can be applied to the detection of the same type of products in different batches.

[0022] Furthermore, in step six, the preset threshold setting modification interface allows the user to modify the threshold according to actual needs to accommodate various types of products.

[0023] The beneficial effects of the present invention are:

[0024] (1) The present invention discloses a method for detecting the appearance of a central control panel of an automobile based on deep learning. The method applies image processing technology to the field of appearance detection of the central control panel of an automobile, and can obtain detection results quickly and conveniently, thereby solving the problems of low efficiency, time-consuming and labor-intensive reading, and low accuracy of traditional naked-eye detection.

[0025] (2) The present invention discloses a method for detecting the appearance of a central control panel of an automobile based on deep learning, which introduces a neural network model of deep learning into target positioning for templates, and through improvement, makes it more suitable for the scenario of central control panel detection.

[0026] (3) Compared with traditional nonlinear functions such as the Sigmoid function, the AlexNet convolutional neural network model is more suitable for gradient descent and back propagation processes, and can effectively avoid the problems of gradient explosion and gradient disappearance.

[0027] (4) Since the Relu function is linear, it has a better computing speed than the Sigmoid nonlinear function. After continuous accumulation, more complex image features can be detected. During the training process, classification training is performed based on the difference size to form a complete network structure. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to better express the technical solution of the present invention, the present invention will be described with drawings as follows:

[0029] Figure 1 Schematic diagram of the process of embodiment 1;

[0030] Figure 2 Example 1 AlexNet network structure diagram;

[0031] Explanation of the accompanying figures: 1. input layer, 2. network layer 1, 3. network layer 2, 4. network layer 3, 5. network layer 4, 6. network layer 5, 7. network layer 6, 8. network layer 7, 9, and network layer 8. DETAILED DESCRIPTION

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

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

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

[0035] Example 1 See Figure 1 , a method for detecting the appearance of a central control panel of an automobile based on deep learning, comprising the following steps:

[0036] Step 1: Collect and input the sample button silk screen image by using a digital camera with a CMOS camera.

[0037] Step 2: Locate the sample button silk screen image, obtain the coordinates of the sample button silk screen image, and introduce the deep learning neural network model to make it more suitable for the detection of the current scene, including:

[0038] All collected sample button silk screen images are marked, and the resolution of each sample button silk screen image is determined and divided into two parts: training data set and test data set. Using AlexNet convolutional neural network model, a certain number of button silk screen images are randomly selected from the training data set for training, and the images in the test data set are used for testing. AlexNet convolutional neural network model is trained using five layers of convolution and three layers of full connection, and the resolution of the sample button silk screen image is processed to 224×224 resolution. The input layer (1) has an input of 224×224×3, and passes through a 11×11 convolution kernel with a sliding step of 4 pixels, outputting 96 feature maps and pooling. The network layer 1 (2) uses a 5×5 convolution kernel and convolution generates 25 6 feature maps are pooled; network layer 2 (3), using a 5×5 convolution kernel, convolution generates 256 feature maps; network layer 3 (4), using a 3×3 convolution kernel, convolution generates 384 feature maps; network layer 4 (5), using a 3×3 convolution kernel, convolution generates 384 feature maps; network layer 5 (6), using a 3×3 convolution kernel, convolution generates 256 feature maps; network layer 6 (7) is the first fully connected layer; network layer 7 (8) and network layer 8 (9), as feature extraction layers, use the features of network layer 6 (7) as extreme learning machines for classification training, and let the extreme learning machine calculate the parameters; the AlexNet convolutional neural network model uses the linear positive single ReLU function as the activation function in each convolution layer. Compared with traditional nonlinear functions such as the Sigmoid function, the linear positive single Relu function is more suitable for gradient descent and back propagation processes, avoiding gradient explosion and gradient disappearance problems. At the same time, because the Relu function is linear, it has a better computing speed than the Sigmoid nonlinear function. Therefore, after continuous accumulation, more complex image features can be detected. During the training process, classification training is carried out according to the difference size, and a complete network structure is formed. During the training process, the recognition parameters are tuned. When the optimal value is reached, the entire training process is completed to build a model suitable for key screen printing recognition and positioning.

[0039] Step 3: Acquire the image of the product to be inspected by using a digital camera with a CMOS camera, and pre-process the image of the product to be inspected.

[0040] Step 4: Cut out the button silk-screen image of the product to be tested.

[0041] Step 5: Perform template matching and brightness measurement to obtain the percentage.

[0042] Template matching is to compare the button silk screen image cut out in step 4 with the image of the corresponding position in the sample. For the calculation of matching degree, there are currently methods such as square difference matching, normalized square difference matching, normalized correlation matching, and histogram matching. Considering the speed and accuracy of matching, the normalized square difference matching method is used, which is a compromise between matching efficiency and matching success rate. The matching degree is 0 when it is a perfect match. The larger the matching value, the worse the fit. The matching value calculation formula is:

[0043]

[0044] In the formula, I(x, y) represents the button screen image of the product to be tested, T(x′, y′) represents the button screen template image of the sample, and I(x+x′, y+y′) represents the pixel point of the button screen image covered by the button screen template image when the coordinates of the upper left corner of the button screen template image are located at (x, y) in the button screen image. The coordinates of the upper left corner of the button screen template image in the button screen image represent the position of the button screen template image, which reflects the image of the matching degree when all points in the button screen image coincide with the coordinates of the upper left corner of the button screen template image. Find the point with the largest pixel in this image, that is, find the position of the coordinates of the upper left corner of the button screen template image when the matching degree is the highest, thus achieving matching. Template matching makes the shape errors and position offsets of the button screen printing have more obvious similarity differences, improving the accuracy of judgment.

[0045] The principle of the template matching algorithm is to slide the set digital template in the original image in an ergodic manner, and then generate a new image with the template's upper left corner coordinates representing the template's position, reflecting the matching degree of all points in the original image when they coincide with the template's upper left corner coordinates. In this image, find the point with the largest pixel, that is, find the position of the template's upper left corner coordinates when the matching degree is the highest, thus achieving matching. Since this method has a high time complexity, it is adopted to directly detect the similarity at the corresponding position to improve the detection efficiency.

[0046] The brightness measurement is to determine whether the brightness of the silk-screen images of each button on the product to be tested is consistent. Due to different production batches of the same type of product, the average zero degree will also be different. The brightness measurement uses the formula: The brightness mean is calculated as the average brightness of all button screen images involved in the consistency comparison. The brightness measurement can be applied to the detection of the same type of products in different batches.

[0047] Step 6: Compare with the preset threshold, determine the result, and set the preset threshold change interface. Users can change the threshold according to actual needs to adapt to various types of products. In terms of threshold setting, it is generally set to 75% according to the similarity between different silk-screen shapes. This can not only detect printing errors, but also effectively prevent misjudgment caused by changes in the external lighting environment. The brightness deviation threshold can generally be set to 15%, which will be adjusted due to the different brightness of the product itself. For example, the absolute value of the difference between the brightness mean of a certain silk screen and the overall silk screen is 5, and the brightness mean is 25, then the deviation is 20%. If the absolute value of the difference is 5, but the brightness mean is 50, then the deviation is 10%. Users can adjust it according to different products. If there is a problem with a silk screen and it does not emit light at all, the deviation is 100%. In the hardware, the threshold change interface is connected to the host computer and is equipped with a visual interface for user modification.

[0048] Step 7: Output the judgment result and the detection is completed.

[0049] The above-mentioned embodiments only express several implementation methods of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.

Claims

1. A method for detecting the appearance of a central control panel of an automobile based on deep learning, characterized in that: Follow these steps: Step 1: Collect and input the sample button silk screen image through the image sensor; Step 2: Locate the sample button silk screen image, obtain the coordinates of the sample button silk screen image, and introduce the deep learning neural network model, including: All collected sample button silk screen images are marked, the resolution of each sample button silk screen image is determined, and the images are divided into two parts: training data set and test data set. Using the AlexNet convolutional neural network model, a certain number of button silk screen images are randomly selected from the training data set for training, and the images in the test data set are used for testing; Step 3: Acquire the image of the product to be inspected through the image sensor; Step 4: The trained neural network model is obtained through step 2, the image of the product to be detected obtained in step 3 is positioned, the coordinates of the silk-screen image of the key to be detected are read, and the silk-screen image of the key of the product to be detected is cut out; Step 5: Perform template matching and brightness measurement to obtain a percentage; template matching is to compare the button silk screen image cut out in step 4 with the image of the corresponding position in the sample; brightness measurement is to determine whether the brightness of each button silk screen image on the product to be tested is consistent; Step 6: Compare with the preset threshold and determine the result; Step 7: Output the results.

2. The method for detecting the appearance of a central control panel of an automobile based on deep learning according to claim 1, characterized in that: The image sensor in step 1 and step 3 is a digital camera using a CMOS camera.

3. The method for detecting the appearance of a central control panel of an automobile based on deep learning according to claim 1, characterized in that: The step 2 also includes: the AlexNet convolutional neural network model is trained using five layers of convolution and three layers of full connection, and the resolution size of the sample button silk screen image is processed to 224×224 resolution; the input layer, the input is 224×224×3, through an 11×11 convolution kernel, a sliding step size of 4 pixels, 96 feature maps are output and pooled; network layer 1, using a 5×5 convolution kernel, convolution generates 256 feature maps and pools; network layer 2, using a 5×5 convolution kernel, convolution generates 256 feature maps; network layer 3, using The convolution kernel of 3×3 is used to generate 384 feature maps. The network layer 4 uses the convolution kernel of 3×3 to generate 384 feature maps. The network layer 5 uses the convolution kernel of 3×3 to generate 256 feature maps. The network layer 6 is the first fully connected layer. The network layers 7 and 8 are used as feature extraction layers. The features of the network layer 6 are used as extreme learning machines for classification training, and the extreme learning machines are used to calculate the parameters. The AlexNet convolutional neural network model uses the linear positive single Relu function as the activation function in each convolution layer.

4. The method for detecting the appearance of a central control panel of an automobile based on deep learning according to claim 1, characterized in that: In step 5, the template matching uses the normalized square difference matching method. The matching degree is 0 when the perfect match occurs. The larger the matching value, the worse the matching degree. The matching value calculation formula is: In the formula, I(x,y) represents the button screen image of the product to be tested. The key screen printing template image of the sample is represented, (x+x, y+y represents the pixel point of the key screen printing template image covered by the key screen printing template image when the coordinates of the upper left corner of the key screen printing template image are located at (x, y) in the key screen printing image, the coordinates of the upper left corner of the key screen printing template image in the key screen printing image represent the position of the key screen printing template image, and an image showing the matching degree of all points in the key screen printing image when they coincide with the coordinates of the upper left corner of the key screen printing template image is shown, and the point with the largest pixel is found in this image, that is, the position of the coordinates of the upper left corner of the key screen printing template image when the matching degree is the highest is found, thereby achieving matching.

5. The method for detecting the appearance of a central control panel of an automobile based on deep learning according to claim 1, characterized in that: In step 5, the brightness is measured using the formula: The brightness mean is calculated as the average brightness of all button silk screen images involved in the consistency comparison.

6. The method for detecting the appearance of a central control panel of an automobile based on deep learning according to claim 1, characterized in that: In step six, a threshold setting change interface is preset.

Citation Information

Patent Citations

  • Method for detecting package IC (Integrated Circuit) chip defects based on feature template matching and in-depth learning

    CN108982508A

  • A visual recognition defect detection method based on printed matter characters

    CN109308700A