Alignment method, compensation method, system and readable storage medium for display panel

Through the method of aligning the display panel, cutting the image to obtain the vertex coordinate group and combining it with the right-angle matching template, the problem of inaccurate alignment of the chamfered panel is solved, and the alignment accuracy and brightness compensation effect are improved.

CN113077478BActive Publication Date: 2024-09-06SUZHOU HUAXING YUANCHUANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110308579.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-23
Publication Date
2024-09-06
Estimated Expiration
2041-03-23

AI Technical Summary

Technical Problem

When aligning display panels with the existing technology, especially panels with chamfers, it is difficult to accurately determine the vertex position, resulting in inaccurate alignment and affecting the compensation effect.

Method used

By cutting the target image along the horizontal and vertical directions, the vertex coordinate sets of the first and second rectangular images are obtained, and combined with the right-angle matching template, the outer contour of the target image is accurately located and the alignment accuracy is improved.

Benefits of technology

The alignment accuracy is significantly improved, especially the vertex position matching accuracy of the chamfered panel, and the accuracy of brightness compensation is enhanced, thereby improving the testing and compensation effects of the display panel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113077478B
    Figure CN113077478B
Patent Text Reader

Abstract

The present invention discloses a display panel alignment method, compensation method, system and readable storage medium, the alignment method comprising the steps of: obtaining a target image displayed by a display panel to be detected; cutting off the corners on the target image in the horizontal direction to obtain a first rectangular image; cutting off the corners on the target image in the vertical direction to obtain a second rectangular image; obtaining a first vertex coordinate group of the first rectangular image and a second vertex coordinate group of the second rectangular image; obtaining an actual vertex coordinate group of the target image according to the first vertex coordinate group and the second vertex coordinate group; and aligning the outer contour of the target image according to the actual vertex coordinate group. The alignment method of the present invention can improve the alignment accuracy of the display panel to be detected to meet higher testing requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of display panel detection, and in particular to an alignment method, a compensation method, a system and a readable storage medium for a display panel. Background Art

[0002] Display panels need to undergo display testing before leaving the factory to compensate for defects such as uneven display.

[0003] In actual operation, before compensating the display panel, it is necessary to first obtain the image to be detected displayed on the display panel, and then compensate for the defects through image processing. The existing technology generally aligns the outer contour of the image to be detected through a straight line detection method, but this method can only obtain an approximate contour area, and there may be a deviation of several pixels. If the four top corners of the display panel are right angles, some simple algorithms can be added to determine whether the calculated position is consistent with the actual position. However, when the four top corners of the display panel are chamfered, because there is no data at the vertices calculated by the algorithm, it is not easy to make judgments and optimizations.

[0004] In view of this, it is necessary to improve the existing outer contour alignment method to solve the above problems. Summary of the invention

[0005] An object of the present invention is to provide a display panel alignment method, a compensation method, a system and a readable storage medium, which can improve the alignment accuracy to meet higher testing requirements.

[0006] To achieve one of the above-mentioned purposes of the invention, an embodiment of the present invention provides a method for aligning a display panel, comprising the steps of:

[0007] Acquire a target image displayed by the display panel to be detected;

[0008] Cutting off the corners of the target image in the horizontal direction to obtain a first rectangular image;

[0009] Cutting off the corners of the target image along the vertical direction to obtain a second rectangular image;

[0010] Acquire a first vertex coordinate group of the first rectangular image and a second vertex coordinate group of the second rectangular image;

[0011] Obtaining an actual vertex coordinate group of the target image according to the first vertex coordinate group and the second vertex coordinate group;

[0012] The outer contour of the target image is aligned according to the actual vertex coordinate group.

[0013] As a further improvement of an embodiment of the present invention, the step of “cutting off the corners on the target image in the horizontal direction to obtain a first rectangular image; cutting off the corners on the target image in the vertical direction to obtain a second rectangular image” specifically includes:

[0014] Acquire a first cutting line extending in a horizontal direction and a second cutting line extending in a vertical direction according to a proportional relationship between the corner and the target image, wherein the first cutting line and the second cutting line are both separated from the corner;

[0015] Cutting the target image along the first cutting line to obtain a first rectangular image;

[0016] The target image is cut along the second cutting line to obtain a second rectangular image.

[0017] As a further improvement of an embodiment of the present invention, the step of “cutting off the corners on the target image in the horizontal direction to obtain a first rectangular image; cutting off the corners on the target image in the vertical direction to obtain a second rectangular image” specifically includes:

[0018] According to the proportional relationship between the corner and the target image, two first cutting lines extending in the horizontal direction and two second cutting lines extending in the vertical direction are obtained, wherein the two first cutting lines are respectively located on both sides of the horizontal center line of the target image, and the two second cutting lines are respectively located on both sides of the vertical center line of the target image, and the first cutting lines and the second cutting lines are separated from the corner;

[0019] Cutting the target image along two first cutting lines to obtain a first rectangular image;

[0020] The target image is cut along two second cutting lines to obtain a second rectangular image.

[0021] As a further improvement of an embodiment of the present invention, the step of "obtaining a first cutting line extending in the horizontal direction and a second cutting line extending in the vertical direction according to a proportional relationship between the corner and the target image" specifically includes:

[0022] Obtaining a local pixel range of the corner in the target image according to the overall pixel range of the target image and the size ratio between the corner and the display panel to be detected, wherein the local pixel range includes a horizontal pixel range in the horizontal direction and a vertical pixel range in the vertical direction;

[0023] Acquire a first cutting line extending in the horizontal direction according to the vertical pixel range;

[0024] A second cutting line extending along the vertical direction is acquired according to the horizontal pixel range.

[0025] As a further improvement of an embodiment of the present invention, the step of "obtaining a first vertex coordinate group of the first rectangular image and a second vertex coordinate group of the second rectangular image" specifically includes:

[0026] Matching the first rectangular image with a rectangular matching template, and obtaining a first vertex coordinate group of the first rectangular image according to a template matching function;

[0027] The second rectangular image and the rectangular matching template are matched, and a second vertex coordinate group of the second rectangular image is obtained according to a template matching function.

[0028] As a further improvement of an embodiment of the present invention, the step of “obtaining a target image displayed by the display panel to be detected” specifically includes:

[0029] Acquire the image to be detected displayed by the display panel to be detected;

[0030] Binarizing the image to be detected to obtain an initial image;

[0031] Acquire the outer contour of the initial image by an edge detection method;

[0032] Acquire a current vertex coordinate group of the initial image by a straight line detection method;

[0033] The target image is obtained by correcting the initial image through a transmission transformation method and the current vertex coordinate group.

[0034] As a further improvement of an embodiment of the present invention, the step of "obtaining the target image displayed by the display panel to be detected" further includes the following steps:

[0035] The outer contour of the target image is preliminarily aligned by a straight line detection method to obtain an initial vertex coordinate group of the target image.

[0036] As a further improvement of an embodiment of the present invention, the step of “aligning the outer contour of the target image according to the actual vertex coordinate group” specifically includes:

[0037] The outer contour of the target image is realigned according to the deviation between the actual vertex coordinate group and the initial vertex coordinate group.

[0038] To achieve one of the above-mentioned purposes of the invention, an embodiment of the present invention provides a compensation method for a display panel, comprising the steps of:

[0039] Acquire the outer contour of the target image according to the alignment method described in any one of the above technical solutions;

[0040] Brightness compensation is performed on the target image according to the brightness compensation data.

[0041] To achieve one of the above-mentioned purposes of the invention, one embodiment of the present invention provides a compensation system for a display panel, the compensation system comprising a memory and a processor, the memory storing a computer program that can be run on the processor, and when the processor executes the computer program, it implements the steps in the alignment method of the display panel described in any one of the above technical solutions, and implements the steps in the compensation method of the display panel described above.

[0042] To achieve one of the above-mentioned purposes of the invention, one embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the alignment method of the display panel as described in any one of the above technical solutions are implemented, as well as the steps in the compensation method of the display panel as described above are implemented.

[0043] Compared with the prior art, the beneficial effect of an embodiment of the present invention is that the accuracy of the actual vertex coordinate group of the target image obtained according to the first vertex coordinate group and the second vertex coordinate group in an embodiment of the present invention can be greatly improved, and then the outer contour of the target image obtained by aligning the actual vertex coordinate group is also accurately matched with the actual outer contour of the target image, which can solve the problem of inaccurate alignment in the prior art, especially when the corners are chamfers around the display panel, it can solve the problem of the calculated position and the actual position of the display panel with chamfers due to alignment deviation. The alignment method of this embodiment can improve the alignment accuracy of the display panel to be tested to meet higher testing requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 is a step diagram of a method for aligning a display panel with a chamfer according to an embodiment of the present invention;

[0045] Figure 2 is a step diagram of a compensation method for a display panel according to an embodiment of the present invention;

[0046] Figure 3 is a schematic diagram of a target image according to an embodiment of the present invention;

[0047] Figure 4 is a schematic diagram of a first rectangular image obtained by cutting according to an embodiment of the present invention, wherein the shaded portion is the portion that is cut off;

