Industrial personal computer display screen defect detection method based on image processing

By calculating the defect possibility and blur diffusion degree of industrial computer display images under different light intensities, the problem of inaccurate Mura defect detection under the influence of light intensity is solved and more accurate Mura defect detection is achieved.

CN118570198AActive Publication Date: 2024-08-30SUZHOU NUODAJIA AUTOMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411037799.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-08-30
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

The existing Mura defect detection method for industrial computer display screens fails to effectively consider the impact of different light intensities on the detection results, resulting in inaccurate detection results.

Method used

By collecting the images to be inspected under different light intensities, the defect possibility and blur diffusion degree of the pixels are calculated, and the weighted values ​​of the contrast enhancement degree and blur diffusion degree are used to determine the degree of influence, and finally Mura defect detection is performed under the target light intensity. Improve detection accuracy.

Benefits of technology

It improves the accuracy of Mura defect detection on industrial computer display screens, highlights Mura defects, and enhances the reliability of detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570198A
    Figure CN118570198A
Patent Text Reader

Abstract

The invention belongs to the technical field of image processing, and particularly relates to an industrial personal computer display screen defect detection method based on image processing, which comprises the following steps: acquiring to-be-detected images under different light intensities, calculating the defect possibility of a first pixel point in a reference image corresponding to the reference light intensity, and calculating the defect possibility of the first pixel point; in to-be-detected images corresponding to different light intensities, weighting is carried out through defect possibilities of first pixel points, the contrast enhancement degree and the fuzzy diffusion degree of the to-be-detected images are calculated, and the sum of the contrast enhancement degree and the fuzzy diffusion degree is used as the influence degree of different light intensities. And taking the light intensity corresponding to the maximum value point of the fitting curve of the influence degree as the target light intensity, performing Mura defect detection on the to-be-detected image corresponding to the target light intensity, and calculating the qualified rate of the to-be-detected industrial personal computer display screen according to the defect detection result. According to the invention, the Mura defect detection accuracy of the industrial personal computer display screen is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and more specifically, to an industrial computer display screen defect detection method based on image processing. Background Art

[0002] Industrial computer display screen is a display device used in the field of industrial control, mainly used to monitor and control the operating status of industrial equipment. Due to the complex production process of industrial computer display screen and the display screen is a fragile item, the industrial computer display screen produced may have various defects.

[0003] Among them, the Mura defect is a kind of unevenness in the industrial computer display screen, which causes the display effect of some areas on the screen to be different from that of other areas, affecting the smoothness and consistency of the display effect.

[0004] Minor Mura defects will not significantly affect the overall performance or appearance of the product, while some severe Mura defects may cause the product to be considered unqualified. Therefore, it is necessary to test the Mura defect level of the industrial computer displays produced in order to screen out unqualified industrial computer displays in a timely manner.

[0005] In the related technology, for example, the patent application document with the authorization announcement number CN111882529B discloses a display screen Mura defect detection method and device, including extracting the region of interest after Gaussian-Surface edge-preserving filtering on the original image, reconstructing the background image, segmenting the Mura defects by region growing, calculating and marking the Mura defects, and achieving precise definition of the boundary of the active light-emitting display screen, and being able to obtain a more accurate boundary position of the light-emitting area.

[0006] Among them, when performing Mura defect detection on the industrial computer display screen, the influence of light sources with different light intensities on the image to be detected when collecting the image to be detected of the industrial computer display screen is not considered, resulting in inaccurate results of Mura defect detection of the industrial computer display screen. Summary of the invention

[0007] In order to overcome the technical problem that the related art does not consider the influence of light sources with different light intensities on the image to be detected when performing Mura defect detection on the industrial computer display screen, resulting in inaccurate results of Mura defect detection of the industrial computer display screen, the present invention provides solutions in the following aspects.

[0008] In the first aspect, images to be inspected of an industrial computer display screen to be inspected under different light intensities are collected; in a reference image corresponding to a reference light intensity, the defect possibility of a first pixel is calculated based on the gradient amplitude of the first pixel, the average of the gradient amplitudes of all pixels in its first neighborhood, and the difference in gradient direction of the first pixel and all pixels in its second neighborhood; in images to be inspected corresponding to different light intensities, the difference in gradient amplitude between a second pixel and the first pixel at the same position in the reference image is calculated, and the difference is weighted according to the defect possibility to obtain the contrast enhancement degree of the image to be inspected; the first neighborhood of the second pixel is obtained. The ratio of the distribution discreteness of the grayscale values ​​of all pixels in the domain to the distribution discreteness of the grayscale values ​​of all pixels in the first neighborhood of the first pixel at the same position in the reference image is weighted according to the difference between 1 and the defect possibility to obtain the blur diffusion degree of the image to be detected; the sum of the contrast enhancement degree and the blur diffusion degree is used as the influence degree of different light intensities; the light intensity corresponding to the maximum value point of the fitting curve of the influence degree is used as the target light intensity; Mura defect detection is performed on the image to be detected corresponding to the target light intensity, and the qualified rate of the industrial computer display screen to be detected is calculated according to the defect detection result.

