Defect detection method and device of display panel, electronic equipment and medium

By acquiring images of the display panel in different states, determining and adjusting the interference area, generating the image to be detected with interference removed, and using the image generation model for defect detection, the problem of interference affecting the detection results in the production environment is solved, and detection is improved. accuracy and efficiency.

CN118864431APending Publication Date: 2024-10-29LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411047744.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

During the manufacturing process of display panels, interference objects such as dust, dirt, and residual glue in the production environment can easily be misjudged as defects, affecting inspection results and reducing production efficiency.

Method used

By acquiring the display panel image in the off state and the display panel image in the lit state, the interference area is determined, the pixel value of the interference area is adjusted, the image to be detected is generated with the interference removed, and the image generation model is used for defect detection.

Benefits of technology

It improves the accuracy and efficiency of defect detection, reduces the false alarm rate caused by interference, and can detect multiple defects as a whole without the need to process each location individually.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864431A_ABST
    Figure CN118864431A_ABST
Patent Text Reader

Abstract

The invention provides a defect detection method and device for a display panel, electronic equipment and a medium. The defect detection method comprises the following steps: acquiring a first acquisition image and a second acquisition image; wherein the first acquisition image is obtained by shooting the display panel in an extinguished state, and the second acquisition image is obtained by shooting the display panel in a lightened state; determining a mask image according to the first acquisition image; the mask image at least comprises a first interference area representing an interferent attached to the surface of the display panel; according to the mask image, processing a second interference area corresponding to the first interference area in the second acquisition image to obtain a to-be-detected image; and performing defect detection on the to-be-detected image to obtain a defect detection result for the display panel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology, and in particular to a display panel defect detection method, a display panel defect detection device, an electronic device, a medium and a product. Background Art

[0002] During the manufacturing process of display panels, it is necessary to test the display panels to determine whether they have defects, so as to prevent unqualified products from entering the market. However, due to the presence of interferences such as dust, dirt, residual glue, and hair in the production environment, interferences that fall on the display panels are easily misjudged as defects of the display panels, affecting the test results and reducing production efficiency. Summary of the invention

[0003] In view of this, the present disclosure provides a display panel defect detection method, a display panel defect detection device, an electronic device, a medium and a product.

[0004] One aspect of the present disclosure provides a defect detection method for a display panel, comprising: acquiring a first captured image and a second captured image; wherein the first captured image is obtained by photographing the display panel in an off state, and the second captured image is obtained by photographing the display panel in a lit state; determining a mask image based on the first captured image; the mask image at least includes a first interference area representing an interference object attached to a surface of the display panel; based on the mask image, processing a second interference area in the second captured image corresponding to the first interference area to obtain an image to be detected; and performing defect detection on the image to be detected to obtain a defect detection result for the display panel.

[0005] According to an embodiment of the present disclosure, processing a second interference area in a second acquired image corresponding to the first interference area according to a mask image to obtain an image to be detected includes: adjusting pixel values ​​of the second interference area in the second acquired image corresponding to the first interference area according to the mask image to obtain an adjusted image; and generating an image to be detected according to the adjusted image.

[0006] According to an embodiment of the present disclosure, an image to be detected is generated based on the adjusted image, including: taking the adjusted image as an input of an image generation model, and based on the position information of the second interference area and the feature information of other areas except the second interference area, generating an image to be detected with the interference objects attached to the surface of the display panel removed; or, taking the mask image and the adjusted image as input of the image generation model, and based on the position information of the first interference area, the position information of the second interference area and the feature information of other areas except the second interference area, generating an image to be detected with the interference objects attached to the surface of the display panel removed.

[0007] According to an embodiment of the present disclosure, the image to be detected includes a first image area and a second image area, the first image area is generated based on an image generation model, and the position of the first image area corresponds to the position of the second interference area, and the second image area is the same as other areas in the second acquired image except the second interference area.

[0008] According to an embodiment of the present disclosure, according to the mask image, the pixel value of the second interference area corresponding to the first interference area in the second acquired image is adjusted to obtain the adjusted image, including: according to the position information of the first interference area, determining the second interference area corresponding to the first interference area in the second acquired image; and adjusting the pixel value of the second interference area to a specified pixel value.

[0009] According to an embodiment of the present disclosure, the second captured image is obtained by photographing the display panel that is in a lit state and displaying specified content, and the specified content includes at least one of the following: a white picture, a gray picture, a red picture, a green picture, a black picture, a blue picture, a striped picture, a mosaic picture, and a grid picture.

