Computing device and defect detection method for near-eye display device

By performing fast Fourier transform and band-pass filtering on the display panel of the near-eye display device, combined with threshold map judgment, the problem of poor imaging quality in the peripheral area is solved, accurate detection of stains and bright spots is achieved, and the factory quality of the device is ensured.

CN114764779BActive Publication Date: 2024-10-11QUANTA COMPUTER INC
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202110074515.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-12-30
Filing Date
2021-01-20
Publication Date
2024-10-11
Estimated Expiration
2041-01-20

AI Technical Summary

Technical Problem

When existing near-eye display devices detect stains and bright spots on display panels and optical modules, the imaging quality in the peripheral area is poor, making it difficult for traditional computer vision technology and manual visual inspection to accurately judge.

Method used

The test pattern and background image of the display panel passing through the Fresnel lens are captured by the camera, fast Fourier transform, bandpass filter processing is performed, and divided into areas of interest, the threshold in the histogram is calculated, and a threshold map is established to determine the defect.

Benefits of technology

It achieves more accurate defect detection of near-eye display devices, can effectively identify stains and bright spots, and improves the precision and accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114764779B_ABST
    Figure CN114764779B_ABST
Patent Text Reader

Abstract

A defect detection method for a near-eye display device, the near-eye display device comprising a display panel and a Fresnel lens. The method comprises the following steps: obtaining a reference image and a test image by taking a first image and a second image through a Fresnel lens when a camera plays a test pattern image and a test background image on the display panel respectively; performing fast Fourier transform on the reference image and the test image respectively to obtain a frequency domain reference image and a frequency domain test image; calculating the average value of pixel values ​​above a predetermined cutoff ratio of a histogram of each first region of interest of the filtered frequency domain reference image as a corresponding threshold; comparing each pixel of the filtered test image with the corresponding threshold to generate a judgment result; and establishing a defect state diagram of the near-eye display device according to the judgment result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to images, and more particularly to a computing device and a defect detection method for a near-eye display (NED). Background Art

[0002] With the advancement of technology, near-eye display devices (such as virtual reality devices and augmented reality devices) are becoming more and more popular. However, today's near-eye display devices often use optical modules with a field of view greater than 90 degrees (such as Fresnel lenses), which will result in poor imaging quality in the peripheral area. For manufacturers of near-eye display devices, defect detection (including stains and bright spots) must be performed only after the near-eye display device is assembled. Based on the above optical characteristics, traditional computer vision technology or manual visual inspection methods cannot accurately determine stains and bright spots on the display panel and optical module of the near-eye display device.

[0003] Therefore, a computing device and a defect detection method for a near-eye display device are needed to solve the above problems. Summary of the invention

[0004] The present invention provides a defect detection method for a near-eye display device, the near-eye display device includes a display panel and a Fresnel lens, the method includes: obtaining a reference image and a test image by taking a first image and a second image through the Fresnel lens when a camera plays a test pattern image and a test background image on the display panel respectively; performing fast Fourier transform on the reference image and the test image respectively to obtain a frequency domain reference image and a frequency domain test image; applying a bandpass filter to the frequency domain reference image and the frequency domain test image respectively to obtain a first filtered image and a second filtered image; dividing the first filtered image and the second filtered image into a plurality of first regions of interest and a plurality of second regions of interest respectively, wherein the plurality of first regions of interest The region of interest corresponds to the multiple second regions of interest; the pixel values ​​in each first region of interest are counted to obtain a histogram corresponding to each first region of interest, and the average value of the pixel values ​​above a predetermined cutoff ratio in the histogram of each first region of interest is calculated as a threshold value corresponding to each first region of interest; a threshold map is established based on the threshold value corresponding to each first region of interest in the first filtered image, and each pixel in each second region of interest in the second filtered image is compared with the corresponding threshold value in the threshold map to generate a judgment result corresponding to each pixel in the second filtered image; and a defect state map of the near-eye display device is established based on the judgment result corresponding to each pixel in the second filtered image.

[0005] In some embodiments, the defect detection method performs stain detection, and the first image and the second image are the reference image and the image to be tested, respectively. The test background image is a full white image, and the test pattern image is the test background image covering multiple test points.

[0006] In some embodiments, the first image and the second image are high dynamic range images obtained by image fusion of multiple first exposure images and multiple second exposure images, respectively, and the multiple first exposure images and the multiple second exposure images are captured by the camera using different exposure values ​​when the near-eye display device plays the test pattern image and the test background image respectively.

[0007] In other embodiments, the defect detection method performs bright spot detection, and the test background image includes a central area and a peripheral area, and the central area and the peripheral area have a first grayscale value and a second grayscale value respectively, and the second grayscale value is greater than the first grayscale value, and the test pattern image is the test background image covering multiple test points. The central area is an area within a field of view range of 0 to 0.5 of the test background image, and the peripheral area is an area within a field of view range of 0.5 to 1 of the test background image.

[0008] In some embodiments, the first image and the second image are high dynamic range images obtained by image fusion of multiple first exposure images and multiple second exposure images, respectively, and the multiple first exposure images and the multiple second exposure images are captured by the camera using different exposure values ​​when the near-eye display device plays the test pattern image and the test background image respectively.