[0048] Figure 5 is a schematic diagram of a second rectangular image obtained by cutting according to an embodiment of the present invention, wherein the shaded portion is the portion that is cut off;

[0049] Figure 6 is a schematic diagram of a right-angle matching template according to an embodiment of the present invention;

[0050] Figure 7 is a schematic diagram of a matching result obtained by using a template matching function in one embodiment of the present invention;

[0051] Figure 8 is a schematic diagram of the display effect of an uncompensated display panel to be tested according to an embodiment of the present invention;

[0052] Fig. 9 It is a schematic diagram of the Demura compensation effect after being processed by the alignment method of the prior art;

[0053] Fig.10 is a schematic diagram of the Demura compensation effect after being processed by the alignment method of the present invention;

[0054] Fig.11 is a block diagram of a processor according to an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The present invention will be described in detail below in conjunction with the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional changes made by a person skilled in the art based on these embodiments are all within the scope of protection of the present invention.

[0056] refer to Figure 1 , is a display panel alignment method according to an embodiment of the present invention, comprising the steps of:

[0057] S100: Acquire a target image displayed by a display panel to be detected;

[0058] S102: cutting off the corners of the target image along the horizontal direction to obtain a first rectangular image;

[0059] S104: cutting off the corners of the target image along the vertical direction to obtain a second rectangular image;

[0060] S106: Acquire a first vertex coordinate group of the first rectangular image and a second vertex coordinate group of the second rectangular image;

[0061] S108: Obtaining an actual vertex coordinate group of the target image according to the first vertex coordinate group and the second vertex coordinate group;

[0062] S110: Aligning the outer contour of the target image according to the actual vertex coordinate group.

[0063] The alignment method of this embodiment is mainly aimed at the situation where the corners are chamfered on all sides of the display panel. For example, the four top corners of the display panel are all chamfered, that is, the four top corners of the display panel are all curved structures. At this time, the target image displayed by the display panel to be detected is also a roughly rectangular figure with chamfered corners.

[0064] Of course, it is understandable that the alignment method of this embodiment can also be applied to the alignment process of other display panels, for example, when the four vertex angles of the display panel are right angles.

[0065] In addition, it is defined that the extending direction of the long side of the target image is the horizontal direction, and the extending direction of the short side of the target image is the vertical direction.

[0066] Here, "cutting off the corners on the target image along the horizontal direction to obtain a first rectangular image" means that the cutting line at this time extends in the horizontal direction and passes through the target image. The cutting line can cut off at least part of the corners, and the cutting line does not cut off the straight edges extending in the vertical direction in the target image. The obtained first rectangular image has at least two adjacent vertex angles that are right angles. At this time, due to the existence of the right angle, the first vertex coordinate group of the first rectangular image can be accurately obtained.

[0067] Similarly, "cutting off the corners on the target image along the vertical direction to obtain a second rectangular image" means that the cutting line at this time extends in the vertical direction and passes through the target image. The cutting line can cut off at least part of the corners, and the cutting line does not cut off the straight edges extending in the horizontal direction in the target image. The obtained second rectangular image has at least two adjacent vertex angles that are right angles. At this time, due to the existence of the right angle, the second vertex coordinate group of the second rectangular image can be accurately obtained.

[0068] It can be understood that since the extension lines of two adjacent straight edges of the target image are perpendicular to each other, the coordinates of the intersection of the extension lines of the two adjacent straight edges can be obtained by integrating the coordinate information of the first vertex coordinate group and the second vertex coordinate group, and the coordinates of the intersection of the extension lines of the two adjacent straight edges are the actual vertex coordinate group of the target image.

[0069] In this embodiment, the accuracy of the actual vertex coordinate group of the target image obtained according to the first vertex coordinate group and the second vertex coordinate group can be greatly improved, and then the outer contour of the target image obtained by aligning the actual vertex coordinate group is also accurately matched with the actual outer contour of the target image (here it means that the straight edge of the target image obtained by aligning the actual vertex coordinate group is accurately matched with the actual straight edge of the target image), which can solve the problem of inaccurate alignment in the prior art, especially when the corners are chamfers around the display panel, it can solve the problem of the calculated position and the actual position of the display panel with corners due to alignment deviation. The alignment method of this embodiment can improve the alignment accuracy of the display panel to be tested to meet higher testing requirements.

[0070] In this embodiment, the above alignment method is taken as an example of alignment processing before demura. Of course, in other embodiments, the above alignment method can also be applied to other application scenarios.

[0071] This embodiment also provides a compensation method for a display panel, combining Figure 2 , including the steps of:

[0072] Acquire the outer contour of the target image according to the alignment method described above;

[0073] Perform brightness compensation on the target image according to the brightness compensation data.

[0074] Specifically, in actual application, the display panel will have uneven brightness (mura) when displaying. There are many shapes of mura, including stripes, clouds, sand, etc., and Demura (brightness unevenness compensation method) is an algorithm to eliminate the mura of the display panel. Before performing Demura, it is necessary to first obtain the brightness data of the display panel to be tested through the CCD device, and then perform algorithm processing. Therefore, accurately intercepting the brightness data of the display panel to be tested from the image to be tested taken by the CCD device is a very important link in the Demura algorithm, which determines the quality of the subsequent compensation effect.

[0075] In this embodiment, the alignment method of cutting the target image to obtain the actual vertex coordinate group can improve the alignment accuracy of the display panel to be inspected, that is, improve the accuracy of the intercepted brightness data, and further improve the Demura compensation effect.

[0076] Next, combine Figures 3 to 7 , each step of the above-mentioned alignment method and compensation method is described in detail, and the corners of the display panel are chamfered at the four corners of the display panel as an example for description.

[0077] Step S100 specifically includes:

[0078] Acquire the image to be detected displayed by the display panel to be detected;

[0079] Here, specifically, the image to be detected is acquired by taking a picture of the lighted display panel to be detected using a CCD device, and the image to be detected includes original brightness data of pixels in the light-emitting area of ​​the display panel to be detected.

[0080] Binarize the image to be detected to obtain an initial image;

[0081] Obtain the outer contour of the initial image by edge detection method;

[0082] Here, the outer contour of the initial image can be obtained by using methods such as the canny edge detection algorithm or the findcontours contour extraction algorithm. The outer contour is roughly a rectangular figure with chamfered corners.

[0083] Obtain the current vertex coordinate group of the initial image through the straight line detection method;

[0084] Here, the Hough line method is used to fit the four straight lines of the initial image, and the straight line equations corresponding to the four straight lines are fitted according to the points on the straight lines, and then the coordinates of the intersections of the two adjacent straight lines in the four straight lines are calculated, specifically including the coordinates of the four intersections, which are the current vertex coordinate group of the initial image.

[0085] The target image is obtained by correcting the initial image through the transmission transformation method and the current vertex coordinate group.

[0086] Here, the initial image is subjected to transmission transformation processing according to the obtained current vertex coordinate group. The principle formula of transmission transformation processing is:

[0087]

[0088] in, is the transformation matrix, the source and target are The transformed target is

[0089] In actual application, due to the distortion in the acquisition process of the image to be detected, the acquired image to be detected will also have certain distortion, so it is necessary to perform distortion correction in advance to obtain the target image. The target image is a standard approximately rectangular figure with chamfers. At this time, the extension lines of the two adjacent straight edges of the target image are perpendicular to each other, and the two adjacent straight edges are connected by chamfers.

[0090] The purpose of this step is to correct the problem that the display panel to be tested is placed at a certain angle, so that the position of the initial image is in the horizontal direction. In addition, since the lens of the CCD device may be distorted when taking pictures, the initial image will appear trapezoidal or other shapes. This step can also correct this distortion. The image obtained after this step is the target image P.

[0091] Combination Figure 3 The target image P is a standard approximately rectangular image with chamfered corners (see Figure 3 solid line area in the figure).

[0092] Specifically, the target image P includes four straight edges L1, L2, L3, L4 and four chamfers A1, A2, A3, A4 connecting adjacent straight edges. The four straight edges L1, L2, L3, L4 and the four chamfers A1, A2, A3, A4 are interconnected to form the outer contour of the target image P.

[0093] Here, the first straight side L1 and the third straight side L3 are the long sides of the target image P, the second straight side L2 and the fourth straight side L4 are the short sides of the target image P, the long sides and the short sides are perpendicular to each other, and the extension direction of the long side of the target image P is defined as the horizontal direction X, and the extension direction of the short side of the target image P is defined as the vertical direction Y.

[0094] The first chamfer A1 connects the first straight side L1 and the fourth straight side L4, the second chamfer A2 connects the fourth straight side L4 and the third straight side L3, the third chamfer A3 connects the third straight side L3 and the second straight side L2, and the fourth chamfer A4 connects the second straight side L2 and the first straight side L1.

[0095] Combination Figure 3 , after step S100, the following steps are also included:

[0096] The outer contour of the target image P is preliminarily aligned using a straight line detection method to obtain an initial vertex coordinate group of the target image P.

