CN115937212A - Glass plate crack detection method, device, equipment and medium - Google Patents

Glass plate crack detection method, device, equipment and medium Download PDF

Info

Publication number
CN115937212A
CN115937212A CN202310079413.2A CN202310079413A CN115937212A CN 115937212 A CN115937212 A CN 115937212A CN 202310079413 A CN202310079413 A CN 202310079413A CN 115937212 A CN115937212 A CN 115937212A
Authority
CN
China
Prior art keywords
crack
target glass
area
glass plate
detection
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
CN202310079413.2A
Other languages
Chinese (zh)
Other versions
CN115937212B (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.)
Chengdu Shuzhilian Technology Co Ltd
Original Assignee
Chengdu Shuzhilian Technology 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 Chengdu Shuzhilian Technology Co Ltd filed Critical Chengdu Shuzhilian Technology Co Ltd
Priority to CN202310079413.2A priority Critical patent/CN115937212B/en
Publication of CN115937212A publication Critical patent/CN115937212A/en
Application granted granted Critical
Publication of CN115937212B publication Critical patent/CN115937212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P40/00Technologies relating to the processing of minerals
    • Y02P40/50Glass production, e.g. reusing waste heat during processing or shaping
    • Y02P40/57Improving the yield, e-g- reduction of reject rates

Abstract

The application discloses a glass plate crack detection method, a glass plate crack detection device, glass plate crack detection equipment and a glass plate crack detection medium, relates to the technical field of glass plate detection, and is used for solving the technical problem that crack defects of broken glass plates cannot be accurately detected in the prior art, so that the quality of the glass plates is influenced. The method comprises the steps of firstly, obtaining a detection area of a target glass plate based on a segmentation threshold value; the segmentation threshold is obtained by a plurality of historical glass plates; then, based on the gray threshold of the detection area, the detection area of the target glass plate is segmented to obtain a primary screening crack area of the target glass plate; and then comparing the average gray scale value of the primary screening crack area of the target glass plate with the average gray scale value of the non-crack area of the target glass plate to obtain the final crack area of the target glass plate. By the method, the area containing the fragment crack can be gradually reduced, and the fragment crack defect can be more accurately detected in a smaller area.

Description