[0009] When performing Mura defect detection on an industrial computer display screen, the present invention analyzes images to be detected corresponding to different light intensities, and calculates the influence of different light intensities through the contrast enhancement degree and blur diffusion degree of the images to be detected corresponding to different light intensities, wherein the defect possibility of the first pixel point in the reference image corresponding to the reference light intensity is used as a weight, and the contrast enhancement degree of the image to be detected is calculated, so that the obtained contrast enhancement degree reflects the contrast enhancement degree of the pixel point belonging to the Mura defect, and the difference between 1 and the defect possibility of the first pixel point in the reference image corresponding to the reference light intensity is used as a weight, and the blur diffusion degree of the image to be detected is calculated, so that the obtained blur diffusion degree reflects the blur diffusion degree of the pixel point that does not belong to the Mura defect, and finally the Mura defect detection is performed on the image to be detected corresponding to the target light intensity with the greatest influence, and the Mura defect is highlighted in the image to be detected corresponding to the target light intensity, which can improve the accuracy of the Mura defect detection of the image to be detected, thereby improving the accuracy of the Mura defect detection of the industrial computer display screen.

[0010] In one embodiment, the first neighborhood refers to a rectangular area centered on a pixel point and having a size equal to K×K, where K represents the length of a side of the rectangular area, the unit of the side length is a pixel point, and K is equal to a preset first length, and two sides of the first neighborhood are parallel to two sides of the image to be detected; the second neighborhood refers to a rectangular area centered on a pixel point and having a size equal to 1×C, where 1 represents the length of a side parallel to the gradient direction of the pixel point in the rectangular area, and C represents the length of a side perpendicular to the gradient direction of the pixel point in the rectangular area, the unit of the side length is a pixel point, and C is equal to a preset second length.

[0011] The present invention determines the directions of two sides of the second neighborhood based on the gradient direction of the pixel point, and can more accurately judge the similarity between the distribution directions of the pixel point and other pixel points in its second neighborhood.

[0012] In one embodiment, the defect probability of the first pixel satisfies the expression: ; In the formula, represents the defect probability of the first pixel of the i-th pixel in the reference image, represents the gradient magnitude of the first pixel in the i-th reference image, represents the first quartile of the gradient magnitude of all pixels in the first neighborhood of the i-th first pixel in the reference image, represents the gradient direction of the first pixel of the i-th pixel in the reference image, represents the gradient direction of the jth pixel point in the second neighborhood of the i-th first pixel point in the reference image, B represents the number of all pixels in the second neighborhood, and B is equal to the preset second length, represents an exponential function with a natural constant as base, Indicates taking the absolute value.

[0013] The defect possibility of the first pixel calculated based on the gradient amplitude of the first pixel, the average of the gradient amplitudes of all pixels in its first neighborhood, and the difference in gradient directions between the first pixel and all pixels in its second neighborhood can accurately reflect the probability that the pixel in the reference image belongs to a Mura defect.

[0014] In one embodiment, the contrast enhancement degree of the image to be detected satisfies the expression: ; In the formula, Q represents the contrast enhancement degree of the image to be detected, N represents the number of all pixels in the image to be detected, represents the gradient amplitude of the sth second pixel in the image to be detected, represents the gradient magnitude of the sth first pixel in the reference image, represents the defect probability of the sth first pixel in the reference image, Represents the maximum value function.

[0015] The present invention uses the defect possibility as a weight to calculate the contrast enhancement degree of the image to be detected, so that the obtained contrast enhancement degree reflects the contrast enhancement degree of the pixel points belonging to the Mura defect, thereby making the Mura defect in the image to be detected corresponding to the finally determined target light intensity prominent and easy to detect, thereby improving the accuracy of Mura defect detection in the image to be detected.

[0016] In one embodiment, the blur diffusion degree of the image to be detected satisfies the expression: ; In the formula, M represents the degree of fuzzy diffusion of the image to be detected, The information entropy of the grayscale values ​​of all pixels in the first neighborhood of the s-th second pixel in the image to be detected is, The information entropy of the grayscale values ​​of all pixels in the first neighborhood of the s-th first pixel in the reference image, represents the defect possibility of the sth first pixel in the reference image, and N represents the number of all pixels in the image to be detected.

