OLED wet film defect detection method based on lightweight semantic segmentation network

Through a method based on a lightweight semantic segmentation network, multiple down-sampling and convolution processes are used to generate defect maps, which solves the problem of cumbersome negative sample acquisition and training processes in traditional methods, and achieves fast and accurate OLED wet film defect detection.

WO2024174349A1PCT designated stage expired Publication Date: 2024-08-29JIHUA LAB

Patent Information

Application Number
PCT/CN2023/085981
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-22
Filing Date
2023-04-03
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

Traditional deep learning methods require a large number of negative samples and cumbersome training processes in OLED wet film defect detection, which cannot meet the needs of rapid detection.

Method used

A method based on a lightweight semantic segmentation network is used to generate a defect map of the OLED wet film through multiple preset multiple downsampling and convolution processing, and parallel processing and a half-precision model are used to accelerate the detection process.

Benefits of technology

Fast and simple OLED wet film defect detection is achieved, meeting the need for rapid detection and improving detection speed and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023085981_29082024_PF_FP_ABST
    Figure CN2023085981_29082024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to an OLED wet film defect detection method based on a lightweight semantic segmentation network. The OLED wet film defect detection method based on a lightweight semantic segmentation network comprises: acquiring an image to be recognized, and performing preset multiples of downsampling on said image a plurality of times, the multiples of each downsampling being different; from the downsampling result of the maximum multiple, performing convolution and corresponding multiples of upsampling, and splicing the upsampling result with the downsampling result having the same size until a first image having the same size as that of said image is obtained; and performing convolution on the first image a preset number of times to obtain a defect map of a preset type corresponding to an OLED wet film. Using the method can meet the requirements for rapid tests of OLED wet films.
Need to check novelty before this filing date? Find Prior Art

Description

OLED wet film defect detection method based on lightweight semantic segmentation network Technical Field

[0001] The present application relates to the field of OLED technology, and in particular to an OLED wet film defect detection method based on a lightweight semantic segmentation network. Background Art

[0002] Defect detection is a key part of OLED production. Due to the high labor intensity, subjective judgment, and false detections and missed detections caused by fatigue in manual inspection, deep learning (DL) methods have been widely used in the field of industrial quality inspection.

[0003] Traditional deep learning methods for defect recognition require a large number of negative samples (i.e., defect samples) to train the deep learning method. The execution process of traditional deep learning methods is cumbersome, making them unable to meet the needs of rapid detection.

[0004] Summary of the Invention

[0005] Based on this, it is necessary to address the above technical problems and provide an OLED wet film defect detection method based on a lightweight semantic segmentation network that can achieve rapid detection of OLED wet films.

[0006] In a first aspect, the present application provides a method for detecting OLED wet film defects based on a lightweight semantic segmentation network. The method comprises:

[0007] Acquire an image to be identified, and perform downsampling of the image to be identified multiple times by a preset multiple, wherein the multiple of each downsampling is different;

[0008] Perform convolution starting from the downsampling result with the largest multiple and upsampling with the corresponding multiple, and concatenate the upsampling result with the downsampling result of the same size until a first image with the same size as the image to be recognized is obtained;

[0009] Convolution is performed on the first image for a preset number of times to obtain a defect map of the OLED wet film corresponding to a preset type.

[0010] In one embodiment, the acquiring of the image to be identified, performing multiple downsampling of the image to be identified by a preset multiple, wherein the multiple of each downsampling is different, further comprises:

[0011] An image to be identified is acquired, and downsampling is performed on the image to be identified multiple times in parallel with a preset multiple, wherein the multiple of each downsampling is different.

[0012] In one embodiment, the acquiring of the image to be identified and performing downsampling of the image to be identified multiple times by a preset multiple, wherein the downsampling multiples are different each time, include:

[0013] Sort the preset multiples to obtain the sorting results;

[0014] The images to be identified are sequentially downsampled by corresponding multiples according to the sorting results.

[0015] In one embodiment, the preset multiple is 2 to the power of N, where N is a plurality of consecutive positive integers, and the convolution is performed starting from the downsampling result with the largest multiple and the upsampling of the corresponding multiple, and the upsampling result is spliced ​​with the downsampling result of the same size until a first image of the same size as the image to be recognized is obtained, including:

[0016] Perform convolution and 2x upsampling starting from the downsampling result with the largest multiple, and concatenate the upsampling result with the downsampling result of the same size to obtain the first sub-image;

[0017] The first sub-image is convolved and up-sampled by a factor of 2, and the up-sampling result is spliced ​​with the down-sampling result of the same size to obtain a second sub-image, and so on until a first image of the same size as the image to be recognized is obtained.

[0018] In one embodiment, the convolution is performed starting from the downsampling result with the largest multiple and upsampling with the corresponding multiple, and the upsampling result is spliced ​​with the downsampling result of the same size until a first image of the same size as the image to be recognized is obtained, including:

[0019] Start convolution from the downsampling result with the largest multiple and perform upsampling with the corresponding multiple;

[0020] The up-sampling results are batch normalized and activated;

[0021] The processed up-sampling result is spliced ​​with the down-sampling result of the same size until a first image of the same size as the image to be recognized is obtained.

[0022] In one embodiment, the step of acquiring the image to be identified and downsampling the image to be identified multiple times by a preset multiple, wherein each downsampling multiple is different, comprises:

[0023] Obtain a negative sample of the OLED wet film;

[0024] The negative samples are used to train the parameters of the convolution, downsampling and upsampling.

[0025] In one embodiment, obtaining a negative sample of an OLED wet film includes:

[0026] Obtain positive samples of OLED wet film and randomly generate masks;

[0027] Binarizing the positive sample to obtain a binary image;

[0028] Performing contour extraction on the binarized image to distinguish the pixel slot area and the background area in the positive sample;

[0029] The mask is randomly deformed, and the deformed mask is placed on the positive sample to obtain a negative sample of the OLED wet film.

[0030] In one embodiment, randomly deforming the mask and placing the deformed mask on the positive sample to obtain a negative sample of the OLED wet film includes:

[0031] Sampling pixel values ​​in a pixel slot area in the positive sample to obtain sampled pixel values;

[0032] Assign the sampled pixel value to the deformed mask.

[0033] In one embodiment, the negative sample of the OLED wet film includes preset defect types, and the preset defect types include: one or more of: over-doping type, under-doping type, scattered point type, bridge type, overflow type and under-doping type.

