Method and apparatus for generating 3D printing file, and computer-readable storage medium

By pixelating and color editing on the target image, three-dimensional model data is generated, which solves the complex problem of personalized model generation in existing 3D printing technology, and realizes user-friendly personalized design and rich functions.

WO2025153109A1PCT designated stage expired Publication Date: 2025-07-24SHENZHEN TUOZHU TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/080496
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-01-16
Filing Date
2025-03-04
Publication Date
2025-07-24

AI Technical Summary

Technical Problem

The existing 3D printing technology has complex generation of personalized models and high user threshold, making it difficult to realize personalized design through simple interaction.

Method used

By acquiring the target image for pixelation, displaying color editing controls for color editing, generating three-dimensional model data to be printed, including data for printing the model and chassis model corresponding to each pixel unit. The chassis model is used to install the model corresponding to each pixel unit, and the colors are consistent.

Benefits of technology

It simplifies the generation process of 3D printing models, lowers the threshold for user use, and realizes the simple interaction, rich functions and wide applicability of personalized design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025080496_24072025_PF_FP_ABST
    Figure CN2025080496_24072025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the embodiments of the present application are a method and apparatus for generating a 3D printing file, and a computer-readable storage medium. The method comprises: acquiring a target image, and performing pixelation processing on the target image, so as to obtain a target pixelated image of the target image, wherein the target pixelated image comprises a plurality of pixel units, and each pixel unit comprises at least two pixel points with consistent colors; displaying a color editing control, and in response to a trigger operation for the color editing control, performing color editing on at least one pixel unit comprised in the target pixelated image, so as to generate a pixelated image to be printed of the target image; and on the basis of the pixelated image to be printed, generating three-dimensional model data to be printed. Therefore, a personalized 3D printing model can be generated from favorite photos, such that the interaction is simple, the functions are rich, and the usage threshold is lowered for users.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device and computer-readable storage medium for generating 3D printing files

[0001] This application claims priority to a Chinese patent application filed with the Patent Office of China on January 16, 2024, with application number 202410065209X and application name “Method, device and computer-readable storage medium for generating 3D printing files”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] The present application relates to the technical field of 3D printers, and in particular to a method and device for generating a 3D printing file and a computer-readable storage medium. Background Art

[0003] A three-dimensional (3D) printer is a new type of manufacturing and processing technology, known as a rapid prototyping machine. Based on a digital model file, it uses adhesive materials such as special wax, powdered metal, or plastic to construct an object layer by layer. 3D printing technology is used in jewelry, architecture, engineering, automotive, aerospace, dentistry, and other fields.

[0004] 3D printing can be used to print some personalized models that are not suitable for mass production, but personalized models often require users to model them themselves, which is more complicated for users and has a certain usage threshold. Summary of the Invention

[0005] The embodiments of the present application provide a method, device, and computer-readable storage medium for generating 3D printing files, which can generate personalized 3D printing models by using favorite photos. The interaction is simple and the functions are rich, which lowers the user's usage threshold.

[0006] In a first aspect, an embodiment of the present application provides a method for generating a 3D printing file, comprising:

[0007] Acquire a target image, and perform pixelation processing on the target image to obtain a target pixelated image of the target image; the target pixelated image includes a plurality of pixel units, wherein each pixel unit includes at least two pixel points with the same color;

[0008] Displaying a color editing control, and in response to a triggering operation on the color editing control, performing color editing on at least one pixel unit included in the target pixelated image to generate a pixelated image of the target image to be printed;

[0009] Based on the pixelated image to be printed, three-dimensional model data to be printed is generated. The three-dimensional model data to be printed includes data for printing the model corresponding to each pixel unit and data for printing the chassis model. The chassis model is used to install the model corresponding to each pixel unit. The color of the model corresponding to each pixel unit is consistent with the color of each pixel unit.

[0010] In a second aspect, the application embodiment provides a 3D printer generation device, comprising:

[0011] a pixelation processing module, configured to acquire a target image and perform pixelation processing on the target image to obtain a target pixelated image of the target image; the target pixelated image includes a plurality of pixel units, wherein each pixel unit includes at least two pixels of the same color;

[0012] a color editing module, configured to display a color editing control and, in response to a triggering operation on the color editing control, perform color editing on at least one pixel unit included in the target pixelated image to generate a pixelated image of the target image to be printed;

[0013] A data generation module is used to generate three-dimensional model data to be printed based on the pixelated image to be printed. The three-dimensional model data to be printed includes data for printing the model corresponding to each pixel unit and data for printing the chassis model. The chassis model is used to install the model corresponding to each pixel unit. The color of the model corresponding to each pixel unit is consistent with the color of each pixel unit.

[0014] Among them, the model corresponding to each of the above pixel units is used to be installed in a specified position of the chassis model, and the specified position is consistent with the position of each pixel unit in the pixelated image to be printed, so that the installed model presents the pixelated image to be printed.

[0015] The above device is executed by an electronic device, and the above device also includes:

[0016] a printing module, configured to, in response to a printing operation for the three-dimensional model data, send the three-dimensional model data to a 3D printing device communicatively connected to the electronic device, so that the 3D printing device prints the model corresponding to each pixel unit and the chassis model; or

[0017] The printing module is further used to send the three-dimensional model data to a cloud server that is communicatively connected to the electronic device in response to a printing operation for the three-dimensional model data, so that the 3D printing device prints the model corresponding to each pixel unit and the chassis model through the cloud server.

[0018] The pixel processing module includes:

[0019] a display unit, configured to display at least two sub-chassis model resolution options, wherein the chassis model is composed of one or more sub-chassis models, the sub-chassis models being used for single-disc printing by a 3D printing device, and the resolution of any sub-chassis model being used to indicate the number of pixel units included in the sub-chassis model;

[0020] a resolution selection unit, configured to, in response to a selection operation on the at least two sub-chassis model resolution options, display at least two pixelated image resolution options corresponding to the selected sub-chassis model resolution, wherein any pixelated image resolution is used to indicate the number of pixel units included in any pixelated image, and the any pixelated image resolution is an integer multiple of the selected sub-chassis model resolution;

[0021] The pixelation processing unit is configured to, in response to a selection operation on the at least two pixelation image resolution options, perform pixelation processing on the target image according to the selected pixelation image resolution to obtain a target pixelated image of the target image.

[0022] Wherein, the display unit is used to obtain the original image;

[0023] The display unit is also used to display image function editing controls;

[0024] The display unit is further configured to edit the original image to obtain the target image in response to a triggering operation on the image function editing control;

[0025] The image function editing control includes at least one of a background removal editing control, a zoom editing control, a crop editing control, and a rotation editing control.

[0026] The color editing control includes at least two color quantity options, and the at least two color quantity options are determined according to the target image or the target pixelated image;

[0027] The color editing module is configured to generate, in response to a selection operation for the at least two color quantity options, a first target color image corresponding to the selected color quantity option to obtain the pixelated image to be printed, wherein the target color image has the same resolution as the target pixelated image, and the number of colors per pixel unit of the target color image is equal to the number indicated by the selected color quantity option.

[0028] Wherein, the color editing control further includes a color modification control corresponding to the selected color quantity option, and the color modification control includes at least two color options in the first target color image;

[0029] The above-mentioned color editing module is also used to respond to the modification operation of any color option among the at least two color options, and modify the color of the pixel unit corresponding to any color option in the target color image to the color corresponding to the modified color option, thereby obtaining a second target color image to obtain a pixelated image to be printed.

