A panel edge defect detection method, device, equipment and storage medium

Through image acquisition and edge fitting of the LCD panel, combined with line scanning and outlier screening technology, the stability and low efficiency problems caused by traditional manual visual inspection are solved, and more accurate and efficient defect detection is achieved.

CN118297946BActive Publication Date: 2024-09-06CHENGDU UNION BIG DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410719078.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-06
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

Traditional LCD panel defect detection methods rely on manual visual inspection, resulting in low stability and efficiency, and inconsistent image judgment results.

Method used

By collecting images of the LCD panel, the fitted edge straight line of the edge area is obtained, and defects are determined based on the distance from the edge point to the fitted edge straight line. Technologies such as line scanning and outlier screening are used to improve detection accuracy and efficiency.

Benefits of technology

The stability and efficiency of LCD panel defect detection have been significantly improved, false detections have been reduced, and more accurate and reliable edge contour detection results have been provided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118297946B
    Figure CN118297946B
Patent Text Reader

Abstract

The present application provides a panel edge defect detection method, device, equipment and storage medium, which relates to the field of defect detection technology and is used to solve the problem of low stability and efficiency of liquid crystal panel defect detection. The method includes: performing image acquisition on the liquid crystal panel to be detected and obtaining a panel acquisition image; obtaining multiple regions of interest from the panel acquisition image; wherein the regions of interest include edge regions; obtaining a plurality of fitted edge straight lines corresponding to each of the edge regions; for any edge region, determining whether any edge region has a defect based on the distance between each edge point of the edge region and the fitted edge straight line of the edge region. That is, the edge contour of the liquid crystal panel can be determined by "quantitative measurement" to greatly improve the stability and efficiency of liquid crystal panel defect detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of defect detection, and provides a panel edge defect detection method, device, equipment and storage medium. Background Art

[0002] As we all know, in the traditional LCD panel defect detection method, "artificial visual inspection" is often used for defect detection, which mainly relies on professional inspectors to check whether the LCD panel has defects such as bright spots, dark spots, bright lines, dark lines and color spots through "naked eye observation". However, due to the problems of human fatigue and subjectivity in this method, it is easy to have inconsistent image judgment results, which leads to low stability and efficiency of LCD panel defect detection.

[0003] Therefore, how to improve the stability and efficiency of LCD panel defect detection is an urgent problem to be solved. Summary of the invention

[0004] The embodiments of the present application provide a panel edge defect detection method, device, equipment and storage medium, which are used to solve the problems of low stability and efficiency of liquid crystal panel defect detection.

[0005] In one aspect, a panel edge defect detection method is provided, the method comprising:

[0006] Capture an image of the liquid crystal panel to be inspected, and obtain a panel capture image;

[0007] Acquire a plurality of regions of interest from the panel captured image; wherein the regions of interest include edge regions;

[0008] Obtaining a plurality of fitted edge straight lines corresponding to the edge regions;

[0009] For any edge region, whether any edge region has a defect is determined according to the distance between each edge point of the any edge region and a fitting edge straight line of the any edge region.

[0010] The beneficial effects of the present application are as follows: for any edge area, whether any edge area has a defect is determined based on the distance between each edge point of any edge area and the fitted edge straight line of any edge area, that is, whether the edge contour of the liquid crystal panel has a defect is determined through "quantitative measurement". Therefore, compared with the prior art that requires "artificial visual inspection" to perform defect detection, the present application can obviously greatly improve the stability and efficiency of liquid crystal panel defect detection.

[0011] In one implementation, the step of obtaining the fitted edge straight lines corresponding to each of the plurality of edge regions includes:

[0012] For any edge region, edge points are extracted at certain intervals using a line scanning method to obtain a first edge point set for the any edge region;

[0013] Screening outliers on the first edge point set to obtain a second edge point set;

[0014] Fitting is performed on each edge point in the second edge point set to obtain a fitting edge straight line corresponding to any edge region.

[0015] The beneficial effects of the present application are as follows: since a line scanning method is used to obtain edge point sets, the edge point sets can be obtained more simply and quickly; in addition, since outlier points are screened for the edge point sets, a more accurate and reliable fitting edge straight line can be obtained by improving the fitting degree of the edge area.

[0016] In one implementation, the step of determining, for any edge region, whether any edge region has a defect according to the distance between each edge point of the any edge region and a fitting edge straight line of the any edge region includes:

[0017] For any edge region, calculate the distance between each edge point of the any edge region and the fitted edge straight line of the any edge region to obtain the distance corresponding to each edge point;

[0018] Determine a plurality of edge points whose distance is greater than a preset distance threshold;

[0019] Among the plurality of edge points, determining whether the number of continuous edge points is greater than a preset number threshold;

[0020] If it is determined that the number of continuous edge points is greater than a preset number threshold, it is determined that any of the edge regions has a defect.

[0021] The beneficial effect of the present application is: since defects in the edge area will only be determined when the distance is greater than a preset distance threshold and the number of continuous edge points is greater than a preset number threshold, the present application can avoid false detection by filtering out a small number of continuous edge points, thereby further improving the stability and efficiency of LCD panel defect detection.

