Method of detecting defective pixels in electronic displays
A method of detecting a defect in an electronic display includes taking a digital image of the electronic display; and electronically determining if an area of the electronic display is defective based on data of the digital image.
1. A method of detecting a defect in an electronic display, the method comprising:
driving the electronic display to a display a uniform gray color;
capturing a single digital image of the electronic display with a digital camera; and
determining if an area of the electronic display is defective based on the digital image by:
comparing an average luminance of pixels adjacent to a pixel of the digital image to a luminance of the pixel of the digital image;
identifying the pixel of the digital image for further analysis, if the difference in luminance between the pixel of the digital image and the average luminance of adjacent pixels exceeds a threshold; and
for every pixel of the digital image identified for further analysis, determining if a number of other pixels of the digital image identified for further analysis within a predetermined surrounding area exceeds a predetermined number; and
generating a defect map that highlights pixels of the digital image where the predetermined number is exceeded.
2. The method of claim 1 , further comprising:
building an array of color values for each pixel of the digital image; and
calculating a luminance value for each pixel of the digital image based on a color value corresponding to each pixel.
3. The method of claim 1 , wherein the average luminance is calculated for three pixels directly to the left, directly above, directly to the right, and directly below each pixel of the digital image.
4. The method of claim 1 , wherein the average luminance is calculated for three pixels directly above, directly below, and directly to either the right or the left of each pixel of the digital image depending from which side of the electronic display a corresponding one of each pixel of the digital image is taken.
5. The method of claim 1 , wherein the predetermined surrounding area is square.