[0030] There are gaps between pixel units in the target pixelated image, and the color editing control further includes at least two chassis color options;

[0031] The color editing module is further configured to modify the color of the gaps in the target pixelated image to the color corresponding to the selected chassis color option in response to a selection operation for at least two chassis color options, thereby obtaining a third target color image to obtain a pixelated image to be printed.

[0032] Wherein, the color editing control includes a coloring control;

[0033] The above-mentioned color editing module is used to modify the color of the pixel unit indicated by the color trigger operation in the target pixelated image to the color indicated by the color trigger operation in response to the color trigger operation on the color control, thereby obtaining a third target color image to obtain the pixelated image to be printed.

[0034] The data generation module is used to display at least two 3D printing device models;

[0035] The above-mentioned data generation module is also used to generate three-dimensional model data to be printed based on the pixelated image to be printed in response to the selection operation of at least two 3D printing device models. The three-dimensional model data to be printed includes a model corresponding to each pixel unit determined according to the selected 3D printing device model, and the staging information of the chassis model.

[0036] The three-dimensional model data to be printed also includes connector data or pickup data;

[0037] The piece remover data includes data for printing a piece remover model for removing a model corresponding to each pixel unit from the chassis model;

[0038] The chassis model is composed of one or more sub-chassis models, and the connector data includes data for printing a connector model connecting the sub-chassis models.

[0039] The installation position for installing the model corresponding to each pixel unit in the printed chassis model has an installation mark, and the installation positions of the models corresponding to pixel units of different colors have different installation marks.

[0040] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded by a processor to execute the method provided in the first aspect and any one of its possible implementations.

[0041] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes computer instructions, which are stored in a computer-readable storage medium and are suitable for being read and executed by a processor, so that a computer device with a processor executes the method provided in the first aspect of the embodiment of the present application and any one of its possible implementations.

[0042] In this application, you can generate personalized 3D printing models by using your favorite photos. The interaction is simple and the functions are rich. It can meet the needs of various personalized designs, and the interaction method is friendly. The above technical solution realizes the generation of three-dimensional models through two-dimensional image operations, simplifies the operation steps, lowers the user's usage threshold, and has the advantage of wide applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] FIG1 is a schematic diagram of a network architecture provided in an embodiment of the present application;

[0044] FIG2 is a flow chart of a method for generating a 3D printing file according to an embodiment of the present application;

[0045] FIG3 is a schematic diagram of a scenario of a method for generating a 3D printing file provided in an embodiment of the present application;

[0046] FIG4 is a schematic diagram of another scenario of the method for generating a 3D printing file provided in an embodiment of the present application;

[0047] FIG5 is a schematic diagram of another scenario of the method for generating a 3D printing file provided in an embodiment of the present application;

[0048] FIG6 is a schematic diagram of another scenario of the method for generating a 3D printing file provided in an embodiment of the present application;

[0049] FIG7 is a schematic diagram of another scenario of the method for generating a 3D printing file provided in an embodiment of the present application;

[0050] FIG8 is a schematic diagram of another scenario of the method for generating a 3D printing file provided in an embodiment of the present application;

[0051] FIG9 is a schematic structural diagram of a device for generating a 3D printing file provided in an embodiment of the present application;

[0052] FIG10 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application.

[0054] The term "user interface (UI)" in the following embodiments of the present application, referred to as interface, is a medium interface for interaction and information exchange between an application (APP) or an operating system (OS) and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content that the user can recognize. The commonly used form of interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, controls, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, etc. displayed on the display screen of an electronic device.

[0055] It is understood that the interfaces illustrated in the embodiments of the present application do not constitute a specific limitation on any control. In other embodiments of the present application, the control may include more or fewer controls than those illustrated in the embodiments of the present application, may increase or decrease some controls, or combine or split some controls, or arrange the controls differently.

[0056] The implementation of the technical solution of the present application is further described in detail below with reference to the accompanying drawings.

[0057] The 3D printing process typically involves: 1) acquiring a 3D model; 2) slicing the 3D model using slicing software; and 3) sending the slicing results to a 3D printer, which then prints the 3D model based on the slicing results. The slicing software typically runs on a terminal connected to the printer, such as a PC or mobile phone. The slicing software can also run on a 3D printer with a controllable screen. The terminal can also include a 3D printer with a controllable screen. Specifically, it can include a 3D printer with a controllable screen running the slicing software.

[0058] Slicing software is software that generates control code (e.g., GCode) for the processor of a 3D printing device based on a digital 3D model. This software provides a graphical user interface (GUI) that allows users to perform operations such as importing files in formats such as STL, DAE, or OBJ to load the 3D model into the slicing software, setting the printing parameters for the 3D model, and selecting or adjusting layout information that indicates the position and orientation of the 3D model on the heated bed.

[0059] The slicing software can perform a slicing operation on the loaded three-dimensional model to generate slicing data (for example, the number of slices, the height of each slice layer, etc.), and then generate a control code for the printing path of each slice layer based on the slicing data as a slicing result. The slicing result is used to control the print head of the 3D printing device to move along the printing path for printing. The control code for each layer of slicing typically includes GCODE. The control code for each layer of slicing is downloaded to the 3D printing device for execution by at least one processor. For this purpose, the 3D printing device may also include at least one memory (not shown) for storing programs and / or data.

[0060] The slicing operation of the slicing software on a 3D model (usually a file in stl or 3mf format) includes slicing the 3D model into multiple layers according to the set slicing requirements, determining the printing path of each layer of slices, and generating a control code including the printing path of each layer. Before performing the slicing operation, the slicing software can also perform some auxiliary printing operations, which may include but are not limited to: determining the printing direction of the 3D model, determining the placement of the 3D model, determining whether the 3D model requires support and the position of the support, determining the slice layer height, determining at least one of the flushing amount when switching between different material lines, etc. The above auxiliary printing operations can be automatically determined by the slicing software, can be determined based on preset parameters, or can be specified by the 3D printing user by operating the slicing software.

[0061] Please refer to Figure 1, which is a structural diagram of a network architecture provided by an embodiment of the present application. As shown in Figure 1, the system architecture may include a cloud server 100 and a terminal cluster, and the terminal cluster may include: terminal devices 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n and other terminal devices. Among them, the above-mentioned cloud server 100 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud databases, cloud services, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0062] Among them, the terminal devices (including terminal devices 200a, terminal devices 200b, terminal devices 200c, ..., terminal devices 200n) can be smart phones, tablet computers, laptop computers, desktop computers, PDAs, wearable devices (such as smart watches, smart bracelets, etc.), smart TVs, smart cars, and other smart terminals with image data processing functions. The terminal devices can also be 3D printing devices with data processing functions, communication functions, and human-computer interaction functions. The cloud server 100 can establish a communication connection with each terminal device in the terminal cluster, and the terminal devices in the terminal cluster can also establish a communication connection with each other. In other words, the cloud server 100 can establish a communication connection with each terminal device in the terminal device 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n. For example, a communication connection can be established between terminal device 200a and cloud server 100. A communication connection can be established between terminal device 200a and terminal device 200b, and a communication connection can also be established between terminal device 200a and terminal device 200c.

