A method and system for detecting deburring effect based on profile cross-section image

By generating simulated and real image data sets, the ACANet deburring prediction model is constructed, and the Axial Counting Attention mechanism is used to solve the problems of low efficiency and poor accuracy in profile cross-section image deburring detection, and achieve efficient and accurate profile deburring. Effect detection.

CN118552428BActive Publication Date: 2024-10-01NANCHANG GAOFEI ALUMINUM SUPPLY CHAIN MANAGEMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411009573.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-01
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

The existing technology has low efficiency and poor accuracy in deburring and detecting cross-sectional images of metal profiles, and lacks a deburring technical solution that can be directly applied to cross-sectional images of metal profiles.

Method used

By generating simulated and real image data sets, the ACANet deburring prediction model is constructed, and the Axial Counting Attention mechanism is used to calculate the burr severity and parameter detection indicators to achieve deburring effect detection on profile cross-section images.

Benefits of technology

It improves the efficiency and accuracy of profile deburring detection, saves manpower and time costs, enhances the generalization ability and robustness of the model, and avoids over-fitting problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552428B_ABST
    Figure CN118552428B_ABST
Patent Text Reader

Abstract

The present invention discloses a deburring effect detection method and system based on a profile cross-sectional image, which relates to the technical field of image processing, including generating a simulated image pair data set of a profile cross section, obtaining a real image pair data set of a profile cross section, jointly forming a training data set, training the constructed model, and obtaining a trained ACANet deburring prediction model; inputting a real cross-sectional image of the profile to be processed to obtain a burr-free prediction image; calculating a burr severity index based on the real cross-sectional image of the profile to be processed and the burr-free prediction image, and obtaining a parameter detection index based on the burr-free prediction image; obtaining a deburring effect detection result of the profile to be processed according to the burr severity index and the parameter detection index. The present invention can generate a burr-free profile cross-sectional image that fits the real deburring effect, which is used in the deburring effect detection process, and improves the detection efficiency and detection accuracy of the deburring effect detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and more specifically, to a method and system for detecting deburring effects based on a profile cross-section image. Background Art

[0002] Due to the process limitations of mechanical processing, it is easy to produce thorns on the edges of parts and other parts. In the mechanical industry, it is called burrs, which are residual chips and extremely fine microscopic metal particles on the surface of metal parts. Burrs are a surface defect of metal profiles, which are manifested as uneven flash produced by cold cutting, hot sawing or flame cutting, and excess metal extruded at the weld when welding pipes. The causes of burrs include blunt shear blades, excessive gaps, improper installation of saw blades, wear or improper installation of punches, improper flame cutting operations, and irregular welding systems. Generally, products are allowed to have burrs of a certain height, but the internal and external burrs of welded pipes must be scraped off. A small amount of burrs does not affect the normal use of metal profile products, but it will affect the size detection of products. For example, in the process of aluminum profile extrusion, it is necessary to take cross-sectional images of the produced aluminum profile products, and then input the images into professional industrial high-precision detection software to detect indicators such as wall thickness and inner diameter. The traditional method is to manually inspect a large number of aluminum profiles, remove the burrs and then take another photo of the cross section of the aluminum profile. This method is time-consuming, labor-intensive and inefficient. In the existing technology, there are very few methods based on machine vision and deep learning to detect burrs. The existing machine vision-based methods use edge detection, Hough line detection, and HSV color segmentation technology to obtain the outline of the metal ingot, and then further obtain the mask image. The existing deep learning-based method uses a single-shot multi-box detector (SSD) network combined with a convolutional neural network (CNN) to detect edge sharpness and burrs. However, the existing methods need to rely on a large number of real profile cross-sectional images, the image acquisition process is time-consuming and labor-intensive, and the burr detection results are less accurate. In addition, there is currently no technical solution for removing burrs directly applied to metal profile cross-sectional images. Summary of the invention

[0003] In order to overcome the defects of low efficiency and poor accuracy in the above-mentioned prior art when detecting the deburring effect of profiles, the present invention provides a deburring effect detection method and system based on the profile cross-sectional image, which can generate a burr-free profile cross-sectional image that fits the actual deburring effect, and is used for the deburring effect detection process, thereby improving the detection efficiency and detection accuracy.

[0004] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0005] The present invention provides a deburring effect detection method based on a profile cross-section image, comprising:

[0006] S1: Generate a dataset of simulated image pairs of profile cross sections, including simulated burr images and simulated burr-free images of several profile cross sections; obtain a dataset of real image pairs of profile cross sections, including real burr images and real burr-free images of several profile cross sections;

[0007] S2: using the simulated image pair data set of the profile cross section and the real image pair data set of the profile cross section to form a training data set, inputting the data set into the constructed ACANet deburring prediction model for training, and obtaining a trained ACANet deburring prediction model;

[0008] S3: obtaining a real cross-sectional image of the profile to be processed, and inputting it into the trained ACANet deburring prediction model to obtain a burr-free prediction image of the profile to be processed;

[0009] S4: calculating a burr severity index based on the real cross-sectional image of the profile to be processed and the burr-free predicted image of the profile to be processed; obtaining a parameter detection index based on the burr-free predicted image of the profile to be processed;

[0010] S5: Based on the burr severity index and the parameter detection index, a deburring effect detection result of the profile to be processed is obtained.

[0011] By generating a dataset of simulated image pairs of profile cross sections through simulation, we can avoid spending too much manpower on photographing the cross sections of physical profiles. At the same time, the simulation method is random and can better simulate the shape and position of burrs, making the training dataset richer and reducing the impact of data bias on the ACANet deburring prediction model, which is beneficial to enhancing the generalization ability and robustness of the ACANet deburring prediction model. By obtaining a dataset of real image pairs of profile cross sections, we can accurately reflect the actual situation of manual or mechanical deburring, which is beneficial for the ACANet deburring prediction model to learn feature representations that are closer to reality. In addition, the simulated burr-free images in the dataset of simulated image pairs of profile cross sections are too ideal. Adding simulated burr-free images can effectively prevent the problem of overfitting in the process of training the ACANet deburring prediction model. The constructed ACANet deburring prediction model is based on Axial Counting. Attention (axial counting attention) mechanism, after the training data set is input into the ACANet deburring prediction model, the feature maps are calculated in the X-axis and Y-axis directions respectively, and the channel weight coding in the x-axis direction is generated. Each channel weight coding represents the attention coefficient of the feature map in this spatial direction, so that the ACANet deburring prediction model focuses more on the burr edge of the profile, thereby improving the burr removal effect; the burr-free prediction image of the profile to be processed obtained by the trained ACANet deburring prediction model can replace the real profile. Photos of the profile after the deburring process; based on the workpiece drawing of the profile to be processed, parameter detection is directly performed on the burr-free prediction image of the profile to be processed to obtain parameter detection indicators; at the same time, combined with the real cross-sectional image of the profile to be processed, the burr severity index is calculated to reflect the burr severity of the profile to be processed; the burr removal effect of the deburring process is detected using the burr severity index and the parameter detection index, and the burr removal effect detection result of the profile to be processed is obtained, which saves labor costs and time costs and improves the efficiency and accuracy of deburring effect detection on the profile.

