Disclosure of Invention
The invention aims to provide a measuring method for cutting precision of a display panel and the display panel, which can effectively improve the product testing efficiency and the monitoring chamfering precision, reduce the bad incidence rate of subsequent processing procedures and play a role in reducing the loss of parts.
The technical scheme of the invention is as follows:
the invention discloses a method for measuring the cutting precision of a display panel, which comprises the following steps:
s1: confirming the vertex of the cut angle;
s2: extracting a rectangle where the cut angle is located according to the vertex in a manner of enlarging the scale;
s3: in the rectangle, firstly obtaining coordinate distribution by using a scanning mode, then calculating a corresponding distribution function by using a computer, namely determining a slope line or a curve of a cut angle, and then determining two cutting intersection points according to intersection points of the slope line or the curve and an edge line of a panel;
s4: calculating the number of pixels between the vertex and each of the two cutting junctions through an algorithm, and converting the number of pixels into corresponding position distances according to the size of the camera pixel to obtain an actual measurement distance;
s5: and calculating the difference value between the actual measurement distance and the panel design distance to obtain the cutting precision error value of the display panel.
Preferably, the step S3 of obtaining the coordinate distribution by the scanning method and then calculating the corresponding distribution function by the computer includes the following steps:
s31: scanning the panel line by line along the X-axis direction by taking the vertex position as a starting point and taking a plurality of scanning starting points with fixed widths in the Y-axis direction to obtain coordinates of contact points of scanning lines and the edge of the panel, namely P1(X1, Y1), P2(X2, Y2), … … and Pn (Xn, Yn);
s32: determining the contact point Pi (Xi, Yi) as the last effective point of the cutting line when the X coordinates of the contact point Pi (Xi, Yi) continuously present the same value for a plurality of times, wherein i is less than or equal to n;
s33: and the computer calculates a corresponding distribution function according to the coordinates P1(X1, Y1), P2(X2, Y2), … … and Pi (Xi, Yi) of the contact point obtained by scanning, namely determining a slope line or a curve of the cut angle.
Preferably, the step S3 of obtaining the coordinate distribution by the scanning method and then calculating the corresponding distribution function by the computer includes the following steps:
s31: scanning the panel line by line along the Y-axis direction by taking the vertex position as a starting point and taking a plurality of scanning starting points with fixed width in the X-axis direction to obtain coordinates of contact points of scanning lines and the edge of the panel, namely P1(X1, Y1), P2(X2, Y2), … … and Pn (Xn, Yn);
s32: when the Y coordinates of the contact point Pi (Xi, Yi) continuously present the same value for a plurality of times, determining the contact point Pi (Xi, Yi) as the last effective point of the cutting line, wherein i is less than or equal to n;
s33: and the computer calculates a corresponding distribution function according to the coordinates P1(X1, Y1), P2(X2, Y2), … … and Pi (Xi, Yi) of the contact point obtained by scanning, namely determining a slope line or a curve of the cut angle.
Preferably, the cutting intersection of the slope line or curve with the Y-axis is a first cutting intersection, and the cutting intersection of the slope line or curve with the X-axis is a second cutting intersection.
Preferably, the number of pixels between the vertex and each of the two cutting junctions is calculated, and the actual distance between each of the two cutting junctions and the vertex in the X axis and the Y axis is determined according to the pixel size.
Preferably, the magnification ratio in step S2 is 1: 1.2.
Preferably, the method for calculating the cutting accuracy error value in step S5 is:
x camera pixel size is the cut angle horizontal measurement;
y camera pixel size is the perpendicular measurement of the cut angle;
the design value- (measured value + OFFSET) — cutting accuracy error value;
wherein x is the number of pixels of the intersection point cut by the vertex and the horizontal direction; y is the number of pixels of the intersection point cut by the vertex and the vertical direction; the camera pixel size is a fixed value; OFFSET is a camera error correction value.
Preferably, the vertex confirmation method in step S1 is as follows: shooting a display panel by a camera to generate an image, confirming the edge of the panel by an image processing technology, performing simulated intersection on the edge extension lines of the cut angles, and determining the intersection point as a vertex.
The invention also discloses a display panel, and the display panel is cut by adopting the method for measuring the cutting precision of the display panel.
The invention can bring the following beneficial effects: the invention solves the problem of longer measurement time of the special-shaped cutting precision of the display panel in the liquid crystal panel manufacturing industry, improves the production measurement efficiency and has obvious effect in practical application.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
The technical solution of the present invention is described in detail with specific examples below.
Fig. 1 is a schematic diagram of an original image panel after being subjected to irregular chamfering, and for a determination method of an irregular chamfering simulation vertex, the purpose of confirming an edge line of the panel is generally achieved by using a gray difference between the original image panel and a black environment and adopting an image processing principle, as shown in fig. 2, a schematic diagram of gray distribution at a white line on the panel is shown, and a finally confirmed irregular chamfering simulation vertex a is shown in fig. 3.
The vertex A position of the cut angle is simulated by the intersection point of the extension lines of the panel edge lines. Then, the image processing mode is continuously adopted to directly confirm two cutting intersection points P and Q of the special-shaped cutting line and the panel, and then a cutting line is confirmed according to a two-point one-line mode, and fig. 4 is a schematic diagram of ideal cutting intersection points.
However, in the actual production process, as shown in fig. 5, the edge breakage and the burr within the specification may occur due to the fact that the splinters of the cutting machine are not in place, so that the two cutting joints P and Q directly taken by using the image have a large error, which affects the accurate determination of the cutting precision of the special-shaped chamfer, as shown in fig. 6, the two cutting joints are actually captured, and therefore, the above scheme can only be used in theory, and cannot be used in the actual production process.
The invention provides a method for measuring the cutting precision of a display panel, which comprises the following steps:
s1: shooting a generated image of the display panel by using a camera, confirming the edge of the panel by using an image processing technology, performing simulated intersection on the edge extension line of the cut angle, and determining the intersection point as a vertex A;
s2: extracting a rectangle where the cut angle is located according to the simulated vertex A in an amplification scale mode;
s3: in the rectangle, firstly obtaining coordinate distribution by using a scanning mode, then calculating a corresponding distribution function by using a computer, namely determining a slope line or a curve of a cut angle, and then determining two cutting intersection points according to intersection points of the slope line or the curve and an edge line of a panel;
s4: calculating the number of pixels between the vertex and the two cutting intersection points through an algorithm, and converting the number of pixels into corresponding position distances according to the size of the camera pixels (namely the resolution of the camera pixels) to obtain actual measurement distances;
s5: and calculating the difference value between the actual measurement distance and the design distance of the display panel to obtain the cutting precision error value of the display panel.
Preferably, the amplification ratio of step S2 is generally selected to be 1:1.2, and the amplification ratio can be adjusted according to actual conditions.
The specific steps of "obtaining the coordinate distribution by using the scanning method and then calculating the corresponding distribution function by using the computer" in the step S3 are as follows:
s31: taking the simulated vertex A position as a starting point, scanning a plurality of scanning starting points with fixed width in the Y-axis direction (namely the vertical direction) line by line along the X-axis direction (namely the horizontal direction) to the panel to obtain coordinates of contact points of the scanning lines and the edge of the panel, namely P1(X1, Y1), P2(X2, Y2), … … and Pn (Xn, Yn);
s32: determining the contact point Pi (Xi, Yi) as the last effective point of the cutting line when the X coordinate of the contact point Pi (Xi, Yi) continuously appears for a plurality of times (such as ten times) with the same value, wherein i is less than or equal to n;
s33: and the computer calculates the corresponding distribution function according to the coordinates P1(X1, Y1), P2(X2, Y2), … … and Pi (Xi, Yi) of all the contact points obtained by scanning, namely determining the slope line or curve of the cut angle.
In the scanning direction in step S31, a plurality of scanning start points with a fixed width may be taken in the X-axis direction (i.e., horizontal direction) and scanned on the panel line by line in the Y-axis direction (i.e., vertical direction), and the confirmation as to whether the contact point Pi (Xi, Yi) is a valid point in the subsequent step should be adjusted to the confirmation of the Y coordinate value.
Further, the "when the X coordinate of the contact point Pi (Xi, Yi) continuously appears for a plurality of times (for example, ten times) with the same value" in step S32 generally means that the panel portion that is not cut is scanned (i.e., when the X coordinate is 0), but because of the panel edge breakage and the burr, there is a possibility that the contact point Pi (Xi, Yi) will appear at the breakage/burr when the effective point is confirmed, but there is no influence on the calculation of the slope line or curve of the cut angle by the subsequent function.
Preferably, the method for calculating the cutting accuracy error value in step S5 includes:
x camera pixel size is the cut angle horizontal measurement;
y camera pixel size is the perpendicular measurement of the cut angle;
the design value- (measured value + OFFSET) — cutting accuracy error value;
wherein x is the number of pixels of the intersection point cut by the vertex and the horizontal direction; y is the number of pixels of the intersection point cut by the vertex and the vertical direction; the camera pixel size is a fixed value; OFFSET is a camera error correction value; the design values are theoretical design values before panel cutting.
The following description will specifically describe the special-shaped chamfer as a bevel edge as an example.
The method for measuring the cutting precision of the display panel with the cutting angle being the bevel edge comprises the following steps:
step 1: the method comprises the steps of shooting a display panel by a camera to generate an image, confirming the edge of the panel through an image processing technology, performing simulated intersection on edge extension lines of cut angles, and determining an intersection point as a vertex A.
Step 2: as shown in fig. 7, based on the simulated vertex a, the rectangle in which the cut corner is located is extracted in a manner of enlarging the scale to 1: 1.2.
And step 3: as shown in fig. 8, inside the rectangle, scanning is performed on the panel line by line along the X-axis direction by taking the position of the simulated vertex a as a starting point and taking a plurality of scanning starting points with fixed widths in the Y-axis direction, and coordinates of contact points between scanning lines and the edges of the panel are obtained as P1(X1, Y1), P2(X2, Y2), … …, Pn (Xn, Yn); when the X coordinate of the contact point Pi (Xi, Yi) continuously appears for a plurality of times (such as ten times) with the same value, the contact point Pi (Xi, Yi) is determined as the last effective point of the cutting line, wherein i is less than or equal to n;
the computer calculates the corresponding distribution function according to the coordinates P1(X1, Y1), P2(X2, Y2), … …, Pi (Xi, Yi) of all the contact points obtained by scanning, i.e. determines the slope line or curve of the cut angle, and then determines two cut intersection points according to the intersection points of the slope line or curve and the panel edge line, wherein the cut intersection point of the slope line and the Y axis is P, the cut intersection point of the slope line and the X axis is Q, and the obtained slope line and the two cut intersection points P, Q are shown in fig. 9.
And 4, step 4: the number y of pixels between the vertex A and the cutting intersection point P and the number x of pixels between the vertex A and the cutting intersection point Q are respectively calculated through an algorithm, and then the actual measurement distance between the vertex A and the cutting intersection point P, Q is determined according to the size of the camera pixel.
And 5: as shown in fig. 10, calculating the difference between the actual measured distance between the vertex a and each of the two cutting junctions P, Q and the designed panel distance by using a formula to obtain the cutting accuracy error value of the display panel; the calculation method of the cutting precision error value comprises the following steps:
x camera pixel size is the horizontal measure of the cut angle (i.e., distance X is measured between vertex a and cut intersection Q);
y is the camera pixel size, which is the perpendicular measurement of the cut angle (i.e. the distance Y is measured between the vertex a and the cut intersection point P);
the design value- (measured value + OFFSET) — cutting accuracy error value;
wherein the camera pixel size is a fixed value; OFFSET is a camera error correction value; the design values are theoretical design values before panel cutting.
The invention solves the problem of longer measurement time of the abnormal cutting precision of the display panel in the liquid crystal panel manufacturing industry, can effectively improve the product testing efficiency and the monitoring chamfering precision, reduces the bad incidence rate of the subsequent processing procedure, improves the production measurement efficiency, and has obvious effect in practical application.
It should be noted that the above mentioned embodiments are only preferred embodiments of the present invention, but the present invention is not limited to the details of the above embodiments, and it should be noted that, for those skilled in the art, it is possible to make various modifications and amendments within the technical concept of the present invention without departing from the principle of the present invention, and various modifications, amendments and equivalents of the technical solution of the present invention should be regarded as the protection scope of the present invention.