[0063] Among them, each terminal device in the terminal cluster can establish a communication connection with the 3D printing device, for example, a communication connection can be established between the 3D printing device and the terminal device 200a. Specifically, a communication connection can also be established between the 3D printing device and the terminal device 200a through the cloud server 100. The 3D printing device can also establish a communication connection with the cloud server 100. It should be understood that the above-mentioned 3D printing device can be a printer device with a communication function, or it can include a 3D printing device and a terminal device that establishes a communication connection with the 3D printing device, and this application does not limit this. Among them, the above-mentioned communication connection does not limit the connection method, and can be directly or indirectly connected through a wired communication method, or can be directly or indirectly connected through a wireless communication method, etc., which can be determined according to the actual application scenario, and this application does not limit this.

[0064] It should be understood that each terminal device in the terminal cluster shown in FIG1 can be installed with a target application. When the target application is running in each terminal device, it can respectively exchange data with the cloud server 100 shown in FIG1 , and can also exchange data with the 3D printing device. When the terminal device and the cloud server 100 exchange data, the terminal device can send a request to obtain the target image to the cloud server 100. The cloud server 100 can return the target image to the terminal device based on the acquisition request. The cloud server 100 can also store the print data of the pixelated image to be printed (the three-dimensional model data to be printed) corresponding to the target image. When the terminal device and the 3D printing device are interacting with each other, the terminal device can send the 3D model data to be printed to the 3D printing device. It should be understood by those skilled in the art that the 3D model data in this application can be unsliced ​​model data or sliced ​​model data, which is not limited here. Specifically, the terminal device can slice the 3D model data and send the sliced ​​3D model data to the 3D printing device, or first send the 3D model data to the cloud server 100 for slicing, and the cloud server 100 sends the sliced ​​3D model data to the 3D printing device, or directly or indirectly send the sliced ​​3D model data to the 3D printing device, and the 3D printing device slices it by itself. The 3D printing device can receive the 3D model data (which can be sliced) and construct a 3D model based on the 3D model data. When the 3D printing device and the cloud server 100 are interacting with each other, the 3D printing device can send a print request to the cloud server 100 through the terminal device, and the cloud server 100 can also control the 3D printing device to start working through the terminal device.

[0065] Specifically, the target applications may include: image processing clients, smart home appliance clients (such as printing clients), entertainment clients (for example, game clients), multimedia clients (for example, video clients), social clients, and information clients (for example, news clients), and other application clients that have the function of displaying data information such as text, images, audio, and video. The application client can be an independent client or an embedded sub-client integrated into a client (for example, an instant messaging client, a social client, a video client, etc.), which is not limited here. For the convenience of description, this application will take the image processing client as an example of the target application for detailed introduction.

[0066] In the present application, the acquired target image can be pixelated to obtain a target pixelated image of the target image. Then, the color of at least one pixel unit included in the target pixelated image can be edited through the color editing control to generate a pixelated image to be printed of the target image. It should be understood that the color of at least one pixel unit included in the target pixelated image can be customized through the color editing control to obtain pixelated images to be printed with more color types to meet more customized needs. Furthermore, three-dimensional model data to be printed can be generated based on the pixelated image to be printed. The three-dimensional model data to be printed includes data for printing the model corresponding to each pixel unit, and data for printing the chassis model. The chassis model is used to install the model corresponding to each pixel unit, and the color of the model corresponding to each pixel unit is consistent with the color of each pixel unit. It can be seen that the pixelated image to be printed obtained based on any target image can be used to make customized jigsaw puzzle building block toys through 3D printing to enrich the 3D printing scene. In addition, the three-dimensional model data to be printed can be sent to the target printer, so that the target printer can print a 3D model based on the three-dimensional model data to be printed, and use a pixelated image model obtained based on any picture to make a customized jigsaw puzzle building block toy through 3D printing, enriching the 3D printing scene.

[0067] Please refer to Figure 2, which is a flow chart of a method for generating a 3D printing file provided in an embodiment of the present application. The method for generating a 3D printing file can be executed by an electronic device, and the electronic device may include a terminal device or a cloud server as shown in Figure 1, or a collection of a terminal device and a cloud server. For ease of understanding, the embodiment of the present application is described using a terminal device as an example, that is, the terminal device 200b in Figure 1 is described as an example. The embodiment of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, software development, etc. In the method for generating a 3D printing file shown in Figure 2, each step of the method for generating a 3D printing file can be executed by the terminal device 200b in Figure 1 above. As shown in Figure 2, the data processing method for the 3D printing file can at least include the following steps S101-S103.

[0068] Step S101 , acquiring a target image, and performing pixelation processing on the target image to obtain a target pixelated image of the target image; the target pixelated image includes a plurality of pixel units, wherein each pixel unit includes at least two pixel points of the same color.

[0069] In some feasible implementations, the terminal device 200b may obtain an original image and display an image function editing control. Furthermore, the terminal device 200b may edit the original image to obtain a target image in response to a triggering operation on the image function editing control. The image function editing control may include at least one of a background removal editing control, a zoom editing control, a cropping editing control, and a rotation editing control.

[0070] Specifically, please refer to Figure 3, which is a scene diagram of the method for generating a 3D printing file provided in an embodiment of the present application. As shown in Figure 3, when the terminal operation object (i.e., the terminal user) logs in to the image processing client loaded on the terminal device 200b, the terminal device 200b can display a terminal operation interface as shown in interface 300a1. The terminal operation object can click the "Select Image" control to obtain the original image, or drag the original image to the selection area shown in interface 300a1 to obtain the original image, or select the original image from the target file to obtain the original image. The terminal device 200b can respond to the image import operation to obtain the original image as shown in interface 300a2. It should be understood that the specific steps for the terminal device 200b to obtain the original image can be determined according to the actual application scenario, and this application does not limit it here.

[0071] Furthermore, when the terminal operator clicks the "Confirm" control shown in interface 300a2, the terminal device 200b can display the image pre-processing page shown in interface 300a3. It should be understood that, as shown in interface 300a2, when the terminal operator clicks the "Select another image" control, the terminal device 200b can respond to the triggering operation of the "Select another image" control to select another original image.

[0072] As shown in interface 300a3, terminal device 200b may display at least two image function editing controls in the image pre-processing page. The image function editing controls may include a background removal editing control, a zoom editing control, a cropping editing control, and a rotation editing control, and the target image function editing control is at least one of the background removal editing control, the zoom editing control, the cropping editing control, and the rotation editing control.

[0073] It is understood that the controls illustrated in the embodiments of this application do not constitute specific limitations on the image function editing control. In other embodiments of this application, the image function editing control may include more or fewer controls than shown, may add or remove some controls, or combine or split some controls, or arrange the controls differently.

[0074] It should be understood that the present application embodiment does not limit the number and function of the image function editing controls included in the image pre-processing page, and the specific function can be determined according to the actual application scenario. For example, the image function editing control can be a brightness editing control for adjusting the brightness of the original image.

[0075] Furthermore, the terminal device 200b may edit the original image to obtain the target image in response to a triggering operation in the image function editing control.

[0076] Optionally, in some feasible implementations, the target image function editing control can be a background removal editing control. Please refer to Figure 4, which is a schematic diagram of another scenario of the method for generating a 3D print file provided in an embodiment of the present application. As shown in interface 301 of Figure 4, when the terminal operating object clicks the background removal editing control shown in interface 300a3, the terminal device 200b can respond to the triggering operation of the background removal editing control, determine the background area included in the original image, and remove the background area to obtain the target image.