[0010] According to an embodiment of the present disclosure, an image generation model is trained in the following manner: a sample image is acquired, the sample image comprising an original sample image, a mask sample image and an intermediate sample image; wherein the original sample image is acquired by photographing a display panel in a lit state, the mask sample image at least represents a first region of interference attached to a surface of the display panel, the intermediate sample image comprises a second region corresponding to the first region, and a pixel value of the second region is a specified pixel value, and other regions in the intermediate sample image except the second region are the same as corresponding regions in the original sample image; an output image is generated by taking the intermediate sample image and the mask sample image as inputs of an initial image generation model; a model loss is determined according to the difference between the output image and the original sample image, so as to adjust the parameters of the initial image generation model based on the model loss until the model converges, thereby obtaining an image generation model.

[0011] Another aspect of the present disclosure provides a defect detection device for a display panel, the device comprising: an acquisition module, used to acquire a first acquired image and a second acquired image; wherein the first acquired image is obtained by photographing the display panel in an off state, and the second acquired image is obtained by photographing the display panel in a lit state; a determination module, used to determine a mask image based on the first acquired image; the mask image at least includes a first interference area representing an interference object attached to the surface of the display panel; a processing module, used to process a second interference area corresponding to the first interference area in the second acquired image based on the mask image to obtain an image to be detected; and a detection module, used to perform defect detection on the image to be detected to obtain a defect detection result for the display panel.

[0012] Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the following method: acquiring a first acquired image and a second acquired image; wherein the first acquired image is obtained by photographing a display panel in an off state, and the second acquired image is obtained by photographing the display panel in a lit state; determining a mask image based on the first acquired image; the mask image at least includes a first interference area representing an interference object attached to the surface of the display panel; based on the mask image, processing a second interference area in the second acquired image corresponding to the first interference area to obtain an image to be detected; and performing defect detection on the image to be detected to obtain a defect detection result for the display panel.

[0013] Another aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to perform the above method.

[0014] Another aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above method when executed by a processor. It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easy to understand through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0016] Figure 1 A flow chart schematically shows a method for detecting defects of a display panel according to an embodiment of the present disclosure;

[0017] Figure 2 A schematic diagram of a defect detection method for a display panel according to an embodiment of the present disclosure is shown;

[0018] Figure 3 A schematic diagram of generating an image to be detected according to an embodiment of the present disclosure is schematically shown;

[0019] Figure 4 A schematic diagram schematically shows a model training according to an embodiment of the present disclosure;

[0020] Figure 5 A flow chart schematically shows a method for detecting defects of a display panel according to another embodiment of the present disclosure;

[0021] Figure 6The structure block diagram of the defect detection device of the display panel according to the embodiment of the present disclosure is schematically shown;

[0022] Figure 7 A schematic block diagram of an electronic device that can be used to implement the defect detection method for a display panel according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0023] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. Various details of the embodiments of the present disclosure are included to facilitate understanding, and they should be considered as merely exemplary. Therefore, it should be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Likewise, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0024] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, disclosure and application of the data involved (including but not limited to user personal information) comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.

[0025] In one example, an AI (Artificial Intelligence) model can be used to detect defects in a display panel, but interference objects such as hair in a production environment are easily adsorbed on the surface of the display panel and affect the accuracy of the detection results.

[0026] In another example, a first image of the display panel in a lit state can be captured, and a second image of the display panel in an unlit state can be captured. Defect detection is then performed on the first image and the second image, respectively, to obtain a number of first defects in the first image and a number of second defects in the second image. Then, based on the location of the defect, two regions of interest corresponding to the location are respectively intercepted from the first image and the second image, and the two regions of interest are input into the classification model, and the classification model determines whether the defect at the location is an interference or a defect of the display panel itself. However, in this way, since the two regions of interest intercepted each time only correspond to defects at the same location, the number of times the classification model is run is the same as the number of interferences in the display panel. When the number of interferences is large, the processing of the classification model takes a long time, resulting in low efficiency of defect detection.

[0027] The embodiments of the present disclosure aim to provide a method for defect detection of a display panel. The method can remove interferences such as dust in an image to be detected before defect detection, and then determine the defect detection result based on the image to be detected from which the interferences have been removed, thereby improving the accuracy of defect detection and ensuring production efficiency.