[0009] In some embodiments, the steps of obtaining a reference image and a test image by taking a first image and a second image when the camera plays a test pattern image and a test background image respectively on the near-eye display device include: performing image blurring processing on the first image and the second image to obtain a blurred first image and a blurred second image; subtracting the blurred first image and the blurred second image from the first image and the second image respectively to obtain a first difference image and a second difference image; performing pixel trimming processing on pixel values ​​less than 0 in the first difference image and the second difference image to obtain a first trimmed difference image and a second trimmed difference image respectively; and setting the first trimmed difference image and the second trimmed difference image as the reference image and the image to be tested.

[0010] In some embodiments, the threshold corresponding to each first region of interest decreases as the distance between each first region of interest and the center point of the first filtered image increases.

[0011] The present invention further provides a computing device for detecting defects of a near-eye display device, the near-eye display device comprising a display panel and a Fresnel lens, the computing device comprising: a non-temporary memory for storing a defect detection program; and a processor for executing the defect detection program to perform the following steps: obtaining a reference image and a test image by taking a first image and a second image through the Fresnel lens when a camera plays a test pattern image and a test background image on the display panel respectively; performing fast Fourier transform on the reference image and the test image respectively to obtain a frequency domain reference image and a frequency domain test image; applying a bandpass filter on the frequency domain reference image and the frequency domain test image respectively to obtain a first filtered image and a second filtered image; and dividing the first filtered image and the second filtered image into a plurality of first sense images. An area of ​​interest and a plurality of second areas of interest, wherein the plurality of first areas of interest correspond to the plurality of second areas of interest; counting the pixel values ​​in each first area of ​​interest to obtain a histogram corresponding to each first area of ​​interest, and calculating the average value of the pixel values ​​above a predetermined cutoff ratio in the histogram of each first area of ​​interest as a threshold value corresponding to each first area of ​​interest; establishing a threshold map based on the threshold value corresponding to each first area of ​​interest in the first filtered image, and comparing each pixel in each second area of ​​interest in the second filtered image with the corresponding threshold value in the threshold map to generate a judgment result corresponding to each pixel in the second filtered image; and establishing a defect state map of the near-eye display device based on the judgment result corresponding to each pixel in the second filtered image. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1A is a block diagram of a defect detection system according to an embodiment of the present invention.

[0013] Figure 1B According to the present invention Figure 1A A schematic diagram of using a camera to capture an image of a near-eye display device in an embodiment.

[0014] Figure 2A is a schematic diagram of a test pattern image according to an embodiment of the present invention.

[0015] Figure 2B According to the present invention Figure 2A A schematic diagram of a first filtered image in an embodiment.

[0016] Figure 2C According to the present invention Figure 2A A histogram of pixel values ​​of a central region of interest of the first filtered image in an embodiment.

[0017] Figure 3 FIG. 4 is a schematic diagram of a test pattern image for bright spot detection according to an embodiment of the present invention.

[0018] Figure 4A 4 is a flow chart of a defect detection method for a near-eye display device according to an embodiment of the present invention.

[0019] Figure 4B For the present invention Figure 4A Flow chart of step S410 in the embodiment. DETAILED DESCRIPTION

[0020] The following description is a preferred implementation of the invention, and its purpose is to describe the basic spirit of the invention, but it is not intended to limit the invention. The actual content of the invention must refer to the scope of the following claims.

[0021] It must be understood that the words "comprise", "include" and the like used in this specification are intended to indicate the existence of specific technical features, values, method steps, operation processing, elements and / or components, but do not exclude the addition of more technical features, values, method steps, operation processing, elements, components, or any combination of the above.

[0022] The words "first", "second", "third", etc. used in the claims are used to modify the elements in the claims. They are not used to indicate a priority order, a prior relationship, or that one element precedes another, or a temporal order in performing method steps. They are only used to distinguish elements with the same name.

[0023] Figure 1A is a block diagram of a defect detection system according to an embodiment of the present invention. Figure 1B According to the present invention Figure 1A A schematic diagram of using a camera to capture an image of a near-eye display device in an embodiment.

[0024] like Figure 1A As shown, the defect detection system 10 includes a computing device 100, a near-eye display device 200, and a camera 300. The computing device 100 may be a personal computer, a server, or other devices with computing capabilities, such as a microprocessor (MCU), a field programmable gate array (FPGA), a complex programmable logic device (CPLD), an application-specific integrated circuit (ASIC), etc., but the present invention is not limited thereto. In one embodiment, the computing device 100 may include a processor 110, a system memory 130, and a non-volatile memory 140. The non-volatile memory 140 stores a defect detection program 141, and the processor 110 may read the defect detection program 141 into the system memory 130 and execute it. The defect detection program 141 executes the defect detection method of the present invention, the details of which will be described in detail later.

[0025] The near-eye display device 200 may be, for example, a virtual reality (VR) device or an augmented reality (AR) head-mounted display (HMD). For ease of description, the near-eye display device 200 is taken as an example of a virtual reality display device.

[0026] The near-eye display device 200 may be, for example, a head-mounted display, and the near-eye display device 200 includes a left-eye display panel 210 and a corresponding lens 211, a right-eye display panel 220 and a corresponding lens 221, a storage unit 230, an image buffer 240, a display controller 250, and one or more transmission interfaces 260, and a housing 270. The left-eye display panel 210, the lens 211, the right-eye display panel 220, and the lens 221 are disposed in the housing 270 in a predetermined optical arrangement, and the housing 270 may include a strap or other auxiliary device (not shown) for the user to wear on the head to view the virtual reality image through the near-eye display device 200.