[0034] In a second aspect, the present application further provides an OLED wet film defect detection method based on a lightweight semantic segmentation network, the method comprising:

[0035] Acquire multiple images to be identified of the OLED wet film by using multiple image acquisition devices;

[0036] Receiving multiple images to be recognized in parallel through a processing pipeline, and transmitting the multiple images to be recognized to multiple recognition models deployed in the GPU respectively;

[0037] Based on the recognition model, the image to be recognized is downsampled multiple times by a preset multiple, where the multiple of each downsampling is different; convolution and upsampling by a corresponding multiple are performed starting from the downsampling result with the largest multiple, and the upsampling result is spliced ​​with the downsampling result of the same size until a first image of the same size as the image to be recognized is obtained; convolution is performed on the first image a preset number of times to obtain a defect map corresponding to a preset type of the OLED wet film.

[0038] In one embodiment, transmitting the plurality of images to be recognized to the plurality of recognition models deployed in the GPU respectively includes:

[0039] Transmitting the plurality of images to be identified to a data processing buffer area;

[0040] According to the preset resource configuration, the multiple images to be recognized in the data processing buffer are allocated to the multiple recognition models deployed in the GPU.

[0041] In one embodiment, the recognition model is a half-precision model.

[0042] In a third aspect, the present application further provides an OLED wet film defect detection device based on a lightweight semantic segmentation network, the device comprising:

[0043] A downsampling module is used to obtain an image to be identified and perform multiple downsampling of the image to be identified by a preset multiple, wherein the multiple of each downsampling is different;

[0044] an upsampling module, configured to perform convolution starting from the downsampling result with the largest multiple and upsampling by a corresponding multiple, and concatenate the upsampling result with the downsampling result of the same size until a first image of the same size as the image to be recognized is obtained;

[0045] The recognition module is configured to perform convolution on the first image for a preset number of times to obtain a defect map of the OLED wet film corresponding to a preset type.

[0046] In a fourth aspect, the present application further provides an OLED wet film defect detection device based on a lightweight semantic segmentation network, the device comprising:

[0047] An acquisition module, configured to acquire multiple images of the OLED wet film to be identified through multiple image acquisition devices;

[0048] A transmission module, configured to receive a plurality of images to be recognized in parallel through a processing pipeline, and transmit the plurality of images to be recognized to a plurality of recognition models deployed in the GPU respectively;

[0049] A processing module is configured to perform multiple downsampling of the image to be identified by a preset multiple based on the recognition model, wherein the multiple of each downsampling is different; perform convolution and upsampling of a corresponding multiple starting from the downsampling result with the largest multiple, and splice the upsampling result with the downsampling result of the same size until a first image of the same size as the image to be identified is obtained; and perform convolution of the first image a preset number of times to obtain a defect map of a preset type corresponding to the OLED wet film.

[0050] In a fifth aspect, the present application further provides a computer device. The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it implements the steps of the defect sample generation method described in the first aspect or the steps of the OLED wet film defect detection method based on a lightweight semantic segmentation network described in the second aspect.

[0051] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the OLED wet film defect detection method based on a lightweight semantic segmentation network as described in the first aspect or the steps of the OLED wet film defect detection method based on a lightweight semantic segmentation network as described in the second aspect.

[0052] In a seventh aspect, the present application further provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the OLED wet film defect detection method based on a lightweight semantic segmentation network as described in the first aspect or the steps of the OLED wet film defect detection method based on a lightweight semantic segmentation network as described in the second aspect.

[0053] The above-mentioned OLED wet film defect detection method based on a lightweight semantic segmentation network obtains an image to be identified, performs multiple downsampling of the image to be identified by a preset multiple, wherein the multiple of each downsampling is different; performs convolution and upsampling of the corresponding multiple starting from the downsampling result with the largest multiple, and splices the upsampling result with the downsampling result of the same size until a first image of the same size as the image to be identified is obtained; performs convolution of the first image a preset number of times to obtain a defect map of the preset type corresponding to the OLED wet film. In the above manner, after multiple downsampling, the present application performs convolution and upsampling of the downsampling result by a corresponding multiple, and splices the upsampling result with the downsampling result of the same size until a first image of the same size as the image to be identified is obtained, performs convolution of the first image a preset number of times to obtain a defect map of the preset type corresponding to the OLED wet film, and the processing process is simple and fast, which can meet the needs of rapid detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] FIG1 is a schematic diagram of a flow chart of an OLED wet film defect detection method based on a lightweight semantic segmentation network in one embodiment;

[0055] FIG2 is a front view schematic diagram of various defect images in one embodiment;

[0056] FIG3 is a schematic diagram of image changes in an OLED wet film defect detection method based on a lightweight semantic segmentation network according to an embodiment;

[0057] FIG4 is a schematic flow chart of an OLED wet film defect detection method based on a lightweight semantic segmentation network in another embodiment;

[0058] FIG5 is a schematic diagram of the deployment of an OLED wet film defect detection device based on a lightweight semantic segmentation network in one embodiment;

[0059] FIG6 is a block diagram of an OLED wet film defect detection device based on a lightweight semantic segmentation network in one embodiment;

[0060] FIG7 is a block diagram of an OLED wet film defect detection device based on a lightweight semantic segmentation network according to another embodiment;

[0061] FIG8 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0063] In one embodiment, as shown in FIG1 , a method for detecting OLED wet film defects based on a lightweight semantic segmentation network is provided, comprising the following steps:

[0064] Step 110 : obtaining an image to be identified, and performing downsampling of the image to be identified multiple times by a preset multiple, wherein the multiple of downsampling is different each time.

[0065] This application is applied to devices such as computers and servers for identifying OLED wet film defects. The device can receive an externally transmitted OLED wet film as an image to be identified, or obtain the OLED wet film as an image to be identified through a camera module. The OLED wet film refers to the image after inkjet printing on an OLED substrate by an inkjet printer (before drying or other steps).

[0066] After obtaining the image to be recognized, the device performs multiple downsampling of the image to be recognized by a preset multiple, wherein the multiple of each downsampling is different, and multiple downsampling results are obtained.

[0067] As an embodiment, an image to be recognized is obtained, and the image to be recognized is downsampled multiple times by a preset multiple, wherein the downsampling multiple is different each time, including:

[0068] Sort the preset multiples to obtain the sorting results;