[0022] In one implementation, the step of determining, for any edge region, whether any edge region has a defect according to the distance between each edge point of the any edge region and a fitting edge straight line of the any edge region includes:

[0023] For any edge region, calculate the distance between each edge point of the any edge region and the fitted edge straight line of the any edge region to obtain the distance corresponding to each edge point;

[0024] Determine a plurality of edge points whose distance is greater than a preset distance threshold;

[0025] Obtaining multiple defect areas according to the multiple edge points;

[0026] If it is determined that any defect area is greater than a preset area threshold, it is determined that any edge region has a defect.

[0027] The beneficial effect of the present application is: since defects in the edge area will only be determined when the distance is greater than a preset distance threshold and the defect area is greater than a preset area threshold, the present application can avoid false detection by filtering out small-area defects, thereby further improving the stability and efficiency of LCD panel defect detection.

[0028] In one implementation, when the region of interest includes an edge grinding region, after acquiring a plurality of regions of interest from the panel acquisition image, the method further includes:

[0029] For any edge grinding area, use line scanning method and extract edge grinding points at a certain interval to obtain the coordinate points entering and leaving any edge grinding area respectively;

[0030] The edge grinding width of the liquid crystal panel is determined according to the coordinate points entering and leaving any one of the edge grinding areas.

[0031] The beneficial effect of the present application is that since the line scanning method is used to extract the edge grinding points, the edge grinding points can be obtained more simply and quickly, thereby more efficiently determining the edge grinding width of the liquid crystal panel to accurately obtain the length and width information of the chamfered area.

[0032] In an implementation, when the region of interest includes a chamfered region, after acquiring a plurality of regions of interest from the panel acquisition image, the method further includes:

[0033] For any two adjacent edge regions of the liquid crystal panel, use a line scanning method for the any two edge regions to obtain a plurality of common points of the any two edge regions;

[0034] Screening outliers on the multiple common points to obtain a chamfer point set of the chamfer area between any two edge areas;

[0035] The length and width information of the chamfered area is obtained according to the minimum circumscribed rectangle of the chamfered point set.

[0036] The beneficial effects of the present application are as follows: since a line scanning method is used to obtain the common points of any two edge areas, the common points can be obtained more simply and quickly; in addition, since the common points are also screened for outliers, the length and width information of the chamfered area can be accurately obtained by accurately determining the minimum circumscribed rectangle of the chamfered point set, thereby providing users with precise LCD panel information.

[0037] In one implementation, the step of acquiring the region of interest from the panel captured image includes:

[0038] Acquire a pixel point set of the panel captured image;

[0039] Arrange the pixel points in the pixel point set in ascending order according to the distance between any two pixel points in the pixel point set to obtain a first sorting sequence;

[0040] Calculating the local density of each pixel point according to the first sorting sequence;

[0041] Calculating the minimum distance between each pixel point according to the local density of each pixel point;

[0042] For any pixel point, normalize the local density of the pixel point and the minimum distance and then multiply them to obtain the weight of the pixel point;

[0043] Determining a plurality of cluster center points according to the weights of the respective pixel points;

[0044] According to the size of the local density, the remaining pixel points in the first sorting sequence except the multiple cluster center points are allocated to the cluster where the nearest cluster center point is located, so as to obtain the multiple regions of interest.

[0045] The beneficial effects of the present application are as follows: since it is based on an improved weighted K-nearest neighbor clustering algorithm, it can not only avoid the subjectivity and randomness caused by “manual decision-making of cluster center points”, but also greatly improve the accuracy of determining cluster center points, thereby further accurately obtaining the area of ​​interest.

[0046] In one implementation, the step of arranging the pixels in the pixel point set in ascending order according to the distance between any two pixels in the pixel point set to obtain a first sorting sequence includes:

[0047] For any pixel point in the pixel point set, calculate the distances between all pixel points in the pixel point set except the any pixel point and the any pixel point to obtain a plurality of first distances;

[0048] Adding the multiple first distances to obtain a total distance of any pixel point;

[0049] According to the total distance of each pixel point, the pixel points are arranged in ascending order to obtain the first sorting sequence.

[0050] The beneficial effect of the present application is that since the pixel points are arranged in ascending order according to the total distance of the pixel points, it can provide a basic condition for determining the cluster center point more conveniently and quickly in the future.

[0051] In one implementation, the step of calculating the minimum distance of each pixel point according to the local density of each pixel point includes:

[0052] For any pixel point in the first sorting sequence, calculate the distance between the any pixel point and all pixel points in the first sorting sequence whose local density is higher than that of the any pixel point, to obtain a plurality of second distances;

[0053] The minimum value among the multiple second distances is determined as the minimum distance of any pixel point.

[0054] The beneficial effect of the present application is that since the minimum distance between a pixel point and any other pixel point with a higher local density is determined as the minimum distance of the pixel point, it can provide a basic condition for subsequently determining a more accurate cluster center point.

