A dry spinning 3D printing defect identification method and system

By obtaining the structural information of the dry spinning workpiece in the 3D printing equipment and calculating the surface smooth area ratio, combined with ultrasonic detection and a recognition model based on the Sigmoid function, the problem of low recognition accuracy of complex workpieces in the existing technology is solved and the defect recognition is improved. precision and accuracy.

CN118583867BActive Publication Date: 2024-10-01SOUTH CHINA UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411067984.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-10-01
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

Existing ultrasonic testing methods have high recognition accuracy when identifying workpieces with relatively single shapes and structures. However, when it comes to workpieces with unique shapes and structures and multiple angles and concave-convex grooves, it is easy to misjudge the concave-convex grooves as defects, resulting in low recognition accuracy. Low, difficult to meet identification needs.

Method used

By obtaining the structural information of the dry spinning workpiece in the 3D printing equipment, the ratio of the smooth surface area to the total surface area is calculated, and based on the ratio, it is decided whether to use ultrasonic instruments or identification models for defect identification. If the ratio is greater than the preset value, ultrasonic detection is used; if the ratio is less than the preset value, a binary regression prediction model based on the Sigmoid function is used to identify the appearance image.

Benefits of technology

It improves the precision and accuracy of defect identification of complex workpieces, reduces the identification deviation, and is suitable for defect detection of different workpieces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118583867B_ABST
    Figure CN118583867B_ABST
Patent Text Reader

Abstract

The present invention discloses a dry spinning 3D printing defect recognition method and system, the method comprising: obtaining structural information of a dry spinning workpiece; determining the smooth area on the surface of the dry spinning workpiece using the structural information, and calculating the area ratio of the smooth area to the surface area of ​​the dry spinning workpiece; when the area ratio is greater than a preset ratio, calling an ultrasonic instrument to send multiple ultrasonic waves to the dry spinning workpiece, and receiving multiple reflected sound waves of the dry spinning workpiece, and determining the defect area of ​​the dry spinning workpiece according to the multiple reflected sound waves; when the area ratio is less than the preset ratio, extracting the appearance image of the dry spinning workpiece from the structural information, calling a preset recognition model to perform recognition processing on the appearance image, and obtaining the defect area of ​​the dry spinning workpiece. The present invention can determine the smooth area on the surface of the workpiece, and perform defect recognition and detection in different ways according to the area size of the smooth area, so as to combine the actual situation of the workpiece, thereby reducing the deviation of recognition and improving the recognition accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Dry spinning (also known as dry spinning, or dry spinning for short) is a type of chemical fiber and one of the main spinning methods. During dry spinning, a thin stream of spinning solution enters the spinning tunnel. The hot air flow in the tunnel causes the solvent in the thin stream of the stock solution to evaporate quickly, and the evaporated solvent vapor is carried away by the hot air flow. The stock solution solidifies while gradually removing the solvent, and stretches and thins under the action of winding tension to form primary fibers. Dry spinning can make the viscosity of the polymer fluid (e.g., solution) reach a certain critical value in the spinning tunnel to achieve coagulation. Specifically, the solvent in the thin stream of the stock solution evaporates, causing the polymer concentration to increase continuously and coagulate.

[0003] Since the morphology of dry spinning can change with temperature, as the technology of 3D printing continues to mature, 3D printers can be called to control different temperatures so that dry spinning can solidify into different states, and then dry spinning fibers can be used to print various products and workpieces. The 3D printing process will undergo rapid and repeated heat transfer phase changes, resulting in larger columnar crystals and different types of defects in its formed parts. The presence of defects will affect the integrity of the material's own performance and may cause the material to fail. Therefore, it is necessary to identify defects in 3D printed workpieces. The commonly used identification method is ultrasonic testing, which is to emit sound waves to the 3D printed workpiece. The sound waves are reflected, transmitted, diffracted, etc. at the defects, and this information is analyzed to detect the existence, shape and location of defects.

[0004] However, the commonly used methods currently have the following technical problems: Ultrasonic testing has a high recognition accuracy for workpieces with relatively simple shapes and structures. However, for workpieces with unique shapes and structures and with more angles and grooves, it is easy to misjudge the grooves of the workpiece as defects, and the recognition accuracy is low, which is difficult to meet existing recognition needs. Summary of the invention

[0005] The present invention proposes a dry spinning 3D printing defect identification method and system, which can solve one or more of the above-mentioned technical problems.

[0006] A first aspect of an embodiment of the present invention provides a dry spinning 3D printing defect identification method, the method comprising:

[0007] After the 3D printing device uses the dry-spun fiber to complete 3D printing to obtain a dry-spun workpiece, obtaining structural information of the dry-spun workpiece;

[0008] Determine a smooth region on the surface of the dry spinning workpiece by using the structural information, and calculate an area ratio of the smooth region to the surface region of the dry spinning workpiece, wherein the smooth region is a region on the surface of the dry spinning workpiece that is flat;

[0009] When the area ratio is greater than a preset ratio, an ultrasonic instrument is called to send a plurality of ultrasonic waves to the dry spinning workpiece, and a plurality of reflected sound waves of the dry spinning workpiece are received, and a defective area of ​​the dry spinning workpiece is determined according to the plurality of reflected sound waves;

[0010] When the area ratio is less than a preset ratio, the appearance image of the dry spinning workpiece is extracted from the structural information, and a preset recognition model is called to perform recognition processing on the appearance image to obtain the defect area of ​​the dry spinning workpiece. The preset recognition model is a binary regression prediction model based on the Sigmoid function.

[0011] In a possible implementation manner of the first aspect, determining the smooth area on the surface of the dry-spinning workpiece by using the structural information, and calculating the area ratio of the smooth area to the surface area of ​​the dry-spinning workpiece, includes:

[0012] extracting point cloud data and an appearance image about the surface of the dry spinning workpiece from the structural information;

[0013] After extracting an image center point from the appearance image and determining a center position point corresponding to the image center point in the point cloud data, extracting a plurality of points around the center position point from the point cloud data to obtain a plurality of adjacent position points;

[0014] After the plurality of adjacent position points are constructed into an adjacent point set, a plane equation is formed by fitting the coordinate values ​​of the adjacent point set, and the distance between the coordinates of the center position point and the plane equation is calculated to obtain a coordinate distance value;

[0015] When the coordinate distance value is less than or equal to the preset distance value, determining that the image region corresponding to the set of adjacent points is a smooth region, and calculating the area corresponding to the smooth region to obtain a smooth area;

[0016] After determining the appearance area of ​​the dry spinning workpiece based on the appearance image, the ratio of the smooth area to the appearance area is calculated to obtain an area ratio.

[0017] In a possible implementation manner of the first aspect, the operation of constructing the preset recognition model includes:

[0018] Determine the workpiece defect features and the workpiece structure features respectively, and perform image acquisition according to the workpiece defect features and the workpiece structure features to obtain a feature image set;

[0019] After extracting image information from the feature image set, calculating the information gain value of the image information, and constructing an information gain model using the information gain value;

[0020] The sigmoid function is used as the activation function, and the output gain result of the information gain model is used to construct a model to obtain a preset recognition model.

[0021] In a possible implementation manner of the first aspect, determining the defective area of ​​the dry spinning workpiece according to the multiple reflected sound waves includes:

[0022] Obtaining the sound wave duration corresponding to each of the reflected sound waves, wherein the sound wave duration is the interval between the time node of sending the ultrasonic wave to the dry spinning workpiece and the time node of receiving the reflected sound wave;

