A method and system for detecting defects in alloy grounding materials

By pre-processing and splicing the surface image of the alloy grounding material, combining with the material defect detection model, the area ratio is calculated to judge the defect, and the problems of low detection efficiency and poor accuracy in the prior art are solved, and more efficient defect detection is achieved.

CN118505694BActive Publication Date: 2024-11-12STATE GRID JIANGXI ELECTRIC POWER CO LTD RES INST +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410961583.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-12
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

The existing alloy grounding material surface detection methods have low detection efficiency and poor accuracy when facing multiple defects.

Method used

By acquiring multiple surface images for preprocessing and splicing, inputting them to the preset material defect detection model, calculating the area ratio of the target defect area and the material to be detected, and determining whether it is greater than the preset threshold value to define abnormal defects.

Benefits of technology

It improves the efficiency of defect detection of alloy grounding materials, can detect defects on the surface at the same time, and improves the accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118505694B_ABST
    Figure CN118505694B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for detecting defects in alloy grounding materials, the method comprising: obtaining multiple surface images of the alloy grounding material to be detected, and preprocessing the multiple surface images to obtain a surface image set; inputting each target surface image in the surface image set into a preset material defect detection model, the material defect detection model outputs at least one surface defect detection result, splicing the at least one surface defect detection result based on a preset splicing rule to obtain a target surface defect detection result, calculating the ratio of the first area of ​​the target defect area to the second area of ​​the alloy grounding material to be detected, and judging whether the ratio is greater than a preset threshold. The defects that may exist on the surface of the alloy grounding material to be detected can be detected simultaneously, thereby effectively improving the detection efficiency of the defects in the alloy grounding material.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of defect detection, and in particular relates to a method and system for detecting defects in alloy grounding materials. Background Art

[0002] The surface quality inspection of alloy grounding materials plays a very important role in the quality control of alloy grounding materials. The surface inspection of alloy grounding materials mainly includes the inspection of surface materials, appearance, shape and surface defects.

[0003] At present, the surface of alloy grounding materials is generally inspected through conventional inspection means, such as sampling inspection, to determine whether it meets the relevant standards and complete the inspection and analysis. However, the existing surface inspection methods of alloy grounding materials have low efficiency and poor accuracy when facing the possibility of multiple defects. Summary of the invention

[0004] The present invention provides a method and system for detecting defects in alloy grounding materials, which are used to solve the technical problem of low detection efficiency of defects in existing alloy grounding materials.

[0005] In a first aspect, the present invention provides a method for detecting defects in an alloy grounding material, comprising:

[0006] Acquire multiple surface images of the alloy grounding material to be detected, and preprocess the multiple surface images to obtain a surface image set, wherein the surface image set includes at least one target surface image;

[0007] Inputting each target surface image in the surface image set into a preset material defect detection model, the material defect detection model outputs at least one surface defect detection result, wherein a surface defect detection result has a unique corresponding relationship with a target surface image;

[0008] splicing the at least one surface defect detection result based on a preset splicing rule to obtain a target surface defect detection result, wherein the target surface defect detection result includes a target defect area of ​​the alloy grounding material to be detected;

[0009] Calculating a ratio of a first area of ​​the target defect region to a second area of ​​the alloy grounding material to be detected, and determining whether the ratio is greater than a preset threshold;

[0010] If it is greater than a preset threshold, the target defect area is defined as an abnormal defect.

[0011] In a second aspect, the present invention provides an alloy grounding material defect detection system, comprising:

[0012] A processing module is configured to obtain a plurality of surface images of the alloy grounding material to be detected, and pre-process the plurality of surface images to obtain a surface image set, wherein the surface image set includes at least one target surface image;

[0013] an output module, configured to input each target surface image in the surface image set into a preset material defect detection model, wherein the material defect detection model outputs at least one surface defect detection result, wherein a surface defect detection result has a unique corresponding relationship with a target surface image;

[0014] A splicing module, configured to splice the at least one surface defect detection result based on a preset splicing rule to obtain a target surface defect detection result, wherein the target surface defect detection result includes a target defect area of ​​the alloy grounding material to be detected;

[0015] A judgment module, configured to calculate a ratio of a first area of ​​the target defect region to a second area of ​​the alloy grounding material to be detected, and judge whether the ratio is greater than a preset threshold;

[0016] The definition module is configured to define the target defect area as an abnormal defect if it is greater than a preset threshold.

[0017] According to a third aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the alloy grounding material defect detection method of any embodiment of the present invention.

[0018] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the program instructions are executed by a processor, the processor executes the steps of the alloy grounding material defect detection method of any embodiment of the present invention.

