A display panel edge line defect detection method and application
By dividing the edge area of the display panel into sub-regions and performing weighted comparisons and parameter judgments, the problem of over- or under-detection of edge line defects is solved, and high-precision edge line defect detection is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WUHAN JINGLI ELECTRONICS TECH
- Filing Date
- 2022-09-28
- Publication Date
- 2026-07-07
AI Technical Summary
Existing technologies struggle to avoid over- or under-detection of edge line defects in LCD and OLED panel edge inspection, especially for defects of 1-3 pixels.
By dividing the edge area of the display panel into several sub-regions along the width and length directions, performing composite weighted comparisons, and judging whether it is adhered to the edge based on the size parameters and grayscale values of the initial defect area, setting corresponding parameters to determine the over-inspection area, and removing the over-inspection area, the target defect area is obtained.
It enables accurate detection of defects on the edge lines of display panels, effectively avoiding over- or under-detection and improving detection accuracy.
Smart Images

Figure CN115578331B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automatic optical inspection of LCD / OLED display panels, and more particularly to a method for detecting edge line defects in display panels, a device for detecting edge line defects in display panels, a system for detecting edge line defects in display panels, and a computer-readable storage medium. Background Technology
[0002] With the rapid development of the industrial sector, the inspection tasks of LCD and OLED panels are gradually shifting from manual to machine inspection. Therefore, AOI systems play the role of manual labor to perform a series of high-intensity and high-precision inspection tasks, which greatly improves production efficiency and liberates productivity.
[0003] Ensuring accurate edge detection is a significant challenge in AOI applications. Edges are susceptible to issues such as image signal-to-noise ratio problems caused by the screen itself or the optical system, or complex textures, all of which can lead to missed or over-detection. Therefore, avoiding missed or over-detection of edge defects (especially 1-3 pixels) on display panels is a pressing issue that needs to be addressed. Summary of the Invention
[0004] To address the aforementioned deficiencies or improvement needs of existing technologies, this invention provides a method for detecting edge line defects in display panels, a device for detecting edge line defects in display panels, a system for detecting edge line defects in display panels, and a computer-readable storage medium. These methods can solve the problem that existing display panel defect detection methods are difficult to use due to image signal-to-noise ratio issues or complex textures, which make it difficult to detect edge line defects (1-3 pixels) and avoid over-detection and under-detection phenomena.
[0005] On one hand, embodiments of the present invention provide a method for detecting edge line defects in a display panel, comprising: acquiring a display panel detection image and extracting a display area from the display panel detection image; marking the edge area in the display area according to a preset edge area width; dividing the edge area into several sub-regions along the width and length directions, and determining whether each sub-region is a defect according to a preset grayscale threshold, and marking the sub-regions determined to be defects as initial defect areas; determining over-inspected areas in the initial defect area according to the size parameters of the initial defect area; and removing the over-inspected areas in the initial defect area to obtain a target defect area.
[0006] In one embodiment of the present invention, determining the over-inspection area in the initial defect area based on the length parameter and width parameter of the initial defect area includes: determining whether the edge of the initial defect area is adhered to the edge of the display area; if so, determining the over-inspection area in the defect area based on the length parameter and the first width parameter; otherwise, determining the over-inspection area in the defect area based on the length parameter and the second width parameter.
[0007] In one embodiment of the present invention, determining whether each sub-region is a defect based on a preset grayscale threshold includes: calculating a first grayscale value of a plurality of sub-regions in the width direction and a second grayscale value of a plurality of sub-regions in the length direction; performing a weighted calculation on the first grayscale value and the second grayscale value according to a preset weighting ratio to obtain a grayscale value for each sub-region; and determining whether the corresponding sub-region is a defect based on the grayscale value of each sub-region.
[0008] In one embodiment of the present invention, after marking the edge region in the display area according to the preset edge region width, the method further includes: selecting the border portion of the edge region and calculating the grayscale value of the border portion; and increasing the grayscale value of the edge region based on the grayscale value of the border portion.
[0009] On the other hand, this invention provides a display panel edge defect detection device, comprising: a display area extraction module for acquiring a display panel detection image and extracting the display area from the display panel detection image; an edge area marking module for marking the edge area in the display area according to a preset edge area width; an initial defect area judgment module for dividing the edge area into several sub-regions along the width and length directions, and judging whether each sub-region is a defect according to a preset grayscale threshold, and marking the sub-regions judged as defects as initial defect areas; an over-inspection area determination module for determining over-inspection areas in the initial defect area according to the size parameters of the initial defect area; and a target defect area obtaining module for removing the over-inspection areas in the initial defect area to obtain a target defect area.
[0010] In one embodiment of the present invention, the over-inspection area determination module is specifically used to: determine whether the edge of the initial defect area is adhered to the edge of the display area; if so, determine the over-inspection area in the defect area according to the length parameter and the first width parameter; otherwise, determine the over-inspection area in the defect area according to the length parameter and the second width parameter.
[0011] In one embodiment of the present invention, the initial defect region determination module is specifically used to: calculate the first gray value of several sub-regions in the width direction and the second gray value of several sub-regions in the length direction respectively; perform weighted calculation on the first gray value and the second gray value according to a preset weighting ratio to obtain the gray value of each sub-region; and determine whether the corresponding sub-region is a defect based on the gray value of each sub-region.
[0012] In one embodiment of the present invention, the display panel edge line defect detection device further includes: a preprocessing module, used to select the border portion of the edge region and calculate the grayscale value of the border portion; and to increase the grayscale value of the edge region based on the grayscale value of the border portion.
[0013] In another aspect, embodiments of the present invention provide a display panel edge line defect detection system, comprising: a memory and one or more processors connected to the memory, the memory storing a computer program, and the processors executing the computer program to implement the display panel edge line defect detection method as described in any of the above embodiments.
[0014] In another aspect, embodiments of the present invention provide a computer-readable storage medium storing computer-executable instructions for performing the display panel edge line defect detection method as described in any of the above embodiments.
[0015] As can be seen from the above, the solution conceived by this invention, compared with the prior art, can have one or more of the following beneficial effects:
[0016] 1) By dividing the edge area of the display panel into several sub-regions along both the width and length directions, and performing a composite weighted comparison between the sub-regions along the width and length directions, edge line defects of the display panel can be accurately detected.
[0017] 2) By distinguishing whether the detected defect area is adhered to the edge of the display panel, and by setting corresponding parameters to control the possible over-inspection area, the phenomenon of over-inspection and under-inspection of edge line defects of the display panel can be effectively avoided.
[0018] Other aspects of the invention will become apparent from the following detailed description with reference to the accompanying drawings. However, it should be understood that the drawings are for illustrative purposes only and are not intended to limit the scope of the invention. It should also be understood that, unless otherwise indicated, the drawings are not necessarily drawn to scale; they are merely intended to conceptually illustrate the structures and processes described herein. Attached Figure Description
[0019] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this invention, illustrate exemplary embodiments of the invention and are used to explain the invention, but do not constitute an undue limitation of the invention. In the drawings:
[0020] Figure 1 A flowchart of a display panel edge line defect detection method provided in an embodiment of the present invention;
[0021] Figure 2 The display panel detection image provided in the embodiment of the present invention;
[0022] Figure 3 This is a schematic diagram of the edge region in the display area of the display panel provided in an embodiment of the present invention;
[0023] Figure 4a A schematic diagram illustrating the division of the edge region along the length direction according to an embodiment of the present invention;
[0024] Figure 4b This is a schematic diagram illustrating the division of the edge region along the width direction according to an embodiment of the present invention.
[0025] Figure 4c A schematic diagram illustrating the division of the edge region along both the length and width directions, as provided in an embodiment of the present invention;
[0026] Figure 5a This invention provides a schematic diagram of an over-inspection area determined based on the size parameters of an initial defect area.
[0027] Figure 5b This invention provides a schematic diagram of another over-inspection area determined based on the size parameters of the initial defect area;
[0028] Figure 5c This invention provides a schematic diagram of another over-inspection region determined based on the size parameters of the initial defect region;
[0029] Figure 6 A schematic diagram of the display panel edge line defect detection device provided in an embodiment of the present invention.
[0030] Figure 7 This is a schematic diagram of the structure of the display panel edge line defect detection system provided in an embodiment of the present invention;
[0031] Figure 8 This is a schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of the present invention.
[0032] Explanation of reference numerals in the attached figures
[0033] S1 to S5: Steps in the method for detecting defects at the edge of a display panel;
[0034] 20: Display panel edge defect detection device; 201: Display area extraction module; 202: Edge area marking module; 203: Initial defect area judgment module; 204: Over-inspection area determination module; 205: Target defect area acquisition module;
[0035] 30: Display panel edge defect detection system; 31: Processor; 32: Memory;
[0036] 40: Computer-readable storage medium. Detailed Implementation
[0037] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other. The present invention will now be described with reference to the accompanying drawings and embodiments.
[0038] To enable those skilled in the art to better understand the technical solutions of the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments, and should all fall within the protection scope of the present invention.
[0039] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are applicable in distinguishing similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or applicable to such processes, methods, products, or apparatus.
[0040] It should also be noted that the division of multiple embodiments in this invention is only for the convenience of description and should not constitute a special limitation. Features in various embodiments can be combined and referenced in each other without contradiction.
[0041] [First Embodiment]
[0042] like Figure 1As shown, the first embodiment of the present invention proposes a method for detecting edge line defects in a display panel, comprising the following steps: Step S1, acquiring a display panel detection image and extracting the display area in the display panel detection image; Step S2, marking the edge area in the display area according to a preset edge area width; Step S3, dividing the edge area into several sub-regions along the width and length directions, and determining whether each sub-region is a defect according to a preset grayscale threshold, and marking the sub-regions determined to be defects as initial defect areas; Step S4, determining the over-inspected areas in the initial defect area according to the size parameters of the initial defect area; Step S5, removing the over-inspected areas in the initial defect area to obtain the target defect area.
[0043] In step S1, during the edge defect detection of the display panel, for example, an image of the display panel is captured using a camera or other device, and the resulting display panel detection image is as follows: Figure 2 As shown, the host computer software acquires the detection image of the display panel for subsequent processing. First, the display area in the detection image of the display panel is extracted. The host computer mentioned here can be, for example, a personal computer, handheld device, portable device, tablet device, multiprocessor system, microprocessor-based system, editable consumer electronics device, network PC, minicomputer, mainframe computer, or a distributed computing environment including any of the above systems or devices, etc.
[0044] In step S2, as Figure 3 As shown, for example, the host computer software marks the edge regions in the display area according to a preset edge region width. The preset edge region width can be customized by the user according to detection requirements, and this application is not limited to this. Specifically, for example, the top, bottom, left, and right edge regions of the display area are obtained (…). Figure 3 Regions ①, ②, ③, and ④ in the diagram are used for edge line defect detection in subsequent steps.
[0045] In step S3, for example, the edge region is divided into several sub-regions along both the width and length directions, and each sub-region is determined to be a defect based on a preset grayscale threshold. Specifically, taking edge region ① as an example, ... Figure 4a As shown, edge region I is divided into multiple sub-regions along its length, for example, compared from left to right or from right to left, and the selected sub-region is determined to be a defect based on a preset grayscale threshold. Figure 4b As shown, the edge region ① is divided into multiple sub-regions along its width direction, for example, by comparing them from top to bottom or bottom to top, and determining whether the selected sub-region is a defect based on a preset grayscale threshold. Then, the sub-regions determined to be defects are marked as the initial defect region.
[0046] Specifically, such as Figure 4c As shown, for example, the first grayscale value of several sub-regions in the width direction and the second grayscale value of several sub-regions in the length direction are calculated separately. The first grayscale value and the second grayscale value are weighted according to a preset weighting ratio to obtain the grayscale value of each sub-region. Based on the grayscale value of each sub-region, it is determined whether it is a defect. In this way, the defect status inside the edge area of the display panel can be accurately detected, and the over-detection and under-detection of defects can be avoided to a certain extent.
[0047] In step S4, for example, the over-inspection area in the initial defect area is determined based on the size parameters of the initial defect area. These size parameters include, for example, length and width parameters. In one embodiment, for example, it is determined whether the edge of the initial defect area is adhered to the display area. If so, the over-inspection area in the defect area is determined based on the length parameter and a first width parameter; otherwise, the over-inspection area in the defect area is determined based on the length parameter and a second width parameter.
[0048] Since the defects inside the edge area of the display panel have been accurately detected by comparing adjacent sub-regions in steps 1-3 above, the edge area after processing in steps 1-3 only has three over-inspection scenarios as shown in 5a-5c. The over-inspection areas are all adhered to the edge of the display area. Therefore, the over-inspection areas in the initial defect area can be determined in the following way:
[0049] Specifically, such as Figure 5a As shown, the initial defect area adheres to the edge of the display area. Therefore, the overall width of the detected initial defect area is calculated. For example, a proportional value is taken as the first width parameter based on this width dimension, and the portion of the initial defect area whose width is less than the first width parameter is determined as the over-inspection area. Figure 5b and 5c As shown, the initial defect area has a portion that is not attached to the edge of the display area. Therefore, the width of this non-attached portion is calculated. For example, a proportional value is taken based on this width as a second width parameter. The portion of the initial defect area that is attached to the edge of the display area with a width smaller than the second width parameter is determined as the over-inspection area.
[0050] In step S5, for example, the over-inspected areas in the initial defect area are removed to obtain the target defect area, which is the accurate defect area that does not contain any over- or under-inspected areas. In this way, by distinguishing whether the detected defect area is adhered to the edge of the display panel, and by setting corresponding parameters to control the possible over-inspected areas, the phenomenon of over- or under-inspection of edge line defects of the display panel is effectively avoided.
[0051] Furthermore, after marking the edge region in the display area according to the preset edge region width, the method further includes, for example, selecting the border portion of the edge region in the display area and calculating the grayscale value of the border portion; and using the grayscale value of the border portion as a reference to increase the grayscale value of the edge region. This improves the contrast between the edge region and other parts of the display area, effectively increasing the accuracy of defect detection. It is worth noting that the frame width of the border portion can be customized by the user, and this application is not limited to this.
[0052] In summary, the edge line defect detection method for display panels proposed in this embodiment of the invention can accurately detect edge line defects by dividing the edge area of the display panel into several sub-regions along both the width and length directions and performing a composite weighted comparison between the sub-regions in the width and length directions. By distinguishing whether the detected defect area is adhered to the edge of the display panel and by setting corresponding parameters to control the possible over-detection areas, the over-detection and under-detection phenomena of edge line defects of the display panel can be effectively avoided.
[0053] [Second Embodiment]
[0054] like Figure 6 As shown, the second embodiment of the present invention proposes a display panel edge line defect detection device 20, which includes, for example: a display area extraction module 201, an edge area marking module 202, an initial defect area judgment module 203, an over-inspection area determination module 204, and a target defect area acquisition module 205.
[0055] The display area extraction module 201 is used to acquire a display panel detection image and extract the display area from the image. The edge area marking module 202 is used to mark the edge areas in the display area according to a preset edge area width. The initial defect area judgment module 203 is used to divide the edge area into several sub-regions along the width and length directions, and to determine whether each sub-region is a defect according to a preset grayscale threshold, marking the sub-regions determined to be defects as initial defect areas. The over-inspection area determination module 204 is used to determine the over-inspection areas in the initial defect area according to the size parameters of the initial defect area. The target defect area obtaining module 205 is used to remove the over-inspection areas in the initial defect area to obtain the target defect area.
[0056] Furthermore, the over-inspection area determination module 204 is specifically used, for example, to: determine whether the edge of the initial defect area is adhered to the edge of the display area; if so, determine the over-inspection area in the defect area according to the length parameter and the first width parameter; otherwise, determine the over-inspection area in the defect area according to the length parameter and the second width parameter.
[0057] Furthermore, the initial defect region determination module 203 is specifically used for, for example, to: calculate the first gray value of several sub-regions in the width direction and the second gray value of several sub-regions in the length direction respectively; to perform weighted calculation on the first gray value and the second gray value according to a preset weighting ratio to obtain the gray value of each sub-region; and to determine whether the corresponding sub-region is a defect based on the gray value of each sub-region.
[0058] Furthermore, the display panel edge line defect detection device 20 may also include, for example, a preprocessing module for selecting the border portion of the edge region and calculating the grayscale value of the border portion; and using the grayscale value of the border portion as a reference to increase the grayscale value of the edge region.
[0059] The display panel edge line defect detection method implemented by the display panel edge line defect detection device 20 disclosed in the second embodiment of the present invention is as described in the first embodiment above, and therefore will not be described in detail here. Optionally, each module and the other operations or functions described above are for implementing the method described in the first embodiment, and the beneficial effects of this embodiment are the same as those of the first embodiment above, and will not be repeated here for the sake of brevity.
[0060] [Third Embodiment]
[0061] like Figure 7 As shown, the third embodiment of the present invention proposes a display panel edge line defect detection system 30, which includes, for example, a memory 32 and one or more processors 31 connected to the memory 32. The memory 32 stores a computer program, and the processor 31 is used to execute the computer program to implement the display panel edge line defect detection method as described in the first embodiment. Specific display panel edge line defect detection methods can be referred to the method described in the first embodiment, and for simplicity, will not be repeated here. Furthermore, the beneficial effects of the display panel edge line defect detection system 30 provided in this embodiment are the same as those of the display panel edge line defect detection method provided in the first embodiment.
[0062] [Fourth Embodiment]
[0063] like Figure 8As shown, the fourth embodiment of the present invention provides a computer-readable storage medium 40, which is a non-volatile memory storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, for example, the one or more processors execute the display panel edge line defect detection method described in the first embodiment. The specific method can be referred to the method described in the first embodiment, and for simplicity, it will not be repeated here. Furthermore, the beneficial effects of the computer-readable storage medium 40 provided in this embodiment are the same as those of the display panel edge line defect detection method provided in the first embodiment.
[0064] Furthermore, it is understood that the foregoing embodiments are merely illustrative examples of the present invention. Provided that the technical features do not conflict, the structure is not contradictory, and the purpose of the invention is not violated, the technical solutions of the various embodiments can be arbitrarily combined and used.
[0065] In the several embodiments provided by this invention, it should be understood that the disclosed systems, devices, and / or methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of units / modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0066] The units / modules described as separate components may or may not be physically separate. The components shown as units / modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units / modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0067] Furthermore, in the various embodiments of the present invention, the functional units / modules can be integrated into one processing unit / module, or each unit / module can exist physically separately, or two or more units / modules can be integrated into one unit / module. The integrated unit / module described above can be implemented in hardware or in the form of hardware plus software functional units / modules.
[0068] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for detecting edge line defects in a display panel, characterized in that, include: Acquire a detection image of the display panel and extract the display area from the detection image of the display panel; Mark the edge regions in the display area according to the preset edge region width; The edge region is divided into several sub-regions along the width and length directions, and each sub-region is judged to be a defect based on a preset grayscale threshold. The sub-regions judged to be defects are marked as initial defect regions. The over-inspection area in the initial defect area is determined based on the size parameters of the initial defect area; Remove the over-inspected area from the initial defect area to obtain the target defect area; The process of determining the over-inspected area within the initial defect area based on the size parameters of the initial defect area includes: If the initial defect area is stuck to the edge of the display area, it is determined whether the initial defect area is attached to the edge of the display area. If yes, the overall width of the detected initial defect area is calculated, and a proportion of the overall width is taken as a first width parameter. The portion of the initial defect area whose width is less than the first width parameter is determined as an inspection-passing area. If no, the width of the non-attached portion is calculated, and a proportion of the width of the non-attached portion is taken as a second width parameter. The portion of the initial defect area that is stuck to the edge of the display area whose width is less than the second width parameter is determined as an inspection-passing area.
2. The method for detecting edge line defects in a display panel according to claim 1, characterized in that, The step of determining whether each sub-region is a defect based on a preset grayscale threshold includes: Calculate the first grayscale value of several sub-regions in the width direction and the second grayscale value of several sub-regions in the length direction respectively; The first gray value and the second gray value are weighted according to a preset weighting ratio to obtain the gray value of each sub-region; Determine whether the corresponding sub-region is a defect based on the grayscale value of each sub-region.
3. The method for detecting edge line defects in a display panel according to claim 1, characterized in that, After marking the edge region in the display area according to the preset edge region width, the method further includes: Select the border portion of the edge region and calculate the grayscale value of the border portion; The grayscale value of the edge region is increased based on the grayscale value of the border portion.
4. A device for detecting edge line defects in a display panel, characterized in that, include: The display area extraction module is used to acquire a display panel detection image and extract the display area from the display panel detection image. An edge region marking module is used to mark the edge regions in the display area according to a preset edge region width; The initial defect region determination module is used to divide the edge region into several sub-regions in the width and length directions, and determine whether each sub-region is a defect according to a preset grayscale threshold, and mark the sub-regions that are determined to be defects as initial defect regions. The over-inspection area determination module is used to determine the over-inspection area within the initial defect area based on the size parameters of the initial defect area. Specifically, it includes: determining whether the initial defect area is adhered to the edge of the display area; if so, calculating the overall width of the detected initial defect area, taking a proportional value as a first width parameter based on the overall width, and determining the portion of the initial defect area whose width is less than the first width parameter as the over-inspection area; if not, calculating the width of the non-adhesive portion, taking a proportional value as a second width parameter based on the width of the non-adhesive portion, and determining the portion of the initial defect area adhered to the edge of the display area whose width is less than the second width parameter as the over-inspection area. The target defect region obtaining module is used to remove the over-inspected region in the initial defect region to obtain the target defect region.
5. The display panel edge line defect detection device according to claim 4, characterized in that, The initial defect region determination module is specifically used for: calculating the first grayscale value of several sub-regions in the width direction and the second grayscale value of several sub-regions in the length direction respectively; performing weighted calculation on the first grayscale value and the second grayscale value according to a preset weighting ratio to obtain the grayscale value of each sub-region; and determining whether the corresponding sub-region is a defect based on the grayscale value of each sub-region.
6. The display panel edge line defect detection device according to claim 4, characterized in that, Also includes: The preprocessing module is used to select the border portion of the edge region and calculate the grayscale value of the border portion; and to increase the grayscale value of the edge region based on the grayscale value of the border portion.
7. A display panel edge line defect detection system, characterized in that, include: A memory and one or more processors connected to the memory, the memory storing a computer program, the processors executing the computer program to implement the display panel edge line defect detection method as described in any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for performing the display panel edge line defect detection method as described in any one of claims 1 to 3.