[0017] In one embodiment, the blur diffusion degree of the image to be detected satisfies the expression: ; In the formula, M represents the degree of fuzzy diffusion of the image to be detected, represents the variance of the grayscale values ​​of all pixels in the first neighborhood of the sth second pixel in the image to be detected, represents the variance of the grayscale values ​​of all pixels in the first neighborhood of the sth first pixel in the reference image, represents the defect possibility of the sth first pixel in the reference image, and N represents the number of all pixels in the image to be detected.

[0018] The present invention uses the difference between 1 and the defect possibility as a weight to calculate the fuzzy diffusion degree of the image to be detected, so that the obtained fuzzy diffusion degree reflects the fuzzy diffusion degree of the pixel points that do not belong to the Mura defect, thereby making the Mura defect in the image to be detected corresponding to the finally determined target light intensity prominent and easy to detect, thereby improving the accuracy of Mura defect detection of the image to be detected.

[0019] In one embodiment, the Mura defect detection is performed on the image to be detected corresponding to the target light intensity, including: recording the image to be detected corresponding to the target light intensity as the target image to be detected; recording pixels whose grayscale values ​​are not in the range of [G-30, G+30] as defective pixels, where G represents the grayscale value corresponding to the maximum frequency in the grayscale histogram of the target image to be detected; performing connected domain analysis on all defective pixels to obtain multiple connected domains; for any connected domain, recording the ratio of the average grayscale values ​​of all pixels in the connected domain to the standard deviation of the grayscale values ​​of all pixels in the connected domain as the contrast of the connected domain; recording the ratio of the absolute value of the contrast of the connected domain to the minimum perceptible contrast difference of the connected domain as the Semu index of the connected domain; and recording the connected domain with a Semu index greater than 1 as a Mura defect area.

[0020] In one embodiment, the minimum perceptible contrast difference of the connected domain satisfies the expression: ; Where Y represents the minimum perceptible contrast difference of the connected domain, and m represents the area of ​​the connected domain.

[0021] In one embodiment, the pass rate of the industrial computer display screen to be tested includes: ; In the formula, R represents the qualified rate of the industrial computer display screen to be tested, T represents the number of Mura defect areas in the target image to be tested, represents the perimeter of the t-th Mura defect area, Represents the Semu index of the t-th Mura defect area, Represents an exponential function with a natural constant as its base.

[0022] In one embodiment, the method for setting different light intensities includes: the light intensity value range is [200, 1000], the unit of light intensity is lux, multiple light intensities are selected from the light intensity value range, and the difference between the selected two adjacent light intensities is equal to the preset light intensity difference.

[0023] The beneficial effects of the present invention are: When performing Mura defect detection on an industrial computer display screen, the present invention analyzes images to be detected corresponding to different light intensities, and calculates the influence of different light intensities through the contrast enhancement degree and blur diffusion degree of the images to be detected corresponding to different light intensities, wherein the defect possibility of the first pixel point in the reference image corresponding to the reference light intensity is used as a weight, and the contrast enhancement degree of the image to be detected is calculated, so that the obtained contrast enhancement degree reflects the contrast enhancement degree of the pixel point belonging to the Mura defect, and the difference between 1 and the defect possibility of the first pixel point in the reference image corresponding to the reference light intensity is used as a weight, and the blur diffusion degree of the image to be detected is calculated, so that the obtained blur diffusion degree reflects the blur diffusion degree of the pixel point that does not belong to the Mura defect, and finally the Mura defect detection is performed on the image to be detected corresponding to the target light intensity with the greatest influence, and the Mura defect is highlighted in the image to be detected corresponding to the target light intensity, which can improve the accuracy of the Mura defect detection of the image to be detected, thereby improving the accuracy of the Mura defect detection of the industrial computer display screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein: Figure 1 The flowchart schematically shows the method for detecting defects of an industrial computer display screen based on image processing in the present invention. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0026] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0027] The embodiment of the present invention discloses an industrial computer display screen defect detection method based on image processing, referring to Figure 1 , comprising steps S1 to S4: S1. Collect images of the industrial computer display screen to be inspected under different light intensities.

[0028] It should be noted that in the process of producing industrial computer displays, assembly misalignment, foreign matter, and the entry of dust will cause Mura defects; minor Mura defects will not significantly affect the overall performance or appearance of the product, while some serious Mura defects may cause the product to be considered unqualified. Therefore, it is necessary to conduct Mura defect degree detection on the produced industrial computer displays in order to screen out unqualified industrial computer displays in a timely manner.