[0069] The images to be identified are sequentially downsampled by corresponding multiples according to the sorting results.

[0070] Specifically, the preset multiple is 2 to the power of N, where N is a plurality of consecutive positive integers, that is, N is a plurality of consecutive positive integers selected from 1, 2, 3, 4...+∞. For example, in this embodiment, the number of downsampling is 4, and the corresponding preset multiples include 16 times, 8 times, 4 times, and 2 times. In a specific implementation, the number of downsampling is 5, and the corresponding preset multiples may include 32 times, 16 times, 8 times, 4 times, and 2 times.

[0071] First, multiple preset multiples are sorted to obtain the sorting results, and then the image to be recognized is downsampled by corresponding multiples in sequence according to the sorting results. For example, the image to be recognized can be downsampled in the order of 16 times, 8 times, 4 times, and 2 times, or the image to be recognized can be downsampled in the order of 2 times, 4 times, 8 times, and 16 times to obtain 4 downsampling results.

[0072] As an embodiment, an image to be recognized is obtained, and the image to be recognized is down-sampled multiple times by a preset multiple, wherein the down-sampling multiple is different each time, further comprising:

[0073] An image to be identified is acquired, and downsampling is performed on the image to be identified multiple times in parallel with a preset multiple, wherein the multiple of each downsampling is different.

[0074] Specifically, in order to increase the operating speed, in this embodiment, when performing multiple downsampling, the image to be recognized is downsampled multiple times by a preset multiple in a parallel manner.

[0075] Step 120 , starting from the downsampling result with the largest multiple, convolution and upsampling with the corresponding multiple are performed, and the upsampling result is spliced ​​with the downsampling result of the same size, until a first image with the same size as the image to be recognized is obtained.

[0076] Specifically, convolution and upsampling of the corresponding multiple are performed starting from the downsampling result with the largest multiple to obtain the corresponding upsampling, and then the upsampling result is spliced ​​with the downsampling result of the same size, and then convolution and upsampling of the spliced ​​image are performed on the corresponding multiple, and so on, until a first image with the same size as the image to be identified is obtained.

[0077] As an embodiment, convolution is performed starting from the downsampling result with the largest multiple and upsampling with the corresponding multiple, and the upsampling result is spliced ​​with the downsampling result of the same size until a first image of the same size as the image to be recognized is obtained, including:

[0078] Perform convolution and 2x upsampling starting from the downsampling result with the largest multiple, and concatenate the upsampling result with the downsampling result of the same size to obtain the first sub-image;

[0079] The first sub-image is convolved and up-sampled by a factor of 2, and the up-sampling result is spliced ​​with the down-sampling result of the same size to obtain a second sub-image, and so on until a first image of the same size as the image to be recognized is obtained.

[0080] Specifically, the preset multiple is 2 to the power of N, where N is a plurality of consecutive positive integers. For example, the preset multiples include 16 times, 8 times, 4 times, and 2 times. Then, convolution is performed starting from the 16-fold downsampling result, as well as upsampling of the corresponding multiples. For example, convolution and 2-fold upsampling are first performed on the 16-fold downsampling result to obtain the first upsampling result; then, the first upsampling result and the downsampling results of the same size among the multiple downsampling results are spliced ​​to obtain a first sub-image. The image size of the first sub-image is the same as that of the 8-fold downsampling result. The first sub-image and the 8-fold downsampling result are spliced ​​to obtain a second sub-image.

[0081] Then, the second sub-image is convolved and upsampled by 2 times to obtain a third sub-image. The size of the third sub-image is the same as the 4-times downsampling result. The third sub-image and the 4-times downsampling result are spliced ​​to obtain a fourth sub-image, and so on, until a first image with the same size as the image to be identified is obtained.

[0082] Step 130 : performing convolution on the first image for a preset number of times to obtain a defect map of the OLED wet film corresponding to a preset type.

[0083] After obtaining the first image, convolution is performed on the first image for a preset number of times, which can be set according to actual conditions, such as 2 or 3 times. After the preset number of convolutions, a defect map of the OLED wet film corresponding to a preset type is obtained.

[0084] Among them, the defect maps corresponding to the preset types include one or more of the overprint type, underprint type, scattered point type, bridge type, overflow type and incomplete type. In inkjet printing, due to reasons such as excessive or insufficient ink volume, landing deviation, uneven landing, and ink non-wetting, wet film defects such as overprinting, underprinting, scattered points, bridge, overflow, and incomplete coverage may occur. The various defects are shown in Figure 2. Among them, the mask morphological characteristics of the overprint defect are that it intersects with a pixel slot and the surrounding background area; the mask morphological characteristics of the underprint defect are that it has no intersection with the background area; the morphological characteristics of the scattered points are that it has no intersection with the pixel slot area; the mask morphological characteristics of the bridge defect are that it has an intersection with the areas of two adjacent pixel slots; the mask morphological characteristics of the overflow defect are that it intersects with the entire area of ​​a pixel slot and has no intersection with the remaining pixel slots; the mask morphological characteristics of the incomplete defect are the inverse set that only intersects with one pixel slot.

[0085] The above-mentioned OLED wet film defect detection method based on a lightweight semantic segmentation network obtains an image to be identified, performs multiple downsampling of the image to be identified by a preset multiple, wherein the multiple of each downsampling is different; performs convolution and upsampling of the corresponding multiple starting from the downsampling result with the largest multiple, and splices the upsampling result with the downsampling result of the same size until a first image of the same size as the image to be identified is obtained; performs convolution of the first image a preset number of times to obtain a defect map of the preset type corresponding to the OLED wet film. In the above manner, after multiple downsampling, the present application performs convolution and upsampling of the downsampling result by a corresponding multiple, and splices the upsampling result with the downsampling result of the same size until a first image of the same size as the image to be identified is obtained, performs convolution of the first image a preset number of times to obtain a defect map of the preset type corresponding to the OLED wet film, and the processing process is simple and fast, which can meet the needs of rapid detection.

[0086] In one embodiment, convolution is performed starting from the downsampling result with the largest multiple and upsampling with the corresponding multiple, and the upsampling result is concatenated with the downsampling result of the same size until a first image of the same size as the image to be recognized is obtained, including:

[0087] Start convolution from the downsampling result with the largest multiple and perform upsampling with the corresponding multiple;

[0088] The up-sampling results are batch normalized and activated;