[0028] In addition, since the interference objects in the image to be inspected have been removed in advance, during the inspection process, defect detection can be performed on the image to be inspected containing multiple defects as a whole, without the need to use a classification model to perform defect detection processing on the defects at each position separately. In this way, the model used for defect detection can obtain the defect detection result with only a single inference, rather than performing multiple inferences to obtain the defect detection result, thereby improving the efficiency of defect detection.

[0029] The technical solutions provided by the present disclosure will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0030] Figure 1 The flowchart of the defect detection method of the display panel according to the embodiment of the present disclosure is schematically shown.

[0031] like Figure 1 As shown, the defect detection method of the display panel of this embodiment includes operations S110 to S140.

[0032] In operation S110, a first captured image and a second captured image are acquired; wherein the first captured image is obtained by photographing the display panel in an off state, and the second captured image is obtained by photographing the display panel in a lit state.

[0033] In the embodiments of the present disclosure, dust, hair and other interfering objects can be directly observed from the display panel in the off state, while the interfering objects and defects of the display panel itself can be observed in the lit state. Therefore, the first captured image contains information related to the interfering objects in the display panel. The second captured image contains information related to the interfering objects and screen defects in the display panel.

[0034] Among them, the off state generally means that the display panel is not lit, such as a display panel that is in the off state or has not been operated for a long time and has entered the standby mode; the lit state means that the display panel is lit and can display any color or image, such as a white picture, a gray picture, a red picture, a green picture, a black picture or a blue picture, a striped picture, a mosaic picture, a grid picture, etc.

[0035] In operation S120, a mask image is determined according to the first collected image; the mask image at least includes a first interference region representing an interference object attached to a surface of the display panel.

[0036] In the embodiments of the present disclosure, the mask image refers to an image obtained by marking a part of an image. The mask image may be obtained by processing the complete first acquisition image, or by processing the region of interest segmented from the complete first acquisition image. The first interference region indicates the region on the surface of the display panel where interference exists. For example, if there is interference in the upper left corner of the display panel, the first interference region is also located in the upper left corner of the first acquisition image.

[0037] For the first interference region of the first collected image, a specific element may be used to block it, or the first interference region may be processed in a predetermined processing manner to obtain a mask image in which the first interference region has been marked.

[0038] For example, there are interference objects A and B on the first collected image, and the areas where interference objects A and B are located are both first interference areas. The first collected image can be processed using a segmentation network to obtain the positions of multiple first interference areas on the first collected image.

[0039] In one embodiment, after determining the position of the first interference region on the first collected image, the first interference region may be processed to obtain a mask image. For example, the first interference region may be masked by an image having a special texture, or the pixel value of the first interference region may be adjusted to a specified pixel value, which may be 0, and is not limited in this embodiment.

[0040] In another embodiment, after determining the position of the first interference area on the first collected image, the first interference area and the area outside the first interference area may be processed differently to obtain a mask image. For example, the pixel value of the first interference area is adjusted to 0, and the pixel value of other areas outside the first interference area is adjusted to 255.

[0041] In operation S130, a second interference region corresponding to the first interference region in the second collected image is processed according to the mask image to obtain an image to be detected.

[0042] In the embodiment of the present disclosure, since the first acquired image and the second acquired image are captured for different states of the same display panel, the same interference object can be represented by the corresponding first interference area and second interference area in the first acquired image and the second acquired image.

[0043] In an embodiment of the present disclosure, the second acquired image is processed by a mask image to obtain an image to be detected, and in the image to be detected, the second interference area corresponding to the first interference area is blocked, eliminated or otherwise processed, so that the image to be detected no longer displays the interference object.

[0044] For example, there are interference objects A and B on the first collected image, and the areas where interference objects A and B are located are both first interference areas. There are also interference objects A and B at the same position in the second collected image, and the areas where interference objects A and B are located are both second interference areas. By processing the second collected image through the mask image, an image to be detected can be obtained in which the second interference area where the interference objects are located is blocked or eliminated.

[0045] In operation S140 , defect detection is performed on the image to be detected to obtain a defect detection result for the display panel.

[0046] For example, a predetermined detection algorithm may be used to detect defects in an image to be detected. The predetermined detection algorithm may be implemented by a target detection model. The target detection model may be a YOLO (You Only Look Once) model. This embodiment does not limit the predetermined detection algorithm.

