Panel surface defect detection method, system and equipment and storage medium
Through regional division and feature detection of the panel image, combined with a variety of image processing technologies, the problem of low panel surface defect detection efficiency and missed detection is solved, and fast and accurate defect detection results are achieved.
Patent Information
- Application Number
- CN202410773691.2
- 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
Existing panel surface defect detection methods are inefficient and prone to missed detection and over-inspection problems. Especially as the scale of panel industrial production increases and production efficiency improves, traditional manual inspection and deep learning-based target detection methods are difficult to meet the demand. .
By dividing the panel image into areas, it is divided into in-plane area images and out-of-plane area images. Operations such as mean filtering, pixel difference, threshold segmentation and closing operations are respectively used, combined with nonlinear transformation and threshold segmentation, to obtain in-plane and out-of-plane areas. External defect detection results are collected and filtered through regional connectivity and defect attribute combinations to achieve fast and accurate defect detection.
It improves the efficiency and accuracy of panel surface defect detection, reduces missed inspections and over-inspections, and can quickly and accurately obtain defect detection results to meet the needs of panel industrial production.
Smart Images

Figure CN118570183A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of panel surface defect detection, and in particular to a panel surface defect detection method, system, device and storage medium. Background Art
[0002] In the field of panel industrial production, since the production of panel products is complex and cumbersome, various defects are easily introduced during the manufacturing process. Among them, surface defects are the most intuitive manifestation of the impact on the quality of panel products. Therefore, it is necessary to perform surface defect detection on panel products.
[0003] The surface defect detection of traditional panel products mainly relies on manual inspection. However, this method has problems such as strong human subjectivity, low efficiency, and susceptibility to interference from subjective factors. In addition, with the increase in the scale of panel industry production and the improvement of production efficiency, traditional manual inspection can no longer meet the needs. At present, with the development of deep learning technology, more and more panel product manufacturers are using deep learning-based target detection methods to replace manual inspection, but this method still has some problems. This is because the deep learning-based target detection method requires data training, so it is necessary to collect a large amount of image data of panel products, which is more dependent on image data, has low detection efficiency, and is sensitive to the image background interference of panel products. It is unable to take into account both the periodic line area within the surface and the irregular line area outside the surface at the same time, and is prone to missed inspection and over-inspection problems. Summary of the invention
[0004] The present invention provides a panel surface defect detection method, system, device and storage medium, which solve the problems of low detection efficiency, easy missed detection and over-detection in the existing panel surface defect detection.
[0005] In a first aspect, an embodiment of the present invention provides a panel surface defect detection method, the method process is as follows:
[0006] Dividing the panel image into regions to obtain an in-plane region image and an out-plane region image, wherein the in-plane region image includes a regular periodic line background, and the out-plane region image includes an irregular peripheral line background;
[0007] Performing mean filtering, pixel difference, threshold segmentation and closing operations on the in-plane area image to obtain an in-plane target result image including an in-plane defect detection result;
[0008] Performing nonlinear transformation, threshold segmentation and closing operation on the out-of-plane region image to obtain an out-of-plane target result image including an out-of-plane defect detection result;
[0009] Performing regional interconnection on the in-plane target result image and the out-of-plane target result image to obtain a connected regional target result set including all panel defect detection results;
[0010] The defect attribute combination is screened for the target result set of the connected area to obtain the final panel defect detection result.
[0011] In the above embodiment, the present invention performs regional division according to the image characteristics of the panel surface. First, the panel image is divided into two parts. The first part is an in-plane area image including a single and regular periodic line background, wherein the in-plane area image has a larger area and requires more computing resources; the second part is an out-of-plane area image including a complex and irregular surrounding line background, wherein the out-of-plane area image has a smaller area and requires fewer computing resources; then, defect detection algorithms are set according to the image characteristics of the in-plane area image and the out-of-plane area image respectively to detect the defect detection results of the corresponding areas; finally, defect attribute combination screening is performed to further distinguish the defect type and filter out the false detection. The present invention adopts a regional detection method to quickly and accurately obtain defect detection results, which solves the problems of low detection efficiency, easy missed detection and over-detection in the existing panel surface defect detection.
[0012] As some optional implementations of the present application, before performing mean filtering, pixel difference, threshold segmentation and closing operations on the image in the area within the plane, it is necessary to perform Gaussian filtering on the image in the area within the plane.
[0013] In the above embodiment, the present invention can remove noise interference of the in-plane area image by performing Gaussian filtering on the in-plane area image.
[0014] As some optional implementations of the present application, before performing nonlinear transformation, threshold segmentation and closing operations on the out-of-plane area image, it is necessary to perform Gaussian filtering on the out-of-plane area image.
[0015] In the above embodiment, the present invention can remove noise interference of the out-of-plane region image by performing Gaussian filtering on the out-of-plane region image.
[0016] As some optional implementations of the present application, the process of performing mean filtering, pixel difference, threshold segmentation and closing operation on the image in the area within the plane is as follows:
[0017] Performing two mean filtering on the image in the area of the plane to obtain a screen image A1 including a foreground image and a screen image A2 including a background image;
[0018] Perform pixel difference on the screen image A1 and the screen image A2 to obtain the screen image A3 including the pixel difference of the foreground and background;
[0019] Performing threshold segmentation on the screen image A3 to obtain a screen image A4 including the in-plane defect detection target;
[0020] The screen image A4 is expanded and eroded to obtain an in-plane target result image A including the in-plane defect detection result.
[0021] In the above embodiment, the present invention targets the image characteristic that there is a single and regular periodic line background in the in-plane area image. First, a foreground image and a background image are obtained by performing two mean filters. Then, the foreground image and the background image are subjected to pixel difference to obtain the foreground and background pixel difference. Then, the foreground and background pixel difference is subjected to threshold segmentation. The area with a larger foreground and background pixel difference is used as the in-plane defect detection result.
[0022] As some optional implementations of the present application, the process of performing nonlinear transformation, threshold segmentation and closing operation on the out-of-plane area image is as follows:
[0023] Performing a nonlinear transformation on the out-of-plane region image to obtain an enhanced image B1 of the out-of-plane region image;
[0024] Performing threshold segmentation on the enhanced image B1 to obtain a screen image B2 including an out-of-plane defect detection target;
[0025] The screen image B2 is expanded and eroded to obtain an out-of-plane target result image B including the out-of-plane defect detection result.
[0026] In the above embodiment, the present invention targets the image characteristics of the out-of-plane area image having a complex and irregular surrounding line background. First, the contrast of the out-of-plane area image is changed by nonlinear transformation, and then the out-of-plane area image is directly subjected to threshold segmentation to obtain an area with larger pixels as the out-of-plane defect detection result.
[0027] As some optional implementations of the present application, the process of regionally connecting the in-plane target result image and the out-of-plane target result image is as follows:
[0028] Based on the regional division principle corresponding to the panel image, the in-plane target result image A and the out-of-plane target result image B are reversely regionally stitched to obtain a regional interconnected image;
[0029] Based on the regional connected images, the in-plane defect detection results and the out-of-plane defect detection results are positionally combined to obtain a connected regional target result set including all panel defect detection results.
[0030] In the above embodiment, the present invention can obtain a set of connected regional target results for the entire panel image through regional stitching and position combination, which is convenient for subsequent defect attribute combination screening of all panel defect detection results.
[0031] As some optional implementation methods of the present application, the process of performing defect attribute combination screening on the connected area target result set is as follows:
[0032] Constructing a defect attribute combination, wherein the defect attribute combination includes defect coordinates, defect area, defect filling rate, defect pixel value and defect angle;
[0033] Based on the defect attribute combination, the target result set of the connected area is filtered, screened, classified and combined to obtain the final panel defect detection result.
[0034] In the above embodiment, the present invention can further distinguish defect types and filter out false detections by performing defect attribute combination screening on the connected area target result set.
[0035] In a second aspect, the present invention provides a panel surface defect detection system, the system comprising:
[0036] An image region division unit, the image region division unit is used to divide the panel image into regions to obtain an in-plane region image and an out-plane region image, wherein the in-plane region image includes a regular periodic line background, and the out-plane region image includes an irregular peripheral line background;
[0037] An in-plane area image unit, the in-plane area image unit is used to perform mean filtering, pixel difference, threshold segmentation and closing operations on the in-plane area image to obtain an in-plane target result image including an in-plane defect detection result;
[0038] An out-of-plane region image unit, the out-of-plane region image unit is used to perform nonlinear transformation, threshold segmentation and closing operation on the out-of-plane region image to obtain an out-of-plane target result image including an out-of-plane defect detection result;
[0039] A panel area interconnection unit, the panel area interconnection unit is used to regionally interconnect the in-plane target result image and the out-of-plane target result image to obtain a connected area target result set including all panel defect detection results;
[0040] The attribute combination screening unit is used to perform defect attribute combination screening on the connected area target result set to obtain the final panel defect detection result.
[0041] 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 panel surface defect detection method when executing the computer program.
[0042] 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 panel surface defect detection method.
[0043] The beneficial effects of the present invention are as follows: the present invention performs regional division according to the image characteristics of the panel surface, firstly dividing the panel image into an in-plane area image and an out-of-plane area image; then setting the defect detection algorithm according to the image characteristics of the in-plane area image and the out-of-plane area image respectively to detect the defect detection results of the corresponding areas; finally, through the combination and screening of defect attributes, the defect types are further distinguished and the false detections are filtered out, and the defect detection results can be obtained quickly and accurately by adopting the regional detection method. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] 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.
[0045] Figure 1 is a schematic diagram of the computer device structure of the hardware operating environment described in the embodiment of the present invention;
[0046] Figure 2 is a flow chart of a panel surface defect detection method according to an embodiment of the present invention;
[0047] Figure 3 It is a structural block diagram of the panel surface defect detection system described in an embodiment of the present invention. DETAILED DESCRIPTION
[0048] 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.
[0049] In order to solve the problems of low detection efficiency and easy missed detection and over-detection in existing panel surface defect detection, the present application provides a panel surface defect detection method, system, device and storage medium. Before introducing the specific technical solution of the present application, the hardware operating environment involved in the embodiment of the present application is first introduced.
[0050] See also Figure 1 , Figure 1 A schematic diagram of the computer device structure of the hardware operating environment involved in the embodiment of the present application.
[0051] like Figure 1As 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.
[0052] 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.
[0053] 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.
[0054] 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 surface defect detection system stored in the electronic program module through the processor, and executes the panel surface defect detection method provided in the embodiment of the present application.
[0055] Based on the hardware environment of the aforementioned embodiment, the embodiment of the present application provides a panel surface defect detection method, please refer to Figure 2 , Figure 2 The flowchart of the panel surface defect detection method is as follows:
[0056] (1) The panel image is divided into regions to obtain an in-plane region image and an out-plane region image, wherein the in-plane region image includes a regular periodic line background, and the out-plane region image includes an irregular peripheral line background.
[0057] Specifically, before dividing the panel image into regions, it is necessary to set the size, shape and other parameters of the region division according to the line distribution on the panel image surface, and divide the panel image into regions according to the set size, shape and other parameters to obtain the in-plane region image and the out-of-plane region image.
[0058] (2) Perform mean filtering, pixel difference, threshold segmentation and closing operations on the in-plane area image to obtain an in-plane target result image including the in-plane defect detection results.
[0059] In the embodiment of the present invention, before performing mean filtering, pixel difference, threshold segmentation and closing operations on the in-plane area image, it is necessary to perform Gaussian filtering on the in-plane area image to remove noise interference of the in-plane area image.
[0060] Specifically, the process of performing mean filtering, pixel difference, threshold segmentation and closing operations on the image in the area within the plane is as follows:
[0061] (2.1) Perform two mean filters on the in-plane area image to obtain a screen image A1 including a foreground image and a screen image A2 including a background image.
[0062] (2.2) Perform pixel difference on the screen image A1 and the screen image A2 to obtain the screen image A3 including the pixel difference between the foreground and background.
[0063] (2.3) Perform threshold segmentation on the screen image A3 to obtain the screen image A4 including the in-plane defect detection target, wherein the principle of threshold segmentation is to divide the pixels of the screen image A3 into several categories. In the threshold segmentation process, the selection of the threshold is the key. Commonly used threshold selection methods include but are not limited to the histogram method, the maximum between-class variance method (OTSU method), the maximum entropy threshold segmentation method, the iterative threshold segmentation method, etc.
[0064] (2.4) The screen image A4 is expanded and eroded to obtain an in-plane target result image A including the in-plane defect detection result. That is, the screen image A4 is first expanded and then eroded. This can effectively eliminate small noise in the in-plane target result image A and fill holes, thereby improving image quality.
[0065] In an embodiment of the present invention, in view of the image characteristic that there is a single and regular periodic line background in the in-plane area image, firstly, two mean filterings are performed to obtain the foreground image A1 and the background image A2, and then the foreground image A1 and the background image A2 are pixel-differencing to obtain the foreground and background pixel difference image A, and then the foreground and background pixel difference image A is threshold-segmented, and the area with a large foreground and background pixel difference is taken as the in-plane defect detection result. That is, according to the image characteristics of the in-plane area image, considering that the result of the mean filtering of integer periodic multiples should not fluctuate in a large range, the in-plane defect detection result can be obtained according to the detection of the mean filtering result.
[0066] (3) Performing nonlinear transformation, threshold segmentation, and closing operations on the out-of-plane area image to obtain an out-of-plane target result image including out-of-plane defect detection results.
[0067] In the embodiment of the present invention, before performing nonlinear transformation, threshold segmentation and closing operation on the out-of-plane region image, it is necessary to perform Gaussian filtering on the out-of-plane region image to remove noise interference of the out-of-plane region image.
[0068] Specifically, the process of performing nonlinear transformation, threshold segmentation and closing operation on the out-of-plane area image is as follows:
[0069] (3.1) Perform a nonlinear transformation on the out-of-plane region image to obtain an enhanced image B1 of the out-of-plane region image. The nonlinear transformation includes but is not limited to a Gamma transformation. The Gamma transformation can change the overall brightness and contrast of the out-of-plane region image. When the Gamma value is less than 1, the bright area of the out-of-plane region image is stretched and the contrast is increased; when the Gamma value is greater than 1, the dark area of the image is stretched and the contrast is reduced. Therefore, by applying an appropriate Gamma transformation, the image enhancement effect can be achieved.
[0070] (3.2) Threshold segmentation is performed on the enhanced image B1 to obtain a screen image B2 including the off-plane defect detection target, wherein the principle of threshold segmentation is to divide the pixels of the enhanced image B1 into several categories. In the threshold segmentation process, the selection of the threshold is the key. Commonly used threshold selection methods include but are not limited to the histogram method, the maximum between-class variance method (OTSU method), the maximum entropy threshold segmentation method, the iterative threshold segmentation method, etc.
[0071] (3.3) The screen image B2 is expanded and eroded to obtain an out-of-plane target result image B including the out-of-plane defect detection result. That is, the screen image B2 is first expanded and then eroded. This can effectively eliminate small noise in the out-of-plane target result image B and fill holes, thereby improving image quality.
[0072] In an embodiment of the present invention, in view of the image characteristics of the out-of-plane area image having a complex and irregular surrounding line background, the contrast of the out-of-plane area image is first changed through a nonlinear transformation to obtain an enhanced image B1 of the out-of-plane area image, and then the enhanced image B1 of the out-of-plane area image is directly threshold segmented to obtain an area with larger pixels as the out-of-plane defect detection result.
[0073] (4) The in-plane target result image and the out-of-plane target result image are regionally connected to obtain a connected regional target result set including all panel defect detection results.
[0074] In the embodiment of the present invention, the process of regionally connecting the in-plane target result image and the out-plane target result image is as follows:
[0075] (4.1) Based on the regional division principle corresponding to the panel image, the in-plane target result image A and the out-of-plane target result image B are reversely regionally stitched to obtain a regional connected image.
[0076] (4.2) Based on the regional connected image, the in-plane defect detection results and the out-of-plane defect detection results are positionally combined to obtain a connected regional target result set including all panel defect detection results.
[0077] In an embodiment of the present invention, by performing regional stitching and position combination on the in-plane target result image A and the out-of-plane target result image B, a set of connected regional target results for the entire panel image can be obtained, which facilitates the subsequent defect attribute combination screening of all panel defect detection results.
[0078] (5) Perform defect attribute combination screening on the target result set of the connected area to obtain the final panel defect detection result.
[0079] In an embodiment of the present invention, the process of performing defect attribute combination screening on the connected area target result set is as follows:
[0080] (5.1) Constructing a defect attribute combination, wherein the defect attribute combination includes but is not limited to defect coordinates, defect area, defect filling rate, defect pixel value and defect angle.
[0081] In an embodiment of the present invention, since the area of panel surface defects generally needs to be larger than a threshold, and the coordinates of different types of defects generally appear in the corresponding line area, some smaller defects can be filtered out by setting filtering of defect coordinates and area, and defect types can be shielded according to regional locations.
[0082] In the embodiment of the present invention, since the defect filling rate of the panel surface is irregular, complete filling will not occur and the filling rate is relatively low. The line area is generally a regular line with a relatively high filling rate. Therefore, some falsely detected line areas can be filtered out by setting a filter for the defect filling rate.
[0083] In the embodiment of the present invention, since the pixel values of the panel surface defects are not completely uniform, there will be large differences in the maximum pixel value, the minimum pixel value and the average pixel value, while the pixel values of the line area are relatively uniform and will not fluctuate greatly. Therefore, some falsely detected line areas can be filtered out by setting a filter for the defective pixel values.
[0084] In the embodiment of the present invention, since the panel surface defects may appear at a certain angle, and the circuit area is generally 90° or 0°, the angle defects can be screened out by setting the defect angle filter.
[0085] (5.2) Based on the defect attribute combination, the target result set of the connected area is filtered, screened, classified and combined to obtain the final panel defect detection result.
[0086] In summary, the present invention divides the regions according to the image characteristics of the panel surface. First, the panel image is divided into two parts. The first part is an in-plane region image including a single and regular periodic line background, wherein the in-plane region image has a larger area and requires more computing resources; the second part is an out-of-plane region image including a complex and irregular surrounding line background, wherein the out-of-plane region image has a smaller area and requires fewer computing resources; then, defect detection algorithms are set according to the image characteristics of the in-plane region image and the out-of-plane region image respectively to detect the defect detection results of the corresponding areas; finally, defect attribute combination screening is performed to further distinguish the defect types and filter out false detections. The present invention adopts a regional detection method to quickly and accurately obtain defect detection results, which solves the problems of low detection efficiency, easy missed detection and over-detection in existing panel surface defect detection.
[0087] In addition, in one embodiment, based on the same inventive concept as the above-mentioned embodiment, the embodiment of the present invention provides a wafer cutting defect detection system, and the system corresponds to the method of embodiment 1 one by one, please refer to Figure 3 , Figure 3 The structural block diagram of the panel surface defect detection system is as follows:
[0088] An image region division unit, the image region division unit is used to divide the panel image into regions to obtain an in-plane region image and an out-plane region image, wherein the in-plane region image includes a regular periodic line background, and the out-plane region image includes an irregular peripheral line background;
[0089] An in-plane area image unit, the in-plane area image unit is used to perform mean filtering, pixel difference, threshold segmentation and closing operations on the in-plane area image to obtain an in-plane target result image including an in-plane defect detection result;
[0090] An out-of-plane region image unit, the out-of-plane region image unit is used to perform nonlinear transformation, threshold segmentation and closing operation on the out-of-plane region image to obtain an out-of-plane target result image including an out-of-plane defect detection result;
[0091] A panel area interconnection unit, the panel area interconnection unit is used to regionally interconnect the in-plane target result image and the out-of-plane target result image to obtain a connected area target result set including all panel defect detection results;
[0092] The attribute combination screening unit is used to perform defect attribute combination screening on the connected area target result set to obtain the final panel defect detection result.
[0093] It should be noted that each unit in the panel surface defect detection system in this embodiment corresponds one-to-one to each step in the panel surface defect detection 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 panel surface defect detection method, and will not be repeated here.
[0094] 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.
[0095] 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.
[0096] 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.
[0097] 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.
[0098] 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).
[0099] 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.
[0100] 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.
[0101] 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.
[0102] 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.
[0103] 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 surface defect detection method, characterized in that: The method flow is as follows: Dividing the panel image into regions to obtain an in-plane region image and an out-plane region image, wherein the in-plane region image includes a regular periodic line background, and the out-plane region image includes an irregular peripheral line background; Performing mean filtering, pixel difference, threshold segmentation and closing operations on the in-plane area image to obtain an in-plane target result image including an in-plane defect detection result; Performing nonlinear transformation, threshold segmentation and closing operation on the out-of-plane region image to obtain an out-of-plane target result image including an out-of-plane defect detection result; Performing regional interconnection on the in-plane target result image and the out-of-plane target result image to obtain a connected regional target result set including all panel defect detection results; The defect attribute combination is screened for the target result set of the connected area to obtain the final panel defect detection result.
2. A panel surface defect detection method according to claim 1, characterized in that: Before performing mean filtering, pixel difference, threshold segmentation and closing operations on the image in the area within the plane, it is necessary to perform Gaussian filtering on the image in the area within the plane.
3. A panel surface defect detection method according to claim 1, characterized in that: Before performing nonlinear transformation, threshold segmentation and closing operation on the image in the out-of-plane area, it is necessary to perform Gaussian filtering on the image in the out-of-plane area.
4. A panel surface defect detection method according to claim 1, characterized in that: The process of performing mean filtering, pixel difference, threshold segmentation and closing operations on the image in the area within the plane is as follows: Performing two mean filtering on the image in the area of the plane to obtain a screen image A1 including a foreground image and a screen image A2 including a background image; Perform pixel difference on the screen image A1 and the screen image A2 to obtain the screen image A3 including the pixel difference of the foreground and background; Performing threshold segmentation on the screen image A3 to obtain a screen image A4 including the in-plane defect detection target; The screen image A4 is expanded and eroded to obtain an in-plane target result image A including the in-plane defect detection result.
5. A panel surface defect detection method according to claim 4, characterized in that: The process of nonlinear transformation, threshold segmentation and closing operation on the out-of-plane area image is as follows: Performing a nonlinear transformation on the out-of-plane region image to obtain an enhanced image B1 of the out-of-plane region image; Performing threshold segmentation on the enhanced image B1 to obtain a screen image B2 including an out-of-plane defect detection target; The screen image B2 is expanded and eroded to obtain an out-of-plane target result image B including the out-of-plane defect detection result.
6. A panel surface defect detection method according to claim 5, characterized in that: The process of regionally connecting the in-plane target result image and the out-of-plane target result image is as follows: Based on the regional division principle corresponding to the panel image, the in-plane target result image A and the out-of-plane target result image B are reversely regionally stitched to obtain a regional interconnected image; Based on the regional connected images, the in-plane defect detection results and the out-of-plane defect detection results are positionally combined to obtain a connected regional target result set including all panel defect detection results.
7. A panel surface defect detection method according to claim 1, characterized in that: The process of screening defect attribute combinations for the target result set of the connected area is as follows: Constructing a defect attribute combination, wherein the defect attribute combination includes defect coordinates, defect area, defect filling rate, defect pixel value and defect angle; Based on the defect attribute combination, the target result set of the connected area is filtered, screened, classified and combined to obtain the final panel defect detection result.
8. A panel surface defect detection system, characterized in that: The system comprises: An image region division unit, the image region division unit is used to divide the panel image into regions to obtain an in-plane region image and an out-plane region image, wherein the in-plane region image includes a regular line texture background, and the out-plane region image includes an irregular line texture background; An in-plane area image unit, the in-plane area image unit is used to perform mean filtering, pixel difference, threshold segmentation and closing operations on the in-plane area image to obtain an in-plane target result image including an in-plane defect detection result; An out-of-plane region image unit, the out-of-plane region image unit is used to perform nonlinear transformation, threshold segmentation and closing operation on the out-of-plane region image to obtain an out-of-plane target result image including an out-of-plane defect detection result; A panel area interconnection unit, the panel area interconnection unit is used to regionally interconnect the in-plane target result image and the out-of-plane target result image to obtain a connected area target result set including all panel defect detection results; The attribute combination screening unit is used to perform defect attribute combination screening on the connected area target result set to obtain the final panel defect 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 detecting panel surface 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 detecting surface defects of a panel described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Panel edge defect detection method and device, medium, equipment and program product
CN116309563A
Panel detection method, device and equipment and storage medium
CN116735598A
Pattern defect inspection device
JP2008292309A
Cited By
Defect detection method, device and system for display panel and medium
CN119438234A
A method, apparatus, system, and medium for detecting defects of a display panel
CN119438234B