[0027] The left-eye display panel 210 and the right-eye display panel 220 may be, for example, a liquid crystal panel, a light-emitting diode panel, an organic light-emitting diode panel, a flexible display panel, or other types of display panels, but the present invention is not limited thereto. In some embodiments, the left-eye display panel 210 and the right-eye display panel 220 may be different and separate display panels, or may be implemented by the same display panel, and the left-eye display panel 210 and the right-eye display panel 220 are side by side and parallel, and there is no angle difference between the two. In other embodiments, the left-eye display panel 210 and the right-eye display panel 220 are side by side and non-parallel, and there is an angle difference between the two.

[0028] The lenses 211 and 221 may be implemented by, for example, a Fresnel lens or a combination of multiple Fresnel lenses, or may be a combination of other optical lenses with similar functions, but the present invention is not limited thereto.

[0029] The transmission interface 260 includes a wired transmission interface and / or a wireless transmission interface, wherein the wired transmission interface may include: High Definition Multimedia Interface (HDMI), DisplayPort (DP) interface, embedded DisplayPort (eDP), Universal Serial Bus (USB) interface, USB Type-C interface, Thunderbolt interface, Digital Video Interface (DVI) or a combination thereof, and the wireless transmission interface may include: 5th generation wireless system, Bluetooth, Wi-Fi, Near Field Communication (NFC) interface, etc., but the present invention is not limited thereto. The host 100 may transmit the image signal (which may include the left eye image and the right eye image, or the plane image) to the display controller 250 through the transmission interface 260, and the display controller 250 may play the image signal on the left eye display panel 210 and the right eye display panel 220.

[0030] The display controller 250 may be, for example, an application-specific integrated circuit, a system-on-chip, a processor, or a microcontroller, but the present invention is not limited thereto. The storage unit 230 may be, for example, a non-temporary memory, such as a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electronically erasable programmable read-only memory (EEPROM), a flash memory, etc., but the present invention is not limited thereto. The storage unit 230 is used to store firmware and test images related to the near-eye display device 200. The storage unit 230 may be, for example, external to the display controller 250, or may be integrated into the display controller 250. The image buffer 240 may be, for example, a dynamic random access memory (DRAM) for temporarily storing image signals to be played.

[0031] The camera 300 is electrically connected to the computing device 100, and can capture the display image of the near-eye display device 200 on the left or right eye side in the viewing area (or imaging area) of the near-eye display device 200, wherein the viewing area is, for example, the viewing position (or imaging position) of both eyes of the user when the user uses the near-eye display device 200 to view images. For example, the left-eye display panel 210 can display a test image and a reference image, and the above images can be captured by the camera 300 after passing through the lens 211, such as Figure 1BIn addition, the right-eye display panel 220 also displays a test image and a reference image, and the above images can be photographed by the camera 300 after passing through the lens 221. It should be noted that before the near-eye display device 200 leaves the factory, both the left-eye display panel 210 and the right-eye display panel 220 need to undergo stain and bright spot detection to filter out problematic near-eye display devices 200 to ensure the image quality of the near-eye display device 200, wherein stains and bright dots can be collectively referred to as defects.

[0032] Figure 2A is a schematic diagram of a test pattern image according to an embodiment of the present invention. Figure 1A-1B Figure and Figure 2A .

[0033] In one embodiment, the near-eye display device 200 may be referred to as a device under test (DUT). The near-eye display device 200 may first display a test pattern image 11, as shown in FIG. 2, wherein the test pattern image 11 is, for example, a full white image covered with a plurality of test points 12. It should be noted that the test pattern image 11 shown in FIG. 2 is for illustration purposes only, and the test points 12 in the test pattern image 11 may be arbitrarily distributed and are not limited to regular arrangements. In addition, the test points 12 may have any size and shape and are not limited to square test points. The test points 12 may also have any brightness and color and are not limited to black (grayscale value = 0) test points. The camera 300 may capture the test pattern image 11 presented by the left eye display panel 210 of the near-eye display device 200 after passing through the lens 211 to obtain a first image.

[0034] Next, the near-eye display device 200 displays a test background image, wherein the test background image may be, for example, a completely white image without any test points (e.g., the brightness values ​​of red / green / blue are all 255). The camera 300 may capture the test background image presented by the left-eye display panel 210 of the near-eye display device 200 after passing through the lens 211 to obtain a second image. In this embodiment, the first image and the second image may be respectively regarded as a reference image and a DUT image.

[0035] Optionally, the computing device 100 may utilize high dynamic range image technology to obtain a reference image and a test image. For example, when the near-eye display device 200 displays a test pattern image, the camera 300 may use different exposure settings (e.g., adjustable exposure time, sensitivity of the image sensor, etc.) to capture multiple exposure images, and perform image fusion on the above exposure images to obtain a first image. Similarly, when the near-eye display device 200 displays a full white image, the camera 300 may use different exposure values ​​(e.g., adjustable exposure time, sensitivity of the image sensor, etc.) to capture multiple exposure images, and perform image fusion on the above exposure images to obtain a second image. The first image and the second image may be regarded as a reference image and a DUT image, respectively.