[0012] Preferably, generating a data set of simulated image pairs of a cross section of a profile, including simulated burr-containing images and simulated burr-free images of several cross sections of the profile, comprises:

[0013] S101: Based on the real shapes of several profiles, a burr-free contour of the cross section of each profile is generated, and the inside of the contour is filled with pixels with a pixel value of 255 to obtain a simulated burr-free image of the cross section of each profile;

[0014] S102: using trigonometric functions and power functions to disturb the burr-free contour of each profile cross section respectively, randomly generating a simulated burr contour, filling the contour with pixel points with a pixel value of 255, and obtaining a simulated burr image of each profile cross section;

[0015] S103: The simulated burr-free image and the simulated burr-containing image of the corresponding cross section of each profile are combined into a first simulated image pair to construct a first simulated image pair data subset; each simulated burr-free image of the cross section of the profile is copied, and two identical simulated burr-free images of the cross section of the profile are used to form a second simulated image pair to construct a second simulated image pair data subset;

[0016] S104: constructing a simulated image pair data set of a profile cross section based on the first simulated image pair data subset and the second simulated image pair data subset.

[0017] It can be understood that, by using the simulation method, multiple line segment elements are set, and the ndarray array in numpy is used as the negative value of each line segment element to generate several types of burr-free contours of the profile cross section; then, the pixel point coordinates of the edge part of the burr-free contour are substituted into the trigonometric function and the power function to obtain the new pixel point coordinates of the edge part as the coordinates of the burr, thereby simulating the shape of the burr and generating a simulated burr contour; the pixel points filled with the pixel value of 255 inside the burr-free contour and the simulated burr contour are obtained to obtain the simulated burr-free image and simulated burr image of the profile cross section. The simulated burr-free image and simulated burr image of the corresponding profile cross section are composed of the first simulated image pair, the simulated burr-free image of the profile cross section is copied, and the two identical simulated burr-free images of the profile cross section are composed of the second simulated image pair, which together constitute the simulated image pair data set of the profile cross section. The first simulated image pair is used to ensure that the burr part can be effectively removed when the model is trained, and the second simulated image pair is used to ensure that the part without burrs can be unchanged when the model is trained, thereby ensuring the accuracy of the burr-free prediction image output by the model.

[0018] Preferably, a data set of real image pairs of profile cross sections is obtained, including real burr images and real burr-free images of several profile cross sections, including:

[0019] S111: obtaining cross-sectional images of several types of profiles before deburring, and performing binarization processing to obtain real burr-containing images of the cross-sectional images of the profiles;

[0020] S112: performing a deburring operation on the plurality of profiles, obtaining a cross-sectional image of the profile after deburring, and performing a binarization process to obtain a true burr-free image of the cross section of the profile;

[0021] S113: The corresponding real burr image and real burr-free image of each cross section of the profile are combined into a first real image pair to construct a first real image pair data subset; the real burr-free image of each cross section of the profile is copied, and the two same real burr-free images of the cross section of the profile are used to form a second real image pair to construct a second real image pair data subset;

[0022] S114: constructing a real image pair data set of the cross section of the profile based on the first real image pair data subset and the second real image pair data subset.

[0023] It can be understood that the role of the first real image pair and the second real image pair is the same as that of the first simulated image pair and the second simulated image pair, which is to ensure that the burr part can be effectively removed when training the model, and the burr-free part is not changed, thereby ensuring the accuracy of the burr-free predicted image output by the model.

[0024] Preferably, the constructed ACANet deburring prediction model includes an input convolution layer, a first encoder, a second encoder, a third encoder, a fourth encoder, an intermediate block, a first decoder, a second decoder, a third decoder, a fourth decoder, a first summing point, a second summing point, a third summing point, a fourth summing point, a fifth summing point and an output convolution layer;

[0025] The output end of the input convolutional layer is connected to the input end of the first encoder, and the first output end of the first encoder is connected to the first input end of the first summing point;

[0026] The second output terminal of the first encoder is connected to the input terminal of the second encoder, and the first output terminal of the second encoder is connected to the first input terminal of the second summing point;

[0027] The second output terminal of the second encoder is connected to the input terminal of the third encoder, and the first output terminal of the third encoder is connected to the first input terminal of the third summing point;

[0028] The second output terminal of the third encoder is connected to the input terminal of the fourth encoder, and the first output terminal of the fourth encoder is connected to the first input terminal of the fourth summing point;

[0029] The second output terminal of the fourth encoder is connected to the input terminal of the fourth decoder, and the output terminal of the fourth decoder is connected to the second input terminal of the fourth summing point;

[0030] The output end of the fourth summing point is connected to the input end of the third decoder, the output end of the third decoder is connected to the second input end of the third summing point, the output end of the third summing point is connected to the input end of the second decoder, the output end of the second decoder is connected to the second input end of the second summing point, the output end of the second summing point is connected to the input end of the first decoder, the output end of the first decoder is connected to the second input end of the first summing point, the output end of the first summing point is connected to the input end of the intermediate block, and the output end of the intermediate block is connected to the second input end of the fifth summing point;

[0031] The input end of the input convolution layer is connected to the first input end of the fifth summing point, the input end of the input convolution layer serves as the input end of the ACANet deburring prediction model, and the output end of the fifth summing point serves as the output end of the ACANet deburring prediction model.

[0032] Preferably, the first encoder, the second encoder, the third encoder and the fourth encoder have the same structure, and each includes a first 2D convolutional layer and The first ACANet basic block;

[0033] No. The output of the first ACANet basic block is connected to the The first ACANet basic block is connected to the input terminal; The output of the first ACANet basic block is connected to the input of the first 2D convolutional layer;

[0034] The first input of the ACANet basic block is used as the input of the encoder, The output end of the first ACANet basic block is used as the first output end of the encoder, and the output end of the first 2D convolutional layer is used as the second output end of the encoder;

[0035] in, .

[0036] Preferably, the first decoder, the second decoder, the third decoder and the fourth decoder have the same structure, and all include a second 2D convolution layer, a PixelShuffle block and A second ACANet basic block;

[0037] No. The output terminal of the second ACANet basic block is connected to the The input terminal connection of the second ACANet basic block; The output end of the second ACANet basic block is connected to the input end of the second 2D convolutional layer, and the output end of the second 2D convolutional layer is connected to the input end of the PixelShuffle block;