[0097] Here, the target image P is re-binarized, and the initial vertex coordinate group of the target image P is obtained after contour extraction and Hough line processing. The initial vertex coordinate group specifically includes the first initial vertex coordinate P0'(x0', y0'), the second initial vertex coordinate P1'(x1', y1'), the third initial vertex coordinate P2'(x2', y2'), and the fourth initial vertex coordinate P3'(x3', y3').

[0098] It should be noted that since the above contour extraction and Hough line processing methods can only obtain an approximate contour area, there may be a deviation of several pixels. Figure 3 Taking the dotted lines L1' and L4' in the figure as an example, there is a certain deviation between the dotted lines L1' and L4' and the actual first straight edge L1 and fourth straight edge L4 of the target image P, resulting in a certain deviation between the first initial vertex coordinates P0' (x0', y0') defined by the intersection of the dotted lines L1' and L4' and the actual coordinates of the intersection of the first straight edge L1 and the fourth straight edge L4. The subsequent steps can compensate for the deviation.

[0099] Combination Figure 4 and Figure 5 Steps S102 and S104 specifically include:

[0100] According to the proportional relationship between the chamfers A1, A2, A3, A4 and the target image P, a first cutting line G1 extending along the horizontal direction X and a second cutting line G2 extending along the vertical direction Y are obtained, and the first cutting line G1 and the second cutting line G2 are separated from the chamfers A1, A2, A3, A4;

[0101] Cut the target image P along the first cutting line G1 to obtain a first rectangular image P1;

[0102] The target image P is cut along the second cutting line G2 to obtain a second rectangular image P2.

[0103] Here, "the first cutting line G1 and the second cutting line G2 are separated from the chamfers A1, A2, A3, and A4" means that the first cutting line G1 and the second cutting line G2 do not pass through the chamfers A1, A2, A3, and A4. At this time, the first cutting line G1 passes through the second straight side L2 and the fourth straight side L4, and the second cutting line G2 passes through the first straight side L1 and the third straight side L3. At this time, the vertex angles of the first rectangular image P1 and the second rectangular image P2 obtained include right angles.

[0104] In this embodiment, continue to combine Figure 3 and Figure 4 , taking the formation of two first cutting lines G1 and two second cutting lines G2 as an example for specific description.

[0105] At this time, steps S102 and S104 specifically include:

[0106] According to the proportional relationship between the chamfers A1, A2, A3, A4 and the target image P, two first cutting lines G1 extending along the horizontal direction X and two second cutting lines G2 extending along the vertical direction Y are obtained, the two first cutting lines G1 are respectively located on both sides of the horizontal center line G01 of the target image P, the two second cutting lines G2 are respectively located on both sides of the vertical center line G02 of the target image P, and the first cutting lines G1 and the second cutting lines G2 are separated from the chamfers A1, A2, A3, A4;

[0107] Cut the target image P along two first cutting lines G1 to obtain a first rectangular image P1;

[0108] The target image P is cut along two second cutting lines G2 to obtain a second rectangular image P2.

[0109] Here, the horizontal center line G01 is defined as a straight line passing through the center point O of the target image P along the horizontal direction X, and the vertical center line G02 is defined as a straight line passing through the center point O of the target image P along the vertical direction Y. The two first cutting lines G1 are respectively located above and below the horizontal center line G01, and the two second cutting lines G2 are respectively located on the left and right side of the vertical center line G02. At this time, the first rectangular image P1 and the second rectangular image P2 obtained are both standard rectangles with four right-angled vertices.

[0110] In this embodiment, the first cutting line G1 and the second cutting line G2 can be obtained by determining the pixel range of the chamfers A1, A2, A3, and A4. At this time, steps S102 and S104 specifically include:

[0111] According to the overall pixel range of the target image P and the size ratio between the chamfers A1, A2, A3, A4 and the display panel to be inspected, the local pixel range of the chamfers A1, A2, A3, A4 in the target image P is obtained, and the local pixel range includes the horizontal pixel range in the horizontal direction X and the vertical pixel range in the vertical direction Y;

[0112] Acquire a first cutting line G1 extending along the horizontal direction X according to the vertical pixel range;

[0113] A second cutting line G2 extending along the vertical direction Y is acquired according to the horizontal pixel range.

[0114] Here, the sizes of chamfers A1, A2, A3, A4 and the size of the entire display panel to be detected can be known in advance. For example, the size of the display panel to be detected is 149mm*70mm, and the sizes of chamfers A1, A2, A3, A4 are 10mm*10mm. Then, the size ratio of each chamfer A1, A2, A3, A4 to the display panel to be detected in the horizontal direction X is approximately 6%, and the size ratio of each chamfer A1, A2, A3, A4 to the display panel to be detected in the vertical direction Y is approximately 14%.