Glass plate crack detection method, device, equipment and medium
Technical Field
The application relates to the technical field of glass plate detection, in particular to a glass plate crack detection method, device, equipment and medium.
Background
The panel industry is developed vigorously, the market demand is continuously increased, the production efficiency is improved, the productivity is increased, the production cost is reduced, and the product quality is a great development trend. The carrier of the panel is glass, and in a complex process production flow, the breakage (fragment or crack) of the glass carrier plate directly causes the complete scrapping of the glass, which is the most serious defect. Therefore, it is necessary to detect cracks in the broken glass sheet.
However, the prior art cannot accurately detect the crack defects of the broken glass plate, thereby affecting the quality of the glass plate.
Disclosure of Invention
The application mainly aims to provide a glass plate crack detection method, a glass plate crack detection device, glass plate crack detection equipment and a glass plate crack detection medium, and aims to solve the technical problem that in the prior art, the crack defect of broken glass plates cannot be accurately detected, so that the quality of the glass plates is influenced.
To achieve the above object, a first aspect of the present application provides a glass sheet crack detection method, the method comprising:
based on the segmentation threshold, obtaining a detection area corresponding to the target glass plate on the target glass carrier plate image; the segmentation threshold is obtained based on pixel statistics of a plurality of glass carrier plate images;
dividing the detection area of the target glass plate based on the gray threshold of the detection area to obtain a primary screening crack area of the target glass plate;
comparing the average gray value of the primary screening crack area of the target glass plate with the average gray value of the non-crack area of the target glass plate to obtain a final crack area of the target glass plate; wherein the non-crack region is a region outside of the prescreened crack region of the target glass sheet.
Optionally, the obtaining a detection area corresponding to the target glass plate on the target glass carrier plate image based on the segmentation threshold includes:
based on a segmentation threshold value, acquiring a circumscribed rectangular frame of the edge of the target glass plate on the target glass carrier plate image;
and obtaining the detection area based on the circumscribed rectangle frame.
According to the segmentation threshold, firstly, an external rectangular frame on the target glass carrier plate image is obtained, and then, the detection area is obtained according to the external rectangular frame.
Optionally, the obtaining the detection area based on the circumscribed rectangle frame includes:
obtaining a detection edge of the target glass plate based on the circumscribed rectangular frame;
based on the detected edge, a first detection area of the target glass sheet is obtained.
According to the external rectangular frame, the detection edge of the target glass plate is firstly obtained, then the first detection area is obtained according to the detection edge, and therefore the crack area of the target glass plate is located in the detection edge, and therefore the crack area can be located in the first detection area.
Optionally, the obtaining the detected edge of the target glass plate based on the circumscribed rectangle frame includes:
and cutting off four cut corners of the circumscribed rectangular frame at the edge of the target glass plate to obtain the detected edge of the target glass plate.
Because the positions of four vertexes of the glass edge are cut off in actual production, accurate pixel coordinates of the four vertexes of the glass edge need to be extracted, a vertex corner cutting area is drawn, the four corners of the edge are cut off from an obtained external rectangular image, and a detected edge can be obtained more accurately.
Optionally, the obtaining a first detection area of the target glass sheet based on the detected edge includes:
and sequentially and inwards expanding the detection edge of the target glass plate by a preset number of pixels to obtain a first detection area of the target glass plate.
The detection edge is sequentially expanded inwards to preset the pixels according to actual conditions to obtain a first detection area, and the range in the detection edge can be reduced after the preset pixels are expanded inwards, so that the first detection area can be obtained more accurately.
Optionally, the sequentially extending the detected edge of the target glass plate inward by a preset number of pixels to obtain a first detection area of the target glass plate includes:
and sequentially expanding the four sides of the detection edge of the target glass plate inwards by twenty pixels so as to obtain a first detection area of the target glass plate.
"inwardly spread" means spreading toward the center of the target glass plate, and the area where the crack region is located can be further reduced by setting a predetermined number of pixels to twenty pixels.
Optionally, after the step of obtaining a first detection area of the target glass sheet based on the detected edge, the method further comprises:
cutting a clamping area of the first detection area of the target glass plate to obtain a second detection area; the area fraction of glass sheet cracks in the second inspection area is higher than the area fraction of glass sheet cracks in the first inspection area;
the segmenting the detection area of the target glass sheet based on the gray level threshold of the detection area to obtain a primary screening crack area of the target glass sheet comprises:
and segmenting the second detection area of the target glass plate based on the gray threshold of the second detection area to obtain a primary screening crack area of the target glass plate.
In actual production, glass moves through the clamping structure, clamping areas with the same size are formed in four fixing positions of each piece of glass, therefore, the clamping area of the first detection area of the target glass plate needs to be cut off, the first detection area after the clamping area is cut off is the second detection area, the range of the obtained second detection area is more simplified than that of the first detection area, and therefore the area where the crack area is located is further reduced.
Optionally, before the step of segmenting the second detection area of the target glass sheet based on the gray threshold of the second detection area to obtain the primary screening crack area of the target glass sheet, the method further comprises:
and calculating the average gray value of the second detection area to obtain the gray threshold of the second detection area.
The average gray value of the second detection area may include information of all gray values of the second detection area, and therefore, the gray threshold value may be obtained by averaging the gray values, so that the gray threshold value of the second detection area may be more accurate.
Optionally, the calculating an average grayscale value of the second detection region to obtain a grayscale threshold of the second detection region includes:
and calculating the average gray value of the second detection area, and taking one half of the average gray value of the second detection area as the gray threshold of the second detection area.
A preferred way of obtaining the gray threshold is to use half of the average gray value of the second detection area as the gray threshold, so that the gray threshold of the second detection area can be obtained more easily and accurately.
Optionally, the comparing the average grayscale value of the primary screen crack region of the target glass sheet with the average grayscale value of the non-crack region of the target glass sheet to obtain the final crack region of the target glass sheet comprises:
and filtering a region with the average gray value of the central region of the primary screening crack region higher than the average gray value of the non-crack region by a preset proportion to obtain the final crack region of the target glass plate.
And after the primary screening crack region is obtained, filtering a region with the average gray value of the central region of the primary screening crack region higher than the average gray value of the non-crack region by a preset proportion, so that the obtained final crack region is more accurate and clearer.
Optionally, the filtering a region in which the average gray scale value of the central region of the primary screening crack region is higher than the average gray scale value of the non-crack region by a preset ratio to obtain a final crack region of the target glass sheet includes:
filtering regions in which the mean gray value of the central region of the primary screen crack region is higher than one-half of the mean gray value of the non-crack region to obtain a final crack region of the target glass sheet.
An optimal value of a preset proportion, namely one half, is given, the area where the average gray value of the central area of the primary screening crack area is higher than one half of the average gray value of the non-crack area is filtered, and the area where the crack area is located can be further reduced and defined, so that a more accurate crack area can be obtained through the final crack area, and the quality of the target glass plate can be greatly improved after the crack area of the target glass plate is processed.
Optionally, before the step of obtaining a detection area corresponding to the target glass plate on the target glass carrier plate image based on the segmentation threshold, the method further includes:
based on a plurality of glass carrier plate images, acquiring a range of a first gray value of an actual edge of a glass plate in the plurality of glass carrier plate images and acquiring a range of a second gray value of a black edge of the glass plate in the plurality of glass carrier plate images;
obtaining a segmentation threshold value based on the range of the first gray value and the range of the second gray value; the segmentation threshold is greater than the second grayscale value and less than the first grayscale value.
The determination of the distribution of the first gray value of the actual edge of the glass plate and the second gray value range of the black edge of the image is a statistical process, that is, the gray values of the black edge and the actual glass edge under the same production and photographing environment of hundreds of sheets are counted, the second gray value distribution range of the black edge of the image and the first gray value distribution range of the actual edge can be obtained, the middle value of two types of gray value ranges (namely the range of the first gray value and the range of the second gray value) is selected as a segmentation threshold, and a large number of glass plates are counted, so that a more accurate segmentation threshold can be obtained.
In a second aspect, the present application provides a glass sheet crack detection apparatus, the apparatus comprising:
the obtaining module is used for obtaining a detection area corresponding to the target glass plate on the target glass carrier plate image based on the segmentation threshold value; the segmentation threshold is obtained based on pixel statistics of a plurality of glass carrier plate images;
the segmentation module is used for segmenting the detection area of the target glass plate based on the gray threshold of the detection area so as to obtain a primary screening crack area of the target glass plate;
the comparison module is used for comparing the average gray value of the primary screening crack area of the target glass plate with the average gray value of the non-crack area of the target glass plate so as to obtain the final crack area of the target glass plate; wherein the non-cracked region is a region outside of the prescreened cracked region of the target glass sheet.
In a third aspect, the present application provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method described in the embodiment.
In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein a processor executes the computer program to implement the method described in the embodiments.
Through above-mentioned technical scheme, this application has following beneficial effect at least:
the method, the device, the equipment and the medium for detecting the cracks of the glass plate, which are provided by the embodiment of the application, comprise the steps of obtaining a detection area corresponding to a target glass plate on a target glass carrier plate image based on a segmentation threshold value; the segmentation threshold is obtained by performing pixel statistics on a plurality of glass carrier plate images; dividing the detection area of the target glass plate based on the gray threshold of the detection area to obtain a primary screening crack area of the target glass plate; comparing the average gray value of the primary screening crack area of the target glass plate with the average gray value of the non-crack area of the target glass plate to obtain a final crack area of the target glass plate; wherein the non-cracked region is a region outside of the prescreened cracked region of the target glass sheet.
When the crack area of the target glass plate needs to be detected, the detection area of the target glass plate is obtained according to the segmentation threshold value obtained in advance, then the detection area is segmented according to the gray threshold value of the detection area so as to obtain the primary screening crack area of the target glass plate, and finally the average gray value of the primary screening crack area and the average gray value of the non-crack area are compared so as to obtain the final crack area of the target glass plate.
Namely, according to the method, a detection area of the target glass plate containing the fragment crack is found through a segmentation threshold value obtained in advance, a primary screening crack area containing the fragment crack is found in the detection area, and finally a final crack area is found in the primary screening crack area according to average threshold value comparison. Therefore, the area containing the fragment cracks can be gradually reduced, the fragment crack defect of the target glass plate can be more accurately detected in a smaller area, and the quality of the target glass plate can be improved.
Drawings
FIG. 1 is a schematic diagram of a computer device in a hardware operating environment according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for crack detection in a glass sheet according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an obtained detection region provided by an embodiment of the present application;
fig. 4 is a schematic flowchart of a specific implementation method of step S10 provided in this embodiment;
FIG. 5 is a schematic diagram of a first corner cut of a circumscribed rectangle image according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a second corner cut of a circumscribed rectangle image according to an embodiment of the present application;
FIG. 7 is a schematic diagram illustrating a third cut angle of an image of a circumscribed rectangle cut away according to an embodiment of the present application;
FIG. 8 is a schematic diagram illustrating a fourth cut angle of an image of a circumscribed rectangle cut away according to an embodiment of the present application;
FIG. 9 is a schematic view of a second detection region provided in an embodiment of the present application;
FIG. 10 is a schematic diagram of a central area and an edge non-fragment area of a fragment according to an embodiment of the present disclosure;
FIG. 11 is a schematic view of a final crack region provided by an embodiment of the present application;
FIG. 12 is a schematic view of a glass sheet crack detection apparatus according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The panel industry is developed vigorously, the market demand is continuously increased, the production efficiency is improved, the productivity is increased, the production cost is reduced, and the product quality is a great development trend. With the wide application of artificial intelligence in industrial defect detection, an automatic defect detection and classification system (ADC) based on image processing can replace the original manual visual spot inspection mode, and comprehensive and efficient detection of product quality is realized. The carrier of the panel is glass, and in a complex process production flow, the breakage (fragment or crack) of the glass carrier plate can directly cause the complete scrapping of the glass carrier plate, which is the most serious defect, and the ADC system is required to detect 100% of fragment crack defects, and the omission ratio is 0%. However, the crack defect of the glass plate cannot be accurately detected at present, thereby affecting the quality of the glass plate.
In order to solve the technical problems, the application provides a glass plate crack detection method, a device, equipment and a medium, and before a specific technical scheme of the application is introduced, a hardware operating environment related to the scheme of the embodiment of the application is introduced.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a computer device in a hardware operating environment according to an embodiment of the present application.
As shown in fig. 1, the computer apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001 described previously.
Those skilled in the art will appreciate that the configuration shown in FIG. 1 does not constitute a limitation of a computer device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a data storage module, a network communication module, a user interface module, and an electronic program.
In the computer device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the computer apparatus of the present application may be provided in a computer apparatus that calls the glass sheet crack detection device stored in the memory 1005 through the processor 1001 and executes the glass sheet crack detection method provided by the embodiment of the present application.
Referring to fig. 2, an embodiment of the present application provides a glass sheet crack detection method based on the hardware environment of the foregoing embodiment, the method comprising:
s10: based on the segmentation threshold, obtaining a detection area corresponding to the target glass plate on the target glass carrier plate image; the segmentation threshold is obtained based on pixel statistics of a plurality of glass carrier plate images.
In the implementation process, the target glass plate is a glass plate which needs to be subjected to crack detection, and the division threshold is obtained by counting pixels of a plurality of glass carrier plate images, for example, counting pixel ranges of a plurality of glass carrier plate images, and then selecting a boundary of the pixel ranges according to actual conditions, and taking the boundary as the division threshold. Therefore, a more accurate segmentation threshold value can be obtained, and a more accurate detection area of the target glass plate is finally obtained; as shown in fig. 3, fig. 3 is a schematic diagram of an obtained detection area provided in the embodiment of the present application.
S11: and dividing the detection area of the target glass plate based on the gray threshold of the detection area to obtain a primary screening crack area of the target glass plate.
In a specific implementation process, a gray threshold of the detection area can be set according to actual requirements, and the detection threshold is divided according to the gray threshold of the detection area so as to obtain a primary screening crack area of the target glass plate, wherein the primary screening crack area can be regarded as a suspected fragment crack area of the target glass plate. After the primary screening crack area is obtained, the area range of the crack of the target glass plate can be further reduced, so that the final crack area can be further found.
S12: comparing the average gray value of the primary screening crack area of the target glass plate with the average gray value of the non-crack area of the target glass plate to obtain a final crack area of the target glass plate; wherein the non-cracked region is a region outside of the prescreened cracked region of the target glass sheet.
In the specific implementation process, after the primary screening crack area is obtained, the final crack area of the target glass plate is obtained by comparing the average gray value of the primary screening crack area with the average gray value of the area outside the primary screening crack, namely the non-crack area, and the range of the final crack area is smaller than that of the primary screening crack area, so that the range of the area where the crack of the target glass plate is located can be further reduced, and the crack of the target glass plate can be more accurately detected.
In this embodiment, when a crack region of a target glass plate needs to be detected, a detection region of the target glass plate is obtained according to a segmentation threshold obtained in advance, the detection region is segmented according to a grayscale threshold of the detection region so as to obtain a primary screening crack region of the target glass plate, and finally, the average grayscale values of the primary screening crack region and a non-crack region are compared so as to obtain a final crack region of the target glass plate. Namely, according to the method, the detection area of the target glass plate containing the fragment cracks is found through the segmentation threshold value obtained in advance, then the primary screening crack area containing the fragment cracks is found in the detection area, and finally the final crack area is found in the primary screening crack area according to the average threshold value comparison. Therefore, the area containing the fragment cracks can be gradually reduced, the fragment crack defect of the target glass plate can be more accurately detected in a smaller area, and the quality of the target glass plate can be improved.
In some embodiments, a preferred method for how to obtain the segmentation threshold is given, that is, before the step of obtaining the detection area corresponding to the target glass plate on the target glass carrier plate image based on the segmentation threshold, the method further comprises:
based on a plurality of glass carrier plate images, acquiring a range of a first gray value of an actual edge of a glass plate in the plurality of glass carrier plate images and acquiring a range of a second gray value of a black edge of the glass plate in the plurality of glass carrier plate images; obtaining a segmentation threshold value based on the range of the first gray value and the range of the second gray value; the segmentation threshold is greater than the second grayscale value and less than the first grayscale value.
In this example, the glass sheet of the present example is referred to as a history glass sheet, and the history glass sheet is referred to as a glass sheet before a target glass sheet. The determination of the distribution of the first gray value of the actual edge of the historical glass plate and the second gray value range of the black edge of the image is a statistical process, namely, the gray values of the black edge and the actual glass edge under the same production and photographing environment of hundreds of sheets are counted, the second gray value distribution range of the black edge of the image and the first gray value distribution range of the actual edge can be obtained, and the middle value of the two gray value ranges (namely the range of the first gray value and the range of the second gray value) is selected as a segmentation threshold; wherein "intermediate value" is understood to mean that all black-edge pixel gray values (second gray values) are below the intermediate value, i.e. all second gray values are smaller than the segmentation threshold; all the pixel gray values (first gray values) of the actual edge of the glass are above the segmentation threshold, i.e. all the first gray values are greater than the segmentation threshold; due to the fact that a large number of historical glass plates are counted, the segmentation threshold can be obtained more accurately in the mode.
In some embodiments, as shown in fig. 4, a preferred method for obtaining an inspection area is given, that is, obtaining an inspection area corresponding to a target glass plate on a target glass carrier plate image based on a segmentation threshold, including:
s101: and obtaining a circumscribed rectangular frame of the edge of the target glass plate on the target glass carrier plate image based on the segmentation threshold.
In the specific implementation process, the target glass plate is subjected to binarization segmentation based on the segmentation threshold value, so that the edge of the target glass plate can be obtained, and then the four edges of the target glass plate are extracted, so that the circumscribed rectangle image can be formed.
S102: and obtaining the detection area based on the circumscribed rectangle frame.
In a specific implementation process, obtaining a detection edge of the target glass plate based on the circumscribed rectangular frame; based on the detected edge, a first detection area of the target glass sheet is obtained.
Wherein the obtaining a detected edge of the target glass sheet based on the circumscribed rectangle frame comprises: and cutting off four cut corners of the circumscribed rectangular image of the edge of the target glass plate to obtain the detected edge of the target glass plate. As shown in fig. 5-8, fig. 5 is a schematic diagram of a first corner cut of a circumscribed rectangle image according to an embodiment of the present application; FIG. 6 is a schematic diagram of a second corner cut of a circumscribed rectangle image according to an embodiment of the present application; FIG. 7 is a schematic diagram illustrating a third cut angle of an image of a circumscribed rectangle cut away according to an embodiment of the present application; FIG. 8 is a schematic diagram illustrating a fourth corner cut of an image of a circumscribed rectangle cut according to an embodiment of the present application; because the positions of four vertexes of the glass edge are cut off in actual production, accurate pixel coordinates of the four vertexes of the glass edge need to be extracted, a vertex corner cutting area is drawn, the four corners of the edge are cut off from an obtained external rectangular image, and the detected edge of the target glass plate can be obtained.
The obtaining a first detection area of the target glass sheet based on the detected edge comprises: and sequentially and inwards expanding the detection edge of the target glass plate by a preset number of pixels to obtain a first detection area of the target glass plate. The preset number of pixels may be set according to actual needs, for example, the preset number of pixels may be twenty pixels, that is, four sides of the detection edge of the target glass plate are sequentially extended inward by twenty pixels to obtain the first detection area of the target glass plate, where "extended inward" refers to extension toward the center of the target glass plate. In conclusion, the range of the corresponding part on the target glass carrier plate image can be narrowed and defined by the external rectangular frame, so that a more accurate detection area can be obtained; since the crack region of the target glass sheet is located within the detection edge, it is possible to more surely locate the crack region within the first detection region.
In some embodiments, after the step of obtaining a first detection area of the target glass sheet based on the detected edge of the target glass sheet, further comprising: cutting a clamping area of the first detection area of the target glass plate to obtain a second detection area; the area fraction of glass sheet cracks in the second inspection area is higher than the area fraction of glass sheet cracks in the first inspection area;
the segmenting the detection area of the target glass sheet based on the gray level threshold of the detection area to obtain a primary screening crack area of the target glass sheet comprises: and dividing the second detection area of the target glass plate based on the gray threshold of the second detection area to obtain a primary screening crack area of the target glass plate.
In this embodiment, in actual production, glass moves through the clamping structure, and each piece of glass has clamping areas with the same size at four sides fixed position, so that the clamping area of the first detection area of the target glass plate needs to be cut off, the first detection area after the clamping area is cut off is the second detection area, and the obtained second detection area is more simplified than the range of the first detection area, thereby further reducing the area where the crack area is located, as shown in fig. 9, fig. 9 is a schematic diagram of the second detection area provided in the embodiment of the present application. And then calculating the average gray value of the second detection area to obtain the gray threshold of the second detection area. The grayscale threshold may be set according to an actual situation, for example, one half of the average grayscale value of the second detection area is used as the grayscale threshold of the second detection area, and then the second detection area of the target glass plate is divided based on the grayscale threshold of the second detection area, so as to obtain the primary screening crack area of the target glass plate. Since the average gray value of the second detection region may include information of all gray values of the second detection region, the gray threshold value may be obtained by averaging the gray values, so that the gray threshold value of the second detection region may be more accurate.
In some embodiments, a preferred method of obtaining a final flaw region is given by comparing the average gray scale value of the prescreened flaw region of the target glass sheet to the average gray scale value of the non-flaw region of the target glass sheet to obtain the final flaw region of the target glass sheet, comprising: and filtering a region with the average gray value of the central region of the primary screening crack region higher than the average gray value of the non-crack region by a preset proportion to obtain the final crack region of the target glass plate.
In this embodiment, as shown in fig. 10, fig. 10 is a schematic diagram of a central area and an edge non-fragment area of a fragment provided in the embodiment of the present application. The preset proportion may be set according to actual needs, for example, the preset proportion is set to be one half, that is, a region where the average gray value of the central region (the fragment central region) of the primary screening crack region is higher than one half of the average gray value of the non-crack region (the edge non-fragment region) is filtered to obtain the final crack region of the target glass plate, so that the region where the crack region is located may be further reduced and defined, and thus a more accurate crack region may be obtained through the final crack region, and after the crack region of the target glass plate is processed, the quality of the target glass plate may be greatly improved, as shown in fig. 11, fig. 11 is a schematic diagram of the final crack region provided in the embodiment of the present application.
In summary, the true incidence of fragment cracks is extremely low, the collection of samples is difficult, and if a deep learning scheme is used for detecting the defects, a large number of training samples are required, and the feasibility is not achieved in reality. According to the method, the characteristic of image edge gray value distribution is utilized, and a computer vision processing method is combined, so that the area range of the crack defect is greatly reduced, the functions of detecting and positioning the crack defect of the broken piece of the carrier plate are realized, and the crack defect of the broken piece of the target glass plate in the panel production can be more accurately detected.
In another embodiment, as shown in fig. 12, based on the same inventive concept as the previous embodiment, an embodiment of the present application further provides a glass sheet crack detecting apparatus, including:
the acquisition module is used for acquiring a detection area corresponding to the target glass plate on the target glass carrier plate image based on the segmentation threshold; the segmentation threshold is obtained based on pixel statistics of a plurality of glass carrier plate images;
the segmentation module is used for segmenting the detection area of the target glass plate based on the gray threshold of the detection area so as to obtain a primary screening crack area of the target glass plate;
the comparison module is used for comparing the average gray value of the primary screening crack area of the target glass plate with the average gray value of the non-crack area of the target glass plate so as to obtain the final crack area of the target glass plate; wherein the non-cracked region is a region outside of the prescreened cracked region of the target glass sheet.
It should be noted that, in the present embodiment, each module in the glass sheet crack detection apparatus corresponds to each step in the glass sheet crack detection method in the foregoing embodiment one by one, and therefore, the specific implementation and the achieved technical effects of the present embodiment may refer to the implementation of the glass sheet crack detection method, and are not described herein again.
Furthermore, in an embodiment, the present application also provides a computer device, which includes a processor, a memory and a computer program stored in the memory, and when the computer program is executed by the processor, the method in the foregoing embodiment is implemented.
Furthermore, in an embodiment, the present application further provides a computer storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the method in the foregoing embodiment.
In some embodiments, the computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories. The computer may be a variety of computing devices including intelligent terminals and servers.
In some embodiments, executable instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of programs, software modules, scripts or code, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, executable instructions may correspond, but do not necessarily have to correspond, to files in a file system, and may be stored in a portion of a file that holds other programs or data, such as in one or more scripts in a hypertext Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
By way of example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) and includes instructions for enabling a multimedia terminal (e.g., a mobile phone, a computer, a television receiver, or a network device) to execute the method according to the embodiments of the present application.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all the equivalent structures or equivalent processes that can be directly or indirectly applied to other related technical fields by using the contents of the specification and the drawings of the present application are also included in the scope of the present application.