[0038] The input end of the first second ACANet basic block is used as the output end of the decoder, and the output end of the PixelShuffle block is used as the output end of the decoder;

[0039] in, .

[0040] Preferably, the intermediate block comprises A third ACANet basic block connected in sequence;

[0041] The input of the first third ACANet basic block is used as the input of the intermediate block. The output end of the third ACANet basic block serves as the output end of the intermediate block.

[0042] Preferably, the first ACANet basic block, the second ACANet basic block and the third ACANet basic block have the same structure, and all include a first normalization layer, a first convolution layer, a second convolution layer, a first activation function layer, an Axial Counting Attention layer, a third convolution layer, a sixth summing point, a second normalization layer, a fourth convolution layer, a second activation function layer, a fifth convolution layer and a seventh summing point connected in sequence;

[0043] The input end of the first normalization layer is connected to the input end of the sixth summing point, and the output end of the sixth summing point is also connected to the input end of the seventh summing point;

[0044] The input end of the first normalization layer is used as the input end of the ACANet basic block, and the output end of the seventh summing point is used as the output end of the ACANet basic block.

[0045] Preferably, the first activation function layer and the second activation function layer are both set with SimpleGate activation function.

[0046] Preferably, the burr severity index is calculated based on the real cross-sectional image of the profile to be processed and the burr-free predicted image of the profile to be processed, including:

[0047] S401: Create an empty set and set a pixel value threshold;

[0048] S402: When the pixel value of a pixel point at any position in the real cross-sectional image of the profile to be processed is greater than the pixel value threshold, and the pixel value of a pixel point at a corresponding position in the burr-free predicted image of the profile to be processed is less than the pixel value threshold, the pixel point at the position is added to the empty set;

[0049] S403: repeating step S402, traversing the pixel points at corresponding positions in the real cross-sectional image of the profile to be processed and the burr-free predicted image of the profile to be processed, to obtain a pixel point set;

[0050] S404: Counting the number of pixels whose pixel values ​​in the real cross-sectional image of the profile to be processed are greater than the pixel value threshold, recorded as the first number of pixels; counting the number of pixels in the pixel point set, recorded as the second number of pixels;

[0051] S405: Calculate the percentage value of the second pixel number to the first pixel number as a burr severity index.

[0052] Preferably, obtaining parameter detection indicators based on the burr-free prediction image of the profile to be processed includes:

[0053] According to the design parameters of the profile workpiece drawing, measurement is performed on the burr-free predicted image of the profile to be processed, and the parameter detection indicators include one or more of the inner diameter, outer diameter, wall thickness, and radius.

[0054] The present invention also provides a deburring effect detection system based on a profile cross-section image, based on the above detection method, comprising:

[0055] A first data acquisition module is used to generate a simulated image pair data set of a profile cross section, including simulated burr images and simulated burr-free images of several profile cross sections;

[0056] A second data acquisition module is used to acquire a data set of real image pairs of the cross section of the profile, including real burr images and real burr-free images of several types of cross sections of the profile;

[0057] A model training module, used to construct a training data set using a simulated image pair data set of the cross section of the profile and a real image pair data set of the cross section of the profile, input the data set into the constructed ACANet deburring prediction model for training, and obtain a trained ACANet deburring prediction model;

[0058] A deburring prediction module is used to obtain a real cross-sectional image of the profile to be processed, input it into the trained ACANet deburring prediction model, and obtain a burr-free prediction image of the profile to be processed;

[0059] A first deburring evaluation module, configured to calculate a burr severity index based on a real cross-sectional image of the profile to be processed and a burr-free predicted image of the profile to be processed;

[0060] A second deburring evaluation module, configured to obtain a parameter detection index based on the burr-free prediction image of the profile to be processed;

[0061] The deburring effect detection module is used to obtain the deburring effect detection result of the profile to be processed based on the burr severity index and the parameter detection index.

[0062] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0063] The present invention generates a simulated image pair data set of a profile cross section by simulation, which can avoid spending too much manpower cost on shooting the actual profile cross section. At the same time, it has randomness and can better simulate the shape and position of burrs, making the training data set richer, reducing the influence of data bias on the training ACANet deburring prediction model, and helping to enhance the generalization ability and robustness of the ACANet deburring prediction model; and obtaining a real image pair data set of the profile cross section can accurately reflect the actual situation of the deburring process, which is conducive to the ACANet deburring prediction model learning a feature representation that is closer to reality; and the simulated burr-free images in the simulated image pair data set of the profile cross section are too ideal. Adding the simulated burr-free images can effectively prevent the problem of overfitting in the process of training the ACANet deburring prediction model. The constructed ACANet deburring prediction model is based on the Axial Counting Attention mechanism, which focuses more on the burr edges of the profile, thereby improving the burr removal effect; the burr-free prediction image of the profile to be processed obtained by using the trained ACANet deburring prediction model can replace the photo of the profile after the actual deburring process; based on the workpiece drawing of the profile to be processed, parameter detection is directly performed on the burr-free prediction image of the profile to be processed to obtain the parameter detection index; at the same time, combined with the real cross-sectional image of the profile to be processed, the burr severity index is calculated to reflect the burr severity of the profile to be processed; the burr removal effect of the deburring process is detected using the burr severity index and the parameter detection index, and the deburring effect detection result of the profile to be processed is obtained, which saves manpower and time costs and improves the efficiency and accuracy of deburring effect detection of the profile. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 This is a flow chart of a deburring effect detection method based on a profile cross-section image as described in Example 1;

[0065] Figure 2 A schematic diagram of a burr-free profile of a cross section of a profile described in Example 2;

[0066] Figure 3 A simulated burr-free image of the cross section of the profile described in Example 2;

[0067] Figure 4 A schematic diagram of a simulated burr profile of a cross section of a profile described in Example 2;

[0068] Figure 5 A simulated burred image of the cross section of the profile described in Example 2;

[0069] Figure 6 The first simulated image pair described in Example 2;

[0070] Figure 7 The second simulated image pair described in Example 2;

[0071] Figure 8 The real burr-containing image of the cross section of the profile described in Example 2;

[0072] Fig. 9 A true burr-free image of the cross section of the profile described in Example 2;

[0073] Fig.10 The first real image pair described in Example 2;

[0074] Fig.11 The second real image pair described in Example 2;

[0075] Fig.12 A schematic diagram of the structure of the ACANet deburring prediction model described in Example 2;

[0076] Fig.13 This is a schematic diagram of the structure of the ACANet basic block described in Example 2;

[0077] Fig.14 This is a schematic diagram of the process of the x-axis counting operation described in Example 2;

[0078] Fig.15 Schematic diagram of the process of the y-axis counting operation described in Example 2;