[0036] The computing device 100 can obtain the reference image and the image to be tested taken from the camera 300, and perform fast Fourier transform (FFT) on the reference image and the image to be tested to obtain a frequency domain reference image and a frequency domain image to be tested. Then, the computing device 100 applies a band-pass filter to the frequency domain reference image and the frequency domain image to be tested to obtain a first filtered image and a second filtered image, wherein the value of each pixel in the first filtered image and the second filtered image can be, for example, a normalized value (between 0 and 1), and can reflect the degree of change of the value of each pixel corresponding to the original reference image and the image to be tested. In some embodiments, the computing device 100 can apply a band-pass filter and a demoire filter to the frequency domain reference image and the frequency domain image to be tested to obtain the first filtered image and the second filtered image. A person with ordinary knowledge in the field of the present invention can use the known band-pass filter and demoire filter to apply to the frequency domain reference image and the frequency domain image to be tested, so the details are not described in detail here.

[0037] If a specific pixel in the reference image and the image to be tested is a white pixel, and the surrounding pixels are all white pixels, it means that the pixel value of the specific pixel changes very little in the frequency domain, so after the fast Fourier transform, the pixel value of the specific pixel in the frequency domain reference image and the frequency domain image to be tested will be close to 0. If a specific pixel in the reference image and the image to be tested is a black pixel, and the surrounding pixels are all white pixels, it means that the pixel value of the specific pixel changes greatly in the frequency domain, so after the fast Fourier transform, the pixel value of the specific pixel in the frequency domain reference image and the frequency domain image to be tested will have a larger value.

[0038] It should be noted that the field of view (FOV) of lenses 211 and 221 is usually greater than 90 degrees, and the larger the field of view of lenses 211 and 221, the worse the imaging quality in the periphery of the image (for example, fewer high-frequency components, that is, the image is less sharp), which in turn leads to a greater intensity difference between the center and the periphery of the filtered image.

[0039] In addition, even if the near-eye display device 200 displays a completely white image (i.e., a test background image) without any test points, the values ​​of each pixel in the test image and the reference image captured by the camera 300 may slightly change due to the influence of environmental noise or the noise of the image sensor (not shown) of the camera 300. Therefore, many non-zero pixel values ​​in the frequency domain test image and the frequency domain reference image obtained after the fast Fourier transform may be caused by the above noise, and may cause the pixel value of the high-frequency noise in the central area of ​​the image to be higher than the real signal in the peripheral area of ​​the image, which is not conducive to detecting blemishes in the overall field of view of the camera 300. Furthermore, because the camera 300 performs the above-mentioned shooting operation after the near-eye display device 200 is assembled, if there is dust or stain in the left-eye display panel 210 and lens 211, or the right-eye display panel 220 and lens 221 in the near-eye display device 200, it may also affect the test image captured by the camera 300.

[0040] Figure 2B According to the present invention Figure 2A A schematic diagram of a first filtered image in an embodiment.

[0041] In this embodiment, after the computing device 100 obtains the first filtered image, the corresponding pixel value of each test point in the reference image in the first filtered image can be known. For example, the pixel value of the test point in the reference image in the central area of ​​the first filtered image is 0.2 and the pixel value of the noise is 0.03, but the pixel value in the peripheral area of ​​the first filtered image is 0.02 and the pixel value of the noise is 0.01. Therefore, the computing device 100 sets different thresholds for different regions of interest in the central area and the peripheral area to detect stains in the central area and the peripheral area.

[0042] Specifically, the computing device 100 can divide the first filter image 20 and the second filter image into a plurality of regions of interest (ROI) 21 according to a predetermined region size, wherein each region of interest can have any shape and any area, and is not limited to a square. In addition, each region of interest can be arbitrarily distributed in the first filter image and the second filter image, that is, the area and shape of the region of interest at each position have no fixed format. For ease of explanation, in this embodiment, each region of interest 21 has a fixed size (100x100 pixels) and a fixed shape (e.g., a square), such as Figure 2B If the resolution of the first filtered image 20 is 4000x3000 pixels, 40*30 regions of interest can be obtained through the above image segmentation process.

[0043] Next, the computing device 100 counts the pixel values ​​of each pixel in each region of interest in the first filtered image to generate a histogram corresponding to each region of interest. For example, the computing device 100 may arrange the pixel values ​​of each pixel in each region of interest from low to high, and set a predetermined cutoff ratio. For example, if the cutoff ratio is 99%, it means that the computing device 100 will calculate the average value of the pixel values ​​between 99% and 100% in the histogram of each region of interest, and set the average value as the threshold value of the region of interest. In other embodiments, the cutoff ratio may be reversely set to 1%, and the computing device 100 will calculate the average value of the pixel values ​​in the top 1% of the histogram of each region of interest, and set the average value as the threshold value of the region of interest.

[0044] Figure 2C is a histogram of pixel values ​​of the central region of interest 21C of the first filtered image 20, and the computing device 100 can calculate that the average value of the top 1% pixel values ​​of the histogram of the central region of interest 21C is 0.08, and sets the average value as the corresponding threshold of the central region of interest 21C.