[0077] Optionally, in some feasible implementations, the target image function editing control may be a zoom editing control. As shown in interface 302 of FIG. 4 , when the terminal operating subject clicks the zoom editing control shown in interface 300a3, the terminal device 200b may, in response to a triggering operation on the zoom editing control, resize the original image according to the target image ratio to obtain the target image. It should be understood that the target image ratio may be 1:1, 4:3, 9:16, etc., or the target image ratio may be a custom image ratio of the terminal operating subject, without limitation herein.

[0078] Optionally, in some feasible implementations, the target image function editing control can be a crop editing control. As shown in interface 303 of FIG. 4 , when the terminal operating subject clicks the crop editing control shown in interface 300a3, the terminal device 200b can respond to the triggering operation of the crop editing control by selecting a target area in the original image and cropping the area of ​​the original image other than the target area to obtain the target image. It should be understood that the terminal operating subject can customize the target area, and the terminal device 200b can display the target area selected by the terminal operating subject.

[0079] Exemplarily, the terminal device 200b can cut out the terminal operation object custom selection target area and use the image corresponding to the above target area as the target image, or the terminal device 200b can cut out the image corresponding to the area outside the target area and retain the image corresponding to the target area as the target image.

[0080] Optionally, in some feasible embodiments, the target image function editing control can be a rotation editing control. As shown in interface 304 of Figure 4, when the terminal operating subject clicks the rotation editing control shown in interface 300a3, the terminal device 200b can respond to the triggering operation of the rotation editing control and drag the original image to rotate to the target angle to obtain the target image. Specifically, when the terminal operating subject triggers the drag control 304a, the terminal operating subject can drag the original image at any angle to rotate the original image to the target angle. The terminal device 200b can display the motion trajectory of the terminal operating subject dragging the original image in real time, so that the terminal operating subject can select an appropriate angle.

[0081] Optionally, the terminal device 200b may further display convenient controls on the interface 304, such as a "rotate right 90°" control, a "rotate left 90°" control, a "flip vertically" control, and a "flip horizontally" control. The terminal device 200b may respond to the convenient controls displayed on the interface 304 to reposition the original image to the angle corresponding to the convenient control triggered by the terminal operation object.

[0082] Furthermore, the terminal device 200b may display at least two sub-chassis model resolution options, where a chassis model is composed of one or more sub-chassis models, each of which is used for single-disc printing by a 3D printing device, and the resolution of any sub-chassis model indicates the number of pixels included in the sub-chassis model.

[0083] Due to the maximum size limit of 3D printing equipment during printing, a larger pixelated image can be broken down into several sub-chassis models, which are then printed into a single disk by the 3D printing equipment, and then the several sub-chassis models are connected to obtain a complete 3D print file. Among them, the terminal operation object can determine the number of pixel units included in the sub-chassis model in response to the selection operation of the sub-chassis model resolution, so that each pixel unit is printed into a pixel block model (that is, the model corresponding to each pixel unit) by the 3D printing equipment. For example, if the sub-chassis model resolution is "24*24", it means that the number of pixel units contained in each sub-chassis model is "24*24", that is, each chassis model contains "24*24" pixel block models.

[0084] Specifically, referring to Figure 5 , which is a schematic diagram of another scenario of the method for generating a 3D print file provided in an embodiment of the present application, as shown in Figure 5 , after terminal device 200b obtains the target image, when the terminal operator clicks the "Confirm" control shown in interface 300a2 , terminal device 200b can display an image editing page shown in interface 400a1 , and display pixelation editing controls and color editing controls on the image editing page.

[0085] When the terminal operation object triggers the "pixelated editing" control shown in interface 400a1, the terminal device 200b can display interface 400a2 as shown in Figure 5. When the terminal operation object triggers the pixelated editing control shown in interface 400a1, the terminal device 200b can display interface 400a2 in response to the triggering operation for the pixelated editing control. In interface 400a2, the terminal device 200b can have at least two sub-chassis model resolution options, such as sub-chassis model resolution "16*16" and sub-chassis model resolution "24*24". It should be understood that the embodiment of the present application does not limit the number and size of sub-chassis model resolutions, which can be determined according to the actual application scenario.

[0086] For example, when the terminal operation object triggers the selection control 401a corresponding to the sub-chassis model resolution "24*24", the terminal device 200b can determine the sub-chassis model resolution of the target pixelated image as "24*24" in response to the triggering operation of the selection control 401a corresponding to the sub-chassis model resolution "24*24".

[0087] Optionally, in some feasible real-time methods, prompt information may be displayed in the interface 400a2 according to the printing size of the 3D printing device.

[0088] For example, if the sub-chassis model resolution of "24*24" is not selectable due to the printing size limitation of the 3D printing device, when the terminal operation object triggers the selection control 401a corresponding to the sub-chassis model resolution "24*24", the terminal device 200b can respond to the triggering operation of the selection control 401a corresponding to the sub-chassis model resolution "24*24" and display a prompt message such as "Due to the printer size limitation, this size is not selectable" in the interface 400a2.

[0089] Optionally, in some feasible real-time manners, the terminal device 200b may display at least two pixelated image resolution options corresponding to the selected sub-chassis model resolution in response to a selection operation for at least two sub-chassis model resolution options, where any pixelated image resolution is used to indicate the number of pixel units included in any pixelated image, and any pixelated image resolution is an integer multiple of the selected sub-chassis model resolution.

[0090] Specifically, after the terminal operator selects a sub-chassis model resolution, terminal device 200b can, in response to a triggering operation on selection control 401a corresponding to the sub-chassis model resolution "24*24," display the sub-chassis model resolution selected by the terminal operator, as shown in interface 400a2 as "Pixelated Image Resolution 24*24." "24*24" represents the sub-chassis model resolution selected by the terminal operator. It should be understood that if the terminal operator selected a sub-chassis model resolution of "16*16," the pixelated image resolution displayed on terminal device 200b would be "16*16," i.e., "Pixelated Image Resolution 16*16."

[0091] Optionally, in some feasible real-time manners, the terminal device 200b responds to the selection operation for at least two pixelated image resolution options and performs pixelation processing on the target image according to the selected pixelated image resolution to obtain a target pixelated image of the target image.

[0092] It should be understood that after selecting the sub-chassis model resolution in the terminal operation object, the pixelated image resolution of the target pixelated image can also be selected based on the sub-chassis model resolution. The pixelated image resolution can be the image resolution of the entire image, representing the number of pixel units included in any pixelated image. Any pixelated image resolution is an integer multiple of the selected sub-chassis model resolution. For example, if the sub-chassis model resolution is "24*24," the pixelated image resolution can be "24*24," "48*48," "72*72," or "94*94." If the pixelated image resolution is "48*48," this indicates that the pixelated image contains four sub-chassis models.

[0093] Specifically, when the terminal operation object triggers the resolution editing control shown in interface 400a2 of FIG. 5 , after selecting the sub-chassis model resolution, when the terminal operation object triggers control 401b in interface 400a2, the terminal device 200b may display an image resolution list as shown in interface 400a3. The image resolution list displays at least two pixelated image resolutions, selection controls corresponding to at least two pixelated image resolutions, and print times corresponding to at least two pixelated image resolutions. For example, if the pixelated image resolution is "24*24," the print time is approximately 0.9 hours.

[0094] For example, as shown in interface 400a4, when the terminal operation object triggers the selection control 401c corresponding to the sub-chassis model resolution "48*48", the terminal device 200b can determine the pixelated image resolution of the target pixelated image to "48*48" in response to the triggering operation on the selection control 401c. At this time, the target pixelated image is 4 sub-chassis models. In addition, the terminal device 200b can also display the pixelated image resolution as "48*48".

