Automatic calibration method of 3D printing equipment and related equipment
Through the automatic calibration method, the offset of the nozzle is calculated by using the shooting device and the identification device, the problem of low manual adjustment accuracy of the nozzle of the 3D printing equipment is solved, and high-precision automatic calibration is achieved, saving labor costs.
Patent Information
- Application Number
- CN202311286942.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2043-09-28
AI Technical Summary
The nozzles of existing 3D printing equipment need to be manually adjusted, resulting in low accuracy, cumbersome and time-consuming.
By using the automatic calibration method, by setting the shooting device upward and the optical axis is perpendicular, the nozzle movement is controlled to be aligned with the optical axis of the shooting device, the image of the recognition device is taken, the distance between the nozzle and the shooting device is calculated, and the offset of the nozzle is calculated, so as to realize automatic calibration.
Improves the calibration accuracy of the nozzle, saves labor costs, and simplifies the calibration process.
Smart Images

Figure CN119704660A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of 3D printing technology, and in particular to an automatic calibration method for a 3D printing device and related equipment. Background Art
[0002] With the popularization of concepts such as intelligent manufacturing engineering and Industry 4.0, 3D printing technology is becoming more and more popular. 3D printing technology first appeared in the mid-1990s. It is actually the latest rapid prototyping device using technologies such as photocuring and paper lamination. It has basically the same working principle as ordinary printing. The printer is filled with "printing materials" such as liquid or powder. After connecting to the computer, the "printing materials" are stacked layer by layer through computer control, and finally the blueprint on the computer is turned into a physical object. This printing technology is called 3D stereoscopic printing technology.
[0003] In the related art, the 3D printing device is a dual-nozzle printer. There is an offset between the dual nozzles, and the user needs to adjust the dual nozzles to the appropriate position. However, the manual adjustment of the dual nozzles is not accurate enough and requires repeated adjustment, printing, and readjustment. The process is cumbersome and time-consuming. Summary of the invention
[0004] In view of this, the present application provides an automatic calibration method for a 3D printing device and related equipment, which can automatically calibrate the nozzle of the 3D printing device, with high calibration accuracy and can save labor costs.
[0005] A first aspect of the present application provides an automatic calibration method for a 3D printing device, the 3D printing device comprising a first nozzle, a second nozzle, a shooting device, a first recognition device and a second recognition device, the first recognition device being arranged on the first nozzle, the second recognition device being arranged on the second nozzle, the shooting device facing upward and with an optical axis vertical; the method comprising: controlling the first nozzle to move so that the nozzle of the first nozzle is aligned with the optical axis of the shooting device, and then controlling the shooting device to shoot a first image of the first recognition device; controlling the second nozzle to move so that the nozzle of the second nozzle is aligned with the optical axis of the shooting device, and then controlling the shooting device to shoot a second image of the second recognition device; calculating a first distance between the first recognition device and the shooting device according to the first image and a first actual characteristic physical quantity of the first recognition device; calculating a second distance between the second recognition device and the shooting device according to the second image and a second actual characteristic physical quantity of the second recognition device; and calculating an offset of the first nozzle and the second nozzle in a vertical direction according to the first distance and the second distance.
[0006] Compared with the related art, the embodiments of the present application have at least the following advantages: by setting the shooting device to face upward and the optical axis to be vertical, and then controlling the first nozzle and the second nozzle to move to be aligned with the optical axis of the shooting device respectively, the images of the first recognition device and the second recognition device are captured, so that the virtual characteristic physical quantity of the first recognition device in the first image and the virtual characteristic physical quantity of the second recognition device in the second image can be obtained, so that the first distance between the first recognition device and the shooting device can be calculated according to the imaging principle of the shooting device and the first actual characteristic physical quantity of the first recognition device, and the second distance between the second recognition device and the shooting device can be calculated according to the imaging principle of the shooting device and the second actual characteristic physical quantity of the second recognition device, and then the vertical offset of the first nozzle and the second nozzle can be obtained according to the difference between the first distance and the second distance, thereby realizing automatic calibration of the first nozzle and the second nozzle, and this calibration method has high accuracy and saves labor costs.
[0007] In some possible implementations, the first actual characteristic physical quantity is a first actual width; and calculating the first distance between the first recognition device and the shooting device according to the first image and the first actual characteristic physical quantity of the first recognition device includes: obtaining a first virtual width of the first recognition device in the first image according to the first image; and calculating the first distance according to the following formula: d A =W A ×f A / w A ; where d A is the first distance, W A is the first actual width, w A is the first virtual width.
[0008] In some possible implementations, the second actual characteristic physical quantity is a second actual width; and calculating the second distance between the second recognition device and the shooting device according to the second image and the second actual characteristic physical quantity of the second recognition device includes: obtaining a second virtual width of the second recognition device in the second image according to the second image; and calculating the second distance according to the following formula: d B =W B ×f B / w B ; where d B is the second distance, W B is the second actual width, w B is the second virtual width.
[0009] In some possible implementations, it also includes: determining a first feature point of the first recognition device and a second feature point of the second recognition device; acquiring a first virtual coordinate of the first feature point according to the first image, and acquiring a second virtual coordinate of the second feature point according to the second image; calculating a first actual coordinate of the first feature point according to a preset ratio threshold and the first virtual coordinate; calculating a second actual coordinate of the second feature point according to the preset ratio threshold and the second virtual coordinate; and calculating the horizontal offset of the first nozzle and the second nozzle according to the first actual coordinate and the second actual coordinate.
[0010] In some possible implementations, the 3D printing device further includes a functional platform, and the shooting device is arranged on the functional platform; wherein, in a first horizontal direction, the shortest horizontal distance between the shooting device and an edge of the functional platform is a third distance, and in a second horizontal direction, the shortest horizontal distance between the shooting device and an edge of the functional platform is a fourth distance, and the first horizontal direction is perpendicular to the second horizontal direction; and calculating the first actual coordinate of the first feature point according to the preset ratio threshold and the first virtual coordinate includes: calculating the first actual coordinate according to the following formula: A X =d X +KX A ; A Y =d Y +KY A Among them, A X is the abscissa of the first actual coordinate, A Y is the ordinate of the first actual coordinate, K is the preset ratio threshold, d x is the third distance, d Y is the fourth distance, X A is the horizontal coordinate of the first virtual coordinate, Y A is the ordinate of the first virtual coordinate.
[0011] In some possible implementations, calculating the second actual coordinates of the second feature point according to the preset ratio threshold and the second virtual coordinates includes: calculating the second actual coordinates according to the following formula: X =d X +KX B ; B Y =d Y +KY B Among them, B X is the horizontal coordinate of the first actual coordinate, B Y is the ordinate of the first actual coordinate, K is the preset ratio threshold, d X is the third distance, d Yis the fourth distance, X B is the horizontal coordinate of the second virtual coordinate, Y B is the ordinate of the second virtual coordinate.
[0012] In some possible implementations, calculating the offset of the first nozzle and the second nozzle in the horizontal direction according to the first actual coordinate and the second actual coordinate includes: calculating the offset of the first nozzle and the second nozzle in the horizontal direction according to the following formula: Offset x =K(X B -X A );Offset y =K(Y B -Y A ), where Offset x Offset is the offset between the first nozzle and the second nozzle in the first horizontal direction. y is the offset between the first nozzle and the second nozzle in the second horizontal direction, K is the preset ratio threshold, X A is the horizontal coordinate of the first virtual coordinate, Y A is the ordinate of the first virtual coordinate, X B is the horizontal coordinate of the second virtual coordinate, Y B is the ordinate of the second virtual coordinate.
[0013] The second aspect of the present application discloses a 3D printing device, comprising: a first nozzle, a second nozzle, a shooting device, a first recognition device, a second recognition device and a control device, wherein the first recognition device is arranged on the first nozzle, the second recognition device is arranged on the second nozzle, the shooting device faces upward and the optical axis is vertical; the control device controls the movement of the first nozzle to align the nozzle of the first nozzle with the optical axis of the shooting device; after the nozzle of the first nozzle is aligned with the optical axis of the shooting device, the control device controls the shooting device to shoot a first image of the first recognition device; the control device controls the movement of the second nozzle to align the nozzle of the second nozzle with the optical axis of the shooting device; after the nozzle of the second nozzle is aligned with the optical axis of the shooting device, the control device controls the shooting device to shoot a second image of the second recognition device; the control device calculates a first distance between the first recognition device and the shooting device according to the first image and a first actual characteristic physical quantity of the first recognition device; the control device calculates a second distance between the second recognition device and the shooting device according to the second image and a second actual characteristic physical quantity of the second recognition device; the control device calculates an offset of the first nozzle and the second nozzle in the vertical direction according to the first distance and the second distance.
[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 automatic calibration method of 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 automatic calibration method for a 3D printing device.
[0016] It can be understood that the 3D printing 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 of 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 This is a flowchart of an automatic calibration method for a 3D printing device provided in one embodiment of the present application.
[0019] Figure 2 A partial structural schematic diagram of a 3D printing device provided in one embodiment of the present application.
[0020] Figure 3 This is a flow chart of an automatic calibration method for a 3D printing device provided in one embodiment of the present application.
[0021] Figure 4 A partial structural schematic diagram of a 3D printing device provided in one embodiment of the present application.
[0022] Figure 5 A schematic diagram of the functional modules of 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 , which is a flow chart of an automatic calibration method for a 3D printing device provided in an embodiment of the present application, wherein the 3D printing device comprises a first nozzle, a second nozzle, a shooting device, a first recognition device and a second recognition device, wherein the first recognition device is arranged on the first nozzle, the second recognition device is arranged on the second nozzle, the shooting device faces upward and the optical axis is vertical, and the automatic calibration method for the 3D printing device comprises the following steps:
[0033] Step 101: Control the movement of the first nozzle to align the nozzle of the first nozzle with the optical axis of the shooting device, and then control the shooting device to shoot a first image of the first recognition device.
[0034] In some embodiments, the first nozzle is controlled to move in a horizontal direction so that the nozzle of the first nozzle is aligned with the optical axis of the shooting device, that is, the nozzle of the first nozzle faces the center of the shooting device.
[0035] Step 102: Control the movement of the second nozzle to align the nozzle of the second nozzle with the optical axis of the shooting device, and then control the shooting device to shoot a second image of the second recognition device.
[0036] In some embodiments, the second nozzle is controlled to move in the horizontal direction so that the nozzle of the second nozzle is aligned with the optical axis of the shooting device, that is, the nozzle of the second nozzle is facing the center of the shooting device.
[0037] For ease of understanding, the following Figure 2The moving process of the first nozzle and the second nozzle in this embodiment, as well as the structures of the first identification device and the second identification device are specifically described:
[0038] Please refer to Figure 2 , which is a partial structural diagram of the 3D printing device provided in this embodiment. The first recognition device 3 and the second recognition device 4 are both recognition collars installed on the first nozzle 1 and the second nozzle 2. After the first nozzle 1 is moved to the center of the shooting device 5, the shooting device 5 is controlled to shoot the first image of the first recognition device 3, and after the second nozzle 2 is moved to the center of the shooting device 5, the shooting device 5 is controlled to shoot the second image of the second recognition device 4.
[0039] It is worth noting that, taking the example that both the first identification device 3 and the second identification device 4 are identification collars, the installation position of the first identification device 3 on the first nozzle 1 is the same as the installation position of the second identification device 4 on the second nozzle 2. For example, if the first identification device 3 is installed at the center of the first nozzle 1, then the second identification device 4 is also installed at the center of the second nozzle 2, thereby improving the accuracy of the subsequent calculation of the offset of the first nozzle 1 and the second nozzle 2 in the vertical direction, thereby improving the printing effect of the 3D printing device.
[0040] In some embodiments, there is no specific limitation on the material of the identification collar. The identification collar can be a rope tied to the first nozzle 1 and the second nozzle 2, or can be made of elastic plastic, etc. It only needs to ensure that the first identification device 3 and the second identification device 4 can be clearly distinguished in the first image and the second image.
[0041] In some embodiments, the first identification device 3 and the second identification device 4 may also be other structures, such as modules, balls, etc. installed on the sides of the first nozzle 1 and the second nozzle 2.
[0042] Step 103: Calculate a first distance between the first recognition device and the photographing device according to the first image and a first actual characteristic physical quantity of the first recognition device.
[0043] In some embodiments, the first actual characteristic physical quantity is a first actual width. First, according to the first image, a first virtual width of the first recognition device in the first image is obtained, and then the first distance is calculated according to the following formula:
[0044] d A =W A ×f A / w A ; where d A is the first distance, W A is the first actual width, w A is the first virtual width, f A is the focal length of the camera.
[0045] Please refer again Figure 2 ,from Figure 2 It can be seen from FIG. 1 that the ratio of the first actual width of the first recognition device to the first virtual width after imaging is equal to the ratio of the first distance to the focal length of the shooting device. According to the above proportional relationship, the first distance can be calculated.
[0046] In some embodiments, the first actual characteristic physical quantity may also be other physical parameters, such as length, thickness, etc., which is not specifically limited in this embodiment.
[0047] Step 104: Calculate a second distance between the second recognition device and the photographing device according to the second image and the second actual characteristic physical quantity of the second recognition device.
[0048] In some embodiments, the second actual characteristic physical quantity is a second actual width. First, according to the second image, a second virtual width of the second recognition device in the second image is obtained, and then the second distance is calculated according to the following formula:
[0049] d B =W B ×f B / w B ; where d B is the second distance, W B is the second actual width, w B is the second virtual width, f B is the focal length of the camera.
[0050] Please refer again Figure 2 ,from Figure 2 It can be seen from FIG. 1 that the ratio of the second actual width of the second recognition device to the second virtual width after imaging is equal to the ratio of the second distance to the focal length of the shooting device. According to the above proportional relationship, the second distance can be calculated.
[0051] In some embodiments, the second actual characteristic physical quantity may also be other physical parameters, such as length, thickness, etc., which is not specifically limited in this embodiment.
[0052] Step 105: Calculate the vertical offset of the first nozzle and the second nozzle according to the first distance and the second distance.
[0053] In some embodiments, since the first recognition device and the second recognition device are both disposed at the same position of the first nozzle and the second nozzle, the first distance between the first recognition device and the photographing device can be equal to the relative height of the first nozzle in the vertical direction; similarly, the second distance between the second recognition device and the photographing device can be equal to the relative height of the second nozzle in the vertical direction. Therefore, by calculating the difference between the first distance and the second distance, the vertical offset of the first nozzle and the second nozzle can be obtained.
[0054] In some embodiments, the offset between the first nozzle and the second nozzle in the vertical direction can be calibrated by updating the offset to the system controlling the 3D printing device.
[0055] Compared with the related art, the embodiments of the present application have at least the following advantages: by setting the shooting device to face upward and the optical axis to be vertical, and then controlling the first nozzle and the second nozzle to move to be aligned with the optical axis of the shooting device respectively, the images of the first recognition device and the second recognition device are captured, so that the virtual characteristic physical quantity of the first recognition device in the first image and the virtual characteristic physical quantity of the second recognition device in the second image can be obtained, so that the first distance between the first recognition device and the shooting device can be calculated according to the imaging principle of the shooting device and the first actual characteristic physical quantity of the first recognition device, and the second distance between the second recognition device and the shooting device can be calculated according to the imaging principle of the shooting device and the second actual characteristic physical quantity of the second recognition device, and then the vertical offset of the first nozzle and the second nozzle can be obtained according to the difference between the first distance and the second distance, thereby realizing automatic calibration of the first nozzle and the second nozzle, and this calibration method has high accuracy and saves labor costs.
[0056] Please refer to Figure 3 , is a flow chart of an automatic calibration method for a 3D printing device provided in an embodiment of the present application. This embodiment is applied to the 3D printing device of the aforementioned embodiment, and includes the following steps:
[0057] Execute steps 101 to 105 in the above embodiment.
[0058] Step 201: Determine a first feature point of a first recognition device and a second feature point of a second recognition device.
[0059] In some embodiments, taking the example that both the first identification device and the second identification device are identification collars arranged on the first nozzle and the second nozzle, the first characteristic point of the first identification device is the center of the identification collar of the first nozzle, and the second characteristic point of the second identification device is the center of the identification collar of the second nozzle.
[0060] In some embodiments, the first feature point and the second feature point may also be other positions. For example, when the first identification device is a module, the first feature point is the center of the module. This embodiment does not specifically limit this.
[0061] Step 202: Acquire first virtual coordinates of a first feature point according to the first image, and acquire second virtual coordinates of a second feature point according to the second image.
[0062] In some embodiments, image recognition is performed on the first image and the second image to obtain the first virtual coordinates and the second virtual coordinates.
[0063] Step 203: Calculate the first actual coordinates of the first feature point according to the preset ratio threshold and the first virtual coordinates.
[0064] Please refer to Figure 4 , which is a partial structural diagram of a 3D printing device provided in an embodiment of the present application. The 3D printing device also includes a functional platform 6, on which a camera 5 is arranged; wherein, in the first horizontal direction X, the shortest horizontal distance between the camera 5 and the edge of the functional platform 6 is a third distance d X In the second horizontal direction Y, the shortest horizontal distance between the camera 5 and the edge of the functional platform 6 is the fourth distance d Y , the first horizontal direction X and the second horizontal direction Y are perpendicular.
[0065] Combination Figure 4 , the first actual coordinate can be calculated according to the following formula: A X =d X +KX A ; A Y =d Y +KY A ;
[0066] Among them, A X is the abscissa of the first actual coordinate, A Y is the ordinate of the first actual coordinate, K is the preset ratio threshold, d X is the third distance, d Y is the fourth distance, X A is the horizontal coordinate of the first virtual coordinate, y A is the ordinate of the first virtual coordinate.
[0067] It can be understood that, in this embodiment, the preset ratio threshold K is the ratio of the first virtual width and the first actual width of the first recognition device in the aforementioned embodiment.
[0068] Step 204: Calculate the second actual coordinates of the second feature point according to the preset ratio threshold and the second virtual coordinates.
[0069] Combination Figure 4 The second actual coordinate can be calculated according to the following formula: B X =d X +KX B ; B Y =d Y +KY B ;
[0070] Among them, B X is the horizontal coordinate of the first actual coordinate, B Y is the ordinate of the first actual coordinate, K is the preset ratio threshold, d X is the third distance, d Y is the fourth distance, X B is the horizontal coordinate of the second virtual coordinate, Y B is the ordinate of the second virtual coordinate.
[0071] Step 205: Calculate the horizontal offset of the first nozzle and the second nozzle according to the first actual coordinate and the second actual coordinate.
[0072] In some embodiments, the horizontal offset between the first nozzle and the second nozzle is calculated according to the following formula: Offset x =K(X B -X A );Offset y =K(Y B -Y A );
[0073] Among them, Offset x Offset is the offset between the first nozzle and the second nozzle in the first horizontal direction. y is the offset between the first nozzle and the second nozzle in the second horizontal direction, K is the preset ratio threshold, X A is the horizontal coordinate of the first virtual coordinate, Y A is the ordinate of the first virtual coordinate, X B is the horizontal coordinate of the second virtual coordinate, Y B is the ordinate of the second virtual coordinate
[0074] Compared with the related art, the embodiments of the present application have at least the following advantages: by setting the shooting device to face upward and the optical axis to be vertical, and then controlling the first nozzle and the second nozzle to move to be aligned with the optical axis of the shooting device respectively, the images of the first recognition device and the second recognition device are captured, so that the virtual characteristic physical quantity of the first recognition device in the first image and the virtual characteristic physical quantity of the second recognition device in the second image can be obtained, so that the first distance between the first recognition device and the shooting device can be calculated according to the imaging principle of the shooting device and the first actual characteristic physical quantity of the first recognition device, and the second distance between the second recognition device and the shooting device can be calculated according to the imaging principle of the shooting device and the second actual characteristic physical quantity of the second recognition device, and then the vertical offset of the first nozzle and the second nozzle can be obtained according to the difference between the first distance and the second distance, thereby realizing automatic calibration of the first nozzle and the second nozzle, and this calibration method has high accuracy and saves labor costs.
[0075] Please refer to Figure 5 , which is a functional module diagram of the 3D printing device provided in the embodiment of the present application. A first nozzle 501, a second nozzle 502, a shooting device 503, a first recognition device 504, a second recognition device 505 and a control device 506, wherein the first recognition device 504 is arranged on the first nozzle 501, the second recognition device 505 is arranged on the second nozzle 502, the shooting device 503 faces upward and the optical axis is vertical; the control device 506 controls the movement of the first nozzle 501 so that the nozzle of the first nozzle 501 is aligned with the optical axis of the shooting device 503, and then controls the shooting device 503 to shoot the first image of the first recognition device 504; the control device 506 controls the movement of the second nozzle 502 so that the nozzle of the second nozzle 502 The nozzle is aligned with the optical axis of the shooting device 503, and then the shooting device 503 is controlled to shoot the second image of the second recognition device 505; the control device 506 calculates the first distance between the first recognition device 504 and the shooting device 503 according to the first image and the first actual characteristic physical quantity of the first recognition device 504; the control device 506 calculates the second distance between the second recognition device 505 and the shooting device 503 according to the second image and the second actual characteristic physical quantity of the second recognition device 505; the control device 506 calculates the vertical offset of the first nozzle 501 and the second nozzle 502 according to the first distance and the second distance.
[0076] 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 6As 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 method in the electronic device 1000.
[0077] 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.
[0078] 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.
[0079] 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.
[0080] 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.
[0081] 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.
[0082] 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 method in the above-mentioned embodiment.
[0083] 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.
[0084] 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.
[0085] 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.
[0086] 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.
[0087] 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.
[0088] 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.
[0089] 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 method for automatic calibration of a 3D printing device, characterized in that: The 3D printing device comprises a first nozzle, a second nozzle, a shooting device, a first recognition device and a second recognition device, wherein the first recognition device is arranged on the first nozzle, the second recognition device is arranged on the second nozzle, and the shooting device faces upward and the optical axis is vertical; The method comprises: Controlling the first nozzle to move so that the nozzle of the first nozzle is aligned with the optical axis of the shooting device, and then controlling the shooting device to shoot a first image of the first recognition device; Controlling the second nozzle to move so that the nozzle of the second nozzle is aligned with the optical axis of the shooting device, and then controlling the shooting device to shoot a second image of the second recognition device; Calculate a first distance between the first recognition device and the photographing device according to the first image and a first actual characteristic physical quantity of the first recognition device; calculate a second distance between the second recognition device and the photographing device according to the second image and a second actual characteristic physical quantity of the second recognition device; The vertical offset between the first nozzle and the second nozzle is calculated according to the first distance and the second distance.
2. The automatic calibration method of a 3D printing device according to claim 1, characterized in that: The first actual characteristic physical quantity is a first actual width; The calculating, according to the first image and the first actual characteristic physical quantity of the first recognition device, a first distance between the first recognition device and the photographing device comprises: obtaining, according to the first image, a first virtual width of the first recognition device within the first image; The first distance is calculated according to the following formula: d A =W A ×f A / w A ; where d A is the first distance, W A is the first actual width, w A is the first virtual width, f A is the focal length of the photographing device.
3. The automatic calibration method of a 3D printing device according to claim 1, characterized in that: The second actual characteristic physical quantity is a second actual width; The calculating, according to the second image and the second actual characteristic physical quantity of the second recognition device, a second distance between the second recognition device and the photographing device comprises: obtaining, according to the second image, a second virtual width of the second recognition device within the second image; The second distance is calculated according to the following formula: d B =W B ×f B / w B ; where d B is the second distance, W B is the second actual width, w B is the second virtual width, f B is the focal length of the photographing device.
4. The automatic calibration method of a 3D printing device according to claim 1, characterized in that: Also includes: determining a first feature point of the first recognition device and a second feature point of the second recognition device; Acquire first virtual coordinates of the first feature point according to the first image, and acquire second virtual coordinates of the second feature point according to the second image; Calculate the first actual coordinates of the first feature point according to a preset ratio threshold and the first virtual coordinates; Calculate the second actual coordinates of the second feature point according to the preset ratio threshold and the second virtual coordinates; The offset of the first nozzle and the second nozzle in the horizontal direction is calculated according to the first actual coordinate and the second actual coordinate.
5. The automatic calibration method of a 3D printing device according to claim 4, characterized in that: The 3D printing device further includes a functional platform, and the shooting device is arranged on the functional platform; wherein, in a first horizontal direction, the shortest horizontal distance between the shooting device and an edge of the functional platform is a third distance, and in a second horizontal direction, the shortest horizontal distance between the shooting device and an edge of the functional platform is a fourth distance, and the first horizontal direction is perpendicular to the second horizontal direction; The calculating the first actual coordinate of the first feature point according to the preset ratio threshold and the first virtual coordinate includes: calculating the first actual coordinate according to the following formula: HAS X =d X +KX A ;HAS Y =d Y +KY A ; Among them, A X is the abscissa of the first actual coordinate, A Y is the ordinate of the first actual coordinate, K is the preset ratio threshold, d X is the third distance, d Y is the fourth distance, X A is the horizontal coordinate of the first virtual coordinate, Y A is the ordinate of the first virtual coordinate.
6. The automatic calibration method of a 3D printing device according to claim 5, characterized in that: The calculating the second actual coordinate of the second feature point according to the preset ratio threshold and the second virtual coordinate includes: calculating the second actual coordinate according to the following formula: B X =d X +KX B ;B Y =d Y +KY B ; Among them, B X is the horizontal coordinate of the first actual coordinate, B Y is the ordinate of the first actual coordinate, K is the preset ratio threshold, d X is the third distance, d Y is the fourth distance, X B is the horizontal coordinate of the second virtual coordinate, Y B is the ordinate of the second virtual coordinate.
7. The automatic calibration method of a 3D printing device according to claim 6, characterized in that: The calculating the offset of the first nozzle and the second nozzle in the horizontal direction according to the first actual coordinate and the second actual coordinate includes: calculating the offset of the first nozzle and the second nozzle in the horizontal direction according to the following formula: Offset x =K(X B -X A );Offset y =K(Y B -Y A ); Among them, Offset x Offset is the offset between the first nozzle and the second nozzle in the first horizontal direction. y is the offset between the first nozzle and the second nozzle in the second horizontal direction, K is the preset ratio threshold, X A is the horizontal coordinate of the first virtual coordinate, Y A is the ordinate of the first virtual coordinate, X B is the horizontal coordinate of the second virtual coordinate, Y B is the ordinate of the second virtual coordinate.
8. A 3D printing device, characterized in that: include: A first nozzle, a second nozzle, a photographing device, a first identification device, a second identification device and a control device, wherein the first identification device is arranged on the first nozzle, the second identification device is arranged on the second nozzle, and the photographing device faces upward with an optical axis vertical; The control device controls the movement of the first nozzle so that the nozzle of the first nozzle is aligned with the optical axis of the shooting device, and then controls the shooting device to shoot the first image of the first recognition device; The control device controls the movement of the second nozzle so that the nozzle of the second nozzle is aligned with the optical axis of the shooting device, and then controls the shooting device to shoot the second image of the second recognition device; The control device calculates a first distance between the first recognition device and the photographing device according to the first image and a first actual characteristic physical quantity of the first recognition device; The control device calculates a second distance between the second recognition device and the photographing device according to the second image and a second actual characteristic physical quantity of the second recognition device; The control device calculates the vertical offset of the first nozzle and the second nozzle according to the first distance and the second distance.
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 automatic calibration method of 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 automatic calibration method for a 3D printing device according to any one of claims 1 to 7.
Citation Information
Patent Citations
3D printer nozzle calibration device, and 3D printer and calibration method
CN110901069A
Automatic calibration method and device for positions of 3D printer nozzles
CN111688201A
Image acquisition equipment calibration method and device applied to 3D printer
CN116728784A
Molding apparatus and molding method
JP2017071211A
Cited By
Printer control method and printer
US12515450B1