[0023] By calculating the sound wave transmission distance value according to each sound wave duration, distance values ​​different from the preset interval distance value are screened from the plurality of sound wave transmission distance values ​​to obtain a plurality of target distance values;

[0024] The defect area is determined according to the reflection position of the reflected sound wave corresponding to each target distance value at the dry spinning workpiece.

[0025] In a possible implementation manner of the first aspect, determining the defect area at a reflection position of the dry spinning workpiece according to the reflected sound wave corresponding to each target distance value includes:

[0026] Determine the reflection position coordinates of the reflected sound wave corresponding to each target distance value on the dry spinning workpiece;

[0027] Acquire an image of a position corresponding to the dry spinning workpiece according to the reflection position coordinates to obtain a reflection position image;

[0028] After enhancing the image contrast of the reflection position image to adjust the image, a preset color recognition model is called to locate and recognize the adjusted image to obtain a defect area.

[0029] In a possible implementation manner of the first aspect, after the step of determining the defective area of ​​the dry-spinning workpiece according to the reflected sound wave, or after the step of obtaining the defective area of ​​the dry-spinning workpiece, the method further includes:

[0030] After finding the coordinate value of the defect area and obtaining the defect coordinate value, determining whether the defect coordinate value is within a predetermined coordinate range;

[0031] When the defect coordinate value is within the preset coordinate range, the area of ​​the defect region is calculated using the defect coordinate value to obtain a defect area value;

[0032] When the defect area value is less than or equal to the preset area value, a prompt message indicating that printing is completed is sent.

[0033] In a possible implementation manner of the first aspect, after the step of determining whether the defect coordinate value is within a predetermined coordinate range value, the method further includes:

[0034] When the defect coordinate value is not within the preset coordinate range or the defect area value is greater than the preset area value, a printing error prompt message is sent;

[0035] After receiving the printing operation information from the user, the workpiece size is determined based on the printing operation information, and the material weight value is calculated according to the workpiece size.

[0036] A second aspect of an embodiment of the present invention provides a dry spinning 3D printing defect recognition system, the system comprising:

[0037] A module for acquiring structural information, used for acquiring structural information of a dry-spun workpiece after a 3D printing device uses dry-spun fibers to complete 3D printing to obtain a dry-spun workpiece;

[0038] an area ratio calculation module, configured to determine a smooth area on the surface of the dry spinning workpiece using the structural information, and calculate an area ratio of the smooth area to the surface area of ​​the dry spinning workpiece, wherein the smooth area is a flat area on the surface of the dry spinning workpiece;

[0039] an ultrasonic identification module, configured to, when the area ratio is greater than a preset ratio, call an ultrasonic instrument to send a plurality of ultrasonic waves to the dry spinning workpiece, receive a plurality of reflected sound waves of the dry spinning workpiece, and determine a defective area of ​​the dry spinning workpiece according to the plurality of reflected sound waves;

[0040] A model recognition module is used to extract the appearance image of the dry-spinning workpiece from the structural information when the area ratio is less than a preset ratio, call a preset recognition model to perform recognition processing on the appearance image, and obtain the defect area of ​​the dry-spinning workpiece, wherein the preset recognition model is a binary regression prediction model based on the Sigmoid function.

[0041] In a possible implementation manner of the second aspect, determining the smooth area on the surface of the dry-spinning workpiece by using the structural information, and calculating the area ratio of the smooth area to the surface area of ​​the dry-spinning workpiece, includes:

[0042] extracting point cloud data and an appearance image about the surface of the dry spinning workpiece from the structural information;

[0043] After extracting an image center point from the appearance image and determining a center position point corresponding to the image center point in the point cloud data, extracting a plurality of points around the center position point from the point cloud data to obtain a plurality of adjacent position points;

[0044] After the plurality of adjacent position points are constructed into an adjacent point set, a plane equation is formed by fitting the coordinate values ​​of the adjacent point set, and the distance between the coordinates of the center position point and the plane equation is calculated to obtain a coordinate distance value;

[0045] When the coordinate distance value is less than or equal to the preset distance value, determining that the image region corresponding to the set of adjacent points is a smooth region, and calculating the area corresponding to the smooth region to obtain a smooth area;

[0046] After determining the appearance area of ​​the dry spinning workpiece based on the appearance image, the ratio of the smooth area to the appearance area is calculated to obtain an area ratio.

[0047] In a possible implementation manner of the second aspect, the operation of constructing the preset recognition model includes:

[0048] Determine the workpiece defect features and the workpiece structure features respectively, and perform image acquisition according to the workpiece defect features and the workpiece structure features to obtain a feature image set;

[0049] After extracting image information from the feature image set, calculating the information gain value of the image information, and constructing an information gain model using the information gain value;

[0050] The sigmoid function is used as the activation function, and the output gain result of the information gain model is used to construct a model to obtain a preset recognition model.

[0051] In a possible implementation manner of the second aspect, determining the defective area of ​​the dry spinning workpiece according to the multiple reflected sound waves includes:

[0052] Obtaining the sound wave duration corresponding to each of the reflected sound waves, wherein the sound wave duration is the interval between the time node of sending the ultrasonic wave to the dry spinning workpiece and the time node of receiving the reflected sound wave;

[0053] By calculating the sound wave transmission distance value according to each sound wave duration, distance values ​​different from the preset interval distance value are screened from the plurality of sound wave transmission distance values ​​to obtain a plurality of target distance values;

[0054] The defect area is determined according to the reflection position of the reflected sound wave corresponding to each target distance value at the dry spinning workpiece.

[0055] In a possible implementation manner of the second aspect, determining the defect area at a reflection position of the dry spinning workpiece according to the reflected sound wave corresponding to each target distance value includes:

[0056] Determine the reflection position coordinates of the reflected sound wave corresponding to each target distance value on the dry spinning workpiece;

[0057] Acquire an image of a position corresponding to the dry spinning workpiece according to the reflection position coordinates to obtain a reflection position image;

[0058] After enhancing the image contrast of the reflection position image to adjust the image, a preset color recognition model is called to locate and recognize the adjusted image to obtain a defect area.

[0059] In a possible implementation manner of the second aspect, the system further includes:

[0060] A coordinate value searching module is used to determine whether the defect coordinate value is within a preset coordinate range after searching the coordinate value of the defect area to obtain the defect coordinate value;

[0061] A defect area calculation module is used to calculate the area of ​​the defect region using the defect coordinate value to obtain the defect area value when the defect coordinate value is within a preset coordinate range value;

[0062] The prompt completion information module is used to send a prompt message indicating that printing is completed when the defect area value is less than or equal to a preset area value.

[0063] In a possible implementation manner of the second aspect, the system further includes:

[0064] An error message prompting module is used to send a printing error prompting message when the defect coordinate value is not within a preset coordinate range or the defect area value is greater than a preset area value;

[0065] The weight value calculation module is used to determine the workpiece size based on the printing operation information after receiving the user's printing operation information, and calculate the material weight value according to the workpiece size.