[0079] Fig.16 It is a schematic diagram comparing the effects of manual burr removal described in Example 2 and burr removal by various models on the first part of the cross section of type A aluminum profile;

[0080] Fig.17 It is a schematic diagram comparing the effects of manual burr removal described in Example 2 and burr removal by various models on the second part of the cross section of the type A aluminum profile;

[0081] Fig.18 It is a schematic diagram comparing the effects of manual burr removal described in Example 2 and burr removal by various models on the cross section of a type B aluminum profile;

[0082] Fig.19 This is a structural schematic diagram of a deburring effect detection system based on a profile cross-section image as described in Example 3. DETAILED DESCRIPTION

[0083] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;

[0084] In order to better illustrate the present embodiment, some parts in the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product;

[0085] It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.

[0086] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0087] Example 1

[0088] This embodiment provides a deburring effect detection method based on a profile cross-section image. Figure 1 As shown, including:

[0089] S1: Generate a dataset of simulated image pairs of profile cross sections, including simulated burr images and simulated burr-free images of several profile cross sections; obtain a dataset of real image pairs of profile cross sections, including real burr images and real burr-free images of several profile cross sections;

[0090] S2: using the simulated image pair data set of the profile cross section and the real image pair data set of the profile cross section to form a training data set, inputting the data set into the constructed ACANet deburring prediction model for training, and obtaining a trained ACANet deburring prediction model;

[0091] S3: obtaining a real cross-sectional image of the profile to be processed, and inputting it into the trained ACANet deburring prediction model to obtain a burr-free prediction image of the profile to be processed;

[0092] S4: calculating a burr severity index based on the real cross-sectional image of the profile to be processed and the burr-free predicted image of the profile to be processed; obtaining a parameter detection index based on the burr-free predicted image of the profile to be processed;

[0093] S5: Based on the burr severity index and the parameter detection index, a deburring effect detection result of the profile to be processed is obtained.

[0094] In the specific implementation process, this embodiment generates a simulated image pair data set of the profile cross section by simulation, which can avoid spending too much manpower cost to shoot the actual profile cross section. At the same time, the simulation method is random and can better simulate the shape and position of the burr, making the training data set richer, reducing the impact of data bias on the ACANet deburring prediction model, and helping to enhance the generalization ability and robustness of the ACANet deburring prediction model; and obtaining a real image pair data set of the profile cross section can accurately reflect the actual situation of manual or mechanical deburring, which is conducive to the ACANet deburring prediction model to learn a feature representation that is closer to reality; and the simulated burr-free images in the simulated image pair data set of the profile cross section are too ideal. Adding simulated burr-free images can effectively prevent the problem of overfitting in the training process of the ACANet deburring prediction model. The constructed ACANet deburring prediction model is based on Axial Counting Attention (axial counting attention) mechanism, after the training data set is input into the ACANet deburring prediction model, the feature map is calculated in the X-axis and Y-axis directions respectively, and the channel weight codes in the X-axis and Y-axis directions are generated. Each channel weight code represents the attention coefficient of the feature map in the spatial direction, so that the ACANet deburring prediction model is more focused on the burr edge of the profile, thereby improving the deburring effect; the burr-free prediction image of the profile to be processed obtained by the trained ACANet deburring prediction model can replace the photo of the profile after the deburring process; based on the workpiece drawing of the profile to be processed, the parameter detection is directly performed on the burr-free prediction image of the profile to be processed to obtain the parameter detection index; at the same time, combined with the real cross-sectional image of the profile to be processed, the burr severity index is calculated to reflect the burr severity of the profile to be processed; the burr removal effect of the deburring process is detected using the burr severity index and the parameter detection index, and the deburring effect detection result of the profile to be processed is obtained, which saves labor cost and time cost and improves the efficiency and accuracy of deburring effect detection of the profile.

[0095] Example 2

[0096] This embodiment provides a deburring effect detection method based on a profile cross-section image, comprising:

[0097] S1: Generate a dataset of simulated image pairs of profile cross sections, including simulated burr images and simulated burr-free images of several profile cross sections; obtain a dataset of real image pairs of profile cross sections, including real burr images and real burr-free images of several profile cross sections;

[0098] Generate a dataset of simulated image pairs of profile cross sections, including simulated burr images and simulated burr-free images of several profile cross sections, including:

[0099] S101: Based on the real shapes of several profiles, a burr-free profile of each profile cross section is generated accordingly, such as Figure 2 As shown; the pixel value of the inside of the contour is filled with pixels of 255 to obtain a simulated burr-free image of the cross section of each profile, as shown Figure 3 As shown;

[0100] S102: using trigonometric functions and power functions to disturb the burr-free profile of each profile cross section, and randomly generating a simulated burr profile, such as Figure 4 As shown; the pixel value of the contour is filled with pixels of 255 to obtain a simulated burr image of each profile cross section, as shown Figure 5 As shown;

[0101] S103: Figure 6 As shown, the simulated burr-free image and the simulated burr-containing image of the corresponding cross section of each profile are combined into a first simulated image pair to construct a first simulated image pair data subset; as shown Figure 7 As shown, each simulated burr-free image of the cross section of the profile is copied, and two identical simulated burr-free images of the cross section of the profile are used to form a second simulated image pair, thereby constructing a second simulated image pair data subset;

[0102] S104: constructing a simulated image pair data set of a profile cross section based on the first simulated image pair data subset and the second simulated image pair data subset.

[0103] It can be understood that, by using the simulation method, multiple line segment elements are set, and the ndarray array in numpy is used as the negative value of each line segment element to generate several types of burr-free contours of the profile cross section; then, the pixel point coordinates of the edge part of the burr-free contour are substituted into the trigonometric function and the power function to obtain the new pixel point coordinates of the edge part as the coordinates of the burr, thereby simulating the shape of the burr and generating a simulated burr contour; the pixel points filled with the pixel value of 255 inside the burr-free contour and the simulated burr contour are obtained to obtain the simulated burr-free image and simulated burr image of the profile cross section. The simulated burr-free image and simulated burr image of the corresponding profile cross section are composed of the first simulated image pair, the simulated burr-free image of the profile cross section is copied, and the two identical simulated burr-free images of the profile cross section are composed of the second simulated image pair, which together constitute the simulated image pair data set of the profile cross section. The first simulated image pair is used to ensure that the burr part can be effectively removed when the model is trained, and the second simulated image pair is used to ensure that the part without burrs can be unchanged when the model is trained, thereby ensuring the accuracy of the burr-free prediction image output by the model.

[0104] A dataset of real image pairs of profile cross sections is obtained, including real burr images and real burr-free images of several profile cross sections, including:

[0105] S111: Obtain the cross-sectional images of several profiles before deburring respectively, and perform binarization processing to obtain the real burred images of the profile cross-sectional images, such as Figure 8 As shown;

[0106] S112: Deburring the plurality of profiles, obtaining a cross-sectional image of the profile after deburring, and performing binarization processing to obtain a true burr-free image of the profile cross section, such as Fig. 9 As shown;

[0107] S113: Fig.10 As shown, the corresponding real burr image and real burr-free image of each cross section of the profile are combined into a first real image pair to construct a first real image pair data subset; as shown Fig.11 As shown, copy each real burr-free image of the cross section of the profile, use two identical real burr-free images of the cross section of the profile to form a second real image pair, and construct a second real image pair data subset;

[0108] S114: constructing a real image pair data set of the cross section of the profile based on the first real image pair data subset and the second real image pair data subset.

[0109] S2: using the simulated image pair data set of the profile cross section and the real image pair data set of the profile cross section to form a training data set, inputting the data set into the constructed ACANet deburring prediction model for training, and obtaining a trained ACANet deburring prediction model;

[0110] like Fig.12 As shown, the constructed ACANet deburring prediction model includes an input convolution layer, a first encoder, a second encoder, a third encoder, a fourth encoder, an intermediate block, a first decoder, a second decoder, a third decoder, a fourth decoder, a first summing point, a second summing point, a third summing point, a fourth summing point, a fifth summing point and an output convolution layer;

[0111] The output end of the input convolutional layer is connected to the input end of the first encoder, and the first output end of the first encoder is connected to the first input end of the first summing point;

[0112] The second output terminal of the first encoder is connected to the input terminal of the second encoder, and the first output terminal of the second encoder is connected to the first input terminal of the second summing point;

[0113] The second output terminal of the second encoder is connected to the input terminal of the third encoder, and the first output terminal of the third encoder is connected to the first input terminal of the third summing point;

[0114] The second output terminal of the third encoder is connected to the input terminal of the fourth encoder, and the first output terminal of the fourth encoder is connected to the first input terminal of the fourth summing point;

[0115] The second output terminal of the fourth encoder is connected to the input terminal of the fourth decoder, and the output terminal of the fourth decoder is connected to the second input terminal of the fourth summing point;

[0116] The output end of the fourth summing point is connected to the input end of the third decoder, the output end of the third decoder is connected to the second input end of the third summing point, the output end of the third summing point is connected to the input end of the second decoder, the output end of the second decoder is connected to the second input end of the second summing point, the output end of the second summing point is connected to the input end of the first decoder, the output end of the first decoder is connected to the second input end of the first summing point, the output end of the first summing point is connected to the input end of the intermediate block, and the output end of the intermediate block is connected to the second input end of the fifth summing point;

[0117] The first encoder, the second encoder, the third encoder and the fourth encoder have the same structure, each including a first 2D convolutional layer and The first ACANet basic block;

[0118] No. The output of the first ACANet basic block is connected to the The first ACANet basic block is connected to the input terminal; The output of the first ACANet basic block is connected to the input of the first 2D convolutional layer;

[0119] The first input of the ACANet basic block is used as the input of the encoder, The output end of the first ACANet basic block is used as the first output end of the encoder, and the output end of the first 2D convolutional layer is used as the second output end of the encoder;

[0120] The first decoder, the second decoder, the third decoder and the fourth decoder have the same structure, and each of them includes a second 2D convolution layer, a PixelShuffle block and A second ACANet basic block;

[0121] No. The output terminal of the second ACANet basic block is connected to the The input terminal connection of the second ACANet basic block; The output end of the second ACANet basic block is connected to the input end of the second 2D convolutional layer, and the output end of the second 2D convolutional layer is connected to the input end of the PixelShuffle block;

[0122] The input end of the first second ACANet basic block is used as the output end of the decoder, and the output end of the PixelShuffle block is used as the output end of the decoder;

[0123] The intermediate block includes A third ACANet basic block connected in sequence;

[0124] In this embodiment, the number of the first ACANet basic block, the second ACANet basic block and the third ACANet basic block is 2, that is, ;

[0125] like Fig.13 As shown, the first ACANet basic block, the second ACANet basic block and the third ACANet basic block have the same structure, and all include a first normalization layer, a first convolution layer, a second convolution layer, a first activation function layer, an Axial Counting Attention layer, a third convolution layer, a sixth summing point, a second normalization layer, a fourth convolution layer, a second activation function layer, a fifth convolution layer and a seventh summing point connected in sequence;

[0126] The input end of the first normalization layer is connected to the input end of the sixth summing point, and the output end of the sixth summing point is also connected to the input end of the seventh summing point;

[0127] The input end of the first normalization layer is used as the input end of the ACANet basic block, and the output end of the seventh summing point is used as the output end of the ACANet basic block.

[0128] The core of the ACANet deburring prediction model is the ACANet basic block. Based on the axial counting attention mechanism, the x-axis counting operation and the y-axis counting operation are performed in the x-axis and y-axis directions to obtain the channel weight encodings of the y-axis and x-axis respectively. Each channel weight encoding represents the attention coefficient of the input feature map in a spatial direction; Fig.14 As shown, for the x-axis counting operation, the input image is copied to obtain a first copy image; for the first copy image, the first column is removed, and the last column is copied and placed on the right side of the last column to obtain a first feature map; the input image is subtracted from the first feature map and then input into the abs absolute value function to obtain a second feature map; the sum is calculated in the x-axis direction of the second feature map to obtain the y-axis channel weight encoding; as shown Fig.15As shown, for the y-axis counting operation, copy the input image to obtain the second copy image; for the second copy image, remove the first row, and copy the last row and place it below the last row to obtain the third feature map; subtract the input image from the second feature map and input it into the abs absolute value function to obtain the fourth feature map; calculate the sum in the y-axis direction of the fourth feature map to obtain the x-axis channel weight encoding; each channel weight encoding represents the attention coefficient of the feature map in this spatial direction, so that the ACANet deburring prediction model focuses more on the burr edges of the profile, thereby improving the burr removal effect. The convolution input layer expands the number of channels of the input image in the training dataset to C channels, and the image size entering the first ACANet basic block in the first encoder is The output image size is also , after entering the first 2D convolutional layer, the number of channels increases by 1 times, and the length and width decrease by 1 times. At this time, the image size output by the first 2D convolutional layer is , which is the image size entering the first ACANet basis block in the second encoder Similarly, the image size of the first ACANet basic block entering the third encoder is , the image size of the first ACANet basis block in the fourth encoder In the fourth decoder, the input image size remains unchanged after the second ACANet basic block; after the second 2D convolutional layer, the length and width of the image remain unchanged, and the number of channels increases by 1 times, that is, ; The PixelShuffle block can be sized The image becomes of size images, Indicates the parameters of the PixelShuffle block. In this embodiment, , then the image size output by the fourth decoder is ; Then the image output by the fourth decoder is added to the image output by the first ACANet basic block in the fourth encoder at the fourth summing point, and the image size remains unchanged and is input to the third decoder. Similarly, the size of the output image of the third decoder is , the size of the output image of the second decoder is , the size of the output image of the first decoder is ; The middle block also does not change the size of the input image, and the output convolutional layer restores the number of channels to 1, that is, , and is added to the input image of the convolution input layer at the fifth summation point to obtain a burr-free prediction image.