Claims (15)

1. A method of crack detection in a glass sheet, the method comprising:
based on the segmentation threshold, obtaining a detection area corresponding to the target glass plate on the target glass carrier plate image; the segmentation threshold is obtained based on pixel statistics of a plurality of glass carrier plate images;
dividing the detection area of the target glass plate based on the gray threshold of the detection area to obtain a primary screening crack area of the target glass plate;
comparing the average gray value of the primary screening crack area of the target glass plate with the average gray value of the non-crack area of the target glass plate to obtain a final crack area of the target glass plate; wherein the non-crack region is a region outside of the prescreened crack region of the target glass sheet.
2. The glass sheet crack detection method of claim 1, wherein obtaining a detection area corresponding to the target glass sheet on the target glass carrier plate image based on the segmentation threshold comprises:
based on a segmentation threshold value, acquiring an external rectangular frame of the edge of the target glass plate on the target glass carrier plate image;
and obtaining the detection area based on the circumscribed rectangle frame.
3. The glass sheet crack detection method of claim 2, wherein the obtaining the detection area based on the circumscribing rectangular frame comprises:
obtaining a detection edge of the target glass plate based on the circumscribed rectangular frame;
based on the detected edge, a first detection area of the target glass sheet is obtained.
4. The glass sheet crack detection method of claim 3, wherein the obtaining the detected edge of the target glass sheet based on the circumscribing rectangular frame comprises:
and cutting off four cut corners of the circumscribed rectangular frame at the edge of the target glass plate to obtain the detected edge of the target glass plate.
5. The glass sheet crack detection method of claim 3, wherein the obtaining a first detection area of the target glass sheet based on the detected edge comprises:
and sequentially and inwards expanding the detection edge of the target glass plate by a preset number of pixels to obtain a first detection area of the target glass plate.
6. The glass sheet crack detection method of claim 5, wherein the expanding the detected edge of the target glass sheet sequentially inward by a predetermined number of pixels to obtain a first detected region of the target glass sheet comprises:
and sequentially expanding the four sides of the detection edge of the target glass plate inwards by twenty pixels so as to obtain a first detection area of the target glass plate.
7. The glass sheet crack detection method of claim 3, further comprising, after the step of obtaining a first detection region of the target glass sheet based on the detected edge:
cutting a clamping area of the first detection area of the target glass plate to obtain a second detection area; the area fraction of glass sheet flaws in the second detection zone is higher than the area fraction of glass sheet flaws in the first detection zone;
the segmenting the detection area of the target glass sheet based on the gray threshold of the detection area to obtain a primary screen crack area of the target glass sheet comprises:
and segmenting the second detection area of the target glass plate based on the gray threshold of the second detection area to obtain a primary screening crack area of the target glass plate.
8. The glass sheet flaw detection method of claim 7, further comprising, prior to the step of segmenting the second detection area of the target glass sheet based on a gray scale threshold of the second detection area to obtain a prescreened flaw area of the target glass sheet:
and calculating the average gray value of the second detection area to obtain the gray threshold of the second detection area.
9. The glass sheet flaw detection method of claim 8, wherein the calculating an average grayscale value for the second detection region to obtain a grayscale threshold for the second detection region comprises:
and calculating the average gray value of the second detection area, and taking one half of the average gray value of the second detection area as the gray threshold of the second detection area.
10. The glass sheet flaw detection method of claim 1, wherein the comparing the average grayscale value of the prescreened flaw region of the target glass sheet to the average grayscale value of the non-flaw region of the target glass sheet to obtain the final flaw region of the target glass sheet comprises:
and filtering a region with the average gray value of the central region of the primary screening crack region higher than the average gray value of the non-crack region by a preset proportion to obtain the final crack region of the target glass plate.
11. The glass sheet crack detection method of claim 10, wherein filtering regions having a higher average gray scale value in a central region of the primary screen crack region than a predetermined proportion of the average gray scale value in the non-crack region to obtain a final crack region of the target glass sheet comprises:
and filtering a region of which the average gray value of the central region of the primary screening crack region is higher than one half of the average gray value of the non-crack region to obtain a final crack region of the target glass plate.
12. The glass sheet crack detection method of any of claims 1-11, further comprising, prior to the step of obtaining a detection area corresponding to the target glass sheet on the target glass carrier plate image based on the segmentation threshold,:
based on a plurality of glass carrier plate images, acquiring a range of a first gray value of an actual edge of a glass plate in the plurality of glass carrier plate images and a range of a second gray value of a black edge of the glass plate in the plurality of glass carrier plate images;
obtaining a segmentation threshold value based on the range of the first gray value and the range of the second gray value; the segmentation threshold is greater than the second grayscale value and less than the first grayscale value.
13. A glass sheet crack detection device, the device comprising:
the acquisition module is used for acquiring a detection area corresponding to the target glass plate on the target glass carrier plate image based on the segmentation threshold; the segmentation threshold is obtained based on pixel statistics of a plurality of glass carrier plate images;
the segmentation module is used for segmenting the detection area of the target glass plate based on the gray threshold of the detection area so as to obtain a primary screening crack area of the target glass plate;
a comparison module for comparing the average gray value of the primary screen crack area of the target glass plate with the average gray value of the non-crack area of the target glass plate to obtain a final crack area of the target glass plate; wherein the non-cracked region is a region outside of the prescreened cracked region of the target glass sheet.
14. A computer arrangement, characterized in that the computer arrangement comprises a memory in which a computer program is stored and a processor which executes the computer program for implementing the method as claimed in any one of claims 1-12.
15. A computer-readable storage medium, having stored thereon a computer program, which, when executed by a processor, performs the method of any one of claims 1-12.
CN202310079413.2A 2023-02-08 2023-02-08 Glass plate crack detection method, device, equipment and medium Active CN115937212B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310079413.2A CN115937212B (en) 2023-02-08 2023-02-08 Glass plate crack detection method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310079413.2A CN115937212B (en) 2023-02-08 2023-02-08 Glass plate crack detection method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN115937212A true CN115937212A (en) 2023-04-07
CN115937212B CN115937212B (en) 2023-05-09