[0066] Compared with the prior art, the dry spinning 3D printing defect recognition method and system provided by the embodiment of the present invention has the following beneficial effects: the present invention can obtain the structural information of the dry spinning workpiece after the 3D printing device uses the dry spinning fiber to complete the 3D printing to obtain the dry spinning workpiece; the smooth area on the surface of the dry spinning workpiece is determined by using the structural information, and the area ratio of the smooth area to the surface area of ​​the dry spinning workpiece is calculated; when the area ratio is greater than the preset ratio, the ultrasonic instrument is called to send multiple ultrasonic waves to the dry spinning workpiece, and multiple reflected sound waves of the dry spinning workpiece are received, and the defect area of ​​the dry spinning workpiece is determined according to the multiple reflected sound waves; when the area ratio is less than the preset ratio, the appearance image of the dry spinning workpiece is extracted from the structural information, and the preset recognition model is called to perform recognition processing on the appearance image to obtain the defect area of ​​the dry spinning workpiece; the present invention can determine the smooth area on the surface of the workpiece, and perform defect recognition and detection in different ways according to the area size of the smooth area. By combining the actual situation of the workpiece for corresponding recognition, the recognition deviation can be reduced, and the recognition precision and accuracy can be effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 It is a schematic flow chart of a dry spinning 3D printing defect identification method provided by one embodiment of the present invention;

[0068] Figure 2 It is a structural schematic diagram of a dry spinning 3D printing defect identification system provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0069] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0070] Dry spinning (also known as dry spinning, or dry spinning for short) is a type of chemical fiber and one of the main spinning methods. During dry spinning, a thin stream of spinning solution enters the spinning tunnel. The hot air flow in the tunnel causes the solvent in the thin stream of the stock solution to evaporate quickly, and the evaporated solvent vapor is carried away by the hot air flow. The stock solution solidifies while gradually removing the solvent, and stretches and thins under the action of winding tension to form primary fibers. Dry spinning can make the viscosity of the polymer fluid (e.g., solution) reach a certain critical value in the spinning tunnel to achieve coagulation. Specifically, the solvent in the thin stream of the stock solution evaporates, causing the polymer concentration to increase continuously and coagulate.

[0071] Since the morphology of dry spinning can change with temperature, as the technology of 3D printing continues to mature, 3D printers can be called to control different temperatures so that dry spinning can solidify into different states, and then dry spinning fibers can be used to print various products and workpieces. The 3D printing process will undergo rapid and repeated heat transfer phase changes, resulting in larger columnar crystals and different types of defects in its formed parts. The presence of defects will affect the integrity of the material's own performance and may cause the material to fail. Therefore, it is necessary to identify defects in 3D printed workpieces. The commonly used identification method is ultrasonic testing, which is to emit sound waves to the 3D printed workpiece. The sound waves are reflected, transmitted, diffracted, etc. at the defects, and this information is analyzed to detect the existence, shape and location of defects.

[0072] However, the commonly used methods currently have the following technical problems: Ultrasonic testing has a high recognition accuracy for workpieces with relatively simple shapes and structures. However, for workpieces with unique shapes and structures and with more angles and grooves, it is easy to misjudge the grooves of the workpiece as defects, and the recognition accuracy is low, which is difficult to meet existing recognition needs.

[0073] In order to solve the above problems, a dry spinning 3D printing defect identification method provided in an embodiment of the present application will be introduced and explained in detail through the following specific embodiments.

[0074] Reference Figure 1 , showing a schematic flow chart of a dry spinning 3D printing defect identification method provided by an embodiment of the present invention.

[0075] In one embodiment, the dry spinning 3D printing defect identification method is applicable to 3D printing equipment. Specifically, the dry spinning 3D printing defect identification method is applied to a control system or management system of a 3D printing equipment, which can be a terminal or computer of the 3D printing equipment.

[0076] In an optional embodiment, the 3D printing device may be provided with a camera, which may capture images of the workpiece and images of the manufacturing process in real time, and transmit the images and images to a technician's smart terminal for the technician to view and refer to.

[0077] In actual operation, the present invention mainly performs defect detection on the 3D printed products of dry spinning.

[0078] Wherein, as an example, the dry spinning 3D printing defect identification method may include:

[0079] S11. After a 3D printing device uses dry-spun fibers to complete 3D printing to obtain a dry-spun workpiece, structural information of the dry-spun workpiece is obtained.

[0080] In one embodiment, after the dry spinning workpiece is printed, the structural information of the dry spinning workpiece can be obtained in real time. The structural information can be the appearance structure, internal structure and related parameters and data of the dry spinning workpiece.

[0081] In an actual operation mode, the structural information includes: appearance image and point cloud data. The point cloud data is points (x, y, z), wherein the x value is the coordinate value corresponding to different positions of the surface of the dry spinning workpiece to be detected in the conveying direction; the y value is the coordinate value corresponding to different positions on the longitudinal section of the workpiece to be detected (i.e., the section in the direction perpendicular to the surface of the dry spinning workpiece to be detected); and the z value is the elevation value corresponding to different positions of the surface of the dry spinning workpiece to be detected in the conveying direction (the distance from a certain point to the absolute base plane along the plumb line direction).

[0082] The appearance image may be a two-dimensional image of any surface of the dry spinning workpiece to be inspected.

[0083] S12. Determine a smooth region on the surface of the dry-spinning workpiece using the structural information, and calculate an area ratio of the smooth region to the surface region of the dry-spinning workpiece, wherein the smooth region is a region on the surface of the dry-spinning workpiece that is flat.

[0084] In one embodiment, the dry spinning workpiece is a three-dimensional component or workpiece. In order to accurately determine whether different side surfaces thereof have defects, defect identification and detection may be performed on each side.

[0085] For example, by first performing defect detection on the front side of the dry spinning workpiece, the smooth area on the front side of the dry spinning workpiece can be determined. After completing the defect detection and identification on the front side, the top side of the dry spinning workpiece can be defect detected, and then the left side of the dry spinning workpiece can be defect detected, followed by the right side, and so on.

[0086] In an optional embodiment, after determining the smooth region on the surface of the dry spinning workpiece, the area of ​​the smooth region can be calculated, then the area of ​​the surface region of the dry spinning workpiece on this side can be calculated, and finally the ratio of the two areas can be calculated.

[0087] The area ratio can be used to determine the proportion of the smooth area. If the smooth area is larger, it means that the surface of the dry spinning workpiece is relatively flat and the concave and convex areas are smaller. On the contrary, if the smooth area is smaller, it means that the dry spinning workpiece is uneven and has more concave and convex areas.

[0088] The reason for the large number of concave and convex areas may be due to printing errors of the equipment, or it may be due to the user's design of the workpiece, which has multiple concave and convex holes. In the future, corresponding recognition methods can be used for different situations to improve the precision and accuracy of recognition.

[0089] In order to accurately determine the smooth area on the surface of the dry-spinning workpiece to be detected and the area of ​​the area, as an example, the smooth area on the surface of the dry-spinning workpiece is determined by using the structural information, and the area ratio of the smooth area to the surface area of ​​the dry-spinning workpiece is calculated, which may include the following sub-steps:

[0090] S121 . Extracting point cloud data and an appearance image about the surface of the dry spinning workpiece from the structural information.

[0091] S122. After extracting an image center point from the appearance image and determining a center position point corresponding to the image center point in the point cloud data, extract a plurality of points around the center position point from the point cloud data to obtain a plurality of adjacent position points.

[0092] S123. After constructing the plurality of adjacent position points into an adjacent point set, a plane equation is formed by fitting the coordinate values ​​of the adjacent point set, and the distance between the coordinates of the center position point and the plane equation is calculated to obtain a coordinate distance value.

