Ink-jet printing method and apparatus, and ink-jet printer

WO2026175376A1PCT designated stage Publication Date: 2026-08-27SHENZHEN ANKER SMART TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/079435
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-02-24
Filing Date
2026-02-13
Publication Date
2026-08-27

Smart Images

  • Figure CN2026079435_27082026_PF_FP_ABST
    Figure CN2026079435_27082026_PF_FP_ABST
Patent Text Reader

Abstract

Provided are an ink-jet printing method and apparatus, and an ink-jet printer, which are used for printing a picture to be printed into a three-dimensional printed object. The method comprises: acquiring a depth map of a picture to be printed, wherein the depth map comprises grayscale information; acquiring a target number of printing layers for a three-dimensional printed object to be obtained; on the basis of the grayscale information in the depth map and the target number of printing layers, acquiring a set of layered pictures, wherein the set of layered pictures comprises a plurality of layered pictures arranged in a preset sequence; and on the basis of the set of layered pictures, performing printing to obtain the three-dimensional printed object. Thus, the printing process of performing layered ink-jet printing on a picture to be printed can be simplified, thereby improving the printing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Inkjet printing methods, devices and inkjet printers

[0001] This application claims priority to Chinese Patent Application No. 202510213677.1, filed on February 24, 2025, entitled "Inkjet Printing Method, Apparatus and Inkjet Printer", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of inkjet printing technology, and in particular to an inkjet printing method, apparatus and inkjet printer. Background Technology

[0003] A UV inkjet printer is an inkjet printing device that uses ultraviolet (UV) light curing technology. It mainly uses six colors of UV ink: C (cyan), M (magenta), Y (yellow), K (black), white ink, and varnish. Full-color printing is achieved by adjusting the different proportions of each color ink.

[0004] In practical applications, UV inkjet printers are generally used for 2.5D printing. 2.5D printing refers to generating a 2.5D image with a three-dimensional feel from a 2.5D image. During the printing process, the image to be printed is printed layer by layer with inkjet ink, thereby obtaining a UV stacked image with a certain height, thus achieving a 2.5D image with a three-dimensional feel.

[0005] In existing technologies, 2.5D printing requires not only obtaining the image to be printed, but also determining the corresponding 3D model. Layer-by-layer printing is then performed based on the 3D model of the image to be printed. This process involves constructing the 3D model of the image to be printed, which is complex and reduces printing efficiency. Summary of the Invention

[0006] This application provides an inkjet printing method, apparatus, and inkjet printer to simplify the printing process of layered inkjet printing of images to be printed and improve printing efficiency.

[0007] In a first aspect, this application provides an inkjet printing method for printing an image to be printed as a stereoscopic print, the method comprising:

[0008] Obtain the depth map of the image to be printed; wherein the depth map includes grayscale information;

[0009] Obtain the target number of printing layers for the desired 3D printed part;

[0010] Based on the grayscale information in the depth map and the target number of printing layers, a layered image set is obtained; wherein, the layered image set includes multiple layered images arranged in a preset order;

[0011] Based on the layered image set, the 3D printed part is obtained.

[0012] In conjunction with the first aspect, in a first possible implementation of the first aspect, the step of printing the stereoscopic printed part based on the layered image set includes:

[0013] Obtain the edge color image corresponding to each of the layered images, and digitally overlay each edge color image with its corresponding layered image to obtain the color layered image corresponding to each of the layered images.

[0014] Based on all the obtained color layered images, the stereoscopic print is obtained by printing.

[0015] In conjunction with the first aspect, in the second possible implementation of the first aspect, the step of printing the stereoscopic printed part based on the layered image set includes:

[0016] For each layered image in the layered image set, its respective color layered image is obtained in a preset order, and after obtaining a color layered image, the color layered image is printed immediately until the last color layered image is printed.

[0017] The color layered image is obtained by digitally overlaying the layered image and the edge color map of the obtained layered image.

[0018] In conjunction with the first aspect, in the third possible implementation of the first aspect, obtaining the edge color map corresponding to the layered image includes:

[0019] Extract the printable color image of the corresponding region of the layered image from the image to be printed; the printable color image includes the color information of the corresponding region of the layered image.

[0020] The printed color image is subjected to erosion processing to obtain a mask image, wherein the area included in the mask image is smaller than the area included in the printed color image;

[0021] The area corresponding to the mask image is deleted from the printed color image to obtain the edge color image corresponding to the layered image.

[0022] In conjunction with the first aspect, in the fourth possible implementation of the first aspect, obtaining the edge color map corresponding to the layered image includes:

[0023] Extract the color image of the corresponding region of the layered image from the image to be printed;

[0024] The non-edge areas in the color image are set to a preset color to obtain the edge color image corresponding to the layered image; the preset color is either transparent or white.

[0025] In conjunction with the first aspect, in the fifth possible implementation of the first aspect, the step of printing the stereoscopic printed part based on the layered image set includes:

[0026] Obtain a compensation layer image corresponding to at least one of the layered images in the layered image set. The compensation layer image includes a first compensation layer image and a second compensation layer image, and the first compensation layer image and the second compensation layer image correspond to different color sets.

[0027] The compensation layer image is inserted into the layered image set to obtain a new layered image set;

[0028] The 3D printed part is obtained by printing based on the new layered image set.

[0029] In conjunction with the first aspect, in the sixth possible implementation of the first aspect, when the compensation layer image includes a first compensation layer image, obtaining the compensation layer image corresponding to at least one of the layered images in the layered image set includes:

[0030] Obtain the preset height interval between two adjacent compensation layer images;

[0031] If the difference between the height value of any layered image in the layered image set and the height value of the previous compensation layer image is greater than or equal to the interval height, a region map consisting of all pixels of all layered images within the current interval height is determined according to the depth map.

[0032] Extract the pixel value corresponding to the position of each pixel in the region map from the image to be printed;

[0033] The corresponding pixel in the region image is filled according to each pixel value to obtain the first compensation layer image corresponding to the layered image.

[0034] In conjunction with the first aspect, in the seventh possible implementation of the first aspect, when the compensation layer image includes a second compensation layer image, obtaining the compensation layer image corresponding to at least one of the layered images in the layered image set includes:

[0035] Obtain the preset height interval between two adjacent compensation layer images;

[0036] If the difference between the height value of any layered image in the layered image set and the height value of the previous compensation layer image is greater than or equal to the interval height, a region map composed of all pixels of all layered images within the current interval height is determined according to the depth map.

[0037] The second compensation layer image corresponding to the layered image is obtained by filling all the pixels in the region image with preset pixel values.

[0038] In conjunction with the first aspect, in the eighth possible implementation of the first aspect, when the compensation layer image includes a first compensation layer image and a second compensation layer image, obtaining the compensation layer image corresponding to at least one of the layered images in the layered image set includes:

[0039] Obtain the preset height of the interval between two adjacent compensation layer images;

[0040] If the difference between the height value of any layered image in the layered image set and the height value of the previous compensation layer image is greater than or equal to the interval height, a region map consisting of all pixels of all layered images within the current interval height is determined according to the depth map.

[0041] Extract the pixel value corresponding to the position of each pixel in the region map from the image to be printed;

[0042] The corresponding pixels in the region image are filled according to each pixel value and a preset pixel value to obtain the first compensation layer image and the second compensation layer image corresponding to the layered image.

[0043] In conjunction with the first aspect, in the ninth possible implementation of the first aspect, the first compensation layer image is a color ink image, and the second compensation layer image is a white ink image.

[0044] In conjunction with the first aspect, in the tenth possible implementation of the first aspect, obtaining the layered image set based on the grayscale information in the depth map and the target printing layer number includes:

[0045] Based on the grayscale information in the depth map, determine the grayscale value range corresponding to the image to be printed;

[0046] The grayscale value range is divided according to the target number of printing layers to obtain the reference grayscale value corresponding to each printing layer;

[0047] For each of the printed layers, regions with gray values ​​greater than the reference gray value are extracted from the depth map to obtain the layered image corresponding to each of the printed layers.

[0048] After obtaining the layered images corresponding to each of the printed layers, the obtained layered images are arranged in a preset order according to the grayscale value of each layered image to obtain the layered image set.

[0049] In conjunction with the first aspect, in the eleventh possible implementation of the first aspect, the step of dividing the grayscale value range according to the target number of printing layers to obtain a reference grayscale value corresponding to each printing layer includes:

[0050] The grayscale value range is divided into averages according to the target number of printing layers to obtain a reference grayscale value for each printing layer.

[0051] In conjunction with the first aspect, in the twelfth possible implementation of the first aspect, the step of arranging all the obtained layered images in a preset order according to the grayscale value of each layered image to obtain the layered image set includes:

[0052] All the obtained layered images are arranged in descending order of grayscale value to obtain the layered image set.

[0053] In conjunction with the first aspect, in the thirteenth possible implementation of the first aspect, the step of arranging all the obtained layered images in a preset order according to the grayscale value of each layered image to obtain the layered image set includes:

[0054] All the obtained layered images are arranged in ascending order of grayscale value to obtain the layered image set.

[0055] In conjunction with the first aspect, in the fourteenth possible implementation of the first aspect, obtaining the target number of printing layers of the desired stereoscopic printed part includes:

[0056] Obtain the preset total printing height corresponding to the image to be printed, wherein the total printing height represents the total height value of ink stacking when the image to be printed is inkjet printed;

[0057] Determine the height of each layer corresponding to the layered image;

[0058] Divide the total printing height by the single-layer height to obtain the target number of printing layers for the 3D printed part.

[0059] In conjunction with the first aspect, in the fifteenth possible implementation of the first aspect, obtaining the target number of printing layers of the desired stereoscopic printed part includes:

[0060] Retrieve the user-defined target number of printing layers from the preset storage medium.

[0061] In conjunction with the first aspect, in the sixteenth possible implementation of the first aspect, each of the layered images included in the layered image set is a color image containing color information of the corresponding region.

[0062] In conjunction with the first aspect, in the seventeenth possible implementation of the first aspect, each of the layered images included in the layered image set is a grayscale image, and the edges of the grayscale image include color information of the corresponding region edges.

[0063] Secondly, this application provides an inkjet printing apparatus for printing an image to be printed as a stereoscopic print, the apparatus comprising:

[0064] The first acquisition module is used to acquire a depth map of the image to be printed; wherein, the depth map includes grayscale information;

[0065] The second acquisition module is used to acquire the target number of printing layers for the desired 3D printed part;

[0066] The third acquisition module is used to acquire a layered image set based on the grayscale information in the depth map and the target printing layer number; wherein, the layered image set includes multiple layered images arranged in a preset order;

[0067] A printing module is used to print the 3D printed part based on the layered image set.

[0068] Thirdly, this application provides an inkjet printer, including: a printhead, a processor, and a memory;

[0069] The print head is used to inkjet print the image to be printed into a 3D printed part;

[0070] The processor is used to execute the inkjet printing program stored in the memory to implement the inkjet printing method described in any one of the first aspects.

[0071] Fourthly, this application provides a storage medium storing one or more programs that can be executed by one or more processors to implement the inkjet printing method described in any one aspect.

[0072] The technical solution provided in this application involves obtaining a depth map of an image to be printed, wherein the depth map includes grayscale information, obtaining the target number of printing layers for the desired 3D printed part, and obtaining a set of layered images based on the grayscale information in the depth map and the target number of printing layers. This set of layered images includes multiple layered images arranged in a preset order. Based on this set of layered images, the 3D printed part is obtained. This technical solution slices the image to be printed into a set of layered images based on the grayscale information in the depth map and the target number of printing layers for the corresponding 3D printed part, and then prints the 3D printed part based on the set of layered images. It generates the layered images of the image to be printed without needing to determine a 3D model of the image, thus avoiding the process of obtaining a 3D model of the image to be printed. This simplifies the printing process of layered inkjet printing of the image to be printed and improves printing efficiency. Attached Figure Description

[0073] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0074] Figure 1 is a flowchart of an embodiment of an inkjet printing method provided in this application;

[0075] Figure 2A is a schematic diagram of an image to be printed provided in an embodiment of this application;

[0076] Figure 2B is a schematic diagram of a depth map provided in an embodiment of this application;

[0077] Figure 3 is a flowchart of another inkjet printing method provided in this application.

[0078] Figure 4A is an example of a layered image provided in an embodiment of this application;

[0079] Figure 4B is an example diagram of a printed color image provided in an embodiment of this application;

[0080] Figure 5A is an example diagram of a masking image provided in an embodiment of this application;

[0081] Figure 5B is an example diagram of an edge color map provided in an embodiment of this application;

[0082] Figure 6 is a flowchart of another embodiment of the inkjet printing method provided in this application;

[0083] Figure 7 is a flowchart of another embodiment of the inkjet printing method provided in this application;

[0084] Figure 8A is an example image of a first compensation layer provided in an embodiment of this application;

[0085] Figure 8B is an example image of a second compensation layer provided in an embodiment of this application;

[0086] Figure 9 is a flowchart of another embodiment of the inkjet printing method provided in this application;

[0087] Figure 10 is a block diagram of an embodiment of an inkjet printing device provided in this application;

[0088] Figure 11 is a schematic diagram of the structure of an inkjet printer provided in an embodiment of this application. Detailed Implementation

[0089] Various exemplary embodiments of this application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps set forth in these embodiments do not limit the scope of this application.

[0090] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of this application are only used to distinguish different steps, devices or modules, and do not represent any specific technical meaning, nor do they indicate the logical order between them.

[0091] It should also be understood that in this embodiment, "multiple" can refer to two or more, and "at least one" can refer to one, two or more.

[0092] It should also be understood that any component, data or structure mentioned in the embodiments of this application can generally be understood as one or more unless explicitly defined or given contrary guidance in the context.

[0093] Furthermore, the term "and / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this application generally indicates that the preceding and following related objects have an "or" relationship.

[0094] It should also be understood that the description of the various embodiments in this application emphasizes the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described in detail.

[0095] The following description of at least one exemplary embodiment is merely illustrative and is not intended to limit the scope of this application or its application or use.

[0096] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.

[0097] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.

[0098] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. To facilitate understanding of the embodiments of this application, the application will be described in detail below with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0099] To address the technical problem that existing inkjet printers require the construction of a 3D model of the image to be printed during layered inkjet printing, resulting in a complex process and reduced printing efficiency, this application provides an inkjet printing method, apparatus, and printer. This method slices the image to be printed into layered images based on the grayscale information in the depth map of the image and the target number of printing layers for the corresponding 3D printed part. The 3D printed part is then obtained through layered printing. This method generates layered images of the image to be printed without requiring a 3D model, thus simplifying the process of obtaining the 3D model and improving printing efficiency.

[0100] The inkjet printing method provided in this application will be further explained and described below with reference to the accompanying drawings and specific embodiments. These embodiments do not constitute a limitation on the embodiments of the present invention.

[0101] Referring to Figure 1, this is a flowchart of an embodiment of an inkjet printing method provided in this application. As an embodiment, the method is used to print an image to be printed as a stereoscopic print. As shown in Figure 1, the process may include the following steps:

[0102] Step 101: Obtain the depth map of the image to be printed; wherein, the depth map includes grayscale information.

[0103] The aforementioned image to be printed refers to the image to be inkjet printed, which is generally a two-dimensional image. In the embodiments of this application, after the image to be printed is inkjet printed, a three-dimensional printed part corresponding to the two-dimensional image can be obtained.

[0104] The aforementioned depth map refers to the image containing the grayscale information of the image to be printed.

[0105] The grayscale information mentioned above reflects the distance information between each pixel in the scene corresponding to the image to be printed and the camera or sensor, and it can be represented by grayscale values.

[0106] In this embodiment of the application, when it is necessary to perform 2.5D printing on an image to be printed, the height information of each region in the image to be printed is required. However, the image to be printed itself is a two-dimensional image and does not include height information. Therefore, the execution subject of this embodiment of the application can obtain the depth map corresponding to the image to be printed. The depth map may include the grayscale information of the image to be printed, which can be used to characterize the height information of each region in the image to be printed.

[0107] As an optional implementation, when a user inputs an image to be printed for 2.5D printing, the depth map corresponding to the image can be determined, and the depth map and the image to be printed can be output together to the inkjet printer. Based on this, the execution subject of this application embodiment can directly obtain the image to be printed input by the user and its corresponding depth map.

[0108] For example, referring to Figure 2, which is a schematic diagram of a printable image and a corresponding depth map provided in an embodiment of this application, wherein Figure 2A is a schematic diagram of a printable image provided in an embodiment of this application, and Figure 2B is a schematic diagram of a depth map provided in an embodiment of this application.

[0109] Step 102: Obtain the target number of printing layers for the desired 3D printed part.

[0110] The aforementioned 3D printed parts refer to printed files with an embossed effect after the image to be printed has been inkjet printed.

[0111] The aforementioned target number of printing layers refers to the number of printing layers required to obtain a 3D printed part from the image to be printed. Here, the target number of printing layers is the target value for inkjet printing the image to be printed; that is, the image to be printed is layered according to this target number of printing layers to obtain a 3D printed part with the target number of printing layers.

[0112] In this embodiment of the application, in order to facilitate layered printing of the image to be printed, the executing entity of this embodiment of the application may first obtain the target number of printing layers of the stereoscopic printable part corresponding to the image to be printed before layering the image to be printed.

[0113] As an optional implementation, the target number of printing layers can be a pre-set number of printing layers by the user. Based on this, the execution entity of this application embodiment can directly obtain the target number of printing layers from a preset storage medium.

[0114] As another optional implementation, the target number of printing layers can be calculated by analyzing relevant printing parameters. Based on this, the execution entity of this application embodiment can obtain the preset total printing height corresponding to the image to be printed. The aforementioned total printing height represents the preset total height value of ink stacking when the image to be printed is inkjet printed.

[0115] Next, the height value of each layer corresponding to the layered image can be determined. Optionally, this height value can be a preset height value.

[0116] Finally, the total printing height can be divided by the single-layer height to obtain the target number of printing layers corresponding to the above-mentioned 3D printed part.

[0117] Step 103: Obtain a set of layered images based on the grayscale information in the depth map and the target number of printing layers; wherein the set of layered images includes multiple layered images arranged in a preset order.

[0118] Step 104: Based on the above layered image set, print the above 3D printed part.

[0119] The following provides a unified explanation of steps 103 and 104:

[0120] The aforementioned layered image set refers to a collection of multiple layered images obtained after slicing the image to be printed. It may include the layered images printed each time during continuous inkjet printing of the image to be printed. It may also include the printing data corresponding to each layered image and the order of multiple layered images. That is, the layered image set includes multiple layered images arranged in a preset order, etc. The embodiments of this application do not limit this.

[0121] In this embodiment of the application, since the grayscale information included in the depth map can be used to characterize the height information in the image to be printed, the execution subject of this embodiment of the application can obtain the set of layered images corresponding to the image to be printed based on the grayscale information and the target number of printing layers after obtaining the grayscale information and the target number of printing layers.

[0122] In one implementation, each layered image in the layered image set is a color image containing color information of the corresponding region.

[0123] In another implementation, each layer of the layered image set is a grayscale image, and its edges contain color information of the corresponding region edges.

[0124] The specific method for obtaining the layered image set based on the grayscale information in the depth map and the target printing layer number will be explained below, and will not be detailed here.

[0125] Subsequently, the executing entity of this application embodiment can print a stereoscopic print corresponding to the image to be printed based on the above-mentioned layered image set.

[0126] As an optional implementation, the execution entity of this application embodiment can control the pre-installed printhead in the inkjet printer to print the image to be printed based on the above-mentioned layered image set, so as to obtain a stereoscopic printed part corresponding to the image to be printed.

[0127] The technical solution provided in this application involves obtaining a depth map of an image to be printed; wherein the depth map includes grayscale information; obtaining the target number of printing layers for the desired 3D printed part; and obtaining a set of layered images based on the grayscale information in the depth map and the target number of printing layers; wherein the set of layered images includes multiple layered images arranged in a preset order; and printing the 3D printed part based on the set of layered images. This technical solution, by slicing the image to be printed into a set of layered images based on the grayscale information in the depth map of the image to be printed and the target number of printing layers for the corresponding 3D printed part, and then printing the 3D printed part based on the set of layered images, can generate layered images of the image to be printed without needing to determine a 3D model of the image to be printed, thus avoiding the process of obtaining a 3D model of the image to be printed. This simplifies the printing process of layered inkjet printing of the image to be printed and improves printing efficiency.

[0128] Referring to Figure 3, a flowchart of another inkjet printing method provided in this application is shown. Based on the flowchart in Figure 1, Figure 3 describes how, after obtaining the set of layered images corresponding to the image to be printed, a 3D printed part is obtained based on the set of layered images. As shown in Figure 3, this process may include the following steps:

[0129] Step 301: Obtain the edge color map corresponding to each layered image.

[0130] Step 302: Digitize and overlay each of the above edge color images and its corresponding layered images to obtain the color layered image corresponding to each layered image.

[0131] The following provides a unified explanation of steps 301 and 302:

[0132] The aforementioned edge color map refers to an image that contains the edge colors of the corresponding image regions. The edge color refers to the color of the edge of the region. Each layered image can correspond to one edge color map.

[0133] The aforementioned color layered image refers to an image that includes the layered image and the colors of the corresponding edge regions of the layered image.

[0134] In this embodiment of the application, in order to print the edge color of the image to be printed, the edge color map corresponding to each layer of the layered image can be obtained. Since the edge color map contains the color of the edge of the region in the corresponding layered image, after obtaining the edge color map, each edge color map and its corresponding layered image can be digitally superimposed to obtain a color layered image containing the edge color of the region corresponding to each layered image.

[0135] As an optional implementation, the execution entity of this application embodiment can obtain the edge color map corresponding to each layer of the layered image through the following steps:

[0136] First, for each layer of the layered image set, a printable color image of the corresponding area of ​​the layered image can be extracted from the image to be printed. This printable color image can include the color information of the corresponding area of ​​the layered image.

[0137] For example, see Figure 4, which shows an example of a layered image and a printed color image provided in an embodiment of this application. Figure 4A shows an example of a layered image provided in an embodiment of this application, and Figure 4B shows an example of a printed color image provided in an embodiment of this application. The printed color image has the same area, size, and shape as the corresponding layered image, but contains the color information of the layered image.

[0138] Then, the printed color image can be etched to obtain a mask image, the area of ​​which is smaller than that of the printed color image.

[0139] The aforementioned mask image refers to the image after the printed color image has been etched through.

[0140] In one implementation, after extracting the printed color image corresponding to the layered image, in order to obtain the edge color of the layered image, the execution subject of this application embodiment can perform erosion processing on the printed color image, that is, erode away the middle areas of the printed color image other than the edge color area, to obtain the mask image corresponding to the printed color image.

[0141] Finally, the area corresponding to the masking image can be deleted from the printed color image to obtain the edge color image corresponding to the layered image.

[0142] The aforementioned edge color map is an image that contains edge color information of the layered images.

[0143] In one implementation, since the area eroded by the mask image does not include the edge region corresponding to the edge color of the printed color image, the area included in the mask image is smaller than the area included in the printed color image. Based on this, the executing entity of this application embodiment can delete the area corresponding to the mask image in the printed color image to obtain the edge color image corresponding to the layered image.

[0144] For example, see Figure 5, which is an example diagram of a mask image and an edge color image provided in an embodiment of this application. Figure 5A is an example diagram of a mask image provided in an embodiment of this application, and Figure 5B is an example diagram of an edge color image provided in an embodiment of this application. Compared with the mask image, the edge color image does not include the area contained in the mask image, but only includes the edge color area of ​​the layered image, and the edge color area contains the corresponding color information.

[0145] Based on the edge color map determined in this way, the execution subject of this application embodiment can directly digitally overlay the corresponding layered image and the edge color map to obtain the color layered image corresponding to the layered image.

[0146] As another optional implementation, the execution subject of this application embodiment can directly obtain the color image of the corresponding area of ​​the layered image from the image to be printed, and set the non-edge area of ​​the color image to a preset color (e.g., transparent or white). Then, the layered image can be superimposed on the color image to obtain the color layered image corresponding to the layered image.

[0147] Step 303: Based on all the obtained color layered images, print the above-mentioned 3D printed parts.

[0148] In this embodiment of the application, after obtaining the color layered image containing the edge region color corresponding to each layered image in the layered image set according to the above steps, the execution subject of this embodiment of the application can control the preset print head to continuously inkjet print multiple color layered images included in the layered image set in a preset order according to all the obtained color layered images, so as to obtain the stereoscopic printed part corresponding to the image to be printed. The preset order refers to the arrangement order of the layered images in the layered image set.

[0149] The technical solution provided in this application obtains the edge color map corresponding to each layered image, digitally overlays each edge color map and its corresponding layered image to obtain a color layered image corresponding to that layered image, and prints the aforementioned 3D printed part based on all the obtained color layered images. This technical solution extracts the edge color map of the corresponding area of ​​each layered image to obtain the edge color area containing color information corresponding to the layered image, and digitally overlays the edge color area with the layered image to obtain a color layered image containing edge colors. This achieves the extraction of edge colors from each layered image and the addition of edge colors to the corresponding layered image, which can meet the side color requirements of 2.5D printing and improve the printing effect of inkjet printing.

[0150] Referring to Figure 6, a flowchart of another embodiment of the inkjet printing method provided in this application is shown. The flowchart in Figure 6, based on the flowchart in Figure 1, describes specifically how a 3D printed part is obtained based on a set of layered images. As shown in Figure 6, this process may include the following steps:

[0151] Step 601: For each layered image in the layered image set, obtain its respective color layered image in a preset order, and immediately print the color layered image after obtaining it, until the last color layered image is printed; wherein, the aforementioned color layered image is obtained by digitally overlaying the edge color map of the layered image and the obtained layered image.

[0152] The aforementioned preset order refers to the arrangement order of the layered images included in the layered image set.

[0153] In this embodiment of the application, unlike the process shown in Figure 3 where all color layered images are obtained and then printed to obtain a stereoscopic print, the execution subject of this embodiment can sequentially obtain the corresponding color layered images for each layered image in the layered image set according to the preset order of the layered images, and immediately print the color layered image after obtaining the corresponding color layered image, until the last color layered image is printed.

[0154] The color layered image corresponding to each layered image can be obtained by digitally overlaying the layered image and the obtained edge color map of that layered image, as follows:

[0155] First, for the layered image to be printed in the layered image set, obtain the edge color map of that layered image.

[0156] As an optional implementation, a printable color image of the corresponding area of ​​the layered image can be extracted from the image to be printed. This printable color image may include color information of the corresponding area of ​​the layered image.

[0157] Then, the printed color image can be etched to obtain a mask image, the area of ​​which is smaller than that of the printed color image.

[0158] The aforementioned mask image refers to the image after the printed color image has been etched through.

[0159] In one implementation, after extracting the printed color image corresponding to the layered image, in order to obtain the edge color of the layered image, the execution subject of this application embodiment can perform erosion processing on the printed color image, that is, erode away the middle areas of the printed color image other than the edge color area, to obtain the mask image corresponding to the printed color image.

[0160] Finally, the area corresponding to the masking image can be deleted from the printed color image to obtain the edge color map corresponding to the layered image. This edge color map is an image containing the edge color information of the layered image.

[0161] In one implementation, since the area eroded by the mask image does not include the edge region corresponding to the edge color of the printed color image, the area included in the mask image is smaller than the area included in the printed color image. Based on this, the executing entity of this application embodiment can delete the area corresponding to the mask image in the printed color image to obtain the edge color image corresponding to the layered image.

[0162] As another optional implementation, the execution subject of this application embodiment can also directly obtain the color image of the corresponding area of ​​the layered image from the image to be printed, and set the non-edge area of ​​the color image to a preset color (e.g., transparent or white) to obtain the edge color image corresponding to the layered image.

[0163] Subsequently, the executing entity of this application embodiment can directly digitally overlay the corresponding layered image and edge color image to obtain the color layered image corresponding to the layered image.

[0164] Furthermore, in the aforementioned edge color map, when the color of the non-edge area of ​​the current edge color map is a preset color, the aforementioned layered image can be superimposed on the color map to obtain the color layered image corresponding to the layered image.

[0165] The technical solution provided in this application involves sequentially acquiring the respective color layered images of each layered image in a layered image set according to a preset order, and immediately printing the acquired color layered image after acquisition, until the last color layered image is printed. The aforementioned color layered images are obtained by digitally overlaying the edge color maps of the layered images and the acquired layered images. This technical solution, by determining and printing the color layered image of each layered image in the layered image set as soon as it is determined, saves storage space and improves the printing efficiency of inkjet printing.

[0166] Referring to Figure 7, this is a flowchart of another embodiment of the inkjet printing method provided in this application. The flowchart shown in Figure 7, based on the flowchart shown in Figure 1, describes how, after obtaining the set of layered images corresponding to the image to be printed, a 3D printed part is obtained based on the set of layered images. As shown in Figure 7, this process may include the following steps:

[0167] Step 701: Obtain the compensation layer image corresponding to at least one layered image in the layered image set. The compensation layer image includes a first compensation layer image and a second compensation layer image, and the first compensation layer image and the second compensation layer image correspond to different color sets.

[0168] The aforementioned layered image set refers to the set of layered images obtained after slicing the image to be printed in the process shown in Figure 1. The layered images may include multiple layered images arranged in a preset order.

[0169] The aforementioned layered images refer to the images printed by each inkjet printer when printing an image in layers.

[0170] The aforementioned compensation layer image is used to cover the layer textures generated during printing of the layered image.

[0171] The aforementioned color set refers to the set of all colors contained in the first compensation layer image or the second compensation layer image.

[0172] In this embodiment of the application, after slicing the image to be printed to obtain a set of layered images, in order to increase the surface quality of the layered images during printing, the execution subject of this embodiment of the application may add a compensation layer image to the layered images at certain height intervals.

[0173] Based on this, the executing entity of this application embodiment can obtain a compensation layer image corresponding to at least one layered image in the layered images. The aforementioned compensation layer image may include a first compensation layer image and a second compensation layer image, wherein the first compensation layer image and the second compensation layer image correspond to different color sets; for example, the first compensation layer image may be a colored ink image, and the second compensation layer image may be a white ink image.

[0174] As an optional implementation, the executing entity of this application embodiment can determine whether each layered image in the layered image set meets preset conditions, and if it is determined that the layered image meets the preset conditions, determine the corresponding compensation layer image. The preset conditions refer to pre-set conditions under which a compensation layer image can be inserted, such as the height of the layered image reaching a preset height value, or the height difference between the layered image and the previously inserted compensation layer image reaching a preset value, or the difference in the number of layers between the layered image and the previously inserted compensation layer image being greater than a preset value. This application embodiment does not impose any restrictions on these conditions.

[0175] As an exemplary implementation, it can be determined whether a layered image meets preset conditions in the following way: First, the number of layers corresponding to the layered image and the single-layer height of each layered image can be determined. Then, based on the number of layers and the single-layer height, the height value corresponding to the layered image can be determined, wherein the single-layer height and the number of layers can be multiplied to obtain the height value corresponding to the layered image. Finally, the preset interval height between the insertion of two adjacent compensation layer images and the initial height value corresponding to the insertion of the previous compensation layer image can be determined. Optionally, if the height value is determined to be greater than or equal to the sum of the initial height value and the interval height, it is determined that the layered image meets the preset conditions.

[0176] As another exemplary implementation, it can be determined whether a layered image meets the preset conditions in the following way: First, the layer number corresponding to the layered image, the preset interval layer number for inserting the compensation layer image, and the initial layer number corresponding to the insertion of the previous compensation layer image can be determined. Then, it can be determined whether the aforementioned layer number is greater than or equal to the sum of the initial layer number and the interval layer number. Optionally, if it is determined that the aforementioned layer number is greater than or equal to the sum of the initial layer number and the interval layer number, the layered image is determined to meet the preset conditions.

[0177] As an optional implementation, when the above-mentioned compensation layer image includes the first compensation layer image, when obtaining the compensation layer image corresponding to at least one layer image in the layered image, a preset interval height between two adjacent compensation layer images can be obtained.

[0178] Subsequently, if the difference between the height value of any layer image in the layered image set and the height value of the previous compensation layer image is greater than or equal to the aforementioned interval height, in order to ensure that the insertion of the compensation layer image does not affect the printing effect of the layer image, a region map consisting of all pixels of all layer images within the current interval height can be determined based on the depth map. Here, the aforementioned current interval height refers to the height range between the layer image and the most recently inserted compensation layer image; the aforementioned previous compensation layer image refers to the most recently inserted compensation layer image; and all pixels of all layer images within the aforementioned interval height can be a 3D pixel set.

[0179] Finally, the pixel values ​​corresponding to the positions of each pixel in the above-mentioned area map can be extracted from the above-mentioned image to be printed, and the corresponding pixel in the above-mentioned area map can be filled according to each of the above-mentioned pixel values ​​to obtain the first compensation layer image corresponding to the layered image. The first compensation layer image can be a color ink image.

[0180] As another optional implementation, when the above-mentioned compensation layer image includes a second compensation layer image, when obtaining the compensation layer image corresponding to at least one layer image in the layered image, a preset interval height between two adjacent compensation layer images can be obtained.

[0181] Subsequently, if the difference between the height value of any layer image in the layered image set and the height value of the previous compensation layer image is greater than or equal to the aforementioned interval height, in order to ensure that the insertion of the compensation layer image does not affect the printing effect of the layer image, the region composed of all pixels of all layer images within the current interval height can be determined based on the depth map. Here, the aforementioned current interval height refers to the height range between the layer image and the most recently inserted compensation layer image; the aforementioned previous compensation layer image refers to the most recently inserted compensation layer image; and all pixels of all layer images within the aforementioned interval height can be a set of three-dimensional pixels.

[0182] Finally, the corresponding pixels in the above-mentioned area image are filled with preset pixel values ​​to obtain the second compensation layer image corresponding to this layered image. Optionally, the second compensation layer image can be a white ink image, in which case the preset pixel values ​​are the pixel values ​​corresponding to white.

[0183] As another optional implementation, when the above-mentioned compensation layer image includes a first compensation layer image and a second compensation layer image, when obtaining the compensation layer image corresponding to at least one layer image in the layered image, a preset interval height between two adjacent compensation layer images can be obtained.

[0184] Subsequently, if the difference between the height value of any layer image and the height value of the previous compensation layer image is greater than or equal to the aforementioned interval height, to ensure that the insertion of the compensation layer image does not affect the printing effect of the layer image, the region composed of all pixels of all layer images within the current interval height can be determined based on the depth map. Finally, the pixel values ​​corresponding to each pixel position in the aforementioned region map can be extracted from the image to be printed, and the corresponding pixels in the aforementioned region map can be filled according to the aforementioned pixel values ​​and preset pixel values, respectively, to obtain the first compensation layer image and the second compensation layer image corresponding to the layer image.

[0185] Continuing with the examples shown in Figures 4 and 5, refer to Figure 8, which provides example images of a first compensation layer image and a second compensation layer image according to an embodiment of this application. Figure 8A is an example image of a first compensation layer image according to an embodiment of this application, which can be a color ink image corresponding to a region image. Figure 8B is an example image of a second compensation layer image according to an embodiment of this application, which can be a white ink image corresponding to a region image.

[0186] Step 702: Insert the above compensation layer image into the above layered image set to obtain a new layered image set.

[0187] Step 703: Based on the above new layered image set, print the 3D printed part.

[0188] The following provides a unified explanation of steps 702 and 703:

[0189] The aforementioned new layered image set refers to the new layered image set obtained after inserting the acquired compensation layer images into the layered image set, which contains multiple compensation layer images and layered images.

[0190] In this embodiment of the application, after obtaining at least one compensation layer image corresponding to a layered image in the layered image set, the compensation layer image can be inserted into the layered image set to obtain a new layered image set, and the above-mentioned stereoscopic printed part can be printed according to the new layered image set.

[0191] As an optional implementation, in order to improve the surface quality in the layered images, the execution subject of this application embodiment can insert a determined compensation layer image at the position of the corresponding layered image, thereby inserting a compensation layer image at a preset interval height. This allows the compensation layer image to cover the surface texture accumulated in the layered images, thereby improving the surface quality of the 3D printed part and enhancing the printing effect.

[0192] The technical solution provided in this application involves obtaining a compensation layer image corresponding to at least one layered image in a layered image set. The compensation layer image includes a first compensation layer image and a second compensation layer image, which correspond to different color sets. This compensation layer image is then inserted into the layered image set to obtain a new layered image. Based on this new layered image set, a 3D printed part is obtained. This technical solution, by determining at least one compensation layer image corresponding to the layered image set and inserting it into the set, allows the compensation layer image to cover the surface texture of the layered image during printing, improving the inkjet printing effect. This achieves improved surface quality of the layered image during layered printing, thereby enhancing the inkjet printing effect.

[0193] In one embodiment, after obtaining the set of layered images corresponding to the image to be printed, the executing entity of this application can determine the color layered image corresponding to each layered image in the set of layered images through the process shown in FIG3, thereby obtaining a set of color layered images. Then, the set of color layered images can be used as a new set of layered images, and the process shown in FIG7 can be executed to determine the new set of color layered images corresponding to the new set of color layered images. Based on the new set of color layered images, a stereoscopic printed part can be printed.

[0194] In another embodiment, after obtaining the set of layered images corresponding to the image to be printed, the executing entity of this application embodiment can determine the new set of layered images after the compensation layer image is inserted into the set of layered images through the process shown in FIG7. Then, a stereoscopic print can be obtained through the process shown in FIG3 or FIG6.

[0195] Referring to Figure 9, a flowchart of another embodiment of the inkjet printing method provided in this application is shown. The flowchart in Figure 9, based on the flowchart in Figure 1, describes specifically how to obtain the set of layered images corresponding to the image to be printed. As shown in Figure 9, this process may include the following steps:

[0196] Step 901: Determine the grayscale value range corresponding to the image to be printed based on the grayscale information in the depth map.

[0197] Step 902: Divide the grayscale value range according to the target number of printing layers to obtain the reference grayscale value corresponding to each printing layer.

[0198] The following provides a unified explanation of steps 901 and 902:

[0199] The aforementioned depth map refers to the depth map corresponding to the image to be printed. This depth map may include the grayscale information of the image to be printed. This grayscale information is used to reflect the distance information of each pixel in the scene corresponding to the image to be printed to the camera, and it can represent the height information of each pixel in the image to be printed.

[0200] The grayscale value range mentioned above refers to the range of grayscale values ​​represented by the maximum and minimum grayscale values ​​in the depth map.

[0201] The target number of printing layers mentioned above refers to the target number of printing layers of the 3D printed part obtained in the process shown in Figure 1.

[0202] The aforementioned reference grayscale value refers to the reference value of the grayscale value corresponding to each layer of the image to be printed when slicing the image according to grayscale information. It can be the minimum grayscale value in that layer of the image.

[0203] In one embodiment, after obtaining the depth map corresponding to the image to be printed, the executing entity of this application embodiment can determine the grayscale value range corresponding to the image to be printed based on the grayscale information in the depth map.

[0204] As an optional implementation, the execution entity of this application embodiment can determine the maximum grayscale value and the minimum grayscale value corresponding to the image to be printed from the above grayscale information, and determine the range composed of the minimum grayscale value and the maximum grayscale value as the grayscale value range.

[0205] Based on this, the execution entity of this application embodiment can divide the above grayscale value range according to the target number of printing layers to obtain the reference grayscale value corresponding to each printing layer.

[0206] As an optional implementation, the grayscale value range can be divided into averages according to the target number of printing layers to obtain the reference grayscale value corresponding to each printing layer.

[0207] Step 903: For each printed layer, extract the regions with gray values ​​greater than the above reference gray values ​​from the depth map to obtain the corresponding layered images for each printed layer.

[0208] Step 904: After determining that all the printed layers have their corresponding layer images, arrange all the obtained layer images in a preset order according to the grayscale value of each layer image to obtain the above layer image set.

[0209] The following provides a unified explanation of steps 903 and 904:

[0210] In this embodiment, since the purpose of slicing the image to be printed is to print the image layer by layer according to the height information of the image to be printed, as the number of layers increases, the number of pixels to be printed gradually decreases. Therefore, the execution subject of this embodiment can, for each printing layer, use the reference gray value corresponding to the printing layer as the minimum gray value, and extract the area with a gray value greater than the above reference gray value from the depth map to obtain the layered image corresponding to each printing layer.

[0211] After obtaining all the layered images corresponding to the printed layers, the obtained layered images can be arranged in a preset order according to the grayscale value of each layered image to obtain the above-mentioned set of layered images.

[0212] As an optional implementation, the obtained layered images can be arranged in descending order of grayscale values ​​to obtain a set of layered images.

[0213] As an alternative implementation, the resulting layered images can be arranged in ascending order of grayscale values ​​to obtain a set of layered images.

[0214] The technical solution provided in this application determines the grayscale value range corresponding to the image to be printed based on the grayscale information in the depth map. The grayscale value range is then divided according to the target number of printing layers to obtain a reference grayscale value for each printing layer. For each printing layer, regions with grayscale values ​​greater than the reference grayscale values ​​are extracted from the depth map to obtain the corresponding layered images for each printing layer. After obtaining all the layered images corresponding to each printing layer, all the obtained layered images are arranged in a preset order according to the grayscale value of each layered image to obtain the aforementioned layered image set. This technical solution, by obtaining the grayscale value range in the depth map of the image to be printed, dividing the grayscale value range into multiple reference grayscale values ​​according to the target number of printing layers of the 3D printed part corresponding to the image to be printed, and slicing the image to be printed into a layered image set based on the reference grayscale values, can generate the layered image set of the image to be printed without determining the 3D model of the image to be printed, avoiding the process of obtaining the 3D model of the image to be printed, simplifying the printing process of layered inkjet printing of the image to be printed, and improving printing efficiency.

[0215] Referring to Figure 10, this is a block diagram of an embodiment of an inkjet printing apparatus provided in this application. As one embodiment, this apparatus can be used to print an image to be printed as a stereoscopic print. As shown in Figure 10, the apparatus may include:

[0216] The first acquisition module 1001 is used to acquire a depth map of the image to be printed; wherein, the depth map includes grayscale information;

[0217] The second acquisition module 1002 is used to acquire the target number of printing layers of the 3D printed part to be obtained;

[0218] The third acquisition module 1003 is used to acquire a layered image set based on the grayscale information in the depth map and the target printing layer number; wherein, the layered image set includes multiple layered images arranged in a preset order;

[0219] The printing module 1004 is used to print the stereoscopic printed part based on the layered image set.

[0220] Figure 11 shows a schematic diagram of an inkjet printer according to an embodiment of this application. It includes a processor 1101, a communication interface 1102, a memory 1103, a communication bus 1104, and a printhead 1105. The processor 1101, communication interface 1102, and memory 1103 communicate with each other via the communication bus 1104.

[0221] Memory 1103 is used to store computer programs;

[0222] Print head 1105 is used to inkjet print images into 3D printed parts.

[0223] In one embodiment of this application, the processor 1101, when executing a program stored in the memory 1103, implements the inkjet printing method provided in any of the foregoing method embodiments, including:

[0224] Obtain the depth map of the image to be printed; wherein the depth map includes grayscale information;

[0225] Obtain the target number of printing layers for the desired 3D printed part;

[0226] Based on the grayscale information in the depth map and the target number of printing layers, a layered image set is obtained; wherein, the layered image set includes multiple layered images arranged in a preset order;

[0227] Based on the layered image set, the 3D printed part is obtained.

[0228] This application also provides a storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the inkjet printing method provided in any of the foregoing method embodiments.

[0229] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple grid units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0230] In a specific implementation, this application also provides a computer storage medium, wherein the computer storage medium may store a program, and the program, when executed, may include some or all of the steps in the foregoing embodiments. The storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0231] Those skilled in the art will clearly understand that the techniques in the embodiments of this application can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application or some parts of the embodiments.

[0232] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, for the embodiments of ..., since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.

[0233] The embodiments described above do not constitute a limitation on the scope of protection of this application.

Claims

1. An inkjet printing method for printing a picture to be printed as a three-dimensional printed piece, characterized by, The method includes: Obtain the depth map of the image to be printed; wherein the depth map includes grayscale information; Obtain the target number of printing layers for the desired 3D printed part; Based on the grayscale information in the depth map and the target number of printing layers, a layered image set is obtained; wherein, the layered image set includes multiple layered images arranged in a preset order; Based on the layered image set, the 3D printed part is obtained.