Family

ID=85823706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310079413.2A Active CN115937212B (en) 2023-02-08 2023-02-08 Glass plate crack detection method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115937212B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116485350A (en) * 2023-06-20 2023-07-25 山东鲁玻玻璃科技有限公司 Intelligent production system of medium borosilicate glass based on image recognition

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104240252A (en) * 2014-09-22 2014-12-24 电子科技大学 Detecting Algorithm for cracks of surface of high-temperature billet of machine vision bar
CN109886921A (en) * 2019-01-16 2019-06-14 新而锐电子科技(上海)有限公司 Crack size measure, device and electronic equipment based on digital picture
WO2019134252A1 (en) * 2018-01-03 2019-07-11 东南大学 Method and device for automated portrayal and accurate measurement of width of structural crack
CN111179243A (en) * 2019-12-25 2020-05-19 武汉昕竺科技服务有限公司 Small-size chip crack detection method and system based on computer vision
EP3680855A1 (en) * 2019-01-11 2020-07-15 Fujitsu Limited Crack line detection apparatus, crack line detection method, and program
CN111986174A (en) * 2020-08-17 2020-11-24 深圳市商汤科技有限公司 Defect detection method, defect detection device, electronic equipment and computer storage medium
CN113109368A (en) * 2021-03-12 2021-07-13 浙江华睿科技有限公司 Glass crack detection method, device, equipment and medium
CN113240667A (en) * 2021-06-08 2021-08-10 长春汽车工业高等专科学校 Automobile mold plane crack detection method based on image processing
CN113379737A (en) * 2021-07-14 2021-09-10 西南石油大学 Intelligent pipeline defect detection method based on image processing and deep learning and application
CN113822890A (en) * 2021-11-24 2021-12-21 中科慧远视觉技术(北京)有限公司 Microcrack detection method, device and system and storage medium
CN115187602A (en) * 2022-09-13 2022-10-14 江苏骏利精密制造科技有限公司 Injection molding part defect detection method and system based on image processing
CN115311290A (en) * 2022-10-12 2022-11-08 南通市通州区精华电器有限公司 Method for detecting defects of metal parts of precision instrument
CN115631198A (en) * 2022-12-21 2023-01-20 深圳新视智科技术有限公司 Crack detection method and device for glass display screen and computer equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104240252A (en) * 2014-09-22 2014-12-24 电子科技大学 Detecting Algorithm for cracks of surface of high-temperature billet of machine vision bar
WO2019134252A1 (en) * 2018-01-03 2019-07-11 东南大学 Method and device for automated portrayal and accurate measurement of width of structural crack
EP3680855A1 (en) * 2019-01-11 2020-07-15 Fujitsu Limited Crack line detection apparatus, crack line detection method, and program
CN109886921A (en) * 2019-01-16 2019-06-14 新而锐电子科技(上海)有限公司 Crack size measure, device and electronic equipment based on digital picture
CN111179243A (en) * 2019-12-25 2020-05-19 武汉昕竺科技服务有限公司 Small-size chip crack detection method and system based on computer vision
CN111986174A (en) * 2020-08-17 2020-11-24 深圳市商汤科技有限公司 Defect detection method, defect detection device, electronic equipment and computer storage medium
CN113109368A (en) * 2021-03-12 2021-07-13 浙江华睿科技有限公司 Glass crack detection method, device, equipment and medium
CN113240667A (en) * 2021-06-08 2021-08-10 长春汽车工业高等专科学校 Automobile mold plane crack detection method based on image processing
CN113379737A (en) * 2021-07-14 2021-09-10 西南石油大学 Intelligent pipeline defect detection method based on image processing and deep learning and application
CN113822890A (en) * 2021-11-24 2021-12-21 中科慧远视觉技术(北京)有限公司 Microcrack detection method, device and system and storage medium
CN115187602A (en) * 2022-09-13 2022-10-14 江苏骏利精密制造科技有限公司 Injection molding part defect detection method and system based on image processing
CN115311290A (en) * 2022-10-12 2022-11-08 南通市通州区精华电器有限公司 Method for detecting defects of metal parts of precision instrument
CN115631198A (en) * 2022-12-21 2023-01-20 深圳新视智科技术有限公司 Crack detection method and device for glass display screen and computer equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
KANIKA BHALLA 等: "An Adaptive Thresholding Based Method to Locate and Segment Defects on LCD Panels", 《ICSSE》 *
周栋: "晶圆定位视觉检测系统设计", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
蒲富鹏 等: "基于机器视觉的车轮裂纹识别与提取", 《铁道科学与工程学报》 *
闫彬 等: "基于机器视觉技术检测裂纹玉米种子", 《农机化研究》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116485350A (en) * 2023-06-20 2023-07-25 山东鲁玻玻璃科技有限公司 Intelligent production system of medium borosilicate glass based on image recognition
CN116485350B (en) * 2023-06-20 2023-09-01 山东鲁玻玻璃科技有限公司 Intelligent production system of medium borosilicate glass based on image recognition