[0045] After the computing device 100 calculates the threshold value corresponding to each ROI according to the above method, a threshold map can be established, wherein the threshold map is a two-dimensional array, and its size corresponds to the number of ROIs in the first filtered image 20. For example, if the first filtered image 20 is divided into 40*30 ROIs, the threshold map includes 40x30 threshold values, and each threshold value corresponds to each ROI.

[0046] After the computing device 100 has established the threshold map, the computing device 100 can compare the second filtered image with the threshold map to generate a judgment result for each pixel. For example, if the second filtered image is also divided into 40*30 regions of interest, each pixel in each region of interest will be compared with the threshold value at the corresponding position in the threshold map. If the pixel value of a specific pixel in the second filtered image is greater than or equal to the threshold value of the corresponding region of interest, the computing device 100 will determine that the specific pixel is a stain. Therefore, the computing device 100 can establish a defect state map (for example, a two-dimensional array) of the near-eye display device 200 based on the judgment result of each pixel, wherein each value of the defect state map corresponds to the stain judgment result of each pixel of the image to be tested. For example, the judgment result of each pixel is a binary value, such as 0 or 1, wherein 1 may indicate that the corresponding pixel is a stain, and 0 indicates that the corresponding pixel is a normal pixel.

[0047] It should be noted that, for the test points, in the first filtered image, the pixel values ​​of the test points in the central area will be larger than the pixel values ​​of the test points in the peripheral area, and after the histogram and threshold calculation, the size of each value in the threshold map is also related to the distance from the center point of the image. That is, the closer the area of ​​interest is to the center point of the image, the larger the corresponding threshold will be, and the farther the area of ​​interest is from the center point of the image, the smaller the corresponding threshold will be. Therefore, the defect detection method of the present invention can more accurately determine defects (such as stains) in the near-eye display device 200.

[0048] The defect detection system of the present invention can also be used to detect bright spots of the near-eye display device 200. For example, bright spots are common defects on display panels. For example, when a specific pixel should be turned off by the display panel, the specific pixel is always bright. At this time, the specific pixel can be called a bright spot. The brightness of the bright spot will vary with the degree of defect. In general, the supplier of the display panel can provide a detection standard for the bright spot of the display panel, for example, the brightness of the bright spot within the field of view of 0 to 0.5 cannot exceed the grayscale value of 55, and the brightness of the bright spot within the field of view of 0.5 to 1.0 cannot exceed the grayscale value of 120. The value of the above-mentioned field of view refers to the ratio of the distance from the center point of the display panel to the left / right edge and the upper / lower edge. Assuming that the horizontal resolution and vertical resolution of the left-eye display panel 210 and the right-eye display panel 220 are W and H respectively, if the value of the field of view is 0 to 0.5, it means that the field of view extends 1 / 4W to the left and right from the center point of the display panel, and extends 1 / 4H up and down, and so on.

[0049] Traditional bright spot detection can be divided into manual visual inspection and computer vision inspection. However, artificial targets require trained inspectors, and are subjective, time-consuming and inaccurate. Computer vision inspection displays a test image with a fixed grayscale on the display panel. For example, if the detection target is a bright spot with a grayscale value of 55, the grayscale value of the test image can be set to 30. Then, an industrial camera can be used to shoot the screen of the display panel playing the test image and a computer can be used to detect bright spots. However, using traditional computer vision technology for bright spot detection still encounters the problem of spot detection, and in near-eye display devices, the peripheral area of ​​the image captured by the camera will be blurred, and it is impossible to use a fixed threshold method to determine the bright spot.

[0050] Figure 3 FIG. 4 is a schematic diagram of a test pattern image for bright spot detection according to an embodiment of the present invention.

[0051] In one embodiment, the defect detection system of the present invention can also be used for bright spot detection. Because the camera 300 performs the above-mentioned shooting operation after the near-eye display device 200 is assembled, if there is dust or stain (i.e., stain) in the left-eye display panel 210 and lens 211, or the right-eye display panel 220 and lens 221 in the near-eye display device 200, it will affect the result of bright spot detection.

[0052] For example, in this embodiment, the test pattern image 30 for detecting bright spots may include a central area 31 and a peripheral area 32. The central area 31 is, for example, an area with a field of view of 0 to 0.5, and its grayscale value may be fixed to 55 (not limited). The peripheral area 32 is, for example, an area with a field of view of 0.5 to 1, and its grayscale value may be fixed to 120 (not limited). In addition, the test pattern image 30 also has a plurality of test points 33 covering it. It should be noted that the test points in the test pattern image 30 may have any brightness value (or grayscale value), and may have any color, size and distribution. The camera 300 may capture the test pattern image 30 presented by the left eye display panel 210 of the near-eye display device 200 after passing through the lens 211 to obtain a first image.

[0053] In addition, the near-eye display device 200 displays a test background image without any test points, and the camera 300 can capture the test background image presented by the left-eye display panel 210 of the near-eye display device 200 after passing through the lens 211 to obtain a second image.

[0054] Next, the computing device 100 may perform image preprocessing on the first image and the second image to obtain a reference image and a test image for bright spot detection, respectively. For example, the computing device 100 may perform image blurring on the first image to obtain a blurred first image, and subtract the blurred first image from the first image to obtain a first difference image.