[0093] S124. When the coordinate distance value is less than or equal to a preset distance value, determine that the image region corresponding to the set of adjacent points is a smooth region, and calculate the area corresponding to the smooth region to obtain a smooth area.

[0094] S125. After determining the appearance area of ​​the dry spinning workpiece based on the appearance image, calculate the ratio of the smooth area to the appearance area to obtain an area ratio.

[0095] Specifically, point cloud data and appearance images about the surface of the dry spinning workpiece can be first extracted from the structural information. In order to start the detection from the center, the center point of the image can be extracted from the appearance image to obtain the center point of the image, and then the coordinates of the position point corresponding to the center point of the image in the point cloud data are obtained to obtain the center position point.

[0096] Next, multiple adjacent position points can be searched around the central position point to obtain multiple adjacent position points, and the multiple adjacent position points can be grouped into a set to obtain an adjacent point set. It should be noted that in order to allow multiple adjacent position points to form a planar area to determine whether the area is a smooth area, the number of adjacent position points is at least 3, and at least 3 adjacent position points are extracted.

[0097] After constructing the adjacent point set, the coordinate value of each point in the adjacent point set can be determined, and then a plane equation is generated by fitting the coordinate values ​​of the adjacent point set, and then the distance between the coordinates of the center point and the plane equation is calculated to obtain the coordinate distance value.

[0098] In one embodiment, the plane equation may be expressed as follows:

[0099] Ax+By+Cz+D=0.

[0100] Among them, x, y, z are the coordinate values ​​of each position point in the point cloud data, which can be variables. According to the coordinate values ​​of the above point set, the values ​​of A, B, and C can be calculated. It should be noted that D can be a calculation constant set by the user or 0. After substituting the coordinates of each position point, the plane function about x, y, and z can be obtained, and the plane equation can be obtained.

[0101] Next, the distance between the coordinate value of the center point of the image and the above plane equation can be calculated to obtain the coordinate distance value. The coordinate distance value can be calculated by substituting the coordinate value of the center point of the image into the above plane equation Ax+By+Cz+D=0. It should be noted that the coordinate distance value satisfies the following relationship:

[0102] ;

[0103] Among them, △d is the coordinate distance value; x0, y0, z0 are the coordinate values ​​of the center point of the image.

[0104] After calculating the coordinate distance value, it can be determined whether the coordinate distance value is less than or equal to the preset distance value. If the coordinate distance value is less than or equal to the preset distance value, it means that the area formed by the center point of the image and its surrounding adjacent position points is a smooth area.

[0105] In actual operation, this operation only determines the center point of the image and the area around it. In order to further expand the detection area of ​​the surface of the dry spinning workpiece to determine whether the surrounding area is a smooth area, any point in the adjacent point set can be used as the center point, and multiple adjacent position points can be searched with this point as the center in the above manner to obtain a new adjacent point set. The plane equation is constructed again in the above manner, and the coordinate distance value of the plane equation between the new center point and its new adjacent point set is calculated. Then, based on its coordinate distance value, it is determined whether the area corresponding to the new center point is a smooth area.

[0106] If yes, continue to perform the above operation, if not, search for the point to be operated in the adjacent point set until any point performs the above operation. Finally, multiple smooth regions can be obtained, and then the area of ​​each smooth region is calculated separately.

[0107] Optionally, in order to further expand the detection area of ​​the surface of the dry spinning workpiece to determine whether the surrounding area is a smooth area, any point can be selected from all the position coordinate points in the point cloud data as mentioned above, and then it can be determined in the above manner whether the area corresponding to the selected point is a smooth area until all the position coordinate points in the point cloud data have completed the above processing.

[0108] In one embodiment, since the coordinates of each point of the smooth region are determined, the area of ​​each smooth region can be calculated according to the coordinates of the point. Finally, the sum of the areas of multiple smooth regions is calculated to obtain the total area of ​​the smooth regions on the surface of the dry spinning workpiece, thereby obtaining the smooth area.

[0109] Next, the appearance image can be identified to obtain the region of the workpiece, and then the area of ​​the region of the workpiece can be calculated to obtain the appearance area of ​​the dry spinning workpiece. Finally, the ratio of the smooth area to the appearance area can be calculated to obtain the area ratio.

[0110] S13. When the area ratio is greater than a preset ratio, an ultrasonic instrument is called to send a plurality of ultrasonic waves to the dry spinning workpiece, and a plurality of reflected sound waves of the dry spinning workpiece are received, and a defective area of ​​the dry spinning workpiece is determined according to the plurality of reflected sound waves.

[0111] In one embodiment, if the area ratio is greater than the preset ratio, it means that the area of ​​the smooth area on the dry spinning workpiece is larger, and the dry spinning workpiece is relatively flat, which may be a completely flat plane. In order to quickly detect defects, especially to detect defects inside the plane of the dry spinning workpiece, an ultrasonic instrument can be called to send multiple ultrasonic waves to the dry spinning workpiece, and then the sound waves rebounded by the dry spinning workpiece after receiving the ultrasonic waves can be received, and multiple reflected sound waves can be obtained, and finally the defect area of ​​the dry spinning workpiece is determined according to the multiple reflected sound waves.

[0112] If there are no defects on the surface of the dry spinning workpiece, the ultrasonic wave will be directly reflected back, and it can be determined whether there is a defect at the location where the ultrasonic wave is transmitted based on its transmission time.

[0113] In one of the embodiments, the surface areas of several spinning workpieces are relatively large, and a beam of ultrasonic waves is emitted to the surface one by one for ultrasonic detection. Not only is the processing time-consuming, but the reflected sound waves also need to be detected and processed one by one afterwards, resulting in low processing efficiency.

[0114] In order to improve the processing efficiency, multiple ultrasonic waves can be simultaneously emitted to the surface of the dry spinning workpiece, and then multiple reflected sound waves are received, and detection is performed based on the multiple reflected sound waves. As an example, determining the defective area of ​​the dry spinning workpiece based on the multiple reflected sound waves can include the following sub-steps:

[0115] S131. Obtaining a sound wave duration corresponding to each reflected sound wave, where the sound wave duration is an interval between a time point of sending an ultrasonic wave to the dry spinning workpiece and a time point of receiving the reflected sound wave.

[0116] S132, calculating the sound wave transmission distance value according to each of the sound wave durations, and screening distance values ​​different from the preset interval distance value from the plurality of sound wave transmission distance values ​​to obtain a plurality of target distance values.

[0117] S133, determining a defect area at a reflection position of the dry spinning workpiece according to the reflected sound wave corresponding to each target distance value.

[0118] In an actual operation mode, the ultrasonic transmitter can be controlled to simultaneously transmit a plurality of ultrasonic waves to the dry spinning workpiece, and then, the sound waves reflected by the dry spinning workpiece can be simultaneously received to obtain a plurality of reflected sound waves.

[0119] Since the plane of the dry spinning workpiece is relatively flat, ultrasonic waves can be emitted to the dry spinning workpiece at the same level. Under normal circumstances, some spinning workpieces have no defects or grooves, and their planes will also reflect ultrasonic waves in the horizontal direction.

[0120] Therefore, after receiving the reflected sound wave, the duration of the reflected sound wave can be obtained. In order to distinguish each ultrasonic wave, a code can be added to each ultrasonic wave before transmitting the ultrasonic wave.