[0047] According to an embodiment of the present disclosure, the position of the interference on the display panel is obtained from the first collected image, and the interference in the first collected image is marked by a mask image. Then, the second collected image is repaired by the mask image based on the position of the marked interference, so that the image to be detected obtained no longer displays the interference, and then the detection result is determined by the image to be detected. Therefore, the influence of interference on defect detection can be eliminated, thereby reducing the false alarm rate of defect detection caused by interference. In addition, since the interference in the image to be detected has been removed in advance, during the detection process, the image to be detected containing multiple defects can be defect-detected as a whole, without the need to use a classification model for defect detection processing for each position separately, so that the model used for defect detection can obtain the defect detection result by performing only a single inference, rather than performing multiple inferences to obtain the defect detection result, thereby improving the efficiency of defect detection.

[0048] It should be noted that the display panel may have different types of defects, for example, the defects of the display panel may include: white spots, dark spots, etc. Some defects are more easily observed in a background showing a specific color, for example, white spot defects are more easily observed in a display panel showing a dark background, and dark spots are more easily observed in a display panel showing a light background.

[0049] In this embodiment, the display panel in a lit state and displaying designated content can be photographed, and the image obtained by the photographing is used as the second captured image, wherein the designated content can be any of the following: a pure white picture, a gray picture, a red picture, a green picture, a black picture or a blue picture, or a striped picture, a mosaic picture, a lattice picture, etc. In this embodiment, by displaying different colors or different images on the display panel, different types of defects existing in the display panel can be more clearly reflected, so that the second captured image effectively displays the defects of the display panel itself, thereby ensuring the accuracy of the defect detection result.

[0050] Next, combine Figure 2 The principle of the display panel defect detection method according to the embodiment of the present disclosure is further explained.

[0051] Figure 2 The principle diagram of the defect detection method of the display panel according to the embodiment of the present disclosure is schematically shown.

[0052] In the embodiment of the present disclosure, the first collected image 210 is obtained by photographing the display panel in an off state, and the second collected image 220 is obtained by photographing the display panel in a lit state.

[0053] like Figure 2 As shown, a first interference area 212 covered by dust can be observed in the first acquisition image 210. Two abnormal display areas 213 and 214 can be observed from the second acquisition image 220. The reasons for the abnormal display of these two areas may be defects of the display panel itself, or may be due to the influence of interference. By comparing the first acquisition image 210 and the second acquisition image 220, the areas corresponding to the same position can be formed into data pairs, and the data pairs can include defect pairs and interference pairs. For example, the abnormal display area 214 corresponds to the same position as the first interference area 212, and there is an abnormal display in both the abnormal display area 214 and the first interference area 212. Therefore, it can be determined that the reason for the abnormal display of area 214 in the second acquisition image is the influence of interference, and area 211 and area 213 are a defect pair. For another example, there is no interference in the area 211 corresponding to area 213 in the first acquisition image, indicating that the reason for the abnormal display of area 213 is the defect of the display panel itself, and the first interference area 212 and the second interference area 214 are an interference pair.

[0054] According to the embodiments of the present disclosure, based on the differences in causes of interferences and screen defects during screen detection, images of the display panel are taken in different states for distinction, thereby eliminating interference of interferences on screen detection and improving the efficiency of screen detection.

[0055] According to another embodiment of the present disclosure, the above-mentioned process of processing the second interference area corresponding to the first interference area in the second acquired image according to the mask image to obtain the image to be detected includes the following operations: adjusting the pixel values ​​of the second interference area corresponding to the first interference area in the second acquired image according to the mask image to obtain the adjusted image, and then generating the image to be detected according to the adjusted image.

[0056] In this embodiment, the pixel values ​​in the second collected image are first adjusted, so that the second interference region in the second collected image can be obviously different from other regions, thereby ensuring that a relatively accurate image to be detected is subsequently obtained based on the adjusted image.

[0057] According to another embodiment of the present disclosure, in the process of adjusting the pixel value of the second interference area in the second collected image, the second interference area corresponding to the first interference area can be determined in the second collected image according to the position information of the first interference area. For example, if the first interference area is in the upper left corner of the first collected image, the upper left corner area of ​​the second collected image can be determined as the second interference area, and the second interference area has the same shape, size and position as the first interference area. Next, the pixel value of the second interference area can be adjusted to a specified pixel value. For example, the pixel value of the second interference area can be adjusted to 0, and the second interference area appears black. Or the pixel value of the second interference area can be adjusted to 255, and the second interference area appears white.