[0089] The processed up-sampling result is spliced ​​with the down-sampling result of the same size until a first image of the same size as the image to be recognized is obtained.

[0090] Specifically, to improve accuracy, in this embodiment, convolution is performed starting from the downsampling result with the largest multiple and upsampling of the corresponding multiple is performed, and then batch normalization and activation function processing are performed on the results of each upsampling, and then the processed upsampling results are spliced ​​with the downsampling results of the same size. Exemplarily, the preset multiples include 16 times, 8 times, 4 times, and 2 times, and convolution is performed starting from the 16-fold downsampling result, as well as upsampling of the corresponding multiples. For example, convolution and 2-fold upsampling are first performed on the 16-fold downsampling result to obtain the first upsampling result, and batch normalization and activation function processing are performed on the first upsampling result; then the processed first upsampling result is spliced ​​with the downsampling results of the same size among the multiple downsampling results to obtain a first sub-image. The image size of the first sub-image is the same as that of the 8-fold downsampling result. The first sub-image and the 8-fold downsampling result are spliced ​​to obtain a second sub-image, and batch normalization and activation function processing are performed on the second sub-image.

[0091] Then, the processed second sub-image is convolved and upsampled by 2 times to obtain a third sub-image, and the third sub-image is batch normalized and activated. The size of the third sub-image is the same as the 4-fold downsampling result. The processed third sub-image and the 4-fold downsampling result are spliced ​​to obtain a fourth sub-image, and so on, until a first image with the same size as the image to be identified is obtained.

[0092] Furthermore, the kernel size of the convolutional layer is 3*3, so that the image size does not change after downsampling and upsampling.

[0093] In one embodiment, as shown in FIG3 , the size of the input image is 1024*1024, the number is 1, and the downsampling is performed through the downsampling module. The downsampling module includes four parallel downsampling layers, which downsample the input image to be identified by 16 times, 8 times, 4 times, and 2 times, respectively. Each downsampling layer adopts the nearest neighbor interpolation method. The parallel design of the four downsampling layers is conducive to parallel computing acceleration. After 16 times downsampling, an image of size 64*64 is obtained. After 8 times downsampling, an image of size 128*128 is obtained. After 4 times downsampling, an image of size 256*256 is obtained. After 2 times downsampling, an image of size 512*512 is obtained. The 4 downsamplings are performed in parallel.

[0094] Then, convolution and upsampling are performed starting from the largest downsampling. Convolve one 64*64 image to obtain a 64*64 feature map, the convolution kernel is 1024, and the convolution kernel size is 3*3, so 1024 images of size 64*64 are obtained. Then, upsampling is performed, and the 1024 images of size 64*64 are upsampled to obtain 1024 images of size 128*128. Then, the 1024 128*128 images obtained by upsampling are spliced ​​with the 8-fold downsampling result to obtain 1025 128*128 images. Then, convolve the 1025 128*128 images (the number of convolution kernels is 3*3). 512, the convolution kernel size is 3*3), and 512 128*128 images are obtained. The 512 128*128 images and the 4-fold downsampling results are spliced ​​to obtain 513 128*128 images. The 513 128*128 images are then convolved (the number of convolution kernels is 256, and the convolution kernel size is 3*3) to obtain 256 256*256 images. And so on. In the specific implementation, after the upsampling process, the upsampling results can also be batch normalized and activated. The input images and the input images can be referred to the following table:

[0095] The final upsampling results in 129 1024x1024 images, with the final image size being the same as the input image. After two convolutions, six defect maps are generated, each corresponding to a predefined defect type. Note that if the input image contains only five defect types, five defect maps are used.

[0096] Furthermore, the step of acquiring the image to be identified and performing multiple downsampling of the image to be identified by a preset multiple, wherein the multiple of each downsampling is different, comprises:

[0097] Obtain a negative sample of the OLED wet film;

[0098] The negative samples are used to train the parameters of the convolution, downsampling and upsampling.

[0099] Specifically, before defect recognition, the various parameters in the convolution, downsampling, and upsampling algorithms described above need to be trained. First, a negative sample of the OLED wet film is obtained. This negative sample includes preset defect types, including over-dosing, under-dosing, scatter, bridge, overflow, and underfill. For example, the training process using negative samples can be the same as that shown in Figure 3. After obtaining the defect image, it is compared with the manual annotation results. The various parameters in the convolution, downsampling, and upsampling algorithms are then adjusted until the final output defect image exceeds the preset accuracy of the manual annotation results, indicating that training is complete.

[0100] Furthermore, during the training process, the loss function is used to determine whether the accuracy of the training result exceeds the preset accuracy. The loss function consists of cross entropy loss and Dice loss, and the loss function is as follows:

[0101] Where C is the number of defect categories, N is the number of pixels, and y n,c and are the true label and predicted probability of the n-th pixel in the c-th class, respectively.

[0102] In traditional technology, cross entropy is generally used as the loss function, while this application adopts a combination of cross entropy loss and Dice loss. Generally, only a small part of the samples are negative samples, and the rest are positive samples. Dice loss balances the relationship between negative samples and positive samples.

[0103] Furthermore, a negative sample of the OLED wet film is obtained, including:

[0104] Obtain positive samples of OLED wet film and randomly generate masks;

[0105] Binarizing the positive sample to obtain a binary image;

[0106] Performing contour extraction on the binarized image to distinguish the pixel slot area and the background area in the positive sample;

[0107] The mask is randomly deformed, and the deformed mask is placed on the positive sample to obtain a negative sample of the OLED wet film.

[0108] Specifically, in the actual production process, on the one hand, due to the high yield rate on the production line, it is difficult to collect defective samples; on the other hand, even if enough negative samples are collected, they still need to be manually and finely labeled. Therefore, in the training process of this embodiment, negative samples of OLED wet film are first generated. Generating negative samples of OLED wet film includes:

[0109] First, a positive sample of the OLED wet film is obtained, and a mask is randomly generated. For example, a random irregular shape generation method based on Blobmaker is used to generate an irregular shape library of various scales and shapes by random point numbers, point positions, and curvature parameters to obtain a mask.

[0110] The positive sample is binarized to obtain a binarized image, which is then contour extracted to distinguish the pixel slot area and background area in the positive sample. The mask is then randomly deformed and placed on the positive sample to obtain a negative sample of the OLED wet film.