[0095] Furthermore, in response to a selection operation on at least two pixelated image resolution options, the terminal device 200b may perform pixelation processing on the target image according to the selected pixelated image resolution to obtain a target pixelated image of the target image.

[0096] Specifically, as shown in interface 400a5, when the terminal operation object triggers the "pixelation" control shown in interface 400a4, the terminal device 200b can respond to the triggering of the "pixelation" control and pixelate the target image according to the selected sub-chassis model resolution "24*24" and the pixelated image resolution "48*48" to obtain a target pixelated image in which the number of sub-chassis models is 4 and the number of pixel units included in the sub-chassis model number is "24*24".

[0097] Step S102 : displaying a color editing control, and in response to a triggering operation on the color editing control, performing color editing on at least one pixel unit included in the target pixelated image to generate a pixelated image of the target image to be printed.

[0098] In some feasible embodiments, the terminal device 200b can generate a first target color image corresponding to the selected color quantity option in response to a selection operation for at least two color quantity options to obtain a pixelated image to be printed, the target color image has the same resolution as the target pixelated image, and the number of colors in the pixel unit of the target color image is equal to the number indicated by the selected color quantity option.

[0099] Specifically, when the terminal operation object triggers the color editing control as shown in interface 400a5 of FIG. 6 , the terminal device 200b may display a color editing page as shown in interface 400a6 in response to the triggering operation on the color editing control.

[0100] The color editing control includes at least two color quantity options, and the at least two color quantity options are determined according to the target image or the target pixelated image.

[0101] For example, as shown in interface 400a6, when the terminal operation object triggers the "color quantity" control, the terminal device 200b can display color images with at least two color quantity options on the color editing page in response to the triggering operation on the "color quantity" control. As shown in interface 400a6, the terminal device 200b displays three color images with different color quantities: "few," "medium," and "more," as well as a selection control corresponding to each color image. The three levels "few," "medium," and "more" are used to indicate the number of color types contained in the color image. The number of colors in any two color images is different.

[0102] Furthermore, when the terminal operation object triggers the selection control corresponding to the "medium" color image, the terminal device 200b can generate a first target color image corresponding to the selected color quantity option in response to the triggering operation of the selection control corresponding to the "medium" color image. The first target color image has the same resolution as the target pixelated image, i.e., the sub-chassis model resolution of the first target color image is "24*24" and the pixelated image resolution is "48*48." The number of colors per pixel in the first target color image is equal to the number indicated by the selected color quantity option, i.e., the number of colors contained in the "medium" color image.

[0103] It is understood that the controls illustrated in the embodiments of this application do not constitute a specific limitation on the color editing control. In other embodiments of this application, the color editing control may include more or fewer controls than shown, may add or remove some controls, or combine or split some controls, or arrange the controls differently.

[0104] In some feasible implementations, the color editing control further includes a color modification control corresponding to the selected color quantity option, where the color modification control includes at least two color options in the first target color image. In response to a modification operation on any of the at least two color options, the terminal device 200b can modify the color in the target color image, which is the color of the pixel unit corresponding to the at least two color options, to the color corresponding to the modified color option, thereby generating a second target color image and obtaining a pixelated image to be printed.

[0105] Specifically, as shown in interface 400a6 of FIG6 , when the terminal operation object triggers a color modification control, such as "Change Print Material Color," the terminal device 200b can, in response to the triggering operation on the color modification control, display the color type and number of colors per pixel included in the first target color image (i.e., the aforementioned "medium" color image). As shown in "Select Existing Color in Pixel Color Map," the terminal device 200b can display existing color options in the first target color image, such as "Color Option A," "Color Option B," "Color Option C," ..., and "Color Option N."

[0106] Furthermore, when the terminal operation object triggers the "Color Option A" control, the terminal device 200b can change the color of the pixel unit corresponding to "Color Option A" in the target color image to the color corresponding to the modified color option, for example, "Color Option A" is changed to "Color Option D", thereby obtaining a second target color image to obtain a pixelated image to be printed.

[0107] It should be understood that since the color type and color quantity of the printed materials owned by the terminal operation object determine the pixelated printing effect of the target image, the embodiment of the present application provides the terminal operation object with multiple color images with different color types and color quantities, so that the terminal operation object can select a suitable color image according to the color type and color quantity of the existing printed materials to achieve better printing effects.

[0108] Optionally, in some feasible implementations, gaps exist between pixel units in the target pixelated image, and the color editing control further includes at least two chassis color options. In response to a selection operation for the at least two chassis color options, the terminal device 200b may modify the color of the gaps in the target pixelated image to the color corresponding to the selected chassis color option, thereby obtaining a third target color image, thereby obtaining the pixelated image to be printed.

[0109] Specifically, as shown in interface 400a6 of Figure 6, when the terminal operation object triggers the 401d control, that is, the terminal device 200b can display at least two chassis color options in response to the trigger operation on the 401d control, such as the terminal device 200b can display "Color Option A", "Color Option B",..., "Color Option M".

[0110] Furthermore, when the terminal operation object triggers the "Color Option B" 401e control, the terminal device 200b can respond to the triggering operation of the "Color Option B" 401e control and modify the color of the gap in the target pixelated image to "Color Option B", thereby obtaining a third target color image to obtain the pixelated image to be printed.

[0111] Optionally, in some feasible implementations, the color editing control includes a paint control. In response to a paint trigger operation on the paint control, the terminal device 200b may modify the color of the pixel unit indicated by the paint trigger operation in the target pixelated image to the color indicated by the paint trigger operation, thereby obtaining a third target color image to obtain the pixelated image to be printed.

[0112] Specifically, as shown in interface 400a7 of Figure 6, when the terminal operation object triggers the "coloring" control, the terminal device 200b can display a pixelated preview image as shown in interface 400a8. When the terminal operation object triggers any pixel unit in the pixelated preview image, at least two chassis color options are displayed.

[0113] Furthermore, when the terminal operation object triggers any chassis color option, the color of any pixel unit triggered by the terminal operation object is modified to the color indicated by any of the above chassis color options, thereby obtaining a third target color image to obtain a pixelated image to be printed.

[0114] Step S103: Generate three-dimensional model data to be printed based on the pixelated image to be printed. The three-dimensional model data to be printed includes data for printing the model corresponding to each pixel unit and data for printing the base plate model. The base plate model is used to install the model corresponding to each pixel unit. The color of the model corresponding to each pixel unit is consistent with the color of each pixel unit.

[0115] It should be understood that the terminal device 200b can, in response to a printing operation for the three-dimensional model data, send the three-dimensional model data to a 3D printing device that is communicatively connected to the electronic device (i.e., the terminal device 200b), so that the 3D printing device prints the model corresponding to each pixel unit and the chassis model. Alternatively, the terminal device 200b can, in response to a printing operation for the three-dimensional model data, send the three-dimensional model data to a cloud server that is communicatively connected to the electronic device, so that the 3D printing device prints the model corresponding to each pixel unit and the chassis model through the cloud server. It should be understood that the above-mentioned electronic device can be the 3D printing device shown in Figure 1, and the cloud server can be the cloud server 100 shown in Figure 1.

