Disclosure of Invention
The invention aims to provide a method and a device for detecting a special-shaped display panel, which aim to solve the problem of high omission factor when the micro defects of the special-shaped display panel are detected in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for detecting a special-shaped display panel, including:
acquiring an image of a display panel to be detected;
acquiring detection area distribution information of a pre-acquired reference panel matched with the display panel to be detected, wherein the reference panel and the display panel to be detected have detection areas with the same shape and size;
determining a detection area of the image according to the detection area distribution information;
and detecting a detection area of the image.
Further, the detection area distribution information of the reference panel is stored in a csv file, where the csv file includes a plurality of cells and marks corresponding to the cells, and represents that the corresponding cells are detection areas when the cells are marked as a first value and represents that the corresponding cells are non-detection areas when the cells are marked as a second value.
Further, the acquiring an image of the display panel to be tested includes:
loading a display panel to be detected through a movement mechanism of an automatic optical inspection AOI detection system;
shooting the display panel to be detected through a Charge Coupled Device (CCD) lens so as to obtain an image of the display panel to be detected.
Further, determining the detection area of the image according to the detection area distribution information includes:
identifying the visible area boundary of the display panel to be detected through a gray identification algorithm;
and determining the detection area of the image according to the detection area distribution information and the visible area boundary.
The embodiment of the present invention further provides a device for detecting a special-shaped display panel, including:
the first acquisition module is used for acquiring an image of a display panel to be detected;
the second acquisition module is used for acquiring the distribution information of the detection area of a pre-acquired reference panel matched with the display panel to be detected, and the reference panel and the display panel to be detected have the detection area with the same shape and size;
the determining module is used for determining the detection area of the image according to the detection area distribution information;
and the detection module is used for detecting the detection area of the image.
Further, the detection area distribution information of the reference panel is stored in a csv file, where the csv file includes a plurality of cells and marks corresponding to the cells, and represents that the corresponding cells are detection areas when the cells are marked as a first value and represents that the corresponding cells are non-detection areas when the cells are marked as a second value.
Further, the first obtaining module includes:
the loading submodule is used for loading the display panel to be tested through a movement mechanism of the automatic optical inspection AOI detection system;
and the shooting submodule is used for shooting the display panel to be detected through a Charge Coupled Device (CCD) lens so as to acquire an image of the display panel to be detected.
Further, the determining module includes:
the first determining submodule is used for identifying the visible area boundary of the display panel to be detected through a gray scale identification algorithm;
and the second determining submodule is used for determining the detection area of the image according to the detection area distribution information and the visible area boundary.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the above-mentioned special-shaped display panel detection method.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method for detecting a special-shaped display panel are implemented.
In the embodiment of the invention, the image of the display panel to be tested is acquired; acquiring detection area distribution information of a pre-acquired reference panel matched with the display panel to be detected, wherein the reference panel and the display panel to be detected have detection areas with the same shape and size; determining a detection area of the image according to the detection area distribution information; and detecting a detection area of the image. In this way, the detection area of the image of the display panel to be detected is determined by the detection area distribution information of the reference panel, and the detection area is not limited to be a regular area by the detection area distribution information, so that the omission ratio can be reduced.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
Referring to fig. 1, fig. 1 is a flowchart of a method for detecting a special-shaped display panel according to an embodiment of the present invention, and as shown in fig. 1, the embodiment provides a method for detecting a special-shaped display panel, including the following steps:
step 101, obtaining an image of a display panel to be tested.
Specifically, the display panel to be tested is a special-shaped display panel. For example, a display panel with four corners of R, or a display panel including a bang screen, or the like.
Further, the method specifically comprises the following steps:
loading a display panel to be detected through a movement mechanism of an automatic optical inspection AOI detection system;
shooting the display panel to be detected through a Charge Coupled Device (CCD) lens so as to obtain an image of the display panel to be detected.
An Automatic Optical Inspection (AOI) motion mechanism loads a display panel to be tested at a constant speed. In the process of uniform motion of the display panel to be detected, shooting is performed through a Charge-coupled Device (CCD) lens, a high frame image including the display panel to be detected is obtained, and an image of the display panel to be detected is obtained from the high frame image.
102, obtaining distribution information of a pre-obtained detection area of a reference panel matched with the display panel to be detected, wherein the reference panel and the display panel to be detected have detection areas with the same shape and size.
The detection area of the reference panel is acquired in advance. The detection area of the reference panel may be determined in the following manner: the reference panel is divided into a detection area and a non-detection area, the detection area having a position and a size with respect to the reference panel. The detection area distribution information is the position distribution of the detection area on the reference panel. The detection area distribution information may describe an irregular area.
The detection areas of the display panel to be detected and the reference panel are the same in shape and size.
Further, the detection area distribution information of the reference panel is stored in a csv file, where the csv file includes a plurality of cells and marks corresponding to the cells, and when the marks are first values, the corresponding cells are represented as detection areas, and when the marks are second values, the corresponding cells are represented as non-detection areas.
And converting the detection area distribution information of the reference panel into a csv file, namely storing the detection area distribution information of the reference panel in the form of the csv file. The csv file comprises a plurality of cells, each cell corresponds to one region in the detection region of the reference panel, different cells correspond to different regions, and each region in the detection region of the reference panel is provided with a corresponding cell. The size of the area corresponding to the cell can be set according to the actual situation, and is not limited herein. For example, the area corresponding to the unit cell may be a square area with a side length of 20 um. For example, when the flag is a first value, the corresponding cell is represented as a detection area, and when the flag is a second value, the corresponding cell is represented as a non-detection area.
Further, the reference panel includes a detection area and a non-detection area, and the area distribution information of the reference panel may be stored in the form of a csv file. The csv file comprises a plurality of cells, each cell corresponds to one region in the reference panel, different cells correspond to different regions, and each region of the reference panel is provided with a corresponding cell. The size of the area corresponding to the cell can be set according to the actual situation, and is not limited herein. Each cell is correspondingly provided with a mark for identifying whether the cell is a detection area or a non-detection area. For example, when the flag is a first value, the corresponding cell is represented as a detection area, and when the flag is a second value, the corresponding cell is represented as a non-detection area.
Fig. 2 is a schematic diagram of area distribution information of a reference panel according to an embodiment of the present invention, in fig. 2, a mark 1 in a cell is a detection area, and a mark 2 is a non-detection area. Whether the area corresponding to the unit cell is a detection area or a non-detection area can be known according to the marks.
And 103, determining the detection area of the image according to the detection area distribution information.
The detection areas of the display panel to be detected and the reference panel are the same in shape and size, so that the detection area of the image can be determined according to the distribution information of the detection areas.
Further, the method specifically comprises the following steps:
identifying the visible area boundary of the display panel to be detected through a gray identification algorithm;
and determining the detection area of the image according to the detection area distribution information and the visible area boundary.
Specifically, the upper and lower boundaries of a visual area (i.e., Pattern) of the display panel to be detected are identified through a gray scale identification algorithm, and then the detection area of the image is determined according to the distribution information of the detection area and the boundaries of the visual area.
And 104, detecting the detection area of the image.
After the detection area of the image is determined, periodically comparing the pixels in the detection area, for example, comparing the average of the gray values of 20 pixels in the first row in the detection area with the average of the gray values of 20 pixels in the second row, and determining whether the difference value is within a preset range, if the difference value is within the preset range, it is indicated that the gray values of 20 pixels in the first row or the gray values of 20 pixels in the second row are relatively balanced, and if there are no pixels with abrupt change in gray value, it is determined that no defect occurs, otherwise, it is determined that a defect exists. When the microscopic defect detection is performed on the detection area, the method in the prior art can be adopted, and is not limited herein.
The detection area distribution information is used for describing the detection area of the reference panel, when the detection area of the reference panel is an abnormal area, the detection area distribution information can still be described, and the reference panel and the display panel to be detected have the detection areas with the same shape and size, so that the detection area of the image of the display panel is determined through the detection area distribution information, and the omission ratio can be reduced compared with the conventional method in which the detection area of the image is determined according to a regular area.
In addition, the method in the embodiment can also be applied to the detection of non-special-shaped display panels.
The method for detecting the special-shaped display panel obtains the image of the display panel to be detected; acquiring detection area distribution information of a pre-acquired reference panel matched with the display panel to be detected, wherein the reference panel and the display panel to be detected have detection areas with the same shape and size; determining a detection area of the image according to the detection area distribution information; and detecting a detection area of the image. In this way, the detection area of the image of the display panel to be detected is determined through the detection area distribution information of the reference panel, and the detection area is not limited to be a regular area by the detection area distribution information, so that the omission ratio can be reduced, and the material waste in the subsequent manufacturing process is avoided; meanwhile, the real-time monitoring on the bad panel can be realized, so that the bad panel can be repaired in time.
The above process is described below by referring to specific examples.
The area distribution information of the reference panel is converted into a csv file, the size of a cell is set to be 20um (the cell can be set to be small enough, and curve vision such as an R angle and the like is realized by using an infinite broken line), and the description of a detection area in the special-shaped panel can be realized;
importing the csv file into a root folder inside AOI (automatic optic inspection) software;
loading a display panel to be detected into an AOI detection system movement mechanism, and shooting a high-frame picture by a CCD (charge coupled device) lens in the uniform-speed movement process of the display panel to be detected;
identifying a Glass starting (i.e. Glass Start) boundary and a visible area (i.e. Pattern) upper and lower boundaries through a gray scale identification algorithm;
calling area distribution information of a reference panel in an AOI (automated optical inspection) software package, and determining an inspection area and a non-inspection area of an image of a display panel to be detected in a high-frame picture according to the area distribution information of the reference panel;
and carrying out pixel period comparison in the inspection area to identify the microscopic defects.
Referring to fig. 3, fig. 3 is a structural diagram of an irregular-shaped display panel detection apparatus according to an embodiment of the present invention, and as shown in fig. 3, the irregular-shaped display panel detection apparatus 400 includes:
a first obtaining module 401, configured to obtain an image of a display panel to be detected;
a second obtaining module 402, configured to obtain distribution information of a detection area of a pre-obtained reference panel matched with the display panel to be detected, where the reference panel and the display panel to be detected have a detection area with the same shape and size;
a determining module 403, configured to determine a detection region of the image according to the detection region distribution information;
a detection module 404, configured to detect a detection area of the image.
Further, the detection area distribution information of the reference panel is stored in a csv file, where the csv file includes a plurality of cells and marks corresponding to the cells, and represents that the corresponding cells are detection areas when the cells are marked as a first value and represents that the corresponding cells are non-detection areas when the cells are marked as a second value.
Further, the first obtaining module 401 includes:
the loading submodule is used for loading the display panel to be tested through a movement mechanism of the automatic optical inspection AOI detection system;
and the shooting submodule is used for shooting the display panel to be detected through a Charge Coupled Device (CCD) lens so as to acquire an image of the display panel to be detected.
Further, the determining module 403 includes:
the first determining submodule is used for identifying the visible area boundary of the display panel to be detected through a gray scale identification algorithm;
and the second determining submodule is used for determining the detection area of the image according to the detection area distribution information and the visible area boundary.
The special-shaped display panel detection apparatus 400 can implement each process in the method embodiment of fig. 1, and is not described herein again to avoid repetition.
The mobile terminal 400 of the embodiment of the present invention obtains an image of a display panel to be tested; acquiring detection area distribution information of a pre-acquired reference panel matched with the display panel to be detected, wherein the reference panel and the display panel to be detected have detection areas with the same shape and size; determining a detection area of the image according to the detection area distribution information; and detecting the detection area of the image, thus determining the detection area of the image of the display panel to be detected through the detection area distribution information of the reference panel.
The embodiment of the present invention further provides a device for detecting a special-shaped display panel, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program is executed by the processor to implement the processes of the embodiment of the method for detecting a special-shaped display panel, and can achieve the same technical effects, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned special-shaped display panel detection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.