[0055] In one implementation, the step of determining a plurality of cluster center points according to the weights of the respective pixel points includes:

[0056] Arrange the pixel points in descending order according to the weights of the pixel points to obtain a second sorting sequence;

[0057] Determining a critical pixel point corresponding to a maximum slope change according to a slope change trend corresponding to the second sorting sequence;

[0058] A plurality of pixel points before the critical pixel point in the second sorting sequence are determined as cluster center points.

[0059] The beneficial effects of the present application are as follows: since only pixels with both high local density and small distance are considered as cluster center points, the accuracy of obtaining the region of interest can be greatly improved. In addition, since the critical center point of the cluster is determined based on the trend of the weight slope change, it can not only provide a clear standard for selecting the cluster center, but also provide a more ideal clustering effect for data sets with uneven density, thereby further improving the accuracy of obtaining the region of interest.

[0060] In one aspect, a panel edge defect detection device is provided, the device comprising:

[0061] An image acquisition unit is used to acquire an image of the liquid crystal panel to be inspected and obtain an image of the panel;

[0062] An area of ​​interest acquisition unit, used to acquire a plurality of areas of interest from the panel captured image; wherein the areas of interest include edge areas;

[0063] A fitting edge straight line acquisition unit, used to acquire a plurality of fitting edge straight lines corresponding to the edge regions;

[0064] The defect determination unit is used to determine, for any edge region, whether there is a defect in the any edge region according to the distance between each edge point of the any edge region and the fitted edge straight line of the any edge region.

[0065] On the one hand, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein any one of the above methods is implemented when the processor executes the computer program.

[0066] In one aspect, a computer storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, any of the above methods is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0068] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0069] Figure 2 A schematic diagram of a flow chart of a panel edge defect detection method provided in an embodiment of the present application;

[0070] Figure 3 A schematic diagram of a panel edge defect detection device provided in an embodiment of the present application.

[0071] Markings in the figure: 10 - panel edge defect detection equipment, 101 - processor, 102 - memory, 103 - I / O interface, 104 - database, 30 - panel edge defect detection device, 301 - image acquisition unit, 302 - region of interest acquisition unit, 303 - fitting edge straight line acquisition unit, 304 - defect determination unit, 305 - grinding width determination unit, 306 - chamfer length and width acquisition unit. DETAILED DESCRIPTION

[0072] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.

[0073] As we all know, in the traditional LCD panel defect detection method, "artificial visual inspection" is often used for defect detection, which mainly relies on professional inspectors to check whether the LCD panel has defects such as bright spots, dark spots, bright lines, dark lines and color spots through "naked eye observation". However, due to the problems of human fatigue and subjectivity in this method, it is easy to have inconsistent image judgment results, which leads to low stability and efficiency of LCD panel defect detection.

[0074] Based on this, the embodiment of the present application provides a panel edge defect detection method, in which, first, an image acquisition can be performed on the liquid crystal panel to be inspected to obtain a panel acquisition image; then, multiple regions of interest can be acquired from the panel acquisition image; wherein the region of interest includes an edge region; next, the fitted edge straight lines corresponding to each of the multiple edge regions can be acquired; finally, for any edge region, the distance between each edge point of any edge region and the fitted edge straight line of any edge region can be used to determine whether any edge region has a defect. Therefore, in the embodiment of the present application, for any edge region, since the distance between each edge point of any edge region and the fitted edge straight line of any edge region is used to determine whether any edge region has a defect, that is, the edge contour of the liquid crystal panel is determined to be defective by "quantitative measurement". Therefore, compared with the prior art that requires "artificial visual inspection" to perform defect detection, the present application can obviously greatly improve the stability and efficiency of liquid crystal panel defect detection.

[0075] After introducing the design ideas of the embodiments of the present application, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In the specific implementation process, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.

[0076] like Figure 1 FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application. The application scenario may include a panel edge defect detection device 10 .

[0077] The panel edge defect detection device 10 can be used to detect defects on a liquid crystal panel, for example, a personal computer (PC), a server, a laptop, etc. The panel edge defect detection device 10 may include one or more processors 101, a memory 102, an I / O interface 103, and a database 104. Specifically, the processor 101 may be a central processing unit (CPU), or a digital processing unit, etc. The memory 102 may be a volatile memory, such as a random-access memory (RAM); the memory 102 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or the memory 102 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 102 may be a combination of the above memories. The memory 102 may store some program instructions of the panel edge defect detection method provided in the embodiment of the present application, and these program instructions can be used to implement the steps of the panel edge defect detection method provided in the embodiment of the present application when executed by the processor 101, so as to solve the problem of low stability and efficiency of liquid crystal panel defect detection. The database 104 may be used to store data such as the panel acquisition image, the region of interest, the fitted edge straight line, the distance corresponding to each edge point, the first edge point set and the second edge point set involved in the solution provided in the embodiment of the present application.

