OLED dry film defect detection method based on style transfer positive sample generation
The positive sample of OLED dry film is generated through style transfer technology, which solves the problem of low defect detection accuracy in traditional technology and achieves more efficient OLED dry film defect detection.
Patent Information
- Application Number
- PCT/CN2023/085957
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-24
- Filing Date
- 2023-04-03
- Publication Date
- 2024-08-29
AI Technical Summary
Among existing OLED dry film defect detection technologies, manual detection is labor-intensive and subjective. Deep learning algorithms require a large number of defect samples. Traditional technology fails to effectively focus on positive samples, resulting in low detection accuracy.
A positive sample generation method based on style transfer is adopted. By extracting the pixel slot shape and the latent features of the pixel image in the OLED positive sample, style transfer is performed to generate image samples, enrich the diversity of sample features, and improve the accuracy of the deep learning algorithm.
A large number of positive samples are generated through style transfer, which improves the accuracy of the deep learning algorithm, reduces the subjectivity of manual inspection and the rate of false detection and missed detection, and improves the accuracy of OLED dry film defect detection.
Smart Images

Figure CN2023085957_29082024_PF_FP_ABST
Abstract
Description
OLED dry film defect detection method based on style transfer positive sample generation Technical Field
[0001] The present application relates to the field of OLED technology, and in particular to an OLED dry film defect detection method based on style transfer positive sample generation. 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] Deep learning algorithms usually require a large number of training samples. In order to improve the accuracy of deep learning algorithms in defect detection, traditional technologies tend to generate defect samples so that there are enough defect samples for training.
[0004] However, even positive samples may have certain differences in brightness, saturation, texture, etc. at the same location. Traditional techniques only focus on the number of defective samples and not the number of positive samples, which may lead to the identification of positive samples as defects, indicating that traditional techniques have low detection accuracy.
[0005] Summary of the Invention
[0006] Based on this, it is necessary to provide an OLED dry film defect detection method based on style transfer positive sample generation that can automatically expand image positive samples to address the above technical problems.
[0007] In a first aspect, the present application provides a method for detecting OLED dry film defects based on style transfer positive sample generation. The method comprises:
[0008] Obtaining a positive sample of an OLED, and extracting a first latent feature of a pixel groove shape in the positive sample, and a second latent feature of a pixel image in the positive sample;
[0009] Performing style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature;
[0010] An image sample is obtained using the style transfer feature.
[0011] In one embodiment, performing style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature further includes:
[0012] Centralizing the first latent feature and the second latent feature;
[0013] The style transfer feature is obtained according to the processed first latent feature and the second latent feature.
[0014] In one embodiment, performing style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature includes:
[0015] Obtaining second-order statistical information of the first latent feature and the second latent feature respectively;
[0016] Randomly adding Gaussian noise to the second-order statistical information of the first latent feature and the second latent feature respectively;
[0017] Style transfer is performed on the first latent feature to which Gaussian noise is added and the second-order statistical information of the second latent feature to obtain the style transfer feature.
[0018] In one embodiment, obtaining the second-order statistical information of the first latent feature and the second latent feature respectively includes:
[0019] Obtaining a linear transformation model according to the first latent feature and the second latent feature;
[0020] According to the first latent feature and the linear transformation model, second-order statistical information of the first latent feature is obtained, and according to the second latent feature, second-order statistical information of the second latent feature is obtained.
[0021] In one embodiment, obtaining the initial style transfer feature according to the first latent feature and the second latent feature includes:
[0022] Centralizing the first latent feature and the second latent feature;
[0023] An initial style transfer feature is obtained according to the processed first latent feature and the second latent feature.
[0024] In one embodiment, obtaining a positive sample of an OLED and extracting a first latent feature of a pixel groove shape in the positive sample and a second latent feature of a pixel image in the positive sample include:
[0025] Training a preset feature extraction model according to the positive samples;
[0026] The trained feature extraction model is used to extract the first latent feature of the pixel slot shape in the positive sample and the second latent feature of the pixel image in the positive sample.
[0027] In one embodiment, the method further comprises:
[0028] Training a preset deep learning algorithm based on the image samples;
[0029] Defect detection of the OLED dry film to be inspected is performed based on the trained preset deep learning algorithm.
[0030] In a second aspect, the present application also provides an OLED dry film defect detection device based on style transfer positive sample generation. The device comprises:
[0031] A feature acquisition module, configured to obtain a positive sample of the OLED and extract a first latent feature of the pixel groove shape in the positive sample and a second latent feature of the pixel image in the positive sample;
[0032] a style transfer module, configured to perform style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature;
[0033] The image sample acquisition module is used to obtain image samples using the style transfer feature.
[0034] In a third 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, the following steps are performed:
[0035] A feature acquisition module, configured to obtain a positive sample of the OLED and extract a first latent feature of the pixel groove shape in the positive sample and a second latent feature of the pixel image in the positive sample;
[0036] a style transfer module, configured to perform style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature;
[0037] The image sample acquisition module is used to obtain image samples using the style transfer feature.
[0038] In a fourth 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 following steps:
[0039] A feature acquisition module, configured to obtain a positive sample of the OLED and extract a first latent feature of the pixel groove shape in the positive sample and a second latent feature of the pixel image in the positive sample;
[0040] a style transfer module, configured to perform style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature;
[0041] The image sample acquisition module is used to obtain image samples using the style transfer feature.
[0042] In a fifth 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 following steps:
[0043] A feature acquisition module, configured to obtain a positive sample of the OLED and extract a first latent feature of the pixel groove shape in the positive sample and a second latent feature of the pixel image in the positive sample;
[0044] a style transfer module, configured to perform style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature;
[0045] The image sample acquisition module is used to obtain image samples using the style transfer feature.
[0046] The above-mentioned OLED dry film defect detection method and related equipment based on style transfer positive sample generation obtains a positive sample of the OLED and extracts a first latent feature of the pixel groove shape in the positive sample and a second latent feature of the pixel image in the positive sample; performs style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature; and uses the style transfer feature to obtain an image sample. In this way, the present application uses existing positive samples to extract the latent features of the pixel groove shape and the latent features of the pixel image in the positive sample, and then performs style transfer to generate image samples. This achieves the generation of a large number of positive samples based on existing positive samples, enriches the diversity of pixel features in the samples, and lays the foundation for improving the accuracy of deep learning algorithms. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] FIG1 is a schematic diagram of a process for detecting OLED dry film defects based on style transfer positive sample generation according to one embodiment;
[0048] FIG2 is a schematic diagram of a detailed flow of steps for performing style transfer based on the first latent features and the second latent features to obtain style transfer features in one embodiment;
[0049] FIG3 is a schematic diagram of a detailed flow of steps for performing style transfer based on the first latent features and the second latent features to obtain style transfer features in another embodiment;
[0050] FIG4 is a schematic flow chart of an OLED dry film defect detection method based on style transfer positive sample generation according to one embodiment;
[0051] FIG5 is a structural block diagram of an OLED dry film defect detection device based on style transfer positive sample generation in one embodiment;
[0052] FIG6 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0053] 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.
[0054] In one embodiment, as shown in FIG1 , a method for detecting OLED dry film defects based on style transfer positive sample generation is provided, comprising the following steps:
[0055] Step 100: obtaining a positive sample of an OLED, and extracting a first latent feature of a pixel groove shape in the positive sample, and a second latent feature of a pixel image in the positive sample;
[0056] A positive sample of OLED is obtained, and the number of positive samples of OLED can be multiple. Then, the latent features of the pixel slot shape (i.e., the content image) in the obtained positive sample of OLED and the latent features of the pixel image (i.e., the style image) in the positive sample are extracted. For the convenience of description, the latent feature of the pixel slot shape is defined as the first latent feature, and the latent feature of the pixel image is defined as the second latent feature.
[0057] As an embodiment, an existing deep neural network algorithm (such as the VGG-19 deep neural network algorithm) can be used to extract the first latent feature and the second latent feature of the positive sample.
[0058] As another embodiment, obtaining a positive sample of an OLED and extracting a first latent feature of a pixel groove shape in the positive sample and a second latent feature of a pixel image in the positive sample include:
[0059] Training a preset feature extraction model according to the positive samples;
[0060] The trained feature extraction model is used to extract the first latent feature of the pixel slot shape in the positive sample and the second latent feature of the pixel image in the positive sample.
[0061] Specifically, the obtained positive samples may be used for training to obtain a trained feature extraction model, and then the trained feature extraction model may be used to extract the first latent feature and the second latent feature.
[0062] Step 200: performing style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature;
[0063] After obtaining the first latent feature and the second latent feature, style transfer is performed based on the first latent feature and the second latent feature to obtain a style transfer feature. As an embodiment, the specific process of style transfer can refer to the existing technology and is not limited here.
[0064] Step 300: Obtain an image sample using the style transfer feature.
[0065] Then, the style transfer features obtained in step 200 are used to generate a new image sample. Specifically, a neural network algorithm symmetric to the feature extraction algorithm can be used to generate a new image sample using the style transfer features. For example, the VGG-19 deep neural network is used to extract the first and second latent features of the positive sample. After obtaining the style transfer features based on the first and second latent features, a new image sample can be generated using a neural network symmetric to the VGG-19 deep neural network and the style transfer features. This image sample is the positive sample.
[0066] Compared with the self-decoupling method represented by the SANet and MANet models in the prior art (this method relies on a training set to allow the network to learn the style and content coupling of the input image by itself, and requires the data in the training set to have a clear style definition, resulting in extremely poor image quality), this application uses style transfer features to keep the content of the final image unchanged, but change the style to another image effect, for example, changing the brightness and texture of the image, and the final generated image effect is greatly improved.
[0067] The above-mentioned OLED dry film defect detection method based on style transfer positive sample generation obtains a positive sample of OLED and extracts a first latent feature of the pixel groove shape in the positive sample and a second latent feature of the pixel image in the positive sample; performs style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature; and uses the style transfer feature to obtain an image sample. In this way, the present application uses existing positive samples to extract the latent features of the pixel groove shape and the latent features of the pixel image in the positive sample, and then performs style transfer to generate image samples. This achieves the generation of a large number of positive samples based on existing positive samples, enriches the diversity of pixel features in the samples, and lays the foundation for improving the accuracy of deep learning algorithms.
[0068] In one embodiment, as shown in FIG2 , performing style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature further includes:
[0069] Step 210: performing centralization processing on the first latent feature and the second latent feature;
[0070] Step 220 : Obtain the style transfer feature according to the processed first latent feature and the second latent feature.
[0071] Specifically, in this embodiment, the first latent feature and the second latent feature are first centered. That is, all pixel values of the first latent feature are first obtained, and the mean is calculated based on all pixel values of the first latent feature. For convenience of description, this is defined as the first mean. The first mean is subtracted from the first latent feature to complete the centering of the first latent feature. Similarly, all pixel values of the second latent feature are obtained, and the mean is calculated based on all pixel values of the second latent feature. For convenience of description, this is defined as the second mean. The second mean is subtracted from the second latent feature to complete the centering of the second latent feature.
[0072] Then, style transfer is performed based on the processed first latent features and the second latent features to obtain style transfer features.
[0073] In this embodiment, by first centralizing the first latent feature and the second latent feature, it is ensured that the two features correctly interpret the interaction.
[0074] In one embodiment, as shown in FIG3 , performing style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature includes:
[0075] Step 230: Obtain second-order statistical information of the first latent feature and the second latent feature respectively;
[0076] Step 240: randomly add Gaussian noise to the second-order statistical information of the first latent feature and the second latent feature respectively;
[0077] Step 250 : Perform style transfer on the second-order statistical information of the first latent feature with Gaussian noise added and the second latent feature to obtain the style transfer feature.
[0078] Specifically, in order to avoid overfitting, the second-order statistical information is used as the similarity criterion in this embodiment. The steps of obtaining the second-order statistical information of the first latent feature and the second latent feature respectively include:
[0079] Obtaining a linear transformation model according to the first latent feature and the second latent feature;
[0080] According to the first latent feature and the linear transformation model, second-order statistical information of the first latent feature is obtained, and according to the second latent feature, second-order statistical information of the second latent feature is obtained.
[0081] Specifically, the first latent feature representation F c , the second latent feature representation F s , for F s Performing linear transformation Q can obtain style transfer feature QF s Among them, the linear transformation Q can be obtained based on two characteristics:
[0082] [Corrected 14.04.2023 according to Rule 91] 1. The image obtained after style transfer is similar to the input content image, i.e. QF s Should be with F c As close as possible, this property can be expressed as:
[0083] Among them, (QF s -F c ) T Indicates (QF s -F c ). QF s Should be with F c As close as possible, that is, L=0.
[0084] Second, the image obtained after style transfer has the same style information as the input style image. This feature can be expressed as:
[0085] Combining the above two equations, we can get the linear transformation Q.
[0086] [Corrected 14.04.2023 according to Article 91] and combining the two methods can obtain:
[0087] in, G s and G c are the second-order statistical information of the first latent feature and the second latent feature respectively.
[0088] Where L = 0, so
[0089] G s and G c Add random Gaussian noise to simulate the brightness and texture changes of the generated image, that is: G s =G s +γ、G c =G c +γ. γ is Gaussian noise.
[0090] Due to QF s Should be with F c As close as possible, so should be a symmetric matrix (the closer the covariance of two matrices is to a symmetric matrix, the more similar the two matrices are). Therefore:
[0091] Because F c is a non-square matrix, we use the singular value decomposition method to c Decompose it and get:
[0092] From this, we can obtain:
[0093] Finally, the obtained style features are superimposed on the content features to obtain the style transfer result F d :F d =aQF s +F c
[0094] Where a is the adjustment coefficient.
[0095] In one embodiment, as shown in FIG4 , the positive sample is divided into a content image and a style image, and then the content image and the style image are input into the encoder of the sample generation network to obtain the latent features F of the two images. d and F s (Output of the encoder), for example, the algorithm in the encoder can be a VGG-19 deep neural network. The two latent features obtained are centralized, and then the style factor F is obtained using the style transfer module. d . Will get F d All pixel values plus F s The mean of F d With F s With similar colors. d Input into the decoder of the feature extraction network, and finally obtain the newly generated pixel image of the OLED.
[0096] Among them, the style factor F is obtained by reusing the style transfer module d The process may include: the first latent feature representation F c , the second latent feature representation F s , for F s Performing linear transformation Q can obtain style transfer feature QF s Among them, the linear transformation Q can be obtained based on two characteristics:
[0097] [Corrected 14.04.2023 according to Rule 91] 1. The image obtained after style transfer is similar to the input content image, i.e. QF s Should be with F c As close as possible, this property can be expressed as:
[0098] Among them, (QF s -F c ) T Indicates (QF s -F c ). QF sShould be with F c As close as possible, that is, L=0.
[0099] Second, the image obtained after style transfer has the same style information as the input style image. This feature can be expressed as:
[0100] Combining the above two equations, we can get the linear transformation Q.
[0101] [Corrected 14.04.2023 according to Article 91] and combining the two methods can obtain:
[0102] in, G s and G c are the second-order statistical information of the first latent feature and the second latent feature respectively.
[0103] Where L = 0, so
[0104] G s and G c Add random Gaussian noise to simulate the brightness and texture changes of the generated image, that is: G s =G s +γ、G c =G c +γ. γ is Gaussian noise.
[0105] Due to QF s Should be with F c As close as possible, so should be a symmetric matrix (the closer the covariance of two matrices is to a symmetric matrix, the more similar the two matrices are). Therefore:
[0106] Because F c is a non-square matrix, we use the singular value decomposition method to c Decompose it and get:
[0107] Thus, we can obtain: 2VDU T QF s =G s +G c
[0108] Finally, the obtained style features are superimposed on the content features to obtain the style transfer result F d :F d =aQF s +F c
[0109] Where a is the adjustment coefficient.
[0110] In one embodiment, based on the above embodiment, the method further includes:
[0111] Training a preset deep learning algorithm based on the image samples;
[0112] Defect detection of the OLED dry film to be inspected is performed based on the trained preset deep learning algorithm.
[0113] Specifically, after obtaining image samples, a preset deep learning algorithm is trained based on the obtained image samples. It is understood that the preset deep learning algorithm can be any deep learning algorithm that implements defect detection functions in the prior art, and the training of the preset deep learning algorithm can refer to the prior art and is not limited here. After obtaining the trained preset deep learning algorithm, the trained preset deep learning algorithm is used to perform defect detection on the OLED dry film to be inspected. Using this algorithm for defect detection can avoid the influence of brightness, saturation, texture, etc.
[0114] 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.
[0115] Based on the same inventive concept, embodiments of the present application also provide an OLED dry film defect detection device based on style transfer positive sample generation, which is used to implement the aforementioned OLED dry film defect detection method based on style transfer positive sample generation. 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 dry film defect detection device based on style transfer positive sample generation provided below can be found in the above-mentioned limitations of the OLED dry film defect detection method based on style transfer positive sample generation, and will not be further elaborated here.
[0116] In one embodiment, as shown in FIG5 , an OLED dry film defect detection device based on style transfer positive sample generation is provided, comprising:
[0117] A feature acquisition module 510 is configured to obtain a positive sample of an OLED and extract a first latent feature of a pixel groove shape in the positive sample and a second latent feature of a pixel image in the positive sample;
[0118] A style transfer module 520, configured to perform style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature;
[0119] The image sample acquisition module 530 is configured to obtain image samples using the style transfer feature.
[0120] In one embodiment, the style transfer module 520 is further configured to:
[0121] Centralizing the first latent feature and the second latent feature;
[0122] The style transfer feature is obtained according to the processed first latent feature and the second latent feature.
[0123] In one embodiment, the style transfer module 520 is further configured to:
[0124] Obtaining second-order statistical information of the first latent feature and the second latent feature respectively;
[0125] Randomly adding Gaussian noise to the second-order statistical information of the first latent feature and the second latent feature respectively;
[0126] Style transfer is performed on the first latent feature to which Gaussian noise is added and the second-order statistical information of the second latent feature to obtain the style transfer feature.
[0127] In one embodiment, the style transfer module 520 is further configured to:
[0128] Obtaining a linear transformation model according to the first latent feature and the second latent feature;
[0129] According to the first latent feature and the linear transformation model, second-order statistical information of the first latent feature is obtained, and according to the second latent feature, second-order statistical information of the second latent feature is obtained.
[0130] In one embodiment, the style transfer module 520 is further configured to:
[0131] Centralizing the first latent feature and the second latent feature;
[0132] An initial style transfer feature is obtained according to the processed first latent feature and the second latent feature.
[0133] In one embodiment, the feature acquisition module 510 is configured to:
[0134] Training a preset feature extraction model according to the positive samples;
[0135] The trained feature extraction model is used to extract the first latent feature of the pixel slot shape in the positive sample and the second latent feature of the pixel image in the positive sample.
[0136] Each module in the aforementioned OLED dry film defect detection device for generating positive style transfer samples 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 within a computer device in the form of hardware, or can be stored in the computer device's memory in the form of software, allowing the processor to call and execute the corresponding operations of each module.
[0137] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in Figure 6. 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 computer program in the non-volatile storage medium. The database of the computer device is used to store data such as positive sample images. 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, it implements an OLED dry film defect detection method based on style transfer positive sample generation.
[0138] Those skilled in the art will understand that the structure shown in FIG6 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.
[0139] 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:
[0140] Obtaining a positive sample of an OLED, and extracting a first latent feature of a pixel groove shape in the positive sample, and a second latent feature of a pixel image in the positive sample;
[0141] Performing style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature;
[0142] An image sample is obtained using the style transfer feature.
[0143] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0144] Centralizing the first latent feature and the second latent feature;
[0145] The style transfer feature is obtained according to the processed first latent feature and the second latent feature.
[0146] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0147] Obtaining second-order statistical information of the first latent feature and the second latent feature respectively;
[0148] Randomly adding Gaussian noise to the second-order statistical information of the first latent feature and the second latent feature respectively;
[0149] Style transfer is performed on the first latent feature to which Gaussian noise is added and the second-order statistical information of the second latent feature to obtain the style transfer feature.
[0150] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0151] Obtaining a linear transformation model according to the first latent feature and the second latent feature;
[0152] According to the first latent feature and the linear transformation model, second-order statistical information of the first latent feature is obtained, and according to the second latent feature, second-order statistical information of the second latent feature is obtained.
[0153] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0154] Centralizing the first latent feature and the second latent feature;
[0155] An initial style transfer feature is obtained according to the processed first latent feature and the second latent feature.
[0156] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0157] Training a preset feature extraction model according to the positive samples;
[0158] The trained feature extraction model is used to extract the first latent feature of the pixel slot shape in the positive sample and the second latent feature of the pixel image in the positive sample.
[0159] 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 following steps are implemented:
[0160] Obtaining a positive sample of an OLED, and extracting a first latent feature of a pixel groove shape in the positive sample, and a second latent feature of a pixel image in the positive sample;
[0161] Performing style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature;
[0162] An image sample is obtained using the style transfer feature.
[0163] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0164] Centralizing the first latent feature and the second latent feature;
[0165] The style transfer feature is obtained according to the processed first latent feature and the second latent feature.
[0166] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0167] Obtaining second-order statistical information of the first latent feature and the second latent feature respectively;
[0168] Randomly adding Gaussian noise to the second-order statistical information of the first latent feature and the second latent feature respectively;
[0169] Style transfer is performed on the first latent feature to which Gaussian noise is added and the second-order statistical information of the second latent feature to obtain the style transfer feature.
[0170] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0171] Obtaining a linear transformation model according to the first latent feature and the second latent feature;
[0172] According to the first latent feature and the linear transformation model, second-order statistical information of the first latent feature is obtained, and according to the second latent feature, second-order statistical information of the second latent feature is obtained.
[0173] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0174] Centralizing the first latent feature and the second latent feature;
[0175] An initial style transfer feature is obtained according to the processed first latent feature and the second latent feature.
[0176] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0177] Training a preset feature extraction model according to the positive samples;
[0178] The trained feature extraction model is used to extract the first latent feature of the pixel slot shape in the positive sample and the second latent feature of the pixel image in the positive sample.
[0179] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0180] Obtaining a positive sample of an OLED, and extracting a first latent feature of a pixel groove shape in the positive sample, and a second latent feature of a pixel image in the positive sample;
[0181] Performing style transfer based on the first latent feature and the second latent feature to obtain a style transfer feature;
[0182] An image sample is obtained using the style transfer feature.
[0183] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0184] Centralizing the first latent feature and the second latent feature;
[0185] The style transfer feature is obtained according to the processed first latent feature and the second latent feature.
[0186] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0187] Obtaining second-order statistical information of the first latent feature and the second latent feature respectively;
[0188] Randomly adding Gaussian noise to the second-order statistical information of the first latent feature and the second latent feature respectively;
[0189] Style transfer is performed on the first latent feature to which Gaussian noise is added and the second-order statistical information of the second latent feature to obtain the style transfer feature.
[0190] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0191] Obtaining a linear transformation model according to the first latent feature and the second latent feature;
[0192] According to the first latent feature and the linear transformation model, second-order statistical information of the first latent feature is obtained, and according to the second latent feature, second-order statistical information of the second latent feature is obtained.
[0193] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0194] Centralizing the first latent feature and the second latent feature;
[0195] An initial style transfer feature is obtained according to the processed first latent feature and the second latent feature.
[0196] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0197] Training a preset feature extraction model according to the positive samples;
[0198] The trained feature extraction model is used to extract the first latent feature of the pixel slot shape in the positive sample and the second latent feature of the pixel image in the positive sample.
[0199] 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.
[0200] 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.
[0201] 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 dry film defects based on style transfer positive sample generation, It is characterized in that The method comprises: Obtain a positive sample of the OLED, and extract a first latent feature of a pixel groove shape in the positive sample, and a second latent feature of a pixel image in the positive sample; Performing style migration according to the first latent feature and the second latent feature to obtain a style migration feature; An image sample is obtained by using the style transfer feature.
2. The method according to claim 1, It is characterized in that The performing style migration according to the first latent feature and the second latent feature to obtain a style migration feature also includes: Centralizing the first latent feature and the second latent feature; The style transfer feature is obtained according to the processed first latent feature and the second latent feature.
3. The method according to claim 1, It is characterized in that The performing style migration according to the first latent feature and the second latent feature to obtain a style migration feature includes: Obtaining second-order statistical information of the first latent feature and the second latent feature respectively; Randomly adding Gaussian noise to the second-order statistical information of the first latent feature and the second latent feature respectively; Style transfer is performed on the first latent feature to which Gaussian noise is added and the second-order statistical information of the second latent feature to obtain the style transfer feature.
4. The method according to claim 3, It is characterized in that The obtaining the second-order statistical information of the first latent feature and the second latent feature respectively includes: Obtaining a linear transformation model according to the first latent feature and the second latent feature; According to the first latent feature and the linear transformation model, second-order statistical information of the first latent feature is obtained, and according to the second latent feature, second-order statistical information of the second latent feature is obtained.
5. The method according to claim 1, It is characterized in that The obtaining of the initial style transfer feature according to the first latent feature and the second latent feature comprises: Centralizing the first latent feature and the second latent feature; An initial style transfer feature is obtained according to the processed first latent feature and the second latent feature.
6. The method according to claim 1, It is characterized in that The obtaining of a positive sample of the OLED and extracting a first latent feature of a pixel groove shape in the positive sample and a second latent feature of a pixel image in the positive sample include: Training a preset feature extraction model according to the positive samples; The trained feature extraction model is used to extract the first latent feature of the pixel slot shape in the positive sample and the second latent feature of the pixel image in the positive sample.
7. The method according to any one of claims 1 to 6, It is characterized in that The method further comprises: Training a preset deep learning algorithm according to the image samples; Defect detection of the OLED dry film to be inspected is performed based on the trained preset deep learning algorithm.
8. An OLED dry film defect detection device based on style transfer positive sample generation, It is characterized in that The device comprises: A feature acquisition module, used to obtain a positive sample of the OLED, and extract a first latent feature of the shape of the pixel groove in the positive sample, and a second latent feature of the pixel image in the positive sample; A style transfer module, used to perform style transfer according to the first latent feature and the second latent feature to obtain a style transfer feature; The image sample acquisition module is used to obtain image samples using the style migration feature.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is 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 7 are implemented.
Citation Information
Patent Citations
Method and system for migration of any style and content generated based on few samples
CN107767328A
Image data set augmentation method and system, computer equipment and storage medium
CN110135458A
Defective insulator sample generation method and system based on style migration method
CN112884758A
Image style migration method and device based on weight demodulation
CN114998093A
OLED dry film defect detection method based on style migration positive sample generation
CN115861312A