[0116] Specifically, sending three-dimensional model data to a 3D printing device that is communicatively connected to the electronic device (i.e., the terminal device 200b) can be understood as the electronic device slicing the three-dimensional model data and sending the sliced ​​three-dimensional model data to the 3D printing device; it can also be understood as the three-dimensional model data itself being the sliced ​​data.

[0117] Specifically, sending three-dimensional model data to a cloud server that is communicatively connected to the electronic device can be understood as sending the three-dimensional model data to the cloud server, which is sliced ​​by the cloud server so that the cloud server sends the sliced ​​three-dimensional model data to the 3D printing device; it can also be understood as the electronic device slicing the three-dimensional model data and then sending the sliced ​​three-dimensional model data to the cloud server; it can also be understood as the three-dimensional model data itself being the sliced ​​data.

[0118] Optionally, in some feasible implementations, the terminal device 200b can display at least two 3D printing device models. In response to the selection operation for the at least two 3D printing device models, the terminal device 200b can generate the 3D model data to be printed based on the pixelated image to be printed. The 3D model data to be printed includes the model corresponding to each pixel unit determined according to the selected 3D printing device model and the panning information of the chassis model. It should be understood that

[0119] Specifically, please refer to Figure 7, which is another scenario diagram of the method for generating a 3D printing file provided in an embodiment of the present application. As shown in interface 400a5 of Figure 7, when the terminal operation object triggers the "Confirm" control, the terminal device 200b can display a printer selection page as shown in interface 400a9 in response to the triggering operation of the "Confirm" control. The terminal device 200b can display the model of the 3D printing device with which the terminal device 200b has established a communication connection on the printer selection page, such as "3D printing device 1", "3D printing device 2", "3D printing device 3", "3D printing device 4", "...", "3D printing device T". It should be understood that the embodiment of the present application does not limit the model and quantity of the 3D printing device.

[0120] Furthermore, when the terminal operation object triggers the 401f control of "3D printing device 2", the terminal device 200b can generate the three-dimensional model data to be printed according to the pixelated image to be printed in response to the selection operation on the 401f control.

[0121] Specifically, when the terminal operation object triggers the control 401f of "3D Printing Device 2," the terminal device 200b can display a printer list as shown in interface 400a10. The printer list also displays the 3D printing devices with which the terminal device 200b has established communication connections, a selection and editing control for each 3D printing device, and the operating status of each 3D printing device, such as "Printer 2" with an "Idle" status and "Printer 4" with a "Busy" status. The terminal operation object can select any "Idle" printer and send 3D model data to it.

[0122] The three-dimensional model data to be printed includes a model corresponding to each pixel unit determined according to the selected 3D printing device model, and the panning information of the chassis model.

[0123] It should be understood that the model corresponding to each pixel unit is used to be installed at a specified position of the chassis model, and the specified position is consistent with the position of each pixel unit in the pixelated image to be printed, so that the installed model presents the pixelated image to be printed.

[0124] Optionally, in some feasible embodiments, the 3D model data to be printed also includes connector data or picker data. The picker data includes data for a picker model used to print a model corresponding to each pixel unit removed from the chassis model, where the chassis model is composed of one or more sub-chassis models. The connector data includes data for printing a connector model connecting the sub-chassis models. It should be understood that this application does not impose any restrictions on the type of data included in the print data; specific details can be found in actual application scenarios.

[0125] Optionally, in some feasible implementations, the installation position for installing the model corresponding to each pixel unit in the printed chassis model has an installation mark, and the installation positions of the models corresponding to pixel units of different colors have different installation marks.

[0126] Specifically, see Figure 8, which is a schematic diagram of another scenario of the method for generating a 3D print file provided in an embodiment of the present application. As shown in interface 500a of Figure 8, the image editing page may also include a "chassis prompt" control. Terminal device 200b may display interface 500b in response to a triggering operation on the "chassis prompt" control. When the terminal operation object triggers control 501a of interface 500b, terminal device 200b may add an installation mark to the chassis model in response to the triggering operation on control 501a.

[0127] For example, if the installation mark is A, it means that the color type of the pixel unit is blue, and if the installation mark is B, it means that the color type of the pixel unit is red. It should be understood that the specific correspondence between the prompt information and the color type provided in the embodiments of the present application can be determined according to the actual application scenario, and this application does not limit it here.

[0128] Optionally, when the terminal operation object triggers the control 501b shown in the interface 500b, the installation mark added to the chassis model is canceled, that is, the color type prompt information is no longer added to the chassis model of the 3D printing device.

[0129] It is understandable that the method for generating a 3D printing file provided in the embodiment of the present application can edit the regional resolution of the unit area included in the pixelated image by custom selection, and can select any pixelated image size, thereby achieving printing effects of various sizes. At the same time, the image resolution of the target pixelated image can also be selected based on the regional resolution of the unit area, and then in pixelated printing, the printing effect of a complete pixelated image obtained by splicing multiple unit areas can be achieved. In addition, the colors of the multiple pixel units included in the target pixelated image can also be customized to obtain pixelated images with more color types to be printed, thereby improving the printing effect and making it more applicable.

[0130] Please refer to Figure 9, which is a schematic diagram of the structure of the device for generating a 3D printing file provided in an embodiment of the present application. The device for generating a 3D printing file can be a computer program (including program code) running on a computer device. For example, the device for generating a 3D printing file is an application software; the device can be used to execute the corresponding steps of the method for generating a 3D printing file provided in an embodiment of the present application. As shown in Figure 9, the device 1 for generating a 3D printing file can include: a pixel processing module 11, a color editing module 12, and a data generation module 13;

[0131] The pixelation processing module 11 is used to obtain a target image and perform pixelation processing on the target image to obtain a target pixelated image of the target image; the target pixelated image includes a plurality of pixel units, wherein each pixel unit includes at least two pixels of the same color;

[0132] a color editing module 12, configured to display a color editing control and, in response to a triggering operation on the color editing control, perform color editing on at least one pixel unit included in the target pixelated image to generate a pixelated image of the target image to be printed;

[0133] The data generation module 13 is used to generate three-dimensional model data to be printed based on the pixelated image to be printed. The three-dimensional model data to be printed includes data for printing the model corresponding to each pixel unit and data for printing the chassis model. The chassis model is used to install the model corresponding to each pixel unit. The color of the model corresponding to each pixel unit is consistent with the color of each pixel unit.

[0134] Among them, the model corresponding to each of the above pixel units is used to be installed in a specified position of the chassis model, and the specified position is consistent with the position of each pixel unit in the pixelated image to be printed, so that the installed model presents the pixelated image to be printed.

[0135] The above device is executed by an electronic device, and the above device also includes:

[0136] The printing module 14 is configured to send the three-dimensional model data to a 3D printing device that is communicatively connected to the electronic device in response to a printing operation for the three-dimensional model data, so that the 3D printing device prints the model corresponding to each pixel unit and the chassis model; or

[0137] The printing module 14 is also used to respond to a printing operation for the three-dimensional model data and send the three-dimensional model data to a cloud server that is communicatively connected to the electronic device, so that the 3D printing device prints the model corresponding to each pixel unit and the chassis model through the cloud server.

[0138] The pixel processing module 11 includes:

[0139] A display unit 111 is configured to display at least two sub-chassis model resolution options, wherein a chassis model is composed of one or more sub-chassis models, and the sub-chassis models are used for single-disc printing by a 3D printing device. The resolution of any sub-chassis model indicates the number of pixel units included in any sub-chassis model;