[0078] In the embodiment of the present application, the panel edge defect detection device 10 can obtain the panel acquisition image through the I / O interface 103, and then the processor 101 of the panel edge defect detection device 10 will improve the stability and efficiency of the liquid crystal panel defect detection according to the program instructions of the panel edge defect detection method provided in the embodiment of the present application in the memory 102. In addition, the panel acquisition image, the region of interest, the fitted edge straight line, the distance corresponding to each edge point, the first edge point set and the second edge point set and other data can also be stored in the database 104.

[0079] Of course, the method provided in the embodiment of the present application is not limited to Figure 1 The application scenarios shown can also be used in other possible application scenarios, and the embodiments of the present application are not limited thereto. Figure 1The functions that can be realized by each device in the application scenario shown will be described in the subsequent method embodiments, and will not be described in detail here. Below, the method of the embodiment of the present application will be introduced in conjunction with the accompanying drawings.

[0080] like Figure 2 FIG. 1 is a schematic diagram of a process flow of a panel edge defect detection method provided by an embodiment of the present application. The method can be performed by Figure 1 The panel edge defect detection device 10 is used to perform the method. Specifically, the process of the method is described as follows.

[0081] Step 201: Capture an image of the liquid crystal panel to be inspected, and obtain a panel capture image.

[0082] In order to further improve the stability and efficiency of LCD panel defect detection, in an embodiment of the present application, the stability and efficiency of LCD panel defect detection can be improved by performing "quantitative measurement" on the captured image of the LCD panel. Specifically, first, image capture can be performed on the LCD panel to be inspected to obtain a panel capture image.

[0083] Step 202: Acquire multiple regions of interest from the panel captured image.

[0084] In the embodiment of the present application, the region of interest may include an edge region.

[0085] Furthermore, in order to improve the stability and efficiency of LCD panel defect detection while also improving the accuracy of LCD panel defect detection, in an embodiment of the present application, after acquiring the panel acquisition image, multiple regions of interest can be acquired from the panel acquisition image, thereby further improving the accuracy of LCD panel defect detection by subsequently performing targeted defect detection on each region of interest.

[0086] Step 203: Obtain the fitted edge straight lines corresponding to each of the plurality of edge regions.

[0087] In order to realize edge contour defect detection of liquid crystal panels, in an embodiment of the present application, after obtaining multiple regions of interest (edge ​​regions), the fitting edge straight lines corresponding to each of the multiple edge regions can be obtained, so as to prepare for the subsequent determination of whether the edge contour of the liquid crystal panel is defective through "quantitative measurement".

[0088] Step 204: for any edge region, determine whether any edge region has a defect according to the distance between each edge point of any edge region and a fitting edge straight line of any edge region.

[0089] In an embodiment of the present application, after obtaining the fitting edge straight lines corresponding to each edge area, in order to greatly improve the stability and efficiency of liquid crystal panel defect detection, for any edge area, it is possible to determine whether any edge area has a defect based on the distance between each edge point of any edge area and the fitting edge straight line of any edge area.

[0090] Furthermore, for any edge area, whether there is a defect in any edge area is determined based on the distance between each edge point of any edge area and the fitted edge straight line of any edge area, that is, whether the edge contour of the liquid crystal panel is defective is determined through "quantitative measurement". Therefore, compared with the prior art that requires "artificial visual inspection" to perform defect detection, the present application can obviously greatly improve the stability and efficiency of liquid crystal panel defect detection.

[0091] In a possible implementation, in order to further improve the stability and efficiency of liquid crystal panel defect detection, in an embodiment of the present application, when obtaining the fitted edge straight lines corresponding to multiple edge regions, the outliers can be screened out and the remaining boundary points can be fitted to obtain the fitted edge straight lines.

[0092] Specifically, for any edge region, first, a line scanning method with a certain interval can be used to extract edge points at a certain interval to obtain a first edge point set for any edge region; then, outlier points can be screened for the first edge point set to obtain a second edge point set; finally, each edge point in the second edge point set can be fitted to obtain a fitted edge straight line corresponding to any edge region.

[0093] Furthermore, since the edge point set is obtained by line scanning, the edge point set can be obtained more simply and quickly; in addition, since the edge point set is also screened for outliers, a more accurate and reliable fitting edge straight line can be obtained by improving the fitting degree of the edge area.

[0094] In a possible implementation, in order to further improve the stability and efficiency of liquid crystal panel defect detection, in an embodiment of the present application, for any edge region, when determining whether any edge region has a defect based on the distance between each edge point of any edge region to the fitted edge straight line of any edge region, it is specifically possible to determine whether the corresponding edge region has a defect based on the "number of continuous edge points".

[0095] That is, for any edge region, first, the distance between each edge point of any edge region and the fitted edge straight line of any edge region can be calculated to obtain the distance corresponding to each edge point; then, multiple edge points whose distance is greater than a preset distance threshold can be determined; next, among the multiple edge points, it can be determined whether the number of continuous edge points is greater than a preset number threshold; finally, if it is determined that the number of continuous edge points is greater than the preset number threshold, it can be determined that any edge region has a defect. Conversely, if it is determined that the number of continuous edge points is not greater than the preset number threshold, it can be determined that any edge region does not have a defect.