[0115] At this time, the local pixel range of chamfers A1, A2, A3, and A4 in the target image P can be obtained according to the overall pixel range of the target image P and the above-mentioned size ratio. The local pixel range includes the horizontal pixel range in the horizontal direction X and the vertical pixel range in the vertical direction Y.

[0116] Specifically, the first cutting line G1 located above the horizontal center line G01 can be obtained according to the first initial vertex coordinate P0'(x0', y0'), the fourth initial vertex coordinate P3'(x3', y3') and the vertical pixel range. Here, in order to ensure that the first cutting line G1 does not pass through the first chamfer A1 and the fourth chamfer A4, predetermined compensation pixels can be added on the basis of the vertical pixel range, so that the first cutting line G1 is further close to the horizontal center line G01. At this time, the two vertex angles corresponding to the first cutting line G1 are absolute right angles.

[0117] Similarly, the first cutting line G1 located below the horizontal center line G01 can be obtained based on the second initial vertex coordinates P1'(x1', y1'), the third initial vertex coordinates P2'(x2', y2') and the vertical pixel range, and the second cutting line G2 located to the left of the vertical center line G02 can be obtained based on the third initial vertex coordinates P2'(x2', y2'), the fourth initial vertex coordinates P3'(x3', y3') and the horizontal pixel range, and the second cutting line G2 located to the right of the vertical center line G02 can be obtained based on the first initial vertex coordinates P0'(x0', y0'), the second initial vertex coordinates P1'(x1', y1') and the horizontal pixel range.

[0118] It is understandable that the positions of the first cutting line G1 and the second cutting line G2 can also be determined according to other methods, as long as the first cutting line G1 extends along the horizontal direction X and does not pass through the chamfers A1, A2, A3, A4, and the second cutting line G2 extends along the vertical direction Y and does not pass through the chamfers A1, A2, A3, A4.

[0119] Combined Figure 6 and Figure 7 , step S106 specifically includes:

[0120] Match the first rectangular image P1 and the rectangular matching template M, and obtain a first vertex coordinate group of the first rectangular image P1 according to the template matching function;

[0121] Here, the first vertex coordinate group specifically includes the four vertex coordinates P1_0 (x 10 ,y 10 )、P1_1(x 11 ,y 11 )、P1_2(x 12 ,y 12 )、P1_3(x 13 ,y 13 ).

[0122] The second rectangular image P2 and the rectangular matching template M are matched, and a second vertex coordinate group of the second rectangular image P2 is obtained according to the template matching function.

[0123] Here, the second vertex coordinate group specifically includes the four vertex coordinates P2_0 (x 20 ,y 20 )、P2_1(x 21 ,y 21 )、P2_2(x 22 ,y 22 )、P2_3(x 23 ,y 23 ).

[0124] In this embodiment, when calculating the vertex coordinates of the first rectangular image P1 and the second rectangular image P2, in order to improve the accuracy, a pattern matching method is used, that is, the following method is used: Figure 6 The right-angle matching template M and the template matching function are shown.

