Panel defect automatic repairing method, system and equipment and storage medium
Through target detection algorithms and deep learning technology, panel defect detection and repair models are generated, which solves the problem of automatic defect detection and repair of panels, meets the needs of panel manufacturers for automatic defect detection and repair, and significantly improves panel production efficiency.
Patent Information
- Application Number
- CN202410773766.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-17
AI Technical Summary
The existing automatic defect detection system cannot realize automatic repair of panel defects and detection of defect repair effects, and cannot meet the needs of panel manufacturers for automatic defect detection and repair.
Use target detection algorithms to conduct model training on defect sample sets and defect repair sample sets, generate defect detection models and defect repair effect detection models, and use deep learning technology and computer vision technology to perform defect detection, matching template generation, cycle matching and repair anchor frames. Positioning, and finally automatic repair and repair effect detection.
It realizes automatic repair of panel defects and detection of repair effects, significantly improves panel production efficiency, and meets the needs of panel manufacturers for automatic defect detection and repair.
Smart Images

Figure CN118570106A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automatic panel defect repair, and in particular to a panel defect automatic repair method, system, device and storage medium. Background Art
[0002] In the manufacturing process of display panels, various defects are easily introduced due to the complexity and tediousness of panel product manufacturing. Traditional defect detection relies on manual visual judgment, which is not only easily affected by differences in personnel experience and mental state, resulting in a high misjudgment rate, but also has relatively high labor costs. Therefore, many panel manufacturers have begun to introduce automatic defect detection and classification systems (ADC systems) to replace manual defect detection, and have achieved good results in actual production activities.
[0003] The existing ADC system can detect panel defects, but it cannot automatically repair panel defects and detect the effect of defect repair based on the defect detection results, and cannot meet the needs of panel manufacturers for automatic defect detection and repair. Summary of the invention
[0004] The present invention provides a panel defect automatic repair method, system, device and storage medium, which solves the problem that the prior art cannot realize automatic repair of panel defects and defect repair effect detection based on defect detection results.
[0005] In a first aspect, an embodiment of the present invention provides a panel defect automatic repair method, the method process is as follows:
[0006] The target detection algorithm is used to train the defect sample set and the defect repair sample set to obtain the defect detection model and the defect repair effect detection model;
[0007] Obtain a periodic pixel unit from the defect sample image as a matching template, and preset a repair anchor frame based on the matching template;
[0008] The defect detection model is used to perform defect detection on the panel image to obtain a defect target frame;
[0009] Perform periodic matching and periodic migration on the panel image based on the matching template to locate the repair anchor boxes corresponding to all periodic pixel units in the panel image;
[0010] Perform intersection calculation on the defect target frame and the repair anchor frame corresponding to all periodic pixel units in the panel image to obtain all intersection frames, and perform threshold verification on all intersection frames to obtain the final repair frame;
[0011] Automatically repair panel defects based on the final repair frame and obtain a panel defect repair image;
[0012] The defect repair effect detection model is used to perform defect repair detection on the panel defect repair image to obtain the defect repair detection result.
[0013] In the above embodiment, in order to quickly complete defect detection, automatic defect repair and defect repair effect detection, the present invention first trains a defect detection model and a defect repair effect detection model based on deep learning technology, and generates a matching template and a repair anchor frame based on computer vision technology; then, defect detection is performed on the panel image based on deep learning technology, and periodic matching and periodic migration are performed on the panel image based on computer vision technology; then, threshold verification is performed based on computer vision post-processing technology to obtain the final repair frame; finally, panel defects are automatically repaired based on the repair frame, and defect repair detection is performed based on deep learning technology; defect detection, defect repair and defect repair effect detection based on deep learning technology and computer vision technology can meet the needs of panel manufacturers for automatic defect detection and repair, has good practicality in panel production activities, and can significantly improve panel production efficiency.
[0014] As some optional implementation methods of the present application, the process of using the target detection algorithm to perform model training on the defect sample set and the defect repair sample set to obtain the defect detection model and the defect repair effect detection model is as follows:
[0015] Collecting defect sample images of different magnifications, and labeling the defect sample images with defect categories to obtain a defect sample set, wherein the defect sample images include a first defect sample image and a second defect sample image, and the magnification of the first defect sample image is smaller than that of the second defect sample image;
[0016] The target detection algorithm is used to perform model training on defect sample images in the defect sample set to obtain a defect detection model;
[0017] Collect defect repair sample images of different defect types, and annotate the defect repair sample images with repair results to obtain a defect repair sample set, wherein the defect repair sample images include defect repair success sample images and defect repair failure sample images;
[0018] The target detection algorithm is used to train the model on the defect repair samples in the defect repair sample set to obtain the defect repair effect detection model.
[0019] In the above embodiment, in order to quickly and accurately perform defect detection and defect repair detection, the present invention trains a defect detection model and a defect repair effect detection model based on deep learning technology, so that the defect detection model can quickly and accurately perform defect detection on the panel, and the defect repair effect detection model can quickly and accurately perform defect repair detection on the panel.
[0020] As some optional implementations of the present application, a periodic pixel unit is obtained from the defect sample image as a matching template, and the process of presetting a repair anchor frame based on the matching template is as follows:
[0021] Cutting out a repeated periodic pixel unit from the defect sample image as a matching template, wherein the defect sample image is a second defect sample image;
[0022] Extract all line regions in the matching template, and preset repair anchor frames for all line regions in the matching template.
[0023] In the above embodiment, in order to quickly and accurately perform repair positioning, the present invention generates matching templates and repair anchor frames based on computer vision technology, so that repair positioning can be performed based on the matching templates and preset repair anchor frames.
[0024] As some optional implementations of the present application, the defect detection model is used to perform defect detection on the panel image to obtain the defect target frame in the following process:
[0025] Acquiring panel images of different magnifications, wherein the panel images include a first panel image and a second panel image, and the magnification of the first panel image is the same as that of the first defect sample image, and the magnification of the second panel image is the same as that of the second defect sample image;
[0026] Inputting the first panel image to be inspected into the defect detection model for defect detection to determine whether the panel has defects;
[0027] If there is a defect, the second panel image to be inspected is input into the defect detection model for defect detection to obtain a defect target frame.
[0028] In the above embodiment, in order to perform defect detection quickly and accurately, the present invention uses a pre-trained defect detection model to perform defect detection on the panel image, which can quickly and accurately obtain the defect target frame.
[0029] As some optional implementations of the present application, the process of performing periodic matching and periodic migration on the panel image based on the matching template to locate the repair anchor frame corresponding to all periodic pixel units in the panel image is as follows:
[0030] Using a template matching algorithm to perform periodic matching on a matching template and a second panel image to be detected, and acquiring a periodic pixel unit from the second panel image based on the periodic matching result;
[0031] Performing periodic migration on the periodic pixel units based on the size of the periodic pixel units, and acquiring all the periodic pixel units from the second panel image based on the periodic migration result;
[0032] Based on the restoration anchor frame preset by the matching template, line regions of all periodic pixel units in the second panel image are located to obtain restoration anchor frames corresponding to all periodic pixel units in the second panel image.
[0033] In the above embodiment, in order to quickly and accurately perform repair positioning, the present invention uses a pre-set matching template to perform periodic matching and periodic migration on the panel image, which can quickly and accurately obtain the repair anchor frame corresponding to all periodic pixel units in the panel image.
[0034] As some optional implementations of the present application, the defect target frame and the repair anchor frame corresponding to all periodic pixel units in the panel image are intersected and calculated to obtain all intersection frames in the following process:
[0035] The coordinates of the defect target frame are intersected with the coordinates of the repair anchor frames corresponding to all periodic pixel units in the panel image to obtain the repair anchor frames corresponding to all line areas in the defect target frame;
[0036] The coordinates of the repair anchor frames corresponding to all line areas in the defect target frame are located to obtain all intersection frames.
[0037] In the above embodiment, in order to quickly and accurately perform repair coordinate positioning, the present invention adopts an intersection calculation method, which can quickly and accurately obtain the intersection coordinate information of the defect target frame and the repair anchor frame corresponding to all line areas.
[0038] As some optional implementations of the present application, the threshold check includes a restoration anchor box size threshold check, a minimum restoration size threshold check, and an intersection box size threshold check.
[0039] In the above embodiment, the present invention can perform redundancy filtering and size optimization on the intersection frame through post-processing based on computer vision to obtain the final repair frame.
[0040] In a second aspect, the present invention provides a panel defect automatic repair system, the system comprising:
[0041] A model training unit, wherein the model training unit is used to perform model training on a defect sample set and a defect repair sample set using a target detection algorithm to obtain a defect detection model and a defect repair effect detection model;
[0042] A matching template unit, the matching template unit is used to obtain a periodic pixel unit from the defect sample image as a matching template, and preset a repair anchor frame based on the matching template;
[0043] A defect detection unit, wherein the defect detection unit is used to perform defect detection on the panel image using a defect detection model to obtain a defect target frame;
[0044] A period checking unit, wherein the period checking unit performs period matching and period migration on the panel image based on the matching template to locate the repair anchor frames corresponding to all periodic pixel units in the panel image;
[0045] A repair positioning unit, which is used to perform intersection calculation on the defect target frame and the repair anchor frames corresponding to all periodic pixel units in the panel image to obtain all intersection frames, and perform threshold verification on all intersection frames to obtain a final repair frame;
[0046] An automatic repair unit, which automatically repairs the panel defect based on the final repair frame and obtains a panel defect repair image;
[0047] A repair detection unit, wherein the detection unit is used to perform defect repair detection on the panel defect repair image using a defect repair effect detection model to obtain a defect repair detection result.
[0048] In a third aspect, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for automatically repairing panel defects when executing the computer program.
[0049] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and the computer program, when executed by a processor, implements the method for automatically repairing panel defects.
[0050] The beneficial effects of the present invention are as follows: The present invention performs defect detection, defect repair and defect repair effect detection based on deep learning technology and computer vision technology, which can meet the needs of panel manufacturers for automatic defect detection and repair, has good practicality in panel production activities, and can significantly improve panel production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0052] Figure 1 is a schematic diagram of the computer device structure of the hardware operating environment described in the embodiment of the present invention;
[0053] Figure 2 is a flow chart of a panel defect automatic repair method according to an embodiment of the present invention;
[0054] Figure 3 is a schematic diagram of obtaining all pixel units of the panel image according to an embodiment of the present invention;
[0055] Figure 4 is a schematic diagram comparing the panel defects before and after repair according to an embodiment of the present invention;
[0056] Figure 5 This is a structural block diagram of the panel defect automatic repair system described in an embodiment of the present invention. DETAILED DESCRIPTION
[0057] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0058] In order to solve the problem that the existing technology cannot realize automatic repair of panel defects and defect repair effect detection based on defect detection results. The present invention provides a panel defect automatic repair method, system, device and storage medium. Before introducing the specific technical solution of the present invention, the hardware operating environment involved in the embodiment of the present invention is first introduced.
[0059] See also Figure 1 , Figure 1 The figure is a schematic diagram of the computer device structure of the hardware operating environment involved in the embodiment of the present invention.
[0060] like Figure 1 As shown, the computer device may include: a processor, such as a central processing unit (CPU), a communication bus, a user interface, a network interface, and a memory. Among them, the communication bus is used to realize the connection and communication between these components. The user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), and optionally, the user interface may also include a standard wired interface and a wireless interface. The network interface may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity interface). The memory may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory may optionally be a storage device independent of the aforementioned processor.
[0061] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine some components, or arrange the components differently.
[0062] like Figure 1 As shown, the memory as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and an electronic program module.
[0063] exist Figure 1 In the computer device shown, the network interface is mainly used for data communication with the network server; the user interface is mainly used for data interaction with the user; the processor and memory in the computer device of the present application can be set in the computer device, and the computer device calls the panel defect automatic repair system stored in the electronic program module through the processor, and executes the panel defect automatic repair method provided in the embodiment of the present application.
[0064] Based on the hardware environment of the aforementioned embodiment, the embodiment of the present application provides a panel defect automatic repair method, please refer to Figure 2 , Figure 2 The flowchart of the panel defect automatic repair method is as follows:
[0065] (1) The target detection algorithm is used to train the defect sample set and the defect repair sample set to obtain the defect detection model and the defect repair effect detection model.
[0066] In an embodiment of the present invention, the training process of the defect detection model is as follows:
[0067] (1.1) Collect defect sample images at different magnifications, and annotate the defect sample images with defect categories to obtain a defect sample set; wherein the defect sample images include a first defect sample image and a second defect sample image, and the magnification of the first defect sample image is smaller than that of the second defect sample image; specifically, the magnification of the first defect sample image includes but is not limited to 20 times, and the magnification of the second defect sample image includes but is not limited to 50 times.
[0068] (1.2) Using a target detection algorithm to perform model training on defect sample images in a defect sample set to obtain a defect detection model; wherein the target detection algorithm includes but is not limited to Faster RCNN.
[0069] In the embodiment of the present invention, the training process of the defect repair effect detection model is as follows:
[0070] (1.3) Collecting defect repair sample images of different defect types under positive light and backlight conditions, and annotating the defect repair sample images with repair results to obtain a defect repair sample set; wherein the defect repair sample images include defect repair success sample images and defect repair failure sample images, and the magnification of the defect repair sample images is the same as that of the second defect sample image.
[0071] (1.4) Using a target detection algorithm to perform model training on the defect repair samples in the defect repair sample set to obtain a defect repair effect detection model; wherein the target detection algorithm includes but is not limited to Faster RCNN.
[0072] (2) A periodic pixel unit is obtained from the defect sample image as a matching template, and a repair anchor frame is preset based on the matching template, wherein a periodic pixel unit includes a complete and overlapping line area in the panel image.
[0073] In the embodiment of the present invention, the process of obtaining the matching template is as follows:
[0074] (2.1) A repeated periodic pixel unit is intercepted from the defect sample image as a matching template; wherein the defect sample image is the second defect sample image.
[0075] (2.2) Extract all the line regions in the matching template, and preset repair anchor frames for all the line regions in the matching template that may have short circuits.
[0076] (3) Use the defect detection model to perform defect detection on the panel image to obtain the defect target frame.
[0077] In the embodiment of the present invention, the defect detection process is as follows:
[0078] (3.1) receiving a first panel image transmitted by a repair machine, performing Laplace transform on the first panel image, and comparing the Laplace transform result with a blur threshold to determine whether the first panel image is blurred; if the first panel image transmitted by the repair machine is blurred, calling the repair machine to automatically focus to obtain a clear first panel image again; wherein the magnification of the first panel image is the same as that of the first defect sample image.
[0079] (3.2) The first panel image to be inspected is input into the defect detection model for defect detection to determine whether the panel has defects.
[0080] (2.3) If a defect exists, a second panel image transmitted by the repair machine is received, and the second panel image to be detected is input into a defect detection model for defect detection to obtain a defect target frame; wherein the defect target frame includes defect category information and defect coordinate information, and the magnification of the second panel image is the same as that of the second defect sample image.
[0081] (4) Perform periodic matching and periodic migration on the panel image based on the matching template to locate the repair anchor boxes corresponding to all periodic pixel units in the panel image.
[0082] In an embodiment of the present invention, the process of locating the repair anchor frames corresponding to all periodic pixel units in the panel image is as follows:
[0083] (4.1) A template matching algorithm is used to perform periodic matching on the matching template and the second panel image to be detected, and a periodic pixel unit is obtained from the second panel image based on the periodic matching result.
[0084] (4.2) Periodically migrate the periodic pixel units based on their sizes, and obtain all periodic pixel units from the second panel image based on the periodic migration results. Figure 3 , Figure 3 Get a schematic of all pixel cells for the panel image.
[0085] (4.3) Based on the restoration anchor frame preset by the matching template, the line area of all periodic pixel units in the second panel image is located to obtain the restoration anchor frames corresponding to all periodic pixel units in the second panel image.
[0086] In the embodiment of the present invention, the process of obtaining all intersection frames is as follows:
[0087] (4.4) The coordinates of the defect target frame are intersected with the coordinates of the repair anchor frame corresponding to all periodic pixel units in the panel image to obtain the repair anchor frame corresponding to all line areas in the defect target frame.
[0088] (4.5) Coordinate positioning of the repair anchor frames corresponding to all line areas in the defect target frame to obtain all intersection frames, wherein the intersection frames include defect repair coordinate information.
[0089] (5) Perform intersection calculation on the defect target frame and the repair anchor frame corresponding to all periodic pixel units in the panel image to obtain all intersection frames, and perform threshold verification on all intersection frames to obtain the final repair frame.
[0090] In an embodiment of the present invention, the threshold check includes a repair anchor box size threshold check, a minimum repair size threshold check, and an intersection box size threshold check, that is, through post-processing based on computer vision, the intersection box can be redundantly filtered and size optimized to obtain the final repair box.
[0091] (6) Automatically repair panel defects based on the final repair frame and obtain a panel defect repair image; that is, transfer the final repair frame to the repair machine, and call the repair machine to perform laser repair or grinding repair on the panel.
[0092] See also Figure 4 , Figure 4 This is a schematic diagram of the comparison before and after panel defect repair. After the panel defect is automatically repaired, image capture is performed on the repaired defect area to obtain panel defect repair images under positive light and backlight images, wherein the magnification of the panel defect repair image is the same as that of the defect repair sample image.
[0093] (7) A defect repair effect detection model is used to perform defect repair detection on the panel defect repair image to obtain a defect repair detection result.
[0094] In the embodiment of the present invention, the process of defect repair detection is as follows:
[0095] (7.1) Input the panel defect repair image to be detected into the defect repair effect detection model for defect repair detection to determine whether the defect is successfully repaired.
[0096] (7.2) If the defect repair is successful, the next panel defect repair image to be detected is input into the defect repair effect detection model for defect repair detection. If the defect repair fails, the repair frame is re-acquired and subsequent defect repair processing is performed.
[0097] In summary, the present invention firstly trains a defect detection model and a defect repair effect detection model based on deep learning technology, and generates matching templates and repair anchor frames based on computer vision technology; then, defect detection is performed on the panel image based on deep learning technology, and period matching and period migration are performed on the panel image based on computer vision technology; then, threshold verification is performed based on computer vision post-processing technology to obtain the final repair frame; finally, panel defects are automatically repaired based on the repair frame, and defect repair detection is performed based on deep learning technology; defect detection, defect repair and defect repair effect detection based on deep learning technology and computer vision technology can meet the needs of panel manufacturers for automatic defect detection and repair, has good practicality in panel production activities, and can significantly improve panel production efficiency.
[0098] In addition, in one embodiment, based on the same inventive concept as the above embodiment, the embodiment of the present invention provides a panel defect automatic repair system, and the system corresponds to the method of embodiment 1 one by one, please refer to Figure 5 , Figure 5 The structure diagram of the panel defect automatic repair system is as follows:
[0099] A model training unit, wherein the model training unit is used to perform model training on a defect sample set and a defect repair sample set using a target detection algorithm to obtain a defect detection model and a defect repair effect detection model;
[0100] A matching template unit, the matching template unit is used to obtain a periodic pixel unit from the defect sample image as a matching template, and preset a repair anchor frame based on the matching template;
[0101] A defect detection unit, wherein the defect detection unit is used to perform defect detection on the panel image using a defect detection model to obtain a defect target frame;
[0102] A period checking unit, wherein the period checking unit performs period matching and period migration on the panel image based on the matching template to locate the repair anchor frames corresponding to all periodic pixel units in the panel image;
[0103] A repair positioning unit, which is used to perform intersection calculation on the defect target frame and the repair anchor frames corresponding to all periodic pixel units in the panel image to obtain all intersection frames, and perform threshold verification on all intersection frames to obtain a final repair frame;
[0104] An automatic repair unit, which automatically repairs the panel defect based on the final repair frame and obtains a panel defect repair image;
[0105] A repair detection unit, wherein the detection unit is used to perform defect repair detection on the panel defect repair image using a defect repair effect detection model to obtain a defect repair detection result.
[0106] It should be noted that each unit in the automatic panel defect repair system in this embodiment corresponds one-to-one to each step in the automatic panel defect repair method in the aforementioned embodiment. Therefore, the specific implementation method and technical effects achieved by this embodiment can refer to the implementation method of the aforementioned automatic panel defect repair method, and will not be repeated here.
[0107] In addition, in one embodiment, the present application also provides a computer device, which includes a processor, a memory, and a computer program stored in the memory, and the computer program implements the method in the aforementioned embodiment when executed by the processor.
[0108] In addition, in one embodiment, the present application further provides a computer storage medium, on which a computer program is stored, and the computer program implements the method in the aforementioned embodiment when executed by a processor.
[0109] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.
[0110] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0111] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0112] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0113] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0114] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0115] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a multimedia terminal device (which can be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0116] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A panel defect automatic repair method, characterized in that: The method flow is as follows: The target detection algorithm is used to train the defect sample set and the defect repair sample set to obtain the defect detection model and the defect repair effect detection model; Obtain a periodic pixel unit from the defect sample image as a matching template, and preset a repair anchor frame based on the matching template; The defect detection model is used to perform defect detection on the panel image to obtain a defect target frame; Perform periodic matching and periodic migration on the panel image based on the matching template to locate the repair anchor boxes corresponding to all periodic pixel units in the panel image; Perform intersection calculation on the defect target frame and the repair anchor frame corresponding to all periodic pixel units in the panel image to obtain all intersection frames, and perform threshold verification on all intersection frames to obtain the final repair frame; Automatically repair panel defects based on the final repair frame and obtain a panel defect repair image; The defect repair effect detection model is used to perform defect repair detection on the panel defect repair image to obtain the defect repair detection result.
2. The panel defect automatic repair method according to claim 1, characterized in that: The process of using the target detection algorithm to train the defect sample set and the defect repair sample set to obtain the defect detection model and the defect repair effect detection model is as follows: Collecting defect sample images of different magnifications, and labeling the defect sample images with defect categories to obtain a defect sample set, wherein the defect sample images include a first defect sample image and a second defect sample image, and the magnification of the first defect sample image is smaller than that of the second defect sample image; The target detection algorithm is used to perform model training on defect sample images in the defect sample set to obtain a defect detection model; Collect defect repair sample images of different defect types, and annotate the defect repair sample images with repair results to obtain a defect repair sample set, wherein the defect repair sample images include defect repair success sample images and defect repair failure sample images; The target detection algorithm is used to train the model on the defect repair samples in the defect repair sample set to obtain the defect repair effect detection model.
3. The panel defect automatic repair method according to claim 2, characterized in that: The process of obtaining a periodic pixel unit from the defect sample image as a matching template and presetting the repair anchor frame based on the matching template is as follows: Cutting out a repeated periodic pixel unit from the defect sample image as a matching template, wherein the defect sample image is a second defect sample image; Extract all line regions in the matching template, and preset repair anchor frames for all line regions in the matching template.
4. The panel defect automatic repair method according to claim 2, characterized in that: The defect detection model is used to detect defects on the panel image to obtain the defect target frame. The process is as follows: Collecting panel images with different magnifications, wherein the panel images include a first panel image and a second panel image, and the magnification of the first panel image is the same as that of the first defect sample image, and the magnification of the second panel image is the same as that of the second defect sample image; Inputting the first panel image to be inspected into the defect detection model for defect detection to determine whether the panel has defects; If there is a defect, the second panel image to be inspected is input into the defect detection model for defect detection to obtain a defect target frame.
5. The panel defect automatic repair method according to claim 1, characterized in that: The process of performing periodic matching and periodic migration on the panel image based on the matching template to locate the repair anchor boxes corresponding to all periodic pixel units in the panel image is as follows: Using a template matching algorithm to perform periodic matching on a matching template and a second panel image to be detected, and acquiring a periodic pixel unit from the second panel image based on the periodic matching result; Performing periodic migration on the periodic pixel units based on the size of the periodic pixel units, and acquiring all the periodic pixel units from the second panel image based on the periodic migration result; Based on the restoration anchor frame preset by the matching template, line regions of all periodic pixel units in the second panel image are located to obtain restoration anchor frames corresponding to all periodic pixel units in the second panel image.
6. The panel defect automatic repair method according to claim 5, characterized in that: The process of performing intersection calculation on the defect target frame and the repair anchor frame corresponding to all periodic pixel units in the panel image to obtain all intersection frames is as follows: The coordinates of the defect target frame are intersected with the coordinates of the repair anchor frames corresponding to all periodic pixel units in the panel image to obtain the repair anchor frames corresponding to all line areas in the defect target frame; The coordinates of the repair anchor frames corresponding to all line areas in the defect target frame are located to obtain all intersection frames.
7. The panel defect automatic repair method according to claim 1, characterized in that: The threshold check includes a restoration anchor box size threshold check, a minimum restoration size threshold check, and an intersection box size threshold check.
8. A panel defect automatic repair system, characterized in that: The system comprises: A model training unit, wherein the model training unit is used to perform model training on a defect sample set and a defect repair sample set using a target detection algorithm to obtain a defect detection model and a defect repair effect detection model; A matching template unit, the matching template unit is used to obtain a periodic pixel unit from the defect sample image as a matching template, and preset a repair anchor frame based on the matching template; A defect detection unit, wherein the defect detection unit is used to perform defect detection on the panel image using a defect detection model to obtain a defect target frame; A period checking unit, wherein the period checking unit performs period matching and period migration on the panel image based on the matching template to locate the repair anchor frames corresponding to all periodic pixel units in the panel image; A repair positioning unit, which is used to perform intersection calculation on the defect target frame and the repair anchor frames corresponding to all periodic pixel units in the panel image to obtain all intersection frames, and perform threshold verification on all intersection frames to obtain a final repair frame; An automatic repair unit, which automatically repairs the panel defect based on the final repair frame and obtains a panel defect repair image; A repair detection unit, wherein the detection unit is used to perform defect repair detection on the panel defect repair image using a defect repair effect detection model to obtain a defect repair detection result.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for automatically repairing panel defects described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for automatically repairing panel defects described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Panel defect analysis method, device and storage medium
CN109118482A
Defect repairing method, optical repairing equipment, electronic equipment and storage medium
CN114782286A
Defect positioning method, system and equipment based on template matching and medium
CN115063618A
Image inpainting method, image inpainting system and flat panel detector thereof
US20210295477A1
Design layout defect repair method, storage medium and device
WO2023142384A1
Cited By
Crucible defect detection method and device and computer equipment
CN119251210A
OLED panel defect repairing system and method based on AI visual identification
CN121259811A
Adaptive repair method of display panel
TWI907136B