[0096] Furthermore, since defects in the edge area will only be determined when the distance is greater than a preset distance threshold and the number of continuous edge points is greater than a preset number threshold, the present application can avoid false detection by filtering out a small number of continuous edge points, thereby further improving the stability and efficiency of LCD panel defect detection.

[0097] In a possible implementation, in order to further improve the stability and efficiency of liquid crystal panel defect detection, in an embodiment of the present application, for any edge area, when determining whether any edge area has a defect based on the distance between each edge point of any edge area to the fitted edge straight line of any edge area, it is possible to determine whether the corresponding edge area has a defect based on the "defect area".

[0098] That is, for any edge region, first, the distance between each edge point of any edge region and the fitted edge straight line of any edge region can be calculated to obtain the distance corresponding to each edge point; then, multiple edge points whose distance is greater than a preset distance threshold can be determined; next, multiple defect areas can be obtained based on the multiple edge points; finally, if it is determined that any defect area is greater than the preset area threshold, it can be determined that any edge region has a defect. Conversely, if it is determined that any defect area is not greater than the preset area threshold, it can be determined that any edge region does not have a defect.

[0099] Furthermore, since defects in the edge area will only be determined when the distance is greater than a preset distance threshold and the defect area is greater than a preset area threshold, the present application can avoid false detection by filtering out small-area defects, thereby further improving the stability and efficiency of LCD panel defect detection.

[0100] In order to further improve the stability and efficiency of liquid crystal panel defect detection, in an embodiment of the present application, after acquiring multiple regions of interest, different processing methods can be used for different types of regions of interest (edge ​​grinding areas, chamfered areas, suspected defect areas).

[0101] In a possible implementation, specifically, if the region of interest includes an edge grinding area, after obtaining multiple regions of interest from the panel acquisition image, for any edge grinding area, a line scanning method can be used and edge grinding point extraction can be performed at a certain interval to respectively obtain the coordinate points of entering and leaving any edge grinding area; then, the edge grinding width of the liquid crystal panel can be determined based on the coordinate points of entering and leaving any edge grinding area.

[0102] Furthermore, since the edge grinding point extraction is performed using a line scanning method, the edge grinding point can be obtained more simply and quickly, thereby more efficiently determining the edge grinding width of the liquid crystal panel to accurately obtain the length and width information of the chamfered area.

[0103] In addition, for the edge grinding area, the shape of the edge grinding area can be extracted according to the binarization result of the content of the region of interest, and because the edge grinding area is the mirror reflection of the edge grinding surface, the extracted edge grinding area appears black as a whole.

[0104] In a possible implementation, if the region of interest includes a chamfered region (the chamfered region is located in the middle of two adjacent edge directions of the liquid crystal panel), then after obtaining multiple regions of interest from the panel acquisition image, first, for any two adjacent edge regions of the liquid crystal panel, a line scanning method can be used for any two edge regions to obtain multiple common points of any two edge regions; then, outlier points can be screened for the multiple common points to obtain a chamfer point set of the chamfered region between any two edge regions; finally, the length and width information of the chamfered region can be obtained based on the minimum circumscribed rectangle of the chamfer point set.

[0105] Furthermore, since the line scanning method is used to obtain the common points of any two edge areas, the common points can be obtained more simply and quickly; in addition, since the common points are also screened for outliers, the length and width information of the chamfered area can be accurately obtained by accurately determining the minimum circumscribed rectangle of the chamfered point set, thereby providing users with precise LCD panel information.

[0106] In practical applications, the line scanning method can be horizontal line scanning and vertical line scanning, and both are scanned at a certain interval to record the coordinate points entering and leaving the edge grinding area / chamfering area, thereby measuring the length and width information of the edge grinding area / chamfering area.

[0107] In a possible implementation, in order to further improve the stability and efficiency of liquid crystal panel defect detection, in an embodiment of the present application, when obtaining a region of interest from an image captured from the panel, an "improved density peak clustering algorithm based on weighted K neighbors" can be used to obtain the region of interest.

[0108] Specifically, first, a pixel point set of the panel acquisition image can be obtained; then, the pixel points in the pixel point set can be arranged in ascending order according to the distance between any two pixel points in the pixel point set to obtain a first sorting sequence; next, the local density of each pixel point can be calculated according to the first sorting sequence; then, the minimum distance of each pixel point can be calculated according to the local density of each pixel point; next, for any pixel point, the local density of any pixel point and the minimum distance can be normalized and then multiplied to obtain the weight of any pixel point; then, multiple cluster center points can be determined according to the weight of each pixel point; finally, the remaining pixel points in the first sorting sequence except for multiple cluster center points can be allocated to the cluster where the nearest cluster center point is located according to the size of the local density to obtain multiple regions of interest.

[0109] Furthermore, since it is based on an improved weighted K-nearest neighbor clustering algorithm, it can not only avoid the subjectivity and randomness caused by “manual decision-making of cluster center points”, but also greatly improve the accuracy of determining cluster center points, thereby further accurately obtaining the area of ​​interest.