[0058] In this example, based on the position of the first interference area, the second interference area can be accurately determined in the second acquired image, and then the pixel value of the second interference area is adjusted to clearly distinguish the second interference area from other areas in the second acquired image, thereby ensuring that a more accurate image to be detected is subsequently obtained based on the adjusted image.

[0059] Next, combine Figure 3 The process of generating an image to be detected based on the adjusted image is described.

[0060] Figure 3 A schematic diagram of generating an image to be detected according to an embodiment of the present disclosure is schematically shown.

[0061] like Figure 3 As shown, the first collected image 310 can be processed to obtain a mask image 330. It can be seen that there is an interference object in an area of ​​the first collected image 310. Accordingly, the corresponding position of the mask image 330 is the first interference area 110 representing the interference object. Then, based on the mask image 330, the pixel value of the second interference area corresponding to the first interference area in the second collected image 320 is adjusted to obtain an adjusted image 340.

[0062] For example, there is an interference object A in the first collected image 310, and the area where the interference object A is located is the first interference area. By marking the first interference area, a mask image 330 is obtained. Based on the mask image 330, the pixel value of the second interference area 320 at the same position in the second collected image 320 is adjusted to a preset value to distinguish the second interference area from other areas, and an adjusted image 340 is obtained.

[0063] Next, the image generation model may be used to generate the image 350 to be detected.

[0064] In one example, in the process of using the image generation model to generate the image to be detected 350, the image to be detected 350 is generated by removing the interference object attached to the surface of the display panel based on the position information of the second interference area and the feature information of other areas except the second interference area, while taking the adjusted image 340 as the input of the image generation model. The image generation model may be a diffusion model.

[0065] In another example, in the process of using the image generation model to generate the image to be detected 350, the mask image 330 and the adjusted image 340 are used as inputs of the image generation model, and based on the position information of the first interference area, the position information of the second interference area and the feature information of other areas except the second interference area, the image to be detected 350 is generated without the interference objects attached to the surface of the display panel.

[0066] It can be seen that the difference between the above two embodiments of using the image generation model to generate the image to be detected 350 is mainly that the input of the image generation model also includes the mask image 330, and accordingly, the image generation model will generate the image to be detected 350 based on the position information of the mask image 330. Inputting the mask image 330 into the image generation model can make the image generation model more clear about the position of the local image to be generated in the image to be detected 350.

[0067] Next, taking the case where the input of the image generation model also includes the mask image 330 as an example, the working principle of the image generation model is described.

[0068] In the embodiment of the present disclosure, the image to be detected 350 is an image obtained by patching the second interference region in the adjusted image 340. The patching of the adjusted image 340 can be implemented by an image generation model. Since the pixel values ​​of the second interference region are changed in the adjusted image 340, the model can patch the second interference region according to different feature information of the second interference region and other regions.

[0069] For example, the second acquisition image 320 includes two regions, one region 1 may include a screen defect, and the other region 2 (region 2 is the second interference region mentioned above) is the region where the interference object is located. After adjustment according to the mask image 330, the adjusted image 340 is obtained. In the adjusted image 340, the pixel value of region 2 corresponding to the interference object A is adjusted to 0. The image generation model can know that a local image needs to be generated to replace region 2 based on the difference between the pixel value of region 2 and the pixel value of region 1. In addition, since the input of the image generation model also includes the mask image 330, and the first interference region in the mask image 330 also represents the location of the interference object, the mask image 330 can make the image generation model more clear about the location of the local image to be generated in the image to be detected 350. In this way, the image generation model can repair region 2 in the second acquisition image 320 to obtain the image to be detected 350 with the interference object A removed and the screen defect B retained.

[0070] According to another embodiment of the present disclosure, the image to be detected includes a first image area and a second image area, the first image area is generated based on an image generation model, and the position of the first image area corresponds to the position of the second interference area, and the second image area is the same as other areas in the second acquired image except the second interference area.

[0071] In an embodiment of the present disclosure, the first image region corresponds to the second interference region that needs to be repaired in the adjusted image, and the second image region corresponds to other regions in the adjusted image other than the second interference region.