[0055] In detail, before performing bright spot detection, the computing device 100 needs to eliminate the stains in the near-eye display device 200. If there is dust or stain (i.e., stain) in the left-eye display panel 210 and lens 211, or the right-eye display panel 220 and lens 221 in the near-eye display device 200, the pixel value of one or more pixels corresponding to the stain in the first image will be close to 0, so the pixel value of the stain will change greatly relative to the grayscale value of the surrounding pixels (e.g., 55 or 120). In addition, the above-mentioned image blurring process can, for example, apply a low-pass filter to each pixel in the first image and its surrounding pixels, such as a first-order or multi-order finite impulse response filter, a Gaussian filter, etc., but the present invention is not limited to this. Therefore, the pixel values ​​of the stain pixels and their surrounding pixels in the first image can be smoothed, but the grayscale value of the smoothed stain pixels will be slightly smaller than the grayscale value of the background pixels at the corresponding position of the stain. When the computing device 100 subtracts the blurred first image from the first image, the difference at the location of the stain pixel will be less than 0, so the computing device 100 can find the location of the stain pixel from the first difference image, and perform a pixel clipping process on the pixels less than 0 in the first difference image to obtain a first clipped difference image. For example, the pixels less than 0 in the first difference image can be replaced by difference pixels in a smooth area (i.e., an area where the grayscale value does not change dramatically) in the first image, or the pixels less than 0 in the first difference image can be directly set to 0 to obtain the first clipped difference image.

[0056] Similarly, the computing device 100 may perform an image blurring process on the second image to obtain a blurred second image, and subtract the blurred second image from the second image to obtain a second difference image. The computing device 100 may find the location of the stain pixel from the second difference image, and perform a clipping process on the pixels less than 0 in the second difference image to obtain a second clipped difference image. For example, the pixels less than 0 in the second difference image may be replaced by difference pixels in a smooth area (i.e., an area where the grayscale value does not change dramatically) in the second image, or the pixels less than 0 in the second difference image may be directly set to 0 to obtain a second clipped difference image. In this embodiment, the first clipped difference image and the second clipped difference image can be regarded as being in Figure 2A-2C Reference image and image to be tested in the defect detection process of the embodiment.

[0057] Therefore, after the computing device 100 obtains the reference image and the image to be tested through the above process, the computing device 100 can perform the reference image and the image to be tested in Figure 2A-2C The defect detection process of the embodiment, and each value of the defect state diagram finally generated corresponds to the bright spot judgment result of each pixel of the image to be tested, and stains have been excluded. For example, the judgment result of each pixel is a binary value, such as 0 or 1, where 1 can indicate that the corresponding pixel is a bright spot, and 0 indicates that the corresponding pixel is a normal pixel.

[0058] Figure 4A 4 is a flow chart of a defect detection method for a near-eye display device according to an embodiment of the present invention.

[0059] In step S410, the first image and the second image are captured through the Fresnel lens when the camera 300 plays the test pattern image and the test background image on the display panel respectively to obtain a reference image and a test image. For example, the display panel of the near-eye display device 200 (which may be the left-eye display panel 210 or the right-eye display panel 220) may play the test pattern image and the test background image, and the camera 300 may capture the test pattern image and the test background image presented by the display panel through the Fresnel lens (for example, the corresponding lens 211 or 221) to obtain the first image and the second image. In some embodiments, the first image and the second image are high dynamic range (HDR) images obtained by image fusion of multiple exposure images with different exposure values. In the spot detection process, the computing device 100 may directly set the first image and the second image as the reference image and the image to be tested. In the bright spot detection process, step S410 may be divided into steps S401 to S404, the details of which may be referred to. Figure 4B process.

[0060] In step S420, fast Fourier transform is performed on the reference image and the image to be tested to obtain a frequency domain reference image and a frequency domain image to be tested.

[0061] In step S430, a bandpass filter is applied to the frequency domain reference image and the frequency domain image to be tested to obtain a first filtered image and a second filtered image. The value of each pixel in the first filtered image and the second filtered image may be, for example, a normalized value (between 0 and 1), and may reflect the degree of change of the value of each pixel corresponding to the original reference image and the image to be tested. In some embodiments, the computing device 100 may apply a bandpass filter and a demoire filter to the frequency domain reference image and the frequency domain image to be tested to obtain the first filtered image and the second filtered image.

[0062] In step S440 , the first filtered image and the second filtered image are respectively segmented into a plurality of first regions of interest and a plurality of second regions of interest, wherein the plurality of first regions of interest correspond to the plurality of second regions of interest.

[0063] In step S450, the pixel values ​​in each first region of interest are counted to obtain a histogram corresponding to each first region of interest, and the average value of the pixel values ​​above a predetermined cutoff ratio in the histogram of each first region of interest is calculated as a threshold value corresponding to each first region of interest.

[0064] In step S460, a threshold map is established based on the threshold values ​​corresponding to each first region of interest in the first filtered image, and each pixel in each second region of interest in the second filtered image is compared with the corresponding threshold value in the threshold map to generate a judgment result corresponding to each pixel in the second filtered image. For example, each pixel in each region of interest is compared with the threshold value at the corresponding position in the threshold map. If the pixel value of a specific pixel in the second filtered image is greater than or equal to the threshold value of the corresponding region of interest, the computing device 100 determines that the specific pixel is a stain.