Also Published As

Publication number Publication date
CN115937212B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN114266773B (en) Display panel defect positioning method, device, equipment and storage medium
JP2024054126A (en) Detection of mura defects in master panels of flat panel displays during manufacturing
CN115578377B (en) Panel defect detection method, training method, device, equipment and medium
CN114202543B (en) Method, device, equipment and medium for detecting dirt defects of PCB (printed circuit board)
CN116542975B (en) Defect classification method, device, equipment and medium for glass panel
CN113646801A (en) Defect detection method and device for defect image and computer readable storage medium
CN115937212A (en) Glass plate crack detection method, device, equipment and medium
CN114022403A (en) Method and device for detecting defects of display panel
CN115661157B (en) Panel circle defect detection method, device, medium, equipment and program product
CN113538603B (en) Optical detection method and system based on array product and readable storage medium
CN114519743A (en) Panel defect area extraction method, device, equipment and storage medium
CN106910195B (en) Webpage layout monitoring method and device
CN108022219B (en) Two-dimensional image gray level correction method
CN112348835A (en) Method and device for detecting material quantity, electronic equipment and storage medium
CN111079730A (en) Method for determining area of sample image in interface image and electronic equipment
CN115861327A (en) PCB color change defect detection method, device, equipment and medium
CN114998217A (en) Method for determining defect grade of glass substrate, computer device and storage medium
WO2022088660A1 (en) Method and apparatus for improving wafer detection sensitivity, and storage medium
CN116091503B (en) Method, device, equipment and medium for discriminating panel foreign matter defects
CN110264489B (en) Image boundary detection method and device and terminal
CN114937037B (en) Product defect detection method, device and equipment and readable storage medium
CN114549346A (en) Blurred image recognition method, device, equipment and storage medium
CN115797314A (en) Part surface defect detection method, system, equipment and storage medium
CN114937003A (en) Multi-type defect detection system and method for glass panel
CN114740284A (en) Method and device for detecting touch screen panel

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