[0072] For example, a display panel showing a green screen is photographed to obtain a second captured image. The adjusted image includes the second interference area and other areas after pixel value adjustment, wherein the pixel value of the second interference area is 0, which is displayed as black, and the pixel values ​​of other areas are unchanged, which are still displayed as green. After determining that the area to be repaired is the second interference area, the image generation model keeps the second image area and other areas in the adjusted image green, and repairs the second interference area to green based on the image information of the second image area to obtain the repaired first image area.

[0073] In this embodiment, the image to be detected includes a first image area and a second image area, and the image generation model only generates the first image area, while the second image area remains intact. Therefore, the image generation model can be prevented from changing the display panel's own defects existing in the second image area, thereby ensuring the accuracy of the defect detection results.

[0074] Next, combine Figure 4 The training process of the image generation model of the embodiment of the present disclosure is explained.

[0075] Figure 4 A schematic diagram of model training according to an embodiment of the present disclosure is schematically shown.

[0076] In the embodiments of the present disclosure, Figure 4 As shown, a sample image is first acquired, and the sample image includes an original sample image 410 , a mask sample image 420 , and an intermediate sample image 430 .

[0077] For example, the original sample image 410 is obtained by photographing a display panel in a lighted state.

[0078] For example, the mask sample image 420 may be randomly generated, and the mask sample image 420 at least includes a first region where an interference object is located, and is used to simulate interference objects that appear during an actual screen detection process.

[0079] For example, the intermediate sample image 430 includes a second area corresponding to the first area, and the pixel value of the second area is a specified pixel value, and other areas except the second area in the intermediate sample image 430 are the same as the corresponding areas in the original sample image 410. In practical applications, the pixel value of the local area in the original sample image 410 can be adjusted based on the mask sample 420, and the adjusted image is used as the intermediate sample image 430. For example, in the captured original sample image 410, the pixel value of the second area corresponding to the first area can be adjusted to 0 or other specified pixel values.

[0080] Next, the intermediate sample image 430 and the mask sample image 420 can be used as inputs of the initial image generation model, and the initial image generation model can generate an output image 440 after repairing the intermediate sample image 430. Then, the generated output image 440 can be compared with the original sample image 410, and the model loss can be calculated based on the difference between the output image 440 and the original sample image 410. The loss function can use cross entropy or mean square error, etc.

[0081] After obtaining the model loss, the parameters of the initial image generation model can be adjusted based on the model loss. After multiple iterations, when the model loss is less than the predetermined loss, it means that the output image 440 is relatively close to the original sample image 410. At this time, it can be considered that the model has converged, so the training can be terminated to obtain the image generation model.

[0082] Figure 5 A flow chart of a method for detecting defects of a display panel according to another embodiment of the present disclosure is schematically shown.

[0083] like Figure 5 As shown, the defect detection method of the display panel of this embodiment includes operations S501 to S506.

[0084] In operation S501, a first captured image and a second captured image are acquired; wherein the first captured image is obtained by photographing the display panel in an off state, and the second captured image is obtained by photographing the display panel in a lit state.

[0085] In operation S502, a mask image is determined according to the first collected image; the mask image at least includes a first interference region representing an interference object attached to the surface of the display panel.

[0086] In operation S503, a second interference region corresponding to the first interference region is determined in the second collected image according to the position information of the first interference region.

[0087] In operation S504, the pixel value of the second interference area is adjusted to a designated pixel value.

[0088] In operation S505, the mask image and the adjusted image are used as inputs of the image generation model, and based on the position information of the first interference area, the position information of the second interference area and the feature information of other areas except the second interference area, an image to be detected is generated without interference objects attached to the surface of the display panel.

[0089] In operation S506 , defect detection is performed on the image to be detected to obtain a defect detection result for the display panel.

[0090] Figure 6 The structure of a defect detection device for a display panel according to an embodiment of the present disclosure is schematically shown.

[0091] like Figure 6 As shown, the display panel defect detection device 600 of this embodiment includes an acquisition module 610 , a determination module 620 , a processing module 630 and a detection module 640 .

[0092] The acquisition module 610 is used to acquire a first acquisition image and a second acquisition image; wherein the first acquisition image is obtained by photographing the display panel in an off state, and the second acquisition image is obtained by photographing the display panel in a lit state. In one embodiment, the acquisition module 610 can be used to perform the operation S110 described above, which will not be repeated here.

