3D printing detection method, electronic device, and computer readable storage medium
By using an imaging device in 3D printing equipment to automatically detect print quality, the problems of high cost and low accuracy of manual inspection are solved. This achieves high-precision automatic inspection and user-friendly print quality feedback, thus improving the user experience.
Patent Information
- Application Number
- PCT/CN2023/096693
- 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 print quality of existing 3D printing equipment requires manual inspection, resulting in high labor costs, low inspection accuracy, and a poor user experience.
The printing quality of the 3D printing equipment is automatically detected by an imaging device. The printing quality is determined by taking initial and final images at the initial position and using differential image processing. The relative distance between the nozzle assembly and the printing platform is adjusted according to the comparison results to ensure that the printed line width meets the requirements.
It enables automatic printing quality inspection of 3D printing equipment, improves inspection accuracy and user experience, ensures that the printing line width meets the preset requirements, and enhances printing precision and user satisfaction.
Smart Images

Figure CN2023096693_05122024_PF_FP_ABST
Abstract
Description
3D printing detection 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 detection 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 related technologies, the printing quality of 3D printing equipment requires manual inspection, which, on the one hand, consumes a large amount of manpower costs, and on the other hand, the accuracy of manual inspection is not high, which leads to a poor user experience.
[0004] Summary of the Invention
[0005] In view of this, the present application provides a 3D printing method, an electronic device, and a computer-readable storage medium, which can automatically detect 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 detection method, which is applied to a 3D printing device, wherein the 3D printing device includes a nozzle assembly, a printing platform and a shooting device, wherein the nozzle assembly is used to spray printing material onto the printing platform, and the method includes: controlling the shooting device to move to a first position, wherein when the shooting device is in the first position, the shooting device is at a preset distance from the printing platform and the angle between the shooting device and the printing platform is a preset angle; shooting 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 a 3D printing job; controlling the nozzle assembly to print the first layer of the 3D model according to the first layer information; after the first layer is printed, controlling the shooting device to shoot a final image of the printing platform at the first position; and determining the printing quality of the 3D printing device according to the initial image and the final image.
[0007] Compared with the related art, the embodiments of the present application have at least the following advantages: by moving the camera to the first position to capture the initial image of the printing platform, after completing the first layer printing, the camera is controlled to capture the final image of the printing platform again at the same first position, so as to determine the printing quality of the 3D printing device based on the initial image and the final image, that is, automatic detection of the first layer of printing is realized, and the printing quality of the 3D printing device can be automatically informed to the user, avoiding the user's manual inspection of the printing quality of the 3D printing device, and further improving the user's experience.
[0008] 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 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. This technical solution can improve the accuracy of determining the print quality of the 3D printing device.
[0009] In some possible implementations, after determining the print quality of the 3D printing device based on the initial image and the final image, the method further includes sending the print quality determination result of the 3D printing device to a user. By adopting this technical solution, the user can be proactively informed of the current print quality of the 3D printing device, thereby improving the user experience.
[0010] In some possible implementations, the printing platform includes a formal printing area and an informal printing area. Before controlling the nozzle assembly to print the first layer of the 3D model based on the first layer information, the method further includes: controlling the nozzle assembly to print at least one preset line in the informal printing area; obtaining the actual line width of the preset line; comparing the actual line width with the preset printing line width of the 3D model to be printed, and determining an adjustment value based on the comparison result, wherein the adjustment value is used to adjust the relative distance between the printing platform and the nozzle assembly; controlling the nozzle assembly to print the first layer of the 3D model based on the first layer information includes: after adjusting the relative distance between the printing platform and the nozzle assembly based on the adjustment value, controlling the nozzle assembly to print the first layer of the 3D model based on the first layer information. By adopting this technical solution, the distance between the nozzle assembly and the printing platform can be adjusted to an appropriate value, thereby ensuring that the printed line formed after the nozzle assembly ejects printing material on the printing platform meets the preset printing line width requirement.
[0011] In some possible implementations, before controlling the nozzle assembly to print at least one preset line in the informal printing area, the process further includes: receiving preset slicing parameters and printing material parameters of the 3D model to be printed, and obtaining the preset printing line width according to the preset slicing parameters and the printing material parameters; obtaining N preset extrusion parameter values of the nozzle assembly according to the preset slicing parameters and the printing material parameters, wherein different parts of the 3D model to be printed correspond to at least one preset extrusion parameter value, and N is a constant greater than 1; controlling the nozzle assembly to print at least one preset line in the informal printing area includes: controlling the nozzle assembly to print N preset lines in the informal printing area according to the N preset extrusion parameter values, wherein one preset extrusion parameter value corresponds to one preset line; obtaining the actual line width of the preset line includes: obtaining N actual line widths of the N preset lines; comparing the actual line widths with the preset printing line widths, and determining the adjustment value according to the comparison result includes: comparing the N actual line widths with the preset printing line widths, and determining the adjustment value according to the comparison result.
[0012] In some possible implementations, the comparing the N actual line widths with the preset printing line widths and determining the adjustment value based on the comparison result includes: 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.
[0013] In some possible implementations, the 3D model to be printed includes M different parts, where M is an integer greater than 1; each part of the 3D model to be printed corresponds to at least two of the preset extrusion parameter values; after controlling the nozzle assembly to print N preset lines in the informal printing area according to the N preset extrusion parameter values, it also includes: selecting the optimal preset line for each part from the preset lines corresponding to the M parts, and using the preset extrusion parameter value corresponding to the optimal preset line of each part as the final extrusion parameter value for printing the 3D model to be printed.
[0014] In some possible implementations, selecting the optimal preset line for each part from the M preset lines corresponding to the parts includes: calculating the line width standard deviation of the preset line corresponding to each part, and taking the preset line with the smallest line width standard deviation for each part as the optimal preset line for the part.
[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 detection 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 detection 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] 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.
[0019] FIG1 is a flow chart of a 3D printing detection method provided in one embodiment of the present application.
[0020] FIG2 is a flow chart of a 3D printing detection method provided in one embodiment of the present application.
[0021] FIG3 is a flow chart of a 3D printing detection method provided in one embodiment of the present application.
[0022] FIG4 is a schematic structural diagram of a printing line A provided in one embodiment of the present application.
[0023] FIG5 is a flow chart of a 3D printing detection method provided in an embodiment of the present application.
[0024] FIG6 is a diagram showing the printing effect of a 3D printing device on a printing platform provided in an embodiment of the present application.
[0025] FIG7 is another effect diagram of the 3D printing device provided in one embodiment of the present application printing on the printing platform.
[0026] FIG8 is a schematic diagram of a scanning and printing platform of a 3D printing device provided in an embodiment of the present application.
[0027] FIG9 is a schematic diagram of comparing normal vectors of a standard horizontal plane and a fitting plane provided by an embodiment of the present application.
[0028] FIG10 is a diagram showing an application scenario of printing platform deformation compensation provided by an embodiment of the present application.
[0029] FIG11 is a working interaction diagram of a 3D printing device provided in one embodiment of the present application.
[0030] FIG12 is a schematic diagram of a scenario of line height detection of a 3D printing device provided in an embodiment of the present application.
[0031] FIG13 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.
[0032] FIG14 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.
[0033] FIG15 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0034] 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.
[0035] 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.
[0036] 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.
[0037] 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 that includes 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 that includes the element.
[0038] 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.
[0039] 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.
[0040] To facilitate understanding, some illustrations of concepts related to the embodiments of the present application are given for reference.
[0041] 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.
[0042] Please refer to FIG1 , which is a flow chart of a 3D printing detection 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, a printing platform, and a camera. The nozzle assembly is used to spray printing material onto the printing platform, including the following steps:
[0043] Step 101: Control the camera to move to a first position. When the camera is in the first position, 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.
[0044] 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.
[0045] Step 102: Capture the current initial image of the printing platform.
[0046] In some embodiments, the number of initial images is not specifically limited, and multiple initial images can be captured at the first position.
[0047] In some embodiments, the number of first positions is not specifically limited, that is, multiple initial images can be taken at different angles and / or different distances from the printing platform.
[0048] Step 103: Obtain the first layer information in the feature file. The feature file is used to instruct the 3D printing device to perform 3D printing work.
[0049] 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.
[0050] In some embodiments, the feature file is a gcode file used to command 3D printing. 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. Once the gcode file is sent to the 3D printer, the nozzle assembly of the 3D printer will fill each layer along the planned path, stacking them layer by layer to form the final 3D model.
[0051] Step 104: Control the nozzle assembly to print the first layer of the 3D model according to the first layer information.
[0052] Step 105: After the first layer of printing is completed, the camera is controlled to capture a final image of the printing platform at the first position.
[0053] In some embodiments, the number of final images is the same as the number of initial images. Assuming that the photographing device photographs three initial images at the first position in the aforementioned step 102, after the first layer of printing is completed, the photographing device photographs three final images again at the first position; assuming that the photographing device photographs one initial image at the first position and one initial image at the second position in the aforementioned step 102, after the first layer of printing is completed, the photographing device photographs one final image at the first position and one final image at the second position respectively.
[0054] Step 106: Determine the printing quality of the 3D printing device based on the initial image and the final image.
[0055] In some embodiments, the print quality of a 3D printing device is determined by: obtaining a difference image between an initial image and a final image; performing binarization and denoising processing on the difference image to obtain a processed image; and comparing the processed image with a planar two-dimensional image to determine the print quality of the 3D printing device.
[0056] In some embodiments, after determining the print quality of the 3D printing device, the method further includes: sending the print quality determination result of the 3D printing device to the user.
[0057] Specifically, the print quality determination result of the 3D printing device can be sent to the user's terminal device via text messages, pop-up notifications, etc. This embodiment does not specifically limit the method of sending the print quality determination result. In addition, the print quality determination result can be displayed as a text prompt, such as "Print quality is good" or "Print quality needs improvement", or in the form of an image or voice prompt. This embodiment also does not specifically limit the method of displaying the print quality determination result.
[0058] 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.
[0059] For ease of understanding, the process of determining the print quality of the 3D printing device in this embodiment is described in detail below:
[0060] (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.
[0061] (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.
[0062] (3) The 3D printing device receives the read first layer information and performs first layer printing.
[0063] (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.
[0064] (5) Use programming languages such as Python to obtain the difference image between the initial image and the final image.
[0065] (6) Use OpenCV and other libraries to perform binary denoising on the difference image to obtain the processed image.
[0066] (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.
[0067] (8) Inform users of the printing quality of the 3D printing equipment by email, text message or other means.
[0068] Compared with the related art, the embodiments of the present application have at least the following advantages: by moving the camera to the first position to capture the initial image of the printing platform, after completing the first layer printing, the camera is controlled to capture the final image of the printing platform again at the same first position, so as to determine the printing quality of the 3D printing device based on the initial image and the final image, that is, automatic detection of the first layer of printing is realized, and the printing quality of the 3D printing device can be automatically informed to the user, avoiding the user's manual inspection of the printing quality of the 3D printing device, and further improving the user's experience.
[0069] Please refer to Figure 2, which is a flow chart of the 3D printing inspection method provided in an embodiment of this application. This embodiment further improves upon the previous embodiment, primarily by adjusting the relative distance between the nozzle assembly and the printing platform before performing the first-layer inspection. This improves the printing accuracy of the 3D printing device and, in turn, enhances the user experience.
[0070] The specific process of this embodiment is shown in FIG2 , and includes the following steps:
[0071] Step 201: Control the nozzle assembly to print at least one preset line in the informal printing area.
[0072] In some embodiments, the 3D printing device is communicatively connected to the 3D printing slicing software, or the 3D printing device is provided 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 in the informal printing area based on the preset extrusion parameter value.
[0073] 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.
[0074] Printing material parameters include but are not limited to: material type, required quantity, etc.
[0075] 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.
[0076] Step 202: Obtain the actual line width of the preset line.
[0077] 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.
[0078] 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.
[0079] Step 203: 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.
[0080] 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.
[0081] 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.
[0082] 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.
[0083] 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.
[0084] 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 re-print a preset line in the informal printing area, 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 in the informal printing area 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.
[0085] Step 204: After adjusting the relative distance between the printing platform and the nozzle assembly according to the adjustment value, control the camera to move to the first position.
[0086] Specifically, when the camera is in the first position, 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.
[0087] Step 205: Capture the current initial image of the printing platform.
[0088] Step 206: Obtain the first layer information in the feature file. The feature file is used to instruct the 3D printing device to perform the 3D printing task.
[0089] Step 207: Control the nozzle assembly to print the first layer of the 3D model according to the first layer information.
[0090] Step 208: After the first layer of printing is completed, the camera is controlled to capture a final image of the printing platform at the first position.
[0091] Step 209: Determine the printing quality of the 3D printing device according to the initial image and the final image.
[0092] Steps 204 to 209 of this embodiment are similar to steps 101 to 106 of the aforementioned embodiment, and are not described again here to avoid repetition.
[0093] 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 in the informal printing area, 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 be made to 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.
[0094] Please refer to Figure 3, which is a flow chart of the 3D printing detection 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, 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 in the informal printing area 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.
[0095] The specific process of this embodiment is shown in FIG3 , and includes the following steps:
[0096] Step 301: 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.
[0097] 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.
[0098] 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.
[0099] Step 302: Control the nozzle assembly to print N preset lines in the informal printing area according to N preset extrusion parameter values, wherein one preset extrusion parameter value corresponds to one preset line.
[0100] 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 in the informal printing area in this embodiment:
[0101] 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.
[0102] 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.
[0103] Please refer to Figure 4, 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 in the informal printing area 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.
[0104] Step 303: Obtain N actual line widths of N preset lines.
[0105] 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.
[0106] Step 304: Compare the N actual line widths with the preset printing line width, and determine an adjustment value according to the comparison result.
[0107] 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.
[0108] 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.
[0109] 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.
[0110] 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.
[0111] Step 305: After adjusting the relative distance between the printing platform and the nozzle assembly according to the adjustment value, control the camera to move to the first position.
[0112] Specifically, when the camera is in the first position, 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.
[0113] Step 306: Capture the current initial image of the printing platform.
[0114] Step 307: Obtain the first layer information in the feature file. The feature file is used to instruct the 3D printing device to perform 3D printing.
[0115] Step 308: Control the nozzle assembly to print the first layer of the 3D model according to the first layer information.
[0116] Step 309: After the first layer of printing is completed, the camera is controlled to capture a final image of the printing platform at the first position.
[0117] Step 310: Determine the printing quality of the 3D printing device based on the initial image and the final image.
[0118] Steps 305 to 310 of this embodiment are similar to steps 101 to 106 of the aforementioned embodiment, and are not described again here to avoid repetition.
[0119] 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 in the informal printing area 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.
[0120] Please refer to Figure 5, which is a flow chart of the 3D printing detection method 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, each part of the 3D model corresponds to at least two preset extrusion parameter values, and the optimal extrusion parameter value is selected from the preset extrusion parameter values corresponding to each part, thereby further improving the printing accuracy of the 3D printing device and ensuring print quality.
[0121] The specific process of this embodiment is shown in FIG5 , and includes the following steps:
[0122] Step 401: Obtain N preset extrusion parameter values of the nozzle assembly according to preset slicing parameters and printing material parameters. The 3D model to be printed includes M different parts, and each part corresponds to at least two preset extrusion parameter values.
[0123] Specifically, M is an integer greater than 1.
[0124] In some embodiments, each part of the 3D model to be printed corresponds to the same number of preset extrusion parameter values. For example, assuming that the value of M is 6, the 3D model to be printed includes 6 different parts, and each part corresponds to 3 preset extrusion parameter values.
[0125] In some embodiments, each part of the 3D model to be printed corresponds to a different number of preset extrusion parameter values. For example, assuming that the value of M is 4, that is, the 3D model to be printed includes 4 different parts (part A, part B, part C, and part D), part A corresponds to 2 preset extrusion parameter values, part B corresponds to 3 preset extrusion parameter values, part C corresponds to 4 preset extrusion parameter values, and part D corresponds to 2 preset extrusion parameter values.
[0126] Step 402: Control the nozzle assembly to print N preset lines in the informal printing area according to N preset extrusion parameter values, where one preset extrusion parameter value corresponds to one preset line.
[0127] Step 403: Selecting the optimal preset line for each part from the preset lines corresponding to the M parts, and using the preset extrusion parameter value corresponding to the optimal preset line for each part as the final extrusion parameter value for printing the 3D model to be printed.
[0128] In some embodiments, the optimal preset line for each part can be selected from the preset lines corresponding to M parts in the following manner: the line width standard deviation of the preset line corresponding to each part is calculated, and the preset line with the smallest line width standard deviation for each part is used as the optimal preset line for that part.
[0129] Specifically, the line width standard deviation is calculated by: obtaining the line width values of the preset line at multiple different positions; calculating the average line width of the preset line based on the multiple line width values; and calculating the line width standard deviation based on the average line width and the multiple line width values.
[0130] To facilitate understanding, the following is a specific example of how to select the optimal preset line for each part:
[0131] 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.
[0132] 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.
[0133] 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.
[0134] 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.
[0135] Please refer to Figure 6, which shows the effect of a 3D printer printing on the print platform. As can be seen from Figure 6, 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.
[0136] 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.
[0137] Please refer to Figure 7, which shows another rendering of a 3D printer on a print platform. As can be seen from Figure 7, 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.
[0138] 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.
[0139] 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 7 on the printing platform at a speed of 12000 millimeters per second.
[0140] After all the fold lines were printed, the 3D printing device's camera captured the renderings shown in Figure 7. The human eye was then used to simulate the presence of 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 exhibited protrusions at the bends; lines with preset extrusion parameters of 0.04 to 0.052 exhibited no protrusions or gaps at the bends; and lines with preset extrusion parameters of 0.056 to 0.08 exhibited gaps at the bends. The final extrusion parameters were therefore 0.04 to 0.052.
[0141] Please further refer to Figure 7. Each fold line group shown in Figure 7 is formed by the same number of printed lines. The preset extrusion parameters corresponding to each fold line group are different, and the preset extrusion parameters corresponding to the printed lines within each fold line group are the same. It is understood that each fold line group can also be formed by a different number of printed lines, and this embodiment is not specifically limited to this. In some embodiments, the renderings captured by the camera device can also be input into a preset uniformity recognition model. Based on the output of the uniformity recognition model, the presence of gaps or protrusions at the bends of each fold line can be detected.
[0142] 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 7. This image is then fed into the uniformity recognition model, which automatically detects gaps or protrusions at the bends of each fold line.
[0143] Step 404: Obtain N actual line widths of N preset lines.
[0144] Step 405: Compare the N actual line widths with the preset printing line width, and determine an adjustment value according to the comparison result.
[0145] Step 406: After adjusting the relative distance between the printing platform and the nozzle assembly according to the adjustment value, control the camera to move to the first position.
[0146] Specifically, when the camera is in the first position, 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.
[0147] Step 407: Capture the current initial image of the printing platform.
[0148] Step 408: Obtain the first layer information in the feature file. The feature file is used to instruct the 3D printing device to perform 3D printing.
[0149] Step 409: Control the nozzle assembly to print the first layer of the 3D model according to the first layer information.
[0150] Step 410: After the first layer of printing is completed, the camera is controlled to capture a final image of the printing platform at a first position.
[0151] Step 411: Determine the printing quality of the 3D printing device according to the initial image and the final image.
[0152] Steps 406 to 411 of this embodiment are similar to steps 101 to 106 of the above embodiment, and are not described again here to avoid repetition.
[0153] 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 in the informal printing area 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. 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 enables the 3D printing device to be suitable for different application scenarios, avoiding the situation where "the 3D printing device prints 3D models of various application scenarios using the extrusion parameter values set for the first time, resulting in poor printing quality or even printing failure", ensuring the printing quality of the 3D printing device in different scenarios and further improving the user experience.
[0154] Please refer to Figure 8, 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 in the informal printing area of the printing platform, a laser scanning method is also used to level the printing platform. 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.
[0155] Specifically, the 3D printing device also includes a laser light source for emitting line lasers. As shown in FIG8 , 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.
[0156] 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.
[0157] For ease of understanding, the following specific examples are provided with reference to FIG9 to illustrate 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:
[0158] Please refer to FIG9 , which is a schematic diagram of comparing the normal vectors of the standard horizontal plane and the fitting plane provided by this embodiment.
[0159] (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.
[0160] (2) Calculate the vector using the following formula and The angle θ between them: in,
[0161] (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 a vector and The angle between them, the density of point cloud data is the number of point cloud data per square meter.
[0162] (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.
[0163] 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.
[0164] Please refer to Figure 10, 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 preset line in the informal printing area of the printing platform. This ensures the flatness of the printing platform, thereby improving the print quality of the 3D printing device.
[0165] For ease of understanding, the following specifically describes how this embodiment performs deformation compensation on the printing platform:
[0166] (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.
[0167] (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.
[0168] (3) Determine the sampling interval to calculate the printing compensation value. As shown in FIG10 , 5 mm is selected as the sampling interval, that is, the point cloud data of the printing platform surface is sampled every 5 mm.
[0169] (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.
[0170] (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.
[0171] (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:
[0172] Compensation value = compensation coefficient × deviation; deviation = theoretical curvature - actual curvature.
[0173] 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.
[0174] 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.
[0175] (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.
[0176] Please refer to Figure 11, 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.
[0177] Specifically, the interactive diagram shown in Figure 11 illustrates the workflow for first-layer inspection on a 3D printing device. 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 printhead extrusion process. The results are then evaluated and presented with prompts. It's understood that 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.
[0178] 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:
[0179] (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.
[0180] (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.
[0181] (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.
[0182] (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.
[0183] (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.
[0184] 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.
[0185] Please refer to Figure 12, 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 use the 3D printing device provided in this embodiment to measure the line height of an object under test. This method automatically detects the line height of an object under test, improving the user experience.
[0186] As shown in Figure 12, 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 printing platform 1. The basic formula for line height detection is: Line Height of Object to be Measured = Projected Offset Distance / tan (angle between the laser and the horizontal plane). Projected offset distance refers to the offset distance in the image captured by camera 3 relative to the un-irradiated position after the line laser is irradiated on the object surface. Figure 13 shows an image captured by camera 3. Specifically, the white line shown in Figure 13 is the laser light emitted by laser light source 2. The object to be measured is the printed line, and the direction of the laser light extends perpendicular to the direction of the printed line. tan (angle between the laser and the horizontal plane) refers to the tangent of the angle between the line laser and the horizontal plane.
[0187] Please refer to Figure 14, which shows an image of a triangular object captured by camera 3. The white line in Figure 14 represents the laser light emitted by laser light source 2. As can be seen from Figure 14, the triangular object has a certain height, which causes the laser light irradiating the laser object to be offset.
[0188] To facilitate understanding, the following specifically describes how to perform line height detection on the object to be measured in this embodiment:
[0189] 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:
[0190] H = d / tan(α);
[0191] 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(α).
[0192] 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.
[0193] Please refer to Figure 15, 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 15, electronic device 1000 may include a processor 1001 and a memory 1002. Memory 1002 is used to store one or more computer programs 1003. One or more computer programs 1003 are configured to be executed by processor 1001. The one or more computer programs 1003 include instructions, which can be used to implement the above-mentioned method in electronic device 1000.
[0194] 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.
[0195] 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.
[0196] 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.
[0197] 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.
[0198] In some embodiments, the memory 1002 may include a high-speed random access memory and may also include a non-volatile memory, such as a hard disk, a 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.
[0199] 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.
[0200] 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.
[0201] 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.
[0202] 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.
[0203] 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.
[0204] 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.
[0205] 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.
[0206] 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 detection method, characterized in that: Applied to a 3D printing device, the 3D printing device includes a nozzle assembly, a printing platform and a shooting device, the nozzle assembly is used to spray printing material onto the printing platform, and the method includes: Controlling the photographing device to move to a first position, when the photographing device is in the first position, 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; 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 according to the first layer information; After the first layer of printing is completed, controlling the photographing device to photograph a final image of the printing platform at the first position; The printing quality of the 3D printing device is determined according to the initial image and the final image.
2. The 3D printing detection method according to claim 1, characterized in that: Determining the printing quality of the 3D printing device according to the initial image and the final image includes: 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.
3. The 3D printing detection method according to claim 1 or 2, characterized in that: After determining the printing quality of the 3D printing device according to the initial image and the final image, the method further includes: The print quality determination result of the 3D printing device is sent to the user's terminal device.
4. The 3D printing detection method according to claim 1, characterized in that: The printing platform includes a formal printing area and an informal printing area, and before controlling the nozzle assembly to print the first layer of the 3D model according to the first layer information, further includes: Control the nozzle assembly to print at least one preset line in the informal printing area; Obtaining the actual line width of the preset line; Comparing the actual line width with the preset printing line width of the 3D model to be printed, and determining an adjustment value according to the comparison result, wherein the adjustment value is used to adjust the relative distance between the printing platform and the nozzle assembly; The step of controlling the nozzle assembly to print the first layer of the 3D model according to the first layer information includes: 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 the first layer of the 3D model according to the first layer information.
5. The 3D printing detection method according to claim 4, characterized in that: Before controlling the nozzle assembly to print at least one preset line in the informal printing area, the method further includes: Receiving preset slicing parameters and printing material parameters of the 3D model to be printed, and acquiring the preset printing line width according to the preset slicing parameters and the printing material parameters; Acquire N preset extrusion parameter values of the nozzle assembly according to the preset slicing parameters and the printing material parameters, wherein different parts of the 3D model to be printed correspond to at least one preset extrusion parameter value, and N is a constant greater than 1; The controlling the nozzle assembly to print at least one preset line in the informal printing area comprises: Controlling the nozzle assembly to print N preset lines in the informal printing area according to the N preset extrusion parameter values, wherein one preset extrusion parameter value corresponds to one preset line; The obtaining of the actual line width of the preset line comprises: obtaining N actual line widths of N preset lines; The comparing the actual line width with the preset print line width and determining the adjustment value according to the comparison result includes: The N actual line widths are compared with the preset printing line width, and an adjustment value is determined according to the comparison result.
6. The 3D printing detection method according to claim 5, characterized in that: The comparing the N actual line widths with the preset print line width and determining the adjustment value according to the comparison result includes: Calculating an average value of the N actual line widths; The average value is compared with the preset printing line width, and the adjustment value is determined according to the comparison result.
7. The 3D printing detection method according to claim 5, characterized in that: The 3D model to be printed includes M different parts, wherein M is an integer greater than 1; each part of the 3D model to be printed corresponds to at least two of the preset extrusion parameter values; After controlling the nozzle assembly to print N preset lines in the informal printing area according to the N preset extrusion parameter values, the method further includes: An optimal preset line for each part is selected from the preset lines corresponding to the M parts, and a preset extrusion parameter value corresponding to the optimal preset line for each part is used as a final extrusion parameter value for printing the 3D model to be printed.
8. The 3D printing detection method according to claim 7, characterized in that: The step of selecting the optimal preset line for each part from the preset lines corresponding to the M parts comprises: The line width standard deviation of the preset line corresponding to each part is calculated, and the preset line with the smallest line width standard deviation for each part is taken as the optimal preset line for that part.
9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, 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 detection 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 detection method according to any one of claims 1 to 8.
Citation Information
Patent Citations
3D printing model detection method and related device
CN115195124A
Feedback information generation method and device, electronic equipment and computer readable medium
CN115230150A
Dynamic real-time slice engine for 3D printing
US20150328839A1
3D printing device and method based on multi-axis linkage control and machine visual feedback measurement
WO2021226891A1
