Display color mura defect detection method based on channel separation and filtering
Through the channel separation and filtering method of Lab color space, combined with Weber contrast feature map and contrast sensitivity function, the problem of low detection accuracy in the existing technology is solved, and accurate detection of color Mura defects in the display screen is achieved.
Patent Information
- Application Number
- CN202310695061.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-13
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-06-13
AI Technical Summary
Existing display color Mura defect detection methods cannot effectively separate color Mura defects, frequency domain-based methods cannot obtain defect-free background information, and fitting-based methods do not consider color characteristics, resulting in low detection accuracy.
The channel separation and filtering method based on Lab color space is used to achieve feature separation and detection of brightness and color channels through Weber contrast feature map calculation, contrast-sensitive function frequency domain filtering and color feature map fusion and adaptive threshold segmentation.
It achieves accurate detection of color Mura defects in the display screen, improves the detection accuracy, and can effectively separate brightness and color Mura defects.
Smart Images

Figure CN116721082B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of image processing technology, and in particular relates to a display screen color Mura defect detection technology. Background Art
[0002] Machine vision systems are widely used in production and life due to their stability and reliability. Using machine vision systems to detect the quality of display screens brings convenience to industrial production, improves production efficiency and saves costs.
[0003] Mura defects are characterized by low contrast and no fixed shape. With the rapid development of display technology in the past decade, the current display Mura defect detection method is mainly a defect detection method based on background reconstruction: one is to use frequency domain-based reconstruction, such as Fan proposed Automatic detection of Mura defect in TFT-LCD based on regression diagnostics[J]; the other is a reconstruction method based on fitting, such as Yan Chengchen proposed a TFT-LCD detection algorithm combining weighted template difference map and bilateral filtering[J], Journal of Electronic Measurement and Instrumentation. However, the reconstruction method based on frequency domain cannot effectively obtain the defect-free background information of color Mura in the frequency domain, which makes this method unable to separate defects from the background; the reconstruction method based on fitting does not take color features into account, so it directly fits the grayscale image and cannot obtain the defect area. Therefore, this type of method has low accuracy in detecting color Mura. The human eye's perception of color information greatly exceeds the perception level of brightness information, so the use of color filtering analysis is an effective technical approach for display color Mura defect detection. Summary of the invention
[0004] In order to solve the above technical problems, the present invention proposes a display screen color Mura defect detection method based on channel separation and filtering.
[0005] The technical solution adopted by the present invention is: a display color Mura defect detection method based on channel separation and filtering, comprising:
[0006] Step S1, performing Lab space channel separation on the image to be processed; specifically: for the image to be processed, converting the RGB image color space into the Lab color space to obtain separated brightness and color channel images;
[0007] Step S2, Weber contrast feature map calculation; specifically: mean filtering the separated brightness and color channel images respectively, and then obtaining the contrast feature maps of the brightness and color channels according to the Weber contrast calculation formula;
[0008] Step S3, contrast sensitivity function frequency domain filtering; specifically: construct frequency domain contrast sensitivity function filtering templates for brightness and color channels respectively, use fast Fourier transform to convert the contrast feature maps of brightness and color channels into frequency domain space, and multiply them with contrast sensitivity functions respectively, and obtain brightness and color channel feature maps that are sensitive to the human eye after inverse transformation;
[0009] Step S4, color feature map fusion and adaptive threshold segmentation; specifically: fuse the color channel feature maps that are sensitive to the human eye to obtain a color fusion feature map that is sensitive to the human eye, use the mean and standard deviation of the two-channel feature maps that are sensitive to the human eye and the color feature fusion map that is sensitive to the human eye to perform threshold segmentation, perform an OR operation on the segmentation results of the two feature maps, and obtain a Mura defect detection result.
[0010] Beneficial effects of the present invention: The present invention separates the brightness and color of the input image, and then uses contrast sensitive functions to filter the color and brightness contrast maps respectively, and uses a comprehensive method of Lab color space, human eye contrast sensitivity function and feature decomposition to detect color Mura defects, thereby achieving accurate detection of brightness Mura and color Mura defects on the display screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 It is a flow chart of a display screen color Mura defect detection method based on channel separation and filtering of the present invention.
[0012] Figure 2 This is an example of converting the original image to Lab space mean filtering results.
[0013] Figure 3 This is an example display of the contrast sensitivity function filtering results.
[0014] Figure 4 This is a sample display of Mura defect detection results. DETAILED DESCRIPTION
[0015] See also Figure 1 In the embodiments described below, the display color Mura defect detection method based on channel separation and filtering is implemented in the following steps:
[0016] Step S1: Input image Lab space channel separation, the specific steps include the following steps:
[0017] S1-1, convert the collected LCD display RGB image into Lab color space;
[0018] The Lab color space calculation is performed on the input image. The calculation formula is as follows:
[0019]
[0020]
[0021]
[0022]
[0023]
[0024] Where L is the brightness channel, a is the red and green color channel, b is the blue and yellow color channel, X, Y, Z represent the color coordinates in the XYZ color space, and f(X), f(Y1), and f(Z) represent the color distribution function in the XYZ color space. Get the separated brightness L and color a and b channel images;
[0025] S2: Weber contrast feature map calculation, the specific steps include the following steps:
[0026] S2-1, mean filtering processing,
[0027] The L, a and b channel images are filtered using the mean filter template to suppress the interference of the background texture of the display screen. The image processing results are as follows: Figure 2 shown.
[0028] S2-2, global mean calculation,
[0029] Calculate the global mean of the L, a, and b channel images after mean filtering respectively. The calculation formula is as follows:
[0030]
[0031] where μ weber represents the global mean, M is the width of the input image, N is the length of the input image, and p i,j Represents the gray value of the coordinate (i, j) in the image. Calculate the mean of the L channel, a channel and b channel respectively.
[0032] S2-3, Weber contrast calculation,
[0033] According to the Weber contrast calculation formula, the contrast feature maps of L, a and b channels are obtained.
[0034] The Weber contrast calculation formula is as follows:
[0035]
[0036] Where I(x,y) is the grayscale value of the image of a specific channel, I b1 (x, y) is the background brightness of the specific channel image, C w (x,y) is the contrast of the specific channel image.
[0037] Will I b1 (x, y) are replaced by the global mean of L, a and b, respectively, and C is calculated respectively. L , C a and C b . Among them, C L represents the L channel contrast feature map, C a is the contrast feature map of channel a, C b is the contrast feature map of the b channel.
[0038] S3: Contrast sensitivity function frequency domain filtering, the result is shown in the figure Figure 3 As shown, the specific steps include the following steps.
[0039] S3-1, frequency domain contrast sensitivity function construction,
[0040] Construct the frequency domain contrast sensitivity functions of L, a and b channels respectively. The contrast sensitivity functions are as follows:
[0041]
[0042]
[0043]
[0044] Where f represents the frequency variable in the frequency domain, csf L (f) represents the contrast sensitivity function of the L channel in the frequency domain, csf a (f) represents the contrast sensitivity function of channel a in the frequency domain, csf b (f) represents the contrast sensitivity function of the b channel in the frequency domain.
[0045] S3-2, Fourier transform of channel feature map,
[0046] The L, a and b channel feature maps that are sensitive to the human eye are Fourier transformed, and the low-frequency information is moved to the center of the image to obtain the L, a and b channel feature maps in the frequency domain, which are denoted as C L_w , C a_w and C b_w .
[0047] S3-3, feature map frequency domain filtering,
[0048] The obtained L, a and b channel feature maps in the frequency domain are multiplied by the contrast sensitivity function respectively to obtain the channel filtering feature results. The calculation formula is as follows.
[0049]
[0050] Among them C csf_Lis the L channel feature map that is sensitive to human eyes, C csf_a is the a channel feature map that is sensitive to human eyes, C csf_b is the b channel feature map that is sensitive to the human eye, idft means inverse Fourier transform, and the result is as follows Figure 3 shown.
[0051] Step S4: color feature map fusion and adaptive threshold segmentation, specifically including the following steps.
[0052] S4-1, color feature map fusion,
[0053] The a and b channel feature maps that are sensitive to the human eye are fused to obtain a color fusion feature map that is sensitive to the human eye. The calculation formula is as follows:
[0054]
[0055] Among them C csf_col Represents the color fusion feature map that the human eye is sensitive to.
[0056] S4-2, adaptive threshold segmentation of brightness and color,
[0057] The mean and standard deviation of the L channel feature map that the human eye is sensitive to and the color feature fusion map that the human eye is sensitive to are used for threshold segmentation. The calculation formula is as follows:
[0058] th col =μc col +K1δc col
[0059] th L =μc L +K2δc L
[0060] Among them, col is the segmentation threshold of the color fusion feature map, K1 is a parameter, μc col is the mean of the color fusion feature map, μc col is the standard deviation of the color fusion feature map, th L is the L channel feature map segmentation threshold that is sensitive to human eyes, K2 is a parameter, μc L is the mean value of the L channel feature map that is sensitive to the human eye, δc L is the standard deviation of the L channel feature map that is sensitive to the human eye. In this embodiment, K1 takes a value of 1, and K2 takes a value of 3.
[0061] The segmentation results of the two feature maps are ORed to obtain the Mura defect detection result, such as Figure 4 shown.
[0062] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the scope of protection of the present invention is not limited to such specific statements and embodiments. For those skilled in the art, the present invention may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A display color Mura defect detection method based on channel separation and filtering, characterized in that: include: Step S1, performing Lab space channel separation on the image to be processed; Specifically: for the image to be processed, the RGB image color space is converted to the Lab color space to obtain separated brightness and color channel images; Step S2, Weber contrast feature map calculation; specifically: mean filtering the separated L, a and b channel images respectively, and then obtaining the contrast feature maps of the L, a and b channels according to the Weber contrast calculation formula; Step S3, contrast sensitivity function frequency domain filtering; Specifically, the frequency domain contrast sensitivity function filter templates of the L, a and b channels are constructed respectively, and the contrast feature maps of the L, a and b channels are converted to the frequency domain space using the fast Fourier transform, and are multiplied with the contrast sensitivity function respectively, and the L, a and b channel feature maps that are sensitive to the human eye are obtained after the inverse transformation; the frequency domain contrast sensitivity function filter template expression of the L channel constructed in step S3 is: Among them, csf L (f) represents the contrast sensitivity function of the L channel in the frequency domain, and f represents the frequency variable in the frequency domain; The frequency domain contrast sensitivity function filter template expression of channel a constructed in step S3 is: Among them, csf a (f) represents the contrast sensitivity function of channel a in the frequency domain; The frequency domain contrast sensitivity function filter template expression of the b channel constructed in step S3 is: Among them, csf b (f) represents the contrast sensitivity function of the b channel in the frequency domain; Step S4, color feature map fusion and adaptive threshold segmentation; specifically: fuse the a channel feature map and the b channel feature map that are sensitive to the human eye to obtain a color fusion feature map that is sensitive to the human eye, use the mean and standard deviation of the L channel feature map that is sensitive to the human eye and the color fusion feature map that is sensitive to the human eye to perform threshold segmentation, perform an OR operation on the segmentation results of the two feature maps, and obtain a Mura defect detection result.
2. The display color Mura defect detection method based on channel separation and filtering according to claim 1 is characterized in that: Step S2 specifically includes the following sub-steps: S21, mean filtering processing, using the mean filtering template to filter the L, a and b channel images respectively; S22, global mean calculation, respectively calculate the global mean of the L, a and b channel images after mean filtering, the calculation formula is as follows: Among them, μ weber represents the global mean, M is the width of the input specific channel image, N is the length of the input specific channel image, and p i,j Represents the gray value of the coordinate (i, j) in the specific channel image; S23, Weber contrast calculation, according to the Weber contrast calculation formula, obtain the contrast feature map of L, a and b channels; the Weber contrast calculation formula is as follows: Where I(x,y) is the gray value of the image, I b1 (x, y) is the global mean of the specific channel image, C w (x, y) is the contrast feature map of the specific channel image.
3. The display color Mura defect detection method based on channel separation and filtering according to claim 2 is characterized in that: In step S4, the color channel feature maps that are sensitive to the human eye are fused to obtain a color fusion feature map that is sensitive to the human eye; The calculation formula is: Among them, C csf_a represents the a channel feature map, C csf_b represents the b channel feature map, C csf_col Represents the color fusion feature map that the human eye is sensitive to.
4. The display color Mura defect detection method based on channel separation and filtering according to claim 1 is characterized in that: The segmentation threshold calculation formula of the color fusion feature map that the human eye is sensitive to is: th col =μ ccol +K1δC col Among them, col is the segmentation threshold of the color fusion feature map, K1 is a parameter, μc col is the mean of the color fusion feature map, δc col is the standard deviation of the color fusion feature map.
5. The display color Mura defect detection method based on channel separation and filtering according to claim 4 is characterized in that: The segmentation threshold calculation formula of the L channel feature map is: th L =μc L +K2δc L Among them, L is the L channel feature map segmentation threshold that is sensitive to human eyes, K2 is a parameter, μc L is the mean value of the L channel feature map that is sensitive to the human eye, δc L It is the standard deviation of the L channel feature map that is sensitive to the human eye.