[0110] In a possible implementation, in order to further improve the stability and efficiency of liquid crystal panel defect detection, in an embodiment of the present application, when arranging each pixel point in the pixel point set in ascending order according to the distance between any two pixel points in the pixel point set to obtain a first sorting sequence, for any pixel point in the pixel point set, first, the distance between all pixel points in the pixel point set except any pixel point and any pixel point can be calculated to obtain multiple first distances; then, the multiple first distances can be added to obtain the total distance of any pixel point; finally, the pixel points can be arranged in ascending order according to the total distance of each pixel point to obtain the first sorting sequence.

[0111] Furthermore, since the pixels are arranged in ascending order according to their total distances, this can provide a basic condition for determining the cluster center point more conveniently and quickly in the future.

[0112] In a possible implementation, in order to further improve the stability and efficiency of liquid crystal panel defect detection, in an embodiment of the present application, when calculating the minimum distance of each pixel point based on the local density of each pixel point, for any pixel point in the first sorting sequence, first, the distance between any pixel point and all pixel points in the first sorting sequence whose local density is higher than the local density of any pixel point can be calculated to obtain multiple second distances; then, the minimum value of the multiple second distances can be determined as the minimum distance of any pixel point.

[0113] Furthermore, since the minimum distance between a pixel point and any other pixel point with a higher local density is determined as the minimum distance of the pixel point, a basic condition can be provided for subsequently determining a more accurate cluster center point.

[0114] In a possible implementation, in order to further improve the stability and efficiency of liquid crystal panel defect detection, in an embodiment of the present application, when determining multiple cluster center points based on the weights of each pixel point, first, the pixel points can be arranged in descending order according to the weights of each pixel point to obtain a second sorting sequence; then, the critical pixel point corresponding to the maximum slope change can be determined based on the slope change trend corresponding to the second sorting sequence; finally, the multiple pixel points before the critical pixel point in the second sorting sequence can be determined as cluster center points.

[0115] Furthermore, since only pixels with both high local density and small distance are considered as cluster centers, the accuracy of obtaining the region of interest can be greatly improved. In addition, since the critical center of the cluster is determined based on the trend of the weight slope change, it can not only provide a clear standard for selecting the cluster center, but also provide a more ideal clustering effect for data sets with uneven density, thereby further improving the accuracy of obtaining the region of interest.

[0116] In a possible implementation, after processing different types of regions of interest and obtaining corresponding results, these results can also be summarized to obtain different detection results. Of course, in order to facilitate the staff to deal with edge defects in a timely manner, when it is determined that there are real edge defects in the suspected defect area, an alarm can also be issued to the staff, and the corresponding panel acquisition image and the location coordinates of the edge defects and other information can be pushed to the staff.

[0117] To summarize, in the embodiments of the present application, for any edge region, whether there is a defect in the edge region is determined based on the distance between each edge point of the edge region and the fitted edge straight line of the edge region, that is, whether the edge contour of the liquid crystal panel is defective is determined through "quantitative measurement". Therefore, compared with the prior art that requires "artificial visual inspection" to perform defect detection, the present application can obviously greatly improve the stability and efficiency of liquid crystal panel defect detection.

[0118] Based on the same inventive concept, the present application embodiment provides a panel edge defect detection device 30, such as Figure 3 As shown, the panel edge defect detection device 30 includes:

[0119] An image acquisition unit 301 is used to acquire an image of the liquid crystal panel to be inspected and obtain a panel acquisition image;

[0120] The region of interest acquisition unit 302 is used to acquire multiple regions of interest from the panel captured image; wherein the regions of interest include edge regions;

[0121] A fitting edge straight line obtaining unit 303 is used to obtain fitting edge straight lines corresponding to each of the plurality of edge regions;

[0122] The defect determination unit 304 is used to determine whether any edge region has a defect according to the distance between each edge point of any edge region and a fitting edge straight line of any edge region.

[0123] In one implementation, the fitting edge straight line obtaining unit 303 is further used for:

[0124] For any edge region, edge points are extracted using a line scanning method at a certain interval to obtain a first edge point set for any edge region;

[0125] Screen outliers on the first edge point set to obtain a second edge point set;

[0126] Each edge point in the second edge point set is fitted to obtain a fitting edge straight line corresponding to any edge region.

[0127] In one implementation, the defect determination unit 304 is further configured to:

[0128] For any edge region, calculate the distance between each edge point of any edge region and the fitted edge straight line of any edge region to obtain the distance corresponding to each edge point;

[0129] Determine a plurality of edge points whose distance is greater than a preset distance threshold;

[0130] Among the plurality of edge points, determining whether the number of continuous edge points is greater than a preset number threshold;

[0131] If it is determined that the number of continuous edge points is greater than a preset number threshold, it is determined that any edge region has a defect.

[0132] In one implementation, the defect determination unit 304 is further configured to:

[0133] For any edge region, calculate the distance between each edge point of any edge region and the fitted edge straight line of any edge region to obtain the distance corresponding to each edge point;