[0129] S3: obtaining a real cross-sectional image of the profile to be processed, performing binarization processing, and inputting the image into the trained ACANet deburring prediction model to obtain a burr-free prediction image of the profile to be processed;

[0130] S4: calculating a burr severity index based on the real cross-sectional image of the profile to be processed and the burr-free predicted image of the profile to be processed; obtaining a parameter detection index based on the burr-free predicted image of the profile to be processed;

[0131] Calculating a burr severity index based on the real cross-sectional image of the profile to be processed and the burr-free predicted image of the profile to be processed includes:

[0132] S401: Create an empty set and set a pixel value threshold;

[0133] S402: When the pixel value of a pixel point at any position in the real cross-sectional image of the profile to be processed is greater than the pixel value threshold, and the pixel value of a pixel point at a corresponding position in the burr-free predicted image of the profile to be processed is less than the pixel value threshold, the pixel point at the position is added to the empty set;

[0134] S403: repeating step S402, traversing the pixel points at corresponding positions in the real cross-sectional image of the profile to be processed and the burr-free predicted image of the profile to be processed, to obtain a pixel point set;

[0135] S404: Counting the number of pixels whose pixel values ​​in the real cross-sectional image of the profile to be processed are greater than the pixel value threshold, recorded as the first number of pixels; counting the number of pixels in the pixel point set, recorded as the second number of pixels;

[0136] S405: Calculate the percentage value of the second pixel number to the first pixel number as a burr severity index.

[0137] Based on the burr-free prediction image of the profile to be processed, parameter detection indicators are obtained, including:

[0138] According to the design parameters of the profile workpiece drawing, measurement is performed on the burr-free predicted image of the profile to be processed, and the parameter detection indicators include one or more of the inner diameter, outer diameter, wall thickness, and radius.

[0139] S5: Based on the burr severity index and the parameter detection index, a deburring effect detection result of the profile to be processed is obtained.

[0140] It can be understood that the burr removal effect test result of the profile to be processed is obtained according to the burr severity index and the number of parameter detection index passes. If the percentage value is greater than the preset value, and the number of design parameters of the profile workpiece drawing that the parameter detection index satisfies is lower than the preset number, it means that the burr degree is serious, and the predicted multiple parameters of the profile after deburring do not meet the design parameters, which means that the burr removal effect test result of the profile to be processed is not ideal, and it is necessary to further optimize the deburring process or perform manual deburring; if the percentage value is less than the preset value, and the number of design parameters of the profile workpiece drawing that the parameter detection index satisfies is higher than the preset number, it means that the burr degree is not serious, and the predicted multiple parameters of the profile after deburring meet the design parameters, which means that the burr removal effect test result of the profile to be processed is ideal, and there is no need to optimize the deburring process.

[0141] In the specific implementation process, this embodiment compares the effects of various effective deep learning models on the profile cross-section deburring task, and adjusts the ACANet deburring prediction model trained in this embodiment to obtain three variants, which are respectively recorded as ACANet-36 blocks, ACANet-18 blocks, and ACANet-9 blocks, that is, n is equal to 4, 2, and 1, respectively, including 36, 18, and 9 ACANet basic blocks. Then, multiple real cross-sectional images of type A aluminum profiles and type B aluminum profiles to be processed are obtained, and after binarization, they are respectively input into the six models of Restormer, NAFNet, SERT, ACANet-36 blocks, ACANet-18 blocks, and ACANet-9 blocks to obtain the corresponding burr-free prediction images. At the same time, the burrs of type A aluminum profile and type B aluminum profile are manually removed to obtain the images after the burrs are manually removed; then, a cubic polynomial function simulation is performed on the left or upper and lower edges of the images after the burrs are manually removed and the burr-free predicted images, and the curvature of each point on the edge is calculated, and the average is taken as the smoothness result of the edge. The smaller the curvature value, the smoother the edge. Fig.16 , 17 18, respectively, are schematic diagrams showing the comparison of the effects of manual deburring and multiple models on the first part of the cross section of type A aluminum profile, the second part of the cross section of type A aluminum profile, and the cross section of type B aluminum profile. As shown in Tables 1, 2, and 3 below, respectively, are the results of the comparison of the smoothness of different edges after manual and multiple models on the first part of the cross section of type A aluminum profile, the second part of the cross section of type A aluminum profile, and the cross section of type B aluminum profile;

[0142] Table 1 Smoothness of deburring of the first part of the cross section of type A aluminum profile by manual and various models

[0143]

[0144] Table 2 Smoothness of deburring at the second part of the cross section of type A aluminum profile by manual and various models

[0145]

[0146] Table 3 Smoothness of deburring of type B aluminum profiles by manual and various models

[0147]

[0148] It can be seen that compared with other models, the edges of the burr-free prediction images output by the three variants of the trained ACANet deburring prediction model proposed in this embodiment are smoother, reaching or even exceeding the effect of manual burr removal, indicating that the burr-free prediction images output by the trained ACANet deburring prediction model proposed in this embodiment can replace the photos taken of the actual profiles after the deburring process, thereby improving the efficiency and accuracy of detecting the burr removal effect of the profiles.

[0149] In addition, in this embodiment, the real cross-sectional images of the type A aluminum profile and the type B aluminum profile to be processed are set to a uniform size of 256×256, and the inference time, number of floating point operations per second (GFLOPs), and parameter quantity of various models under the input image of this size are counted, as shown in Table 4:

[0150] Table 4 Reasoning time, GFLOPs and number of parameters of various models

[0151]

[0152] Among them, the unit of inference time is seconds, and the unit of parameter quantity is megabytes; it can be seen that the trained ACANet deburring prediction model proposed in this embodiment has a faster inference time and a smaller parameter quantity; combined with Tables 1-3, it can be concluded that the ACANet deburring prediction model containing 9 ACANet basic blocks has the best effect and is conducive to deployment in practical applications.

[0153] Example 3

[0154] This embodiment provides a deburring effect detection system based on a profile cross-section image, based on the detection method described in Embodiment 1 or 2, such as Fig.19 As shown, including:

[0155] A first data acquisition module is used to generate a simulated image pair data set of a profile cross section, including simulated burr images and simulated burr-free images of several profile cross sections;

[0156] A second data acquisition module is used to acquire a data set of real image pairs of the cross section of the profile, including real burr images and real burr-free images of several types of cross sections of the profile;

[0157] A model training module, used to construct a training data set using a simulated image pair data set of the cross section of the profile and a real image pair data set of the cross section of the profile, input the data set into the constructed ACANet deburring prediction model for training, and obtain a trained ACANet deburring prediction model;

[0158] A deburring prediction module is used to obtain a real cross-sectional image of the profile to be processed, input it into the trained ACANet deburring prediction model, and obtain a burr-free prediction image of the profile to be processed;

[0159] A first deburring evaluation module, configured to calculate a burr severity index based on a real cross-sectional image of the profile to be processed and a burr-free predicted image of the profile to be processed;

[0160] A second deburring evaluation module, configured to obtain a parameter detection index based on the burr-free prediction image of the profile to be processed;

[0161] The deburring effect detection module is used to obtain the deburring effect detection result of the profile to be processed based on the burr severity index and the parameter detection index.

[0162] The same or similar reference numerals correspond to the same or similar components;

[0163] The terms used in the drawings to describe positional relationships are only used for illustrative purposes and should not be construed as limiting this patent;

[0164] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A deburring effect detection method based on a profile cross-section image, characterized in that: include: S1: Generate a dataset of simulated image pairs of profile cross sections, including simulated burr images and simulated burr-free images of several profile cross sections; obtain a dataset of real image pairs of profile cross sections, including real burr images and real burr-free images of several profile cross sections; Generate a dataset of simulated image pairs of profile cross sections, including simulated burr images and simulated burr-free images of several profile cross sections, including: S101: Based on the real shapes of several profiles, a burr-free contour of the cross section of each profile is generated, and the inside of the contour is filled with pixels with a pixel value of 255 to obtain a simulated burr-free image of the cross section of each profile; S102: using trigonometric functions and power functions to disturb the burr-free contour of each profile cross section respectively, randomly generating a simulated burr contour, filling the contour with pixel points with a pixel value of 255, and obtaining a simulated burr image of each profile cross section; S103: The simulated burr-free image and the simulated burr-containing image of the corresponding cross section of each profile are combined into a first simulated image pair to construct a first simulated image pair data subset; each simulated burr-free image of the cross section of the profile is copied, and two identical simulated burr-free images of the cross section of the profile are used to form a second simulated image pair to construct a second simulated image pair data subset; S104: constructing a simulated image pair data set of a cross section of a profile based on the first simulated image pair data subset and the second simulated image pair data subset; A dataset of real image pairs of profile cross sections is obtained, including real burr images and real burr-free images of several profile cross sections, including: S111: obtaining cross-sectional images of several types of profiles before deburring, and performing binarization processing to obtain real burr-containing images of the profile cross-sections; S112: performing a deburring operation on the plurality of profiles, obtaining a cross-sectional image of the profile after deburring, and performing a binarization process to obtain a true burr-free image of the cross section of the profile; S113: The corresponding real burr image and real burr-free image of each cross section of the profile are combined into a first real image pair to construct a first real image pair data subset; the real burr-free image of each cross section of the profile is copied, and the two same real burr-free images of the cross section of the profile are used to form a second real image pair to construct a second real image pair data subset; S114: constructing a real image pair data set of a cross section of a profile based on the first real image pair data subset and the second real image pair data subset; S2: using the simulated image pair data set of the profile cross section and the real image pair data set of the profile cross section to form a training data set, inputting the data set into the constructed ACANet deburring prediction model for training, and obtaining a trained ACANet deburring prediction model; S3: Obtain a real cross-sectional image of the profile to be processed, input it into the trained ACANet deburring prediction model, and obtain a burr-free prediction image of the profile to be processed; S4: calculating a burr severity index based on the real cross-sectional image of the profile to be processed and the burr-free predicted image of the profile to be processed; obtaining a parameter detection index based on the burr-free predicted image of the profile to be processed; Based on the burr-free prediction image of the profile to be processed, parameter detection indicators are obtained, including: According to the design parameters of the profile workpiece drawing, measurement is performed on the burr-free predicted image of the profile to be processed, and the parameter detection indicators include one or more of the inner diameter, outer diameter, wall thickness, and radius; S5: Based on the burr severity index and the parameter detection index, a deburring effect detection result of the profile to be processed is obtained, including: If the percentage value of the burr severity index is greater than the preset value, and the number of design parameters of the profile workpiece drawing that the parameter detection index satisfies is lower than the preset number, the deburring effect detection result of the profile to be processed is unsatisfactory; If the percentage value of the burr severity index is less than a preset value, and the number of design parameters of the profile workpiece drawing that the parameter detection index satisfies is higher than a preset number, the burr removal effect detection result of the profile to be processed is ideal.

2. The deburring effect detection method based on the profile cross-section image according to claim 1 is characterized in that: The constructed ACANet deburring prediction model includes an input convolutional layer, a first encoder, a second encoder, a third encoder, a fourth encoder, an intermediate block, a first decoder, a second decoder, a third decoder, a fourth decoder, a first summing point, a second summing point, a third summing point, a fourth summing point, a fifth summing point and an output convolutional layer; The output end of the input convolutional layer is connected to the input end of the first encoder, and the first output end of the first encoder is connected to the first input end of the first summing point; The second output terminal of the first encoder is connected to the input terminal of the second encoder, and the first output terminal of the second encoder is connected to the first input terminal of the second summing point; The second output terminal of the second encoder is connected to the input terminal of the third encoder, and the first output terminal of the third encoder is connected to the first input terminal of the third summing point; The second output terminal of the third encoder is connected to the input terminal of the fourth encoder, and the first output terminal of the fourth encoder is connected to the first input terminal of the fourth summing point; The second output terminal of the fourth encoder is connected to the input terminal of the fourth decoder, and the output terminal of the fourth decoder is connected to the second input terminal of the fourth summing point; The output end of the fourth summing point is connected to the input end of the third decoder, the output end of the third decoder is connected to the second input end of the third summing point, the output end of the third summing point is connected to the input end of the second decoder, the output end of the second decoder is connected to the second input end of the second summing point, the output end of the second summing point is connected to the input end of the first decoder, the output end of the first decoder is connected to the second input end of the first summing point, the output end of the first summing point is connected to the input end of the intermediate block, and the output end of the intermediate block is connected to the second input end of the fifth summing point; The input end of the input convolution layer is connected to the first input end of the fifth summing point, the input end of the input convolution layer serves as the input end of the ACANet deburring prediction model, and the output end of the fifth summing point serves as the output end of the ACANet deburring prediction model.

