Calibration method based on 3D printing equipment and related equipment
By setting up a alignment marking device on the 3D printing device, using the fixed connection between the shooting component and the nozzle assembly, efficient nozzle calibration is achieved, solving the problems of low accuracy and high cost of nozzle calibration in the prior art, and improving production efficiency and Equipment stability.
Patent Information
- Application Number
- CN202411369467.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-09-27
AI Technical Summary
The nozzle calibration of existing 3D printing equipment has large artificial errors and low accuracy, which leads to printing failure, and the calibration process is complex and costly.
Using a calibration method based on 3D printing equipment, by setting a alignment marking device on the printing platform, using the shooting components to capture the target image, and processing the image to obtain the relative position relationship, thereby calibrating the nozzle assembly, improving calibration accuracy and efficiency, and reducing hardware and Operational complexity.
Improves the accuracy and efficiency of nozzle calibration, reduces hardware costs and operational complexity, and avoids equipment failures and economic losses caused by nozzle position problems.
Smart Images

Figure CN119058094A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of 3D printing technology, and in particular to a calibration method based on 3D printing equipment and related equipment. Background Art
[0002] With the continuous upgrading of various industries in the country, 3D printing equipment is also constantly being updated, and 3D printing equipment plays an increasingly important role in improving production efficiency and promoting technological innovation; therefore, it is necessary to ensure the stability and reliability of 3D printing equipment, as well as to prevent 3D printing equipment failures and downtime. In the industrial manufacturing industry and other fields, inaccurate nozzle position of 3D printing equipment will affect the printing effect of 3D printing equipment, which may cause huge economic losses and a decrease in production efficiency. Therefore, nozzle calibration of 3D printing equipment is an important part of 3D printing equipment management and maintenance. By calibrating the nozzle of 3D printing equipment, 3D printing equipment failures caused by nozzle position problems during the production process can be effectively avoided.
[0003] In the related art, 3D printers are mostly calibrated manually. Due to inevitable human errors, the printheads often have large errors after calibration, and the calibration accuracy is low, resulting in printing failures. Moreover, during the calibration process, detection must be performed with the help of other calibration equipment, which makes the machine structure too complicated and the calibration cost high. Summary of the invention
[0004] In view of this, the present application provides a calibration method and related equipment based on a 3D printing device, which can calibrate the nozzle assembly of the 3D printing device to ensure the stability of the 3D printing device, and the calibration cost of the nozzle assembly is low.
[0005] A first aspect of the present application provides a calibration method based on a 3D printing device, wherein the 3D printing device includes a shooting component, a nozzle component, a printing platform and a positioning marking device, wherein the shooting component is fixedly connected to the nozzle component, and the positioning marking device is fixed on the printing platform, and the calibration method includes: controlling the shooting component to shoot the positioning marking device to obtain a target image; processing the target image to obtain a first relative position relationship between the shooting component and the positioning marking device; obtaining a second relative position relationship between the nozzle component and the positioning marking device according to the first relative position relationship, and calibrating the nozzle head assembly according to the second relative position relationship.
[0006] Compared with the related art, the embodiments of the present application have at least the following advantages: by providing a positioning mark device fixed to the printing platform, after the shooting component shoots the positioning mark device to obtain the target image, the first relative position relationship between the shooting component and the positioning mark device can be obtained based on the target image; and because the shooting component is fixedly connected to the nozzle assembly, that is, the relative position relationship between the shooting component and the nozzle assembly is fixed, the second relative position relationship between the nozzle assembly and the positioning mark device can be obtained based on the first relative position relationship, and then the nozzle assembly can be calibrated through the second relative position relationship, thereby improving the accuracy of the nozzle calibration and the efficiency of the nozzle calibration; in addition, this calibration method does not require the addition of additional expensive accessories or equipment, and only requires the positioning mark device to be fixed on the printing platform, thereby reducing hardware costs and reducing the complexity of operations and equipment.
[0007] In some possible implementations, the processing of the target image to obtain a first relative position relationship between the shooting component and the alignment marking device includes: performing image recognition on the target image to obtain a first image contour of the shooting component and a second image contour of the alignment marking device; and acquiring the first relative position relationship based on the first image contour and the second image contour.
[0008] In some possible implementations, acquiring the first relative position relationship according to the first image outline and the second image outline includes: acquiring the first coordinates of the center point of the shooting component in the pixel coordinate system according to the first image outline; acquiring the second coordinates of the center point of the alignment marking device in the pixel coordinate system according to the second image outline; converting the first coordinates into the first actual coordinates in the world coordinate system, and converting the second coordinates into the second actual coordinates in the world coordinate system; and calculating the first relative position relationship according to the first actual coordinates and the second actual coordinates.
[0009] In some possible implementations, the processing of the target image to obtain the first relative position relationship between the shooting component and the alignment marking device includes: inputting the target image into a preset algorithm model, and using the input result of the algorithm model as the first relative position relationship; wherein the algorithm model is trained by jointly using historical abnormal position relationship data and historical normal position relationship data between the shooting component and the alignment marking device, and the algorithm model has a bidirectional input layer, and the bidirectional input layers of the algorithm model correspond to the inputs of the historical abnormal position relationship data and the historical normal position relationship data, respectively.
[0010] In some possible implementations, the 3D printing device also includes a central processing unit, and the algorithm model is set in the central processing unit; the algorithm model is obtained by quantizing the initial algorithm model and then performing model reasoning and reconstruction, the model quantization is used to convert the model accuracy of the initial algorithm model into a preset model accuracy that can accelerate the model data reasoning process, and the model reasoning and reconstruction is used to reduce the space occupied by the initial algorithm model.
[0011] In some possible implementations, the 3D printing device also includes a central processing unit, and the central processing unit has multiple threads; before processing the target image, the method also includes: obtaining resource occupancy information of each thread in the multiple threads; determining a target thread in the multiple threads that meets preset data processing requirements based on the resource occupancy information of each thread; processing the target image includes: processing the target image through the target thread.
[0012] In some possible implementations, after processing the target image, it also includes: obtaining an image processing time corresponding to the target image; detecting whether the image processing time is less than or equal to a preset image processing time, and whether the current resource occupancy rate of the central processing unit is greater than the preset occupancy rate; the processing of the target image includes: when it is detected that the image processing time is less than or equal to the preset image processing time, processing the target image through the target thread; when it is detected that the image processing time is greater than the preset image processing time, and the current resource occupancy rate of the central processing unit is greater than the preset occupancy rate, suspending processing of the target image until it is detected that the current resource occupancy rate of the central processing unit is less than or equal to the preset occupancy rate, and processing the target image through the target thread.
[0013] The second aspect of the present application discloses a calibration device based on a 3D printing device, wherein the 3D printing device includes a shooting component, a nozzle component, a printing platform and a positioning marking device, wherein the shooting component is fixedly connected to the nozzle component, and the positioning marking device is fixed on the printing platform, and the calibration device includes: a control module, wherein the control module is used to control the shooting component to shoot the positioning marking device to obtain a target image; a processing module, wherein the processing module is used to process the target image to obtain a first relative position relationship between the shooting component and the positioning marking device; and a calibration module, wherein the calibration module is used to obtain a second relative position relationship between the nozzle component and the positioning marking device according to the first relative position relationship, and calibrate the nozzle component according to the second relative position relationship.
[0014] The third aspect of 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 calibration method based on the 3D printing device.
[0015] A fourth aspect of the present application discloses a storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned calibration method based on a 3D printing device.
[0016] It can be understood that the device of the second aspect, the electronic device of the third aspect, and the storage medium of the fourth aspect provided above all correspond to the method of the first aspect. 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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 related drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A flowchart of a calibration method based on a 3D printing device provided in one embodiment of the present application.
[0019] Figure 2 A flowchart of a calibration method based on a 3D printing device provided in one embodiment of the present application.
[0020] Figure 3 A flowchart of a calibration method based on a 3D printing device provided in one embodiment of the present application.
[0021] Figure 4 A flowchart of a calibration method based on a 3D printing device provided in one embodiment of the present application.
[0022] Figure 5 A schematic diagram of the functional modules of a detection system for a 3D printing device provided in one embodiment of the present application.
[0023] Figure 6 A schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the implementation methods of the present application and the features in the implementation methods can be combined with each other without conflict.
[0025] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described implementations are only part of the implementations of the present application, rather than all the implementations.
[0026] 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 belongs. 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.
[0027] It should be further noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0028] In this application, "at least one" means one or more, and "more" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.
[0029] In the embodiments of the present 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 the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0030] To facilitate understanding, some illustrations of concepts related to the embodiments of the present application are given by way of example for reference.
[0031] 3D printing equipment, also known as three-dimensional printers, is a rapid prototyping process equipment, usually using digital technology to print materials. 3D printing equipment is often used to manufacture models or parts in the fields of mold manufacturing, industrial design, etc.
[0032] Please refer to Figure 1 , is a flow chart of a calibration method based on a 3D printing device provided in an embodiment of the present application. This embodiment is applied to a 3D printing device. The 3D printing device includes a shooting component, a nozzle component, a printing platform, and a positioning marking device. The shooting component is fixedly connected to the nozzle component, and the positioning marking device is fixed on the printing platform. The calibration method includes the following steps:
[0033] Step 101: Control the shooting component to shoot the alignment marking device to obtain a target image.
[0034] In some embodiments, the camera assembly is a camera fixed to the left or right side of the nozzle assembly. It is understandable that this embodiment does not specifically limit the location of the camera assembly, and only needs to ensure that the camera assembly is fixedly connected to the nozzle assembly.
[0035] In some embodiments, the camera assembly and the alignment marking device are arranged on the same side. For example, if the camera assembly is fixed to the left side of the nozzle assembly, the alignment marking device is fixed to the left side of the printing platform. In this way, it is convenient for the camera assembly to capture the alignment marking device, thereby reducing the difficulty of calibration.
[0036] It is worth noting that the present embodiment does not specifically limit the structure of the alignment marking device. For example, the alignment marking device may be a calibration plate, etc., and may be configured according to actual needs.
[0037] Step 102: Process the target image to obtain a first relative position relationship between the photographing component and the alignment marking device.
[0038] It should be noted that how to process the target image is described in detail in subsequent embodiments, and will not be described again here to avoid repetition.
[0039] Step 103: Acquire a second relative position relationship between the nozzle assembly and the alignment marking device according to the first relative position relationship.
[0040] Specifically, since the shooting component is fixedly connected to the nozzle component, the relative position relationship between the shooting component and the nozzle component is fixed and is a known quantity. Therefore, the second relative position relationship between the nozzle component and the alignment marking device can be calculated through the first relative position relationship between the shooting component and the alignment marking device.
[0041] Step 104: Calibrate the nozzle assembly according to the second relative position relationship.
[0042] In some embodiments, when the nozzle assembly is located at a preset calibration position and the nozzle assembly is not offset, the relative position relationship between the nozzle assembly and the alignment marking device is a standard relative position relationship. In practical applications, by moving the nozzle assembly to the calibration position, obtaining a first relative position relationship between the camera assembly and the alignment marking device, and then calculating a second relative position relationship between the nozzle assembly and the alignment marking device based on the first relative position relationship, the offset of the nozzle assembly can be obtained based on the difference between the standard relative position relationship and the second relative position relationship, and the nozzle assembly can be calibrated according to the offset.
[0043] Compared with the related art, the embodiments of the present application have at least the following advantages: by providing a positioning mark device fixed to the printing platform, after the shooting component shoots the positioning mark device to obtain the target image, the first relative position relationship between the shooting component and the positioning mark device can be obtained based on the target image; and because the shooting component is fixedly connected to the nozzle assembly, that is, the relative position relationship between the shooting component and the nozzle assembly is fixed, the second relative position relationship between the nozzle assembly and the positioning mark device can be obtained based on the first relative position relationship, and then the nozzle assembly can be calibrated through the second relative position relationship, thereby improving the accuracy of the nozzle calibration and the efficiency of the nozzle calibration; in addition, this calibration method does not require the addition of additional expensive accessories or equipment, and only requires the positioning mark device to be fixed on the printing platform, thereby reducing hardware costs and reducing the complexity of operations and equipment.
[0044] Please refer to Figure 2 , is a flow chart of a calibration method based on a 3D printing device provided in an embodiment of the present application. This embodiment is a specific description of the above embodiment, and further describes: a method of processing the target image.
[0045] The specific process of this embodiment is as follows Figure 2 As shown, it is applied to 3D printing equipment, including the following steps:
[0046] Step 201: Control the shooting component to shoot the alignment marking device to obtain a target image.
[0047] Step 202: Perform image recognition on the target image to obtain a first image contour of the shooting component and a second image contour of the alignment marking device.
[0048] Step 203: Acquire a first relative position relationship between the photographing component and the alignment marking device according to the first image contour and the second image contour.
[0049] In some embodiments, a first coordinate of a center point of a photographing component in a pixel coordinate system is obtained according to a first image outline; a second coordinate of a center point of an alignment marking device in a pixel coordinate system is obtained according to a second image outline; the first coordinate is converted into a first actual coordinate in a world coordinate system, and the second coordinate is converted into a second actual coordinate in the world coordinate system; and a first relative position relationship is calculated according to the first actual coordinate and the second actual coordinate.
[0050] Specifically, after obtaining the first image contour and the second image contour, the pixel coordinates of the first image contour and the second image contour in the target image can be obtained. It can be understood that due to the optical structure and imaging system of the shooting component, any point in its field of view can be mapped to the pixel coordinate system of the image. The expression is as follows, indicating that the point in other coordinate systems (such as the camera coordinate system) is converted to the pixel coordinate system through the imaging model of the shooting component. The imaging model here is called the intrinsic parameter matrix K, which is obtained by camera calibration.
[0051] Among them, (x_pixel, y_pixel) is the pixel coordinate, K is the intrinsic parameter matrix, and (x_c, y_c, z_c) is the coordinate in the camera coordinate system. Therefore, the coordinate in the camera coordinate system can be obtained according to the above formula. Then, based on the extrinsic parameter matrix of the shooting component, the coordinate in the camera coordinate system can be converted to the coordinate in the world coordinate system.
[0052] Step 204: Acquire a second relative position relationship between the nozzle assembly and the alignment marking device according to the first relative position relationship.
[0053] Step 205: Calibrate the nozzle assembly according to the second relative position relationship.
[0054] Step 201 , step 204 and step 205 of this embodiment are similar to step 101 , step 103 and step 104 of the aforementioned embodiment, and will not be described again here to avoid repetition.
[0055] Compared with the related art, the embodiments of the present application have at least the following advantages: by providing a positioning mark device fixed to the printing platform, after the shooting component shoots the positioning mark device to obtain the target image, the first relative position relationship between the shooting component and the positioning mark device can be obtained based on the target image; and because the shooting component is fixedly connected to the nozzle assembly, that is, the relative position relationship between the shooting component and the nozzle assembly is fixed, the second relative position relationship between the nozzle assembly and the positioning mark device can be obtained based on the first relative position relationship, and then the nozzle assembly can be calibrated through the second relative position relationship, thereby improving the accuracy of the nozzle calibration and the efficiency of the nozzle calibration; in addition, this calibration method does not require the addition of additional expensive accessories or equipment, and only requires the positioning mark device to be fixed on the printing platform, thereby reducing hardware costs and reducing the complexity of operations and equipment.
[0056] Please refer to Figure 3 , is a flow chart of a calibration method based on a 3D printing device provided in an embodiment of the present application. This embodiment is a specific description of the above embodiment, and further describes: another way of processing the target image.
[0057] The specific process of this embodiment is as follows Figure 3 As shown, it is applied to 3D printing equipment, including the following steps:
[0058] Step 301: Control the shooting component to shoot the alignment marking device to obtain a target image.
[0059] Step 302: Input the target image into a preset algorithm model, and use the input result of the algorithm model as the first relative position relationship.
[0060] In some embodiments, the algorithm model is trained by jointly training the historical abnormal position relationship data and the historical normal position relationship data between the shooting component and the alignment marking device. The algorithm model has a bidirectional input layer, and the bidirectional input layer of the algorithm model corresponds to the input of the historical abnormal position relationship data and the historical normal position relationship data respectively.
[0061] In some embodiments, the 3D printing device also includes a central processing unit, and the algorithm model is set in the central processing unit; the algorithm model is obtained by quantizing the initial algorithm model and then performing model reasoning and reconstruction. The model quantization is used to convert the model accuracy of the initial algorithm model into a preset model accuracy that can accelerate the model data reasoning process. The model reasoning and reconstruction is used to reduce the space occupied by the initial algorithm model.
[0062] In some embodiments, the algorithm model is an LSTM (Long Short-Term Memory) model with a bidirectional input layer.
[0063] In some embodiments, the algorithm model is obtained by quantizing the initial algorithm model and then performing model reasoning reconstruction. Model quantization is used to convert the model accuracy of the initial algorithm model into a preset model accuracy that can accelerate the model data reasoning process. Model reasoning reconstruction is used to reduce the space occupied by the initial algorithm model.
[0064] In some embodiments, the preset algorithm model is an algorithm model whose model size is lower than a preset value and whose computing power required by the model is lower than the preset computing power, and the preset algorithm model has a bidirectional input layer.
[0065] In some embodiments, the preset algorithm model is an LSTM model, which can effectively handle long sequence dependency problems, prevent the gradient disappearance problem, and has good learning ability.
[0066] Step 303: Acquire a second relative position relationship between the nozzle assembly and the alignment marking device according to the first relative position relationship.
[0067] Step 304: calibrate the nozzle assembly according to the second relative position relationship.
[0068] Step 301 , step 303 and step 304 of this embodiment are similar to step 101 , step 103 and step 104 of the aforementioned embodiment, and will not be described again here to avoid repetition.
[0069] Compared with the related art, the embodiments of the present application have at least the following advantages: by providing a positioning mark device fixed to the printing platform, after the shooting component shoots the positioning mark device to obtain the target image, the first relative position relationship between the shooting component and the positioning mark device can be obtained based on the target image; and because the shooting component is fixedly connected to the nozzle assembly, that is, the relative position relationship between the shooting component and the nozzle assembly is fixed, the second relative position relationship between the nozzle assembly and the positioning mark device can be obtained based on the first relative position relationship, and then the nozzle assembly can be calibrated through the second relative position relationship, thereby improving the accuracy of the nozzle calibration and the efficiency of the nozzle calibration; in addition, this calibration method does not require the addition of additional expensive accessories or equipment, and only requires the positioning mark device to be fixed on the printing platform, thereby reducing hardware costs and reducing the complexity of operations and equipment.
[0070] Please refer to Figure 4, is a flow chart of a calibration method based on a 3D printing device 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, the resource occupancy information of each thread in the central processing unit is also detected, and the thread that meets the preset data processing requirements among multiple threads is used as the target thread for image processing. In this way, reasonable resource scheduling can be performed, thereby improving the resource utilization of the central processing unit and ensuring the normal operation of the central processing unit.
[0071] The specific process of this embodiment is as follows Figure 2 As shown, it is applied to 3D printing equipment, including the following steps:
[0072] Step 401: Control the photographing component to photograph the alignment marking device to obtain a target image.
[0073] Step 402: Obtain resource occupancy information of each thread in the current plurality of threads.
[0074] Step 403: Determine a target thread that meets the preset data processing requirement among the multiple threads according to the resource occupancy information of each thread.
[0075] In some embodiments, if a thread is not currently processing any task, it indicates that the thread meets the preset data processing requirements.
[0076] Step 404: Process the target image through the target thread to obtain a first relative position relationship between the shooting component and the alignment marking device.
[0077] In some embodiments, the target thread executes the task of processing the target image. In this way, the idle thread can be used to execute the image processing task, thereby improving the resource utilization of the central processing unit.
[0078] In some embodiments, before processing the target image through the target thread, it also includes: obtaining an image processing time corresponding to the target image; detecting whether the image processing time is less than or equal to a preset image processing time, and whether the current resource occupancy rate of the central processing unit is greater than a preset occupancy rate; the processing of the target image through the target thread includes: when it is detected that the image processing time is less than or equal to the preset image processing time, processing the target image through the target thread; when it is detected that the image processing time is greater than the preset image processing time, and the current resource occupancy rate of the central processing unit is greater than the preset occupancy rate, suspending processing of the target image until it is detected that the current resource occupancy rate of the central processing unit is less than or equal to the preset occupancy rate, and then processing the target image through the target thread.
[0079] In some embodiments, when it is detected that the current resource occupancy rate of the central processing unit is greater than the preset occupancy rate, it indicates that the central processing unit process is busy at this time. If the data inference time is greater than the preset data inference time, the central processing unit requires more time and resources to process the inference task corresponding to the sensing data. By performing thread sleep processing on the inference task corresponding to the sensing data, the intensive use of the central processing unit can be slowed down, thereby further reducing the resources required for model inference.
[0080] In some embodiments, the preset occupancy rate can be set according to actual needs. For example, the preset occupancy rate can be set to 80%, 85%, etc. It is only necessary to ensure that the CPU process is busy when the current resource occupancy rate of the CPU is greater than the preset occupancy rate.
[0081] Step 405: Acquire a second relative position relationship between the nozzle assembly and the alignment marking device according to the first relative position relationship.
[0082] Step 406: Calibrate the nozzle assembly according to the second relative position relationship.
[0083] Step 401 , step 405 and step 406 of this embodiment are similar to step 101 , step 103 and step 104 of the above-mentioned embodiment, and will not be described again to avoid repetition.
[0084] Compared with the related art, the embodiments of the present application have at least the following advantages: by providing a positioning mark device fixed to the printing platform, after the shooting component shoots the positioning mark device to obtain the target image, the first relative position relationship between the shooting component and the positioning mark device can be obtained based on the target image; and because the shooting component is fixedly connected to the nozzle assembly, that is, the relative position relationship between the shooting component and the nozzle assembly is fixed, the second relative position relationship between the nozzle assembly and the positioning mark device can be obtained based on the first relative position relationship, and then the nozzle assembly can be calibrated through the second relative position relationship, thereby improving the accuracy of the nozzle calibration and the efficiency of the nozzle calibration; in addition, this calibration method does not require the addition of additional expensive accessories or equipment, and only requires the positioning mark device to be fixed on the printing platform, thereby reducing hardware costs and reducing the complexity of operations and equipment.
[0085] Please refer to Figure 5 , is a functional module diagram of a calibration device based on a 3D printing device provided in an embodiment of the present application. The 3D printing device includes a shooting component, a nozzle component, a printing platform and a positioning marking device, wherein the shooting component is fixedly connected to the nozzle component, and the positioning marking device is fixed on the printing platform. The calibration device 100 based on the 3D printing device includes: a control module 1, a processing module 2 and a calibration module 3.
[0086] The control module 1 is used to control the shooting component to shoot the alignment marking device to obtain a target image; the processing module 2 is used to process the target image to obtain a first relative position relationship between the shooting component and the alignment marking device; the calibration module 3 is used to obtain a second relative position relationship between the nozzle assembly and the alignment marking device according to the first relative position relationship, and calibrate the nozzle assembly according to the second relative position relationship.
[0087] Please refer to Figure 6 , is a schematic diagram of the hardware structure of the electronic device 1000 provided in the embodiment of the present application. Figure 6 As shown, 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, and the above instructions can be used to implement the above-mentioned calibration method based on the 3D printing device in the electronic device 1000.
[0088] It is understandable 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.
[0089] 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), etc. Different processing units may be independent devices or integrated into one or more processors.
[0090] The processor 1001 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1001 is a cache memory. The memory may store instructions or data that the processor 1001 has just used or circulated. If the processor 1001 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 1001, and thus improves the efficiency of the system.
[0091] In some embodiments, the processor 1001 may include one or more interfaces. The interface 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, etc.
[0092] In some embodiments, memory 1002 may include high-speed random access memory and may also include 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 devices.
[0093] This embodiment further provides a computer-readable storage medium, in which computer instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the calibration method based on the 3D printing device in the above-mentioned embodiment.
[0094] Among them, the detection device, electronic device, and storage medium based on the 3D printing device provided in this embodiment are all 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.
[0095] 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.
[0096] In several embodiments provided in the present 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. There may be other division methods in actual implementation, 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.
[0097] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
[0098] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0099] 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, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0100] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A calibration method based on a 3D printing device, characterized in that: The 3D printing device includes a shooting component, a nozzle component, a printing platform and a positioning marking device, the shooting component is fixedly connected to the nozzle component, the positioning marking device is fixed on the printing platform, and the calibration method includes: Controlling the photographing component to photograph the alignment marking device to obtain a target image; Processing the target image to obtain a first relative position relationship between the photographing component and the alignment marking device; A second relative position relationship between the nozzle assembly and the alignment marking device is acquired according to the first relative position relationship, and the nozzle assembly is calibrated according to the second relative position relationship.
2. The calibration method based on 3D printing equipment according to claim 1, characterized in that: The processing of the target image to obtain a first relative position relationship between the photographing component and the alignment marking device includes: Performing image recognition on the target image to obtain a first image outline of the shooting component and a second image outline of the alignment marking device; The first relative position relationship is acquired according to the first image contour and the second image contour.
3. The calibration method based on 3D printing equipment according to claim 2, characterized in that: The acquiring the first relative position relationship according to the first image contour and the second image contour comprises: Acquire a first coordinate of a center point of the photographing component in a pixel coordinate system according to the first image contour; Acquire a second coordinate of a center point of the alignment marking device in a pixel coordinate system according to the second image contour; Convert the first coordinate into a first actual coordinate in a world coordinate system, and convert the second coordinate into a second actual coordinate in the world coordinate system; The first relative position relationship is calculated according to the first actual coordinates and the second actual coordinates.
4. The calibration method based on 3D printing equipment according to claim 1, characterized in that: The processing of the target image to obtain a first relative position relationship between the photographing component and the alignment marking device includes: Inputting the target image into a preset algorithm model, and using the input result of the algorithm model as the first relative position relationship; Among them, the algorithm model is obtained by jointly training the historical abnormal position relationship data and the historical normal position relationship data between the shooting component and the alignment marking device. The algorithm model has a bidirectional input layer, and the bidirectional input layer of the algorithm model corresponds to the input of the historical abnormal position relationship data and the historical normal position relationship data respectively.
5. The calibration method based on 3D printing equipment according to claim 4, characterized in that: The 3D printing device also includes a central processing unit, and the algorithm model is set in the central processing unit; The algorithm model is obtained by quantizing the initial algorithm model and then performing model reasoning reconstruction. The model quantization is used to convert the model accuracy of the initial algorithm model into a preset model accuracy that can accelerate the model data reasoning process. The model reasoning reconstruction is used to reduce the space occupied by the initial algorithm model.
6. The calibration method based on 3D printing equipment according to claim 1, characterized in that: The 3D printing device further includes a central processing unit having multiple threads; before processing the target image, the method further includes: Obtain resource occupancy information of each thread among the multiple threads currently; Determining a target thread that meets a preset data processing requirement among the multiple threads according to the resource occupation information of each thread; The processing of the target image comprises: The target image is processed by the target thread.
7. The calibration method based on 3D printing equipment as claimed in claim 6, characterized in that: Before the target image is processed by the target thread, the method further includes: Acquire the image processing time corresponding to the target image; Detecting whether the image processing time is less than or equal to a preset image processing time, and whether the current resource occupancy rate of the central processing unit is greater than a preset occupancy rate; The processing of the target image by the target thread includes: When it is detected that the image processing time is less than or equal to the preset image processing time, processing the target image through the target thread; When it is detected that the image processing time is greater than the preset image processing time and the current resource occupancy rate of the central processing unit is greater than the preset occupancy rate, the processing of the target image is suspended until it is detected that the current resource occupancy rate of the central processing unit is less than or equal to the preset occupancy rate, and the target image is processed through the target thread.
8. A calibration device based on a 3D printing device, characterized in that: The 3D printing device comprises a shooting component, a nozzle component, a printing platform and a positioning marking device, wherein the shooting component is fixedly connected to the nozzle component, the positioning marking device is fixed on the printing platform, and the calibration device comprises: A control module, the control module is used to control the shooting component to shoot the alignment marking device to obtain a target image; A processing module, the processing module is used to process the target image to obtain a first relative position relationship between the shooting component and the alignment marking device; A calibration module, wherein the calibration module is used to obtain a second relative position relationship between the nozzle assembly and the alignment marking device according to the first relative position relationship, and to calibrate the nozzle assembly according to the second relative position relationship.
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 calibration method based on the 3D printing device according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, enable the electronic device to execute the calibration method based on a 3D printing device as claimed in any one of claims 1 to 7.
Citation Information
Patent Citations
3D printer nozzle calibration device, and 3D printer and calibration method
CN110901069A
Apparatus and method for calibrating for skew without independent reference object and for compensating for coefficient of thermal expansion and moisture absorption
US20230141459A1
Cited By
Motion path calibration method for 3D printer, and 3D printer and 3D printing system
WO2026194700A1
