Alloy defect identification method and device, electronic equipment and storage medium

CN118918065APending Publication Date: 2024-11-08GAONA AERO MATERIAL CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410940919.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-11-08

Smart Images

  • Figure CN118918065A_ABST
    Figure CN118918065A_ABST
Patent Text Reader

Abstract

The invention provides an alloy defect identification method and device, electronic equipment and a storage medium, and the method comprises the steps: processing a to-be-detected image of a to-be-detected alloy to obtain a binary image corresponding to the to-be-detected image in order to obtain a first defect of the to-be-detected alloy; determining a first area and a geometric contour of each first defect in the binary image; determining the type of each first defect according to the first area and the geometric contour; and according to the different types of first defects, determining a use scene of the to-be-detected alloy. According to the method, the binary image of the defect of the to-be-detected alloy is collected, the geometrical shape characteristics of the defect are facilitated, different types of defects in the to-be-detected alloy can be rapidly recognized, and the recognition efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of alloy detection, and in particular to an alloy defect identification method, device, electronic device and storage medium. Background Art

[0002] Additive manufacturing of metal materials has the characteristics of near-net shape, high degree of freedom in part design, low cost and high manufacturing efficiency, and is widely regarded as a very promising way to prepare parts. In the additive manufacturing process of metal materials, additive alloy defects such as holes, unfused parts and cracks are often generated inside the material. These metallurgical defects have a negative impact on the performance of metal materials and need to be further quantitatively evaluated.

[0003] The existing defect statistics method mainly relies on graphic software and manpower to manually measure the metallurgical defects of additive alloys. The measurement time is often very long and the efficiency is low, which affects the progress of new material research and development and the efficiency of component product quality assessment. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide an alloy defect identification method, device, electronic device and storage medium to overcome the problems in the prior art.

[0005] In a first aspect, an embodiment of the present application provides an alloy defect identification method, the method comprising:

[0006] For the purpose of obtaining a first defect of the alloy to be detected, processing the image to be detected of the alloy to be detected to obtain a binary image corresponding to the image to be detected;

[0007] Determining a first area and a geometric profile of each first defect in the binary image;

[0008] determining a type of each of the first defects according to the first area and the geometric profile;

[0009] According to different types of the first defects, a usage scenario of the alloy to be tested is determined.

[0010] In some technical solutions of the present application, determining the type of each of the first defects according to the first area and the geometric profile includes:

[0011] Determining a second area of ​​a reference shape of the first defect according to the geometric profile of each of the first defects;

[0012] The type of each of the first defects is determined according to an area ratio and a preset ratio threshold; wherein the area ratio is a ratio of the first area to the second area.

[0013] In some technical solutions of the present application, the above method determines the reference shape in the following manner:

[0014] constructing a candidate shape of the second defect of each test alloy;

[0015] Calculate the area ratio of each of the second defects in the shape to be selected;

[0016] A shape with the highest area ratio is selected from the candidate shapes as the reference shape.

[0017] In some technical solutions of the present application, the above method determines the ratio threshold in the following manner:

[0018] Determining the property parameters corresponding to different types of the second defects by statistically analyzing the second defects existing in the test alloy;

[0019] The ratio threshold is determined according to the attribute parameter and the reference shape.

[0020] In some technical solutions of the present application, the above ratio threshold includes a first threshold;

[0021] The method of determining the type of each of the first defects according to the area ratio and a preset ratio threshold, wherein the area ratio is a ratio of the first area to the second area, comprises:

[0022] When the area ratio is less than the first threshold, the first defect is a crack type.

[0023] In some technical solutions of the present application, the above ratio threshold includes a first threshold and a second threshold, and the second threshold is greater than the first threshold;

[0024] The method of determining the type of each of the first defects according to the area ratio and a preset ratio threshold, wherein the area ratio is a ratio of the first area to the second area, comprises:

[0025] When the area ratio is greater than or equal to the first threshold and less than or equal to the second threshold, the first defect is of the unfused type.

[0026] In some technical solutions of the present application, the above ratio threshold includes a second threshold;

[0027] The method of determining the type of each of the first defects according to the area ratio and a preset ratio threshold, wherein the area ratio is a ratio of the first area to the second area, comprises:

[0028] When the area ratio is greater than the second threshold, the first defect is a hole type.

[0029] In a second aspect, an embodiment of the present application provides an alloy defect identification device, the device comprising:

[0030] A processing module, for processing the image to be detected of the alloy to be detected, with the purpose of obtaining a first defect of the alloy to be detected, to obtain a binary image corresponding to the image to be detected;

[0031] A first determination module, used to determine a first area and a geometric outline of each first defect in the binary image;

[0032] a second determination module, configured to determine a type of each of the first defects according to the first area and the geometric profile;

[0033] The third module is used to determine the usage scenario of the alloy to be tested according to different types of the first defects.

[0034] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned alloy defect identification method when executing the computer program.

[0035] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned alloy defect identification method are executed.

[0036] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0037] The method of the present application includes processing an image to be detected of the alloy to be detected for the purpose of obtaining a first defect of the alloy to be detected, and obtaining a binary image corresponding to the image to be detected; determining a first area and a geometric contour of each first defect in the binary image; determining a type of each first defect according to the first area and the geometric contour; and determining a usage scenario of the alloy to be detected according to different types of the first defects.

[0038] The present application collects binary images of defects in the alloy to be detected, which is beneficial to the geometric shape characteristics of the defects, can quickly identify different types of defects in the alloy to be detected, and improves the recognition efficiency.

[0039] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 A schematic diagram of a process of an alloy defect identification method provided in an embodiment of the present application is shown;

[0042] Figure 2 A defect schematic diagram provided by an embodiment of the present application is shown;

[0043] Figure 3 A schematic diagram of an alloy defect identification device provided in an embodiment of the present application is shown;

[0044] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0046] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0047] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0048] Additive manufacturing of metal materials has the characteristics of near-net shape, high degree of freedom in part design, low cost and high manufacturing efficiency, and is widely regarded as a very promising way to prepare parts. In the additive manufacturing process of metal materials, additive alloy defects such as holes, unfused parts and cracks are often generated inside the material. These metallurgical defects have a negative impact on the performance of metal materials and need to be further quantitatively evaluated.

[0049] The existing defect statistics method mainly relies on graphic software and manpower to manually measure the metallurgical defects of additive alloys. The measurement time is often very long and the efficiency is low, which affects the progress of new material research and development and the efficiency of component product quality assessment.

[0050] Based on this, the embodiments of the present application provide an alloy defect identification method, device, electronic device and storage medium, which are described below through embodiments.

[0051] Figure 1 A schematic flow chart of an alloy defect identification method provided in an embodiment of the present application is shown, wherein the method comprises steps S101-S104; specifically:

[0052] S101, with the purpose of obtaining a first defect of the alloy to be detected, processing the image to be detected of the alloy to be detected to obtain a binary image corresponding to the image to be detected;

[0053] S102, determining a first area and a geometric outline of each first defect in the binary image;

[0054] S103, determining the type of each of the first defects according to the first area and the geometric profile;

[0055] S104: Determine usage scenarios of the alloy to be tested according to different types of the first defects.

[0056] The present application collects binary images of defects in the alloy to be detected, which is beneficial to the geometric shape characteristics of the defects, can quickly identify different types of defects in the alloy to be detected, and improves the recognition efficiency.

[0057] Some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0058] The embodiment of the present application provides a method for identifying alloy defects, where the alloy is mainly an additive alloy. The metallurgical defects of the additive alloy include but are not limited to holes, unfused and cracks. In the embodiment of the present application, the alloy to be identified is referred to as the alloy to be detected, and the defect contained in the alloy to be detected is referred to as the first defect. In order to be able to identify the first defect in the alloy to be detected, the embodiment of the present application needs to obtain a binary image of the alloy to be detected.

[0059] In order to obtain a binary image of the alloy to be detected, it is necessary to first collect an image of the alloy to be detected. After collecting the image of the alloy to be detected, the initial image of the alloy to be detected is obtained. Specifically, a metallographic photograph, a scanning electron microscope photograph, etc. of the alloy to be detected can be collected as the initial image of the alloy to be detected. After obtaining the initial image of the alloy to be detected, the image to be detected needs to be processed to obtain a binary image of the alloy to be detected.

[0060] Specifically, the initial image is first converted to obtain a grayscale image corresponding to the initial image; then the grayscale image is binarized according to the preset grayscale threshold to obtain a binary image of the alloy to be tested. In specific implementation, the initial image can be converted into a grayscale image using machine learning visual analysis code libraries such as OpenCV. The grayscale image is then binarized, and the grayscale threshold used for binarization is determined based on differences in brightness and contrast of the initial image, and generally ranges from 50 to 200.

[0061] The specific process of determining the grayscale threshold is: according to the contrast of the initial image, the target interval where the contrast of the initial image is located is determined by comparing it with the preset interval. Each preset interval corresponds to a method of generating a grayscale threshold. For example, the method of generating the grayscale threshold in the first preset interval is to select a target generation method from a plurality of candidate generation methods; the method of generating the grayscale threshold in the second preset interval is to generate a candidate threshold through a plurality of candidate generation methods respectively, and take the average of the candidate thresholds as the grayscale threshold; the method of generating the grayscale threshold in the third preset interval is to select one or more target generation methods from a plurality of candidate generation methods according to a preset screening rule. When selecting a plurality of target generation methods, the grayscale threshold is obtained according to the candidate thresholds generated by the plurality of target generation methods. In the specific implementation, the grayscale threshold can be obtained by weighting each candidate threshold, and the specific weight here is determined according to the accuracy of the generation method.

[0062] After obtaining the binary image, the embodiment of the present application determines the type of the first defect by analyzing the area of ​​each first defect in the binary image. In specific implementation, the area of ​​the first defect can be determined by a function in a preset function library such as drawContours. After determining the area of ​​the first defect, it is also necessary to determine the geometric contour of the first defect. In specific implementation, the contourArea function in the function library can be directly used to determine the geometric contour of the first defect.

[0063] After obtaining the first area and geometric profile of the first defect, the embodiment of the present application determines the type of each first defect based on the first area and the geometric profile. The specific determination process is based on the analysis results of the test alloy. In other words, the embodiment of the present application determines the common properties of the test alloy by analyzing the test alloy. The common properties are applied to the defect identification process of the alloy to be detected. In order to ensure the accuracy of the data, the number of test alloys here must be sufficient (greater than a preset number threshold). Furthermore, the test alloys can also be classified to determine the common properties of the test alloys of the same type as the alloy to be detected.

[0064] In an optional embodiment, the common property here is the area ratio of the first area of ​​the defect to the second area of ​​the reference shape. That is, the embodiment of the present application processes the test alloys by statistics or aggregation, and determines that the common property of all the test alloys is the area ratio.

[0065] When determining the reference shape, in order to ensure work efficiency, the reference shape needs to be as close to the defect as possible. Considering that the type of defect cannot be directly determined by using only the area size, the reference shape used for all defects in the embodiments of the present application should be the same shape (the area of ​​the reference shape is determined according to the specific defect). Based on the above reasons, the embodiments of the present application pre-constructed the candidate shapes of each second defect in each test alloy, and then calculated the area ratio of each second defect in the candidate shapes; the shape with the highest area ratio was selected from the candidate shapes as the reference shape. Figure 2 As shown in the figure, there are three groups of defects (indicated by solid lines), and the reference shapes of the defects are constructed as rectangles, triangles and circles (indicated by dotted lines). By calculating the area ratio of the second defect in the reference shape, the circle here can be the best. And the circle here needs to be the minimum circumscribed circle of the second defect.

[0066] After obtaining the reference shape, the embodiment of the present application performs a statistical analysis on the second defects of each test alloy to determine the property parameters corresponding to the second defects of different types; the ratio threshold is determined according to the property parameters and the reference shape. The type of each first defect is determined according to the area ratio and the preset ratio threshold. The property parameter here is the farthest distance in the second defect. By statistically analyzing the long distances of defects of different types in the second defect, the property parameters of different types of defects are obtained. The property parameter is used as the diameter to calculate the area of ​​the reference shape (minimum circumscribed circle). The ratio of the area of ​​the second defect to the area of ​​the reference shape of the second defect here is used as the ratio threshold.

[0067] In an optional implementation, when specifically calculating the ratio threshold, multiple values ​​are obtained: a first threshold and a second threshold, and the second threshold is greater than the first threshold. According to the area ratio and the preset ratio threshold, the type of each first defect is determined, including: when the area ratio is less than the first threshold, the first defect is a crack type. When the area ratio is greater than or equal to the first threshold and less than or equal to the second threshold, the first defect is a non-fusion type. When the area ratio is greater than the second threshold, the first defect is a hole type.

[0068] The embodiment of the present application can directly extract the second area of ​​the geometric outline of the first defect through the minEnclosingCircle function in the code library. Then, the area ratio is calculated based on the first area and the second area. By comparing the area ratio with the above ratio threshold, the type of the first defect can be obtained.

[0069] By statistically analyzing the types of all first defects in the alloy to be tested, the usage scenario of the alloy to be tested can be determined.

[0070] In an optional embodiment, the additively manufactured alloy is cut, ground and polished, and then the structure is characterized to obtain a metallographic photograph thereof.

[0071] Through computer programming, the machine learning visual code library OpenCV is used to convert metallographic photographs with additive metallurgical defects into grayscale images and perform binarization. The threshold of the binarization processing is 100, and the area and geometric contour of a single additive metallurgical defect are determined through functions in the library such as drawContours and contourArea.

[0072] The minEnclosingCircle function in the machine learning visual code library is further programmed to extract the minimum circumscribed circle area of ​​a single additive metallurgical defect, and the ratio P of the additive metallurgical defect area and its minimum circumscribed circle area is calculated.

[0073] Based on the geometric shape characteristics of multiple additive alloy metallurgical defects, the values of key parameters (a = 0.15 and b = 0.7) are determined. If P < 0.15, then the additive metallurgical defect is recorded as a crack; if 0.15 ≤ P ≤ 0.7, then the additive metallurgical defect is recorded as lack of fusion; if 0.7 < P, then the additive metallurgical defect is recorded as a hole.

[0074] Running the program can obtain the additive metallurgical defect images after batch recognition and quantification, as well as the corresponding data files. Running this program on a personal computer takes no more than 5 minutes to obtain the additive metallurgical defect information of a hundred images, with extremely high recognition and quantification efficiency.

[0075] Figure 3 The structure diagram of an alloy defect recognition device provided by an embodiment of the present application is shown. The device includes:

[0076] A processing module for processing the image to be detected of the alloy to be detected with the aim of obtaining the first defect of the alloy to be detected, and obtaining the binary image corresponding to the image to be detected.

[0077] A first determination module for determining the first area and geometric contour of each first defect in the binary image.

[0078] A second determination module for determining the type of each first defect according to the first area and the geometric contour.

[0079] A third module for determining the usage scenario of the alloy to be detected according to different types of the first defects.

[0080] Determining the type of each first defect according to the first area and the geometric contour includes:

[0081] Determining the second area of the reference shape of the first defect according to the geometric contour of each first defect.

[0082] Determining the type of each first defect according to the area ratio and a preset ratio threshold; wherein, the area ratio is the ratio of the first area to the second area.

[0083] The reference shape is determined by the following method:

[0084] Constructing candidate shapes of the second defects of each test alloy.

[0085] Calculating the area proportion of each second defect in the candidate shape.

[0086] Selecting the shape with the highest area proportion from the candidate shapes as the reference shape.

[0087] The ratio threshold is determined by:

[0088] Determining the property parameters corresponding to different types of the second defects by statistically analyzing the second defects existing in the test alloy;

[0089] The ratio threshold is determined according to the attribute parameter and the reference shape.

[0090] The ratio threshold comprises a first threshold;

[0091] The method of determining the type of each of the first defects according to the area ratio and a preset ratio threshold, wherein the area ratio is a ratio of the first area to the second area, comprises:

[0092] When the area ratio is less than the first threshold, the first defect is a crack type.

[0093] The ratio threshold includes a first threshold and a second threshold, and the second threshold is greater than the first threshold;

[0094] The method of determining the type of each of the first defects according to the area ratio and a preset ratio threshold, wherein the area ratio is a ratio of the first area to the second area, comprises:

[0095] When the area ratio is greater than or equal to the first threshold and less than or equal to the second threshold, the first defect is of the unfused type.

[0096] The ratio threshold comprises a second threshold;

[0097] The method of determining the type of each of the first defects according to the area ratio and a preset ratio threshold, wherein the area ratio is a ratio of the first area to the second area, comprises:

[0098] When the area ratio is greater than the second threshold, the first defect is a hole type.

[0099] like Figure 4 As shown, an embodiment of the present application provides an electronic device for executing the alloy defect identification method in the present application, the device includes a memory, a processor, a bus, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the alloy defect identification method when executing the computer program.

[0100] Specifically, the above-mentioned memory and processor may be general-purpose memory and processor, which are not specifically limited here. When the processor runs the computer program stored in the memory, the above-mentioned alloy defect identification method can be executed.

[0101] Corresponding to the alloy defect identification method in the present application, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned alloy defect identification method are executed.

[0102] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, the above-mentioned alloy defect identification method can be executed.

[0103] In the embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. The system embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.

[0104] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0105] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0106] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0107] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0108] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A method for identifying alloy defects, characterized in that: The method comprises: For the purpose of obtaining a first defect of the alloy to be detected, processing the image to be detected of the alloy to be detected to obtain a binary image corresponding to the image to be detected; Determining a first area and a geometric profile of each first defect in the binary image; determining a type of each of the first defects according to the first area and the geometric profile; According to different types of the first defects, a usage scenario of the alloy to be tested is determined.

2. The method according to claim 1, characterized in that Determining the type of each of the first defects according to the first area and the geometric profile includes: Determining a second area of ​​a reference shape of the first defect according to the geometric profile of each of the first defects; The type of each of the first defects is determined according to an area ratio and a preset ratio threshold; wherein the area ratio is a ratio of the first area to the second area.

3. The method according to claim 2, characterized in that The method determines the reference shape by: constructing a candidate shape of the second defect of each test alloy; Calculate the area ratio of each of the second defects in the shape to be selected; A shape with the highest area ratio is selected from the candidate shapes as the reference shape.

4. The method according to claim 3, characterized in that The method determines the ratio threshold value by: Determining the property parameters corresponding to different types of the second defects by statistically analyzing the second defects existing in the test alloy; The ratio threshold is determined according to the attribute parameter and the reference shape.

5. The method according to claim 2, characterized in that: The ratio threshold comprises a first threshold; The method of determining the type of each of the first defects according to the area ratio and a preset ratio threshold, wherein the area ratio is a ratio of the first area to the second area, comprises: When the area ratio is less than the first threshold, the first defect is a crack type.

6. The method according to claim 2, characterized in that The ratio threshold includes a first threshold and a second threshold, and the second threshold is greater than the first threshold; The method of determining the type of each of the first defects according to the area ratio and a preset ratio threshold, wherein the area ratio is a ratio of the first area to the second area, comprises: When the area ratio is greater than or equal to the first threshold and less than or equal to the second threshold, the first defect is of the unfused type.

7. The method according to claim 2, characterized in that The ratio threshold comprises a second threshold; The method of determining the type of each of the first defects according to the area ratio and a preset ratio threshold, wherein the area ratio is a ratio of the first area to the second area, comprises: When the area ratio is greater than the second threshold, the first defect is a hole type.

8. An alloy defect identification device, characterized in that: The device comprises: A processing module, for processing the image to be detected of the alloy to be detected, with the purpose of obtaining a first defect of the alloy to be detected, to obtain a binary image corresponding to the image to be detected; A first determination module, used to determine a first area and a geometric outline of each first defect in the binary image; a second determination module, configured to determine a type of each of the first defects according to the first area and the geometric profile; The third determination module is used to determine the usage scenario of the alloy to be detected according to different types of the first defects.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the alloy defect identification method as described in any one of claims 1 to 7 are performed.

10. 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 alloy defect identification method according to any one of claims 1 to 7 are executed.

Citation Information

Patent Citations

  • Casting surface defect detection method based on computer vision

    CN116758061A

  • Deep learning-based auxiliary metal additive manufacturing defect identification and statistics method

    CN118071720A