CN111612757B - Screen crack detection method, device, equipment and storage medium - Google Patents
Screen crack detection method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN111612757B CN111612757B CN202010421595.3A CN202010421595A CN111612757B CN 111612757 B CN111612757 B CN 111612757B CN 202010421595 A CN202010421595 A CN 202010421595A CN 111612757 B CN111612757 B CN 111612757B
- Authority
- CN
- China
- Prior art keywords
- pixel
- value
- pixel point
- screen
- defect pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
- G06T7/0008—Industrial image inspection checking presence/absence
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/136—Segmentation; Edge detection involving thresholding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
- G06T2207/30164—Workpiece; Machine component
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Image Processing (AREA)
Abstract
The embodiment of the invention discloses a method, a device, equipment and a storage medium for detecting screen cracks. The method comprises the following steps: acquiring a screen image of a tested screen, and determining a pixel segmentation threshold value of the screen image; dividing at least one suspected defect pixel point from the screen image according to the pixel dividing threshold value, and checking each suspected defect pixel point to determine a true defect pixel point; and determining crack information of the tested screen according to the pixel information of the true defect pixel point. According to the embodiment of the invention, the suspected defect pixel points are determined according to the pixel segmentation threshold value, and the actual defect pixel points are determined by checking the defect pixel points, so that the problem of overhigh crack detection cost is solved, and the crack detection efficiency and accuracy are improved.
Description
Technical Field
The embodiment of the invention relates to the technical field of product defect detection, in particular to a method, a device, equipment and a storage medium for detecting screen cracks.
Background
In the production process of the display screen, the produced display screen inevitably has surface defects such as cracks due to the influence of factors such as manufacturing process, manual operation errors and the like. Therefore, the display screen is subjected to quality detection before shipment, and whether the display screen meets quality standards is determined so as to remove the display screen with defects. Further, the position and the range of the crack on the screen can be positioned so as to repair the existing defect later.
Currently, whether a crack exists on a display screen is detected by naked eyes or not mainly, or a specific instrument device such as an ultrasonic detection device or a resistance detection device is adopted to detect the display screen so as to obtain crack information. However, the existing manual detection method has low detection efficiency and low accuracy, and the adoption of specific instruments and equipment can increase the detection cost.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for detecting screen cracks, which are used for reducing crack detection cost and improving crack detection efficiency and accuracy.
In a first aspect, an embodiment of the present invention provides a method for detecting a screen crack, where the method includes:
acquiring a screen image of a tested screen, and determining a pixel segmentation threshold value of the screen image;
dividing at least one suspected defect pixel point from the screen image according to the pixel dividing threshold value, and checking each suspected defect pixel point to determine a true defect pixel point;
and determining crack information of the tested screen according to the pixel information of the true defect pixel point.
In a second aspect, an embodiment of the present invention further provides a device for detecting a screen crack, where the device includes:
The pixel segmentation threshold determining module is used for acquiring a screen image of a tested screen and determining a pixel segmentation threshold of the screen image;
the true defect pixel point determining module is used for dividing at least one suspected defect pixel point from the screen image according to the pixel dividing threshold value, and checking each suspected defect pixel point to determine a true defect pixel point;
and the crack information determining module is used for determining the crack information of the tested screen according to the pixel information of the true defect pixel point.
In a third aspect, an embodiment of the present invention further provides an apparatus, including:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of screen crack detection of any of the above-mentioned concerns.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method of detecting a screen crack as described in any of the above.
According to the embodiment of the invention, the suspected defect pixel points are determined according to the pixel segmentation threshold value, and the actual defect pixel points are determined by checking the defect pixel points, so that the problem of overhigh crack detection cost is solved, and the crack detection efficiency and accuracy are improved.
Drawings
Fig. 1 is a flowchart of a method for detecting a screen crack according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a screen image according to a first embodiment of the present invention.
Fig. 3 is a flowchart of a method for detecting a screen crack according to a second embodiment of the present invention.
Fig. 4 is a flowchart of a specific example of a method for detecting a screen crack according to a second embodiment of the present invention.
Fig. 5 is a schematic diagram of a screen crack detection device according to a third embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a method for detecting a screen crack according to an embodiment of the present invention, where the method may be performed by a device for detecting a screen crack, and the device may be implemented in software and/or hardware. The method specifically comprises the following steps:
s110, acquiring a screen image of the tested screen, and determining a pixel segmentation threshold value of the screen image.
The screen to be tested may be an OLED (Organic Light-Emitting Diode) screen, among others, by way of example. OLED screens employ very thin coatings of organic materials and glass substrates that emit light when an electrical current is passed through them. In this embodiment, the type of the OLED screen may be a straight screen, and of course, may be a curved screen. In one embodiment, an image acquisition device is employed to acquire a screen image of a screen under test. The image capturing device may be a video camera, a scanner, a camera or other devices with photographing function, such as a mobile phone and a tablet computer. The apparatus for acquiring the screen image is not limited herein. In one embodiment, optionally, the type of screen image comprises a grayscale image. Specifically, when the original image acquired by the image acquisition device is not a gray image, the original image is converted into the gray image.
The pixel segmentation threshold is used for classifying pixel values of pixel points of the screen image. In one embodiment, optionally, histogram statistics are performed on pixel values of pixel points in the screen image; based on the result of the histogram statistics, determining the ratio between the number of accumulated pixel points corresponding to each pixel value and the total number of pixel points of the screen image; determining a gray level representative value of the screen image according to the ratios and the preset pixel number ratio; determining a pixel division threshold value of the screen image based on the gray representative value; wherein the pixel division threshold is greater than the gradation representative value.
Wherein a histogram is a statistical report graph, representing the data distribution by a series of vertical stripes or line segments of unequal height. In the present embodiment, the horizontal axis of the histogram represents the pixel value, and the vertical axis represents the number of pixels. In particular, the abscissa of the histogram may be pixel values contained in the screen image, such as 0, 10, and 255; the abscissa of the histogram may also be the gray pixel value, i.e. all integer values between 0-255; of course, the abscissa of the histogram may also be a range of pixel values, such as 0-10, 11-20, 230-255, and so on. The specific division of the abscissa of the histogram is not limited here.
Cracks in the screen image belong to bright defects, and background images in the screen image belong to dark backgrounds. The pixel value corresponding to the gray level pixel in the screen image, i.e., the pixel value of the crack pixel is closer to 255, while the pixel value of the background pixel is closer to 0. The number of accumulated pixels refers to the addition result of the number of pixels corresponding to all the pixel values from the minimum pixel value to the current pixel value. Specifically, the number of pixels corresponding to each pixel value can be obtained according to the statistical result of the histogram, and if the minimum pixel value is 0 and the current pixel value is 3, the number of pixels corresponding to the 0 pixel value, the 1 pixel value, the 2 pixel value and the 3 pixel value are respectively accumulated to obtain the accumulated number of pixels corresponding to the 3 pixel value. For example, assume that the statistics of the histogram include: the number of pixels corresponding to the pixel value 0 is 50; the number of pixels corresponding to the 1 pixel value is 10; the number of pixels corresponding to the 2 pixel value is 30, and the number of pixels corresponding to the 3 pixel value is 10. The number of accumulated pixels corresponding to the 0 pixel value, the 1 pixel value, the 2 pixel value and the 3 pixel value is 50, 60, 90 and 100, respectively. Further, the ratios between the 0 pixel value, the 1 pixel value, the 2 pixel value, and the 3 pixel value and the total number of pixel points are 0.5, 0.6, 0.9, and 1, respectively.
The method for determining the gray level representative value of the screen image according to the ratios and the preset pixel number ratio comprises the following steps: and comparing each ratio with the preset pixel number ratio respectively, and taking the minimum pixel value corresponding to the ratio larger than the preset pixel number ratio as a gray scale representative value. For example, assuming that the preset pixel number ratio is 0.8, the pixel values corresponding to the ratio greater than the preset pixel number ratio are respectively 2 pixel values and 3 pixel values, and the 2 pixel values are the determined gray representative values.
In one embodiment, optionally, determining the pixel segmentation threshold of the screen image based on the gray scale representative value includes: and taking the sum value of the gray representative value and the increment pixel value as a pixel segmentation threshold value. Where the delta pixel value is a user-set pixel value, the delta pixel value may be, for example, 1, 5, or 10. In another embodiment, optionally, determining the pixel segmentation threshold of the screen image based on the gray scale representative value includes: taking the product value of the gray representative value and the increment value as a pixel segmentation threshold value; where the increment value is a value greater than 1, the increment value may be, for example, 1.05 or 1.1. The increment pixel value or the increment value is not limited herein, and may be specifically determined according to the pixel value distribution of the screen image.
According to the technical scheme, the pixel segmentation threshold value is determined according to the gray level representative value obtained by the pixel value statistics result of the screen image, and the gray level representative value is obtained by counting the pixel value of the pixel point of the screen image, so that the situation that the pixel segmentation threshold value cannot be manually set for all the practical situations of the tested screen can be avoided, and the universality is higher. On the other hand, if only the gradation representative value is used as the pixel division threshold value, a true defective pixel can be obtained regardless of whether or not there is a crack in the screen image in reality. Setting the pixel division threshold value to be larger than the gradation representative value can improve the detection accuracy of the true defective pixel point.
S120, at least one suspected defect pixel point is segmented from the screen image according to the pixel segmentation threshold value, and each suspected defect pixel point is checked to determine a true defect pixel point.
The exemplary method includes comparing a pixel value of each pixel point in a screen image with a pixel segmentation threshold, and if the pixel value is smaller than the pixel segmentation threshold, taking the pixel point corresponding to the pixel value as a background pixel point; and if the pixel value is greater than or equal to the pixel segmentation threshold value, taking the pixel point corresponding to the pixel value as the suspected defect pixel point.
The detected suspected defect pixel points form a suspected defect pixel point set, and when the pixel values of the pixel points in the screen image are smaller than a pixel segmentation threshold value, the suspected defect pixel point set is an empty set, so that no crack exists in the screen to be detected; when the pixel value of the pixel points in the screen image is greater than or equal to the pixel segmentation threshold value, at least one suspected defect pixel point exists in the suspected defect pixel point set, and the existence of cracks in the tested screen is indicated.
In one embodiment, optionally, verifying each suspected defective pixel point to determine a true defective pixel point includes: for each suspected defect pixel point, determining a periodic pixel point corresponding to the suspected defect pixel point according to a preset distance, and taking the pixel value of the periodic pixel point as a periodic pixel value; wherein the preset distance comprises a process texture period distance; and verifying the suspected defect pixel points according to the periodic pixel values to determine the true defect pixel points.
The periodic pixel points are pixel points with preset distances from the suspected defect pixel points. The preset distance may be, for example, 5mm. In one embodiment, if the screen under test has a crack, the screen image includes a crack image and a background image. The process is carried out on the screen to be tested under the influence of the manufacturing process, so that a process texture image is also present in the background image of the screen image obtained by imaging the screen to be tested. The exemplary process includes transistor gate lines used in fabricating the screen under test. Fig. 2 is a schematic diagram of a screen image according to a first embodiment of the present invention. The vertical bars with periodic higher pixel values in fig. 2 represent process textures, two of which are labeled in fig. 2 for the screen image. As can be seen from fig. 2, the process texture image of the background image in the screen image belongs to a brighter background, and when the pixel points in the screen image are detected by the pixel segmentation threshold, the pixel points in the process texture image easily influence the detection result, thereby improving the false detection rate.
Because the process is periodically distributed on the tested screen, the process texture image of the screen image obtained by imaging the tested screen is also periodically distributed in the screen image, and the process texture period distance of the process is utilized to determine the period pixel point. The process texture period distance may be a distance between adjacent process textures, or may be a distance between non-adjacent process textures. If the distance between the adjacent process textures is 2mm, the process texture period distance can be 2mm, 4mm or 6mm. Specifically, a preset distance from the suspected defective pixel point can be selected, and the pixel point in the direction perpendicular to the process texture direction can be used as a periodic pixel point. For example, assuming that the process texture direction is along the Y-axis direction, the process texture period distance is 5mm, and the position coordinate of the suspected defective pixel point is (5, 10), the pixel point at the position with the position coordinate of (10, 10) is the period pixel point, and the pixel value of the period pixel point is taken as the period pixel value.
In one embodiment, optionally, verifying the suspected defective pixel according to the periodic pixel value to determine the true defective pixel includes: judging whether the difference value between the pixel value of the suspected defective pixel point and the periodic pixel value is larger than or equal to a preset difference value threshold value; and taking the suspected defect pixel point with the pixel value larger than or equal to the preset difference value threshold as the actual defect pixel point. Specifically, a suspected defective pixel with a pixel value smaller than a preset difference threshold is used as a background pixel.
Because the process texture has periodicity, the difference between the pixel value of the pixel point on the process texture image and the periodic pixel value is smaller. However, since the crack pixel points have no periodicity, the periodic pixel values obtained according to the periodicity are usually smaller, and thus the difference between the two is larger. Even if the crack pixel point is just in the process texture image, the difference between the crack pixel point and the periodic pixel point is still larger than the difference between the original process texture pixel point and the periodic pixel point due to the larger pixel value of the crack pixel point.
In one embodiment, optionally, the preset distance includes a previous period distance and/or a next period distance, and correspondingly, the period pixel value includes a previous period pixel value and/or a next period pixel value; verifying the suspected defect pixel points according to the periodic pixel values to determine the actual defect pixel points, wherein the verifying comprises the following steps: and verifying the suspected defect pixel points according to the pixel values of the previous period and/or the pixel values of the next period to determine the true defect pixel points.
In one embodiment, the suspected defective pixel may be located on a pixel of the process texture image. Because the process textures are periodically distributed on the screen image, the pixel point at the last period distance and/or the pixel point at the next period distance from the suspected defective pixel point can be determined according to the process texture period distance. For example, assuming that the period of the process texture is 5mm and the position coordinates of the suspected defective pixel point are (5, 10), the position coordinates of the pixel point of the previous period are (0, 10) and the position coordinates of the pixel point of the next period are (10, 10).
In one embodiment, assuming that the process texture cycle distance is 5mm, if the distance between the abscissa of the suspected defective pixel point and the left boundary of the screen image is less than 5mm, if the position coordinate of the suspected defective pixel point is (3, 10), the preset distance does not include the previous cycle distance, and the cycle pixel value only includes the next cycle pixel value; if the distance between the abscissa of the suspected defect pixel point and the right boundary of the screen image is less than 5mm, the preset distance does not comprise the next periodic distance, and the periodic pixel value only comprises the last periodic pixel value; if the distance between the abscissa of the suspected defective pixel point and the left boundary and the right boundary of the screen image is greater than or equal to 5mm, the preset distance comprises a previous period distance and a next period distance, and the period pixel value comprises a previous period pixel value and a next period pixel value.
S130, determining crack information of the tested screen according to pixel information of the true defect pixel points.
Exemplary crack information for the screen under test includes, but is not limited to, area, length, width, and center location, among others. Specifically, determining the area of the crack in the tested screen according to the number of the pixel points of the real defect and the pixel size; taking the difference between the maximum ordinate and the minimum ordinate as the length of the crack according to the position coordinates of the true defect pixel points; taking the difference between the maximum abscissa and the minimum abscissa as the width of the crack; taking the average value between the maximum ordinate and the minimum ordinate as the ordinate of the crack center position, and taking the average value between the maximum abscissa and the minimum abscissa as the abscissa of the crack center position.
According to the technical scheme, the suspected defect pixel points are determined according to the pixel segmentation threshold value, and the actual defect pixel points are determined by checking the defect pixel points, so that the problem of overhigh crack detection cost is solved, and the crack detection efficiency and accuracy are improved.
Example two
Fig. 3 is a flowchart of a method for detecting a screen crack according to a second embodiment of the present invention, and the technical solution of this embodiment is further refined based on the foregoing embodiment. Optionally, the determining crack information of the tested screen according to the pixel information of the true defect pixel point includes: when the number of the true defect pixel points is at least two, calculating the pixel distance between any two true defect pixel points according to the position coordinates of the true defect pixel points; if the pixel distance is smaller than a preset distance threshold value, taking a pixel point between two true defect pixel points corresponding to the pixel distance as a true defect pixel point, and determining a crack image; and determining crack information of the tested screen according to the crack image.
The specific implementation steps of the embodiment include:
s210, acquiring a screen image of the tested screen, and determining a pixel segmentation threshold of the screen image.
S220, at least one suspected defect pixel point is segmented from the screen image according to the pixel segmentation threshold value, and each suspected defect pixel point is checked to determine a true defect pixel point.
And S230, calculating the pixel distance between any two true defect pixel points according to the position coordinates of the true defect pixel points when the number of the true defect pixel points is at least two.
In one embodiment, calculating the pixel distance between any two true defective pixel points according to the position coordinates of the true defective pixel points includes: and subtracting the position coordinates of the two true defect pixel points to obtain the pixel distance between the two true defect pixel points. The position coordinates of the two true defective pixel points are, for example, (5, 10) and (6, 10), the pixel distance is 1. In one embodiment, calculating the pixel distance between any two true defective pixel points according to the position coordinates of the true defective pixel points includes: and respectively subtracting the abscissa and the ordinate of the two true defect pixel points, taking the absolute value of the abscissa difference value and the ordinate difference value, and calculating according to the abscissa difference value and the ordinate difference value to obtain the pixel distance between the two true defect pixel points. For example, the position coordinates of the two true defect pixel points are (5, 10) and (2, 14), respectively, the horizontal coordinate difference is 3, the vertical coordinate difference is 4, and the pixel distance is 5.
S240, if the pixel distance is smaller than the preset distance threshold value, taking the pixel point between two true defect pixel points corresponding to the pixel distance as the true defect pixel point, and determining a crack image.
Specifically, when the pixel distance between two true defective pixels is 0, it is indicated that the two true defective pixels are adjacent pixels in the screen image. When the pixel distance between the two true defect pixel points is greater than 0 and less than the preset distance threshold, the pixel points between the two true defect pixel points comprise background pixel points and/or true defect pixel points. In one embodiment, if the pixel between two true defect pixels includes a background pixel, the background pixel is taken as the true defect pixel. When the pixel distance between two true defect pixel points is greater than or equal to a preset distance threshold, the two true defect pixel points are possibly two pixel points which are far away from each other in the same crack or two pixel points in different cracks, and the pixel points between the two true defect pixel points are not processed. Through the technical scheme, the plurality of true defect pixel points are communicated to obtain a plurality of sequentially adjacent true defect pixel points, and a crack image is formed together.
S250, determining crack information of the tested screen according to the crack image.
In one embodiment, optionally, the crack information of the screen under test includes at least one of an area, a length, a width, and a crack center position. Specifically, the size of a single pixel point of the screen image is multiplied by the number of pixel points of the crack image to obtain the area of the crack image. Taking the difference between the maximum ordinate and the minimum ordinate as the length of the crack according to the position coordinates of each pixel point in the crack image; taking the difference between the maximum abscissa and the minimum abscissa as the width of the crack; taking the average value between the maximum ordinate and the minimum ordinate as the ordinate of the crack center position, and taking the average value between the maximum abscissa and the minimum abscissa as the abscissa of the crack center position.
Fig. 4 is a flowchart of a specific example of a method for detecting a screen crack according to the second embodiment of the present invention, and fig. 4 is an example of an OLED screen as a detected screen. And acquiring a screen image of the OLED screen by adopting a CCD (Charge Coupled Device ) camera, carrying out histogram statistics on the screen image, and determining a gray level representative value V1 according to a statistical result, wherein the pixel segmentation threshold value V=v1+P, wherein P represents an incremental pixel value. And traversing pixel values of all pixel points in the screen image, taking the pixel points with the pixel values larger than or equal to V as suspected defect pixel points, and generating a suspected defect pixel point set G. And circularly traversing suspected defective pixel points in the suspected defective pixel point set G, wherein the x is taken as an abscissa and the y is taken as an example. F (x, y) represents the pixel value of the suspected defective pixel point, F (x-T, y) and F (x+T, y) represent the last period pixel value and the next period pixel value corresponding to the suspected defective pixel point, respectively, wherein T represents a preset distance. And judging whether F (x, y) -F (x-T, y) is more than or equal to V1 and F (x, y) -F (x+T, y) is more than or equal to V1, wherein V1 represents a preset difference threshold value. If not, the suspected defect pixel point is taken as a background pixel point, and whether the suspected defect pixel point set G is traversed is judged. If yes, the suspected defect pixel point is taken as a true defect pixel point, and whether the suspected defect pixel point set G is traversed is judged. If the suspected defect pixel point set G is not traversed, selecting the next suspected defect pixel point, and judging the pixel value of the suspected defect pixel point. If the traversal of the suspected defect pixel point set G is completed, a true defect pixel point set D is generated, and whether the true defect pixel point set D is an empty set is judged. If so, the OLED screen is marked as OK, i.e. a quality acceptable product, and waits for the next screen under test to be detected. If not, carrying out communication processing on the true defect pixel points in the true defect pixel point set D, generating a crack image, obtaining crack information according to the crack image, marking the OLED screen as an NG (negative electrode) product, namely a quality unqualified product, and waiting for detecting the next screen to be detected.
On the basis of the above embodiment, optionally, the preset distance further includes a floating distance range, and accordingly, determining, according to the preset distance, a periodic pixel point corresponding to the suspected defective pixel point includes: determining a center pixel point corresponding to the suspected defect pixel point according to the process texture period distance; and taking the pixel point corresponding to the maximum pixel value of at least two pixel points, the distance between which and the central pixel point meets the floating distance range, as a periodic pixel point.
As can be seen from fig. 2, each process texture image is not a regular vertical stripe, specifically, the widths of the same process texture image corresponding to different ordinate are not identical, and the widths of the different process texture images corresponding to the same ordinate are not identical. The reason for this phenomenon may be that it is affected by the imaging characteristics of the image acquisition device, so that the process texture image at different positions is imaged unevenly. On the other hand, if the screen to be tested is a curved screen, the screen to be tested has a certain radian, so that imaging is uneven, and brightness of the screen image is also different. Illustratively, as shown in FIG. 2, the brightness of the left image of FIG. 2 is significantly lower than the brightness of the right image of FIG. 2. When the screen to be tested is a curved screen, the radian of the screen to be tested also affects the period of the process texture. If the period of the process texture on the screen image of the straight screen is 5mm according to the manufacturing process, the period of the process texture may be less than 5mm on the screen image of the curved screen.
Aiming at the phenomenon of uneven distribution of the process texture image, the floating distance range is increased on the basis of the process texture period. By way of example, when the period of the process texture on the screen image of the straight screen is 5mm, the floating distance range may be 1mm or less. Assuming that the position coordinates of the suspected defective pixel point are (10, 15), and the position coordinates of the central pixel point are (5, 15) when the preset distance is the previous period, the position coordinates of the pixel points in the floating distance range are (4, 15), (5, 15) and (6, 15), respectively, and the maximum pixel value in the pixel values of the pixel points at the 3 position coordinates is taken as the period pixel value. The advantage of this arrangement is that the false detection rate can be effectively reduced. In one embodiment, the floating distance range is optionally less than the process texture cycle distance.
According to the technical scheme of the embodiment, the real defect pixel points are communicated according to the pixel distance between the real defect pixel points and the preset distance threshold value, so that the problem of missing detection of the real defect pixel points is solved, connectivity between the real defect pixel points in the crack image is ensured, and the accuracy of crack information is improved.
Example III
Fig. 5 is a schematic diagram of a screen crack detection device according to a third embodiment of the present invention. The embodiment is applicable to the situation of detecting screen cracks, and the device can be implemented in a software and/or hardware mode, and the device for detecting screen cracks comprises: a pixel segmentation threshold determination module 310, a true defect pixel point determination module 320, and a crack information determination module 330.
The pixel segmentation threshold determining module 310 is configured to obtain a screen image of a tested screen, and determine a pixel segmentation threshold of the screen image;
the true defect pixel point determining module 320 is configured to segment at least one suspected defect pixel point from the screen image according to the pixel segmentation threshold, and verify each suspected defect pixel point to determine a true defect pixel point;
the crack information determining module 330 is configured to determine crack information of the tested screen according to pixel information of the true defect pixel point.
According to the technical scheme, the suspected defect pixel points are determined according to the pixel segmentation threshold value, and the actual defect pixel points are determined by checking the defect pixel points, so that the problem of overhigh crack detection cost is solved, and the crack detection efficiency and accuracy are improved.
On the basis of the above embodiment, optionally, the pixel segmentation threshold determining module 310 is specifically configured to:
carrying out histogram statistics on pixel values of pixel points in the screen image; based on the result of the histogram statistics, determining the ratio between the number of accumulated pixel points corresponding to each pixel value and the total number of pixel points of the screen image; determining a gray level representative value of the screen image according to the ratios and the preset pixel number ratio; determining a pixel division threshold value of the screen image based on the gray representative value; wherein the pixel division threshold is greater than the gradation representative value.
Optionally, on the basis of the above embodiment, the true defect pixel point determining module 320 includes:
the periodic pixel value determining unit is used for determining periodic pixel points corresponding to the suspected defect pixel points according to the preset distance for each suspected defect pixel point, and taking the pixel value of the periodic pixel points as the periodic pixel value; wherein the preset distance comprises a process texture period distance;
and the true defect pixel point determining unit is used for verifying the suspected defect pixel point according to the periodic pixel value to determine the true defect pixel point.
On the basis of the above embodiment, optionally, the true defect pixel point determining unit is specifically configured to:
Judging whether the difference value between the pixel value of the suspected defective pixel point and the periodic pixel value is larger than or equal to a preset difference value threshold value; and taking the suspected defect pixel point with the pixel value larger than or equal to the preset difference value threshold as the actual defect pixel point.
On the basis of the above embodiment, optionally, the preset distance includes a previous period distance and/or a next period distance, and the period pixel value includes a previous period pixel value and/or a next period pixel value correspondingly; the true defect pixel point determining unit is specifically configured to:
and verifying the suspected defect pixel points according to the pixel values of the previous period and/or the pixel values of the next period to determine the true defect pixel points.
On the basis of the above embodiment, optionally, the preset distance further includes a floating distance range, and the periodic pixel value determining unit is specifically configured to:
determining a center pixel point corresponding to the suspected defect pixel point according to the process texture period distance; and taking the pixel point corresponding to the maximum pixel value of at least two pixel points, the distance between which and the central pixel point meets the floating distance range, as a periodic pixel point.
On the basis of the above embodiment, optionally, the crack information determining module 330 is specifically configured to:
when the number of the true defective pixel points is at least two, according to the position coordinates of the true defective pixel points, calculating the pixel distance between any two true defect pixel points;
If the pixel distance is smaller than the preset distance threshold value, taking the pixel point between two true defect pixel points corresponding to the pixel distance as the true defect pixel point, and determining a crack image;
and determining crack information of the tested screen according to the crack image.
The screen crack detection device provided by the embodiment of the invention can be used for executing the screen crack detection method provided by the embodiment of the invention, and has the corresponding functions and beneficial effects of the execution method.
It should be noted that, in the embodiment of the screen crack detection device, each unit and module included are only divided according to the functional logic, but are not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Example IV
Fig. 6 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention, which provides services for implementing the method for detecting a screen crack according to the above embodiment of the present invention, and the apparatus for detecting a screen crack according to the above embodiment may be configured. Fig. 6 shows a block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in fig. 6 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 6, device 12 is in the form of a general purpose computing device. Components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in fig. 6, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, the number of the cases, each drive may be coupled to bus 18 by one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), in this embodiment the external device 14 may be an image capture device. Device 12 may also communicate with one or more devices that enable a user to interact with device 12, and/or with any devices (e.g., network card, modem, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, device 12 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, via network adapter 20. As shown in fig. 6, network adapter 20 communicates with other modules of device 12 over bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the screen crack detection method provided by the embodiment of the present invention.
By the aid of the equipment, the problem of overhigh crack detection cost is solved, and the efficiency and accuracy of crack detection are improved.
Example five
The fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for detecting a screen crack, the method comprising:
acquiring a screen image of a tested screen, and determining a pixel segmentation threshold value of the screen image;
dividing at least one suspected defect pixel point from the screen image according to the pixel dividing threshold value, and checking each suspected defect pixel point to determine a true defect pixel point;
and determining crack information of the tested screen according to the pixel information of the true defect pixel points.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the above method operations, and may also perform the related operations in the method for detecting a screen crack provided in any embodiment of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (6)
1. A method for detecting screen cracks, comprising:
acquiring a screen image of a tested screen, and determining a pixel segmentation threshold value of the screen image;
dividing at least one suspected defect pixel point from the screen image according to the pixel dividing threshold value, and checking each suspected defect pixel point to determine a true defect pixel point;
Determining crack information of the tested screen according to the pixel information of the true defect pixel points;
the verifying each suspected defect pixel point to determine a true defect pixel point includes:
for each suspected defect pixel point, determining a periodic pixel point corresponding to the suspected defect pixel point according to a preset distance, and taking a pixel value of the periodic pixel point as a periodic pixel value; wherein the preset distance comprises a process texture period distance;
verifying the suspected defect pixel points according to the periodic pixel values to determine true defect pixel points;
the verifying the suspected defect pixel point according to the periodic pixel value to determine a true defect pixel point comprises the following steps:
judging whether the difference value between the pixel value of the suspected defective pixel point and the periodic pixel value is larger than or equal to a preset difference value threshold value;
taking the suspected defect pixel point with the pixel value larger than or equal to a preset difference value threshold as a true defect pixel point;
the preset distance comprises a previous period distance and/or a next period distance, and the period pixel value comprises a previous period pixel value and/or a next period pixel value correspondingly; the verifying the suspected defect pixel point according to the periodic pixel value to determine a true defect pixel point comprises the following steps:
Verifying the suspected defect pixel points according to the previous period pixel value and/or the next period pixel value to determine real defect pixel points;
the preset distance further includes a floating distance range, and correspondingly, the determining, according to the preset distance, a periodic pixel point corresponding to the suspected defect pixel point includes:
determining a center pixel point corresponding to the suspected defect pixel point according to the process texture period distance;
and taking the pixel point corresponding to the maximum pixel value of at least two pixel points, the distance between which and the central pixel point meets the floating distance range, as a periodic pixel point.
2. The method of claim 1, wherein the determining the pixel segmentation threshold for the screen image comprises:
carrying out histogram statistics on pixel values of pixel points in the screen image;
based on the result of the histogram statistics, determining the ratio between the number of accumulated pixel points corresponding to each pixel value and the total number of pixel points of the screen image;
determining a gray level representative value of the screen image according to the ratio and the preset pixel number ratio;
determining a pixel division threshold value of the screen image based on the gray scale representative value; wherein the pixel division threshold is greater than the gradation representative value.
3. The method according to claim 1, wherein determining crack information of the tested screen according to pixel information of the true defect pixel point comprises:
when the number of the true defect pixel points is at least two, calculating the pixel distance between any two true defect pixel points according to the position coordinates of the true defect pixel points;
if the pixel distance is smaller than a preset distance threshold value, taking a pixel point between two true defect pixel points corresponding to the pixel distance as a true defect pixel point, and determining a crack image;
and determining crack information of the tested screen according to the crack image.
4. A screen crack detection device, comprising:
the pixel segmentation threshold determining module is used for acquiring a screen image of a tested screen and determining a pixel segmentation threshold of the screen image;
the true defect pixel point determining module is used for dividing at least one suspected defect pixel point from the screen image according to the pixel dividing threshold value, and checking each suspected defect pixel point to determine a true defect pixel point;
the crack information determining module is used for determining crack information of the tested screen according to the pixel information of the true defect pixel points;
The true defect pixel point determining module comprises:
the periodic pixel value determining unit is used for determining periodic pixel points corresponding to the suspected defect pixel points according to the preset distance for each suspected defect pixel point, and taking the pixel value of the periodic pixel points as the periodic pixel value; wherein the preset distance comprises a process texture period distance;
the true defect pixel point determining unit is used for verifying the suspected defect pixel point according to the periodic pixel value to determine the true defect pixel point; judging whether the difference value between the pixel value of the suspected defective pixel point and the periodic pixel value is larger than or equal to a preset difference value threshold value; taking the suspected defect pixel point with the pixel value larger than or equal to the preset difference value threshold value as the actual defect pixel point; verifying the suspected defect pixel points according to the previous period pixel value and/or the next period pixel value to determine the actual defect pixel points;
the preset distance further includes a floating distance range, and the periodic pixel value determining unit is further configured to:
determining a center pixel point corresponding to the suspected defect pixel point according to the process texture period distance; and taking the pixel point corresponding to the maximum pixel value of at least two pixel points, the distance between which and the central pixel point meets the floating distance range, as a periodic pixel point.
5. A screen crack detection apparatus, comprising:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method of detecting screen cracks as recited in any one of claims 1-3.
6. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the screen crack detection method of any one of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010421595.3A CN111612757B (en) | 2020-05-18 | 2020-05-18 | Screen crack detection method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010421595.3A CN111612757B (en) | 2020-05-18 | 2020-05-18 | Screen crack detection method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111612757A CN111612757A (en) | 2020-09-01 |
CN111612757B true CN111612757B (en) | 2023-07-18 |
Family
ID=72198295
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010421595.3A Active CN111612757B (en) | 2020-05-18 | 2020-05-18 | Screen crack detection method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111612757B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112348773B (en) * | 2020-09-28 | 2022-09-23 | 歌尔股份有限公司 | Screen defect detection method, device and electronic equipment |
CN113344068B (en) * | 2021-05-31 | 2023-10-17 | 北京达佳互联信息技术有限公司 | Material processing method, device, electronic equipment and computer readable storage medium |
CN113781446B (en) * | 2021-09-13 | 2022-07-22 | 常州市宏发纵横新材料科技股份有限公司 | Method and device for detecting greasy dirt on glass fiber surface, storage medium and electronic equipment |
CN114022415B (en) * | 2021-10-15 | 2022-06-28 | 成都博视广达科技有限责任公司 | Liquid crystal display defect detection method based on single-pixel feature clustering cluster establishment |
CN114429464A (en) * | 2022-01-25 | 2022-05-03 | 众安在线财产保险股份有限公司 | Terminal broken screen identification method and related equipment |
CN114998350B (en) * | 2022-08-04 | 2022-10-25 | 山东泗水泰和石材有限公司 | Stone defect detection method based on image processing |
CN115511907B (en) * | 2022-11-24 | 2023-03-24 | 深圳市晶台股份有限公司 | Scratch detection method for LED screen |
CN115631198B (en) * | 2022-12-21 | 2023-08-08 | 深圳新视智科技术有限公司 | Crack detection method and device for glass display screen and computer equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105259181A (en) * | 2015-10-26 | 2016-01-20 | 华为技术有限公司 | Display screen display defect detecting method, device and equipment |
US9805458B2 (en) * | 2016-03-23 | 2017-10-31 | Communications Test Design, Inc. | Method and system for detecting defective pixels and screen imperfections of a mobile device |
CN107358603A (en) * | 2017-07-18 | 2017-11-17 | 京东方科技集团股份有限公司 | Method of testing substrate, substrate detection apparatus and computer-readable recording medium |
CN108280822B (en) * | 2017-12-20 | 2020-08-25 | 歌尔科技有限公司 | Screen scratch detection method and device |
CN110111711A (en) * | 2019-04-30 | 2019-08-09 | 京东方科技集团股份有限公司 | The detection method and device of screen, computer readable storage medium |
-
2020
- 2020-05-18 CN CN202010421595.3A patent/CN111612757B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111612757A (en) | 2020-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111612757B (en) | Screen crack detection method, device, equipment and storage medium | |
CN111246204B (en) | Relative brightness deviation-based dirt detection method and device | |
CN108683907B (en) | Optical module pixel defect detection method, device and equipment | |
CN111583223B (en) | Defect detection method, defect detection device, computer equipment and computer readable storage medium | |
JP4528850B2 (en) | Defect detection apparatus, defect detection method, defect detection program, and computer-readable recording medium recording the program | |
CN109741307B (en) | Stray light detection method, stray light detection device and stray light detection system of camera module | |
CN111325717B (en) | Mobile phone defect position identification method and equipment | |
CN111986159B (en) | Electrode defect detection method and device for solar cell and storage medium | |
US10109045B2 (en) | Defect inspection apparatus for inspecting sheet-like inspection object, computer-implemented method for inspecting sheet-like inspection object, and defect inspection system for inspecting sheet-like inspection object | |
KR20090101356A (en) | Fault detection device and fault detection method | |
CN113785181A (en) | OLED screen point defect judgment method and device, storage medium and electronic equipment | |
CN113379680A (en) | Defect detection method, defect detection device, electronic equipment and computer readable storage medium | |
CN116503388A (en) | Defect detection method, device and storage medium | |
CN111369492B (en) | Display screen detection method, detection device and detection system | |
CN117274211A (en) | Screen defect detection method and device, terminal equipment and storage medium | |
CN113902697A (en) | Defect detection method and related device | |
CN116402781A (en) | Defect detection method, device, computer equipment and medium | |
CN116309518A (en) | PCB (printed circuit board) detection method and system based on computer vision | |
KR20140121068A (en) | Method and apparatus of inspecting mura of flat display | |
CN111292300B (en) | Method and apparatus for detecting bright spot defect of display panel, and readable storage medium | |
CN117218069A (en) | Abnormality detection method, abnormality detection device, electronic equipment and medium | |
CN116993654B (en) | Camera module defect detection method, device, equipment, storage medium and product | |
CN117288756A (en) | Product defect detection method and system | |
CN115797325A (en) | Bad pixel detection method based on sparse view | |
CN110672631B (en) | Panel defect photographing method and panel defect photographing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |