3D grafting printing correction method, device, equipment and medium

By acquiring and scaling the contour data of the base and workpiece in 3D grafting printing, and calculating and correcting the offset value, the problems of workpiece scrapping and low grafting accuracy caused by the deviation between the scanning position and the base position are solved, and high-precision grafting printing is achieved.

CN120941734BActive Publication Date: 2026-07-07GUANGDONG HANBANG 3D TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG HANBANG 3D TECH CO LTD
Filing Date
2024-05-07
Publication Date
2026-07-07

Smart Images

  • Figure CN120941734B_ABST
    Figure CN120941734B_ABST
Patent Text Reader

Abstract

The application provides a 3D grafting printing correction method, device, equipment and medium. The 3D grafting printing correction method comprises the following steps: acquiring base profile data of a to-be-grafted base and workpiece profile data of a to-be-printed workpiece, wherein the base profile data is the outer profile data of the to-be-grafted base close to the to-be-printed workpiece, and the workpiece profile data is the outer profile data of the to-be-printed workpiece close to the to-be-grafted base; scaling the workpiece profile data based on a preset scaling ratio to obtain scaled profile data; calculating an initial offset value of the scaled profile data and the base profile data; calculating an actual offset value of the base profile data and the workpiece profile data according to the initial offset value and the preset scaling ratio; detecting whether the actual offset value meets a preset offset range, and correcting the workpiece profile data according to the detection result. The application can improve the precision and quality of grafting printing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of 3D printing equipment technology, and in particular to a 3D grafting printing correction method, apparatus, equipment and medium. Background Technology

[0002] 3D grafting printing is a 3D printing technology primarily used to manufacture large, complex products. This technology combines the advantages of traditional machining and 3D printing to improve production efficiency and reduce costs.

[0003] Currently, some products are manufactured using traditional processing methods, such as machining and casting; others are completed through 3D grafting printing. This method is particularly suitable for manufacturing large products with complex structures because 3D grafting printing can quickly and accurately create complex internal structures, while traditional machining can create high-strength, stable external structures. The conventionally machined part serves as the base, which is then mounted on the printing press for grafting. The 3D grafted part is printed, and the two parts are combined through 3D grafting printing to obtain a complete part.

[0004] However, the accuracy of grafting positioning is a major challenge for grafting printing technology. If there is a deviation between the scanning position and the base position, there will be problems such as the workpiece being easily scrapped and the grafting accuracy being low. Summary of the Invention

[0005] This invention proposes a 3D grafting printing correction method, device, equipment, and medium to solve the problems of easy workpiece scrapping and low grafting accuracy in current 3D grafting printing technology when there is a deviation between the scanning position and the base position.

[0006] The technical solution of this invention is a 3D grafting printing correction method applied to a 3D printing equipment. The method includes acquiring base contour data of a base to be grafted and workpiece contour data of a workpiece to be printed, wherein the workpiece to be printed is used to graft onto the base to be grafted, the base contour data is the outer contour data of the base to be grafted near the workpiece to be printed, and the workpiece contour data is the outer contour data of the workpiece to be printed near the base to be grafted; scaling the workpiece contour data based on a preset scaling ratio to obtain scaled contour data, wherein the scaled outer contour printed based on the scaled contour data is within the range of the base outer contour printed based on the base contour data; calculating an initial offset value between the scaled contour data and the base contour data; calculating an actual offset value between the base contour data and the workpiece contour data according to the initial offset value and the preset scaling ratio; detecting whether the actual offset value meets a preset offset range, and correcting the workpiece contour data based on the detection result.

[0007] Compared with related technologies, the embodiments of this application have at least the following advantages:

[0008] This application obtains scaled contour data by scaling the workpiece contour data according to a preset scaling ratio. Then, the actual offset between the base contour data and the workpiece contour data is calculated. This avoids the problem of scanning beyond the base to be grafted, which could affect the accuracy of subsequent corrections, as is possible with direct scanning using the workpiece contour data. Furthermore, by using the scaled contour data and the actual offset value, accurate workpiece contour data for printing is derived. This avoids problems such as low grafting accuracy and easy workpiece damage that can occur when printing directly based on the workpiece contour data. On the other hand, precise correction of the workpiece contour data before grafting and printing avoids the cumbersome verification and large data processing volume caused by simultaneous printing and correction.

[0009] In some embodiments, the 3D printing equipment includes a molding substrate, and the grafting base is mounted on one side of the molding substrate; obtaining the base contour data of the grafting base includes: acquiring a base contour image of the grafting base; and parsing the base contour image to obtain the base contour data.

[0010] In some embodiments, the 3D printing equipment includes a printing device and a molding substrate, the printing device being used to print on the surface of the molding substrate; before scaling the workpiece contour data based on a preset scaling ratio, the method includes: controlling the printing device to print an initial workpiece outer contour of the workpiece to be printed on the molding substrate based on the workpiece contour data; acquiring an initial outer contour image of the initial workpiece outer contour and an outer contour image of the base to be grafted; comparing the initial outer contour image and the base outer contour image to obtain a comparison value; if the comparison value is not within a preset comparison threshold, adjusting the workpiece contour data and repeating the printing to the comparison step until the comparison value is within the preset comparison threshold.

[0011] In some embodiments, comparing the initial outer contour image and the base outer contour image to obtain a comparison value includes: parsing the initial outer contour image to obtain initial outer contour data; parsing the base outer contour image to obtain the base contour data; and comparing the initial outer contour data and the base contour data to obtain the comparison value.

[0012] In some embodiments, the 3D printing equipment includes a printing device and a molding substrate. The printing device is used to print on the surface of the molding substrate. Scaling the workpiece contour data based on a preset scaling ratio to obtain scaled contour data includes: scaling the workpiece contour data based on the preset scaling ratio to obtain first contour data; controlling the printing device to print the scaled outer contour of the workpiece to be printed on the molding substrate based on the first contour data; acquiring a scaled contour image of the scaled outer contour; and parsing the scaled contour image to obtain the scaled contour data.

[0013] In some embodiments, the scaled contour data includes a scaled center value, and the base contour data includes a base center value; the step of detecting whether the actual offset value meets a preset offset range and correcting the workpiece contour data according to the detection result includes: obtaining a first center value based on the actual offset value and the scaled center value; detecting whether the difference between the first center value and the base center value is within the preset offset range; if it is detected that the difference between the first center value and the base center value is not within the preset offset range, correcting the workpiece contour data according to the difference between the first center value and the base center value.

[0014] In some embodiments, correcting the workpiece contour data based on the difference between the first center value and the base center value includes: adjusting the workpiece contour data based on the difference between the first center value and the base center value, and then repeating the scaling and calculation steps until the actual offset value meets the preset offset range.

[0015] One embodiment of this application also provides a 3D grafting printing correction device, including an acquisition module for acquiring base contour data of a base to be grafted and workpiece contour data of a workpiece to be printed, wherein the workpiece to be printed is used to graft onto the base to be grafted, the base contour data is the outer contour data of the base to be grafted near the workpiece to be printed, and the workpiece contour data is the outer contour data of the workpiece to be printed near the base to be grafted; a scaling module for scaling the workpiece contour data based on a preset scaling ratio to obtain scaled contour data, wherein the scaled outer contour printed based on the scaled contour data is within the range of the base outer contour printed based on the base contour data; a first calculation module for calculating an initial offset value between the scaled contour data and the base contour data; a second calculation module for calculating an actual offset value between the base contour data and the workpiece contour data according to the initial offset value and the preset scaling ratio; and a correction module for detecting whether the actual offset value meets a preset offset range and correcting the workpiece contour data according to the detection result.

[0016] One embodiment of this application also provides an electronic device, including 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 to cause the electronic device to perform the 3D grafting printing correction method as described above.

[0017] One embodiment of this application also provides a computer-readable storage medium that stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the above-described 3D grafting printing correction method.

[0018] Compared with existing technologies, the above-mentioned 3D grafting printing correction method, apparatus, equipment, and computer storage medium firstly acquire and analyze the contour image of the base to be grafted, mounted on the molding substrate, to obtain accurate base contour data, thus avoiding the impact of inaccurate base contour data on subsequent grafting printing accuracy. Then, the workpiece contour data is scaled, and the scaled first contour data is used to scan inside the base to obtain scaled contour data. Scanning inside the base avoids affecting the appearance of the workpiece. Finally, the base contour data and scaled contour data are calculated based on a preset scaling ratio to obtain the actual offset value. The actual offset value is used to determine whether the center point coordinates of the workpiece to be printed coincide with the center point coordinates of the base, thereby determining whether a perfect grafting can be achieved between the workpiece and the base, improving the accuracy and quality of grafting printing. Attached Figure Description

[0019] Figure 1 This is a flowchart of the steps of a 3D grafting printing correction method according to an embodiment of this application.

[0020] Figure 2 It shows the use of Figure 1 A schematic diagram of the 3D grafting printing correction method used for printing correction.

[0021] Figure 3 This is a flowchart of the sub-steps of a 3D grafting printing correction method according to an embodiment of this application.

[0022] Figure 4 This is a schematic diagram of the structure of a 3D grafting printing correction device according to one embodiment of this application.

[0023] Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application.

[0024] Explanation of main component symbols

[0025] 1000 electronic devices

[0026] Processor 1001

[0027] Memory 1002

[0028] Computer Program 1003

[0029] First center point O1

[0030] Second center point O2

[0031] Get Module 210

[0032] Scaling module 220

[0033] First Calculation Module 230

[0034] Second Calculation Module 240

[0035] Calibration Module 250

[0036] The following detailed description, in conjunction with the accompanying drawings, will further illustrate this application. Detailed Implementation

[0037] To better understand the above-mentioned objectives, features, and advantages of this application, the application will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0038] The following description sets forth many specific details to provide a full understanding of this application. The described embodiments are only some, not all, of the embodiments of this application.

[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the specification of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application.

[0040] It should be further noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0041] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and drawings of this application are used to distinguish similar objects, not to describe a specific order or sequence.

[0042] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0043] For ease of understanding, some concepts related to the embodiments of this application are illustrated and explained by way of example for reference.

[0044] 3D printing equipment, also known as three-dimensional printers or stereo printers, is a rapid prototyping process that typically uses digital technology to print materials. 3D printing equipment is commonly used in mold making, industrial design, and other fields to create models or parts.

[0045] 3D printing equipment includes a collection device, a printing device, and a molding substrate. The printing device and the collection device are located on one side of the molding substrate. The printing device is used to print on the surface of the molding substrate, and the collection device is used to collect the printed material printed onto the molding substrate.

[0046] The 3D grafting printing correction method of this application is set in a 3D grafting printing correction system, which can be applied in one or more 3D printing devices or installed in other devices that are communicatively connected to the 3D printing devices.

[0047] like Figure 1 The diagram shown is a flowchart illustrating the steps of an embodiment of the 3D grafting printing correction method of this application. Depending on different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0048] See Figure 1 As shown, the 3D grafting printing correction method may include the following steps.

[0049] Step S101: Obtain the base contour data of the base to be grafted and the workpiece contour data of the workpiece to be printed. The workpiece to be printed is used to graft onto the base to be grafted. The base contour data is the outer contour data of the base to be grafted near the workpiece to be printed, and the workpiece contour data is the outer contour data of the workpiece to be printed near the base to be grafted.

[0050] In some embodiments, in order to graft the workpiece to be printed onto the grafting base, the grafting base needs to be installed onto the molding substrate first. Then, the printing device is controlled to print on the grafting base. There are various ways to install the grafting base onto the molding substrate. For example, the grafting base can be installed onto the molding substrate by bolt connection or by snap-fit. In other embodiments, the grafting base can also be installed onto the molding substrate by methods other than bolt connection or snap-fit; this application does not limit the method of installing the grafting base onto the molding substrate.

[0051] To ensure the quality of the grafting process when the workpiece is attached to the base, it is necessary to compare the offset between the base contour data and the workpiece contour data. A large offset will affect the grafting quality between the workpiece and the base.

[0052] Specifically, in some embodiments, such as Figure 2 As shown, after the grafting base is installed onto the molding substrate, the 3D grafting printing correction system controls the acquisition device in the 3D printing equipment to acquire the base contour image of the grafting base on the molding substrate. Then, the base contour image is analyzed using an image processing algorithm to obtain the base data. The acquisition device can be a camera. The image processing algorithm is a prior art processing method, and will not be described in detail here.

[0053] In this embodiment, before printing the workpiece, the model file corresponding to the workpiece needs to be processed using slicing software to obtain multiple slice layers. Each slice layer includes the outer contour data of the workpiece to be printed. That is, the outer contour data of the first slice layer of the workpiece to be printed is obtained.

[0054] A coordinate system is established with the first center point O1 of the base to be grafted as the origin. Based on this coordinate system, the base data is processed to obtain the base contour data and the workpiece contour data that matches the outer contour data within the first slice layer of the workpiece to be printed.

[0055] It should be noted that the coordinate system can be established based on the substrate to be grafted or on the molded substrate. This application does not limit the process of establishing the coordinate system.

[0056] Step S102: Scale the workpiece contour data based on a preset scaling ratio to obtain scaled contour data, wherein the scaled outer contour printed based on the scaled contour data is within the range of the base outer contour printed based on the base contour data.

[0057] In some embodiments, to ensure that the grafting quality between the outer contour of the first slice layer of the workpiece to be printed and the outer contour of the base to be grafted near the workpiece meets the standard, it is necessary to first detect whether the offset between the outer contour printed based on the workpiece contour data and the outer contour of the base printed based on the base contour data is within a preset range. The specific detection steps are as follows:

[0058] Based on the workpiece contour data, the printing device is controlled to print the initial outer contour of the workpiece to be printed on the molding substrate. Specifically, based on the outer contour data corresponding to the first slice layer of the workpiece to be printed, the 3D grafting printing correction system controls the printing base to print the initial outer contour of the workpiece on the molding platform.

[0059] Specifically, the 3D grafting printing correction system controls the acquisition device to acquire an initial outer contour image of the initial workpiece and an outer contour image of the base to be grafted. The initial outer contour image is analyzed to obtain initial outer contour data. This initial outer contour data is the coordinate data of the outer contour of the workpiece to be printed, obtained based on the coordinate system in step S101. The initial outer contour data and the base contour data are compared to obtain a comparison value. If the comparison value is not within a preset comparison threshold, the workpiece contour data is adjusted, and the printing process is repeated until the comparison value is within the preset comparison threshold.

[0060] The method used to parse the initial outer contour image is also an existing image processing algorithm, which will not be described in detail here.

[0061] In this embodiment, the preset comparison threshold can be set to 0.1mm. In other embodiments, the preset comparison threshold can be set according to the actual grafting accuracy requirements, such as 0.15mm, 0.2mm, or 0.25mm.

[0062] The printing apparatus includes a first printing device and a second printing device. The first printing device is a red light scanner, and the second printing device is a laser scanner. In this embodiment, based on workpiece contour data, the red light scanner is used to scan and print inside the substrate to be grafted, leaving no scanning marks on the molding substrate and thus not affecting the aesthetic appearance of the subsequently printed workpiece.

[0063] Furthermore, to obtain accurate scaled contour data, please refer to... Figure 3 The following steps need to be performed:

[0064] Step S1021: Scale the workpiece contour data based on a preset scaling ratio to obtain the first contour data.

[0065] In some embodiments, when the 3D grafting printing correction system detects that the workpiece contour image scanned and printed using an infrared scanner matches the base contour image of the base to be grafted, the workpiece contour data is scaled using a preset scaling ratio. For example, when the preset scaling ratio is 0.5, the scaled workpiece contour data is half of the original workpiece contour data. That is, the value in the scaled contour data is half of the corresponding value in the workpiece contour data. In other embodiments, the preset scaling ratio can also be 0.6, 0.65, 0.7, 0.75, or 0.8, and the value of the preset scaling ratio can be between 0.5 and 0.8. The scaled workpiece contour data is the first contour data.

[0066] Step S1022: Based on the first contour data, control the printing device to print the scaled outer contour of the workpiece to be printed on the molding substrate.

[0067] In some embodiments, based on the first contour data, a laser scanner is used to scan the interior of the grafting substrate, such as... Figure 2 As shown, the acquisition device can capture scaled contour images. Using a laser for scanning allows the acquisition device to capture clear scaled contour images. Furthermore, scanning and printing are performed inside the base, and during subsequent grafting printing, the internal scanning marks can be remelted and covered, without affecting the quality of the workpiece to be printed.

[0068] Step S1023: Acquire a scaled contour image of the workpiece's outer contour.

[0069] Step S1024: Analyze the scaled contour image to obtain scaled contour data.

[0070] Step S103: Calculate the initial offset between the scaled contour data and the base contour data.

[0071] Specifically, please combine with Figure 2 Based on the base contour data and the scaled contour data, the difference between the base contour data and the scaled contour data can be obtained, and this difference can be used as the initial offset value (the initial offset value includes the initial offset value X and the initial offset value Y).

[0072] Step S104: Calculate the actual offset values ​​of the base contour data and the workpiece contour data based on the initial offset value and the preset scaling ratio.

[0073] In some embodiments, the actual offset value (which includes actual offset value X and actual offset value Y) is obtained based on a preset scaling ratio and an initial offset value. The actual offset value X is obtained based on the preset scaling ratio and the initial offset value X, and the actual offset value Y is obtained based on the preset scaling ratio and the initial offset value Y.

[0074] Step S105: Detect whether the actual offset value meets the preset offset range, and correct the workpiece contour data according to the detection result.

[0075] In some embodiments, the scaling contour data includes a scaling center value, which is the coordinate information of the center point (denoted as the second center point O2) of the scaling contour image obtained by the scanning device based on the scaling contour data. The base contour data includes the coordinate information of the base center value (i.e., the first center point O1).

[0076] Specifically, based on the actual offset value and the scaling center value, a first center value (i.e., the coordinate information of the center point of the first layer image of the workpiece to be printed) is obtained. The difference between the first center value and the base center value is then checked to see if it is within a preset offset range.

[0077] Furthermore, if the difference between the first center value and the base center value is detected to be within the preset offset range, printing is performed based on the workpiece contour data. If the difference between the first center value and the base center value is detected to be outside the preset offset range, the workpiece contour data is corrected according to the difference between the first center value and the base center value, and steps S102 and S103 are repeated until the actual offset value meets the preset offset range. In this embodiment, the preset offset range is [-0.01mm, +0.01mm]. In other embodiments, the preset offset range can be set according to the actual grafting accuracy requirements. For example, the preset offset range can be set to [-0.02mm, +0.02mm], [-0.05mm, +0.05mm], etc.

[0078] Compared with existing technologies, the embodiments of this application first acquire and analyze the base contour image of the base to be grafted, which is then mounted on the printing base, to obtain accurate base contour data, thus avoiding inaccurate base contour data that could affect the grafting printing accuracy. Then, the workpiece contour data is scaled up, and the first contour data is used to scan inside the base to obtain scaled contour data. Scanning inside the base avoids affecting the appearance of the workpiece. Finally, the base contour data and scaled contour data are calculated based on a preset scaling ratio to obtain the actual offset value. The actual offset value is used to determine whether the first center value of the workpiece to be printed coincides with the first center point O1 of the base, thereby determining whether the workpiece and the base can be perfectly grafted, improving the accuracy and quality of subsequent grafting printing.