[0121] Specifically, assuming that 10 ultrasonic waves are emitted at the same time, each ultrasonic signal to be sent can be encoded into a coded signal group with a preset code, so that the transmitted ultrasonic wave can carry a specific code, and each ultrasonic wave has a corresponding specific code, so that the code of each ultrasonic wave is different, so that when receiving the feedback signal, each ultrasonic signal can be distinguished to avoid detection errors.

[0122] In one embodiment, a plurality of ultrasonic sensors may be installed, each of which may send a corresponding ultrasonic wave at the same time, and the ultrasonic signal of each ultrasonic sensor may be specifically encoded respectively.

[0123] Since there are multiple ultrasonic sensors, in order to distinguish the ultrasonic signals sent by different ultrasonic sensors, the device identification code of each ultrasonic sensor can be used as the code of the ultrasonic wave emitted by it.

[0124] The specific encoding method is to input the ultrasonic signal into a frequency divider to obtain separated signals of different frequencies, and then use a preset FSK modulator to modulate the multiple separated signals according to the device identification code to form a coded ultrasonic signal with the device identification code.

[0125] After transmitting the ultrasonic signal with the coding or identification code, the dry spinning workpiece will receive the coded ultrasonic signal, and the dry spinning workpiece can also bounce the corresponding signal. Then, the ultrasonic signal bounced by the dry spinning workpiece can be obtained at the same time, and multiple reflected sound waves can be obtained.

[0126] Then it can be determined whether the reflected sound wave contains the preset code. If not, it is not the ultrasonic wave just emitted by the sensor. If so, the reflected sound wave can be reversely decoded to obtain a decoded signal.

[0127] Then, the emission time of ultrasonic wave A and the reception time of the reflected sound wave corresponding to ultrasonic wave A can be obtained. The duration of the sound wave corresponding to ultrasonic wave A can be calculated through the emission time and the reception time.

[0128] Similarly, the sound wave duration corresponding to each ultrasonic wave may be obtained one by one in the above manner to obtain multiple sound wave durations.

[0129] Then, the sound wave transmission distance value can be calculated according to each sound wave duration. In one implementation, the sound wave transmission distance value can be calculated based on the TOF principle, and the distance between the ultrasonic sensor and the dry spinning workpiece is calculated according to the transmission time and the reception time.

[0130] Then, the distance values ​​different from the preset interval distance values ​​are selected from the multiple sound wave transmission distance values ​​to obtain several target distance values. Assume that there are 5 sound wave transmission distance values, namely 5mm, 6mm, 5mm, 4mm and 5mm. The preset interval distance value is 5mm. Then the distance values ​​different from the preset interval distance value are 6mm and 4mm respectively.

[0131] The irradiation area of ​​the ultrasonic wave transmitted by the ultrasonic sensor corresponding to 6 mm and 4 mm is determined, and the area is taken as the defect area.

[0132] Alternatively, the reflection positions of the reflected sound waves corresponding to 6 mm and 4 mm may be obtained, and the positions may be used as defect areas.

[0133] In order to accurately determine the defect area for the reflected sound wave, as an example, the defect area is determined according to the reflection position of the reflected sound wave corresponding to each target distance value at the dry spinning workpiece, which may include the following sub-steps:

[0134] S1331, determining the reflection position coordinates of the reflected sound wave corresponding to each target distance value on the dry spinning workpiece.

[0135] S1332. Acquire an image of a corresponding position of the dry spinning workpiece according to the reflection position coordinates to obtain a reflection position image.

[0136] S1333. After enhancing the image contrast of the reflection position image and adjusting the image, call a preset color recognition model to locate and recognize the adjusted image to obtain a defect area.

[0137] In one embodiment, the reflection position coordinates of the reflected sound wave corresponding to each target distance value on the dry spinning workpiece may be determined.

[0138] Since the ultrasonic wave is encoded, the reflected sound wave and the emitted ultrasonic wave can correspond one to one. Specifically, the position of the emitted ultrasonic wave can be obtained, and then the point cloud data corresponding to the position can be obtained, so that the coordinates of the reflected position can be obtained.

[0139] Next, the camera can be called according to the reflection position coordinates to obtain an image of the corresponding position of the dry spinning workpiece to obtain a reflection position image.

[0140] Then, the image contrast of the reflection position image can be enhanced to adjust the image, and then a preset color recognition model can be called to locate and identify the adjusted image to obtain the defect area.

[0141] Specifically, the preset color recognition model may be a CMYK (Cyan Magenta Yellow Key) color model, an HSB model, or an RGB model.

[0142] In an actual operation mode, a plurality of images of dry spinning workpieces may be used in advance for model training, and the user may mark the colors corresponding to the dry spinning materials and the colors corresponding to the non-dry spinning materials in the plurality of images of dry spinning workpieces in advance.

[0143] During identification, if the model has defects (such as gaps), its color will deviate from the color corresponding to the dry-spun material. The model can identify the color area corresponding to the dry-spun material and the color area corresponding to the non-dry-spun material in the image based on the color, and then determine the defective area in the image.

[0144] Optionally, during the 3D printing process, the materials may stick together on the surface and be hollow inside, so the dry spinning workpiece has defects inside and no defects on the surface, in order to detect the surface perfection and the internal defective areas. In an optional embodiment, the signal strength of the ultrasonic wave can also be used for judgment.

[0145] Specifically, after receiving a plurality of reflected sound waves, the sound wave intensity value of each reflected sound wave can be determined respectively, and the difference between the sound wave intensity value of each reflected sound wave and its corresponding transmitted ultrasonic wave is calculated. If the difference is greater than the preset intensity difference, the reflection position coordinates of the reflected sound wave on the dry spinning workpiece are obtained, and the area where the reflection position coordinates are located is regarded as a defect.

[0146] S14. When the area ratio is less than a preset ratio, the appearance image of the dry-spinning workpiece is extracted from the structural information, and a preset recognition model is called to perform recognition processing on the appearance image to obtain the defect area of ​​the dry-spinning workpiece. The preset recognition model is a binary regression prediction model based on the Sigmoid function.

[0147] In one embodiment, if the area ratio is less than the preset ratio, it means that the smooth area of ​​the dry spinning workpiece is small, and the dry spinning workpiece has many bumps or defects. The defect positions may be the design or installation positions of the workpiece.

[0148] In order to identify the positions of multiple bumps and depressions, the appearance image of the dry spinning workpiece can be extracted from the structural information, and a preset recognition model is called to perform recognition processing on the appearance image to obtain the defect area of ​​the dry spinning workpiece. The preset recognition model is a binary regression prediction model based on the Sigmoid function.

[0149] In one embodiment, the operation of constructing the preset recognition model may include the following sub-steps:

[0150] S21. Determine workpiece defect features and workpiece structural features respectively, and perform image acquisition according to the workpiece defect features and the workpiece structural features to obtain a feature image set.

[0151] S22, calculating the information gain value of the image information after extracting the image information from the feature image set, and constructing an information gain model using the information gain value.

[0152] S23, using the sigmoid function as the activation function, and using the output gain result of the information gain model to construct a model to obtain a preset recognition model.

[0153] In one embodiment, the preset recognition model is to collect images of dry spinning workpieces, and then the user marks the workpiece defect features and workpiece structure features in the images of the dry spinning workpieces, and then use the above images to perform model training based on the Sigmoid function to form a prediction model.

[0154] Specifically, the preset recognition model can be constructed as follows:

[0155] In the first step, a feature image set is obtained, which includes multiple images of dry spinning workpieces, and a user marks workpiece defect features and workpiece structure features in the images of the dry spinning workpieces.