[0134] Determine a plurality of edge points whose distance is greater than a preset distance threshold;

[0135] According to multiple edge points, multiple defect areas are obtained;

[0136] If it is determined that any defect area is greater than a preset area threshold, it is determined that any edge region has a defect.

[0137] In one implementation, the panel edge defect detection device 30 further includes an edge grinding width determination unit 305, which is used to:

[0138] For any edge grinding area, use line scanning method and extract edge grinding points at a certain interval to obtain the coordinate points entering and leaving any edge grinding area respectively;

[0139] The edge grinding width of the liquid crystal panel is determined according to the coordinate points entering and leaving any edge grinding area.

[0140] In one implementation, the panel edge defect detection device 30 further includes a chamfer length and width acquisition unit 306, which is used to:

[0141] For any two adjacent edge regions of the liquid crystal panel, a line scanning method is used for any two edge regions to obtain a plurality of common points of any two edge regions;

[0142] Screen outliers on multiple common points to obtain a chamfer point set of the chamfer area between any two edge areas;

[0143] Get the length and width information of the chamfered area based on the minimum enclosing rectangle of the chamfered point set.

[0144] In one implementation, the region of interest obtaining unit 302 is further configured to:

[0145] Get the pixel point set of the panel acquisition image;

[0146] Arrange the pixels in the pixel point set in ascending order according to the distance between any two pixels in the pixel point set to obtain a first sorting sequence;

[0147] Calculate the local density of each pixel according to the first sorting sequence;

[0148] According to the local density of each pixel, the minimum distance of each pixel is calculated;

[0149] For any pixel point, the local density of any pixel point and the minimum distance are normalized and then multiplied to obtain the weight of any pixel point;

[0150] According to the weight of each pixel point, multiple cluster center points are determined;

[0151] According to the size of the local density, the remaining pixel points in the first sorting sequence except for a plurality of cluster center points are allocated to the cluster where the nearest cluster center point is located, so as to obtain a plurality of regions of interest.

[0152] In one implementation, the region of interest obtaining unit 302 is further configured to:

[0153] For any pixel point in the pixel point set, calculate the distance between all pixel points in the pixel point set except any pixel point and any pixel point to obtain multiple first distances;

[0154] Adding multiple first distances to obtain a total distance of any pixel point;

[0155] According to the total distance of each pixel point, each pixel point is arranged in ascending order to obtain a first sorting sequence.

[0156] In one implementation, the region of interest obtaining unit 302 is further configured to:

[0157] For any pixel point in the first sorting sequence, calculate the distance between any pixel point and all pixel points in the first sorting sequence whose local density is higher than that of any pixel point, to obtain a plurality of second distances;

[0158] The minimum value among the multiple second distances is determined as the minimum distance of any pixel point.

[0159] In one implementation, the region of interest obtaining unit 302 is further configured to:

[0160] Arrange the pixels in descending order according to their weights to obtain a second sorting sequence;

[0161] According to the slope change trend corresponding to the second sorting sequence, a critical pixel point corresponding to the maximum slope change is determined;

[0162] A plurality of pixel points before the critical pixel point in the second sorting sequence are determined as cluster center points.

[0163] The panel edge defect detection device 30 can be used to perform Figure 2 The method executed in the embodiment shown in FIG. 1 is a method for detecting panel edge defects in a panel. Therefore, the functions that can be realized by each functional module of the panel edge defect detection device 30 can be referred to. Figure 2 The description of the illustrated embodiment is not repeated in detail.

[0164] In some possible implementations, various aspects of the method provided in the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of the method according to various exemplary embodiments of the present application described above in this specification. For example, the computer device may execute the following steps: Figure 2 The method performed in the illustrated embodiment.

[0165] Those skilled in the art can understand that all or part of the steps of the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above method embodiment are executed; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk. Alternatively, if the above integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. And the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disk or optical disk.

[0166] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0167] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A panel edge defect detection method, characterized in that: The method comprises: Capture an image of the liquid crystal panel to be inspected, and obtain a panel capture image; Acquire multiple regions of interest from the panel captured image; wherein the regions of interest include edge regions, edge grinding regions, and chamfer regions; For any edge grinding area, edge grinding points are extracted at a certain interval using a line scanning method to obtain coordinate points entering and leaving any edge grinding area respectively; and the edge grinding width of the liquid crystal panel is determined according to the coordinate points entering and leaving any edge grinding area; For any two adjacent edge regions of the liquid crystal panel, a line scanning method is used for the any two edge regions to obtain a plurality of common points of the any two edge regions; outlier point screening is performed on the multiple common points to obtain a chamfer point set of the chamfer region between the any two edge regions; and length and width information of the chamfer region is obtained according to a minimum circumscribed rectangle of the chamfer point set; Obtaining a plurality of fitted edge straight lines corresponding to the edge regions; For any edge region, whether any edge region has a defect is determined according to the distance between each edge point of the any edge region and a fitting edge straight line of the any edge region.