[0093] The determination module 620 is used to determine a mask image according to the first collected image; the mask image at least includes a first interference region representing an interference object attached to the surface of the display panel. In one embodiment, the determination module 620 can be used to perform the operation S120 described above, which will not be described in detail here.

[0094] The processing module 630 is used to process the second interference area corresponding to the first interference area in the second collected image according to the mask image to obtain the image to be detected. In one embodiment, the processing module 630 can be used to perform the operation S130 described above, which will not be repeated here.

[0095] The detection module 640 is used to perform defect detection on the image to be detected to obtain a defect detection result for the display panel. In one embodiment, the detection module 640 can be used to perform the operation S140 described above, which will not be described in detail here.

[0096] According to an embodiment of the present disclosure, the processing module 630 includes an adjustment submodule and a generation submodule. The adjustment submodule is used to adjust the pixel value of the second interference area corresponding to the first interference area in the second collected image according to the mask image to obtain an adjusted image. The generation submodule is used to generate an image to be detected according to the adjusted image.

[0097] According to an embodiment of the present disclosure, the generation submodule includes a first generation unit or a second generation unit. The first generation unit is used to use the adjusted image as the input of the image generation model, and based on the position information of the second interference area and the feature information of other areas except the second interference area, generate an image to be detected with interference objects attached to the surface of the display panel removed. The second generation unit is used to use the mask image and the adjusted image as the input of the image generation model, and based on the position information of the first interference area, the position information of the second interference area and the feature information of other areas except the second interference area, generate an image to be detected with interference objects attached to the surface of the display panel removed.

[0098] According to an embodiment of the present disclosure, the image to be detected includes a first image area and a second image area, the first image area is generated based on an image generation model, and the position of the first image area corresponds to the position of the second interference area, and the second image area is the same as other areas in the second acquired image except the second interference area.

[0099] According to an embodiment of the present disclosure, the adjustment submodule includes a determination unit and an adjustment unit. The determination unit is used to determine, in the second collected image, a second interference area corresponding to the first interference area according to the position information of the first interference area. The adjustment unit is used to adjust the pixel value of the second interference area to a specified pixel value.

[0100] According to an embodiment of the present disclosure, the second captured image is obtained by photographing the display panel that is in a lit state and displays specified content, and the specified content includes at least one of the following: a white picture, a gray picture, a red picture, a green picture, a black picture, a blue picture, a striped picture, a mosaic picture, and a grid picture.

[0101] According to an embodiment of the present disclosure, the image generation model is obtained by training the following modules. A sample acquisition module is used to acquire sample images, and the sample images include original sample images, mask sample images, and intermediate sample images; wherein the original sample image is obtained by photographing the display panel in a lit state, the mask sample image at least represents a first area of ​​interference attached to the surface of the display panel, the intermediate sample image includes a second area corresponding to the first area, and the pixel value of the second area is a specified pixel value, and other areas in the intermediate sample image except the second area are the same as the corresponding areas in the original sample image. An image generation module is used to generate an output image using the intermediate sample image and the mask sample image as inputs of the initial image generation model. A parameter adjustment module is used to determine the model loss according to the difference between the output image and the original sample image, so as to adjust the parameters of the initial image generation model based on the model loss until the model converges to obtain the image generation model.

[0102] Figure 7 A schematic block diagram of an electronic device that can be used to implement the defect detection method for a display panel according to an embodiment of the present disclosure is schematically shown.

[0103] like Figure 7 As shown, the electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 to a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include an onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0104] In RAM 703, various programs and data required for the operation of electronic device 700 are stored. Processor 701, ROM 702 and RAM 703 are connected to each other via bus 704. Processor 701 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 702 and / or RAM 703. It should be noted that the program can also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 can also implement the method according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0105] According to an embodiment of the present disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to the bus 704. The electronic device 700 may further include one or more of the following components connected to the I / O interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 708 including a hard disk, etc.; and a communication portion 709 including a network interface card such as a LAN card, a modem, etc. The communication portion 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage portion 708 as needed.

[0106] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0107] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 702 and / or RAM 703 described above and / or one or more memories other than ROM 702 and RAM 703.

[0108] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method provided by the embodiment of the present disclosure.

[0109] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 701. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0110] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 709, and / or installed from the removable medium 711. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0111] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0112] It should be noted that the collection, storage, use, processing, transmission, provision, disclosure and application of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures have been taken, and they do not violate public order and good morals. In the technical solution of this disclosure, the user's authorization or consent is obtained before obtaining or collecting user personal information.