[0029] It should be further explained that when performing Mura defect detection on an industrial computer display screen, when collecting images to be detected of the industrial computer display screen, light sources with different light intensities have different degrees of influence on the images to be detected. In order to improve the accuracy of the results of Mura defect detection of the industrial computer display screen; therefore, this embodiment collects images to be detected of the industrial computer display screen to be detected under different light intensities.

[0030] Specifically, the light intensity of the light source built into the detection device is adjusted, and under different light intensities, the image to be detected of the industrial computer display screen is collected through the high-definition camera built into the detection device as the image to be detected corresponding to different light intensities; the collected images to be detected corresponding to the different light intensities are filtered to eliminate random noise points generated by the heating of electronic components of the high-definition camera, and reduce the influence of noise in the image to be detected on the result of Mura defect detection; the filtering method includes but is not limited to median filtering.

[0031] The interior of the detection device is a dark environment, and is provided with a high-definition camera and a light source. The adjustable light intensity can be adjusted, and the position of the industrial computer display screen inside the detection device is fixed.

[0032] The value range of the light intensity is [200, 1000], the unit of the light intensity is lux, and multiple light intensities are selected from the value range of the light intensity, and the difference between two adjacent selected light intensities is equal to the preset light intensity difference.

[0033] The specific value of the preset light intensity difference can be set according to the actual application scenario and requirements. The preset light intensity difference is an integer greater than 0. The present invention sets the preset light intensity difference to 50.

[0034] Furthermore, the current industrial computer display screen is recorded as the Wth industrial computer display screen, and the average of the target light intensities obtained when detecting the W-1th industrial computer display screen to the W-10th industrial computer display screen is used as the reference light intensity when detecting the current industrial computer display screen, and the image to be detected corresponding to the reference light intensity is collected and recorded as the reference image.

[0035] S2. Obtain the influence of different light intensities according to the contrast enhancement degree and blur diffusion degree of the image to be detected; and obtain the target light intensity according to the fitting curve of the influence degree.

[0036] It should be noted that when collecting the image to be detected of the industrial computer display screen, appropriate light intensity can help improve the contrast of the image to be detected, thereby making it easier to detect Mura defects; at the same time, the light of the light source is mixed with the light emitted by the industrial computer display screen itself, resulting in a diffusion effect on the image to be detected, causing the pixels in the image to be detected to be blurred and diffused. If the blurred diffusion occurs in the non-Mura defects of the image to be detected, the Mura defects can be highlighted, thereby improving the accuracy of the Mura defects of the image to be detected; therefore, according to the contrast enhancement degree and the blurred diffusion degree of the image to be detected, the influence degree of different light intensities is obtained, and according to the fitting curve of the influence degree, the target light intensity with the greatest influence degree is obtained.

[0037] 1. Calculate the defect probability of the first pixel in the reference image.

[0038] It should be noted that when judging the degree of influence of different light intensities, it is necessary to compare the image to be detected corresponding to different light intensities with the reference image to judge whether the contrast of the pixels belonging to the Mura defect in the image to be detected is improved, and at the same time, judge whether the blur diffusion degree of the pixels not belonging to the Mura defect in the image to be detected is improved. This is because improving the contrast of the pixels belonging to the Mura defect and the blur diffusion degree of the pixels not belonging to the Mura defect can make the Mura defect in the image to be detected more prominent, so as to more accurately identify and locate the position and degree of the Mura defect.

[0039] It should be further explained that the Mura defect is manifested as an area with uneven brightness. In the area with uneven brightness, the grayscale values ​​of the pixels in the neighborhood of each pixel change, which will lead to a larger gradient amplitude of the pixels in the Mura defect area. Therefore, the pixel with a larger gradient amplitude is more likely to be an edge pixel of the Mura defect. At the same time, the Mura defect is usually not a problem of a single pixel, but involves multiple adjacent pixels. Therefore, the distribution direction of the pixel in the Mura defect is similar to that of other pixels in its neighborhood, and the larger the gradient amplitude of other pixels in the neighborhood of the pixel in the Mura defect, the larger the gradient direction of the pixel can reflect the distribution direction of the pixel. Therefore, the more similar the gradient direction is to the pixel in the neighborhood, the more likely it is to be an edge pixel of the Mura defect.

[0040] Specifically, in the reference image, the defect possibility of the first pixel is calculated according to the gradient amplitude of the first pixel, the average of the gradient amplitudes of all pixels in its first neighborhood, and the difference in gradient directions between the first pixel and all pixels in its second neighborhood. The defect possibility is proportional to the gradient amplitude and the average of the gradient amplitude, and inversely proportional to the difference in gradient directions. The defect possibility of the first pixel satisfies the expression:

[0041] In the formula, represents the defect probability of the first pixel of the i-th pixel in the reference image, represents the gradient magnitude of the first pixel in the i-th reference image, represents the first quartile of the gradient magnitude of all pixels in the first neighborhood of the i-th first pixel in the reference image, represents the gradient direction of the first pixel of the i-th pixel in the reference image, represents the gradient direction of the jth pixel in the second neighborhood of the i-th first pixel in the reference image, B represents the number of all pixels in the second neighborhood, and B is equal to the preset second length, represents an exponential function with a natural constant as base, Indicates the absolute value; the first quartile It is equal to the 25th% gradient amplitude of the gradient amplitudes of all pixels in the first neighborhood of the i-th first pixel in the reference image arranged from small to large.

[0042] It should be noted that the first quartile of the gradient amplitude of all pixels in the first neighborhood of the i-th first pixel in the reference image is Represents the mean value of the gradient amplitudes of all pixels in the first neighborhood of the first pixel; The smaller it is, the more likely it is that the first pixel point has a defect, as the distribution direction of the other pixels in its second neighborhood is similar.

[0043] It should be noted that the defect possibility of the first pixel calculated based on the gradient amplitude of the first pixel, the average of the gradient amplitudes of all pixels in its first neighborhood, and the difference in gradient direction between the first pixel and all pixels in its second neighborhood can accurately reflect the probability that the pixel in the reference image is a Mura defect.

[0044] The first neighborhood refers to a rectangular area with a pixel point as the center and a size equal to K×K, where K represents the length of the side of the rectangular area, the unit of the side length is pixel point, K is equal to a preset first length, and the two sides of the first neighborhood are parallel to the two sides of the image to be detected.

[0045] The second neighborhood refers to a rectangular area centered on a pixel point and having a size equal to 1×C, wherein 1 represents the length of the side parallel to the gradient direction of the pixel point in the rectangular area, and C represents the length of the side perpendicular to the gradient direction of the pixel point in the rectangular area. The unit of the side length is pixel point, and C is equal to the preset second length.

[0046] It should be noted that the present invention determines the directions of the two sides of the second neighborhood based on the gradient direction of the pixel point, and can more accurately judge the similarity between the distribution directions of the pixel point and other pixel points in its second neighborhood.

[0047] The specific values ​​of the preset first length and the second length can be set according to the actual application scenario and requirements. The preset first length and the second length are both odd numbers greater than 0. The present invention sets the preset first length to 5 and the preset second length to 7.

[0048] 2. Calculate the contrast enhancement degree of the image to be detected.

[0049] Specifically, in the image to be detected corresponding to different light intensities, the difference between the gradient amplitude of the second pixel point and the first pixel point at the same position in the reference image is calculated, and the difference is weighted according to the defect possibility to obtain the contrast enhancement degree of the image to be detected; the contrast enhancement degree of the image to be detected satisfies the expression:

[0050] In the formula, Q represents the contrast enhancement degree of the image to be detected, N represents the number of all pixels in the image to be detected, represents the gradient amplitude of the sth second pixel in the image to be detected, represents the gradient magnitude of the sth first pixel in the reference image, represents the defect probability of the sth first pixel in the reference image, Represents the maximum value function.

[0051] It should be noted that the gradient amplitude of a pixel represents the contrast of the pixel. Therefore, the difference between the gradient amplitude of the s-th second pixel in the image to be detected and the gradient amplitude of the s-th first pixel in the reference image is The larger the value is, the greater the contrast of the s-th second pixel point in the image to be detected is compared with the gradient amplitude of the s-th first pixel point in the reference image, which further indicates that the degree of contrast enhancement caused by the light intensity corresponding to the image to be detected is greater.

[0052] It should be noted that the present invention uses the defect possibility as a weight to calculate the contrast enhancement degree of the image to be detected, so that the obtained contrast enhancement degree reflects the contrast enhancement degree of the pixel points belonging to the Mura defect, thereby making the Mura defect in the image to be detected corresponding to the finally determined target light intensity prominent and easy to detect, thereby improving the accuracy of Mura defect detection in the image to be detected.

[0053] 3. Calculate the blur diffusion degree of the image to be detected.

[0054] Specifically, the ratio of the distribution discreteness of the grayscale values ​​of all pixels in the first neighborhood of the second pixel point to the distribution discreteness of the grayscale values ​​of all pixels in the first neighborhood of the first pixel point at the same position in the reference image is obtained, and the ratio is weighted according to 1 and the difference between the defect possibility to obtain the blur diffusion degree of the image to be inspected, and the blur diffusion degree is inversely proportional to the difference in the defect possibility.

