Glass scratch detection method and related device

By automatically processing glass scratch images and calculating the area of ​​scratch profile images, the problem of traditional manual inspection is solved, and efficient and accurate glass scratch resistance performance evaluation is achieved.

CN120213692APending Publication Date: 2025-06-27CAIHONG GRP SHAOYANG SPECIAL GLASS CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202510145505.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-10
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

Traditional glass scratch resistance performance evaluation relies on manual inspection, which has problems such as time-consuming, labor-intensive, subjective and uncertain, making it difficult to meet efficient and rapid production needs.

Method used

A glass scratch detection method is adopted to load glass scratch images, perform binarization processing, contour detection, screening and area calculation, and automatically process glass scratch images, calculate the area of ​​scratch contour images, and save the results.

Benefits of technology

It significantly improves the efficiency of glass scratch detection, reduces the error caused by manual intervention and subjective judgment, and efficiently outputs glass photos marked with scratch area and scratch profile, laying a solid foundation for subsequent processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120213692A_ABST
    Figure CN120213692A_ABST
Patent Text Reader

Abstract

The invention discloses a glass scratch detection method and a related device, and belongs to the technical field of glass scratch detection, the method comprises the following steps: loading a glass scratch image; carrying out binarization processing on the glass scratch image to obtain a glass binary image; performing contour detection on the glass binary image to obtain a contour array; drawing according to the contour array to obtain a glass contour image; screening the glass contour image to obtain a glass scratch contour image and a corresponding contour index; calculating the area corresponding to the glass scratch contour image through the contour index; and matching the area of the glass scratch contour image to the corresponding glass binary image for storage, thereby completing glass scratch detection. According to the invention, the problem that the manual detection of the scratch resistance of the glass cannot be quantified into a visual evaluation result can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of glass scratch detection, and particularly relates to a glass scratch detection method and related device. Background Art

[0002] In the glass manufacturing industry, whether it is laboratory-melted or production-line-melted glass, after processing and strengthening, its scratch resistance is a crucial quality index. This performance is directly related to the service life and safety of glass products. However, traditional methods for evaluating the scratch resistance of glass mainly rely on manual inspection, and this method has many limitations. First of all, the process of manually evaluating the scratch resistance of glass is time-consuming and laborious. Inspectors need to check each piece of glass one by one and judge its scratch resistance through visual inspection or manual scratch tests. With the expansion of production scale and the increase in the variety of glass, this manual inspection method has been difficult to meet the efficient and rapid production requirements. Secondly, manual evaluation is subjective and uncertain. Factors such as the experience, eyesight, and fatigue level of different inspectors may affect the evaluation results, resulting in inconsistencies and inaccuracies in the evaluation results. This subjectivity not only increases the evaluation error but also reduces the reliability of the evaluation results. Summary of the Invention

[0003] The purpose of the present invention is to provide a glass scratch detection method and related device to solve the problem that the manual detection of the scratch resistance of glass cannot be quantified into an intuitive evaluation result.

[0004] To achieve the above object, the present invention adopts the following technical solutions: In the first aspect, a glass scratch detection method includes the following steps: Load a glass scratch image; Perform binarization processing on the glass scratch image to obtain a glass binary image; Perform contour detection on the glass binary image to obtain a contour array; Draw a glass contour image according to the contour array; Screen the glass contour image to obtain a glass scratch contour image and corresponding contour indexes; Calculate the area of the corresponding glass scratch contour image through the contour indexes; Match the area of the glass scratch contour image to the corresponding glass binary image for storage, and complete the glass scratch detection.

[0005] In some embodiments, a polygon approximation algorithm is used to calculate the area of the corresponding glass scratch contour image.

[0006] In the second aspect, a glass scratch detection system includes: An image loading module for loading glass scratch images; A binarization module for binarizing the glass scratch image to obtain a glass binary image; A contour detection module for performing contour detection on the glass binary image to obtain a contour array; A contour drawing module for drawing a glass contour image based on the contour array; A contour screening module for screening the glass contour image to obtain a glass scratch contour image and corresponding contour indices; An area calculation module for calculating the area of the glass scratch contour image corresponding to the contour indices; A scratch detection result output module for matching the area of the glass scratch contour image to the corresponding glass binary image for saving, completing the glass scratch detection.

[0007] In a third aspect, an electronic device includes a memory, a processor, and a computer program stored in the memory and executable in the processor. When the processor executes the computer program, the steps of the glass scratch detection method are implemented.

[0008] In a fourth aspect, a glass scratch detection device includes: a base, a support frame, a servo motor, a glass fixture, a glass hardness detection pen, a weight placement rod, a spiral slide rod, a hollow fixed pen, a microscope, and an electronic device; The support frame is provided on the base, the spiral slide rod is installed on the support frame and connected to the servo motor, the servo motor is provided on the support frame, the hollow fixed pen is installed on the spiral slide rod and the glass hardness detection pen is installed at the end, the weight placement rod is provided on the top of the glass hardness detection pen, the glass fixture is provided on the surface of the base and below the glass hardness detection pen, the microscope is aligned with the glass fixture, and the electronic device is connected to the microscope. During use, the servo motor drives the spiral slide rod to rotate, thereby driving the glass hardness detection pen on the hollow fixed pen to adjust to the detection position, then adjusting the scratch test pressure of the glass hardness detection pen through the weight placement rod and scratching the glass to be tested on the glass fixture with the glass hardness detection pen, and collecting the glass scratch image with the microscope and transmitting it to the electronic device.

[0009] In some embodiments, a fixed groove is provided on the glass fixture, and a limiting strip is provided on the inner edge of the fixed groove, and the limiting strip is made of a rigid material.

[0010] In some embodiments, a position limiter is provided at the connection between the hollow fixed pen and the glass hardness detection pen. During use, the position limiter adjusts and fixes the position of the glass hardness detection pen.

[0011] In some embodiments, the material of the glass hardness detection pen is steel drill rod, diamond or quartz glass.

[0012] In a fifth aspect, a computer-readable storage medium is provided, characterized in that the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the glass scratch detection method are implemented.

[0013] In a sixth aspect, a computer program product is provided. The computer product includes a computer program, characterized in that when the computer program is executed by a processor, the steps of the glass scratch detection method are implemented.

[0014] Compared with the prior art, the present invention has the following beneficial effects: The present invention provides a glass scratch detection method, which loads a glass scratch image; performs binarization processing on the glass scratch image to obtain a glass binary image; performs contour detection on the glass binary image to obtain a contour array; draws a glass contour image according to the contour array; screens the glass contour image to obtain a glass scratch contour image and a corresponding contour index; calculates the area corresponding to the glass scratch contour image through the contour index; matches the area of the glass scratch contour image to the corresponding glass binary image for storage, and completes the glass scratch detection. By automatically processing the glass scratch image through the above steps, the efficiency of glass scratch detection is significantly improved, the errors caused by manual intervention and subjective judgment are reduced, and a glass photo marked with the scratch area and scratch contour is efficiently output, laying a solid foundation for subsequent processes.

[0015] Furthermore, the present invention uses a polygon approximation algorithm to calculate the area of the scratch contour image, improving the accuracy of area calculation and helping to more accurately evaluate the scratch resistance performance of the glass through the scratch.

[0016] The present invention provides a glass scratch detection device. A support frame is arranged on a base, a spiral slide rod is installed on the support frame and connected to a servo motor, the servo motor is arranged on the support frame, a hollow fixed pen is installed on the spiral slide rod and a glass hardness detection pen is installed at the end, a weight placing rod is arranged on the top of the glass hardness detection pen, a glass clamp is arranged on the surface of the base and below the glass hardness detection pen, the microscope is aligned with the glass clamp, and the electronic device is connected to the microscope. Under the action of the servo motor, when the mechanical spiral slide rod makes a uniform linear motion, the glass scratch resistance test is carried out, which can ensure that the force in the scratched glass scratch is the same, and tests with different hardnesses and different forces can be carried out, improving the stability and efficiency of the glass scratch. Description of the Drawings

[0017] Figure 1 It is a schematic structural diagram of a glass scratch detection device provided in this embodiment; Figure 2 Top view of a glass scratch detection device provided in this embodiment; Figure 3 Left view of a glass scratch detection device provided in this embodiment; Figure 4 Flow chart of a glass scratch detection method provided in this embodiment; Figure 5 Structural diagram of a glass scratch detection system provided in this embodiment; Figure 6 Human - machine interaction interface diagram of the glass scratch detection software in a computer of a glass scratch detection device provided in this embodiment; Figure 7 Glass scratch image collected by the microscope adopted in this embodiment; Figure 8 Glass scratch image processed by the glass scratch detection system adopted in this embodiment; In the figure, 1. Base; 2. Support frame; 3. Servo motor; 4. Glass clamp; 5. Glass hardness detection pen; 6. Weight placement rod; 7. Spiral slide rod; 8. Hollow fixed pen. Detailed implementation manners

[0018] In the following, only some exemplary embodiments are simply described. Without departing from the spirit or scope of the present invention, the described embodiments can be modified in various different ways. Therefore, the drawings and the description are regarded as being exemplary rather than restrictive.

[0019] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings. They are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed or operated in a specific orientation. Therefore, they should not be construed as limiting the present invention.

[0020] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, "a plurality" means two or more unless otherwise specifically defined.

[0021] In the present invention, unless otherwise clearly defined and limited, terms such as "installation", "connection", "coupling", "fixation" and the like shall be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or integrated; it may be a mechanical connection, an electrical connection, or a communication connection; it may be a direct connection, or indirectly connected through an intermediate medium, and may be the communication inside two components or the interaction relationship between two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0022] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0023] Embodiment 1 As Figure 1 、 Figure 2 and Figure 3 shown, this embodiment provides a glass scratch detection device, including: a base 1, a support frame 2, a servo motor 3, a glass clamp 4, a glass hardness detection pen 5, a weight placement rod 6, a spiral slide rod 7, a hollow fixed pen 8, a microscope and an electronic device; The support frame 2 is arranged on the base 1, the spiral slide rod 7 is installed on the support frame 2 and connected to the servo motor 3, the servo motor 3 is arranged on the support frame 2, the hollow fixed pen 8 is installed on the spiral slide rod 7 and the glass hardness detection pen 5 is installed at the end, the weight placement rod 6 is arranged on the top of the glass hardness detection pen 5, the glass clamp 4 is arranged on the surface of the base 1 and below the glass hardness detection pen 5, the microscope is aligned with the glass clamp 4, and the electronic device is connected to the microscope. During use, the servo motor 3 drives the spiral slide rod 7 to rotate, so as to drive the glass hardness detection pen 5 on the hollow fixed pen 8 to be adjusted to the detection position, and then the scratch test pressure of the glass hardness detection pen 5 is adjusted through the weight placement rod 6 and the glass to be tested on the glass clamp 4 is scratched by the glass hardness detection pen 5. The microscope is used to collect the glass scratch image and transmit it to the electronic device. As Figure 7 shown, it is a photo of the glass scratch taken by the microscope in this embodiment.

[0024] Specifically, a fixed groove is arranged on the glass clamp 4, and a limiting strip is arranged on the inner edge of the fixed groove, and the limiting strip is made of a rigid material.

[0025] Specifically, a position limiter is arranged at the connection of the hollow fixed pen 8 and the glass hardness detection pen 5. During use, the position limiter adjusts the position of the glass hardness detection pen 5 and fixes it.

[0026] Specifically, the material of the glass hardness detection pen 5 is steel drill rod, diamond or quartz glass.

[0027] This embodiment also provides a method for detecting glass scratches, which uses glass scratch detection software to process glass scratch images. The algorithm of the glass scratch detection software is built based on Java in the OpenCv environment. As Figure 6 shown, it is the graphical human-computer interaction interface of the glass scratch detection software. After obtaining the glass scratch photo taken under the microscope, click "Load" to view the glass photo. Click "Contour Drawing", and all contour drawing results can be seen in the left picture box. Click "Contour Analysis" to obtain the filtered glass scratch contour map and display it in the right box. Click the "Output" button to output the glass scratch photo marked with the contour area of the glass scratch. The method for detecting glass scratches includes the following steps, as Figure 4 shown: S1, Load the glass scratch image stored in a fixed position; S2, Perform binarization processing on the glass scratch image to obtain a glass binary image; S3, Perform contour detection on the glass binary image to obtain a contour array; S4, Draw a glass contour image according to the contour array; S5, Screen the glass contour image to obtain a glass scratch contour image and the corresponding contour index; S6, Calculate the area of the corresponding glass scratch contour image through the contour index; where the area of the glass scratch contour image is calculated using the Approximation Polygon algorithm; S7, Match the area of the glass scratch contour image to the corresponding glass binary image for storage, complete the glass scratch detection, and output the glass scratch photo marked with the contour area.

[0028] As Figure 5 shown, this embodiment also provides a glass scratch detection system, including: An image loading module for loading glass scratch images; A binarization module for performing binarization processing on the glass scratch image to obtain a glass binary image; A contour detection module for performing contour detection on the glass binary image to obtain a contour array; A contour drawing module for drawing a glass contour image according to the contour array; A contour screening module for screening the glass contour image to obtain a glass scratch contour image and the corresponding contour index; An area calculation module for calculating the area of the corresponding glass scratch contour image through the contour index; A scratch detection result output module is used to match the area of the glass scratch profile image to the corresponding glass binary image for storage, completing the glass scratch detection.

[0029] In this embodiment, a glass scratch detection device is used to capture glass scratch images and a glass scratch detection method is employed. The algorithm of the glass scratch detection software is utilized to evaluate the area of the glass scratch, and a glass photo marked with the scratch area and scratch profile is efficiently output, as Figure 8 shown, laying a solid foundation for subsequent processes.

[0030] The division of modules in the embodiments of the present invention is illustrative. It is only a logical function division. In actual implementation, there may be other division methods. Additionally, in each embodiment of the present invention, the functional modules can be integrated in one processor, or exist separately physically, or two or more modules can be integrated in one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules.

[0031] In this embodiment, a computer device is also provided. The computer device includes a processor and a memory. The memory is used to store a computer program (in this embodiment, the computer program includes a calculation component and an iteration component, capable of performing model calculations and model updates). The computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding function; the processor described in the embodiments of the present invention can be used for the operation of a glass scratch detection method.

[0032] This embodiment also provides a storage medium, specifically a computer-readable storage medium (Memory). The computer-readable storage medium is a memory device in a computer device, used to store programs and data. It can be understood that the computer-readable storage medium here can include both the built-in storage medium in the computer device and, of course, the extended storage medium supported by the computer device. The computer-readable storage medium provides storage space, and this storage space stores the operating system of the terminal. And, in this storage space, there is also stored one or more instructions suitable for being loaded and executed by the processor. These instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. One or more instructions stored in the computer-readable storage medium can be loaded and executed by the processor to implement the corresponding steps of a glass scratch detection method in the above embodiment.

[0033] This embodiment also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by the processor, it implements the corresponding steps of a glass scratch detection method in the above embodiment.

[0034] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.

[0035] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the specified functions in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0036] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce a manufacture including an instruction device that implements the functions specified in one or more of the processes Figure 1 a process or processes and / or blocks Figure 1 specified in a block or blocks.

[0037] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable apparatus provide steps for implementing the functions specified in one or more of the processes Figure 1 a process or processes and / or blocks Figure 1 specified in a block or blocks.

[0038] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications or equivalent substitutions can still be made to the specific embodiments of the present invention. Any modification or equivalent substitution that does not depart from the spirit and scope of the present invention shall be covered by the protection scope of the claims of the present invention.

Claims

1. A glass scratch detection method, characterized in that: The following steps are involved: Load the glass scratch image; Binarizing the glass scratch image to obtain a glass binary image; Performing contour detection on the glass binary image to obtain a contour array; Obtaining a glass contour image by drawing according to the contour array; Filtering the glass contour image to obtain a glass scratch contour image and a corresponding contour index; Calculating the area corresponding to the glass scratch contour image by using the contour index; The area of ​​the glass scratch contour image is matched to the corresponding glass binary image and saved to complete the glass scratch detection.

2. A glass scratch detection method according to claim 1, characterized in that: A polygonal approximation algorithm is used to calculate the area corresponding to the glass scratch contour image.

3. A glass scratch detection system, characterized in that: include: Image loading module, used to load glass scratch images; A binarization module, used for performing binarization processing on the glass scratch image to obtain a glass binary image; A contour detection module, used for performing contour detection on the glass binary image to obtain a contour array; A contour drawing module, used for drawing a glass contour image according to the contour array; A contour screening module, used for screening the glass contour image to obtain a glass scratch contour image and a corresponding contour index; An area calculation module, used for calculating the area corresponding to the glass scratch contour image through the contour index; The scratch detection result output module is used to match the area of ​​the glass scratch contour image to the corresponding glass binary image for storage, thereby completing the glass scratch detection.

4. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable in the processor, wherein the processor implements the steps of a glass scratch detection method as claimed in any one of claims 1 to 2 when executing the computer program.

5. A glass scratch detection device, characterized in that: include: A base (1), a support frame (2), a servo motor (3), a glass clamp (4), a glass hardness detection pen (5), a weight placement rod (6), a spiral slide rod (7), a hollow fixing pen (8), a microscope and an electronic device; The support frame (2) is arranged on the base (1), the spiral slide bar (7) is installed on the support frame (2) and connected to the servo motor (3), the servo motor (3) is arranged on the support frame (2), the hollow fixed pen (8) is installed on the spiral slide bar (7) and the end of the hollow fixed pen (8) is installed on the spiral slide bar (7) and the glass hardness detection pen (5) is installed on the end, the weight placement rod (6) is arranged on the top of the glass hardness detection pen (5), the glass clamp (4) is arranged on the surface of the base (1) and is located below the glass hardness detection pen (5), the microscope is aligned with the glass clamp (4), the electronic device is connected to the microscope, when in use, the servo motor (3) drives the spiral slide bar (7) to rotate, thereby driving the glass hardness detection pen (5) on the hollow fixed pen (8) to adjust to the detection position, then adjust the scratch test pressure of the glass hardness detection pen (5) through the weight placement rod (6), and scratch the glass to be tested on the glass clamp (4) through the glass hardness detection pen (5), and use the microscope to collect the glass scratch image and transmit it to the electronic device.

6. A glass scratch detection device according to claim 5, characterized in that: A fixing groove is provided on the glass clamp (4), and a limiting strip is provided on the inner edge of the fixing groove. The limiting strip is made of a rigid material.

7. The glass scratch detection device according to claim 5, characterized in that: A stopper is provided at the connection between the hollow fixing pen (8) and the glass hardness detection pen (5); when in use, the stopper adjusts the position of the glass hardness detection pen (5) and fixes it.

8. The glass scratch detection device according to claim 5, characterized in that: The material of the glass hardness testing pen (5) is steel chisel, diamond or quartz glass.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the glass scratch detection method according to any one of claims 1 to 2 are implemented.

10. A computer program product, the computer product comprising a computer program, characterized in that: When the computer program is executed by a processor, the steps of a glass scratch detection method as described in any one of claims 1 to 2 are implemented.

Citation Information

Cited By

  • Visual inspection system and method for carbon dioxide laser depainting of flat wire stator

    CN121073873A

  • A visual detection system and method for flat wire stator carbon dioxide laser paint removal

    CN121073873B