[0065] In step S470, a defect state map of the near-eye display device 200 is established based on the corresponding judgment results of each pixel in the second filtered image. For example, each value of the defect state map corresponds to the stain judgment result of each pixel of the image to be tested. For example, the judgment result of each pixel is a binary value, such as 0 or 1, where 1 can indicate that the corresponding pixel is a stain, and 0 indicates that the corresponding pixel is a normal pixel.

[0066] Figure 4B For the present invention Figure 4A The flowchart of step S410 in the embodiment. Please also refer to Figure 3 and Figure 4A-4B .

[0067] In the bright spot detection process, step S410 can be divided into steps S401 to S404. That is, the computing device 100 can perform image preprocessing on the first image and the second image to obtain a reference image and a test image for bright spot detection.

[0068] In step S401, the first image and the second image are subjected to image blurring processing to obtain a blurred first image and a blurred second image. For example, before performing bright spot detection, the computing device 100 needs to first eliminate the stains in the near-eye display device 200. If there is dust or stain (i.e., stain) in the left-eye display panel 210 and lens 211, or the right-eye display panel 220 and lens 221 in the near-eye display device 200, the pixel value of one or more pixels corresponding to the stain in the first image will be close to 0, so the pixel value of the stain changes greatly relative to the grayscale value of the surrounding pixels (e.g., 55 or 120). After the image blurring processing, the pixel values ​​of the stain pixels and the surrounding pixels in the first image and the second image can be smoothed, but the grayscale value of the smoothed pixel will be slightly smaller than the grayscale value of the pixel at the corresponding position of the stain.

[0069] In step S402, the blurred first image and the blurred second image are subtracted from the first image and the second image respectively to obtain a first difference image and a second difference image. For example, the grayscale value of the smoothed stain pixel is slightly smaller than the grayscale value of the background pixel at the corresponding position of the stain. Therefore, the computing device 100 can determine that the pixels less than 0 in the first difference image and the second difference image are the positions of the stain pixels.

[0070] In step S403, the pixel values ​​less than 0 in the first difference image and the second difference image are subjected to pixel trimming processing to obtain the first trimmed difference image and the second trimmed difference image respectively. In order to exclude the image of the bright spot detection of stains, the computing device 100 can replace the difference pixels of the first difference image and the second difference image with the smooth area (i.e., the area where the grayscale value does not change sharply) in the first image, or directly set the pixels less than 0 in the first difference image to 0.

[0071] In step S404 , the first trimmed difference image and the second trimmed difference image are set as a reference image and an image to be tested.

[0072] In summary, the present invention provides a computing device and a defect detection method for a near-eye display device, which can solve the problem that the image displayed by the near-eye display device has image blur in the peripheral area, causing misjudgment of stain detection, and can be matched with different test pattern images to adjust different bright spot detection standards. Therefore, the computing device and the defect detection method for a near-eye display device provided by the present invention can more accurately determine the defects of the near-eye display device (including stains and bright spots) to ensure the factory quality of the near-eye display device.

[0073] The methods of the present invention, or specific forms or portions thereof, may be included in the form of program code on a physical medium, such as a floppy disk, an optical disk, a hard disk, or any other machine-readable (e.g., computer-readable) storage medium, wherein when the program code is loaded and executed by a machine, such as a computer, the machine becomes a device or system for participating in the present invention. The methods, systems and devices of the present invention may also be transmitted in the form of program code via some transmission medium, such as wires or cables, optical fibers, or any transmission mode, wherein when the program code is received, loaded and executed by a machine, such as a computer, the machine becomes a device or system for participating in the present invention. When implemented on a general purpose processor, the program code combines with the processor to provide a unique device that operates similarly to application specific logic circuits.

[0074] Although the present invention is disclosed as above with preferred embodiments, it is not intended to limit the scope of the present invention. Any person skilled in the art may make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the appended claims.

[0075] [Explanation of symbols]

[0076] 10: Defect Detection System

[0077] 11: Test pattern image

[0078] 12: Test point

[0079] 20: First filtered image

[0080] 21: Region of Interest

[0081] 21C: Central Area of ​​Interest

[0082] 30: Test pattern image

[0083] 31: Central Area

[0084] 32: Outer area

[0085] 33: Test point

[0086] 100: Computing device

[0087] 110: Processor

[0088] 130: System memory

[0089] 140: Non-transitory memory

[0090] 141: Defect Detection Procedure

[0091] 200: Near-eye display device

[0092] 210: Left eye display panel

[0093] 211, 221: Lens

[0094] 220: Right eye display panel

[0095] 230: Storage unit

[0096] 240: Image buffer

[0097] 250: Display controller

[0098] 260: Transmission interface

[0099] 270: Shell

[0100] 300: Camera

[0101] S401-S404, S410-S470: Steps

Claims