[0113] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0114] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0115] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or coupled in a variety of ways, even if such combinations and / or couplings are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or coupled in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or couplings fall within the scope of the present disclosure.

[0116] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A method for detecting defects in a display panel, comprising: Acquire a first captured image and a second captured image; wherein the first captured image is obtained by photographing the display panel in an extinguished state, and the second captured image is obtained by photographing the display panel in a lit state; Determining a mask image according to the first acquired image; the mask image at least includes a first interference region representing an interference object attached to the surface of the display panel; According to the mask image, processing a second interference region in the second collected image corresponding to the first interference region to obtain an image to be detected; and Defect detection is performed on the image to be detected to obtain a defect detection result for the display panel.

2. The method according to claim 1, wherein: The step of processing the second interference region corresponding to the first interference region in the second collected image according to the mask image to obtain the image to be detected includes: According to the mask image, adjusting the pixel value of the second interference area corresponding to the first interference area in the second collected image to obtain an adjusted image; The image to be detected is generated according to the adjusted image.

3. The method according to claim 2, wherein: The step of generating the image to be detected according to the adjusted image includes: Using the adjusted image as an input of an image generation model, based on the position information of the second interference area and the feature information of other areas except the second interference area, generating the image to be detected with interference objects attached to the surface of the display panel removed; Alternatively, using the mask image and the adjusted image as inputs of an image generation model, based on the position information of the first interference area, the position information of the second interference area and feature information of other areas except the second interference area, the image to be detected is generated without the interference objects attached to the surface of the display panel.

4. The method according to claim 3, wherein: The image to be detected includes a first image area and a second image area, the first image area is generated based on the image generation model, and the position of the first image area corresponds to the position of the second interference area, and the second image area is the same as other areas in the second acquired image except the second interference area.

5. The method according to claim 2, wherein: The step of adjusting the pixel value of the second interference area corresponding to the first interference area in the second collected image according to the mask image to obtain the adjusted image comprises: Determining, in the second collected image, the second interference area corresponding to the first interference area according to the position information of the first interference area; and The pixel value of the second interference area is adjusted to a specified pixel value.

6. The method according to claim 1, wherein: The second captured image is obtained by photographing the display panel that is in a lit state and displays specified content, and the specified content includes at least one of the following: a white picture, a gray picture, a red picture, a green picture, a black picture, a blue picture, a striped picture, a mosaic picture, and a grid picture.

7. The method according to claim 3, wherein: The image generation model is trained in the following way: Acquire a sample image, wherein the sample image includes an original sample image, a mask sample image, and an intermediate sample image; wherein the original sample image is obtained by photographing a display panel in a lighted state, the mask sample image at least represents a first region of an interference object attached to a surface of the display panel, the intermediate sample image includes a second region corresponding to the first region, and a pixel value of the second region is a specified pixel value, and other regions in the intermediate sample image except the second region are the same as corresponding regions in the original sample image; Using the intermediate sample image and the mask sample image as inputs of an initial image generation model to generate an output image; A model loss is determined according to the difference between the output image and the original sample image, so as to adjust the parameters of the initial image generation model based on the model loss until the model converges, thereby obtaining the image generation model.

8. A defect detection device for a display panel, the device comprising: An acquisition module, used to acquire a first acquisition image and a second acquisition image; wherein the first acquisition image is obtained by photographing the display panel in an off state, and the second acquisition image is obtained by photographing the display panel in a lit state; A determination module, configured to determine a mask image according to the first acquired image; the mask image at least includes a first interference region representing an interference object attached to a surface of the display panel; a processing module, configured to process a second interference region corresponding to the first interference region in the second collected image according to the mask image, to obtain an image to be detected; and The detection module is used to perform defect detection on the image to be detected to obtain a defect detection result for the display panel.

9. An electronic device, comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors execute the following method: Acquire a first captured image and a second captured image; wherein the first captured image is obtained by photographing the display panel in an off state, and the second captured image is obtained by photographing the display panel in a lit state; Determining a mask image according to the first acquired image; the mask image at least includes a first interference region representing an interference object attached to the surface of the display panel; According to the mask image, processing a second interference region in the second collected image corresponding to the first interference region to obtain an image to be detected; and Defect detection is performed on the image to be detected to obtain a defect detection result for the display panel.

10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to perform the method according to any one of claims 1 to 7.