3D printing control method, electronic device and computer-readable storage medium
By controlling the nozzle assembly in the 3D printing device to print preset lines according to the preset extrusion parameters and selecting the optimal characteristic parameters, the problem of low printing quality of 3D printing equipment in the prior art is solved, and the printing quality and user experience are improved.
Patent Information
- Application Number
- PCT/CN2023/096694
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-05-26
- Publication Date
- 2024-12-05
AI Technical Summary
The printing quality of existing 3D printing equipment is low, which makes it difficult for the printed 3D models to meet the user's requirements and the user experience is poor.
By controlling the nozzle assembly to print preset lines on the printing platform based on multiple preset extrusion parameters, obtain the characteristic parameters of each line, select the optimal characteristic parameters as the final extrusion parameters, and ensure the uniformity and line width of the sprayed printing material Comply with the requirements, thereby improving the printing quality of 3D printing equipment.
It improves the printing quality and user experience of 3D printing equipment, ensures that the uniformity and line width of the printing lines meet preset requirements, is suitable for different application scenarios, and avoids poor printing quality or failure.
Smart Images

Figure CN2023096694_05122024_PF_FP_ABST
Abstract
Description
3D printing control method, electronic device and computer-readable storage medium Technical Field
[0001] The present application relates to the field of 3D printing technology, and in particular to a 3D printing control method, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the rise of concepts like smart manufacturing and Industry 4.0, 3D printing technology is becoming increasingly widespread. 3D printing, first appearing in the mid-1990s, is essentially a state-of-the-art rapid prototyping device utilizing technologies like photocuring and paper lamination. It operates on essentially the same principle as conventional printing: a printer is filled with "printing material" such as liquid or powder. Once connected to a computer, the computer controls the process of layering the "printing material," ultimately transforming the blueprint on the computer into a physical object. This printing technology is known as 3D printing.
[0003] In the related art, the printing quality of 3D printing equipment is low, resulting in the printed 3D models being difficult to meet user requirements, which in turn leads to a poor user experience.
[0004] Summary of the Invention
[0005] In view of this, the present application provides a 3D printing control method, an electronic device, and a computer-readable storage medium, which can improve the printing quality of a 3D printing device, thereby improving the user experience.
[0006] A first aspect of the present application provides a 3D printing control method, which is applied to a 3D printing device, wherein the 3D printing device includes a nozzle assembly and a printing platform, wherein the nozzle assembly is used to spray printing material onto the printing platform. The method includes: controlling the nozzle assembly to print preset lines on the printing platform according to N preset extrusion parameters, where N is an integer greater than 1, and each preset extrusion parameter corresponds to a preset line; obtaining characteristic parameters of each of the preset lines, wherein the characteristic parameters are used to characterize the uniformity of the preset lines; selecting an optimal characteristic parameter from the N characteristic parameters, and using the preset extrusion parameters of the preset line corresponding to the optimal characteristic parameter as the final extrusion parameters; and controlling the nozzle assembly to print a 3D model on the printing platform according to the final extrusion parameters.
[0007] Compared with the related art, the embodiments of the present application have at least the following advantages: by controlling the nozzle assembly to print N preset lines on the printing platform according to N preset extrusion parameters, it is easy to know the uniformity of the preset lines printed by the 3D printing device according to different preset extrusion parameters, and then select the final extrusion parameters according to the uniformity, and finally print the 3D model according to the final extrusion parameters. This can ensure that the print line formed after the nozzle assembly sprays the printing material on the printing platform meets the preset print line width requirements while meeting the print quality requirements, thereby improving the print quality of the 3D printing device and thus improving the user experience.
[0008] In some possible implementations, the 3D model includes M different parts, where M is an integer greater than 1; each part of the 3D model corresponds to at least two preset extrusion parameter values; and selecting the optimal characteristic parameter from the N characteristic parameters and using the preset extrusion parameters of the preset line corresponding to the optimal characteristic parameter as the final extrusion parameter includes: selecting M optimal characteristic parameters from the N characteristic parameters and using the preset extrusion parameters of M preset lines corresponding to the M optimal characteristic parameters as the final extrusion parameters, wherein each optimal characteristic parameter corresponds to a part of the 3D model. By adopting this technical solution, the optimal preset line for each part can be determined, thereby determining the final extrusion parameter value for each part, thereby improving the printing quality of the 3D printing device.
[0009] In some possible implementations, the preset lines are all broken lines, and each of the preset extrusion parameters corresponds to P preset lines, where P is an integer greater than 1; the preset lines with the same preset extrusion parameters are in contact side by side to form a broken line group, and the number of the broken line groups is the same as the number of the preset extrusion parameters; the selection of M optimal feature parameters from the N feature parameters comprises: taking images of the N broken line groups; inputting the images into a preset uniformity recognition model, the uniformity recognition model being used to identify the uniformity of the broken lines at the corners; and obtaining the M optimal feature parameters based on the output results of the uniformity recognition model. By adopting this technical solution, the optimal feature parameters can be accurately selected from multiple feature parameters to ensure the printing quality of the 3D printing device.
[0010] In some possible implementations, the M optimal feature parameters are obtained based on the output results of the uniformity recognition model, including: the uniformity recognition model recognizes the uniformity of the fold angle of each of the fold lines in the image, and takes the feature parameters corresponding to the fold lines whose fold angle uniformity meets preset requirements as the optimal feature parameters.
[0011] In some possible implementations, before controlling the nozzle assembly to print N preset lines on the printing platform according to N preset extrusion parameters, it also includes: receiving preset slicing parameters and printing material parameters of the 3D model to be printed, and obtaining N of the preset extrusion parameters according to the preset slicing parameters and the printing material parameters.
[0012] In some possible implementations, the method further includes: monitoring the extrusion flow rate of the nozzle assembly in real time while controlling the nozzle assembly to print the 3D model on the printing platform according to the final extrusion parameters; and adjusting the extrusion flow rate according to the final extrusion parameters when the deviation between the extrusion flow rate and the final extrusion parameters exceeds a preset range. By adopting this technical solution, the extrusion flow rate of the nozzle assembly can be adjusted in real time during the operation of the 3D printing device, further improving the printing quality of the 3D printing device.
[0013] In some possible implementations, the 3D printing device further includes a photographing device, and before controlling the nozzle assembly to print a preset line on the printing platform according to N preset extrusion parameters, the device further includes: controlling the movement of the photographing device so that the photographing device is at a preset distance from the printing platform and the angle between the photographing device and the printing platform is a preset angle; photographing the current initial image of the printing platform; obtaining the first layer information in a feature file, wherein the feature file is used to command the 3D printing device to perform 3D printing, and the first layer information at least includes a planar two-dimensional map of the first layer of the 3D model; controlling the nozzle assembly to print the first layer of the 3D model on the printing platform according to the first layer information; after the first layer is printed, photographing the current final image of the printing platform; determining the printing quality of the 3D printing device according to the initial image and the final image; controlling the nozzle assembly to print the preset line on the printing platform according to N preset extrusion parameters includes: when it is detected that the printing quality of the 3D printing device does not meet the preset printing requirements, controlling the nozzle assembly to print the preset line on the printing platform according to N preset extrusion parameters.
[0014] In some possible implementations, determining the print quality of the 3D printing device based on the initial image and the final image includes: obtaining a difference image between the initial image and the final image; performing binarization and denoising processing on the difference image to obtain a processed image; and comparing the processed image with the planar two-dimensional image to determine the print quality of the 3D printing device.
[0015] In a second aspect, the present application discloses an electronic device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the electronic device executes the above-mentioned 3D printing control method.
[0016] A third aspect of the present application discloses a computer-readable storage medium, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned 3D printing control method.
[0017] It can be understood that the electronic device of the second aspect and the computer-readable storage medium of the third aspect provided above correspond to the method of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding methods provided above and will not be repeated here.
[0018] It can be understood that the electronic device of the second aspect and the computer-readable storage medium of the third aspect provided above correspond to the method of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.
[0020] FIG1 is a flow chart of a 3D printing control method provided in one embodiment of the present application.
[0021] FIG2 is a diagram showing the printing effect of a 3D printing device on a printing platform provided in an embodiment of the present application.
[0022] FIG3 is another effect diagram of the 3D printing device provided in one embodiment of the present application printing on the printing platform.
[0023] FIG4 is a flow chart of a 3D printing control method provided in an embodiment of the present application.
[0024] FIG5 is a flowchart of a 3D printing control method provided in an embodiment of the present application.
[0025] FIG6 is a flowchart of a 3D printing control method provided in an embodiment of the present application.
[0026] FIG7 is a flowchart of a 3D printing control method provided in an embodiment of the present application.
[0027] FIG8 is a schematic structural diagram of a printing line A provided in an embodiment of the present application.
[0028] FIG9 is a schematic diagram of a scanning and printing platform of a 3D printing device provided in an embodiment of the present application.
[0029] FIG10 is a schematic diagram of normal vectors of a standard horizontal plane and a fitting plane provided in an embodiment of the present application.
[0030] FIG11 is a diagram showing an application scenario of printing compensation for printing platform deformation provided by an embodiment of the present application.
[0031] FIG12 is a working interaction diagram of a 3D printing device provided in one embodiment of the present application.
[0032] FIG13 is a schematic diagram of a scenario of line height detection of a 3D printing device provided in an embodiment of the present application.
[0033] FIG14 is an image captured by a camera of a 3D printing device in an online high-inspection scenario according to an embodiment of the present application.
[0034] FIG15 is another image captured by the camera of the 3D printing device provided in an embodiment of the present application in an online high-inspection scenario.
[0035] FIG16 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to more clearly understand the above-mentioned objectives, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features therein can be combined with each other in the absence of conflict.
[0037] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application pertains. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0039] It should be further noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0040] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. A and B can be singular or plural.
[0041] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0042] To facilitate understanding, some illustrations of concepts related to the embodiments of the present application are given for reference.
[0043] 3D printing equipment, also known as three-dimensional printers or stereo printers, is a rapid prototyping process that typically uses digital printing technology to create materials. 3D printing equipment is often used to create models or parts in fields such as mold manufacturing and industrial design.
[0044] Please refer to FIG1 , which is a flow chart of a 3D printing control method provided in an embodiment of the present application. This embodiment is applied to a 3D printing device. The 3D printing device includes a nozzle assembly and a printing platform. The nozzle assembly is used to spray printing material onto the printing platform, including the following steps:
[0045] Step 101: Control the nozzle assembly to print a preset line on the printing platform according to N preset extrusion parameters.
[0046] Specifically, N is an integer greater than 1, and each preset extrusion parameter corresponds to at least one preset line. It is understandable that this embodiment does not specifically limit the number of preset lines corresponding to a single preset extrusion parameter.
[0047] In some embodiments, a 3D printing device receives preset slicing parameters and printing material parameters of a 3D model, and obtains N preset extrusion parameters according to the preset slicing parameters and the printing material parameters.
[0048] In some embodiments, the 3D printing device is communicatively connected to the 3D printing slicing software, or the 3D printing device is equipped with the 3D printing slicing software. Before controlling the nozzle assembly to print the preset line, the 3D printing slicing software receives the preset slicing parameters and printing material parameters of the 3D model to be printed input by the user. The 3D printing slicing software obtains the preset extrusion parameter value based on the preset slicing parameters and printing material parameters. The 3D printing device controls the nozzle assembly to print at least one preset line on the printing platform based on the preset extrusion parameter value.
[0049] Specifically, the preset slicing parameters include, but are not limited to, temperature, layer height, speed, support, and retraction. Temperature refers to the nozzle temperature. When the 3D printing device has a heated bed, the temperature also includes the temperature of the heated bed. Layer height refers to the height of each layer of the 3D model to be printed. The smaller the layer height, the more layers are required for the entire print. Speed generally refers to the movement speed of the print head, and can also include the printing material filling speed, wall speed, etc. Support is the structure that supports the overhanging features on the 3D model to be printed. Retraction includes retraction distance and retraction speed. Retraction determines the amount and speed of the filament being sucked back into the nozzle to prevent material from seeping out before extrusion.
[0050] In some embodiments, printing material parameters include but are not limited to: material type, required quantity, etc.
[0051] In some embodiments, the printing platform includes a formal printing area and an informal printing area, and the 3D printing device controls the nozzle assembly to print N preset lines in the informal printing area according to N preset extrusion parameters.
[0052] In some embodiments, the relative positional relationship between the formal printing area and the informal printing area is not specifically limited. For example, the central area of the printing platform can be used as the formal printing area, and the peripheral area surrounding the central area can be used as the informal printing area. Other areas of the printing platform can also be used as the formal printing area according to actual needs. These will not be detailed here.
[0053] Step 102: Acquire characteristic parameters of each preset line, where the characteristic parameters are used to characterize the uniformity of the preset line.
[0054] In some embodiments, the characteristic parameter is the line width standard deviation, which can be calculated as follows: obtaining the line width values of a preset line at multiple different positions; calculating the average line width of the preset line based on multiple line width values; and calculating the line width standard deviation based on the average line width and multiple line width values.
[0055] In some embodiments, the preset line is a fold line, and the characteristic parameter is the uniformity of the preset line at the fold corner. Each preset extrusion parameter corresponds to P preset lines, where P is an integer greater than 1. Preset lines with the same preset extrusion parameter are arranged side by side to form a fold line group, and the number of fold line groups is the same as the number of preset extrusion parameters. The uniformity of the preset line at the fold corner can be obtained by taking images of N fold line groups; inputting the images into a preset uniformity recognition model, which is used to identify the uniformity of the fold line at the fold corner.
[0056] Step 103: Selecting an optimal characteristic parameter from the N characteristic parameters, and using the preset extrusion parameter of the preset line corresponding to the optimal characteristic parameter as the final extrusion parameter.
[0057] In some embodiments, the 3D model includes M different parts, where M is an integer greater than 1; each part of the 3D model corresponds to at least two preset extrusion parameter values; the optimal feature parameter is selected from the N feature parameters, and the preset extrusion parameters of the preset line corresponding to the optimal feature parameter are used as the final extrusion parameters, including: selecting M optimal feature parameters from the N feature parameters, and using the preset extrusion parameters of the M preset lines corresponding to the M optimal feature parameters as the final extrusion parameters, wherein each optimal feature parameter corresponds to a part of the 3D model.
[0058] In some embodiments, the characteristic parameter is the line width standard deviation, the minimum line width standard deviation of each part is selected from the line width standard deviations corresponding to M parts, and the preset extrusion parameters of M preset lines corresponding to the M minimum line width standard deviations are used as the final extrusion parameters.
[0059] To facilitate understanding, the following is a specific example of how to select the final extrusion parameters for each part:
[0060] Assume that the value of M is 3, that is, the 3D model to be printed includes 3 different parts (part A, part B, and part C). Taking part A as an example, assume that part A corresponds to 3 preset lines (preset line 1, preset line 2, and preset line 3). Measure the line width values at different positions of preset line 1. For example, take three measurement points at the front, middle, and back of preset line 1, measure the line width values at these three points, and assume they are L1, L2, and L3. Calculate the average value of L1, L2, and L3. Then calculate the line width standard deviation of preset line 1 according to the following formula Among them, σ is the standard deviation of the line width of the preset line 1, L i is the line width value at the i-th point, is the average line width of preset line 1, and n is the number of measurement points.
[0061] It can be understood that the method for calculating the line width standard deviation of preset line 2 and preset line 3 is the same as that of preset line 1. In order to avoid repetition, it will not be repeated here.
[0062] After calculating the line width standard deviations corresponding to preset line one, preset line two, and preset line three, the sizes of the three line width standard deviations are compared, and the preset line with the smallest line width standard deviation is taken as the optimal preset line, and the preset extrusion parameters corresponding to the optimal preset line are taken as the final extrusion parameters.
[0063] It can be understood that the way in which parts B and parts C obtain the optimal preset line is the same as the way in which part A obtains the optimal preset line. In order to avoid repetition, it will not be repeated here.
[0064] Please refer to Figure 2, which shows the effect of a 3D printer printing on the print platform. As can be seen from Figure 2, the printed lines for the preset extrusion parameter values of 0.004 to 0.096 are straight. The printed lines for the preset extrusion parameter values of 0.004 to 0.036 exhibit discontinuities at the front end and accumulation of printing material at the rear end. The printed lines for the preset extrusion parameter values of 0.04 to 0.056 are relatively uniform. The printed lines for the preset extrusion parameter values of 0.06 to 0.096 exhibit discontinuities at the rear end and accumulation of printing material at the front end.
[0065] Specifically, a print line with a preset extrusion parameter value of 0.004 to 0.036 has a smaller extrusion parameter at the front end, resulting in a discontinuity at the front end, and a larger extrusion parameter at the back end, resulting in a buildup of printed material at the back end. By increasing the print parameter at the front end and decreasing the print parameter at the back end, a print line with a preset extrusion parameter value of 0.04 to 0.056 can be obtained. The final extrusion parameter is 0.04 to 0.056.
[0066] Please refer to Figure 3, which shows another rendering of a 3D printer on a print platform. As can be seen from Figure 3, the printed lines with preset extrusion parameters of 0.02 to 0.08 are all broken line groups. The print quality of a 3D printer can be determined by measuring the spacing between adjacent printed lines, the printing of the line inflection points, and the printing of the line's starting and ending positions.
[0067] Specifically, before the 3D printing device controls the nozzle assembly to print the fold line, it first controls the nozzle assembly to accelerate to a preset printing speed at a rated acceleration, and then controls the nozzle assembly to print the fold line on the printing platform at the preset printing speed. It is understood that the number of print lines is the same as the number of preset extrusion parameters. That is, the number of print lines controlled by the 3D printing device is determined by the number of preset extrusion parameters to be detected.
[0068] In some embodiments, the 3D printing device controls the nozzle assembly to accelerate at an acceleration of 5000 square millimeters per second, stops accelerating after accelerating to 12000 millimeters per second, and controls the nozzle assembly to print the broken line with an angle of 45 degrees as shown in Figure 3 on the printing platform at a speed of 12000 millimeters per second.
[0069] After all the fold lines were printed, the 3D printing device captured the renderings shown in Figure 3 using its camera. The human eye was then used to observe whether there were gaps or protrusions at the bends of each fold line, specifically, the uniformity of each fold line at the corners. Specifically, fold lines with preset extrusion parameters of 0.02 to 0.036 had protrusions at the bends; lines with preset extrusion parameters of 0.04 to 0.052 had no protrusions or gaps at the bends; and lines with preset extrusion parameters of 0.056 to 0.08 had gaps at the bends. The final extrusion parameters were therefore 0.04 to 0.052.
[0070] Further referring to FIG. 3 , each fold line group shown in FIG. 3 is formed by the same number of printed lines. Each fold line group corresponds to different preset extrusion parameters, and the printed lines within each fold line group all have the same preset extrusion parameters. It is understood that each fold line group may also be formed by a different number of printed lines, and this embodiment is not specifically limited to this.
[0071] In some embodiments, the effect image captured by the camera can be input into a preset uniformity recognition model, and the output result of the uniformity recognition model can be used to detect whether there is a gap or bulge at the bend of each fold line.
[0072] Specifically, historical image data of printed fold lines is collected and used to train a primitive model. This primitive model is then used as the uniformity recognition model. After all fold lines are printed, the 3D printing device captures the resulting image, as shown in Figure 3. This image is then fed into the uniformity recognition model, which automatically detects gaps or protrusions at the bends of each fold line.
[0073] Step 104: Control the nozzle assembly to print the 3D model on the printing platform according to the final extrusion parameters.
[0074] The steps for printing the 3D model to be printed in the formal printing area are described in detail later. To avoid repetition, they will not be repeated here.
[0075] Compared to the related art, the embodiments of the present application have at least the following advantages: by controlling the nozzle assembly to print N preset lines on the printing platform according to N preset extrusion parameters, the uniformity of the preset lines printed by the 3D printing device according to different preset extrusion parameters can be determined, and then the final extrusion parameters are selected based on the uniformity. Finally, the 3D model is printed according to the final extrusion parameters. This ensures that the printed lines formed by the nozzle assembly after ejecting the printing material on the printing platform meet the preset print line width requirements and the print quality requirements, thereby improving the print quality of the 3D printing device and thus enhancing the user experience. In addition, by setting at least two preset extrusion parameter values for each part of the 3D model to be printed, the optimal extrusion parameter value can be selected from the preset extrusion parameter values corresponding to each part, so that the 3D printing device controls the nozzle assembly to print the 3D model to be printed according to the optimal extrusion parameter value. This makes the 3D printing device suitable for different application scenarios, avoids the situation where "the 3D printing device prints 3D models for various application scenarios using the initially set extrusion parameter values, resulting in poor print quality or even print failure", ensures the print quality of the 3D printing device in different scenarios, and further improves the user experience.
[0076] Please refer to Figure 4, which is a flow chart of the 3D printing control method provided in an embodiment of the present application. This embodiment is a further improvement on the previous embodiment. The main improvement is that in this embodiment, the extrusion flow rate of the nozzle assembly is monitored in real time while the 3D printing device is printing a 3D model. When the deviation between the extrusion flow rate and the final extrusion parameters exceeds a preset range, the extrusion flow rate is adjusted according to the final extrusion parameters. In this way, the extrusion flow rate of the nozzle assembly can be adjusted in real time during the operation of the 3D printing device, further improving the print quality of the 3D printing device.
[0077] The specific process of this embodiment is shown in FIG4 , and includes the following steps:
[0078] Step 201: Controlling the nozzle assembly to print N preset lines on a printing platform according to N preset extrusion parameters.
[0079] Step 202: Acquire characteristic parameters of each preset line, where the characteristic parameters are used to characterize the uniformity of the preset line.
[0080] Step 203: Selecting an optimal characteristic parameter from the N characteristic parameters, and using the preset extrusion parameter of the preset line corresponding to the optimal characteristic parameter as the final extrusion parameter.
[0081] Steps 201 to 203 of this embodiment are similar to steps 101 and 103 of the aforementioned embodiment, and are not described again here to avoid repetition.
[0082] Step 204: While controlling the nozzle assembly to print the 3D model in the formal printing area according to the final extrusion parameters, the extrusion flow rate of the nozzle assembly is monitored in real time.
[0083] Step 205: When it is detected that the deviation between the extrusion flow rate and the final extrusion parameter exceeds a preset range, the extrusion flow rate is adjusted according to the final extrusion parameter.
[0084] In some embodiments, the size of the preset range can be set according to actual needs, and there is no specific limitation on the size of the preset range.
[0085] Compared with related technologies, the embodiments of the present application have at least the following advantages: by controlling the nozzle assembly to print N preset lines on the printing platform according to N preset extrusion parameters, it is easy to know the uniformity of the preset lines printed by the 3D printing device according to different preset extrusion parameters, and then select the final extrusion parameters based on the uniformity. Finally, the 3D model is printed according to the final extrusion parameters. This ensures that the printed lines formed after the nozzle assembly sprays the printing material on the printing platform meet the preset print line width requirements while meeting the print quality requirements, thereby improving the printing quality of the 3D printing device and thus improving the user experience. In addition, by monitoring the extrusion flow rate of the nozzle assembly in real time during the process of printing the 3D model by the 3D printing device, and adjusting the extrusion flow rate according to the final extrusion parameters when the deviation between the extrusion flow rate and the final extrusion parameters exceeds a preset range, it is possible to ensure that the extrusion parameters when the nozzle assembly sprays meet the quality requirements, further improving the printing quality of the 3D printing device, thereby further improving the user experience.
[0086] Please refer to Figure 5, which is a flow chart of the 3D printing control method provided in the embodiment of the present application. This embodiment is a further improvement based on the aforementioned embodiment. The main improvement is that in this embodiment, before controlling the nozzle assembly to print the 3D model in the formal printing area, a first-layer print detection is also performed. The printing quality of the 3D printing device is judged by the first-layer detection. When the printing quality of the 3D printing device does not meet the preset printing requirements, the preset extrusion parameters are selected, and finally the final extrusion parameters are obtained. In this way, on the one hand, the 3D printing device can automatically detect the printing quality, so that the user can understand the printing quality problems in a timely manner, further improving the user experience; on the other hand, when it is detected that the printing quality of the 3D printing device does not meet the preset printing requirements, the preset extrusion parameters can be selected, thereby improving the printing quality of the 3D printing device.
[0087] The specific process of this embodiment is shown in FIG5 , and includes the following steps:
[0088] Step 301: Control the camera to move to a preset position, so that the camera is at a preset distance from the printing platform and the angle between the camera and the printing platform is a preset angle.
[0089] In some embodiments, the 3D printing device includes a motor connected to the camera device for controlling changes in the angle and position of the camera device.
[0090] Step 302: Capture the current initial image of the printing platform.
[0091] In some embodiments, the number of initial images is not specifically limited, and multiple initial images can be taken at the same angle and the same distance from the printing platform.
[0092] In some embodiments, the number of preset positions is not specifically limited, that is, multiple initial images can be captured at different preset positions.
[0093] Step 303: Acquire the first layer information in the feature file, where the feature file is used to instruct the 3D printing device to perform 3D printing.
[0094] In some embodiments, the file used to command 3D printing is a gcode file. To print a 3D model from a computer using a 3D printer, the model (commonly available in .stl and .obj formats) must first be input into 3D slicing software (such as Cura) for planar slicing, which then generates a gcode file. The gcode file is then sent to the 3D printer for reading, allowing the nozzle assembly of the 3D printer to fill each layer along a planned path, stacking the layers one by one to form the final 3D model.
[0095] In some embodiments, the first-layer information includes point cloud data of the first layer or a two-dimensional plan view of the first layer of a 3D model, etc. The first-layer information in the gcode file can be read using programming languages such as Python.
[0096] Step 304: Control the nozzle assembly to print the first layer of the 3D model in the main printing area according to the first layer information.
[0097] In some embodiments, after receiving the first layer information, the 3D printing device performs first layer printing, that is, controls the nozzle assembly to print the first layer of the 3D model to be printed in the formal printing area.
[0098] Step 305: After the first layer of printing is completed, the camera is controlled to capture the current final image of the printing platform at a preset position.
[0099] In some embodiments, the number of final images is the same as the number of initial images. For example, in the aforementioned step 304, the photographing device photographs three initial images at a preset position. After the first layer of printing is completed, the photographing device photographs three final images again at the preset position. The photographing device photographs an initial image at a first preset angle and a first preset distance from the printing platform, and photographs an initial image at a second preset angle and a second preset distance from the printing platform. After the first layer of printing is completed, the photographing device photographs a final image at the first preset angle and the first preset distance from the printing platform, and photographs a final image at the second preset angle and the second preset distance from the printing platform.
[0100] Step 306: Determine the printing quality of the 3D printing device according to the initial image and the final image.
[0101] In some embodiments, a difference image is generated based on the initial image and the final image, and then the difference image is subjected to binarization and denoising processing. The processed image is compared with the planar two-dimensional image in the first layer information to determine the printing quality of the 3D printing device.
[0102] For ease of understanding, the process of determining the print quality of the 3D printing device in this embodiment is described in detail below:
[0103] (1) Use Python or other programming languages to read the first-layer information in the gcode file, where the first-layer information at least includes a two-dimensional plan view of the first layer.
[0104] (2) Before the first layer is printed, the camera is controlled to maintain a preset distance from the printing platform and a preset angle between the camera and the printing platform, and then an initial image of the printing platform is captured.
[0105] (3) The 3D printing device receives the read first layer information and performs first layer printing.
[0106] (4) After the first layer of printing is completed, the camera is controlled to capture the final image of the printing platform at the same position as the initial image.
[0107] (5) Use programming languages such as Python to obtain the difference image between the initial image and the final image.
[0108] (6) Use OpenCV and other libraries to perform binary denoising on the difference image to obtain the processed image.
[0109] (7) Use programming languages such as Python to compare the processed image with the first layer information in the gcode file to detect the printing quality of the 3D printing equipment.
[0110] (8) Inform users of the printing quality of the 3D printing equipment by email, text message or other means.
[0111] Step 307: When it is detected that the printing quality of the 3D printing device does not meet the preset printing requirements, the nozzle assembly is controlled to print N preset lines on the printing platform according to N preset extrusion parameters.
[0112] As described in the previous steps, the processed image is compared with the first-layer information in the gcode file through programming languages such as Python to detect the printing quality of the 3D printing device. When the printing quality of the 3D printing device does not meet the preset printing requirements, the preset extrusion parameters are adjusted, that is, the optimal extrusion parameters are selected from N preset extrusion parameters to improve the printing quality of the 3D printing device, thereby further improving the user experience.
[0113] Step 308: Acquire characteristic parameters of each preset line, where the characteristic parameters are used to characterize the uniformity of the preset line.
[0114] Step 309: Selecting an optimal characteristic parameter from the N characteristic parameters, and using the preset extrusion parameter of the preset line corresponding to the optimal characteristic parameter as the final extrusion parameter.
[0115] Steps 307 to 309 of this embodiment are similar to steps 101 to 103 of the aforementioned embodiment, and are not described again here to avoid repetition.
[0116] Compared with the related art, the embodiments of the present application have at least the following advantages: by controlling the nozzle assembly to print a preset line on the printing platform, so as to know the actual line width of the print line currently printed by the 3D printing device, and then comparing the actual line width with the preset print line width of the 3D model to be printed, and adjusting the relative distance between the printing platform and the nozzle assembly according to the comparison result, the distance between the nozzle assembly and the printing platform can reach an appropriate value, thereby ensuring that the print line formed after the nozzle assembly sprays the printing material on the printing platform meets the preset print line width requirement, avoiding the occurrence of "the relative distance between the printing platform and the nozzle assembly is large or small, resulting in a smaller or larger line width of the print line formed after the nozzle assembly sprays the printing material on the printing platform", thereby improving the printing accuracy of the 3D printing device and thus improving the user experience; in addition, by automatically performing the first layer printing detection, the printing quality of the 3D printing device can be automatically informed to the user, avoiding the user from manually checking the printing quality of the 3D printing device, further improving the user experience.
[0117] Please refer to Figure 6, which is a flow chart of the 3D printing control method provided in an embodiment of the present application. This embodiment is a further improvement based on the previous embodiment. The main improvement is that: in this embodiment, before controlling the nozzle assembly to print N preset lines on the printing platform according to N preset extrusion parameters, the spacing between the nozzle assembly and the printing platform is also adjusted to make the distance between the nozzle assembly and the printing platform reach an appropriate value, thereby ensuring that the print line formed after the nozzle assembly sprays the printing material on the printing platform meets the preset print line width requirement.
[0118] The specific process of this embodiment is shown in FIG6 , and includes the following steps:
[0119] Step 401: Control the nozzle assembly to print at least one preset line on the printing platform.
[0120] Step 402: Obtain the actual line width of the preset line.
[0121] In some embodiments, the 3D printing device includes a photographing device, which photographs an image of the preset line and then obtains the actual line width of the preset line based on the image of the preset line.
[0122] In some embodiments, the actual line width of the preset line may also be measured using tools such as a digital caliper and a microscope.
[0123] Step 403: Compare the actual line width with the preset printing line width of the 3D model to be printed, and determine an adjustment value based on the comparison result. The adjustment value is used to adjust the relative distance between the printing platform and the nozzle assembly.
[0124] In some embodiments, the 3D printing slicing software receives preset slicing parameters and printing material parameters of the 3D model to be printed input by the user, and the 3D printing slicing software obtains a preset printing line width according to the preset slicing parameters and printing material parameters.
[0125] In some embodiments, the adjustment value is determined in the following manner: when the actual line width is greater than the preset printing line width, the adjustment value is determined to increase the relative distance between the printing platform and the nozzle assembly; when the actual line width is less than the preset printing line width, the adjustment value is determined to reduce the relative distance between the printing platform and the nozzle assembly.
[0126] Specifically, if the actual line width is larger than the preset printing line width, it means that the distance between the printing platform and the nozzle assembly is too close, and the printing platform needs to be adjusted downward by a certain distance to increase the relative distance between the printing platform and the nozzle assembly; if the actual line width is smaller than the preset printing line width, it means that the distance between the printing platform and the nozzle assembly is too far, and the printing platform needs to be adjusted upward by a certain distance to reduce the relative distance between the printing platform and the nozzle assembly.
[0127] In some embodiments, the 3D printing device includes a motor, which is connected to the printing platform and is used to control the lifting and lowering of the printing platform. When the actual line width is greater than the preset printing line width, the motor controls the printing platform to descend; when the actual line width is less than the preset printing line width, the motor controls the printing platform to rise.
[0128] In some embodiments, the 3D printing device pre-sets a distance adjustment value. Taking the distance adjustment value as 5 mm as an example, when the printing platform needs to rise, the motor controls the printing platform to rise 5 mm, and then the 3D printing device controls the nozzle assembly to reprint a preset line on the printing platform, and compares the line width of the new preset line with the preset printing line width again to determine whether it is necessary to control the printing platform to rise 5 mm again, until the difference between the actual line width of the preset line finally printed by the nozzle assembly on the printing platform and the preset printing line width meets the printing requirements, then stop controlling the printing platform to rise 5 mm, and print the 3D model to be printed according to the relative distance between the printing platform and the nozzle assembly at this time.
[0129] Step 404: After adjusting the relative distance between the printing platform and the nozzle assembly according to the adjustment value, the nozzle assembly is controlled to print N preset lines on the printing platform according to N preset extrusion parameters.
[0130] Specifically, N is an integer greater than 1, and each preset extrusion parameter corresponds to a preset line.
[0131] Step 405: Acquire characteristic parameters of each preset line, where the characteristic parameters are used to characterize the uniformity of the preset line.
[0132] Step 406: Select an optimal characteristic parameter from the N characteristic parameters, and use the preset extrusion parameter of the preset line corresponding to the optimal characteristic parameter as the final extrusion parameter.
[0133] Step 407: Control the nozzle assembly to print the 3D model in the main printing area according to the final extrusion parameters.
[0134] Steps 404 to 407 of this embodiment are similar to steps 101 to 104 of the aforementioned embodiment, and are not described again here to avoid repetition.
[0135] Compared with the related art, the embodiments of the present application have at least the following advantages: by controlling the nozzle assembly to print a preset line on the printing platform, so as to know the actual line width of the printing line currently printed by the 3D printing device, and then compare the actual line width with the preset printing line width of the 3D model to be printed, and adjust the relative distance between the printing platform and the nozzle assembly according to the comparison result, the distance between the nozzle assembly and the printing platform can be made to reach an appropriate value, thereby ensuring that the printing line formed after the nozzle assembly sprays the printing material on the printing platform meets the preset printing line width requirement, avoiding the occurrence of "the relative distance between the printing platform and the nozzle assembly is large or small, resulting in a smaller or larger line width of the printing line formed after the nozzle assembly sprays the printing material on the printing platform", thereby improving the printing accuracy of the 3D printing device and thus improving the user experience.
[0136] Please refer to Figure 7, which is a flow chart of the 3D printing method provided in an embodiment of the present application. This embodiment is a further improvement on the previous embodiment, and the main improvement is that: in this embodiment, different preset extrusion parameter values are set for different parts of the 3D model to be printed, and the nozzle assembly is controlled to print preset lines on the printing platform according to each preset extrusion parameter value. Finally, the average line width of each preset line is compared with the preset printing line width to obtain a more accurate adjustment value, further improving the printing accuracy of the 3D printing device, thereby further improving the user experience.
[0137] The specific process of this embodiment is shown in FIG7 , and includes the following steps:
[0138] Step 501: Obtain N preset extrusion parameter values of the nozzle assembly according to preset slicing parameters and printing material parameters, and different parts of the 3D model to be printed correspond to at least one preset extrusion parameter value.
[0139] Specifically, N is an integer greater than 1. This embodiment does not impose any specific limitation on the value of N, and it can be set according to actual needs.
[0140] In some embodiments, the portion of the 3D model to be printed includes an inner wall, an outer wall, a filling area, etc. The preset extrusion parameter values include, but are not limited to, extrusion speed, extrusion temperature, layer height, and the like.
[0141] Step 502: Control the nozzle assembly to print N preset lines on the printing platform according to N preset extrusion parameter values, wherein one preset extrusion parameter value corresponds to one preset line.
[0142] In some embodiments, each preset extrusion parameter value corresponds to a part of the 3D model to be printed. For ease of understanding, the following uses the example of the 3D model to be printed including part 1, part 2, and part 3; the preset extrusion parameter values including a first preset extrusion parameter value, a second preset extrusion parameter value, and a third preset extrusion parameter value; and the preset lines including a first preset line, a second preset line, and a third preset line to specifically explain how to control the nozzle assembly to print the preset lines on the printing platform in this embodiment:
[0143] The first preset extrusion parameter value corresponds to part 1, the second preset extrusion parameter value corresponds to part 2, and the third preset extrusion parameter value corresponds to part 3. The 3D printing device controls the nozzle assembly to print the first preset line according to the first preset extrusion parameter value, controls the nozzle assembly to print the second preset line according to the second preset extrusion parameter value, and controls the nozzle assembly to print the third preset line according to the third preset extrusion parameter value.
[0144] It can be understood that the first preset line, the second preset line and the third preset line can be connected end to end, that is, the first preset line, the second preset line and the third preset line are a printing line as a whole; the first preset line, the second preset line and the third preset line can also be unconnected to each other, that is, the first preset line, the second preset line and the third preset line are independent printing lines.
[0145] Please refer to Figure 8, which is a schematic diagram of the structure of the print line A provided in this embodiment. The first preset line, the second preset line, and the third preset line are connected end to end. The 3D printing device prints a continuous print line A on the printing platform according to the first preset extrusion parameter value, the second preset extrusion parameter value, and the third preset extrusion parameter value. The print line A can be divided into three parts, each corresponding to a preset extrusion parameter value.
[0146] Step 503: Obtain N actual line widths of N preset lines.
[0147] The method of obtaining the actual line width in this embodiment is the same as the method of obtaining the actual line width in the previous embodiment, and to avoid repetition, it will not be repeated here.
[0148] Step 504: Compare the N actual line widths with the preset printing line width, and determine an adjustment value according to the comparison result.
[0149] In some embodiments, the adjustment value can be determined by comparing the N actual line widths with the preset printing line width in the following manner: calculating the average value of the N actual line widths; comparing the average value with the preset printing line width, and determining the adjustment value based on the comparison result.
[0150] Specifically, assuming that the value of N is 5, the average value P of the five actual line widths is calculated, and the average value P is compared with the preset printing line width. If the average value P is greater than the preset printing line width, it means that the distance between the printing platform and the nozzle assembly is too close, and the printing platform needs to be adjusted downward by a certain distance to increase the relative distance between the printing platform and the nozzle assembly; if the average value P is less than the preset printing line width, it means that the distance between the printing platform and the nozzle assembly is too far, and the printing platform needs to be adjusted upward by a certain distance to reduce the relative distance between the printing platform and the nozzle assembly.
[0151] In some embodiments, the median of N actual line widths may be calculated, the median may be compared with the preset printing line width, and the adjustment value may be determined based on the comparison result.
[0152] It is understandable that after obtaining N actual line widths, this embodiment does not limit the manner in which the N actual line widths are calculated. It is only necessary to ensure that the result of the calculation can reflect the overall line width of the preset line.
[0153] Step 505: After adjusting the relative distance between the printing platform and the nozzle assembly according to the adjustment value, the nozzle assembly is controlled to print N preset lines on the printing platform according to N preset extrusion parameters, where N is an integer greater than 1, and each preset extrusion parameter corresponds to a preset line.
[0154] Step 506: Acquire characteristic parameters of each preset line, where the characteristic parameters are used to characterize the uniformity of the preset line.
[0155] Step 507: Select an optimal characteristic parameter from the N characteristic parameters, and use the preset extrusion parameter of the preset line corresponding to the optimal characteristic parameter as the final extrusion parameter.
[0156] Step 508: Control the nozzle assembly to print the 3D model in the main printing area according to the final extrusion parameters.
[0157] Steps 505 to 508 of this embodiment are similar to steps 101 to 104 of the aforementioned embodiment, and are not described again here to avoid repetition.
[0158] Compared with the related art, the embodiments of the present application have at least the following advantages: by setting different preset extrusion parameter values for different parts of the 3D model to be printed, and controlling the nozzle assembly to print preset lines on the printing platform according to each preset extrusion parameter value, and finally comparing the average line width of each preset line with the preset printing line width, and adjusting the relative distance between the printing platform and the nozzle assembly according to the comparison result, the distance between the nozzle assembly and the printing platform can reach an appropriate value, thereby ensuring that the printed line formed after the nozzle assembly sprays the printing material on the printing platform meets the preset printing line width requirement, avoiding the occurrence of "the relative distance between the printing platform and the nozzle assembly is large or small, resulting in a smaller or larger line width of the printed line formed after the nozzle assembly sprays the printing material on the printing platform", thereby improving the printing accuracy of the 3D printing device and thus improving the user experience.
[0159] Please refer to Figure 9, which is a schematic diagram of the 3D printing device scanning the printing platform provided in an embodiment of the present application. This embodiment is a further improvement on the previous embodiment, with the main improvement being that, in this embodiment, before controlling the nozzle assembly to print at least one preset line on the printing platform, the printing platform is also leveled using laser scanning. In this way, the 3D printing device can automatically level the printing platform with a single scan, which is highly efficient and easy to operate. In addition, the levelness of the printing platform is ensured, thereby further improving the printing accuracy of the 3D printing device.
[0160] Specifically, the 3D printing device also includes a laser light source for emitting line lasers. As shown in FIG7 , the 3D printing device controls the laser light source to scan the printing platform line by line in a strip manner, collects point cloud data of each line, and performs point cloud stitching to generate a 3D model of the entire printing platform.
[0161] Since the printing platform may have slight deformation during the scanning process, resulting in errors in the collected point cloud data, this embodiment performs plane fitting on the spliced point cloud and determines the normal vector of the fitted plane to determine the horizontal offset of the printing platform and thus the correction amount of the printing platform.
[0162] For ease of understanding, the following provides a specific example of how to determine the correction amount of the printing platform in this embodiment, and how to level the printing platform after determining the correction amount of the printing platform, with reference to FIG. 10 :
[0163] Please refer to FIG. 10 , which is a schematic diagram of comparing normal vectors of a standard horizontal plane and a fitting plane provided by this embodiment.
[0164] (1) Assume that the normal vector of the fitting plane is The normal vector of the standard horizontal plane is The normal vector Projected onto the standard horizontal plane, we get the vector Calculating vectors and The angle θ between them.
[0165] (2) Calculate the vector using the following formula and The angle θ between them: in,
[0166] (3) The horizontal offset of the printing platform is calculated by the following formula: horizontal offset of the printing platform = sinη × density of point cloud data, where θ is the vector and The angle between them, the density of point cloud data is the number of point cloud data per square meter.
[0167] (4) After determining the horizontal offset of the printing platform, the correction amount can be obtained. After the correction amount is determined, it can be applied to the point cloud data to correct errors in the scanning process. Specifically, the correction amount can be added to the coordinate values of each point in the point cloud data to make these points in the correct position relative to the printing platform. The above process can be performed during post-processing after the point cloud data is acquired, or it can be applied immediately during scanning.
[0168] In some embodiments, after the print platform is leveled, it is also possible to verify whether the print platform has been successfully calibrated. For example, multiple laser scans can be performed on the automatically leveled print platform. If the point cloud data obtained from each scan is very similar, the print platform has been successfully calibrated. If there are significant differences in the point cloud data obtained from multiple scans, it is necessary to obtain the correction amount again to further level the print platform and ensure the printing accuracy of the 3D printing device.
[0169] Please refer to Figure 11, which illustrates an application scenario for printing platform deformation compensation provided in an embodiment of this application. This embodiment further improves upon the previous embodiment, primarily by performing printing platform deformation compensation before controlling the nozzle assembly to print at least one predetermined line on the printing platform. This ensures the flatness of the printing platform, thereby improving the print quality of the 3D printing device.
[0170] For ease of understanding, the following specifically describes how this embodiment performs deformation compensation on the printing platform:
[0171] (1) Assume that the printing platform is a rectangular printing platform with dimensions of 100 mm × 80 mm and a thickness of 2 mm. Use the line laser generator of the 3D printing device to scan the printing platform and obtain point cloud data of the printing platform surface.
[0172] (2) Use point cloud processing software (such as CloudCompare or MeshLab) to process the point cloud data of the printing platform surface and extract the printing platform surface information. Specifically, use the point cloud processing software to filter, smooth, and perform surface extraction operations on the point cloud data of the printing platform surface to obtain a smooth point cloud model of the printing platform surface.
[0173] (3) Determine the sampling interval to calculate the printing compensation value. As shown in FIG11 , 5 mm is selected as the sampling interval, that is, the point cloud data of the printing platform surface is sampled every 5 mm.
[0174] (4) Using point cloud processing software or programming language (such as Python or MATLAB), sampling is performed on the surface point cloud model of the printing platform obtained above at a sampling interval of 5 mm, and a total of 20 sampling point sets can be obtained.
[0175] (5) Using programming languages such as Python or MATLAB, surface fitting is performed on each of the 20 sampling point sets to obtain 20 fitted sub-surfaces. The actual curvature of each sub-surface is then calculated using a surface fitting algorithm.
[0176] (6) Compare the actual curvature of the sub-surface with the theoretical curvature of the original printing platform, and calculate the compensation value of each sub-surface using the following formula:
[0177] Compensation value = compensation coefficient × deviation; deviation = theoretical curvature - actual curvature.
[0178] Specifically, the compensation factor is a constant that depends on factors such as the printing process, the geometry and size of the printing platform, the printer's operating mode, and the required printing accuracy. In general, the compensation factor ranges from 0.1 to 0.5.
[0179] In some embodiments, the compensation coefficient can be determined in the following ways: 1. Select a printing platform, use the same 3D printing equipment and printing parameters to perform multiple prints on the printing platform, and record the deviation of each print. 2. Calculate the corresponding compensation value for the deviation of each print, which can be calculated according to the above formula. 3. Fit the calculated compensation value and the actual deviation data, which can be processed using methods such as curve fitting or regression analysis. 4. Select a suitable compensation coefficient based on the fitting results so that the calculated compensation value and the actual deviation data have the best fitting effect. It should be noted that the selection of the compensation coefficient is a relatively empirical process and needs to be adjusted according to the specific situation. In addition, after determining the compensation coefficient, multiple tests are needed to verify its effectiveness and make adjustments.
[0180] (7) The compensation value calculated above is used in point cloud processing software to update the point cloud model of the printing platform surface, thereby achieving printing compensation for the deformation of the printing platform.
[0181] Please refer to Figure 12, which is a diagram illustrating the working interaction of the 3D printing device provided in an embodiment of the present application. This embodiment is a further improvement on the previous embodiment, with the main improvement being that, in this embodiment, anomaly detection is performed on the first-layer detection workflow of the 3D printing device to ensure the normal operation of the 3D printing device and improve the printing quality of the 3D printing device.
[0182] Specifically, the interactive diagram shown in Figure 12 illustrates the workflow for first-layer inspection on a 3D printer. This process uses computer vision, deep learning, point cloud, and other methods to acquire and compare data, detecting defects on the heated bed surface and issues with the extrusion process. The results are then evaluated and presented with prompts. Understandably, the purpose of this interactive process is to perform a pre-print self-inspection of the environment and equipment to ensure print quality and success rate, and to issue prompt alerts to the user if any anomalies occur.
[0183] In some embodiments, the deep learning model is used to detect abnormalities in the processing steps of the 3D printing device. For example, the process of detecting abnormalities in the printing platform leveling, printing platform printing compensation, and nozzle assembly flow detection in the aforementioned embodiments can be detected. Specifically, the abnormal process detection method of the 3D printing device based on the deep learning model can be divided into the following steps:
[0184] (1) Data collection: Collect data for each processing step, including normal and abnormal data. This data can be in the form of images, videos, point clouds, etc.
[0185] (2) Data preprocessing: Preprocess the collected data, such as cropping, scaling, and enhancing the image, and filtering and sampling the point cloud, to facilitate subsequent deep learning model training and testing.
[0186] (3) Model training: Using the collected data, a deep learning model is trained to detect abnormalities in each processing step. Commonly used models include convolutional neural networks, recurrent neural networks, and autoencoders.
[0187] (4) Model testing: Use the trained deep learning model to test new data to determine whether the current processing step is abnormal. Some indicators such as accuracy, recall rate, F1-score, etc. can be used to evaluate the performance of the model.
[0188] (5) Integration into the system: Integrate the trained deep learning model into the actual system, detect each processing step, and give corresponding prompts or take corresponding measures if there is any abnormality.
[0189] It is worth mentioning that data collection and preprocessing must fully consider the actual situation and cover as many possible abnormal situations as possible to improve the robustness and reliability of the model. At the same time, model training and testing must be fully verified and tuned to achieve good detection results.
[0190] Please refer to Figure 13, which is a schematic diagram of a line height detection scenario for a 3D printing device provided in an embodiment of this application. This embodiment specifically illustrates the functionality of a 3D printing device, explaining how to measure the line height of an object under test using the 3D printing device provided in this embodiment. This method automatically detects the line height of an object under test, improving the user experience.
[0191] As shown in Figure 13, the 3D printing device includes a printing platform 1, a line laser generator 2 and a camera 3. The object to be measured is placed on the printing platform 1. The basic formula for line height detection is: line height of the object to be measured = projection offset distance / tan (angle between the laser and the horizontal plane); wherein, the projection offset distance refers to the offset distance of the line laser on the surface of the object, relative to the position when not irradiated, on the image captured by the camera 3. As shown in Figure 14, it is an image captured by the camera 3. Specifically, the white line shown in Figure 14 is the laser emitted by the laser light source 2, the object to be measured is the printing line, and the extension direction of the laser is perpendicular to the extension direction of the printing line; tan (angle between the laser and the horizontal plane) refers to the tangent value of the angle between the line laser and the horizontal plane.
[0192] Please refer to Figure 15, which shows an image of a triangular object captured by camera 3. The white line in Figure 4 represents the laser light emitted by laser light source 2. As can be seen from Figure 15, the triangular object has a certain height, which causes the laser light irradiating the laser object to be offset.
[0193] To facilitate understanding, the following specifically describes how to perform line height detection on the object to be measured in this embodiment:
[0194] Assuming that the distance between the object to be measured and the line laser generator 2 is L, the angle between the line laser emitted by the line laser generator 2 and the horizontal plane is α, and the projection offset distance of the line laser on the surface of the object to be measured is d, the calculation formula for the line height H of the object to be measured is:
[0195] H = d / tan(α);
[0196] The projection offset distance d of the line laser on the surface of the object to be measured is calculated as follows: the projection distance of the line laser on the horizontal plane is D1 = L × cos(α); the projection offset distance of the line laser on the physical surface in the similar triangle is D2 = D1 × d / L; it is known that d = D2 × L / D1, and substituting D1 = L × cos(α) yields d = D2 / cos(α).
[0197] For example, when the distance L between the object to be measured and the line laser generator 2 is 50 cm and the angle α between the line laser and the horizontal plane is 45 degrees, the calculated projection offset distance d is 2 mm, and thus the calculated line height H of the object to be measured is 2 mm.
[0198] Please refer to Figure 16, which is a schematic diagram of the hardware structure of an electronic device 1000 provided in an embodiment of the present application. As shown in Figure 16, the electronic device 1000 may include a processor 1001 and a memory 1002. The memory 1002 is used to store one or more computer programs 1003. The one or more computer programs 1003 are configured to be executed by the processor 1001. The one or more computer programs 1003 include instructions, which can be used to implement the above-mentioned method in the electronic device 1000.
[0199] It is understood that the structure shown in this embodiment does not constitute a specific limitation on the electronic device 1000. In other embodiments, the electronic device 1000 may include more or fewer components than shown, or combine or separate some components, or arrange the components differently.
[0200] The processor 1001 may include one or more processing units. For example, the processor 1001 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0201] Processor 1001 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 1001 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 1001. If processor 1001 needs to use the same instruction or data again, it can directly access it from this memory. This avoids duplicate accesses, reduces the waiting time of processor 1001, and thus improves system efficiency.
[0202] In some embodiments, the processor 1001 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface.
[0203] In some embodiments, memory 1002 may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage device.
[0204] This embodiment further provides a computer-readable storage medium, which stores computer instructions. When the instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method in the above-mentioned embodiment.
[0205] Among them, the electronic device and computer storage medium provided in this embodiment are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0206] In practical applications, the above functions can be distributed to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0207] In the several embodiments provided in this application, the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are schematic. For example, the division of the modules or units is a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0208] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0209] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0210] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0211] The above description is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A 3D printing control method, characterized in that: Applied to a 3D printing device, the 3D printing device includes a nozzle assembly and a printing platform, the nozzle assembly is used to spray printing material onto the printing platform, and the method includes: Controlling the nozzle assembly to print preset lines on the printing platform according to N preset extrusion parameters, where N is an integer greater than 1, and each preset extrusion parameter corresponds to at least one preset line; Acquire characteristic parameters of each of the preset lines, where the characteristic parameters are used to characterize the uniformity of the preset lines; Selecting an optimal characteristic parameter from the N characteristic parameters, and using a preset extrusion parameter of a preset line corresponding to the optimal characteristic parameter as a final extrusion parameter; The nozzle assembly is controlled to print the 3D model on the printing platform according to the final extrusion parameters.
2. The 3D printing control method according to claim 1, characterized in that: The 3D model includes M different parts, where M is an integer greater than 1; each part of the 3D model corresponds to at least two of the preset extrusion parameter values; The step of selecting an optimal characteristic parameter from the N characteristic parameters and using a preset extrusion parameter of a preset line corresponding to the optimal characteristic parameter as a final extrusion parameter includes: Select M optimal feature parameters from the N feature parameters, and use the preset extrusion parameters of the M preset lines corresponding to the M optimal feature parameters as final extrusion parameters, wherein each optimal feature parameter corresponds to a part of the 3D model.
3. The 3D printing control method according to claim 2, characterized in that: The preset lines are all broken lines, and each preset extrusion parameter corresponds to P preset lines, where P is an integer greater than 1; the preset lines with the same preset extrusion parameters are arranged side by side to form a broken line group, and the number of the broken line groups is the same as the number of the preset extrusion parameters; The selecting M optimal feature parameters from the N feature parameters comprises: Taking images of N of the polyline groups; Inputting the image into a preset uniformity recognition model, wherein the uniformity recognition model is used to recognize the uniformity of the fold line at the fold corner; The M optimal characteristic parameters are obtained according to the output result of the uniformity recognition model.
4. The 3D printing control method according to claim 3, characterized in that: The M optimal characteristic parameters are obtained according to the output result of the uniformity recognition model, including: The uniformity recognition model recognizes the uniformity of the fold angle of each fold line in the image, and uses the characteristic parameters corresponding to the fold lines whose fold angle uniformity meets the preset requirements as the optimal characteristic parameters.
5. The 3D printing control method according to claim 1, characterized in that: Before controlling the nozzle assembly to print N preset lines on the printing platform according to N preset extrusion parameters, the method further includes: Receive preset slice parameters and printing material parameters of the 3D model, and and the printing material parameters to obtain N preset extrusion parameters.
6. The 3D printing control method according to any one of claims 1 to 5, characterized in that: The method further comprises: In the process of controlling the nozzle assembly to print the 3D model on the printing platform according to the final extrusion parameters, monitoring the extrusion flow rate of the nozzle assembly in real time; When it is monitored that the deviation between the extrusion flow rate and the final extrusion parameter exceeds a preset range, the extrusion flow rate is adjusted according to the final extrusion parameter.
7. The 3D printing control method according to claim 1, characterized in that: The 3D printing device further includes a photographing device, and before controlling the nozzle assembly to print a preset line on the printing platform according to N preset extrusion parameters, further includes: Controlling the camera to move to a preset position so that the camera is at a preset distance from the printing platform and the angle between the camera and the printing platform is a preset angle; Taking a current initial image of the printing platform; Acquire first-layer information in a feature file, wherein the feature file is used to instruct the 3D printing device to perform a 3D printing job; Controlling the nozzle assembly to print the first layer of the 3D model on the printing platform according to the first layer information; After the first layer of printing is completed, the camera is controlled to capture the current final image of the printing platform at a preset position; Determining a printing quality of the 3D printing device according to the initial image and the final image; The step of controlling the nozzle assembly to print a preset line on the printing platform according to N preset extrusion parameters includes: When it is detected that the printing quality of the 3D printing device does not meet the preset printing requirements, the nozzle assembly is controlled to print a preset line on the printing platform according to N preset extrusion parameters.
8. The 3D printing control method according to claim 7, characterized in that: The step of determining the printing quality of the 3D printing device according to the initial image and the final image comprises: Acquire a difference image between the initial image and the final image; Performing binarization denoising processing on the difference image to obtain a processed image; The processed image is compared with the planar two-dimensional image to determine the printing quality of the 3D printing device.
9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the 3D printing control method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the 3D printing control method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Color three-dimensional printer and printing method thereof
CN106738876A
3D printing control method and device and electronic equipment
CN114379079A
Three-dimensional printing quality compensation method and system based on height information
CN115742313A
Microwave-Coupled 3D Printing System and Equipment for Food Design and Production
US20210008787A1