[0111] The mask is randomly deformed, and the deformed mask is placed on the positive sample to obtain a negative sample of the OLED wet film, including:

[0112] Sampling pixel values ​​in a pixel slot area in the positive sample to obtain sampled pixel values;

[0113] Assign the sampled pixel value to the deformed mask.

[0114] Specifically, in the process of placing the deformed mask on the positive sample, the pixel values ​​in the pixel slot area of ​​the positive sample are also sampled to obtain the sampled pixel values, and then the sampled pixel values ​​are assigned to the deformed mask, so that the pixel values ​​of the mask are the pixel values ​​in the pixel slot of the positive sample, that is, the pixels of the mask are basically the same as those of the inkjet.

[0115] Based on the same inventive concept, referring to FIG4 , an embodiment of the present application further provides an OLED wet film defect detection method based on a lightweight semantic segmentation network. The OLED wet film defect detection method based on a lightweight semantic segmentation network includes:

[0116] Step 410 , obtaining multiple images of the OLED wet film to be identified by using multiple image acquisition devices;

[0117] Step 420: receiving multiple images to be recognized in parallel through a processing pipeline, and transmitting the multiple images to be recognized to multiple recognition models deployed in the GPU respectively;

[0118] Step 430: Downsampling the image to be recognized multiple times by a preset multiple based on the recognition model, wherein the multiple of each downsampling is different; starting from the downsampling result with the largest multiple, convolution and upsampling by a corresponding multiple are performed, and the upsampling result is spliced ​​with the downsampling result of the same size until a first image of the same size as the image to be recognized is obtained; convolution is performed on the first image a preset number of times to obtain a defect map corresponding to a preset type of the OLED wet film.

[0119] Specifically, in order to improve the processing speed, this embodiment first deploys multiple recognition models in the GPU of the defect recognition device, and the recognition model can implement the method steps described in any of the above embodiments.

[0120] The defect recognition device can be connected to multiple image acquisition devices and obtain multiple images of the OLED wet film as images to be recognized. The multiple images to be recognized are then received in parallel through a processing pipeline, and the multiple images to be recognized are transmitted to multiple recognition models deployed in the GPU. After obtaining the image to be recognized, each recognition model performs multiple downsampling of the image to be recognized by a preset multiple, wherein the multiple of each downsampling is different, and multiple downsampling results are obtained. The preset multiple is 2 to the power of N, where N is a plurality of consecutive positive integers, that is, N is a plurality of consecutive positive integers among 1, 2, 3, 4...+∞. For example, in this embodiment, the downsampling is performed 4 times, and the corresponding preset multiples include 16 times, 8 times, 4 times, and 2 times. In a specific implementation, the downsampling is performed 5 times, and the corresponding preset multiples may include 32 times, 16 times, 8 times, 4 times, and 2 times.

[0121] First, multiple preset magnifications are sorted to obtain a sorting result. Then, based on the sorting result, the image to be identified is sequentially downsampled by the corresponding magnifications. For example, the image to be identified can be downsampled in the order of 16x, 8x, 4x, and 2x, or in the order of 2x, 4x, 8x, and 16x to obtain four downsampling results. To increase the running speed, in this embodiment, the multiple downsampling operations are performed in parallel on the image to be identified.

[0122] Starting with the downsampling result with the largest multiple, convolution and upsampling of the corresponding multiple are performed to obtain the corresponding upsampling. The upsampling result is then spliced ​​with the downsampling result of the same size. The spliced ​​image is then convolved and upsampled by the corresponding multiple, and so on, until a first image of the same size as the image to be identified is obtained. For example, if the preset multiples include 16x, 8x, 4x, and 2x, convolution and upsampling of the corresponding multiples are performed starting with the 16x downsampling result. For example, convolution and upsampling of the 16x downsampling result are first performed and upsampled by 2x to obtain the first upsampling result. The first upsampling result is then spliced ​​with the downsampling results of the same size from the multiple downsampling results to obtain a first sub-image. The image size of the first sub-image is the same as the 8x downsampling result. The first sub-image and the 8x downsampling result are spliced ​​to obtain a second sub-image.

[0123] The second sub-image is then convolved and upsampled by a factor of 2 to obtain a third sub-image. The size of the third sub-image is the same as the result of the 4x downsampling. The third sub-image and the 4x downsampling result are concatenated to obtain a fourth sub-image, and so on, until a first image of the same size as the image to be identified is obtained. After obtaining the first image, the first image is convolved a preset number of times. The preset number of times can be set according to actual conditions, such as 2 or 3 times. After the preset number of convolutions, a defect map corresponding to a preset type of the OLED wet film is obtained. The defect map corresponding to the preset type includes one or more of the following types: overprinting, underprinting, scattering, bridging, overflowing, and incomplete coverage. In inkjet printing, due to reasons such as excessive or insufficient ink volume, landing deviation, uneven landing, and poor ink wetting, wet film defects such as overprinting, underprinting, scattering, bridging, overflowing, and incomplete coverage may occur. The various defects are shown in Figure 2. Among them, the morphological feature of the multiple-dot defect mask is that it has intersections with one pixel slot and the surrounding background area; the morphological feature of the under-dot defect mask is that it has no intersection with the background area; the morphological feature of the scattered point mask is that it has no intersection with the pixel slot area; the morphological feature of the bridge defect mask is that it has intersections with the areas of two adjacent pixel slots; the morphological feature of the overflow defect mask is that it has intersections with the entire area of ​​one pixel slot and has no intersection with the other pixel slots; the morphological feature of the incomplete defect mask is the inverse set that has intersections with only one pixel slot.

[0124] Furthermore, the recognition model is a half-precision model. This model has a small loss in accuracy compared to full-precision models, which can speed up the inference of lightweight semantic segmentation network models by 3 times and reduce GPU memory usage by 45%.

[0125] The above-mentioned OLED wet film defect detection method based on a lightweight semantic segmentation network obtains multiple images to be identified of the OLED wet film through multiple image acquisition devices; receives multiple images to be identified in parallel through a processing pipeline, and transmits the multiple images to be identified to multiple recognition models deployed in the GPU respectively; performs multiple downsampling of the image to be identified based on the recognition model, wherein the multiple of each downsampling is different; performs convolution and upsampling of the corresponding multiple starting from the downsampling result with the largest multiple, and splices the upsampling result with the downsampling result of the same size until a first image of the same size as the image to be identified is obtained; performs convolution of the first image a preset number of times to obtain a defect map of the OLED wet film corresponding to a preset type. In the above manner, the GPU of the present application deploys multiple recognition models, obtains multiple images to be identified of the OLED wet film by receiving multiple image acquisition devices in parallel, has a fast recognition speed, and can quickly meet the detection needs.