[0125] Specifically, because the top angles of the first rectangular image P1 and the second rectangular image P2 are standard right angles within a small range, four standard right angle templates can be prepared first (ie, Figure 6 The right angle matching template M shown.

[0126] Combination Figure 7 , and then use the template matching function to get the matched image. The point with the highest grayscale in the matching image is the point with the highest matching degree, that is, the vertex position.

[0127] In the process of obtaining the actual vertex coordinate group involved in step S108, since the first rectangular image P1 retains the second straight side L2 and the fourth straight side L4 of the target image P, the X-axis coordinates of the four vertices in the actual vertex coordinate group can be obtained according to the first vertex coordinate group.

[0128] Likewise, since the second rectangular image P2 retains the first straight edge L1 and the third straight edge L3 of the target image P, the Y-axis coordinates of the four vertices in the actual vertex coordinate group can be obtained according to the second vertex coordinate group.

[0129] Specifically, the actual vertex coordinate group at this time includes the first actual vertex coordinate P0 (x 10 ,y 20 ), the second actual vertex coordinate P1(x 11 ,y 21 ), the third actual vertex coordinate P2(x 12 ,y 22 ), the fourth actual vertex coordinate P3 (x 13 ,y 23 ).

[0130] Step S110 specifically includes:

[0131] The outer contour of the target image P is realigned according to the deviation between the actual vertex coordinate group and the initial vertex coordinate group.

[0132] Here, the pixel offset to be moved can be obtained according to the actual vertex coordinate group and the initial vertex coordinate group. For example, according to the first initial vertex coordinate P0'(x0', y0') and the first actual vertex coordinate P0(x 10 ,y 20) are used to realign the first straight edge L1 and the fourth straight edge L4, so that the realigned first straight edge L1 and the fourth straight edge L4 are completely matched with the actual first straight edge L1 and the fourth straight edge L4 of the target image P, that is, the precise alignment of the target image P is achieved.

[0133] In other embodiments, it may also include only one first cutting line G1 and one second cutting line G2. Taking the first rectangular image P1 as an example, since the X-axis coordinate of the upper left corner vertex is the same as the X-axis coordinate of the lower left corner vertex, it is only necessary to obtain the X-axis coordinate of the upper left corner vertex. The X-axis coordinates of the third actual vertex coordinate P2 and the fourth actual vertex coordinate P3 are both the X-axis coordinates of the upper left corner vertex.

[0134] In this embodiment, combined with Figures 8 to 10 , illustrating the Demura compensation process.

[0135] Figure 8 The display effect of the uncompensated display panel to be tested is shown, with obvious mura on it. Fig. 9 The demura compensation effect after processing using the existing alignment method is shown. Fig.10 The demura compensation effect after being processed by the alignment method of this embodiment is illustrated.

[0136] The mura in the uncompensated display panel to be tested is very small, roughly only a few pixels wide. Therefore, the compensated image obtained by directly using the method of finding the intersection point by the straight line detection method in the prior art can show obvious misalignment (such as Fig. 9 The effect of the compensated image obtained by the alignment method of cutting the target image P to obtain the actual vertex coordinate group in this embodiment is excellent (as shown in FIG. Fig.10 shown).

[0137] Specifically, assuming that the mura in the display panel to be tested covers the three pixels of m, m+1, and m+2, in the prior art, due to the deviation of several pixels in the alignment process, taking the deviation of 2 pixels as an example, the starting pixel for compensation is the m+2 pixel, and the actual compensated pixels are the m+2, m+3, and m+4 pixels. As a result, the pixels that need to be compensated are not compensated, and the pixels that do not need to be compensated are compensated, resulting in obvious misalignment.

[0138] The present embodiment can achieve precise alignment, and the starting point of compensation can be precisely aligned to the mth pixel. The pixels actually compensated are the mth, m+1th, and m+2th pixels. That is, the present embodiment only compensates for the pixels that need to be compensated, which can achieve precise compensation and greatly improve the compensation effect.

[0139] One embodiment of the present invention also provides a compensation system for a display panel, the compensation system includes a memory and a processor, the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, it implements the steps in the alignment method of the display panel as described above, and implements the steps in the compensation method of the display panel as described above.

[0140] Here, combined Fig.11 , combined with the description of the above alignment method, the processor 10 includes the following units:

[0141] The acquisition unit 101 is used to acquire the target image displayed by the display panel to be detected;

[0142] A cutting unit 102, configured to cut off corners of a target image in a horizontal direction to obtain a first rectangular image; and to cut off corners of a target image in a vertical direction to obtain a second rectangular image;

[0143] The calculation unit 103 is used to obtain a first vertex coordinate group of the first rectangular image and a second vertex coordinate group of the second rectangular image; and obtain an actual vertex coordinate group of the target image according to the first vertex coordinate group and the second vertex coordinate group;

[0144] The alignment unit 104 is used to align the outer contour of the target image according to the actual vertex coordinate group.

[0145] It should be noted that the various units of the processor 10 may also be used to execute other steps in the aforementioned alignment method. For details, please refer to the aforementioned description, which will not be repeated here.

[0146] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the alignment method of the display panel described above and the steps in the compensation method of the display panel described above are implemented.

[0147] In summary, the alignment method of the present invention, which cuts the target image to obtain the actual vertex coordinate group, can improve the alignment accuracy of the display panel to be detected, especially the alignment accuracy of the display panel to be detected with chamfers, thereby improving the accuracy of the intercepted brightness data, and further improving the Demura compensation effect. Of course, when the alignment method of the present invention is applied to other scenes, it can also improve the optimization effect of other scenes.

[0148] It should be understood that although this specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each implementation mode may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

[0149] The series of detailed descriptions listed above are only specific descriptions of feasible implementation methods of the present invention. They are not intended to limit the scope of protection of the present invention. Any equivalent implementation methods or changes that do not deviate from the technical spirit of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for aligning a display panel, characterized in that: Includes steps: Acquire a target image displayed by the display panel to be detected; A first cutting line extending in a horizontal direction cuts the corners on the target image to obtain a first rectangular image, wherein the first cutting line is separated from the corners; A second cutting line extending in a vertical direction cuts a corner on the target image to obtain a second rectangular image, wherein the second cutting line is separated from the corner; Acquire a first vertex coordinate group of the first rectangular image and a second vertex coordinate group of the second rectangular image; Obtaining an actual vertex coordinate group of the target image according to the first vertex coordinate group and the second vertex coordinate group; The outer contour of the target image is aligned according to the actual vertex coordinate group.

2. The alignment method according to claim 1, characterized in that: Step "cutting the corners of the target image along a first cutting line extending in the horizontal direction to obtain a first rectangular image, wherein the first cutting line is separated from the corners; The second cutting line extending in the vertical direction cuts the corners on the target image to obtain a second rectangular image, wherein the second cutting line is separated from the corners. Specifically, the second cutting line includes: Acquire a first cutting line extending in a horizontal direction and a second cutting line extending in a vertical direction according to a proportional relationship between the corner and the target image, wherein the first cutting line and the second cutting line are both separated from the corner; Cutting the target image along the first cutting line to obtain a first rectangular image; The target image is cut along the second cutting line to obtain a second rectangular image.

3. The alignment method according to claim 1, characterized in that: Step "cutting the corners of the target image along a first cutting line extending in the horizontal direction to obtain a first rectangular image, wherein the first cutting line is separated from the corners; The second cutting line extending in the vertical direction cuts the corners on the target image to obtain a second rectangular image, wherein the second cutting line is separated from the corners. Specifically, the second cutting line includes: According to the proportional relationship between the corner and the target image, two first cutting lines extending in the horizontal direction and two second cutting lines extending in the vertical direction are obtained, wherein the two first cutting lines are respectively located on both sides of the horizontal center line of the target image, and the two second cutting lines are respectively located on both sides of the vertical center line of the target image, and the first cutting lines and the second cutting lines are separated from the corner; Cutting the target image along two first cutting lines to obtain a first rectangular image; The target image is cut along two second cutting lines to obtain a second rectangular image.

4. The alignment method according to claim 2, characterized in that: The step of "obtaining a first cutting line extending in the horizontal direction and a second cutting line extending in the vertical direction according to the proportional relationship between the corner and the target image" specifically includes: Obtaining a local pixel range of the corner in the target image according to the overall pixel range of the target image and the size ratio between the corner and the display panel to be detected, wherein the local pixel range includes a horizontal pixel range in the horizontal direction and a vertical pixel range in the vertical direction; Acquire a first cutting line extending in the horizontal direction according to the vertical pixel range; A second cutting line extending along the vertical direction is acquired according to the horizontal pixel range.

5. The alignment method according to claim 1, characterized in that: The step of "obtaining a first vertex coordinate group of the first rectangular image and a second vertex coordinate group of the second rectangular image" specifically includes: Matching the first rectangular image with a rectangular matching template, and obtaining a first vertex coordinate group of the first rectangular image according to a template matching function; The second rectangular image and the rectangular matching template are matched, and a second vertex coordinate group of the second rectangular image is obtained according to a template matching function.

6. The alignment method according to claim 1, characterized in that: The step of "obtaining the target image displayed by the display panel to be detected" specifically includes: Acquire the image to be detected displayed by the display panel to be detected; Binarizing the image to be detected to obtain an initial image; Acquire the outer contour of the initial image by an edge detection method; Acquire a current vertex coordinate group of the initial image by a straight line detection method; The initial image is corrected by a transmission transformation method and the current vertex coordinate group to obtain a target image.

7. The alignment method according to claim 6, characterized in that: The step of "obtaining the target image displayed by the display panel to be detected" also includes the following steps: The outer contour of the target image is preliminarily aligned by a straight line detection method to obtain an initial vertex coordinate group of the target image.

8. The alignment method according to claim 7, characterized in that: The step of "aligning the outer contour of the target image according to the actual vertex coordinate group" specifically includes: The outer contour of the target image is realigned according to the deviation between the actual vertex coordinate group and the initial vertex coordinate group.

9. A compensation method for a display panel, characterized in that: Includes steps: Acquire the outer contour of the target image according to the alignment method according to any one of claims 1 to 8; Brightness compensation is performed on the target image according to the brightness compensation data.

10. A compensation system for a display panel, characterized in that: The compensation system includes a memory and a processor, the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, it implements the steps of the display panel alignment method described in any one of claims 1 to 8, and implements the steps of the display panel compensation method described in claim 9.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the display panel alignment method described in any one of claims 1 to 8 are implemented, and the steps of the display panel compensation method described in claim 9 are implemented.