[0055] It should be noted that, for pixels with fuzzy diffusion, the distribution of grayscale values ​​of all pixels in the first neighborhood is relatively similar, that is, the smaller the distribution dispersion is, the greater the degree of fuzzy diffusion of the pixel is.

[0056] In one embodiment, information entropy is used to represent the distribution discreteness of the grayscale values ​​of all pixels in the first neighborhood of the second pixel, and the blur diffusion degree of the image to be detected satisfies the expression:

[0057] Where M represents the degree of fuzzy diffusion of the image to be detected. The information entropy of the grayscale values ​​of all pixels in the first neighborhood of the s-th second pixel in the image to be detected is, The information entropy of the grayscale values ​​of all pixels in the first neighborhood of the s-th first pixel in the reference image, represents the defect probability of the sth first pixel in the reference image, N represents the number of all pixels in the image to be detected, Represents an exponential function with a natural constant as its base.

[0058] In other embodiments, the variance is used to represent the distribution discreteness of the grayscale values ​​of all pixels in the first neighborhood of the second pixel, and the fuzzy diffusion degree of the image to be detected satisfies the expression:

[0059] Where M represents the degree of fuzzy diffusion of the image to be detected. represents the variance of the grayscale values ​​of all pixels in the first neighborhood of the sth second pixel in the image to be detected, represents the variance of the grayscale values ​​of all pixels in the first neighborhood of the sth first pixel in the reference image, represents the defect probability of the sth first pixel in the reference image, N represents the number of all pixels in the image to be detected, Represents an exponential function with a natural constant as its base.

[0060] It should be noted that the present invention uses the difference between 1 and the defect possibility as a weight to calculate the blur diffusion degree of the image to be detected, so that the obtained blur diffusion degree reflects the blur diffusion degree of the pixel points that do not belong to the Mura defect, thereby making the Mura defect in the image to be detected corresponding to the finally determined target light intensity prominent and easy to detect, thereby improving the accuracy of Mura defect detection in the image to be detected.

[0061] 4. According to the contrast enhancement degree and blur diffusion degree, the influence degree of different light intensities is obtained; according to the fitting curve of the influence degree, the target light intensity is obtained.

[0062] Specifically, the sum of the contrast enhancement degree and the blur diffusion degree of the image to be detected corresponding to different light intensities is taken as the influence degree of different light intensities.

[0063] Furthermore, the influence degree of all light intensities is fitted to obtain a fitting curve of the influence degree; the present invention does not limit the fitting algorithm used in the fitting, and the implementer can select the fitting algorithm according to the actual implementation situation, such as the least squares method, the maximum likelihood method, etc.

[0064] Furthermore, the light intensity corresponding to the maximum value point of the fitting curve of the influence degree is taken as the target light intensity; and the image to be detected corresponding to the target light intensity is recorded as the target image to be detected.

[0065] It should be noted that, when the present invention performs Mura defect detection on the industrial computer display screen, by analyzing the images to be detected corresponding to different light intensities, the influence of different light intensities is calculated through the contrast enhancement degree and blur diffusion degree of the images to be detected corresponding to different light intensities, wherein the defect possibility of the first pixel point in the reference image corresponding to the reference light intensity is used as a weight, and the contrast enhancement degree of the image to be detected is calculated, so that the obtained contrast enhancement degree reflects the contrast enhancement degree of the pixel point belonging to the Mura defect, and the difference between 1 and the defect possibility of the first pixel point in the reference image corresponding to the reference light intensity is used as a weight to calculate the blur diffusion degree of the image to be detected, so that the obtained blur diffusion degree reflects the blur diffusion degree of the pixel point that does not belong to the Mura defect. Finally, Mura defect detection is performed on the image to be detected corresponding to the target light intensity with the greatest influence. The Mura defect is highlighted in the image to be detected corresponding to the target light intensity, which can improve the accuracy of Mura defect detection of the image to be detected, thereby improving the accuracy of Mura defect detection of the industrial computer display screen.

[0066] S3. Performing Mura defect detection on the target image to be detected to obtain a defect detection result of the target image to be detected.

[0067] Specifically, a grayscale histogram of the target image to be detected is obtained, wherein the abscissa of the grayscale histogram is the grayscale value and the ordinate is the frequency of the grayscale value; the grayscale value corresponding to the maximum frequency in the grayscale histogram is recorded as the background grayscale value; the grayscale value not in the grayscale histogram is recorded as the background grayscale value. Pixels within the range are recorded as defective pixels, G represents the background gray value, and P represents the preset range size.