[0079] In some embodiments, please refer to Figure 4 This application also discloses a 3D grafting printing correction device. The 3D grafting printing correction device includes an acquisition module 210, a scaling module 220, a first calculation module 230, a second calculation module 240, and a correction module 250. The acquisition module 210 acquires the base contour data of the base to be grafted and the workpiece contour data of the workpiece to be printed. The workpiece to be printed is used to graft onto the base. The base contour data is the outer contour data of the base near the workpiece, and the workpiece contour data is the outer contour data of the workpiece near the base. The scaling module 220 scales the workpiece contour data according to a preset scaling ratio to obtain scaled contour data. The scaled outer contour printed based on the scaled contour data is within the range of the base outer contour printed based on the base contour data. The first calculation module 230 calculates the initial offset value between the scaled contour data and the base contour data. The second calculation module 240 calculates the actual offset value between the base contour data and the workpiece contour data based on the initial offset value and the preset scaling ratio. The correction module 250 is used to detect whether the actual offset value meets the preset offset range, and to correct the workpiece contour data according to the detection result.

[0080] Please refer to Figure 5 This is a schematic diagram of the hardware structure of the electronic device 1000 provided in an embodiment of this application. Figure 5 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 that can be used to implement the methods described above in the electronic device 1000.

[0081] It is understood that the structure illustrated 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 illustrated, or combine some components, or split some components, or have different component arrangements.

[0082] Processor 1001 may include one or more processing units, such as application processors (APs), modems, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0083] The processor 1001 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 1001 is a cache memory. This memory can store instructions or data that the processor 1001 has just used or that are used repeatedly. If the processor 1001 needs to use the instruction or data again, it can retrieve it directly from this memory. This avoids repeated accesses, reduces the waiting time of the processor 1001, and thus improves the efficiency of the system.

[0084] In some embodiments, the processor 1001 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.

[0085] In some embodiments, memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0086] This embodiment also provides a computer-readable storage medium storing computer instructions. When the instructions are executed on an electronic device, the electronic device performs the aforementioned method steps to implement the methods described in the above embodiments.

[0087] In this embodiment, the electronic device and computer storage medium are used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0088] In practical applications, the above functions can be assigned 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.

[0089] In the several embodiments provided in this application, the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are illustrative. For instance, the division of modules or units is a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0090] The unit described as a separate component may or may not be physically separate. The component shown as a unit can be one physical unit or multiple physical units, that is, it can be located in one place or distributed in multiple different places. Some or all of the units can be selected to achieve the purpose of the solution in this embodiment according to actual needs.

[0091] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0092] If the integrated unit is implemented as a software functional unit and sold or used as an independent printed object, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, 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 printed object. This software printed object is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0093] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be covered within the scope of protection of this application.

Claims

1. A 3D grafting printing correction method, applied to 3D printing equipment, characterized in that, The method includes: Obtain the base contour data of the base to be grafted and the workpiece contour data of the workpiece to be printed, wherein the workpiece to be printed is used to be grafted onto the base to be grafted, the base contour data is the outer contour data of the base to be grafted near the workpiece to be printed, and the workpiece contour data is the outer contour data of the workpiece to be printed near the base to be grafted. The workpiece contour data is scaled based on a preset scaling ratio to obtain scaled contour data, wherein the scaled outer contour printed based on the scaled contour data is within the range of the base outer contour printed based on the base contour data. Calculate the initial offset value between the scaled contour data and the base contour data; Based on the initial offset value and the preset scaling ratio, calculate the actual offset values ​​of the base contour data and the workpiece contour data; The actual offset value is checked to see if it meets the preset offset range, and the workpiece contour data is corrected based on the detection result.