2. The method of claim 1, wherein, The process of printing the 3D printed part based on the layered image set includes: Obtain the edge color image corresponding to each of the layered images, and digitally overlay each edge color image with its corresponding layered image to obtain the color layered image corresponding to each of the layered images. Based on all the obtained color layered images, the stereoscopic print is obtained by printing.

3. The method of claim 1, wherein, The process of printing the 3D printed part based on the layered image set includes: For each layered image in the layered image set, its respective color layered image is obtained in a preset order, and after obtaining a color layered image, the color layered image is printed immediately until the last color layered image is printed. The color layered image is obtained by digitally overlaying the layered image and the edge color map of the obtained layered image.

4. The method according to claim 2 or 3, characterized in that, Obtaining the edge color map corresponding to the layered image includes: Extract the printable color image of the corresponding region of the layered image from the image to be printed; the printable color image includes the color information of the corresponding region of the layered image. The printed color image is subjected to erosion processing to obtain a mask image, wherein the area included in the mask image is smaller than the area included in the printed color image; The area corresponding to the mask image is deleted from the printed color image to obtain the edge color image corresponding to the layered image.

5. The method according to claim 2 or 3, characterized in that, Obtaining the edge color map corresponding to the layered image includes: Extract the color image of the corresponding region of the layered image from the image to be printed; The non-edge areas in the color image are set to a preset color to obtain the edge color image corresponding to the layered image; the preset color is either transparent or white.

6. The method of claim 1, wherein, The process of printing the 3D printed part based on the layered image set includes: Obtain a compensation layer image corresponding to at least one of the layered images in the layered image set, wherein the compensation layer image includes a first compensation layer image and a second compensation layer image, and the first compensation layer image and the second compensation layer image correspond to different color sets; The compensation layer image is inserted into the layered image set to obtain a new layered image set; The 3D printed part is obtained by printing based on the new layered image set.

7. The method of claim 6, wherein, When the compensation layer image includes a first compensation layer image, obtaining the compensation layer image corresponding to at least one of the layered images in the layered image set includes: Obtain the preset height interval between two adjacent compensation layer images; If the difference between the height value of any layered image in the layered image set and the height value of the previous compensation layer image is greater than or equal to the interval height, a region map consisting of all pixels of all layered images within the current interval height is determined according to the depth map. Extract the pixel value corresponding to the position of each pixel in the region map from the image to be printed; The corresponding pixel in the region image is filled according to each pixel value to obtain the first compensation layer image corresponding to the layered image.

8. The method of claim 6, wherein, When the compensation layer image includes a second compensation layer image, obtaining the compensation layer image corresponding to at least one of the layered images in the layered image set includes: Obtain the preset height interval between two adjacent compensation layer images; If the difference between the height value of any layered image in the layered image set and the height value of the previous compensation layer image is greater than or equal to the interval height, a region map composed of all pixels of all layered images within the current interval height is determined according to the depth map. The second compensation layer image corresponding to the layered image is obtained by filling all the pixels in the region image with preset pixel values.

9. The method of claim 6, wherein, When the compensation layer image includes a first compensation layer image and a second compensation layer image, obtaining the compensation layer image corresponding to at least one of the layered images in the layered image set includes: Obtain the preset height interval between two adjacent compensation layer images; If the difference between the height value of any layered image in the layered image set and the height value of the previous compensation layer image is greater than or equal to the interval height, a region map consisting of all pixels of all layered images within the current interval height is determined according to the depth map. Extract the pixel value corresponding to the position of each pixel in the region map from the image to be printed; The corresponding pixel points in the region image are filled according to each pixel value and a preset pixel value to obtain the first compensation layer image and the second compensation layer image corresponding to the layered image.

10. The method of claim 6, wherein, The first compensation layer image is a color ink image, and the second compensation layer image is a white ink image.

11. The method of claim 1, wherein, The step of obtaining a set of layered images based on the grayscale information in the depth map and the target number of printing layers includes: Based on the grayscale information in the depth map, determine the grayscale value range corresponding to the image to be printed; The grayscale value range is divided according to the target number of printing layers to obtain the reference grayscale value corresponding to each printing layer; For each of the printed layers, regions with gray values ​​greater than the reference gray value are extracted from the depth map to obtain the layered image corresponding to each of the printed layers. After obtaining the layered images corresponding to each of the printed layers, the obtained layered images are arranged in a preset order according to the grayscale value of each layered image to obtain the layered image set.

12. The method of claim 11, wherein, The step of dividing the grayscale value range according to the target number of printing layers to obtain a reference grayscale value corresponding to each printing layer includes: The grayscale value range is divided into averages according to the target number of printing layers to obtain a reference grayscale value for each printing layer.

13. The method of claim 11, wherein, The step of arranging all the layered images in a preset order according to the grayscale value of each layered image to obtain the layered image set includes: All the obtained layered images are arranged in descending order of grayscale value to obtain the layered image set.

14. The method of claim 11, wherein, The step of arranging all the layered images in a preset order according to the grayscale value of each layered image to obtain the layered image set includes: All the obtained layered images are arranged in ascending order of grayscale value to obtain the layered image set.

15. The method of claim 1, wherein, The process of obtaining the target number of printing layers for the desired 3D printed part includes: Obtain the preset total printing height corresponding to the image to be printed, wherein the total printing height represents the total height value of ink stacking when the image to be printed is inkjet printed; Determine the height of each layer corresponding to the layered image; Divide the total printing height by the single-layer height to obtain the target number of printing layers for the 3D printed part.

16. The method of claim 1, wherein, The process of obtaining the target number of printing layers for the desired 3D printed part includes: Retrieve the user-defined target number of printing layers from the preset storage medium.

17. The method of claim 1, wherein, In the layered image set, each layered image is a color image containing color information of the corresponding region.

18. The method of claim 1, wherein, In the layered image set, each layered image is a grayscale image, and the edges of the grayscale image include color information of the corresponding region edges.

19. An inkjet printing apparatus for printing a picture to be printed as a three-dimensional printed piece, characterized by, The device includes: The first acquisition module is used to acquire a depth map of the image to be printed; wherein, the depth map includes grayscale information; The second acquisition module is used to acquire the target number of printing layers for the desired 3D printed part; The third acquisition module is used to acquire a layered image set based on the grayscale information in the depth map and the target printing layer number; wherein, the layered image set includes multiple layered images arranged in a preset order; A printing module is used to print the 3D printed part based on the layered image set.

20. An inkjet printer characterized by comprising: include: Print head, processor, and memory; The print head is used to inkjet print the image to be printed into a 3D printed part; The processor is used to execute the inkjet printing program stored in the memory to implement the inkjet printing method according to any one of claims 1 to 18.