[0126] In one embodiment, the plurality of images to be recognized are transmitted to a plurality of recognition models deployed in a GPU, respectively, including:

[0127] Transmitting the plurality of images to be identified to a data processing buffer area;

[0128] According to the preset resource configuration, the multiple images to be recognized in the data processing buffer are allocated to the multiple recognition models deployed in the GPU.

[0129] Specifically, in this embodiment, multiple images to be identified are first transferred to the data processing cache, and then the images to be identified in the cache are allocated to multiple recognition models deployed in the GPU according to the preset resource configuration. The preset resource configuration can be set according to actual conditions, for example, detecting the recognition progress of each recognition model, and then after a certain recognition model is completed, allocating a new image to be identified to the recognition model.

[0130] In one embodiment, referring to FIG5 , the recognition model described in the above embodiment is defined as a PyTorch model, converted into the cross-platform general model format ONNX, and then converted into a TensorRT half-precision model for subsequent Triton inference deployment. The accuracy loss of the detection results of the converted TensorRT half-precision model is small (relative to full precision, the accuracy loss is not large), which can speed up the inference of the lightweight semantic segmentation network model by 3 times and reduce the GPU memory usage by 45%.

[0131] Triton-based inference deployment deploys multiple instances of the TensorRT half-precision model in parallel to a GPU server. The number of GPUs and instances deployed on each GPU can be dynamically adjusted based on actual scenario requirements. Triton-based inference deployment maximizes GPU utilization, improves throughput, and reduces inference costs. The execution process of each embodiment on the GPU can perform the steps described in any of the above embodiments.

[0132] DeepStream receives raw image data from multiple cameras in parallel, decodes it, and directly transfers it to the GPU's data batch buffer. DeepStream then dynamically distributes this data to deployed instance models based on resource allocation for inference operations, ultimately outputting wet film defect detection results. DeepStream-based data transmission can simultaneously process multi-channel camera data, eliminating frequent data copying between the host and GPU and improving data transmission efficiency.

[0133] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0134] Based on the same inventive concept, embodiments of the present application also provide an OLED wet film defect detection device based on a lightweight semantic segmentation network for implementing the aforementioned OLED wet film defect detection method based on a lightweight semantic segmentation network. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more embodiments of the OLED wet film defect detection device based on a lightweight semantic segmentation network provided below can be found in the above-mentioned limitations of the OLED wet film defect detection method based on a lightweight semantic segmentation network, and will not be repeated here.

[0135] In one embodiment, as shown in FIG6 , an OLED wet film defect detection device based on a lightweight semantic segmentation network is provided, comprising:

[0136] A downsampling module 610 is configured to obtain an image to be identified and perform multiple downsampling of the image to be identified by a preset multiple, wherein each downsampling multiple is different;

[0137] an upsampling module 620 configured to perform convolution starting from the downsampling result with the largest multiple and upsampling by a corresponding multiple, and concatenate the upsampling result with the downsampling result of the same size until a first image of the same size as the image to be recognized is obtained;

[0138] The recognition module 630 is configured to perform convolution on the first image for a preset number of times to obtain a defect map of a preset type corresponding to the OLED wet film.

[0139] In one embodiment, the downsampling module 610 is configured to:

[0140] An image to be identified is acquired, and downsampling is performed on the image to be identified multiple times in parallel with a preset multiple, wherein the multiple of each downsampling is different.

[0141] In one embodiment, the downsampling module 610 is configured to:

[0142] Sort the preset multiples to obtain the sorting results;

[0143] The images to be identified are sequentially downsampled by corresponding multiples according to the sorting results.

[0144] In one embodiment, the preset multiple is 2 to the power of N, where N is a plurality of consecutive positive integers. The upsampling module 620 is configured to:

[0145] Perform convolution and 2x upsampling starting from the downsampling result with the largest multiple, and concatenate the upsampling result with the downsampling result of the same size to obtain the first sub-image;

[0146] The first sub-image is convolved and up-sampled by a factor of 2, and the up-sampling result is spliced ​​with the down-sampling result of the same size to obtain a second sub-image, and so on until a first image of the same size as the image to be recognized is obtained.

[0147] In one embodiment, the upsampling module 620 is configured to:

[0148] Start convolution from the downsampling result with the largest multiple and perform upsampling with the corresponding multiple;

[0149] The up-sampling results are batch normalized and activated;

[0150] The processed up-sampling result is spliced ​​with the down-sampling result of the same size until a first image of the same size as the image to be recognized is obtained.

[0151] In one embodiment, the apparatus further comprises:

[0152] An acquisition module (not shown) is used to obtain a negative sample of the OLED wet film;

[0153] The training module (not shown) is used to train the parameters of the convolution, downsampling and upsampling using the negative samples.

[0154] In one embodiment, the acquisition module is configured to:

[0155] Obtain positive samples of OLED wet film and randomly generate masks;

[0156] Binarizing the positive sample to obtain a binary image;

[0157] Performing contour extraction on the binarized image to distinguish the pixel slot area and the background area in the positive sample;

[0158] The mask is randomly deformed, and the deformed mask is placed on the positive sample to obtain a negative sample of the OLED wet film.

[0159] In one embodiment, the acquisition module is configured to:

[0160] Sampling pixel values ​​in a pixel slot area in the positive sample to obtain sampled pixel values;

[0161] Assign the sampled pixel value to the deformed mask.

[0162] In one embodiment, the negative sample of the OLED wet film includes preset defect types, and the preset defect types include: one or more of: over-doping type, under-doping type, scattered point type, bridge type, overflow type and under-doping type.

[0163] Each module in the aforementioned lightweight semantic segmentation network-based OLED wet film defect detection device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in hardware form, or stored in a computer device memory in software form, allowing the processor to call and execute the corresponding operations of each module.

[0164] Based on the same inventive concept, embodiments of the present application also provide an OLED wet film defect detection device based on a lightweight semantic segmentation network for implementing the aforementioned OLED wet film defect detection method based on a lightweight semantic segmentation network. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more embodiments of the OLED wet film defect detection device based on a lightweight semantic segmentation network provided below can be found in the above-mentioned limitations of the OLED wet film defect detection method based on a lightweight semantic segmentation network, and will not be repeated here.