2. The 3D grafting printing correction method as described in claim 1, characterized in that, The 3D printing equipment includes a molding substrate, and the grafting base is mounted on the molding substrate; acquiring the base contour data of the grafting base includes: Acquire the base outline image of the base to be grafted; The base contour image is analyzed to obtain the base contour data.

3. The 3D grafting printing correction method as described in claim 1, characterized in that, The 3D printing equipment includes a printing device and a molding substrate, wherein the printing device is used to print on the surface of the molding substrate; Before scaling the workpiece contour data based on a preset scaling ratio, the following steps are included: Based on the workpiece contour data, the printing device is controlled to print the initial outer contour of the workpiece to be printed on the molding substrate. Acquire the initial outer contour image of the initial workpiece and the base outer contour image of the base to be grafted; By comparing the initial outer contour image and the base outer contour image, a comparison value is obtained; If the comparison value is not within the preset comparison threshold, the workpiece contour data is adjusted, and the printing process is repeated until the comparison value is within the preset comparison threshold.

4. The 3D grafting printing correction method as described in claim 3, characterized in that, The comparison of the initial outer contour image and the base outer contour image to obtain a comparison value includes: The initial outer contour image is analyzed to obtain the initial outer contour data; The base outer contour image is analyzed to obtain the base contour data; The comparison value is obtained by comparing the initial outer contour data and the base contour data.

5. The 3D grafting printing correction method as described in claim 1, characterized in that, The 3D printing equipment includes a printing device and a molding substrate, wherein the printing device is used to print on the surface of the molding substrate; The scaling of the workpiece contour data based on a preset scaling ratio to obtain scaled contour data includes: The workpiece contour data is scaled based on the preset scaling ratio to obtain first contour data; Based on the first contour data, the printing device is controlled to print the scaled outer contour of the workpiece to be printed on the molding substrate. Acquire a scaled contour image of the outer contour of the scaled workpiece; The scaled contour image is analyzed to obtain the scaled contour data.

6. The 3D grafting printing correction method as described in claim 1, characterized in that, The scaled contour data includes a scaled center value, and the base contour data includes a base center value; the step of detecting whether the actual offset value meets a preset offset range, and correcting the workpiece contour data based on the detection result, includes: Based on the actual offset value and the scaling center value, a first center value is obtained; Detect whether the difference between the first center value and the base center value is within the preset offset range; If the difference between the first center value and the base center value is detected to be outside the preset offset range, the workpiece contour data is corrected based on the difference between the first center value and the base center value.

7. The 3D grafting printing correction method as described in claim 6, characterized in that, Correcting the workpiece contour data based on the difference between the first center value and the base center value includes: Based on the difference between the first center value and the base center value, the workpiece contour data is adjusted, and the scaling and calculation steps are repeated until the actual offset value meets the preset offset range.

8. A 3D grafting printing correction device, characterized in that, include: The acquisition module is used to acquire the base contour data of the base to be grafted and the workpiece contour data of the workpiece to be printed. The workpiece to be printed is used to be grafted onto the base to be grafted. The base contour data is the outer contour data of the base to be grafted near the workpiece to be printed, and the workpiece contour data is the outer contour data of the workpiece to be printed near the base to be grafted. The scaling module is used to scale the workpiece contour data based on a preset scaling ratio to obtain scaled contour data, wherein the scaled outer contour printed based on the scaled contour data is within the range of the base outer contour printed based on the base contour data. The first calculation module is used to calculate the initial offset value between the scaled contour data and the base contour data; The second calculation module is used to calculate the actual offset values ​​of the base contour data and the workpiece contour data based on the initial offset value and the preset scaling ratio. The correction module is used to detect whether the actual offset value meets the preset offset range, and to correct the workpiece contour data based on the detection result.

9. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory being used to store instructions, and the processor being used to invoke the instructions in the memory, causing the electronic device to execute the 3D grafting printing correction method according to any one of claims 1 to 7.

10. A computer storage medium, characterized in that, The computer storage medium stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the 3D grafting printing correction method as described in any one of claims 1 to 7.