[0156] In one embodiment, the workpiece defect features are features resulting from printing errors, material errors, and position errors.

[0157] For example, after the workpiece is printed, some material remains on the workpiece, and the remaining material will stick to the workpiece. After acquiring the image, the user can mark it in the image to obtain the workpiece defect feature. The mark can be 1 or other methods.

[0158] In one embodiment, the workpiece structural feature is a feature of a position such as a socket or a notch of the workpiece. The workpiece structural feature can be obtained by:

[0159] After viewing the image of the workpiece, the user can determine whether there is a notch position accompanying the original structure at that position. If so, it is marked to indicate that the position is a structural feature of the workpiece, for example, the image is marked as 2.

[0160] It should be noted that both the workpiece defect features and the workpiece structure features are Boolean variables and belong to binary classification problems.

[0161] The second step is to build an information gain model. Specifically, by intercepting the images of workpiece defect features and workpiece structural features of each image in the feature image set, the structure, shape, size and other parameters of these images can be obtained to obtain image information. Then, the degree of confusion of the image information can be calculated to obtain the information gain of the image information.

[0162] The calculation formula of the degree of chaos is as follows:

[0163] ;

[0164] In the above formula, X represents the image information, p(x i ) represents the sample x i The probability of occurrence, H(X) represents the degree of confusion of image information.

[0165] The information gain is calculated as follows:

[0166] ;

[0167] ;

[0168] In the above formula, X and A both represent image information, H (X / A) is the uncertainty of random variable X under the condition of known random variable A, H(X) represents the degree of confusion of the image information, and Gain (X, A) represents the information gain of data A to data X.

[0169] It should be noted that the information gain model can measure the uncertainty of whether the area in the image is a defect or a structure, so as to further find the relationship between the two and measure the degree of mutual influence between the workpiece defect and the workpiece structure, so as to determine the gain change of each data value according to the degree of mutual influence.

[0170] It should be noted that in the information gain model, the more information a feature brings to the system, the more important this feature is. For a feature, the difference in the amount of information when the system has this feature and when it does not have this feature is the amount of information that this feature can bring to the system. The larger the difference, the more information this feature can bring to the system.

[0171] The third step is to construct a prediction model using the information gain value output by the information gain model. The prediction model can be a Multi-layer Perceptron (MLP), which is a forward structure of an artificial neural network, consisting of an input layer, a hidden layer, and an output layer.

[0172] The calculation formula of the prediction model is as follows:

[0173] ;

[0174] ;

[0175] In the above formula, x i is the input variable, i.e., the information gain value output by the information gain model, y is the output prediction result, μ j is the output of the hidden layer neurons, v ij is the weight of the i-th input variable and the j-th hidden layer neuron, θ j u is the threshold of the jth neuron in the hidden layer u. f is the mapping relationship of the activation function.

[0176] In one embodiment, the activation function is a sigmoid function, and the calculation formula of the sigmoid function is as follows:

[0177] ;

[0178] In one embodiment, the model may have n samples and m hidden layers, so that the error between the predicted value and the true value can be minimized.

[0179] In one embodiment, after the appearance image is input into a preset recognition model, the binary classification recognition model can identify whether the uneven area of ​​the appearance image is a defect or the structure of the workpiece. If it is a defect, the image can be marked and the image of the area can be captured to obtain the defective area of ​​the dry spinning workpiece.

[0180] Optionally, in order to address the difficulty in defect identification in dry spinning applications in 3D printing, it is also possible to collect recognized images, use the recognized images to optimize the model, and then use the optimized recognition model for identification, thereby accurately identifying defects and improving the dry spinning defect identification rate.

[0181] In an actual operation mode, after the detection is performed, an error may occur in the detection, and a certain position of the workpiece may be mistakenly considered as a defective position. In order to determine whether the defective area is the same as or matches the structural area of ​​the workpiece, as an example, after the step of determining the defective area of ​​the dry-spinning workpiece according to the reflected sound wave, or after the step of obtaining the defective area of ​​the dry-spinning workpiece, the method further includes the following steps:

[0182] S15. After finding the coordinate value of the defect area and obtaining the defect coordinate value, determine whether the defect coordinate value is within a preset coordinate range.

[0183] S16. When the defect coordinate value is within a predetermined coordinate range, the defect coordinate value is used to calculate the area of ​​the defect region to obtain a defect area value.

[0184] S17. When the defect area value is less than or equal to the preset area value, a prompt message indicating that printing is completed is sent.

[0185] Specifically, the defect coordinate value can be obtained by searching for the coordinate value of the defect area, or the coordinate value corresponding to the defect area can be determined in the point cloud data, and then it is determined whether the defect coordinate value is within a preset coordinate range.

[0186] The preset coordinate range value is the coordinate position of a special position of the workpiece preset by the user.

[0187] If the defect coordinate value is within the preset coordinate range, it means that the defect area is a special position of the workpiece set by the user.

[0188] The socket that may be used to place the assembly. If the socket at this position is too large, the assembly may not be placed. If the socket at this position is too small, it can be adjusted to meet the assembly requirements. In order to facilitate the user to view the socket, the area of ​​the defect area can be calculated using the defect coordinate value to obtain the defect area value. The defect area value is then sent to the technician's smart terminal for viewing.

[0189] If the defect area value is less than or equal to the preset area value, it means that the socket at the location is small, and a prompt message indicating that the printing is completed can be sent to the technician of the 3D printing device.

[0190] Specifically, a prompt message indicating that printing is completed may be sent to the technician's smart terminal for him to review.

[0191] In another optional embodiment, the defective area that may be identified is too large and the assembly may not be placed. In order to promptly remind the technician of the printing error, the method further includes the following steps as an example:

[0192] S18. When the defect coordinate value is not within the preset coordinate range or the defect area value is greater than the preset area value, a printing error prompt message is sent.

[0193] S19. After receiving the user's printing operation information, determine the workpiece size based on the printing operation information, and calculate the material weight value according to the workpiece size.

[0194] Specifically, if the defect coordinate value is not within the preset coordinate range or the defect area value is greater than the preset area value, the workpiece may be printed incorrectly, and a printing error prompt message may be sent to the technician's smart terminal.

[0195] After checking the prompt message of printing error, the technician can check the workpiece. If it is determined that a printing error occurs, it may need to be reprinted. In order to facilitate the technician to perform subsequent operations, the user's printing operation information can be received. The printing operation information can reprint the operation information of the workpiece, and then the workpiece size can be determined based on the printing operation information. The material weight value is calculated according to the workpiece size, and the material is extracted according to the material weight value and reprinted.

[0196] In one embodiment, the unit volume weight value of the workpiece may be obtained, and then the workpiece volume may be calculated using the workpiece size, and the material weight value may be calculated using the unit volume weight value and the workpiece volume.