[0140] a resolution selection unit 112 for displaying, in response to a selection operation on at least two sub-chassis model resolution options, at least two pixelated image resolution options corresponding to the selected sub-chassis model resolution, wherein any pixelated image resolution indicates the number of pixel units included in any pixelated image, and any pixelated image resolution is an integer multiple of the selected sub-chassis model resolution;

[0141] The pixelation processing unit 113 is configured to, in response to a selection operation on at least two pixelation image resolution options, perform pixelation processing on the target image according to the selected pixelation image resolution to obtain a target pixelated image of the target image.

[0142] The display unit 111 is used to obtain the original image.

[0143] The display unit 111 is also used to display the image function editing control;

[0144] The display unit 111 is further configured to edit the original image to obtain a target image in response to a triggering operation on the image function editing control;

[0145] The image function editing control includes at least one of a background removal editing control, a zoom editing control, a crop editing control, and a rotation editing control.

[0146] The color editing control includes at least two color quantity options, and the at least two color quantity options are determined according to the target image or the target pixelated image;

[0147] The color editing module 12 is configured to generate, in response to a selection operation for at least two color quantity options, a first target color image corresponding to the selected color quantity option to obtain a pixelated image to be printed, wherein the target color image has the same resolution as the target pixelated image, and the number of colors per pixel unit of the target color image is equal to the number indicated by the selected color quantity option.

[0148] Wherein, the color editing control further includes a color modification control corresponding to the selected color quantity option, and the color modification control includes at least two color options in the first target color image;

[0149] The above-mentioned color editing module 12 is also used to respond to the modification operation of any color option among at least two color options, and modify the color of the pixel unit corresponding to any color option in the target color image to the color corresponding to the modified color option, thereby obtaining a second target color image to obtain a pixelated image to be printed.

[0150] There are gaps between pixel units in the target pixelated image, and the color editing control further includes at least two chassis color options;

[0151] The color editing module 12 is further configured to modify the color of the gaps in the target pixelated image to the color corresponding to the selected chassis color option in response to a selection operation for at least two chassis color options, thereby obtaining a third target color image to obtain a pixelated image to be printed.

[0152] Wherein, the color editing control includes a coloring control;

[0153] The color editing module 12 is used to modify the color of the pixel unit indicated by the color trigger operation in the target pixelated image to the color indicated by the color trigger operation in response to the color trigger operation on the color control, thereby obtaining a third target color image to obtain the pixelated image to be printed.

[0154] The data generating module 13 is configured to display at least two 3D printing device models;

[0155] The data generation module 13 is further configured to generate, in response to a selection operation for at least two 3D printing device models, three-dimensional model data to be printed based on the pixelated image to be printed. The three-dimensional model data to be printed includes a model corresponding to each pixel unit determined based on the selected 3D printing device model, and the staging information of the chassis model.

[0156] The three-dimensional model data to be printed also includes connector data or pickup data;

[0157] The piece remover data includes data for printing a piece remover model for removing a model corresponding to each pixel unit from the chassis model;

[0158] The chassis model is composed of one or more sub-chassis models, and the connector data includes data for printing a connector model connecting the sub-chassis models.

[0159] The installation position for installing the model corresponding to each pixel unit in the printed chassis model has an installation mark, and the installation positions of the models corresponding to pixel units of different colors have different installation marks.

[0160] According to the embodiment corresponding to FIG. 2 , the implementation methods described in steps S101 to S103 of the method for generating a 3D print file shown in FIG. 2 can be performed by the various modules of the apparatus shown in FIG. 9 . For example, the implementation method described in step S101 of the method for generating a 3D print file shown in FIG. 2 can be performed by the pixelation processing module 11 of the apparatus shown in FIG. 9 , the implementation method described in step S102 can be performed by the color editing module 12, and the implementation method described in step S103 can be performed by the data generation module 13. The implementation methods performed by the pixelation processing module 11, color editing module 12, and data generation module 13 can be referenced from the implementation methods provided in the various steps of the embodiment corresponding to FIG. These descriptions will not be repeated here.

[0161] In the embodiment of the present application, the functional implementation of each unit in the 3D printing file generation 1 enables customization of the regional resolution of the unit area included in the target pixelated image and the image resolution of the target pixelated image. Any image can be converted into a pixelated image with a specified image resolution, thereby increasing the diversity of pixelated image sizes. Furthermore, the colors of multiple pixel units included in the target pixelated image can be customized to obtain a wider range of color types for the pixelated image to be printed, meeting more customized requirements.

[0162] In an embodiment of the present application, each module in the device shown in the above figure can be separately or all merged into one or several other modules to constitute, or a certain module (or modules) thereof can also be further split into multiple smaller modules in function to constitute, which can achieve the same operation without affecting the realization of the technical effect of the embodiment of the present application. The above modules are divided based on logical functions. In practical applications, the function of a module can also be realized by multiple modules, or the function of multiple modules can be realized by one module. In other feasible implementations of the present application, the above device can also include other modules. In practical applications, these functions can also be implemented with the assistance of other modules, and can be implemented by the collaboration of multiple modules, which is not limited here.

[0163] Please refer to Figure 10, which is a structural diagram of a computer device provided in an embodiment of the present application. As shown in Figure 10, the computer device 1000 may include: at least one processor 1001, such as a CPU, at least one communication bus 1002, at least one transceiver 1003, a network interface 1004, a memory 1005, and at least one display 1006. Among them, the communication bus 1002 is used to realize the connection communication between these components. Among them, the network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may also be at least one storage device located away from the aforementioned processor 1001. Among them, the display 1006 is used to display the image processed by the processor 1001 and the transceiver 1003. As shown in Figure 10, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application.

[0164] In the computer device 1000 shown in FIG10 , the network interface 1004 can provide network communication functions; and the transceiver 1003 and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0165] Acquire a target image, and perform pixelation processing on the target image to obtain a target pixelated image of the target image; the target pixelated image includes a plurality of pixel units, wherein each pixel unit includes at least two pixel points with the same color;

[0166] Displaying a color editing control, and in response to a triggering operation on the color editing control, performing color editing on at least one pixel unit included in the target pixelated image to generate a pixelated image of the target image to be printed;

[0167] Based on the pixelated image to be printed, three-dimensional model data to be printed is generated. The three-dimensional model data to be printed includes data for printing the model corresponding to each pixel unit and data for printing the chassis model. The chassis model is used to install the model corresponding to each pixel unit. The color of the model corresponding to each pixel unit is consistent with the color of each pixel unit.

[0168] It should be understood that the computer device 1000 described in the embodiments of the present application can execute the description of the method for generating a 3D print file in the embodiment corresponding to FIG. 2 above, and can also execute the description of the device 1 for generating a 3D print file in the embodiment corresponding to FIG. 9 above, and thus will not be repeated here. Furthermore, the description of the beneficial effects of employing the same method will not be repeated here.

[0169] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the aforementioned 3D printing file generation device. When the processor executes the computer program, it can execute the method for generating 3D printing files in the embodiments corresponding to Figures 2 and 9 above. Therefore, it will not be described in detail here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the computer program can be deployed on a computer device for execution, or on multiple computer devices located at one location, or on multiple computer devices distributed at multiple locations and interconnected by a communication network. Multiple computer devices distributed at multiple locations and interconnected by a communication network can form a communication system.

[0170] In addition, it should be noted that: the embodiment of the present application also provides a computer program product, which may include a computer program, and the computer program may be stored in a readable storage medium. The processor of the computer device reads the computer program from the readable storage medium, and the processor can execute the computer program, so that the computer device can execute the description of the method for generating a 3D printing file in the embodiments corresponding to Figures 2 and 9 above, which will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer program product embodiment involved in this application, please refer to the description of the method embodiment of this application.

[0171] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0172] It should be noted that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. It should be understood that the example corresponding to FIG2 is merely used to illustrate the embodiments of this application and should not constitute a limitation. FIG2 may also have other optional implementations, such as adding a brightness editing control to interface 300a3 in FIG3 to edit the brightness of the target image, which are not further detailed here.

[0173] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The program can be stored in a computer-readable storage medium, and when executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0174] The above disclosure is merely a specific embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A method for generating a 3D printing file, characterized in that The method includes: Obtain a target image, and perform pixelization processing on the target image to obtain a target pixelized image of the target image; the target pixelized image includes a plurality of pixel units, and each pixel unit includes at least two pixel points with the same color; Display a color editing control, and in response to a trigger operation on the color editing control, perform color editing on at least one pixel unit included in the target pixelized image to generate a pixelized image to be printed of the target image; Generate three-dimensional model data to be printed according to the pixelized image to be printed, the three-dimensional model data to be printed includes data for printing the model corresponding to each pixel unit, and data for printing a chassis model, the chassis model is used to mount the model corresponding to each pixel unit, and the color of the model corresponding to each pixel unit is the same as the color of each pixel unit.

2. The method according to claim 1, wherein The model corresponding to each pixel unit is used to be mounted at a specified position on the chassis model, and the specified position is the same as the position of each pixel unit in the pixelized image to be printed, so that the mounted model presents the pixelized image to be printed.

3. The method according to claim 1 or 2, characterized in that, The method is executed by an electronic device, and the method further includes: In response to a printing operation on the three-dimensional model data, send the three-dimensional model data to a 3D printing device communicatively connected to the electronic device, so that the 3D printing device prints the model corresponding to each pixel unit and the chassis model; or, In response to a printing operation on the three-dimensional model data, send the three-dimensional model data to a cloud server communicatively connected to the electronic device, so that the 3D printing device prints the model corresponding to each pixel unit and the chassis model through the cloud server.

4. The method according to claim 3, wherein The performing pixelization processing on the target image to obtain a target pixelized image of the target image includes: Display at least two sub-chassis model resolution options, the chassis model is composed of one or more sub-chassis models, the sub-chassis model is used for single-disk printing of a 3D printing device, and the resolution of any sub-chassis model is used to indicate the number of pixel units included in the any sub-chassis model; In response to a selection operation on the at least two sub-chassis model resolution options, display at least two pixelized image resolution options corresponding to the selected sub-chassis model resolution, and any pixelized image resolution is used to indicate the number of pixel units included in the any pixelized image, and the any pixelized image resolution is an integer multiple of the selected sub-chassis model resolution; In response to a selection operation on the at least two pixelized image resolution options, perform pixelization processing on the target image according to the selected pixelized image resolution to obtain a target pixelized image of the target image.

5. The method according to claim 3, wherein The obtaining the target image includes: Obtain an original image; Display an image function editing control; In response to a trigger operation on the image function editing control, edit the original image to obtain the target image; Among them, the image function editing control includes at least one of a background removal editing control, a zoom editing control, a cropping editing control, and a rotation editing control.

6. The method according to claim 3, wherein The color editing control includes at least two color quantity options, which are determined according to the target image or the target pixelated image; the performing color editing on at least one pixel unit included in the target pixelated image in response to a trigger operation on the color editing control to generate a pixelated image to be printed of the target image includes: In response to a selection operation on the at least two color quantity options, generating a first target color image corresponding to the selected color quantity option to obtain the pixelated image to be printed, where the resolution of the target color image is the same as that of the target pixelated image, and the number of colors of the pixel units of the target color image is equal to the number indicated by the selected color quantity option.

7. The method according to claim 6, wherein The color editing control further includes a color modification control corresponding to the selected color quantity option, and the color modification control includes at least two color options in the first target color image. The method further includes: In response to a modification operation on any one of the at least two color options, modifying the color of the pixel unit in the target color image whose color is the corresponding color option of the any one color option to the color corresponding to the modified color option, so as to obtain a second target color image to obtain the pixelated image to be printed.

8. The method according to claim 3, wherein There are gaps between the pixel units in the target pixelated image, and the color editing control further includes at least two chassis color options. The method further includes: In response to a selection operation on the at least two chassis color options, modifying the color of the gaps in the target pixelated image to the color corresponding to the selected chassis color option, so as to obtain a third target color image to obtain the pixelated image to be printed.

9. The method according to claim 3, wherein The color editing control includes a painting control; the performing color editing on at least one pixel unit included in the target pixelated image in response to a trigger operation on the color editing control to generate a pixelated image to be printed of the target image includes: In response to a painting trigger operation on the painting control, modifying the color of the pixel unit indicated by the painting trigger operation in the target pixelated image to the color indicated by the painting trigger operation, so as to obtain a third target color image to obtain the pixelated image to be printed.

10. The method according to claim 3, characterized in that The generating three-dimensional model data to be printed according to the pixelated image to be printed includes: Displaying at least two 3D printing device models; In response to a selection operation on the at least two 3D printing device models, generating three-dimensional model data to be printed according to the pixelated image to be printed, where the three-dimensional model data to be printed includes a model corresponding to each pixel unit determined according to the selected 3D printing device model and the placement information of the chassis model.

11. The method according to claim 3, wherein The three-dimensional model data to be printed further includes connector data or pick-up device data; The picker data includes data for printing a picker model for removing the model corresponding to each pixel unit from the chassis model; The chassis model is composed of one or more sub-chassis models, and the connector data includes data for printing a connector model for connecting the sub-chassis models.

12. The method according to claim 3, characterized in that The installation positions in the printed chassis model for installing the models corresponding to each pixel unit have installation marks, and the installation positions of the models corresponding to pixel units of different colors have different installation marks.

13. A device for generating a 3D printing file, characterized in that, Including: A pixelization processing module, configured to obtain a target image and perform pixelization processing on the target image to obtain a target pixelized image of the target image; The target pixelized image includes a plurality of pixel units, and each pixel unit includes at least two pixel points with the same color; A color editing module, configured to perform color editing on at least one pixel unit included in the target pixelized image in response to a trigger operation on the color editing control to generate a pixelized image to be printed of the target image; A data generation module, configured to generate three-dimensional model data to be printed according to the pixelized image to be printed, where the three-dimensional model data to be printed includes data for printing the model corresponding to each pixel unit, and data for printing a chassis model for installing the model corresponding to each pixel unit, and the color of the model corresponding to each pixel unit is the same as the color of each pixel unit.

14. A computer-readable storage medium, characterized in that, Including instructions that, when run on a computer, cause the computer to execute the method according to any one of claims 1 to 10.

15. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium, and the computer instructions are adapted to be read and executed by a processor so that a computer device having the processor executes the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Three-dimensional colorful article production method

    CN101430798A

  • Label processing method and device, electronic equipment and storage medium

    CN116414325A

  • 3D printing method and device, electronic equipment, storage medium and program product

    CN116749510A

  • Method and device for generating 3D printing file and computer readable storage medium

    CN117774327A

  • Information processing apparatus, non-transitory computer readable medium, and three-dimensional object forming system

    US20190070783A1