A method for analyzing appearance defects of an LCD
By calculating the set of intersection points on the LCD image and performing smoothing processing, theoretical edge regions are identified, solving the problem of inaccurate detection caused by the variability of LCD grinding edges, and improving the applicability and accuracy of the detection algorithm.
Patent Information
- Application Number
- CN202411352211.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-09-26
AI Technical Summary
In the prior art, the variability of the polished edge area of LCD leads to inaccurate visual defect detection, resulting in misjudgment or missed judgment, which affects product quality.
By uniformly setting rays on the LCD image, calculating the intersection points to form a set of starting and ending points, filtering and reconstructing, using quadratic B-spline interpolation for smoothing, calculating the theoretical edge region, and performing intersection calculations with low-brightness regions to identify defect areas.
It enables accurate identification of grinding defect areas in different LCD products, improves the applicability and accuracy of the detection algorithm, and reduces manual intervention.
Smart Images

Figure CN119205830B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of LCD polishing defect detection technology, and specifically to a method for analyzing appearance defects in LCD polishing areas. Background Technology
[0002] During the production of LCD displays, environmental factors often lead to process and quality issues, resulting in defects and flaws in the product's appearance. Currently, machine vision is used to analyze these defects and flaws in order to identify them. Machine vision inspection uses images as the target to be inspected and as a means or carrier for signal transmission, extracting useful information from the images.
[0003] Screen defects occur due to manufacturing processes, such as the grinding process. Factors during grinding can cause defects to occur near the ground edge, such as shell-like defects or breakage. The characteristics of these defects are: a. they occur near the ground edge; b. the size of the ground boundary area is variable. Feature b, in particular, leads to the lack of a clear positioning benchmark in visual analysis, resulting in the variability of the analysis area. In actual inspection, features that are not defects are often identified as defects, requiring more people to manually determine them. Conversely, defects may be identified as normal products, leading to product risks. Summary of the Invention
[0004] To address the aforementioned shortcomings in the prior art, this invention provides a method for detecting appearance defects in the polished area of an LCD, which solves the problem that visual defect areas cannot be accurately detected due to the variable nature of the polished edge area of the screen.
[0005] A method for analyzing LCD appearance defects includes the following steps:
[0006] Step S1: Acquire the LCD image to be detected;
[0007] Step S2: Sampling the polishing area: Starting from one corner of the LCD image, draw n rays evenly. The rays intersect with the outer and inner contours of the LCD polishing area to obtain 2N intersection points. The intersection points of the rays and the outer contour form a set to obtain the starting point set {S(x t ,y t )} t=1 n ={S(x1,y1),S(x2,y2),...,S(x t ,y t ),...,S(x n ,y n The intersection points of the ray and the inner contour form a set of termination points {E(x1,y1),E(x2,y2),...,E(x...}, where E(x1,y1),E(x2,y2),...,E(x...}. n,y n )}, where S(x n ,y n E(x) represents the coordinates of the intersection point of the ray and the outer contour. n ,y n () represents the coordinates of the intersection point of the ray and the inner contour;
[0008] Step S3: Filter and reconstruct the sampled data. The specific steps are as follows:
[0009] S31: Calculate the distances between the starting and ending points DIST sequentially. t If the distance is less than the limit distance DIST max If yes, it is recorded as a passed sample; otherwise, it is recorded as a deviation sample.
[0010] S32: Calculate the average distance through the starting and ending points of the sample:
[0011]
[0012] S33: Iterate through the off-samples sequentially, using the starting point of the off-sample as the base point, and the average distance to DIST. avg Given the length, and taking the direction of deviation from the sample's termination point as the direction, the corrected termination point is calculated;
[0013] S33: Add the corrected deviation samples to the through samples to obtain the corrected set of starting points and set of ending points, which together form the edge sample data;
[0014] Step S4: Calculate the edge sample data into edge regions: Smooth the start point set and the end point set respectively to obtain the start contour line and the end contour line, and then perform closed loop processing on the start contour line and the end contour line to obtain the theoretical edge region.
[0015] Step S5: Enclose the theoretical edge region towards the starting point to obtain the defect occurrence region;
[0016] Step S6: Extract the low brightness value area on the LCD image, calculate the area located in the low brightness value area and intersecting with the theoretical edge area to obtain the actual grinding area;
[0017] Step S7: Perform an intersection operation on the actual grinding area and the defect occurrence area to obtain the defect area. If the defect area does not exist, it means that there is no grinding defect. If the defect area exists, calculate the area and location information of the defect based on the defect area.
[0018] Preferably, the smoothing process in step S4 is quadratic B-spline interpolation.
[0019] Preferably, in step S2, the number of rays n>=16.
[0020] The beneficial effects of the present invention are as follows: When detecting appearance defects in the polished area of an LCD, the present invention first calculates and analyzes the theoretical edge area, compares the theoretical edge area with the actual polished area, and accurately obtains the defect occurrence area. No matter how the polished edge area changes, the polished edge area can be automatically identified, making the algorithm applicable to different LCD products and improving the applicability and accuracy of the detection algorithm. Attached Figure Description
[0021] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0022] Figure 1 This is a schematic diagram of the LCD appearance defect analysis algorithm based on multi-line scan image acquisition in this invention;
[0023] Figure 2 This is a schematic diagram of sampling normal and defective samples;
[0024] Figure 3 These are schematic diagrams of simulated contours of normal and defective samples;
[0025] Figure 4 This is a schematic diagram of the simulated areas of normal and defective samples;
[0026] Figure 5 This is a schematic diagram of the areas enclosed in brackets for normal and defective samples;
[0027] Figure 6 These are schematic diagrams of the actual outlines of normal and defective samples;
[0028] Figure 7 This is a schematic diagram of the defect areas in normal and defective samples. Detailed Implementation
[0029] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the solutions in the embodiments of the present invention are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0030] It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other, as long as there is no conflict between the combinations.
[0031] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, but this is not intended to limit the invention. Figure 1 As shown, a method for analyzing appearance defects in the polished area of an LCD includes the following steps:
[0032] Step S1: Acquire the LCD image to be detected;
[0033] Step S2: Sample the grinding area: such as Figure 2 As shown, starting from one corner of the LCD image, at least 16 rays are uniformly drawn within a range of 8° to 82°. These rays intersect the outer and inner contours of the LCD polishing area to obtain 2N intersection points. The intersection points of the rays with the outer contour form a set, which is the set of starting points {S(x... t ,y t )} t=1 n ={S(x1,y1),S(x2,y2),...,S(x t ,y t ),...,S(x n ,y n The intersection points of the ray and the inner contour form a set of termination points {E(x1,y1),E(x2,y2),...,E(x...}, where E(x1,y1),E(x2,y2),...,E(x...}. n ,y n )}, where S(x n ,y n E(x) represents the coordinates of the intersection point of the ray and the outer contour. n ,y n () represents the coordinates of the intersection point of the ray and the inner contour;
[0034] Step S3: Filter and reconstruct the sampled data. The specific steps are as follows:
[0035] S31: Calculate the starting point S(x) sequentially. t ,y t ) and termination point E(x) n ,y n The distance of DIST t ,
[0036] If the distance is less than the limit distance DIST max If yes, it is recorded as a passed sample; otherwise, it is recorded as a deviation sample.
[0037] S32: Calculate the average distance through the starting and ending points of the sample:
[0038]
[0039] S33: Iterate through the deviation samples sequentially, using the starting point of the deviation sample as the base point S(x). t ,y t ), with average distance from DIST avg Using the length as the direction of the deviation from the sample's termination point, the corrected termination point E'(x) is calculated. n ,y n );
[0040] S33: Add the corrected deviation samples to the through samples to obtain the corrected set of starting points and set of ending points, which together form the edge sample data;
[0041] Step S4: Calculate the edge sample data into edge regions: such as Figure 3 , Figure 4 As shown, continuous quadratic B-spline interpolation smoothing is performed on the starting point set and the ending point set respectively to obtain the starting contour line and the ending contour line. Then, the starting contour line and the ending contour line are closed-loop processed to obtain the theoretical edge region.
[0042] The smoothing process of quadratic B-spline interpolation avoids the influence of contour variability on the analysis of the final result, approximating and creating the theoretical edge region. The essence of interpolation is to use the values of surrounding points to calculate the value of the interpolation point. As shown in the figure below, the value of the red point is known, and the value of the black point is unknown. Therefore, using a certain algorithm, the value of the black point is calculated using the values of the surrounding red points; this is interpolation.
[0043] Step S5, as follows Figure 5 As shown, the theoretical edge region is enclosed towards the starting point to obtain the defect occurrence region;
[0044] Step S6, as follows Figure 6 As shown, the low-brightness value area on the LCD image is extracted, and the area located in the low-brightness value area and intersecting with the theoretical edge area is calculated to obtain the actual grinding area;
[0045] Step S7, as follows Figure 7 As shown, the defect area is obtained by intersecting the actual grinding area and the defect occurrence area. If the defect area does not exist, it means that there is no grinding defect. If the defect area exists, the area and location information of the defect are calculated based on the defect area.
[0046] To address the problem of inaccurate detection of visual defects caused by the variable grinding edge area of the screen, this invention first calculates and analyzes the theoretical edge area when detecting appearance defects in the grinding area of an LCD. By comparing the theoretical edge area with the actual grinding area, the defect location can be accurately determined. Regardless of how the grinding edge area changes, the grinding edge area can be automatically identified, making this algorithm applicable to different LCD products and improving the applicability and accuracy of the detection algorithm.
[0047] The foregoing has shown and described the main features and advantages of the present invention. It will be apparent to those skilled in the art that the invention is limited to the details of the exemplary embodiments described above, and that the invention can be implemented in other specific forms without departing from its spirit or essential characteristics. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, it is intended that all variations falling within the meaning and scope of equivalents of the claims be included within the present invention.
Claims
1. A method for analyzing appearance defects in LCDs, characterized in that, Includes the following steps: Step S1: Acquire the LCD image to be detected; Step S2: Sampling the polishing area: Starting from one corner of the LCD image, draw n rays evenly. The rays intersect with the outer and inner contours of the LCD polishing area to obtain 2N intersection points. The intersection points of the rays and the outer contour form a set to obtain the starting point set {S(x t ,y t )} t=1 n ={S(x1,y1),S(x2,y2),...,S(x t ,y t ),...,S(x n ,y n The intersection points of the ray and the inner contour form a set of termination points {E(x1,y1),E(x2,y2),...,E(x...}, where E(x1,y1),E(x2,y2),...,E(x...}. n ,y n )}, where S(x n ,y n E(x) represents the coordinates of the intersection point of the ray and the outer contour. n ,y n () represents the coordinates of the intersection point of the ray and the inner contour; Step S3: Filter and reconstruct the sampled data. The specific steps are as follows: S31: Calculate the distances between the starting and ending points DIST sequentially. t If the distance is less than the limit distance DIST max If yes, it is recorded as a passed sample; otherwise, it is recorded as a deviation sample. S32: Calculate the average distance through the starting and ending points of the sample: S33: Iterate through the off-samples sequentially, using the starting point of the off-sample as the base point, and the average distance to DIST. avg Given the length, and taking the direction of deviation from the sample's termination point as the direction, the corrected termination point is calculated; S33: Add the corrected deviation samples to the through samples to obtain the corrected set of starting points and set of ending points, which together form the edge sample data; Step S4: Calculate the edge sample data into edge regions: Smooth the start point set and the end point set respectively to obtain the start contour line and the end contour line, and then perform closed loop processing on the start contour line and the end contour line to obtain the theoretical edge region. Step S5: Enclose the theoretical edge region towards the starting point to obtain the defect occurrence region; Step S6: Extract the low brightness value area on the LCD image, calculate the area located in the low brightness value area and intersecting with the theoretical edge area to obtain the actual grinding area; Step S7: Perform an intersection operation on the actual grinding area and the defect occurrence area to obtain the defect area. If the defect area does not exist, it means that there is no grinding defect. If the defect area exists, calculate the area and location information of the defect based on the defect area.
2. The method for analyzing LCD appearance defects according to claim 1, characterized in that, The smoothing process in step S4 is quadratic B-spline interpolation.
3. The method for analyzing LCD appearance defects according to claim 1, characterized in that, In step S2, the number of rays n>=16.
Citation Information
Patent Citations
Liquid crystal screen appearance detection method
CN110533657A
Mobile phone cover plate glass defect detection method based on machine vision
CN112630222A