[0165] In one embodiment, as shown in FIG7 , an OLED wet film defect detection device based on a lightweight semantic segmentation network is provided, comprising:

[0166] An acquisition module 710 is configured to acquire multiple images of the OLED wet film to be identified through multiple image acquisition devices;

[0167] A transmission module 720 is configured to receive multiple images to be recognized in parallel through a processing pipeline, and transmit the multiple images to be recognized to multiple recognition models deployed in the GPU respectively;

[0168] Processing module 730 is used to perform multiple downsampling of the image to be identified by a preset multiple based on the recognition model, wherein the multiple of each downsampling is different; starting from the downsampling result with the largest multiple and performing upsampling of the corresponding multiple, and splicing the upsampling result with the downsampling result of the same size until a first image of the same size as the image to be identified is obtained; and performing convolution on the first image a preset number of times to obtain a defect map corresponding to a preset type of the OLED wet film.

[0169] It should be noted that the processing module 730 may be substantially identical to the device described in FIG. 6 .

[0170] In one embodiment, the transmission module 720 is configured to:

[0171] Transmitting the plurality of images to be identified to a data processing buffer area;

[0172] According to the preset resource configuration, the multiple images to be recognized in the data processing buffer are allocated to the multiple recognition models deployed in the GPU.

[0173] In one embodiment, the recognition model is a half-precision model.

[0174] Each module in the aforementioned lightweight semantic segmentation network-based OLED wet film defect detection device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in hardware form, or stored in a computer device memory in software form, allowing the processor to call and execute the corresponding operations of each module.

[0175] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in FIG8 . The computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as OLED wet film images and defect samples. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the steps of a method for detecting OLED wet film defects based on a lightweight semantic segmentation network are implemented.

[0176] Those skilled in the art will understand that the structure shown in FIG8 is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0177] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0178] Acquire an image to be identified, and perform downsampling of the image to be identified multiple times by a preset multiple, wherein the multiple of each downsampling is different;

[0179] Perform convolution starting from the downsampling result with the largest multiple and upsampling with the corresponding multiple, and concatenate the upsampling result with the downsampling result of the same size until a first image with the same size as the image to be recognized is obtained;

[0180] Convolution is performed on the first image for a preset number of times to obtain a defect map of the OLED wet film corresponding to a preset type.

[0181] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0182] An image to be identified is acquired, and downsampling is performed on the image to be identified multiple times in parallel with a preset multiple, wherein the multiple of each downsampling is different.

[0183] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0184] Sort the preset multiples to obtain the sorting results;

[0185] The images to be identified are sequentially downsampled by corresponding multiples according to the sorting results.

[0186] In one embodiment, the preset multiple is 2 to the power of N, where N is a plurality of consecutive positive integers, and when the processor executes the computer program, the processor further implements the following steps:

[0187] Perform convolution and 2x upsampling starting from the downsampling result with the largest multiple, and concatenate the upsampling result with the downsampling result of the same size to obtain the first sub-image;

[0188] The first sub-image is convolved and up-sampled by a factor of 2, and the up-sampling result is spliced ​​with the down-sampling result of the same size to obtain a second sub-image, and so on until a first image of the same size as the image to be recognized is obtained.

[0189] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0190] Start convolution from the downsampling result with the largest multiple and perform upsampling with the corresponding multiple;

[0191] The up-sampling results are batch normalized and activated;

[0192] The processed up-sampling result is spliced ​​with the down-sampling result of the same size until a first image of the same size as the image to be recognized is obtained.

[0193] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0194] Obtain a negative sample of the OLED wet film;

[0195] The negative samples are used to train the parameters of the convolution, downsampling and upsampling.

[0196] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0197] Obtain positive samples of OLED wet film and randomly generate masks;

[0198] Binarizing the positive sample to obtain a binary image;

[0199] Performing contour extraction on the binarized image to distinguish the pixel slot area and the background area in the positive sample;

[0200] The mask is randomly deformed, and the deformed mask is placed on the positive sample to obtain a negative sample of the OLED wet film.

[0201] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0202] Sampling pixel values ​​in a pixel slot area in the positive sample to obtain sampled pixel values;

[0203] Assign the sampled pixel value to the deformed mask.

[0204] In one embodiment, the negative sample of the OLED wet film includes preset defect types, and the preset defect types include: one or more of: over-doping type, under-doping type, scattered point type, bridge type, overflow type and under-doping type.

[0205] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0206] Acquire multiple images to be identified of the OLED wet film by using multiple image acquisition devices;

[0207] Receiving multiple images to be recognized in parallel through a processing pipeline, and transmitting the multiple images to be recognized to multiple recognition models deployed in the GPU respectively;

[0208] Based on the recognition model, the image to be recognized is downsampled multiple times by a preset multiple, where the multiple of each downsampling is different; convolution and upsampling by a corresponding multiple are performed starting from the downsampling result with the largest multiple, and the upsampling result is spliced ​​with the downsampling result of the same size until a first image of the same size as the image to be recognized is obtained; convolution is performed on the first image a preset number of times to obtain a defect map corresponding to a preset type of the OLED wet film.

[0209] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0210] Transmitting the plurality of images to be identified to a data processing buffer area;

[0211] According to the preset resource configuration, the multiple images to be recognized in the data processing buffer are allocated to the multiple recognition models deployed in the GPU.

[0212] In one embodiment, the recognition model is a half-precision model.

[0213] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the OLED wet film defect detection method based on a lightweight semantic segmentation network described in any of the above embodiments are implemented.

[0214] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.

[0215] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0216] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A method for detecting OLED wet film defects based on a lightweight semantic segmentation network, characterized in that: The method comprises: Acquire an image to be identified, and perform multiple downsampling of the image to be identified by a preset multiple, wherein the multiple of each downsampling is different; Perform convolution from the downsampling result with the largest multiple and upsampling with the corresponding multiple, and concatenate the upsampling result with the downsampling result with the same size until a first image with the same size as the image to be recognized is obtained; The first image is convolved a preset number of times to obtain a defect map of a preset type corresponding to the OLED wet film.