[0197] In this embodiment, the embodiment of the present invention provides a dry spinning 3D printing defect recognition method, and its beneficial effect is that: the present invention can obtain the structural information of the dry spinning workpiece after the 3D printing device uses the dry spinning fiber to complete the 3D printing to obtain the dry spinning workpiece; use the structural information to determine the smooth area on the surface of the dry spinning workpiece, and calculate the area ratio of the smooth area to the surface area of ​​the dry spinning workpiece; when the area ratio is greater than the preset ratio, the ultrasonic instrument is called to send multiple ultrasonic waves to the dry spinning workpiece, and multiple reflected sound waves of the dry spinning workpiece are received, and the defect area of ​​the dry spinning workpiece is determined according to the multiple reflected sound waves; when the area ratio is less than the preset ratio, the appearance image of the dry spinning workpiece is extracted from the structural information, and the preset recognition model is called to recognize and process the appearance image to obtain the defect area of ​​the dry spinning workpiece; the present invention can determine the smooth area on the surface of the workpiece, and perform defect recognition and detection in different ways according to the area size of the smooth area. By combining the actual situation of the workpiece for corresponding recognition, the recognition deviation can be reduced, and the recognition precision and accuracy can be effectively improved.

[0198] The present invention also provides a dry spinning 3D printing defect recognition system, see Figure 2 , showing a structural schematic diagram of a dry spinning 3D printing defect identification system provided by an embodiment of the present invention.

[0199] Wherein, as an example, the dry spinning 3D printing defect recognition system may include:

[0200] The structure information acquisition module 201 is used to acquire the structure information of the dry-spun workpiece after the 3D printing device uses the dry-spun fiber to complete 3D printing to obtain the dry-spun workpiece;

[0201] An area ratio calculation module 202 is used to determine a smooth area on the surface of the dry spinning workpiece using the structural information, and calculate an area ratio of the smooth area to the surface area of ​​the dry spinning workpiece, wherein the smooth area is a flat area on the surface of the dry spinning workpiece;

[0202] The ultrasonic identification module 203 is used for, when the area ratio is greater than a preset ratio, calling an ultrasonic instrument to send a plurality of ultrasonic waves to the dry spinning workpiece, and receiving a plurality of reflected sound waves of the dry spinning workpiece, and determining a defective area of ​​the dry spinning workpiece according to the plurality of reflected sound waves;

[0203] The model recognition module 204 is used to extract the appearance image of the dry-spinning workpiece from the structural information when the area ratio is less than a preset ratio, and call a preset recognition model to perform recognition processing on the appearance image to obtain the defect area of ​​the dry-spinning workpiece. The preset recognition model is a binary regression prediction model based on the Sigmoid function.

[0204] Optionally, the determining the smooth area on the surface of the dry-spinning workpiece by using the structural information and calculating the area ratio of the smooth area to the surface area of ​​the dry-spinning workpiece comprises:

[0205] extracting point cloud data and an appearance image about the surface of the dry spinning workpiece from the structural information;

[0206] After extracting an image center point from the appearance image and determining a center position point corresponding to the image center point in the point cloud data, extracting a plurality of points around the center position point from the point cloud data to obtain a plurality of adjacent position points;

[0207] After the plurality of adjacent position points are constructed into an adjacent point set, a plane equation is formed by fitting the coordinate values ​​of the adjacent point set, and the distance between the coordinates of the center position point and the plane equation is calculated to obtain a coordinate distance value;

[0208] When the coordinate distance value is less than or equal to the preset distance value, determining that the image region corresponding to the set of adjacent points is a smooth region, and calculating the area corresponding to the smooth region to obtain a smooth area;

[0209] After determining the appearance area of ​​the dry spinning workpiece based on the appearance image, the ratio of the smooth area to the appearance area is calculated to obtain an area ratio.

[0210] Optionally, the operation of constructing the preset recognition model includes:

[0211] Determine the workpiece defect features and the workpiece structure features respectively, and perform image acquisition according to the workpiece defect features and the workpiece structure features to obtain a feature image set;

[0212] After extracting image information from the feature image set, calculating the information gain value of the image information, and constructing an information gain model using the information gain value;

[0213] The sigmoid function is used as the activation function, and the output gain result of the information gain model is used to construct a model to obtain a preset recognition model.

[0214] Optionally, determining the defective area of ​​the dry spinning workpiece according to the plurality of reflected sound waves comprises:

[0215] Obtaining the sound wave duration corresponding to each of the reflected sound waves, wherein the sound wave duration is the interval between the time node of sending the ultrasonic wave to the dry spinning workpiece and the time node of receiving the reflected sound wave;

[0216] By calculating the sound wave transmission distance value according to each sound wave duration, distance values ​​different from the preset interval distance value are screened from the plurality of sound wave transmission distance values ​​to obtain a plurality of target distance values;

[0217] The defect area is determined according to the reflection position of the reflected sound wave corresponding to each target distance value at the dry spinning workpiece.

[0218] Optionally, determining the defect area according to the reflection position of the reflected sound wave corresponding to each target distance value at the dry spinning workpiece includes:

[0219] Determine the reflection position coordinates of the reflected sound wave corresponding to each target distance value on the dry spinning workpiece;

[0220] Acquire an image of a position corresponding to the dry spinning workpiece according to the reflection position coordinates to obtain a reflection position image;

[0221] After enhancing the image contrast of the reflection position image to adjust the image, a preset color recognition model is called to locate and recognize the adjusted image to obtain a defect area.

[0222] Optionally, the system further comprises:

[0223] A coordinate value searching module is used to determine whether the defect coordinate value is within a preset coordinate range after searching the coordinate value of the defect area to obtain the defect coordinate value;

[0224] A defect area calculation module is used to calculate the area of ​​the defect region using the defect coordinate value to obtain the defect area value when the defect coordinate value is within a preset coordinate range value;

[0225] The prompt completion information module is used to send a prompt message indicating that printing is completed when the defect area value is less than or equal to a preset area value.

[0226] Optionally, the system further comprises:

[0227] An error message prompting module is used to send a printing error prompting message when the defect coordinate value is not within a preset coordinate range or the defect area value is greater than a preset area value;

[0228] The weight value calculation module is used to determine the workpiece size based on the printing operation information after receiving the user's printing operation information, and calculate the material weight value according to the workpiece size.

[0229] Those skilled in the art can clearly understand that, for the sake of convenience and brevity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0230] Furthermore, an embodiment of the present application also provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the dry spinning 3D printing defect identification method as described in the above embodiment is implemented.

[0231] Furthermore, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer-executable program, and the computer-executable program is used to enable a computer to execute the dry spinning 3D printing defect identification method as described in the above embodiment.

[0232] It should be noted that the orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the embodiments of the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. When an element such as a layer, region or substrate is referred to as being "on" or "above" another element, it can be directly on the other element, or there can also be an intermediate element. On the contrary, when an element is referred to as "directly on" or "above" another element, there is no intermediate element. It should also be understood that when an element is referred to as being "under" or "below" another element, it can be directly under or below the other element, or there can also be an intermediate element. On the contrary, when an element is referred to as being "directly under" or "below" another element, there is no intermediate element. Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0233] Those skilled in the art will appreciate that the embodiments of the present application may also provide computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program codes.

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

