OLED defect detection apparatus based on machine vision
By combining active current modulation and texture entropy change field algorithm, the problem of weak signals being submerged by substrate texture noise in OLED defect detection is solved, achieving high-sensitivity defect detection and improving sub-pixel level detection capability.
Patent Information
- Application Number
- CN202511112673.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-09
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2045-08-09
AI Technical Summary
Existing OLED defect detection technologies struggle to effectively separate weak defect signals from substrate texture noise, resulting in insufficient detection sensitivity, particularly in the ability to capture subpixel-level abnormal responses.
An OLED defect detection device based on machine vision is used. It achieves the separation and recognition of defect features by using active current modulation to excite multi-scale electroluminescence response and texture entropy change field algorithm, including current modulation control module, image acquisition module, image registration module, multi-scale texture analysis module, entropy change field calculation module, defect enhancement module, sub-pixel localization module, defect quantization module and classification decision module.
It enhances the electromagnetic feature representation of micro-defects, improves the sensitivity and accuracy of defect detection, can work stably in complex backgrounds, and reduces the risk of misjudgment by traditional methods.
Smart Images

Figure CN120997177B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of visual inspection technology, and in particular relates to OLED defect detection equipment based on machine vision. Background Technology
[0002] OLED (Organic Light-Emitting Diode) is a self-emissive display technology made of organic materials. It emits light through carrier injection and recombination in an organic layer driven by current, eliminating the need for a backlight module. Compared to LCD, it boasts advantages such as ultra-thinness, wide viewing angles (no color distortion), microsecond-level response (no ghosting), low power consumption, and flexibility. It also delivers high contrast and vibrant colors across a wide color gamut. It is widely used in small-sized mobile phones and smart wearables, as well as large-screen TVs, automotive displays, and VR headsets. Technically, WOLED is highly mature, offering superior brightness and lifespan, while QD-OLED utilizes quantum dots to enhance color purity. Currently, the bottlenecks of short lifespan and difficulty in achieving large sizes have been overcome, leading to continuous iterations of larger-sized, higher-performance products, making it one of the mainstream directions in display technology.
[0003] Electroluminescence imaging has certain limitations in existing OLED defect detection technologies. When the OLED panel is in a constant driving current state, the difference between the light emission response of microcracks and low-contrast Mura defects and the optical characteristics of normal areas is extremely weak, which makes the defect signal easily drowned out by substrate texture noise.
[0004] Traditional machine vision methods mainly rely on grayscale or gradient analysis of single-frame images, which makes it difficult to effectively separate the electromagnetic response features of such defects. In addition, since the physical scale of micro-defects is close to the pixel resolution limit, their electroluminescence behavior is difficult to form distinguishable texture patterns under static conditions, resulting in insufficient detection system capability to capture sub-pixel-level abnormal responses, which has become a bottleneck restricting detection sensitivity.
[0005] In view of the above problems, the following solutions are proposed. Summary of the Invention
[0006] The purpose of this invention is to provide an OLED defect detection device based on machine vision. By using active current modulation to excite multi-scale electroluminescence response and texture entropy change field algorithm, it can separate the electromagnetic anomaly signal of defects in dynamic feature space, thus solving the problem that the microscale defect response is submerged by substrate texture noise in the prior art.
[0007] To solve the above-mentioned technical problems, the present invention is achieved through the following technical solution: This invention relates to an OLED defect detection device based on machine vision. The detection device includes a current modulation control module, an image acquisition module, an image registration module, a multi-scale texture analysis module, an entropy change field calculation module, a defect enhancement module, a sub-pixel localization module, a defect quantization module, a classification decision module, and a result output module. The current modulation control module, image acquisition module, image registration module, multi-scale texture analysis module, entropy change field calculation module, defect enhancement module, sub-pixel positioning module, defect quantization module, classification decision module, and result output module are connected in sequence. The output end of the multi-scale texture analysis module is unidirectionally connected to the defect quantization module, and the output end of the entropy change field calculation module is unidirectionally connected to the sub-pixel positioning module. The workflow of the testing equipment is as follows: Step S1, Current Modulation Image Acquisition: Drive the OLED panel with a sinusoidal modulated current sequence, simultaneously acquire multiple luminescent images and perform subpixel-level registration; Step S2, Multi-scale texture field construction: Extract image gradient features, construct a three-dimensional texture tensor, and generate a scale-weighted texture field through wavelet decomposition; Step S3, Entropy Variation Field Calculation: Combine local entropy density and multi-scale gradient, and calculate the defect-sensitive entropy variation field by combining the directional constraint matrix; Step S4, Defect Feature Enhancement: The defect region is nonlinearly enhanced using a Sigmoid-power-law composite function, and anisotropic diffusion filtering is performed to optimize the signal-to-noise ratio; Step S5, Subpixel Boundary Localization: Extract candidate regions on the enhanced image, and achieve subpixel boundary fitting by iteratively solving the energy functional based on the improved Snake model; Step S6, Defect Quantitative Analysis: Calculate morphological and optical characteristic parameters such as defect area, contrast, and spectral anomaly index; Step S7, Classification Decision and Output: Classify the feature vectors using a decision tree based on a predefined set of rules, identify the defect type, and generate a report.
[0008] Furthermore, the current modulation control module is used to generate a sinusoidal modulated current sequence to drive the OLED panel and excite defect response characteristics under different brightness states; The image acquisition module is used to synchronously acquire OLED light-emitting images under each current state to obtain the original defect data sequence; The image registration module is used to perform sub-pixel level displacement correction on multiple frames of images to eliminate pixel-level offset errors caused by mechanical vibration. The multi-scale texture analysis module is used to extract gradient features and construct a three-dimensional texture tensor, and obtain multi-scale texture features through wavelet decomposition. The entropy change field calculation module is used to calculate the local entropy density change field with directional constraints, thereby enhancing the defect region; The defect enhancement module is used to apply nonlinear transformation and anisotropic diffusion filtering to improve the contrast between defects and the background. The subpixel positioning module accurately extracts defect boundaries based on the improved Snake model, achieving superpixel precision contour positioning. The defect quantization module is used to calculate the morphological parameters and spectral anomaly index of defects and generate quantized feature vectors. The classification decision module is used to automatically identify defect types based on feature vectors and pre-trained decision tree models; The result output module is used to generate a spatial coordinate mapping map and a structured detection report, outputting visualized and machine-readable results.
[0009] Further, step S1, current modulation image acquisition, specifically includes the following steps: Step S11: Control the OLED driving circuit to generate a stepped current sequence, specifically: Based on a preset base drive current value, K different current values are generated using a sinusoidal modulation mode: In the formula, This represents the drive current value during the k-th modulation. Based on the basic drive current value, The current modulation amplitude coefficient, For modulation sequence index, This represents the total number of modulations. Step S12: In each current Below, images of panel emission are acquired using a high-resolution CMOS sensor. ; Step S13: Perform temporal registration on the image sequence, and output a precisely aligned registered image sequence for subsequent processing. In the formula, For the registered k-th frame image, It is a subpixel-level displacement correction operator. This is the k-th frame of the original image. For reference image, These are the pixel coordinates of the image; This step drives the OLED panel by actively generating a sinusoidally modulated stepped current sequence, acquires panel emission images under different current intensities, and uses subpixel-level displacement correction to achieve high-precision registration of the image sequence, providing stable and comparable multi-brightness level image data for subsequent analysis.
[0010] Furthermore, step S2, the construction of the multi-scale texture field, specifically includes the following steps: Step S21: Extract gradient-invariant features for each registered image: In the formula, Let be the gradient magnitude of the k-th frame image. For gradient operators, This is the convolution operator. For Sobel edge detection convolution kernels, Let L2 be the norm of the vector; Step S22: Construct the 3D texture tensor: In the formula, For the 3D texture tensor at position The value, This represents the gradient magnitude. Step S23: Perform wavelet decomposition along the current dimension: In the formula, For multi-scale texture field scalar values, For wavelet decomposition scale index, The maximum decomposition scale number, These are scale-weighted coefficients. For a one-dimensional Haar wavelet transform operator, To obtain the absolute values of the wavelet coefficients at scale s, For fixed position A one-dimensional signal along the current dimension; This step extracts gradient-invariant features from the registered image sequence, constructs a spatiotemporal three-dimensional texture tensor, and separates texture feature components of different scales through wavelet decomposition to form a multi-scale texture field that can characterize the response characteristics of defects, thereby enhancing the recognizability of micro-defects.
[0011] Furthermore, step S3, the entropy change field calculation, specifically includes the following steps: Step S31: Define the local entropy density function: In the formula, This represents the local entropy density value. Grayscale Let i be the probability of grayscale value i within a 5×5 window. The average grayscale value of the pixels within the window. The standard deviation of pixel grayscale within the window. It is a fourth-order Lorentz kernel function; Step S32: Calculate the multiscale entropy-variable field: in, In the formula, The output value is for an entropy-variable field. For scale-adaptive gradient operators, This is the texture direction constraint matrix. To take the modulus of a complex number, This is the texture direction constraint matrix. Texture direction angle, To take the argument of the complex gradient vector; This step proposes a local entropy density function combined with a scale-adaptive gradient operator, and introduces a texture direction constraint matrix to calculate a multi-scale entropy change field. By quantifying the spatial change rate of texture disorder, it reveals the boundary anomaly features of defects such as microcracks at the sub-pixel level.
[0012] Furthermore, step S4, defect feature enhancement, specifically includes the following steps: Step S41: Construct a nonlinear enhancement function: In the formula, This is the enhanced defect feature map. This is the Sigmoid steepness coefficient. As the activation threshold, The absolute value of the scalar; Step S42: Perform anisotropic diffusion filtering: In the formula, The rate of change of the feature map over time. For divergence operators, The diffusion coefficient function, Let be the independent variable of the diffusion function. This is the diffusion threshold parameter; This step employs a nonlinear Sigmoid function to selectively enhance the anisotropic entropy-varying field, combined with partial differential equation filtering using an exponential diffusion coefficient, to sharpen defect edges while suppressing background noise and improving the signal-to-noise ratio of the defect region.
[0013] Furthermore, step S5, sub-pixel boundary localization, specifically includes the following steps: Step S51: Extract candidate defect regions on the enhanced image M(x,y); Step S52: For each connected component Calculate the boundary energy functional: In the formula, Let the boundary energy functional value be... For the arc length parameter of the boundary curve, For the defect boundary curve, Energy weighting coefficient, For feature maps at boundary points The value, The tangent vector of the boundary curve; Step S53: Solve iteratively using the improved Snake model: In the formula, Let the boundary point coordinate vector be... The iteration time step, The elastic coefficient, For feature map gradient weights, The gradient of the feature map at point v. For the normal vector field weights, The unit normal vector derived for an entropy-variable field; This step is based on an improved Snake model with energy functional constraints. It iteratively optimizes the defect contour line on the enhanced image and achieves defect boundary localization with an accuracy of 0.1 pixels by driving the fusion of entropy-varying field normal vector field.
[0014] Furthermore, step S6, the defect quantification analysis, specifically includes the following steps: Step S61: Calculate defect morphological parameters: In the formula, This represents the area of the defective region. For a set of defective pixels, All are pixel physical dimensions. For the optical contrast of the defect area, In the defect area The maximum pixel value of the internally enhanced feature map M(x,y). In the defect area The minimum pixel value of the internally enhanced feature map M(x,y). To enhance the global maximum pixel value of feature map M(x,y) across the entire panel image range; Step S62: Extract the spectral anomaly index: ; In the formula, For spectral anomaly index, This represents the total number of pixels in the defect area. For multi-scale texture field values, This represents the average value of the background region's texture field. It is the Frobenius norm; This step calculates morphological area parameters, dynamic contrast index, and spectral anomaly index within the located defect area, extracting quantitative physical feature parameters to provide measurable criteria for defect classification.
[0015] Furthermore, step S7, classification decision and output, specifically includes the following steps: Step S71: Input feature vector: ; Step S72: Classify using a pre-trained decision tree model: In the formula, For defect type labels, The defect area is... For contrast, It is a spectral anomaly index; Step S73: Generate defect coordinate mapping map Output a JSON format test report; This step uses a decision tree model to make logical judgments on the quantification parameters based on preset multidimensional feature threshold rules, thereby achieving automated classification and identification of three typical defects: Mura, microcracks, and dead pixels. Finally, it generates vectorized contour data containing defect type, geometric features, and location coordinates, and outputs a structured inspection report and panel quality score.
[0016] The present invention has the following beneficial effects: 1. This invention excites the multi-scale texture response of OLED panels through active current modulation and, combined with the entropy-changing field algorithm, enhances the electromagnetic feature expression of micro-defects. It overcomes the limitation of weak signals being submerged by background noise, enabling micron-level cracks and low-contrast Mura defects to generate quantifiable anomalous responses during gradient-invariant features and texture tensor decomposition. The scale-adaptive gradient operator in the entropy-changing field can effectively separate defect features from the substrate texture, and the nonlinear enhancement function further amplifies the signal-to-noise ratio of the defect region, laying the foundation for sub-pixel localization.
[0017] 2. This invention solves the problem of ambiguous positioning of edge detection in OLED defects by fusing entropy-varying field gradient information with geometric constraints; the boundary energy functional integrates entropy-varying field intensity and curve curvature constraints, and the improved Snake model uses the normal vector field derived from the entropy-varying field as the driving force, so that the boundary convergence process can adapt to irregular defect morphology; this design can accurately characterize the sub-pixel details of the defect contour, providing geometric accuracy guarantee for subsequent quantitative analysis.
[0018] 3. This invention establishes a mapping relationship between the essential characteristics of defects and classification decisions based on a multi-dimensional quantitative system of physical features combined with morphological parameters and spectral anomaly indices; multi-scale texture features generated by current modulation provide photoelectric response fingerprints of defects, and spectral anomaly indices effectively distinguish between material degradation and mechanical damage; the decision tree model constructs stable classification boundaries by integrating complementary features such as area, contrast, and shape factor, reducing the risk of misjudgment of transitional defects by traditional thresholding methods.
[0019] 4. This invention can synergistically suppress environmental interference through anisotropic diffusion filtering and texture direction constraint matrix; the current modulation sequence eliminates fixed pattern noise through time-domain differentiation, and the direction constraint matrix adaptively adjusts the detection sensitivity according to the local texture direction; wavelet scale weighting enhances the cross-scale consistency characteristics of defects, and the exponential term design of the nonlinear enhancement function effectively suppresses random noise; this design enables the system to maintain stable performance in complex industrial environments.
[0020] Of course, any product implementing this invention does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description
[0021] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is a schematic diagram of the OLED defect detection device based on machine vision according to the present invention. Detailed Implementation
[0023] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0024] Please see Figure 1 As shown, the present invention is an OLED defect detection device based on machine vision, including a current modulation control module, an image acquisition module, an image registration module, a multi-scale texture analysis module, an entropy change field calculation module, a defect enhancement module, a sub-pixel localization module, a defect quantization module, a classification decision module, and a result output module. The current modulation control module, image acquisition module, image registration module, multi-scale texture analysis module, entropy field calculation module, defect enhancement module, sub-pixel positioning module, defect quantization module, classification decision module, and result output module are connected in sequence. The output end of the multi-scale texture analysis module is unidirectionally connected to the defect quantization module, and the output end of the entropy field calculation module is unidirectionally connected to the sub-pixel positioning module. The current modulation control module is used to generate a sinusoidal modulated current sequence to drive the OLED panel and excite the defect response characteristics under different brightness states. The image acquisition module is used to synchronously acquire OLED light-emitting images under each current state to obtain the original defect data sequence; The image registration module is used to perform sub-pixel level displacement correction on multiple frames of images to eliminate pixel-level offset errors caused by mechanical vibration. The multi-scale texture analysis module is used to extract gradient features and construct a three-dimensional texture tensor, and obtain multi-scale texture features through wavelet decomposition. The entropy change field calculation module is used to calculate the local entropy density change field with directional constraints, thereby enhancing the defect region; The defect enhancement module is used to apply nonlinear transformation and anisotropic diffusion filtering to improve the contrast between defects and the background; The subpixel localization module accurately extracts defect boundaries based on the improved Snake model, achieving superpixel-precision contour localization; The defect quantization module is used to calculate the morphological parameters and spectral anomaly index of defects, and generate quantized feature vectors; The classification decision module is used to automatically identify defect types based on feature vectors and a pre-trained decision tree model; The results output module is used to generate spatial coordinate mapping maps and structured inspection reports, outputting visualized and machine-readable results.
[0025] The workflow of the testing equipment is as follows: Step S1, Current Modulation Image Acquisition: Drive the OLED panel with a sinusoidal modulated current sequence, simultaneously acquire multiple luminescent images and perform subpixel-level registration; Step S1, current modulation image acquisition, specifically includes the following steps: Step S11: Control the OLED driving circuit to generate a stepped current sequence, specifically: Based on a preset base drive current value, K different current values are generated using a sinusoidal modulation mode: In the formula, This represents the drive current value during the k-th modulation. Based on the basic drive current value, The current modulation amplitude coefficient ( The base value is determined by the panel structure; for example, rigid OLEDs require a smaller base. (Flexible OLEDs can be appropriately enlarged) For modulation sequence index, This represents the total number of modulations. Step S12: In each current Below, images of panel emission are acquired using a high-resolution CMOS sensor. ; Step S13: Perform temporal registration on the image sequence, and output a precisely aligned registered image sequence for subsequent processing. In the formula, For the registered k-th frame image, This is a subpixel-level displacement correction operator (the correction operator is not unique; its specific form can be selected or designed according to actual needs). This is the k-th frame of the original image. For reference image, These are the pixel coordinates of the image.
[0026] Step S2, Multi-scale texture field construction: Extract image gradient features, construct a three-dimensional texture tensor, and generate a scale-weighted texture field through wavelet decomposition; Step S2, the construction of the multi-scale texture field specifically includes the following steps: Step S21: Extract gradient-invariant features for each registered image: In the formula, Let be the gradient magnitude of the k-th frame image. For gradient operators, This is the convolution operator. For Sobel edge detection convolution kernels, Let L2 be the norm of the vector; Step S22: Construct the 3D texture tensor: In the formula, For the 3D texture tensor at position The value, This represents the gradient magnitude. Step S23: Perform wavelet decomposition along the current dimension: In the formula, For multi-scale texture field scalar values, For wavelet decomposition scale index, The maximum decomposition scale number, These are scale-weighted coefficients. For a one-dimensional Haar wavelet transform operator, To obtain the absolute values of the wavelet coefficients at scale s, For fixed position A one-dimensional signal along the current dimension.
[0027] Step S3, Entropy Variation Field Calculation: Combine local entropy density and multi-scale gradient, and calculate the defect-sensitive entropy variation field by combining the directional constraint matrix; Step S3, the entropy change field calculation specifically includes the following steps: Step S31: Define the local entropy density function: In the formula, This represents the local entropy density value. Grayscale Let i be the probability of grayscale value i within a 5×5 window. The average grayscale value of the pixels within the window. The standard deviation of pixel grayscale within the window. It is a fourth-order Lorentz kernel function; Step S32: Calculate the multiscale entropy-variable field: in, In the formula, The output value is for an entropy-variable field. For wavelet decomposition scale index, The maximum decomposition scale number, For scale-adaptive gradient operators, To take the modulus of a complex number, This is the texture direction constraint matrix. Texture direction angle, To take the argument of the complex gradient vector.
[0028] Step S4, Defect Feature Enhancement: The defect region is nonlinearly enhanced using a Sigmoid-power-law composite function, and anisotropic diffusion filtering is performed to optimize the signal-to-noise ratio; Step S4, defect feature enhancement specifically includes the following steps: Step S41: Construct a nonlinear enhancement function: In the formula, This is the enhanced defect feature map. This is the Sigmoid steepness coefficient. As the activation threshold, These are absolute values of scalars; among them, the Sigmoid steepness coefficient is a general setting for typical OLED defects (such as Mura, microcracks), which can be regarded as a constant and can be adjusted according to the panel type in practical applications; the activation threshold is derived from statistics, and can be adjusted to increase accordingly if the detection environment noise is higher (such as industrial site); these two values are generally determined by experience or experiment. Step S42: Perform anisotropic diffusion filtering: In the formula, The rate of change of the feature map over time. For divergence operators, The diffusion coefficient function, Let be the independent variable of the diffusion function. This is the diffusion threshold parameter, which is a fixed constant and is usually an empirical value verified in the laboratory.
[0029] Step S5, Subpixel Boundary Localization: Extract candidate regions on the enhanced image, and achieve subpixel boundary fitting by iteratively solving the energy functional based on the improved Snake model; Step S5, sub-pixel boundary localization specifically includes the following steps: Step S51: Extract candidate defect regions on the enhanced image M(x,y); Step S52: For each connected component Calculate the boundary energy functional: In the formula, Let the boundary energy functional value be... For the arc length parameter of the boundary curve, For the defect boundary curve, These are energy weighting coefficients, all of which are preset fixed constants. For feature maps at boundary points The value, The tangent vector of the boundary curve; Step S53: Solve iteratively using the improved Snake model: In the formula, Let the boundary point coordinate vector be... The iteration time step, The elastic coefficient, For the arc length parameter of the boundary curve, For feature map gradient weights, The gradient of the feature map at point v. For the normal vector field weights, The unit normal vector derived for an entropy-variable field.
[0030] Step S6, Defect Quantitative Analysis: Calculate morphological and optical characteristic parameters such as defect area, contrast, and spectral anomaly index; Step S6, the defect quantification analysis specifically includes the following steps: Step S61: Calculate defect morphological parameters: In the formula, This represents the area of the defective region. For a set of defective pixels, All are pixel physical dimensions. For the optical contrast of the defect area, In the defect area The maximum pixel value of the internally enhanced feature map M(x,y). In the defect area The minimum pixel value of the internally enhanced feature map M(x,y). To enhance the global maximum pixel value of feature map M(x,y) across the entire panel image range; Step S62: Extract the spectral anomaly index: ; In the formula, For spectral anomaly index, This represents the total number of pixels in the defect area. For multi-scale texture field values, This represents the average value of the background region's texture field. It is the Frobenius norm.
[0031] Step S7, Classification Decision and Output: Classify the feature vectors using a decision tree based on a predefined set of rules, identify the defect type, and generate a report; Step S7, classification decision and output, specifically includes the following steps: Step S71: Input feature vector: ; Step S72: Classify using a pre-trained decision tree model: In the formula, For defect type labels, The defect area is... For contrast, It is a spectral anomaly index; Step S73: Generate defect coordinate mapping map Output a JSON format test report.
[0032] One specific application of this embodiment is: Test subject: 6.8-inch OLED panel, resolution 3168×1440; Step S1: Current Modulation Image Acquisition Set the base drive current Modulation parameters Number of cycles Generate current sequence: The obtained current values (mA) are: 15.00, 15.53, 15.75, 15.53, 15.00, 14.47, 14.25, 14.47; Images were captured in a darkroom environment using an 8K CMOS camera: The object distance was fixed at 300mm; three images were acquired at each current (exposure time 50ms); the median filtered result was used as the median. ; Image registration (with) (Based on) in, ; Typical registration parameters: Registration quality verification: Calculate the normalized cross-correlation values for all image pairs: result: ; Generate a spatial transformation field: In the formula, This is the global affine transformation matrix. It is a local non-rigid deformation field (maximum deformation < 0.1 pixels); Final output registered image sequence: Step S2: Multi-scale texture field construction Calculate gradient magnitude (in terms of (Image as an example) (Sobel operator convolution kernel size 3×3); Construct the texture tensor (along the current dimension): ; Three-scale wavelet decomposition (Haar wavelet): in For detail coefficients; Step S3: Original Entropy Variation Field Calculation Local entropy density calculation (5×5 window): mean gray value at the center of the window (1000, 500) Standard deviation ; Calculate the entropy value: A grayscale matrix of 25 pixels is extracted centered on the target pixel. The frequency H(i) of each grayscale level i is calculated. Calculate the probability distribution, and finally calculate the entropy value: (The histogram is divided into 16 intervals); Entropy-variable field calculation (scale s=2): Scale gradient Texture orientation angle ; Directional constraint matrix: Entropy-variable field components: Final amplitude: ; Step S4: Defect Feature Enhancement Nonlinear enhancement (parameters) ): ; Anisotropic diffusion (5 iterations): initial gradient ; Conductivity: ; Pixel value update amount after diffusion: Step S5: Subpixel boundary localization Candidate region extraction: threshold segmentation (threshold = 0.001); obtaining microcrack connected regions. (85 pixels); Calculate the boundary energy functional: Snake model iteration (γ=0.1): Where the normal vector field Step S6: Defect Quantitative Analysis Morphological parameter calculation: Actual area: Contrast: (Maximum panel size M=0.02); Spectral anomaly index: Step S7: Classification Decision and Output Input feature vector: ; Decision rule trigger: ,Right now: Micro-crack meets the following conditions: SAI > 1.8; and aspect ratio > 5. ; Finally, a test report is generated: One microcrack was detected, located near panel coordinates (1234.56, 789.01), with a length of 85.3 micrometers and a width of 2.5 micrometers. Its outline is precisely described by 32 sub-pixel points. The system determined this defect to be a microcrack with a confidence level of 96%. The overall defect density of the panel is 0.32 defects / mm², and the quality score is 94.2 out of 100.
[0033] In the description of this specification, references to terms such as "an embodiment," "example," "specific example," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0034] The preferred embodiments of the present invention disclosed above are merely illustrative of the invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.
Claims
1. A machine vision based OLED defect detection apparatus, characterized in that, The detection equipment includes a current modulation control module, an image acquisition module, an image registration module, a multi-scale texture analysis module, an entropy change field calculation module, a defect enhancement module, a sub-pixel localization module, a defect quantization module, a classification decision module, and a result output module. The current modulation control module, image acquisition module, image registration module, multi-scale texture analysis module, entropy change field calculation module, defect enhancement module, sub-pixel positioning module, defect quantization module, classification decision module, and result output module are connected in sequence. The output end of the multi-scale texture analysis module is unidirectionally connected to the defect quantization module, and the output end of the entropy change field calculation module is unidirectionally connected to the sub-pixel positioning module. The workflow of the testing equipment is as follows: Step S1, Current Modulation Image Acquisition: Drive the OLED panel with a sinusoidal modulated current sequence, simultaneously acquire multiple luminescent images and perform subpixel-level registration; Step S2, Multi-scale texture field construction: Extract image gradient features, construct a three-dimensional texture tensor, and generate a scale-weighted texture field through wavelet decomposition; Step S3, Entropy Variation Field Calculation: Combine local entropy density and multi-scale gradient, and calculate the defect-sensitive entropy variation field by combining the directional constraint matrix; Step S4, Defect Feature Enhancement: The defect region is nonlinearly enhanced using a Sigmoid-power-law composite function, and anisotropic diffusion filtering is performed to optimize the signal-to-noise ratio; Step S5, Subpixel Boundary Localization: Extract candidate regions on the enhanced image, and achieve subpixel boundary fitting by iteratively solving the energy functional based on the improved Snake model; Step S6, Defect Quantitative Analysis: Calculate morphological and optical characteristic parameters: defect area, contrast, and spectral anomaly index; Step S7, Classification Decision and Output: Classify the feature vectors using a decision tree based on a predefined set of rules, identify the defect type, and generate a report.
2. The machine vision-based OLED defect detection apparatus of claim 1, wherein, The current modulation control module is used to generate a sinusoidal modulated current sequence to drive the OLED panel and excite the defect response characteristics under different brightness states. The image acquisition module is used to synchronously acquire OLED light-emitting images under each current state to obtain the original defect data sequence; The image registration module is used to perform sub-pixel level displacement correction on multiple frames of images to eliminate pixel-level offset errors caused by mechanical vibration. The multi-scale texture analysis module is used to extract gradient features and construct a three-dimensional texture tensor, and obtain multi-scale texture features through wavelet decomposition. The entropy change field calculation module is used to calculate the local entropy density change field with directional constraints, thereby enhancing the defect region; The defect enhancement module is used to apply nonlinear transformation and anisotropic diffusion filtering to improve the contrast between defects and the background. The subpixel positioning module accurately extracts defect boundaries based on the improved Snake model, achieving superpixel precision contour positioning. The defect quantization module is used to calculate the morphological parameters and spectral anomaly index of defects and generate quantized feature vectors. The classification decision module is used to automatically identify defect types based on feature vectors and pre-trained decision tree models; The result output module is used to generate a spatial coordinate mapping map and a structured detection report, outputting visualized and machine-readable results.
3. The machine vision-based OLED defect detection apparatus of claim 1, wherein, Step S1, current modulation image acquisition, specifically includes the following steps: Step S11: Control the OLED driving circuit to generate a stepped current sequence, specifically based on the preset base driving current value, and use a sine wave modulation mode to generate K different current values; Step S12: at each current Next, a panel luminescence image is acquired by a high-resolution CMOS sensor; Step S13: Perform temporal registration on the image sequence and output a precisely aligned registered image sequence for subsequent processing.
4. The machine vision-based OLED defect detection apparatus of claim 1, wherein, Step S2, the construction of the multi-scale texture field, specifically includes the following steps: Step S21: Extract gradient-invariant features for each registered image. Specifically, calculate the spatial derivative of the image using the Sobel operator and obtain the Euclidean norm of the gradient magnitude to form a basic gradient feature map. Step S22: Construct a three-dimensional texture tensor to form a space-current three-dimensional tensor; Step S23: Perform wavelet decomposition along the current dimension, extract the absolute values of each scale component, and apply exponentially decaying scale weighting coefficients to generate scale-invariant texture field features.
5. The machine vision-based OLED defect detection apparatus of claim 1, wherein, Step S3, the entropy change field calculation, specifically includes the following steps: Step S31: Define the local entropy density function and calculate the local entropy density value for each pixel; Step S32: Calculate the multi-scale entropy change field, average the magnitude of the entropy density gradient under direction constraints at each scale, and generate an entropy change field map.
6. The machine vision-based OLED defect detection apparatus of claim 1, wherein, Step S4, defect feature enhancement, specifically includes the following steps: Step S41: Construct a nonlinear enhancement function to suppress background noise while enhancing the response of the defect area; Step S42: Perform anisotropic diffusion filtering, construct the diffusion coefficient based on the gradient-sensitive fourth-power exponential decay function, and describe the filtering process through partial differential equations.
7. The machine vision-based OLED defect detection apparatus of claim 1, wherein, Step S5, sub-pixel boundary localization, specifically includes the following steps: Step S51: Extract the connected regions of candidate defects on the defect feature map after nonlinear enhancement; Step S52: Constructing the boundary energy functional for each connected domain Computing the boundary energy functional provides energy minimization convergence targets for subsequent active contour iterations, guiding sub-pixel level boundary localization; Step S53: Use the improved Snake model to solve iteratively. The iteration process continues until the rate of change of the total energy at the boundary is less than the threshold, and the closed contour with sub-pixel accuracy is output.
8. The machine vision-based OLED defect detection apparatus of claim 1, wherein, Step S6, the defect quantification analysis, specifically includes the following steps: Step S61: Calculate the morphological parameters of the defects to provide a basis for quantifying the differences in physical size and visual significance for subsequent defect classification; Step S62: Extract the spectral anomaly index and quantify the dynamic response differences between the defective region and the normal background in multi-scale texture features.
9. The machine vision-based OLED defect detection apparatus of claim 1, wherein, Step S7, the classification decision and output, specifically includes the following steps: Step S71: Input the feature vector obtained from the quantitative analysis. The feature vector includes five parameters: defect area, contrast, spectral anomaly index, roundness, and aspect ratio. Step S72: Classify using a pre-trained decision tree model. The classification process is implemented using a decision tree model, and the output is a structured result containing defect type labels. Step S73: Generate a defect coordinate mapping map and output a JSON format inspection report.
Citation Information
Patent Citations
Pixel compensation method and device
CN111933075A
Optimization method and system for embedded image recognition algorithm
CN120339847A