2. The method according to claim 1, characterized in that The step of obtaining the fitted edge straight lines corresponding to each of the plurality of edge regions comprises: For any edge region, edge points are extracted at certain intervals using a line scanning method to obtain a first edge point set for the any edge region; Screening outliers on the first edge point set to obtain a second edge point set; Fitting is performed on each edge point in the second edge point set to obtain a fitting edge straight line corresponding to any edge region.

3. The method according to claim 1, characterized in that The step of determining, for any edge region, whether any edge region has a defect according to the distance between each edge point of the edge region and the fitted edge straight line of the edge region comprises: For any edge region, calculate the distance between each edge point of the any edge region and the fitted edge straight line of the any edge region to obtain the distance corresponding to each edge point; Determine a plurality of edge points whose distance is greater than a preset distance threshold; Among the plurality of edge points, determining whether the number of continuous edge points is greater than a preset number threshold; If it is determined that the number of continuous edge points is greater than a preset number threshold, it is determined that any of the edge regions has a defect.

4. The method according to claim 1, characterized in that The step of determining, for any edge region, whether any edge region has a defect according to the distance between each edge point of the edge region and the fitted edge straight line of the edge region comprises: For any edge region, calculate the distance between each edge point of the any edge region and the fitted edge straight line of the any edge region to obtain the distance corresponding to each edge point; Determine a plurality of edge points whose distance is greater than a preset distance threshold; Obtaining multiple defect areas according to the multiple edge points; If it is determined that any defect area is greater than a preset area threshold, it is determined that any edge region has a defect.

5. The method according to claim 1, characterized in that The step of acquiring a region of interest from the panel captured image comprises: Acquire a pixel point set of the panel captured image; Arrange the pixels in the pixel point set in ascending order according to the distance between any two pixels in the pixel point set to obtain a first sorting sequence; Calculating the local density of each pixel according to the first sorting sequence; Calculating the minimum distance between each pixel point according to the local density of each pixel point; For any pixel point, normalize the local density of the pixel point and the minimum distance and then multiply them to obtain the weight of the pixel point; Determine a plurality of cluster center points according to the weights of the respective pixel points; According to the size of the local density, the remaining pixel points in the first sorting sequence except the multiple cluster center points are allocated to the cluster where the nearest cluster center point is located, so as to obtain the multiple regions of interest.

6. The method according to claim 5, characterized in that The step of arranging the pixels in the pixel point set in ascending order according to the distance between any two pixels in the pixel point set to obtain a first sorting sequence comprises: For any pixel point in the pixel point set, calculate the distances between all pixel points in the pixel point set except the any pixel point and the any pixel point to obtain a plurality of first distances; Adding the multiple first distances to obtain a total distance of any pixel point; According to the total distance of each pixel point, the pixel points are arranged in ascending order to obtain the first sorting sequence.

7. The method according to claim 5, characterized in that The step of calculating the minimum distance of each pixel point according to the local density of each pixel point comprises: For any pixel point in the first sorting sequence, calculate the distance between the any pixel point and all pixel points in the first sorting sequence whose local density is higher than that of the any pixel point, to obtain a plurality of second distances; The minimum value among the multiple second distances is determined as the minimum distance of any pixel point.

8. The method according to claim 5, characterized in that The step of determining a plurality of cluster center points according to the weights of the respective pixel points comprises: Arrange the pixel points in descending order according to the weights of the pixel points to obtain a second sorting sequence; Determining a critical pixel point corresponding to a maximum slope change according to a slope change trend corresponding to the second sorting sequence; A plurality of pixel points before the critical pixel point in the second sorting sequence are determined as cluster center points.

9. A panel edge defect detection device, characterized in that: The device comprises: An image acquisition unit is used to acquire an image of the liquid crystal panel to be inspected and obtain an image of the panel; An area of ​​interest acquisition unit, used to acquire multiple areas of interest from the panel captured image; wherein the areas of interest include edge areas, edge grinding areas and chamfer areas; An edge grinding width determination unit is used to extract edge grinding points at a certain interval using a line scanning method for any edge grinding area, and obtain the coordinate points entering and leaving any edge grinding area respectively; and determine the edge grinding width of the liquid crystal panel according to the coordinate points entering and leaving any edge grinding area; A chamfer length and width acquisition unit is used to obtain a plurality of common points of any two adjacent edge regions of the liquid crystal panel by using a line scanning method for the any two edge regions; perform outlier screening on the multiple common points to obtain a chamfer point set of the chamfer region between the any two edge regions; and obtain the length and width information of the chamfer region according to the minimum circumscribed rectangle of the chamfer point set; A fitting edge straight line acquisition unit, used to acquire a plurality of fitting edge straight lines corresponding to the edge regions; The defect determination unit is used to determine, for any edge region, whether there is a defect in the any edge region according to the distance between each edge point of the any edge region and the fitted edge straight line of the any edge region.

10. An electronic device, characterized in that: The device comprises: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute any method according to claims 1-8 according to the obtained program instructions.

11. A storage medium, characterized in that: The storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute any one of the methods of claims 1-8.