[0235] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0236] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0237] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A dry spinning 3D printing defect identification method, characterized in that: The method comprises: After the 3D printing device uses the dry-spun fiber to complete 3D printing to obtain a dry-spun workpiece, obtaining structural information of the dry-spun workpiece; Determine a smooth region on the surface of the dry spinning workpiece by using the structural information, and calculate an area ratio of the smooth region to the surface region of the dry spinning workpiece, wherein the smooth region is a region on the surface of the dry spinning workpiece that is flat; When the area ratio is greater than a preset ratio, an ultrasonic instrument is called to send a plurality of ultrasonic waves to the dry spinning workpiece, and a plurality of reflected sound waves of the dry spinning workpiece are received, and a defective area of ​​the dry spinning workpiece is determined according to the plurality of reflected sound waves; When the area ratio is less than a preset ratio, an appearance image of the dry spinning workpiece is extracted from the structural information, and a preset recognition model is called to perform recognition processing on the appearance image to obtain a defect area of ​​the dry spinning workpiece, wherein the preset recognition model is a binary regression prediction model based on a Sigmoid function; The step of determining the smooth area on the surface of the dry-spinning workpiece by using the structural information and calculating the area ratio of the smooth area to the surface area of ​​the dry-spinning workpiece comprises: extracting point cloud data and an appearance image about the surface of the dry spinning workpiece from the structural information; After extracting an image center point from the appearance image and determining a center position point corresponding to the image center point in the point cloud data, extracting a plurality of points around the center position point from the point cloud data to obtain a plurality of adjacent position points; After the plurality of adjacent position points are constructed into an adjacent point set, a plane equation is formed by fitting the coordinate values ​​of the adjacent point set, and the distance between the coordinates of the center position point and the plane equation is calculated to obtain a coordinate distance value; When the coordinate distance value is less than or equal to the preset distance value, determining that the image region corresponding to the set of adjacent points is a smooth region, and calculating the area corresponding to the smooth region to obtain a smooth area; After determining the appearance area of ​​the dry spinning workpiece based on the appearance image, calculating the ratio of the smooth area to the appearance area to obtain an area ratio; The step of determining the defective area of ​​the dry spinning workpiece according to the plurality of reflected sound waves comprises: Obtaining the sound wave duration corresponding to each of the reflected sound waves, wherein the sound wave duration is the interval between the time node of sending the ultrasonic wave to the dry spinning workpiece and the time node of receiving the reflected sound wave; Calculating a sound wave transmission distance value according to each sound wave duration, and selecting distance values ​​different from a preset interval distance value from a plurality of sound wave transmission distance values ​​to obtain a plurality of target distance values; The defect area is determined according to the reflection position of the reflected sound wave corresponding to each target distance value at the dry spinning workpiece.

2. The dry spinning 3D printing defect identification method according to claim 1, characterized in that: The operation of constructing the preset recognition model includes: Determine the workpiece defect features and the workpiece structure features respectively, and perform image acquisition according to the workpiece defect features and the workpiece structure features to obtain a feature image set; After extracting image information from the feature image set, calculating the information gain value of the image information, and constructing an information gain model using the information gain value; The sigmoid function is used as the activation function, and the output gain result of the information gain model is used to construct a model to obtain a preset recognition model.

3. The dry spinning 3D printing defect identification method according to claim 1, characterized in that: The step of determining the defective area at the reflection position of the dry spinning workpiece according to the reflected sound wave corresponding to each target distance value comprises: Determine the reflection position coordinates of the reflected sound wave corresponding to each target distance value on the dry spinning workpiece; Acquire an image of a position corresponding to the dry spinning workpiece according to the reflection position coordinates to obtain a reflection position image; After enhancing the image contrast of the reflection position image to adjust the image, a preset color recognition model is called to locate and recognize the adjusted image to obtain a defect area.

4. The dry spinning 3D printing defect identification method according to any one of claims 1 to 3, characterized in that: After the step of determining the defective region of the dry spinning workpiece according to the reflected sound wave, or after the step of obtaining the defective region of the dry spinning workpiece, the method further includes: After finding the coordinate value of the defect area and obtaining the defect coordinate value, determining whether the defect coordinate value is within a predetermined coordinate range; When the defect coordinate value is within the preset coordinate range, the area of ​​the defect region is calculated using the defect coordinate value to obtain a defect area value; When the defect area value is less than or equal to the preset area value, a prompt message indicating that printing is completed is sent.

5. The dry spinning 3D printing defect identification method according to claim 4, characterized in that: After the step of determining whether the defect coordinate value is within a predetermined coordinate range, the method further comprises: When the defect coordinate value is not within the preset coordinate range or the defect area value is greater than the preset area value, a printing error prompt message is sent; After receiving the printing operation information from the user, the workpiece size is determined based on the printing operation information, and the material weight value is calculated according to the workpiece size.

6. A dry spinning 3D printing defect identification system, characterized in that: The system comprises: A module for acquiring structural information, used for acquiring structural information of a dry-spun workpiece after a 3D printing device uses dry-spun fibers to complete 3D printing to obtain a dry-spun workpiece; an area ratio calculation module, configured to determine a smooth area on the surface of the dry spinning workpiece using the structural information, and calculate an area ratio of the smooth area to the surface area of ​​the dry spinning workpiece, wherein the smooth area is a flat area on the surface of the dry spinning workpiece; an ultrasonic identification module, configured to, when the area ratio is greater than a preset ratio, call an ultrasonic instrument to send a plurality of ultrasonic waves to the dry spinning workpiece, receive a plurality of reflected sound waves of the dry spinning workpiece, and determine a defective area of ​​the dry spinning workpiece according to the plurality of reflected sound waves; A model recognition module, for extracting an appearance image of the dry-spinning workpiece from the structural information when the area ratio is less than a preset ratio, calling a preset recognition model to perform recognition processing on the appearance image to obtain a defect area of ​​the dry-spinning workpiece, wherein the preset recognition model is a binary regression prediction model based on a Sigmoid function; The step of determining the smooth area on the surface of the dry-spinning workpiece by using the structural information and calculating the area ratio of the smooth area to the surface area of ​​the dry-spinning workpiece comprises: extracting point cloud data and an appearance image about the surface of the dry spinning workpiece from the structural information; After extracting an image center point from the appearance image and determining a center position point corresponding to the image center point in the point cloud data, extracting a plurality of points around the center position point from the point cloud data to obtain a plurality of adjacent position points; After the plurality of adjacent position points are constructed into an adjacent point set, a plane equation is formed by fitting the coordinate values ​​of the adjacent point set, and the distance between the coordinates of the center position point and the plane equation is calculated to obtain a coordinate distance value; When the coordinate distance value is less than or equal to the preset distance value, determining that the image region corresponding to the set of adjacent points is a smooth region, and calculating the area corresponding to the smooth region to obtain a smooth area; After determining the appearance area of ​​the dry spinning workpiece based on the appearance image, calculating the ratio of the smooth area to the appearance area to obtain an area ratio; The step of determining the defective area of ​​the dry spinning workpiece according to the plurality of reflected sound waves comprises: Obtaining the sound wave duration corresponding to each of the reflected sound waves, wherein the sound wave duration is the interval between the time node of sending the ultrasonic wave to the dry spinning workpiece and the time node of receiving the reflected sound wave; Calculating a sound wave transmission distance value according to each sound wave duration, and selecting distance values ​​different from a preset interval distance value from a plurality of sound wave transmission distance values ​​to obtain a plurality of target distance values; The defect area is determined according to the reflection position of the reflected sound wave corresponding to each target distance value at the dry spinning workpiece.

7. The dry spinning 3D printing defect identification system according to claim 6, characterized in that: The operation of constructing the preset recognition model includes: Determine the workpiece defect features and the workpiece structure features respectively, and perform image acquisition according to the workpiece defect features and the workpiece structure features to obtain a feature image set; After extracting image information from the feature image set, calculating the information gain value of the image information, and constructing an information gain model using the information gain value; The sigmoid function is used as the activation function, and the output gain result of the information gain model is used to construct a model to obtain a preset recognition model.