[0019] The alloy grounding material defect detection method and system of the present application input each target surface image in the surface image set into a preset material defect detection model, the material defect detection model outputs at least one surface defect detection result, splices at least one surface defect detection result based on a preset splicing rule to obtain a target surface defect detection result, calculates the ratio of a first area of ​​the target defect area to a second area of ​​the alloy grounding material to be detected, and determines whether the ratio is greater than a preset threshold value. It is possible to simultaneously detect possible defects on the surface of the alloy grounding material to be detected, thereby effectively improving the detection efficiency of alloy grounding material defects. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A flow chart of a method for detecting defects in alloy grounding materials provided by one embodiment of the present invention;

[0022] Figure 2 A structural block diagram of an alloy grounding material defect detection system provided by an embodiment of the present invention;

[0023] Figure 3 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] See also Figure 1 , which shows a flow chart of a method for detecting defects in alloy grounding materials of the present application.

[0026] like Figure 1 As shown, the alloy grounding material defect detection method specifically includes the following steps:

[0027] Step S101 , obtaining a plurality of surface images of the alloy grounding material to be detected, and preprocessing the plurality of surface images to obtain a surface image set, wherein the surface image set includes at least one target surface image.

[0028] In this step, the alloy grounding material to be detected is photographed from multiple angles to obtain multiple surface images corresponding to the angles, and the multiple surface images are subjected to wavelet transform, and the first wavelet coefficient of the surface image signal in the low-frequency part and the second wavelet coefficient in the high-frequency part after the wavelet transform are respectively obtained; the second wavelet coefficient of the surface image signal is processed according to a preset processing rule to obtain a second target wavelet coefficient, wherein the expression of the second target wavelet coefficient is: , where is the kth layer point The threshold value, is the second wavelet coefficient of the surface image signal, is the second target wavelet coefficient; and at least one target surface image after denoising is determined according to the first wavelet coefficient and the second target wavelet coefficient.

[0029] Step S102, input each target surface image in the surface image set into a preset material defect detection model, and the material defect detection model outputs at least one surface defect detection result, wherein a surface defect detection result has a unique corresponding relationship with a target surface image.

[0030] In this step, a preset time range is set; surface images of the alloy grounding material to be detected that are subjected to surface defect detection within the preset time range in the historical time are collected and obtained to obtain a historical surface image set; according to the size characteristics and type characteristics, the historical surface image set is traversed to obtain the historical surface images of the same material as the alloy grounding material to be detected as the sample surface image set; according to the sample surface image set, a material defect detection model is constructed. Afterwards, each target surface image in the surface image set is input into the preset material defect detection model, and the material defect detection model outputs at least one surface defect detection result.

[0031] Step S103, splicing the at least one surface defect detection result based on a preset splicing rule to obtain a target surface defect detection result, wherein the target surface defect detection result includes a target defect area of ​​the alloy grounding material to be detected.

[0032] Specifically, a surface defect detection result includes a target sub-defect area.

[0033] In this step, it is determined whether there is a target sub-defect area located in the middle of the corresponding target surface image in at least one surface defect detection result; if not, all target sub-defect areas are spliced ​​to obtain a second target defect area, and the second target defect area is directly used as the target defect area; if it exists, a target sub-defect area is defined as the first target defect area, and the remaining target sub-defect areas are spliced ​​to obtain the second target defect area, wherein the remaining target sub-defect areas are the target sub-defect areas of all target sub-defect areas in at least one surface defect detection result minus a target sub-defect area; it is determined whether the difference between the area of ​​the first target defect area and the area of ​​the second target defect area is greater than a preset area threshold; if not greater than the preset area threshold, the first target defect area is directly used as the target defect area; if greater than the preset area threshold, both the first target defect area and the second target defect area are used as target defect areas.

[0034] It should be noted that the specific method of stitching the target sub-defect areas is to arrange the acquired target surface images based on the angle order, then stitch the various target surface images based on pixel points or feature points to obtain a complete final surface image, and finally capture the second target defect area in the final surface image.

[0035] Step S104, calculating a ratio of a first area of ​​the target defect region to a second area of ​​the alloy grounding material to be detected, and determining whether the ratio is greater than a preset threshold.

[0036] In a specific embodiment, if it is not greater than a preset threshold, the target defect area is defined as a normal defect.

[0037] Step S105: If it is greater than a preset threshold, the target defect area is defined as an abnormal defect.

[0038] In summary, the method of the present application inputs each target surface image in the surface image set into a preset material defect detection model, the material defect detection model outputs at least one surface defect detection result, splices at least one surface defect detection result based on a preset splicing rule to obtain a target surface defect detection result, calculates the ratio of the first area of ​​the target defect area to the second area of ​​the alloy grounding material to be detected, and determines whether the ratio is greater than a preset threshold value. It is possible to simultaneously detect possible defects on the surface of the alloy grounding material to be detected, thereby effectively improving the detection efficiency of alloy grounding material defects.

