CN111612757A - Screen crack detection method, device, equipment and storage medium - Google Patents

Screen crack detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN111612757A
CN111612757A CN202010421595.3A CN202010421595A CN111612757A CN 111612757 A CN111612757 A CN 111612757A CN 202010421595 A CN202010421595 A CN 202010421595A CN 111612757 A CN111612757 A CN 111612757A
Authority
CN
China
Prior art keywords
pixel
screen
value
defect pixel
pixel point
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.)
Granted
Application number
CN202010421595.3A
Other languages
Chinese (zh)
Other versions
CN111612757B (en
Inventor
杨磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Hirose Opto Co Ltd
Original Assignee
Suzhou Hirose Opto Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Hirose Opto Co Ltd filed Critical Suzhou Hirose Opto Co Ltd
Priority to CN202010421595.3A priority Critical patent/CN111612757B/en
Publication of CN111612757A publication Critical patent/CN111612757A/en
Application granted granted Critical
Publication of CN111612757B publication Critical patent/CN111612757B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/0008Industrial image inspection checking presence/absence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30164Workpiece; 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 and equipment for detecting screen cracks and a storage medium. The method comprises the following steps: acquiring a screen image of a tested screen, and determining a pixel segmentation threshold of the screen image; dividing at least one suspected defect pixel point from the screen image according to the pixel division threshold value, and verifying each suspected defect pixel point to determine a real defect pixel point; and determining the crack information of the tested screen according to the pixel information of the real defect pixel points. According to the embodiment of the invention, the suspected defect pixel points are determined according to the pixel segmentation threshold, and the real defect pixel points are determined by checking each defect pixel point, so that the problem of overhigh crack detection cost is solved, and the efficiency and the accuracy of crack detection are improved.

Description

Screen crack detection method, device, equipment and storage medium
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 manufactured display screen is influenced by factors such as manufacturing process, manual operation errors and the like, and surface defects such as cracks are inevitably generated. Therefore, the quality of the display screen is checked before the display screen is shipped, and whether the display screen meets the quality standard is determined, so that the display screen with defects is removed. Furthermore, the position and the range of the crack on the screen can be positioned, so that the existing defects can be repaired in the following process.
At present, whether cracks exist on a display screen is mainly detected through artificial naked eyes, 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 detection cost is increased by adopting specific instruments and equipment.
Disclosure of Invention
The embodiment of the invention provides a method, a device and equipment for detecting screen cracks and a storage medium, which are used for reducing the crack detection cost and improving the 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 of the screen image;
dividing at least one suspected defect pixel point from the screen image according to the pixel division threshold value, and verifying each suspected defect pixel point to determine a real defect pixel point;
and determining the crack information of the tested screen according to the pixel information of the real defect pixel points.
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 determination module is used for acquiring a screen image of a detected screen and determining a pixel segmentation threshold of the screen image;
the real defect pixel point determining module is used for segmenting at least one suspected defect pixel point from the screen image according to the pixel segmentation threshold value and verifying each suspected defect pixel point to determine a real 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 real defect pixel point.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement any of the screen crack detection methods referred to above.
In a fourth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform any one of the above-mentioned screen crack detection methods.
According to the embodiment of the invention, the suspected defect pixel points are determined according to the pixel segmentation threshold, and the real defect pixel points are determined by checking each defect pixel point, so that the problem of overhigh crack detection cost is solved, and the efficiency and the accuracy of crack detection 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 an 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 apparatus 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 present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for detecting a screen crack according to an embodiment of the present invention, where the method is applicable to a case of detecting a screen crack, and the method may be executed by a device for detecting a screen crack, where the device may be implemented in a software and/or hardware manner. The method specifically comprises the following steps:
s110, acquiring a screen image of the detected screen, and determining a pixel segmentation threshold of the screen image.
Among them, the screen to be tested may be an OLED (Organic Light-Emitting Diode) screen, for example. OLED screens employ very thin coatings of organic materials and glass substrates, which emit light when current flows through them. In the present embodiment, the type of the OLED screen may be a straight screen, and certainly, may also be a curved screen. In one embodiment, an image capture device is used to capture a screen image of a screen under test. The image capturing device may be, for example, a video camera, a scanner, a camera, or other devices with a 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 grayscale image, the original image is converted into a grayscale image.
The pixel segmentation threshold is used for classifying pixel values of pixel points of the screen image. In one embodiment, optionally, histogram statistics is performed on pixel values of pixel points in the screen image; determining the ratio of the number of accumulated pixels corresponding to each pixel value to the total number of pixels of the screen image based on the result of the histogram statistics; 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 of the screen image based on the gray representative value; wherein the pixel division threshold is larger than the grayscale representative value.
The histogram is a statistical report graph, and the data distribution is represented by a series of vertical stripes or line segments with different heights. In this embodiment, the horizontal axis of the histogram represents the pixel value, and the vertical axis represents the number of pixels. Specifically, the abscissa of the histogram may be pixel values included in the screen image, such as 0, 10, and 255; the abscissa of the histogram may also be the gray pixel values, 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, and 230-. The specific division manner of the abscissa of the histogram is not limited here.
The cracks in the screen image belong to bright defects, and the background image in the screen image belongs to a dark background. The gray pixel value corresponding to the screen image, i.e. the pixel value of the crack pixel point is closer to 255, and the pixel value of the background pixel point is closer to 0. The accumulated pixel number refers to an addition result of pixel numbers corresponding to all pixel values between the minimum pixel value and the current pixel value. Specifically, the number of pixel points corresponding to each pixel value can be obtained according to the statistical result of the histogram, and assuming that the minimum pixel value is 0 and the current pixel value is 3, the number of pixel points corresponding to the pixel value 0, the pixel value 1, the pixel value 2, and the pixel value 3 is accumulated to obtain the number of accumulated pixel points corresponding to the pixel value 3. For example, assume that the statistics of the histogram include: the number of pixels corresponding to the 0 pixel value is 50; the number of pixels corresponding to the 1 pixel value is 10; the number of pixels corresponding to a 2-pixel value is 30, and the number of pixels corresponding to a 3-pixel value is 10. The cumulative pixel numbers corresponding to the 0 pixel value, the 1 pixel value, the 2 pixel value, and the 3 pixel value are 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 pixels are 0.5, 0.6, 0.9, and 1, respectively.
Determining a gray scale representative value of the screen image according to the ratio and the preset pixel number ratio, wherein the method comprises the following steps: and comparing each ratio with a preset pixel number ratio, and taking the minimum pixel value corresponding to the ratio larger than the preset pixel number ratio as a gray representative value. For example, if the predetermined pixel number ratio is 0.8, the pixel values corresponding to the ratios greater than the predetermined pixel number ratio are 2 pixel values and 3 pixel values, respectively, and the 2 pixel values are the determined gray-scale representative values.
In one embodiment, optionally, determining the pixel segmentation threshold of the screen image based on the gray representative value comprises: and taking the summation value of the gray representative value and the incremental pixel value as a pixel segmentation threshold value. Where the incremental pixel value is a pixel value set by a user, the incremental pixel value may be 1, 5, or 10, for example. In another embodiment, optionally, determining the pixel segmentation threshold for the screen image based on the gray-scale representative value comprises: taking the product value of the gray representative value and the increment value as a pixel segmentation threshold value; the increment value is a value greater than 1, and may be, for example, 1.05 or 1.1. The incremental pixel value or the incremental value is not limited, and may be determined according to the pixel value distribution of the screen image.
According to the technical scheme of the embodiment, the pixel segmentation threshold is determined according to the gray representative value obtained by the pixel value statistical result of the screen image, on one hand, the pixel value of the pixel point of the screen image is counted to obtain the gray representative value, so that the situation that the pixel segmentation threshold is set manually and cannot be applied to all actual conditions of the tested screens can be avoided, and the universality is higher. On the other hand, if only the gray representative value is used as the pixel segmentation threshold, no matter whether cracks exist in the screen image really, real defect pixel points can be obtained. The pixel segmentation threshold is set to be larger than the gray representative value, so that the detection accuracy of the real defective pixel point can be improved.
S120, at least one suspected defect pixel point is segmented from the screen image according to the pixel segmentation threshold, and each suspected defect pixel point is verified to determine a real defect pixel point.
Comparing the pixel value of each pixel point in the 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, taking the pixel point corresponding to the pixel value as a suspected defect pixel point.
The suspected defect pixel points obtained through detection form a suspected defect pixel point set, and when the pixel values of the pixel points in the screen image are all smaller than a pixel segmentation threshold value, the suspected defect pixel point set is an empty set, and it is indicated that no crack exists in the detected screen; when the pixel value of the pixel point in the screen image is larger than or equal to the pixel segmentation threshold, at least one suspected defect pixel point exists in the suspected defect pixel point set, and the fact that a crack exists in the tested screen is indicated.
In an embodiment, optionally, verifying each suspected defective pixel to determine a true defective pixel 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 real defect pixel points.
The periodic pixel points are pixel points which are a preset distance away from the suspected defect pixel points. Illustratively, the preset distance may be 5 mm. In one embodiment, if there is a crack in the screen under test, the screen image includes a crack image and a background image. The process exists in the tested screen under the influence of the manufacturing process, so that the process texture image also exists in the background image of the screen image obtained by imaging the tested screen. Illustratively, the process includes a transistor gate line used in fabricating the screen under test. Fig. 2 is a schematic diagram of a screen image according to an embodiment of the present invention. The vertical bars with higher periodic pixel values in FIG. 2 represent process textures, and two adjacent process textures in the screen image are labeled in FIG. 2. 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 through the pixel segmentation threshold, the pixel points in the process texture image easily affect the detection result, so that the false detection rate is increased.
The manufacturing process is periodically distributed on the tested screen, and the manufacturing process texture images of the screen image obtained by imaging the tested screen are also periodically distributed in the screen image, so that the manufacturing process texture period distance of the manufacturing process is utilized to determine the period pixel points. The process texture cycle distance may be a distance between adjacent process textures, or may be a distance between non-adjacent process textures. If the distance between adjacent process textures is 2mm, the process texture period distance may be 2mm, or 4mm or 6 mm. Specifically, a preset distance from a suspected defective pixel point is selected, and a pixel point in a direction perpendicular to the process texture direction is taken as a periodic pixel point. For example, if the process texture direction is along the Y-axis direction, and the process texture period distance is 5mm, and the position coordinate of the suspected-defect pixel is (5, 10), the pixel at the position with the position coordinate of (10, 10) is a period pixel, and the pixel value of the period pixel is taken as the period pixel value.
In an embodiment, optionally, verifying the suspected-defect pixel according to the periodic pixel value to determine the true-defect pixel includes: judging whether the difference value between the pixel value of the suspected defect pixel point and the period pixel value is larger than or equal to a preset difference threshold value or not; and taking suspected defect pixel points with pixel values larger than or equal to a preset difference threshold value as real defect pixel points. Specifically, the suspected defect pixel point with the pixel value smaller than the preset difference threshold is used as the background pixel point.
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 small. However, as the crack pixel point does not have periodicity, the periodic pixel value obtained according to the periodicity is usually small, and thus the difference between the two is large. Even if the crack pixel points are exactly in the process texture image, the difference value between the crack pixel points and the period pixel points is still larger than the difference value between the original process texture pixel points and the period pixel points due to the larger pixel value of the crack pixel points.
In one embodiment, optionally, the preset distance includes a previous period distance and/or a next period distance, and accordingly, 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 real defect pixel points, comprising the following steps: and verifying the suspected defect pixel points according to the pixel value of the previous period and/or the pixel value of the next period to determine real defect pixel points.
In one embodiment, the suspected defective pixel may be located on a pixel of the process texture image. Because the process texture is periodically distributed on the screen image, the pixel point with the distance of the previous period and/or the pixel point with the distance of the next period from the suspected defect pixel point can be determined according to the periodic distance of the process texture. For example, if the period of the process texture is 5mm, and the position coordinate of the suspected-defect pixel is (5, 10), the position coordinate of the pixel in the previous period is (0, 10), and the position coordinate of the pixel in the next period is (10, 10).
In one embodiment, assuming that the process texture cycle distance is 5mm, if the distance between the abscissa of the suspected-defect pixel and the left boundary of the screen image is less than 5mm, and if the position coordinate of the suspected-defect pixel is (3, 10), the predetermined 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 distance of the next period, and the periodic pixel value only comprises the pixel value of the previous period; if the distances between the abscissa of the suspected defect pixel point and the left boundary and the right boundary of the screen image are both larger 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 the crack information of the tested screen according to the pixel information of the real defect pixel points.
Exemplary crack information of the screen to be tested includes, but is not limited to, area, length, width, and center position. Specifically, determining the area of cracks in a tested screen according to the number and the size of real defect pixel points; according to the position coordinates of the real defect pixel points, taking the difference value between the maximum vertical coordinate and the minimum vertical coordinate as the length of the crack; taking the difference between the maximum abscissa and the minimum abscissa as the width of the crack; and taking the mean value between the maximum ordinate and the minimum ordinate as the ordinate of the crack center position, and taking the mean 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, and the real defect pixel points are determined by checking each defect pixel point, so that the problem of high 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 the present embodiment is further detailed based on the above-mentioned second embodiment. Optionally, the determining the crack information of the tested screen according to the pixel information of the real defective pixel point includes: when the number of the real defect pixel points is at least two, calculating the pixel distance between any two real defect pixel points according to the position coordinates of the real defect pixel points; if the pixel distance is smaller than a preset distance threshold, taking a pixel point between two real defect pixel points corresponding to the pixel distance as a real defect pixel point, and determining a crack image; and determining the crack information of the tested screen according to the crack image.
The specific implementation steps of this embodiment include:
s210, acquiring a screen image of the detected 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, and each suspected defect pixel point is verified to determine a real defect pixel point.
And S230, when the number of the real defect pixel points is at least two, calculating the pixel distance between any two real defect pixel points according to the position coordinates of the real defect pixel points.
In one embodiment, calculating the pixel distance between any two real defect pixel points according to the position coordinates of the real defect pixel points includes: and subtracting the position coordinates of the two real defect pixel points to obtain the pixel distance between the two real defect pixel points. Illustratively, the position coordinates of two real defect pixel points are (5, 10) and (6, 10), respectively, and the pixel distance is 1. In one embodiment, calculating the pixel distance between any two real defect pixel points according to the position coordinates of the real defect pixel points includes: and respectively subtracting the abscissa and the ordinate of the two real defect pixel points and taking an absolute value to obtain an abscissa difference value and an ordinate difference value, and calculating according to the abscissa difference value and the ordinate difference value to obtain the pixel distance between the two real defect pixel points. Illustratively, the position coordinates of two real defect pixel points are (5, 10) and (2, 14), respectively, then the abscissa difference value is 3, the ordinate difference value is 4, and the pixel distance is 5.
S240, if the pixel distance is smaller than the preset distance threshold, taking a pixel point between two real defect pixel points corresponding to the pixel distance as a real defect pixel point, and determining a crack image.
Specifically, when the pixel distance between two real defective pixel points is 0, it is indicated that the two real defective pixel points are adjacent pixel points in the screen image. When the pixel distance between the two real defect pixel points is larger than 0 and smaller than a preset distance threshold, the pixel point between the two real defect pixel points comprises a background pixel point and/or a real defect pixel point. In one embodiment, if a pixel between two real defective pixels includes a background pixel, the background pixel is taken as the real defective pixel. When the pixel distance between two real defect pixel points is greater than or equal to the preset distance threshold, it is indicated that the two real defect pixel points may belong to two pixel points far away from each other in the same crack or belong to two pixel points in different cracks, and the pixel point between the two real defect pixel points is not processed here. Through the technical scheme, the real defect pixel points are communicated to obtain a crack image which is formed by the real defect pixel points which are adjacent in sequence.
And S250, determining the crack information of the tested screen according to the crack image.
In one embodiment, optionally, the crack information of the measured screen 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, so that the area of the crack image is obtained. According to the position coordinates of each pixel point in the crack image, taking the difference value between the maximum vertical coordinate and the minimum vertical coordinate as the length of the crack; taking the difference between the maximum abscissa and the minimum abscissa as the width of the crack; and taking the mean value between the maximum ordinate and the minimum ordinate as the ordinate of the crack center position, and taking the mean 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 a second embodiment of the present invention, and fig. 4 illustrates a detected screen as an OLED screen. Acquiring a screen image of an OLED screen by using a CCD (Charge Coupled Device) camera, performing histogram statistics on the screen image, and determining a representative gray value V1 according to a statistical result, where a pixel division threshold V is V1+ P, where P represents an incremental pixel value. And traversing pixel values of all pixel points in the screen image, and taking the pixel points with the pixel values larger than or equal to V as suspected defect pixel points to generate a suspected defect pixel point set G. And circularly traversing the suspected defect pixel points in the suspected defect pixel point set G, taking the suspected defect pixel points with x as the abscissa and y as the ordinate as an example. F (x, y) represents the pixel value of the suspected defect pixel point, F (x-T, y) and F (x + T, y) respectively represent the pixel value of the previous period and the pixel value of the next period corresponding to the suspected defect pixel point, wherein T represents a preset distance. And judging whether F (x, y) -F (x-T, y) ≧ V1& & F (x, y) -F (x + T, y) ≧ V1, wherein V1 represents a preset difference threshold value in the judgment formula. 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 or not is judged. If so, taking the suspected defect pixel point as a real defect pixel point, and judging whether the suspected defect pixel point set G is traversed and completed. And 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. And if the suspected defect pixel point set G is traversed, generating a real defect pixel point set D, and judging whether the real defect pixel point set D is an empty set. If so, the OLED screen is marked as an OK product, namely a qualified product, and waits for the next screen to be tested. And if not, performing communication processing on the real defect pixel points in the real defect pixel point set D to generate a crack image, obtaining crack information according to the crack image, marking the OLED screen as an NG product, namely a product with unqualified quality, and waiting for detecting the next detected screen.
On the basis of the foregoing embodiment, optionally, the preset distance further includes a floating distance range, and accordingly, the determining, according to the preset distance, a periodic pixel point corresponding to the suspected-defect pixel point includes: determining a central pixel point corresponding to the suspected defective pixel point according to the process texture period distance; and taking the pixel point corresponding to the maximum pixel value as a periodic pixel point in at least two pixel points with the distance from the central pixel point meeting the floating distance range.
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 ordinates are not completely the same, and the widths of the different process texture images corresponding to the same ordinate are not completely the same. The reason for this phenomenon may be influenced by the imaging characteristics of the image capturing device, so that the process texture images at different positions are not uniformly imaged. On the other hand, if the screen to be measured is a curved screen, the screen to be measured has a certain radian, so that the imaging is not uniform, and the brightness of the screen image is different. Illustratively, as shown in FIG. 2, the brightness of the image on the left side of FIG. 2 is significantly lower than the brightness of the image on the right side of FIG. 2. When the screen to be measured is a curved screen, the radian of the screen to be measured also affects the period of the texture of the manufacturing process. If the period of the process texture obtained according to the manufacturing process on the screen image of the straight screen is 5mm, the period of the process texture on the screen image of the curved screen may be less than 5 mm.
Aiming at the phenomenon of uneven distribution of the process texture images, the floating distance range is increased on the basis of the process texture period. For 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 points are (10, 15), when the preset distance is the previous period, the position coordinates of the central pixel point are (5, 15), the position coordinates of the pixel points within the floating distance range are (4, 15), (5, 15) and (6, 15), respectively, and the maximum pixel value among 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, optionally, the floating distance range is 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, so that the problem that the real defect pixel points are missed to be detected is solved, the 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 apparatus according to a third embodiment of the present invention. The present embodiment may be applicable to the case of detecting a screen crack, and the apparatus may be implemented in a software and/or hardware manner, and the apparatus for detecting a screen crack includes: a pixel segmentation threshold determination module 310, a real 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 detected screen, and determine a pixel segmentation threshold of the screen image;
a true defect pixel point determining module 320, 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;
and the crack information determining module 330 is configured to determine the crack information of the tested screen according to the pixel information of the real defect pixel point.
According to the technical scheme, the suspected defect pixel points are determined according to the pixel segmentation threshold, and the real defect pixel points are determined by checking each defect pixel point, so that the problem of high crack detection cost is solved, and the crack detection efficiency and accuracy are improved.
On the basis of the foregoing embodiment, optionally, the pixel division threshold determining module 310 is specifically configured to:
carrying out histogram statistics on pixel values of pixel points in the screen image; determining the ratio of the number of accumulated pixels corresponding to each pixel value to the total number of pixels of the screen image based on the result of the histogram statistics; 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 of the screen image based on the gray representative value; wherein the pixel division threshold is larger than the grayscale representative value.
On the basis of the foregoing embodiment, optionally, the real defective pixel point determining module 320 includes:
the system comprises a periodic pixel value determining unit, a pixel value calculating unit and a pixel value calculating unit, wherein the periodic pixel value determining unit is used for determining a periodic pixel point corresponding to a suspected defect pixel point according to a preset distance for each suspected defect pixel point 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 the real defect pixel point determining unit is used for verifying the suspected defect pixel points according to the periodic pixel values to determine the real defect pixel points.
On the basis of the foregoing embodiment, optionally, the real defective pixel point determining unit is specifically configured to:
judging whether the difference value between the pixel value of the suspected defect pixel point and the period pixel value is larger than or equal to a preset difference threshold value or not; and taking suspected defect pixel points with pixel values larger than or equal to a preset difference threshold value as real defect pixel points.
On the basis of the foregoing embodiment, optionally, the preset distance includes a previous period distance and/or a next period distance, and accordingly, the periodic pixel value includes a previous period pixel value and/or a next period pixel value; the real defective pixel point determining unit is specifically configured to:
and verifying the suspected defect pixel points according to the pixel value of the previous period and/or the pixel value of the next period to determine real defect pixel points.
On the basis of the foregoing embodiment, optionally, the preset distance further includes a floating distance range, and the periodic pixel value determining unit is specifically configured to:
determining a central pixel point corresponding to the suspected defective pixel point according to the process texture period distance; and taking the pixel point corresponding to the maximum pixel value as a periodic pixel point in at least two pixel points with the distance from the central pixel point meeting the floating distance range.
On the basis of the foregoing embodiment, optionally, the crack information determining module 330 is specifically configured to:
when the number of the real defect pixel points is at least two, calculating the pixel distance between any two real defect pixel points according to the position coordinates of the real defect pixel points;
if the pixel distance is smaller than a preset distance threshold, taking a pixel point between two real defect pixel points corresponding to the pixel distance as a real defect pixel point, and determining a crack image;
and determining the 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 corresponding functions and beneficial effects of the execution method.
It should be noted that, in the embodiment of the device for detecting a screen crack, each included unit and module is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Example four
Fig. 6 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention, where the embodiment of the present invention provides a service for implementing the method for detecting a screen crack according to the foregoing embodiment of the present invention, and a device for detecting a screen crack in the foregoing embodiment may be configured. Fig. 6 illustrates 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 only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present invention.
As shown in FIG. 6, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, 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 may 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 and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are 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, for example, in 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 of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The device 12 may also communicate with one or more external devices 14 (e.g., a keyboard, a pointing device, a display 24, etc.), and 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 cards, modems, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown in FIG. 6, the network adapter 20 communicates with the other modules of the device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement the screen crack detection method provided by the embodiment of the present invention.
Through the equipment, the problem of overhigh crack detection cost is solved, and the crack detection efficiency and accuracy are improved.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for detecting a screen crack, the method including:
acquiring a screen image of a detected screen, and determining a pixel segmentation threshold of the screen image;
segmenting at least one suspected defect pixel point from the screen image according to the pixel segmentation threshold, and verifying each suspected defect pixel point to determine a real defect pixel point;
and determining the crack information of the tested screen according to the pixel information of the real defective pixel point.
Computer storage media for embodiments of the invention may employ 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. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 the context of 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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 for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in the method for detecting a screen crack provided by any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. 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, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for detecting screen cracks is characterized by comprising the following steps:
acquiring a screen image of a tested screen, and determining a pixel segmentation threshold of the screen image;
dividing at least one suspected defect pixel point from the screen image according to the pixel division threshold value, and verifying each suspected defect pixel point to determine a real defect pixel point;
and determining the crack information of the tested screen according to the pixel information of the real defect pixel points.
2. The method of claim 1, wherein determining the pixel segmentation threshold for the screen image comprises:
carrying out histogram statistics on pixel values of pixel points in the screen image;
determining the ratio of the number of accumulated pixels corresponding to each pixel value to the total number of pixels of the screen image based on the result of the histogram statistics;
determining a gray level representative value of the screen image according to each ratio and a preset pixel number ratio;
determining a pixel segmentation threshold of the screen image based on the gray representative value; wherein the pixel division threshold is greater than the grayscale representative value.
3. The method of claim 1, wherein said verifying each suspected-defect pixel to determine a true-defect pixel comprises:
for each suspected defect pixel point, determining a period pixel point corresponding to the suspected defect pixel point according to a preset distance, and taking a pixel value of the period pixel point as a period 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 real defect pixel points.
4. The method of claim 3, wherein the verifying the suspected-defect pixel according to the periodic pixel value to determine a true-defect pixel comprises:
judging whether the difference value between the pixel value of the suspected defect pixel point and the period pixel value is larger than or equal to a preset difference threshold value or not;
and taking the suspected defect pixel points with the pixel values more than or equal to a preset difference value threshold as real defect pixel points.
5. The method according to claim 3, wherein the preset distance comprises a previous period distance and/or a next period distance, and accordingly, the period pixel value comprises a previous period pixel value and/or a next period pixel value; the verifying the suspected defect pixel points according to the periodic pixel values to determine real defect pixel points comprises:
and verifying the suspected defect pixel points according to the pixel value of the previous period and/or the pixel value of the next period to determine real defect pixel points.
6. The method according to claim 3, wherein the predetermined distance further includes a floating distance range, and accordingly, the determining the periodic pixel point corresponding to the suspected-defect pixel point according to the predetermined distance includes:
determining a central 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 as a periodic pixel point in at least two pixel points with the distance from the central pixel point to meet the floating distance range.
7. The method of claim 1, wherein the determining the crack information of the tested screen according to the pixel information of the real defect pixel point comprises:
when the number of the real defect pixel points is at least two, calculating the pixel distance between any two real defect pixel points according to the position coordinates of the real defect pixel points;
if the pixel distance is smaller than a preset distance threshold, taking a pixel point between two real defect pixel points corresponding to the pixel distance as a real defect pixel point, and determining a crack image;
and determining the crack information of the tested screen according to the crack image.
8. A screen crack detection device, comprising:
the pixel segmentation threshold determination module is used for acquiring a screen image of a detected screen and determining a pixel segmentation threshold of the screen image;
the real defect pixel point determining module is used for segmenting at least one suspected defect pixel point from the screen image according to the pixel segmentation threshold value and verifying each suspected defect pixel point to determine a real 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 real defect pixel point.
9. An apparatus, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method for screen crack detection of any of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the screen crack detection method of any one of claims 1-7 when executed by a computer processor.
CN202010421595.3A 2020-05-18 2020-05-18 Screen crack detection method, device, equipment and storage medium Active CN111612757B (en)

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 true CN111612757A (en) 2020-09-01
CN111612757B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112348773A (en) * 2020-09-28 2021-02-09 歌尔股份有限公司 Screen defect detection method and device and electronic equipment
CN113344068A (en) * 2021-05-31 2021-09-03 北京达佳互联信息技术有限公司 Material processing method and device, electronic equipment and computer readable storage medium
CN113781446A (en) * 2021-09-13 2021-12-10 常州市宏发纵横新材料科技股份有限公司 Method and device for detecting greasy dirt on glass fiber surface, storage medium and electronic equipment
CN114022415A (en) * 2021-10-15 2022-02-08 成都博视广达科技有限责任公司 Liquid crystal display defect detection method based on single-pixel feature clustering cluster establishment
CN114998350A (en) * 2022-08-04 2022-09-02 山东泗水泰和石材有限公司 Stone defect detection method based on image processing
CN115511907A (en) * 2022-11-24 2022-12-23 深圳市晶台股份有限公司 Scratch detection method for LED screen
CN115631198A (en) * 2022-12-21 2023-01-20 深圳新视智科技术有限公司 Crack detection method and device for glass display screen and computer equipment
WO2023142438A1 (en) * 2022-01-25 2023-08-03 众安在线财产保险股份有限公司 Method for recognizing broken screen of terminal, and related device

Citations (5)

* Cited by examiner, † Cited by third party
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
US20170278232A1 (en) * 2016-03-23 2017-09-28 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
CN108280822A (en) * 2017-12-20 2018-07-13 歌尔科技有限公司 The detection method and device of screen cut
CN110111711A (en) * 2019-04-30 2019-08-09 京东方科技集团股份有限公司 The detection method and device of screen, computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
US20170278232A1 (en) * 2016-03-23 2017-09-28 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
CN108280822A (en) * 2017-12-20 2018-07-13 歌尔科技有限公司 The detection method and device of screen cut
CN110111711A (en) * 2019-04-30 2019-08-09 京东方科技集团股份有限公司 The detection method and device of screen, computer readable storage medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112348773A (en) * 2020-09-28 2021-02-09 歌尔股份有限公司 Screen defect detection method and device and electronic equipment
CN112348773B (en) * 2020-09-28 2022-09-23 歌尔股份有限公司 Screen defect detection method and device and electronic equipment
CN113344068A (en) * 2021-05-31 2021-09-03 北京达佳互联信息技术有限公司 Material processing method and device, electronic equipment and computer readable storage medium
CN113344068B (en) * 2021-05-31 2023-10-17 北京达佳互联信息技术有限公司 Material processing method, device, electronic equipment and computer readable storage medium
CN113781446A (en) * 2021-09-13 2021-12-10 常州市宏发纵横新材料科技股份有限公司 Method and device for detecting greasy dirt on glass fiber surface, storage medium and electronic equipment
CN114022415A (en) * 2021-10-15 2022-02-08 成都博视广达科技有限责任公司 Liquid crystal display defect detection method based on single-pixel feature clustering cluster establishment
WO2023142438A1 (en) * 2022-01-25 2023-08-03 众安在线财产保险股份有限公司 Method for recognizing broken screen of terminal, and related device
CN114998350A (en) * 2022-08-04 2022-09-02 山东泗水泰和石材有限公司 Stone defect detection method based on image processing
CN115511907A (en) * 2022-11-24 2022-12-23 深圳市晶台股份有限公司 Scratch detection method for LED screen
CN115631198A (en) * 2022-12-21 2023-01-20 深圳新视智科技术有限公司 Crack detection method and device for glass display screen and computer equipment
CN115631198B (en) * 2022-12-21 2023-08-08 深圳新视智科技术有限公司 Crack detection method and device for glass display screen and computer equipment

Also Published As

Publication number Publication date
CN111612757B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN111612757B (en) Screen crack detection method, device, equipment and storage medium
US11587219B2 (en) Method and apparatus for detecting pixel defect of optical module, and device
CN111246204B (en) Relative brightness deviation-based dirt detection method and device
CN103217436B (en) Backlight module group defect detection method and equipment
JP4528850B2 (en) Defect detection apparatus, defect detection method, defect detection program, and computer-readable recording medium recording the program
WO2021036280A1 (en) Positioning method and apparatus, and storage medium
CN116309518A (en) PCB (printed circuit board) detection method and system based on computer vision
CN112070762A (en) Mura defect detection method and device for liquid crystal panel, storage medium and terminal
CN111369492B (en) Display screen detection method, detection device and detection system
CN113902697A (en) Defect detection method and related device
CN1898555A (en) Substrate inspection device
CN117274211A (en) Screen defect detection method and device, terminal equipment and storage medium
CN117589770A (en) PCB patch board detection method, device, equipment and medium
Mo et al. Digital multimeter reading recognition for automation verification
CN110672631B (en) Panel defect photographing method and panel defect photographing device
CN113888533A (en) Defect recognition device and method for display panel, electronic device and medium
CN111292300B (en) Method and apparatus for detecting bright spot defect of display panel, and readable storage medium
CN110874837B (en) Defect automatic detection method based on local feature distribution
CN108447107B (en) Method and apparatus for generating video
CN113012137A (en) Panel defect inspection method, system, terminal device and storage medium
CN116993654B (en) Camera module defect detection method, device, equipment, storage medium and product
CN111768357A (en) Image detection method and device
CN114627114B (en) Method, system, device and medium for measuring severity of product defect
CN114112323B (en) Detection method and detection device for display uniformity of display panel
CN113865488B (en) Distance measuring method, electronic equipment and computer readable storage medium

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