3. The deburring effect detection method based on profile cross-section image according to claim 2, characterized in that: The first encoder, the second encoder, the third encoder and the fourth encoder have the same structure, and each of them includes a first 2D convolution layer and The first ACANet basic block; No. The output of the first ACANet basic block is connected to the The first ACANet basic block is connected to the input terminal; The output of the first ACANet basic block is connected to the input of the first 2D convolutional layer; The first input of the ACANet basic block is used as the input of the encoder, The output end of the first ACANet basic block is used as the first output end of the encoder, and the output end of the first 2D convolutional layer is used as the second output end of the encoder; in, .

4. The deburring effect detection method based on profile cross-section image according to claim 3 is characterized in that: The first decoder, the second decoder, the third decoder and the fourth decoder have the same structure, and each of them includes a second 2D convolution layer, a PixelShuffle block and A second ACANet basic block; No. The output terminal of the second ACANet basic block is connected to the The input terminal connection of the second ACANet basic block; The output end of the second ACANet basic block is connected to the input end of the second 2D convolutional layer, and the output end of the second 2D convolutional layer is connected to the input end of the PixelShuffle block; The input end of the first second ACANet basic block is used as the output end of the decoder, and the output end of the PixelShuffle block is used as the output end of the decoder; in, .

5. The deburring effect detection method based on profile cross-section image according to claim 4, characterized in that: The intermediate block includes A third ACANet basic block connected in sequence; The input of the first third ACANet basic block is used as the input of the intermediate block. The output end of the third ACANet basic block serves as the output end of the intermediate block.

6. The method for detecting deburring effect based on profile cross-section image according to claim 5, characterized in that: The first ACANet basic block, the second ACANet basic block and the third ACANet basic block have the same structure, and all include a first normalization layer, a first convolution layer, a second convolution layer, a first activation function layer, an Axial CountingAttention layer, a third convolution layer, a sixth summing point, a second normalization layer, a fourth convolution layer, a second activation function layer, a fifth convolution layer and a seventh summing point connected in sequence; The input end of the first normalization layer is connected to the input end of the sixth summing point, and the output end of the sixth summing point is also connected to the input end of the seventh summing point; The input end of the first normalization layer is used as the input end of the ACANet basic block, and the output end of the seventh summing point is used as the output end of the ACANet basic block.

7. The deburring effect detection method based on profile cross-section image according to claim 1, characterized in that: Calculating a burr severity index based on the real cross-sectional image of the profile to be processed and the burr-free predicted image of the profile to be processed includes: S401: Create an empty set and set a pixel value threshold; S402: When the pixel value of a pixel point at any position in the real cross-sectional image of the profile to be processed is greater than the pixel value threshold, and the pixel value of a pixel point at a corresponding position in the burr-free predicted image of the profile to be processed is less than the pixel value threshold, the pixel point at the position is added to the empty set; S403: repeating step S402, traversing the pixel points at corresponding positions in the real cross-sectional image of the profile to be processed and the burr-free predicted image of the profile to be processed, to obtain a pixel point set; S404: Counting the number of pixels whose pixel values ​​in the real cross-sectional image of the profile to be processed are greater than the pixel value threshold, recorded as the first number of pixels; counting the number of pixels in the pixel point set, recorded as the second number of pixels; S405: Calculate the percentage value of the second pixel number to the first pixel number as a burr severity index.

8. A deburring effect detection system based on a profile cross-section image, based on the detection method according to any one of claims 1 to 7, characterized in that: include: The first data acquisition module is used to generate a simulated image pair data set of a profile cross section, including simulated burr images and simulated burr-free images of several profile cross sections; including: Based on the real shapes of several profiles, a burr-free contour of the cross section of each profile is generated, and the inside of the contour is filled with pixels with a pixel value of 255 to obtain a simulated burr-free image of the cross section of each profile; The burr-free contour of each cross section of the profile is disturbed by using trigonometric functions and power functions, and a simulated burr contour is randomly generated. The contour is filled with pixels with a pixel value of 255 to obtain a simulated burr image of each cross section of the profile; The simulated burr-free image and the simulated burr-containing image of the corresponding cross section of each profile are combined into a first simulated image pair to construct a first simulated image pair data subset; the simulated burr-free image of each cross section of the profile is copied, and the two identical simulated burr-free images of the cross section of the profile are used to form a second simulated image pair to construct a second simulated image pair data subset; constructing a simulated image pair data set of a cross section of a profile based on the first simulated image pair data subset and the second simulated image pair data subset; The second data acquisition module is used to acquire a data set of real image pairs of the cross section of the profile, including real burr images and real burr-free images of several types of cross sections of the profile; including: The cross-sectional images of several profiles before deburring are obtained respectively, and binarized to obtain the real burred images of the cross-sectional images of the profiles; Deburring the several types of profiles, obtaining cross-sectional images of the profiles after deburring, and performing binarization processing to obtain true burr-free images of the cross-sectional images of the profiles; The corresponding real burr image and real burr-free image of each cross section of the profile are combined into a first real image pair to construct a first real image pair data subset; the real burr-free image of each cross section of the profile is copied, and the two same real burr-free images of the cross section of the profile are used to form a second real image pair to construct a second real image pair data subset; Based on the first real image pair data subset and the second real image pair data subset, construct a real image pair data set of the cross section of the profile; A model training module, used to construct a training data set using a simulated image pair data set of the cross section of the profile and a real image pair data set of the cross section of the profile, input the data set into the constructed ACANet deburring prediction model for training, and obtain a trained ACANet deburring prediction model; A deburring prediction module is used to obtain a real cross-sectional image of the profile to be processed, input it into the trained ACANet deburring prediction model, and obtain a burr-free prediction image of the profile to be processed; A first deburring evaluation module, configured to calculate a burr severity index based on a real cross-sectional image of the profile to be processed and a burr-free predicted image of the profile to be processed; The second deburring evaluation module is used to obtain parameter detection indicators based on the burr-free prediction image of the profile to be processed; including: According to the design parameters of the profile workpiece drawing, measurement is performed on the burr-free predicted image of the profile to be processed, and the parameter detection indicators include one or more of the inner diameter, outer diameter, wall thickness, and radius; A deburring effect detection module is used to obtain a deburring effect detection result of the profile to be processed based on the burr severity index and the parameter detection index; comprising: If the percentage value of the burr severity index is greater than the preset value, and the number of design parameters of the profile workpiece drawing that the parameter detection index satisfies is lower than the preset number, the deburring effect detection result of the profile to be processed is unsatisfactory; If the percentage value of the burr severity index is less than a preset value, and the number of design parameters of the profile workpiece drawing that the parameter detection index satisfies is higher than a preset number, the burr removal effect detection result of the profile to be processed is ideal.