[0039] See also Figure 2 , which shows a structural block diagram of an alloy grounding material defect detection system of the present application.

[0040] like Figure 2 As shown, the alloy grounding material defect detection system 200 includes a processing module 210, an output module 220, a splicing module 230, a judgment module 240 and a definition module 250.

[0041] Among them, the processing module 210 is configured to obtain multiple surface images of the alloy grounding material to be detected, and pre-process the multiple surface images to obtain a surface image set, wherein the surface image set contains at least one target surface image; the output module 220 is configured to input each target surface image in the surface image set into a preset material defect detection model, and the material defect detection model outputs at least one surface defect detection result, wherein a surface defect detection result and a target surface image have a unique corresponding relationship; the splicing module 230 is configured to splice the at least one surface defect detection result based on a preset splicing rule to obtain a target surface defect detection result, wherein the target surface defect detection result contains a target defect area of ​​the alloy grounding material to be detected; the judgment module 240 is configured to calculate the ratio of the first area of ​​the target defect area to the second area of ​​the alloy grounding material to be detected, and judge whether the ratio is greater than a preset threshold; the definition module 250 is configured to define the target defect area as an abnormal defect if it is greater than the preset threshold.

[0042] It should be understood that Figure 2 Modules and references documented in Figure 1 Therefore, the operations and features described above for the method and the corresponding technical effects are also applicable to Figure 2 The modules in it will not be described in detail here.

[0043] In other embodiments, the present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein when the program instructions are executed by a processor, the processor executes the alloy grounding material defect detection method in any of the above method embodiments;

[0044] As an implementation mode, the computer-readable storage medium of the present invention stores computer-executable instructions, and the computer-executable instructions are configured as follows:

[0045] Acquire multiple surface images of the alloy grounding material to be detected, and preprocess the multiple surface images to obtain a surface image set, wherein the surface image set includes at least one target surface image;

[0046] Inputting each target surface image in the surface image set into a preset material defect detection model, the material defect detection model outputs at least one surface defect detection result, wherein a surface defect detection result has a unique corresponding relationship with a target surface image;

[0047] splicing the at least one surface defect detection result based on a preset splicing rule to obtain a target surface defect detection result, wherein the target surface defect detection result includes a target defect area of ​​the alloy grounding material to be detected;

[0048] Calculating a ratio of a first area of ​​the target defect region to a second area of ​​the alloy grounding material to be detected, and determining whether the ratio is greater than a preset threshold;

[0049] If it is greater than a preset threshold, the target defect area is defined as an abnormal defect.

[0050] The computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the alloy grounding material defect detection system, etc. In addition, the computer-readable storage medium may include a high-speed random access memory, and may also include a memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the computer-readable storage medium may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the alloy grounding material defect detection system via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0051] Figure 3 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 3 As shown, the device includes: a processor 310 and a memory 320. The electronic device may also include: an input device 330 and an output device 340. The processor 310, the memory 320, the input device 330 and the output device 340 may be connected via a bus or other means. Figure 3 In the example, the bus connection is used. The memory 320 is the above-mentioned computer-readable storage medium. The processor 310 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 320, that is, the alloy grounding material defect detection method of the above-mentioned method embodiment is realized. The input device 330 can receive input digital or character information, and generate key signal input related to user settings and function control of the alloy grounding material defect detection system. The output device 340 may include display devices such as display screens.

[0052] The electronic device can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.

[0053] As an embodiment, the electronic device is applied to an alloy grounding material defect detection system and is used for a client, and includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can:

[0054] Acquire multiple surface images of the alloy grounding material to be detected, and preprocess the multiple surface images to obtain a surface image set, wherein the surface image set includes at least one target surface image;

[0055] Inputting each target surface image in the surface image set into a preset material defect detection model, the material defect detection model outputs at least one surface defect detection result, wherein a surface defect detection result has a unique corresponding relationship with a target surface image;

[0056] splicing the at least one surface defect detection result based on a preset splicing rule to obtain a target surface defect detection result, wherein the target surface defect detection result includes a target defect area of ​​the alloy grounding material to be detected;

[0057] Calculating a ratio of a first area of ​​the target defect region to a second area of ​​the alloy grounding material to be detected, and determining whether the ratio is greater than a preset threshold;

[0058] If it is greater than a preset threshold, the target defect area is defined as an abnormal defect.

[0059] Through the description of the above implementation modes, those skilled in the art can clearly understand that each implementation mode can be implemented by means of software plus a necessary general hardware platform, or of course by hardware. Based on such an understanding, the above technical solution can essentially or in other words be embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0060] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for detecting defects in alloy grounding materials, characterized in that: include: Acquire multiple surface images of the alloy grounding material to be detected, and preprocess the multiple surface images to obtain a surface image set, wherein the surface image set includes at least one target surface image; Inputting each target surface image in the surface image set into a preset material defect detection model, the material defect detection model outputs at least one surface defect detection result, wherein a surface defect detection result has a unique corresponding relationship with a target surface image; splicing the at least one surface defect detection result based on a preset splicing rule to obtain a target surface defect detection result, wherein the target surface defect detection result includes a target defect area of ​​the alloy grounding material to be detected, and a surface defect detection result includes a target sub-defect area; The step of splicing the at least one surface defect detection result based on a preset splicing rule to obtain a target surface defect detection result includes: Determining whether there is a target sub-defect area located in the middle of the corresponding target surface image in the at least one surface defect detection result; If it exists, the certain target sub-defect area is defined as the first target defect area, and the remaining target sub-defect areas are spliced ​​to obtain the second target defect area, wherein the remaining target sub-defect areas are the target sub-defect areas of all target sub-defect areas in the at least one surface defect detection result minus the certain target sub-defect area; Determining whether a difference between an area of ​​the first target defect region and an area of ​​the second target defect region is greater than a preset area threshold; If the area is not greater than the preset area threshold, directly taking the first target defect area as the target defect area; If the area is larger than a preset area threshold, both the first target defect area and the second target defect area are taken as target defect areas; Calculating a ratio of a first area of ​​the target defect region to a second area of ​​the alloy grounding material to be detected, and determining whether the ratio is greater than a preset threshold; If it is greater than a preset threshold, the target defect area is defined as an abnormal defect.

2. A method for detecting defects in alloy grounding materials according to claim 1, characterized in that: Before inputting each target surface image in the surface image set into a preset material defect detection model, the method further includes: A material defect detection model is constructed according to the size characteristics and type characteristics of the alloy grounding material to be detected.

3. A method for detecting defects in alloy grounding materials according to claim 2, characterized in that: The constructing of a material defect detection model according to the size characteristics and type characteristics of the alloy grounding material to be detected comprises: Set to obtain the preset time range; Collect and obtain surface images of the alloy grounding material to be inspected that has been subjected to surface defect inspection within a preset time range described in the historical time, and obtain a historical surface image set; According to the size feature and the type feature, traverse the historical surface image set to obtain historical surface images of the same material as the alloy grounding material to be detected as a sample surface image set; The material defect detection model is constructed according to the sample surface image set.

4. The method for detecting defects in alloy grounding materials according to claim 1, characterized in that: After determining whether there is a target sub-defect area located in the middle of the corresponding target surface image in the at least one surface defect detection result, the method further includes: If it does not exist, all target sub-defect areas are spliced ​​to obtain a second target defect area, and the second target defect area is directly used as the target defect area.

5. The method for detecting defects in alloy grounding materials according to claim 1, characterized in that: After determining whether the ratio is greater than a preset threshold, the method further includes: If it is not greater than a preset threshold, the target defect area is defined as a normal defect.

6. A system for detecting defects in alloy grounding materials, characterized in that: include: A processing module is configured to obtain a plurality of surface images of the alloy grounding material to be detected, and pre-process the plurality of surface images to obtain a surface image set, wherein the surface image set includes at least one target surface image; an output module, configured to input each target surface image in the surface image set into a preset material defect detection model, wherein the material defect detection model outputs at least one surface defect detection result, wherein a surface defect detection result has a unique corresponding relationship with a target surface image; A splicing module is configured to splice the at least one surface defect detection result based on a preset splicing rule to obtain a target surface defect detection result, wherein the target surface defect detection result includes a target defect area of ​​the alloy grounding material to be detected, and a surface defect detection result includes a target sub-defect area; The step of splicing the at least one surface defect detection result based on a preset splicing rule to obtain a target surface defect detection result includes: Determining whether there is a target sub-defect area located in the middle of the corresponding target surface image in the at least one surface defect detection result; If it exists, the certain target sub-defect area is defined as the first target defect area, and the remaining target sub-defect areas are spliced ​​to obtain the second target defect area, wherein the remaining target sub-defect areas are the target sub-defect areas of all target sub-defect areas in the at least one surface defect detection result minus the certain target sub-defect area; Determining whether a difference between an area of ​​the first target defect region and an area of ​​the second target defect region is greater than a preset area threshold; If the area is not greater than the preset area threshold, directly taking the first target defect area as the target defect area; If the area is larger than a preset area threshold, both the first target defect area and the second target defect area are taken as target defect areas; A judgment module, configured to calculate a ratio of a first area of ​​the target defect region to a second area of ​​the alloy grounding material to be detected, and judge whether the ratio is greater than a preset threshold; The definition module is configured to define the target defect area as an abnormal defect if it is greater than a preset threshold.

7. An electronic device, characterized in that: include: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described in any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.