[0068] The specific value of the preset range size can be set according to the actual application scenario and requirements. The preset range size is an integer greater than 10. The present invention sets the preset range size to 40.

[0069] It should be noted that since most of the areas in the target image to be detected are normal areas and have consistent grayscale values, the grayscale value with the highest frequency and its nearby grayscale values ​​in the grayscale histogram of the target image to be detected can represent the grayscale values ​​of the pixels in the normal area. Pixels corresponding to grayscale values ​​that are larger or smaller than the grayscale value with the highest frequency are all defective pixels.

[0070] Further, a connected domain analysis is performed on all defective pixels to obtain multiple connected domains; for any connected domain, the ratio of the average grayscale value of all pixels in the connected domain to the standard deviation of the grayscale value of all pixels in the connected domain is recorded as the contrast of the connected domain; then the Semu index of the connected domain is equal to the ratio of the absolute value of the contrast of the connected domain to the minimum perceptible contrast difference of the connected domain, wherein the minimum perceptible contrast difference of the connected domain satisfies the expression:

[0071] Where Y represents the minimum perceptible contrast difference of the connected domain, and m represents the area of ​​the connected domain.

[0072] Furthermore, the connected domain with Semu index greater than 1 is recorded as the Mura defect area.

[0073] Among them, the calculation methods of the minimum perceptible contrast difference and the Semu index are both well-known technologies in the Mura defect detection method based on the Just Noticeable Difference (JND) theory, and will not be described in detail here.

[0074] S4. Calculate the pass rate of the industrial computer display screen to be inspected according to the defect detection result of the target image to be inspected.

[0075] Specifically, according to the number, shape and Semu index of all Mura defect areas in the target image to be detected, the qualified rate of the industrial computer display screen to be detected is calculated; then the qualified rate of the industrial computer display screen to be detected satisfies the expression:

[0076] In the formula, R represents the qualified rate of the industrial computer display screen to be tested, T represents the number of Mura defect areas in the target image to be tested, represents the perimeter of the t-th Mura defect area, Represents the Semu index of the t-th Mura defect area, Represents an exponential function with a natural constant as its base.

[0077] It should be noted that the larger the number of Mura defect areas in the target image to be inspected, and the larger the perimeter and Semu index of these Mura defect areas, the lower the qualified rate of the industrial computer display screen to be inspected.

[0078] In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.

[0079] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, alternatives to the embodiments of the present invention described herein may be employed.

Claims

1. An industrial computer display screen defect detection method based on image processing, characterized in that: include: Collect the images to be tested of the industrial computer display screen under different light intensities; In the reference image corresponding to the reference light intensity, the defect possibility of the first pixel is calculated according to the gradient amplitude of the first pixel, the average of the gradient amplitudes of all pixels in its first neighborhood, and the difference in gradient directions between the first pixel and all pixels in its second neighborhood; In the image to be inspected corresponding to different light intensities, the difference between the gradient amplitude of the second pixel point and the first pixel point at the same position in the reference image is calculated, and the contrast enhancement degree of the image to be inspected is obtained by weighting the difference according to the defect possibility; Obtaining a ratio of the distribution discreteness of the grayscale values ​​of all pixels in the first neighborhood of the second pixel to the distribution discreteness of the grayscale values ​​of all pixels in the first neighborhood of the first pixel at the same position in the reference image, weighting the ratio according to the difference between 1 and the defect probability, and obtaining the blur diffusion degree of the image to be inspected; and taking the sum of the contrast enhancement degree and the blur diffusion degree as the influence degree of different light intensities; The light intensity corresponding to the maximum value point of the fitting curve of the influence degree is taken as the target light intensity; Perform Mura defect detection on the image to be detected corresponding to the target light intensity, and calculate the qualified rate of the industrial computer display screen to be detected based on the defect detection results.

2. The method for detecting defects in an industrial computer display screen based on image processing according to claim 1, characterized in that: The first neighborhood refers to a rectangular area with a pixel point as the center and a size equal to K×K, K represents the length of a side of the rectangular area, the unit of the side length is a pixel point, K is equal to a preset first length, and two sides of the first neighborhood are parallel to two sides of the image to be detected; The second neighborhood refers to a rectangular area centered on a pixel point and having a size equal to 1×C, wherein 1 represents the length of the side parallel to the gradient direction of the pixel point in the rectangular area, and C represents the length of the side perpendicular to the gradient direction of the pixel point in the rectangular area. The unit of the side length is pixel point, and C is equal to the preset second length.