2. The method according to claim 1, characterized in that The step of acquiring the image to be identified and performing multiple downsampling of the image to be identified by a preset multiple, wherein the multiple of each downsampling is different, further comprises: An image to be identified is acquired, and the image to be identified is downsampled multiple times in parallel by a preset multiple, wherein the multiple of each downsampling is different.

3. The method according to claim 1, characterized in that: The step of acquiring the image to be identified and performing multiple downsampling of the image to be identified by a preset multiple, wherein the multiple of each downsampling is different, includes: Sort the preset multiples to obtain the sorting result; The images to be identified are sequentially downsampled by corresponding multiples according to the sorting results.

4. The method according to claim 3, characterized in that The preset multiple is 2 to the Nth power, where N is a plurality of consecutive positive integers, and the convolution is performed starting from the downsampling result with the largest multiple and the upsampling with the corresponding multiple, and the upsampling result is spliced ​​with the downsampling result of the same size until a first image of the same size as the image to be recognized is obtained, including: Perform convolution and 2-fold upsampling starting from the downsampling result with the largest multiple, and concatenate the upsampling result with the downsampling result of the same size to obtain the first sub-image; The first sub-image is convolved and up-sampled by a factor of 2, and the up-sampling result is concatenated with the down-sampling result of the same size to obtain a second sub-image, and so on until a first image of the same size as the image to be recognized is obtained.

5. The method according to claim 1, characterized in that The convolution is performed from the down-sampling result with the largest multiple and the up-sampling with the corresponding multiple, and the up-sampling result is spliced ​​with the down-sampling result with the same size, until a first image with the same size as the image to be recognized is obtained, including: Start convolution from the downsampling result with the largest multiple and upsample with the corresponding multiple; The up-sampled results are batch normalized and activated; The processed up-sampling result is spliced ​​with the down-sampling result of the same size until a first image of the same size as the image to be recognized is obtained.

6. The method according to claim 1, characterized in that The step of acquiring the image to be identified and performing multiple downsampling of the image to be identified by a preset multiple, wherein the multiple of each downsampling is different, comprises: Obtain a negative sample of the OLED wet film; The negative samples are used to train the parameters in the convolution, downsampling and upsampling.

7. The method according to claim 6, characterized in that The method of obtaining a negative sample of an OLED wet film comprises: Get positive samples of OLED wet film and randomly generate masks; Binarizing the positive sample to obtain a binary image; Performing contour extraction on the binary image to distinguish the pixel slot area and the background area in the positive sample; The mask is randomly deformed, and the deformed mask is placed on the positive sample to obtain a negative sample of the OLED wet film.

8. The method according to claim 7, characterized in that The step of randomly deforming the mask and placing the deformed mask on the positive sample to obtain a negative sample of the OLED wet film comprises: Sampling pixel values ​​in a pixel slot area in the positive sample to obtain sampled pixel values; The sampled pixel value is assigned to the deformed mask.

9. The method according to claim 7, characterized in that: The negative sample of the OLED wet film includes preset defect types, and the preset defect types include: one or more of an over-doping type, an under-doping type, a scattered point type, a bridge type, an overflow type, and an under-doping type.

10. An OLED wet film defect detection method based on a lightweight semantic segmentation network, characterized in that: The method comprises: Acquire multiple images to be identified of the OLED wet film by using multiple image acquisition devices; Receiving a plurality of images to be recognized in parallel through a processing pipeline, and transmitting the plurality of images to be recognized to a plurality of recognition models deployed in a GPU respectively; Based on the recognition model, the image to be recognized is downsampled multiple times by preset multiples, wherein the multiples of each downsampling are different; convolution and upsampling by corresponding multiples are performed starting from the downsampling result with the largest multiple, and the upsampling result is spliced ​​with the downsampling result of the same size until a first image with the same size as the image to be recognized is obtained; convolution is performed on the first image for a preset number of times to obtain a defect map of a preset type corresponding to the OLED wet film.

11. The method according to claim 10, characterized in that The step of transmitting the plurality of images to be recognized to the plurality of recognition models deployed in the GPU respectively includes: Transmitting the plurality of images to be identified to a data processing buffer area; According to the preset resource configuration, the multiple images to be recognized in the data processing buffer are allocated to the multiple recognition models deployed in the GPU.

12. The method according to claim 10, characterized in that The recognition model is a semi-precision model.

13. An OLED wet film defect detection device based on a lightweight semantic segmentation network, characterized in that: The device comprises: A downsampling module, used for acquiring an image to be identified, and performing multiple downsampling of the image to be identified by a preset multiple, wherein the multiple of each downsampling is different; An upsampling module, used to perform convolution starting from the downsampling result with the largest multiple and upsampling with the corresponding multiple, and to concatenate the upsampling result with the downsampling result with the same size, until a first image with the same size as the image to be recognized is obtained; The recognition module is used to perform convolution on the first image for a preset number of times to obtain a defect map of a preset type corresponding to the OLED wet film.

14. An OLED wet film defect detection device based on a lightweight semantic segmentation network, characterized in that: The device comprises: An acquisition module, used for acquiring multiple images to be identified of the OLED wet film through multiple image acquisition devices; A transmission module, used for receiving a plurality of images to be recognized in parallel through a processing pipeline, and transmitting the plurality of images to be recognized to a plurality of recognition models deployed in the GPU respectively; A processing module is used to perform multiple preset multiple downsampling of the image to be identified based on the recognition model, wherein the multiple of each downsampling is different; starting from the downsampling result with the largest multiple and performing convolution and upsampling of the corresponding multiple, and splicing the upsampling result with the downsampling result of the same size until a first image with the same size as the image to be identified is obtained; performing a preset number of convolutions on the first image to obtain a defect map of a preset type corresponding to the OLED wet film.

15. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 12 are implemented.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.

17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.

Citation Information

Patent Citations

  • Product defect detection method, device and system

    CN111179253A

  • AOI defect detection method

    CN111223093A

  • Display panel defect detection method and device, equipment and readable storage medium

    CN111815628A

  • Image semantic segmentation method and device, storage medium and electronic equipment

    CN113592009A

  • Information processing method and device, storage medium and electronic equipment

    CN115273231A

Cited By

  • Broken gate defect detection method and device, electronic equipment and storage medium

    CN116188391A

  • Broken gate defect detection method and device, electronic equipment and storage medium

    CN116188391B

  • Steel structure bridge corrosion disease semantic segmentation method, device, equipment and medium

    CN119027671A