1. A defect detection method for a near-eye display device, wherein the near-eye display device comprises a display panel and a Fresnel lens, the method comprising: When the camera plays the test pattern image and the test background image on the display panel respectively, the first image and the second image are captured by the Fresnel lens to obtain a reference image and a test image; Performing fast Fourier transform on the reference image and the image to be tested respectively to obtain a frequency domain reference image and a frequency domain image to be tested; Applying a bandpass filter to the frequency domain reference image and the frequency domain image to be measured respectively to obtain a first filtered image and a second filtered image; Segmenting the first filtered image and the second filtered image into a plurality of first regions of interest and a plurality of second regions of interest, respectively, wherein the plurality of first regions of interest correspond to the plurality of second regions of interest; Counting the pixel values ​​in each first region of interest to obtain a histogram corresponding to each first region of interest, and calculating the average value of the pixel values ​​above a predetermined cutoff ratio in the histogram of each first region of interest as a threshold value corresponding to each first region of interest; Establishing a threshold map according to the threshold values ​​corresponding to each first region of interest in the first filtered image, and comparing each pixel in each second region of interest in the second filtered image with the threshold value corresponding to the threshold map to generate a judgment result corresponding to each pixel in the second filtered image; as well as A defect state diagram of the near-eye display device is established according to the judgment result corresponding to each pixel of the second filtered image. 2 . The defect detection method for a near-eye display device according to claim 1 , wherein the defect detection method performs stain detection, and the first image and the second image are the reference image and the image to be tested, respectively. 3 . The defect detection method for a near-eye display device according to claim 2 , wherein the test background image is a full white image, and the test pattern image is the test background image covering a plurality of test points.

4. The defect detection method for a near-eye display device according to claim 2, wherein the first image and the second image are high dynamic range images obtained by image fusion of multiple first exposure images and multiple second exposure images, respectively, and the multiple first exposure images and the multiple second exposure images are captured by the camera using different exposure values ​​when the near-eye display device plays the test pattern image and the test background image, respectively.

5. A defect detection method for a near-eye display device according to claim 1, wherein the defect detection method performs bright spot detection, and the test background image includes a central area and a peripheral area, and the central area and the peripheral area respectively have a first grayscale value and a second grayscale value, and the second grayscale value is greater than the first grayscale value, and the test pattern image is the test background image covering multiple test points.

6. A defect detection method for a near-eye display device according to claim 5, wherein the central area is an area within a field of view range of 0 to 0.5 of the test background image, and the peripheral area is an area within a field of view range of 0.5 to 1 of the test background image.

7. The defect detection method for a near-eye display device according to claim 5, wherein the first image and the second image are high dynamic range images obtained by image fusion of multiple first exposure images and multiple second exposure images, respectively, and the multiple first exposure images and the multiple second exposure images are captured by the camera using different exposure values ​​when the near-eye display device plays the test pattern image and the test background image, respectively.

8. The defect detection method for a near-eye display device according to claim 5, wherein the step of obtaining a reference image and a test image by taking a first image and a second image when the camera plays a test pattern image and a test background image respectively on the near-eye display device comprises: Performing image blurring processing on the first image and the second image to obtain a blurred first image and a blurred second image; Subtracting the blurred first image and the blurred second image from the first image and the second image respectively to obtain a first difference image and a second difference image; Performing pixel trimming processing on pixel values ​​less than 0 in the first difference image and the second difference image to obtain a first trimmed difference image and a second trimmed difference image respectively; as well as The first trimmed difference image and the second trimmed difference image are set as the reference image and the image to be tested. 9 . The defect detection method for a near-eye display device according to claim 1 , wherein the threshold corresponding to each first region of interest decreases as the distance between each first region of interest and a center point of the first filtered image increases.

10. A computing device for detecting defects of a near-eye display device, wherein the near-eye display device comprises a display panel and a Fresnel lens, wherein the computing device comprises: A non-volatile memory for storing a defect detection program; as well as A processor is used to execute the defect detection program to perform the following steps: When the camera plays the test pattern image and the test background image on the display panel respectively, the first image and the second image are captured by the Fresnel lens to obtain a reference image and a test image; Performing fast Fourier transform on the reference image and the image to be tested respectively to obtain a frequency domain reference image and a frequency domain image to be tested; Applying a bandpass filter to the frequency domain reference image and the frequency domain image to be measured respectively to obtain a first filtered image and a second filtered image; Segmenting the first filtered image and the second filtered image into a plurality of first regions of interest and a plurality of second regions of interest, respectively, wherein the plurality of first regions of interest correspond to the plurality of second regions of interest; Counting the pixel values ​​in each first region of interest to obtain a histogram corresponding to each first region of interest, and calculating the average value of the pixel values ​​above a predetermined cutoff ratio in the histogram of each first region of interest as a threshold value corresponding to each first region of interest; Establishing a threshold map according to the threshold values ​​corresponding to each first region of interest in the first filtered image, and comparing each pixel in each second region of interest in the second filtered image with the threshold value corresponding to the threshold map to generate a judgment result corresponding to each pixel in the second filtered image; as well as A defect state diagram of the near-eye display device is established according to the judgment result corresponding to each pixel of the second filtered image.

Citation Information

Patent Citations

  • VR equipment, image detection method and device thereof and computer readable storage medium

    CN109919933A

  • Method, apparatus and storage medium for compensating for defect pixel of display

    KR1020150064469A

  • Computational methods for the segmentation of images of objects from background in a flow imaging instrument

    US20030086608A1

  • Image Fusion Apparatus and Method

    US20110176024A1

  • Image processing device, endoscope device, and image processing method

    US20180078123A1