3. The method for detecting defects in an industrial computer display screen based on image processing according to claim 2 is characterized in that: The defect probability of the first pixel satisfies the expression: ; In the formula, represents the defect probability of the first pixel of the i-th pixel in the reference image, represents the gradient magnitude of the first pixel in the i-th reference image, represents the first quartile of the gradient magnitude of all pixels in the first neighborhood of the i-th first pixel in the reference image, represents the gradient direction of the first pixel of the i-th pixel in the reference image, represents the gradient direction of the jth pixel in the second neighborhood of the i-th first pixel in the reference image, B represents the number of all pixels in the second neighborhood, and B is equal to the preset second length, represents an exponential function with a natural constant as base, Indicates taking the absolute value.

4. The method for detecting defects of an industrial computer display screen based on image processing according to claim 3 is characterized in that: The contrast enhancement degree of the image to be detected satisfies the expression: ; In the formula, Q represents the contrast enhancement degree of the image to be detected, N represents the number of all pixels in the image to be detected, represents the gradient amplitude of the sth second pixel in the image to be detected, represents the gradient magnitude of the sth first pixel in the reference image, represents the defect probability of the sth first pixel in the reference image, Represents the maximum value function.

5. The method for detecting defects of an industrial computer display screen based on image processing according to claim 3 is characterized in that: The fuzzy diffusion degree of the image to be detected satisfies the expression: ; Where M represents the degree of fuzzy diffusion of the image to be detected. The information entropy of the grayscale values ​​of all pixels in the first neighborhood of the s-th second pixel in the image to be detected is, The information entropy of the grayscale values ​​of all pixels in the first neighborhood of the s-th first pixel in the reference image, represents the defect possibility of the sth first pixel in the reference image, and N represents the number of all pixels in the image to be detected.

6. The method for detecting defects of an industrial computer display screen based on image processing according to claim 3 is characterized in that: The fuzzy diffusion degree of the image to be detected satisfies the expression: ; Where M represents the degree of fuzzy diffusion of the image to be detected. represents the variance of the grayscale values ​​of all pixels in the first neighborhood of the sth second pixel in the image to be detected, represents the variance of the grayscale values ​​of all pixels in the first neighborhood of the sth first pixel in the reference image, represents the defect possibility of the sth first pixel in the reference image, and N represents the number of all pixels in the image to be detected.

7. The method for detecting defects of an industrial computer display screen based on image processing according to claim 1, characterized in that: The performing Mura defect detection on the image to be detected corresponding to the target light intensity includes: The image to be detected corresponding to the target light intensity is recorded as the target image to be detected; the pixel points whose grayscale values ​​are not in the range of [G-30, G+30] are recorded as defective pixels, and G represents the grayscale value corresponding to the maximum frequency in the grayscale histogram of the target image to be detected; Connected domain analysis is performed on all defective pixels to obtain multiple connected domains. For any connected domain, the ratio of the average grayscale value of all pixels in the connected domain to the standard deviation of the grayscale value of all pixels in the connected domain is recorded as the contrast of the connected domain. The ratio of the absolute value of the contrast of the connected domain to the minimum perceptible contrast difference of the connected domain is recorded as the Semu index of the connected domain. A connected domain with a Semu index greater than 1 is recorded as a Mura defect area.

8. The method for detecting defects of an industrial computer display screen based on image processing according to claim 7 is characterized in that: The minimum perceptible contrast difference of the connected domain satisfies the expression: ; Where Y represents the minimum perceptible contrast difference of the connected domain, and m represents the area of ​​the connected domain.

9. The method for detecting defects of an industrial computer display screen based on image processing according to claim 7, characterized in that: The qualified rate of the industrial computer display screen to be tested includes: ; In the formula, R represents the qualified rate of the industrial computer display screen to be tested, T represents the number of Mura defect areas in the target image to be tested, represents the perimeter of the t-th Mura defect area, Represents the Semu index of the t-th Mura defect area, Represents an exponential function with a natural constant as its base.

10. The method for detecting defects of an industrial computer display screen based on image processing according to claim 1, characterized in that: The method for setting different light intensities includes: The value range of the light intensity is [200, 1000], the unit of the light intensity is lux, and multiple light intensities are selected from the value range of the light intensity, and the difference between two adjacent selected light intensities is equal to the preset light intensity difference.

Citation Information

Patent Citations

  • Mura detection method and device based on variable coefficient

    CN110570411A

  • Defect detection method for industrial control capacitance touch LCD display assembly

    CN115797342A

  • Halo test method and system for display equipment

    CN117524021A

  • GPU-based TFT-LCD mura defect detection method

    US20190197678A1