Picking control method and device, storage medium and electronic equipment

By separating the target drawing data into sub-engraved data in the drawing control method and determining preset drawing parameters based on the target material, the problem of poor drawing accuracy is solved, and higher drawing accuracy and user operations are achieved Convenience.

CN119459173APending Publication Date: 2025-02-18ZHUHAI QUIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411527824.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The drawing control method in the prior art has the problem of poor drawing accuracy, which makes it difficult for users to ensure that the finished drawing is consistent with the expectations when using the drawing equipment.

Method used

By determining the target drawing content and separating it into a set of sub-pigment data according to the cutting type and material color corresponding to the target drawing data, each sub-pigment data corresponds to a tool. Based on the target material, preset drawing parameters are determined, and sub-etching data and preset parameters are sent to the drawing device for drawing.

Benefits of technology

This method reduces user operations, reduces the possibility of setting errors, improves the matching degree between the drawing effect and the expected, and significantly improves the accuracy of the drawing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119459173A_ABST
    Figure CN119459173A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a carving control method and device, a storage medium and electronic device.The method comprises the steps that target carving content is determined, and carving data corresponding to the target carving content are target carving data; according to the cutting type corresponding to the target carving data and the material color corresponding to the target carving data, the target carving data is separated into a group of sub-carving data, and each sub-carving data corresponds to one cutter; based on a target material corresponding to each piece of sub-carving data, preset carving parameters corresponding to each piece of sub-carving data are determined, and the target material corresponding to each piece of sub-carving data is a material used for carving according to each piece of sub-carving data; the preset carving and drawing parameter corresponding to each piece of sub-carving and drawing data is a carving and drawing parameter of a target material corresponding to each piece of sub-carving and drawing data under a cutter corresponding to each piece of sub-carving and drawing data; and issuing each piece of sub-carving data and the preset carving parameters corresponding to each piece of sub-carving data to carving equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of engraving technology, and more specifically, to an engraving control method and device, a storage medium, and an electronic device. Background Art

[0002] In the related art, when a user uses the application system of the engraving equipment (for example, engraving software) to engrave the finished product, the user needs to perform the following operations: draw the engraving path; select the engraving path; set the engraving tool; set the engraving parameters, such as tool pressure, sharp angle compensation, and closure compensation.

[0003] When the user performs the above operations, errors are likely to occur, resulting in the engraved product being inconsistent with expectations. It can be seen that the engraving control method in the related art has the problem of poor engraving accuracy. Summary of the invention

[0004] The embodiments of the present application provide a drawing control method and device, a storage medium and an electronic device, so as to at least solve the problem of poor drawing accuracy in the drawing control method in the related art.

[0005] According to one aspect of an embodiment of the present application, a drawing control method is provided, comprising: determining a target drawing content, wherein the target drawing content is the content to be drawn by a drawing device, and drawing data corresponding to the target drawing content is the target drawing data; separating the target drawing data into a group of sub-drawing data according to the cutting type corresponding to the target drawing data and the material color corresponding to the target drawing data, wherein each of the sub-drawing data corresponds to a tool; determining a predetermined material corresponding to each of the sub-drawing data based on the target material corresponding to each of the sub-drawing data Set engraving parameters, wherein the target material corresponding to each of the sub-engraving data is the material used for engraving according to each of the sub-engraving data, and the preset engraving parameters corresponding to each of the sub-engraving data are preset engraving parameters of the target material corresponding to each of the sub-engraving data under the tool corresponding to each of the sub-engraving data; each of the sub-engraving data and the preset engraving parameters corresponding to each of the sub-engraving data are sent to the engraving device, so that the engraving device performs engraving according to each of the sub-engraving data using the preset engraving parameters corresponding to each of the sub-engraving data.

[0006] According to another aspect of an embodiment of the present application, there is provided a carving control device, comprising: a first determining unit, used to determine a target carving content, wherein the target carving content is the content to be carved by a carving device, and carving data corresponding to the target carving content is the target carving data; a separation unit, used to separate the target carving data into a group of sub-carving data according to the cutting type corresponding to the target carving data and the material color corresponding to the target carving data, wherein each of the sub-carving data corresponds to a tool; a second determining unit, used to determine the material corresponding to each of the sub-carving data based on the target material corresponding to each of the sub-carving data. Preset engraving parameters corresponding to sub-engraving data, wherein the target material corresponding to each of the sub-engraving data is the material used for engraving according to each of the sub-engraving data, and the preset engraving parameters corresponding to each of the sub-engraving data are preset engraving parameters of the target material corresponding to each of the sub-engraving data under the tool corresponding to each of the sub-engraving data; a sending unit, used to send each of the sub-engraving data and the preset engraving parameters corresponding to each of the sub-engraving data to the engraving device, so that the engraving device performs engraving according to each of the sub-engraving data using the preset engraving parameters corresponding to each of the sub-engraving data.

[0007] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned engraving control method when running.

[0008] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the engraving control method through the computer program.

[0009] Through the embodiment of the present application, the target engraving content is determined by presetting the engraving parameters corresponding to the engraving material, wherein the target engraving content is the content to be engraved by the engraving device, and the engraving data corresponding to the target engraving content is the target engraving data; according to the cutting type corresponding to the target engraving data and the material color corresponding to the target engraving data, the target engraving data is separated into a group of sub-engraving data, wherein each sub-engraving data corresponds to a tool; based on the target material corresponding to each sub-engraving data, the preset engraving parameters corresponding to each sub-engraving data are determined, wherein the target material corresponding to each sub-engraving data is the material used for engraving according to each sub-engraving data, and the preset engraving parameters corresponding to each sub-engraving data are preset and correspond to each sub-engraving data The engraving parameters of the corresponding target material under the tool corresponding to each sub-engraving data; each sub-engraving data and the preset engraving parameters corresponding to each sub-engraving data are sent to the engraving device, so that the engraving device performs engraving according to each sub-engraving data using the preset engraving parameters corresponding to each sub-engraving data. Since the engraving data corresponding to the engraving content is divided into different sub-engraving data based on the corresponding cutting type and material color, and the divided sub-engraving data and the corresponding engraving parameters are sent to the engraving device, no manual setting by the user is required, which can not only reduce user operations, reduce possible errors in setting operations, and improve the matching degree between the engraving effect and the expected, but also achieve the technical effect of improving the engraving accuracy, thereby solving the problem of poor engraving accuracy in the engraving control method in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 It is a hardware structure block diagram of an optional engraving control method of an embodiment of the present application;

[0011] Figure 2 is a flow chart of an optional engraving control method according to an embodiment of the present application;

[0012] Figure 3 is a schematic diagram of an optional engraving control method according to an embodiment of the present application;

[0013] Figure 4 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0014] Figure 5 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0015] Figure 6 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0016] Figure 7 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0017] Figure 8 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0018] Fig. 9 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0019] Fig.10 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0020] Fig.11 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0021] Fig.12 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0022] Fig.13 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0023] Fig.14 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0024] Fig.15 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0025] Fig.16 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0026] Fig.17 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0027] Fig.18 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0028] Fig.19 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0029] Fig. 20 is a schematic diagram of another optional engraving control method according to an embodiment of the present application;

[0030] Fig.21 is a flow chart of another optional engraving control method according to an embodiment of the present application;

[0031] Fig. 22 is a structural block diagram of an optional engraving control device according to an embodiment of the present application;

[0032] Fig.23 It is a structural block diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0035] According to one aspect of an embodiment of the present application, a method for controlling a drawing is provided. Optionally, in this embodiment, the method for controlling a drawing can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the engraving device 104 shown in FIG. Figure 1 As shown, the engraving device 104 is connected to the terminal device 102 via a network. The terminal device 102 can edit and transmit the content to be engraved to the engraving device 104, and the engraving device 104 can transmit the engraving result to the terminal device 102.

[0036] The above network may include but is not limited to at least one of the following: wired network, wireless network. The above wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the above wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be, but is not limited to, a PC, a mobile phone, a tablet computer, a smart home device, etc.

[0037] Optionally, the engraving control method of the embodiment of the present application may be executed by the engraving device 104, or by the terminal device 102, or by both the engraving device 104 and the terminal device 102. The engraving control method of the embodiment of the present application may be executed by the terminal device 102 or by a client (e.g., the aforementioned engraving software) installed thereon.

[0038] Taking the terminal device 102 as an example, a drawing control method in this embodiment is provided. Figure 2 is a flow chart of a plotting control method according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0039] Step S202, determining target engraving content, wherein the target engraving content is the content to be engraved by the engraving device, and the engraving data corresponding to the target engraving content is the target engraving data;

[0040] Step S204, separating the target engraving data into a group of sub-engraving data according to the cutting type corresponding to the target engraving data and the material color corresponding to the target engraving data, wherein each sub-engraving data corresponds to a tool;

[0041] Step S206, based on the target material corresponding to each sub-drawing data, determining the preset drawing parameters corresponding to each sub-drawing data, wherein the target material corresponding to each sub-drawing data is the material used for drawing according to each sub-drawing data, and the preset drawing parameters corresponding to each sub-drawing data are preset drawing parameters of the target material corresponding to each sub-drawing data under the tool corresponding to each sub-drawing data;

[0042] Step S208, each sub-drawing data and the preset drawing parameters corresponding to each sub-drawing data are sent to the drawing device, so that the drawing device performs drawing according to each sub-drawing data using the preset drawing parameters corresponding to each sub-drawing data.

[0043] The engraving control method in this embodiment can be applied to the scenario of engraving control of the engraving device. The engraving device here refers to a device that can perform fine engraving on various materials, such as an engraving machine, a lettering machine, etc. The engraving device can engrave different materials through different engraving parts (for example, a tool), and the engraving method can include but is not limited to at least one of the following: lettering, embossing, engraving, and thermal transfer film. In some examples of the embodiments of the present application, the engraving device is an engraving machine and the engraving part is a tool for explanation.

[0044] For the engraving machine application system in the related technology, when the user engraves the finished product, he needs to go through the following steps:

[0045] Step 1, draw the engraving path; Step 2, select the engraving path; Step 3, set the engraving tool; Step 4, set the engraving parameters, such as tool pressure, sharp angle compensation, and closing compensation. When users operate the above steps, errors are likely to occur, resulting in the engraved product being inconsistent with expectations, especially when setting engraving parameters. For example, insufficient tool pressure will result in failure to cut through the material, and excessive setting will result in cutting the pad and reducing the tool life. If the sharp angle compensation and closing compensation are set incorrectly, cutting accuracy errors will occur and the tool cannot be closed.

[0046] In order to at least partially solve the above problems, in this embodiment, the engraving parameters used for engraving the engraving material can be set in the material data of different engraving materials; when engraving the finished product, the user only needs to determine the content to be engraved, and does not need to participate in the process of setting the engraving parameters. After the user determines the content to be engraved, the relevant engraving parameters can be obtained. The engraving data (data representation of the engraving content) and the corresponding engraving parameters can be transmitted to the engraving device together, which not only reduces the user's operations but also ensures the accuracy of engraving.

[0047] In this embodiment, the user can set the content to be engraved by the engraving device, that is, the target engraving content. Correspondingly, the terminal device can determine the target engraving content, and the target engraving content can include the picture to be engraved, the text to be engraved, or the combination of the picture and text to be engraved. The engraving data corresponding to the target engraving content is the target engraving data, and the data format of the target engraving data can be a data format that can be recognized by the engraving device. If the data format of the target engraving data is not a data format that can be recognized by the engraving device, the terminal device can convert the data format of the target engraving data into a data format that can be recognized by the engraving device, or the engraving device can convert the data format of the target engraving data into a data format that can be recognized by the engraving device.

[0048] Considering that engraving equipment (e.g., engraving machines, lettering machines, cutting machines, etc.) can only receive points when receiving data, for example, to engrave a straight line, it is necessary to clearly send the starting point and end point of the straight line. In order to reduce the data format conversion operation, for the engraving equipment application system (the aforementioned engraving software), the engraved picture can be a vector image, and the engraved text can include a text outline path. In this embodiment, the vector image of the picture can be defined in xml (eXtensible Markup Language) format, and the outline path of the font can be defined in xml format. Correspondingly, when the target engraving data contains an engraved picture, the picture data of the engraved picture of the target engraving data is picture data in SVG (Scalable Vector Graphics) format; when the target engraving data contains an engraved text, the text data of the engraved text of the target engraving data is text data in xml format.

[0049] Here, in the case where the target engraving content includes an engraving picture, when the engraving picture is not an image in the SVG format (that is, the data format of the image data of the engraving picture is not in the SVG format), for example, PNG (Portable Network Graphics) format, JPG (Joint Photographic Experts Group) format, etc., the engraving picture can be converted into an image in the SVG format so that the engraving device can perform engraving; in the case where the target engraving content includes an engraving text, when the engraving text is not a text in the XML format (using the XML format to define the outline path of the font), the engraving text can be converted into a text in the XML format, thereby using the XML format to define the outline path of the font, so that the engraving device can recognize and engrave the text according to the outline path.

[0050] Optionally, in this embodiment, the target engraving content can be selected from preset engraving content, the preset engraving content can be pre-stored on the server side, the selected preset engraving content can be edited, and the edited engraving content can be uploaded to the server side for storage so as to be used in subsequent setting of engraving content. Exemplarily, image data can be defined using XML and uploaded to the server; font outline data can be defined using XML and uploaded to the server.

[0051] For example, when managing XML data, you can use SVG format images for image data. SVG is a vector image based on XML, such as Figure 3 The rectangle shown can obtain specific points by parsing the elements of XML, so that the point data can be sent to the lower computer (ie, the engraving device).

[0052] for Figure 3 The corresponding XML data of the rectangular image in defines the following information of the rectangular image: image width, image height, image XML namespace, rectangle layer name in the image, rectangle line color, rectangle width, rectangle height, rectangle fill color, and coordinates of the specified vertices of the rectangle. Exemplarily, by parsing the XML data of the rectangular image, it can be obtained that the image is a rectangle, with a starting point (x, y) = (40, 50), a width of 230, and a height of 200; the fill color is white #fff, the line color is black #000, and the layer name of the rectangle is "Rectangle 1". Therefore, the four points of the rectangle are P0 = (40, 50), P1 = (270, 50), P2 = (270, 250), and P3 = (40, 250). The lower computer can receive these four points for engraving.

[0053] For another example, for font data, XML can be used to define the path of characters, and character paths of different characters can be pre-configured and saved for users to call when needed. Figure 4 As shown, for the English character A, the character path of the character can be defined in advance using xml data, and the corresponding xml data includes but is not limited to: character layer name, baseline, path, height, etc. The baseline, path and other information of the character can be obtained through the xml file. When the user inputs the character A, the path of the character A can be found through the xml data, so that the character A can be drawn based on the path of the character A.

[0054] The target engraving content may require materials of multiple colors (for example, one part requires red material and another part requires green material) for engraving, and multiple cutting operations may be required to engrave different engraving contents, and different cutting operations may be adapted to different types of materials. For example, considering the actual cutting scene, a engraving work has multiple materials and colors, such as Figure 5 As shown in the figure, the engraving product corresponding to a panda picture requires white material and black material. In order to facilitate user operation, you can use fill color as the material color, and engrave according to the material color during engraving to reduce the need for users to select paths for cutting.

[0055] In order to facilitate the sending of engraving data, in this embodiment, the target engraving data can be separated into a group of sub-engraving data according to the cutting type corresponding to the target engraving data and the material color corresponding to the target engraving data. The separation process of the target engraving data can be executed on the terminal device or on the engraving device. Here, based on the engraving content, the target engraving data can contain multiple separable parts, and different parts can correspond to a combination of cutting type and material color. Therefore, the target engraving data can be separated into sub-engraving data based on the cutting type and material color to obtain a group of sub-engraving data, each of which corresponds to a tool.

[0056] In order to quickly determine the material color and segmentation type corresponding to the content that the user needs to engrave, the target engraving content may include the engraving content of multiple layers, and each layer may be set with the corresponding cutting type and material color. The engraving data corresponding to the engraving content of each layer may be separated into a group of sub-engraving data based on the cutting type and material color corresponding to each layer. Optionally, considering that there may be multiple cutting types allowed for the same material, the engraving content that needs to be presented in the same material may be identified by an association identifier. The association identifier may affect the order in which the sub-engraving data is selected for distribution, and may also affect whether the engraving data of different layers is separated into one sub-engraving data. Correspondingly, each sub-engraving data is engraved in the same material and has the same corresponding cutting type and material color.

[0057] After the target engraving data is separated into a group of sub-engraving data, the target material corresponding to each sub-engraving data can be determined. The target material corresponding to each sub-engraving data is the material used for engraving according to each sub-engraving data, and the material data of the target material corresponding to each sub-engraving data is used to specify the engraving parameters of the target material corresponding to each sub-engraving data under different tools. The method of determining the target material corresponding to each sub-engraving data can be: selecting the sub-engraving data to be issued; displaying the candidate materials adapted to the cutting type corresponding to the selected sub-engraving data, and selecting the target material corresponding to the selected sub-engraving data from the displayed candidate materials; or, the correspondence between the combination of cutting type and material color (can also be combined with other parameters) and the target material can be preset, and based on the above correspondence, the target material corresponding to each sub-engraving data can be directly determined.

[0058] It should be noted that different materials have different suitable cutting tools. For example, hot stamping materials are suitable for cutting, but not for embossing, as embossing will only cause the hot stamping to wrinkle or tear. At the same time, the thickness of different materials is inconsistent, and the cutting pressure, sharp corner compensation, and closure compensation are inconsistent. In order to avoid user misoperation, this embodiment configures suitable cutting tools and engraving parameters (for example, pressure, sharp corner compensation, closure compensation, etc.) for different materials. Obtain the corresponding material data, and save the material data of different materials to the server. For example, you can add materials to the server, configure the equipment, material type, material name, and applicable pad type applicable to the material, such as Figure 6 As shown in the figure; set the tool suitable for the material and the cutting parameters under different tools, such as pressure, sharp angle compensation, closing compensation, etc. Figure 7 shown.

[0059] It should also be noted that the configuration parameters corresponding to the above-mentioned different materials and the engraving parameters under different tools can be pre-configured by R&D personnel, which can be stored in the underlying data of the client on the terminal device, on the server, or in the engraving device; the user does not need to participate in the configuration process, thereby avoiding errors when the user sets the engraving parameters by himself, resulting in cutting abnormalities.

[0060] Optionally, different sub-drawing data may be selected and issued in sequence. For sub-drawing data that need to be drawn on the same material, after selecting a sub-drawing data, determining the corresponding preset drawing parameters and issuing the data to the drawing device, other sub-drawing data drawn on the same material may be determined as the sub-drawing data to be issued next based on the association identifier, and issued to the drawing device together with the corresponding preset drawing parameters until all sub-drawing data drawn on the same material have been issued. Here, the preset drawing parameters corresponding to different sub-drawing data drawn on the same material may be different.

[0061] It should be noted that the method of sending each sub-engraving data and the preset engraving parameters corresponding to each sub-engraving data to the engraving device can be: sending each sub-engraving data and the material data of the target material corresponding to each sub-engraving data (including the preset engraving parameters corresponding to each sub-engraving data) to the engraving device, or only sending each sub-engraving data and the preset engraving parameters corresponding to each sub-engraving data (which are the data matching the cutting type corresponding to each sub-engraving data in the material data of the target material corresponding to each sub-engraving data) to the engraving device.

[0062] In this embodiment, after determining the target material corresponding to each sub-engraving data, each sub-engraving data and the preset engraving parameters corresponding to each sub-engraving data can be sent to the engraving device, so that the engraving device can perform engraving according to each sub-engraving data using the preset engraving parameters corresponding to each sub-engraving data.

[0063] In order to facilitate user operation, a set of engraving contents can be preset, and the preset engraving contents can include engraving pictures, engraving texts, etc. The corresponding engraving data can preset the corresponding material color and cutting type. Figure 8 As shown, suppose the user needs to make a foldable greeting card, and needs to cut the rectangular shape of the greeting card, and emboss it in the center to facilitate folding. Therefore, the cutting type of the finished product includes cutting and embossing. Correspondingly, the corresponding SVG format image can be pre-set. The SVG format image is divided into two layers, one layer is the outer contour of the quadrilateral, and the corresponding cutting type is basic cutting, and the other layer is the line, and the corresponding cutting type is embossing. When cutting, emboss the lines first, and then cut the quadrilateral, so that a foldable greeting card can be formed.

[0064] Xml supports custom fields. Figure 8 The SVG format image in the xml data can define two layers. In addition to the layer name, rectangle height and width, line color, fill color, coordinates of specified vertices, two vertices of the line, dashed line mode of the line, etc., the xml data can also define the parameter cutType, that is, the cutting type, to define the value of the cutType parameter, "general" for conventional cutting and "embossing" for embossed cutting.

[0065] Optionally, during the operation, the user can select preset engraving content and modify the selected engraving content. The modified engraving data can be saved in the terminal device or in the server, or not saved and only effective for the current engraving process. This is not limited in this embodiment.

[0066] Through the above steps, the target engraving content is determined, wherein the target engraving content is the content to be engraved by the engraving device, and the engraving data corresponding to the target engraving content is the target engraving data; according to the cutting type corresponding to the target engraving data and the material color corresponding to the target engraving data, the target engraving data is separated into a group of sub-engraving data, wherein each sub-engraving data corresponds to a tool; based on the target material corresponding to each sub-engraving data, the preset engraving parameters corresponding to each sub-engraving data are determined, wherein the target material corresponding to each sub-engraving data is the material used for engraving according to each sub-engraving data, and the preset engraving parameters corresponding to each sub-engraving data are preset engraving parameters of the target material corresponding to each sub-engraving data under the tool corresponding to each sub-engraving data; each sub-engraving data and the preset engraving parameters corresponding to each sub-engraving data are sent to the engraving device, so that the engraving device performs engraving according to each sub-engraving data using the preset engraving parameters corresponding to each sub-engraving data, thereby solving the problem of poor engraving accuracy in the engraving control method in the related art and improving the engraving accuracy.

[0067] In an exemplary embodiment, determining target depiction content includes:

[0068] S11, displaying at least one engraving picture on the first display interface, wherein the engraving picture includes at least one layer of engraving pictures, and each layer of engraving pictures corresponds to a combination of cutting type and material color;

[0069] S12, in response to a first selection operation performed on the depicted picture, displaying a target depicted picture selected by the first selection operation on a first editing canvas in a first display interface.

[0070] In this embodiment, the target engraving content includes a target engraving picture, the target engraving picture includes an engraving picture of at least one target layer, and the target engraving data includes picture data of the engraving picture of each target layer. The target engraving picture can be selected by the user from a group of engraving pictures, and a group of engraving pictures can be pre-set engraving pictures, which can be pre-saved in a picture library, and the picture library can be stored on the server side, or loaded onto a terminal device. Each engraving picture includes an engraving picture of at least one layer, and the engraving picture of each layer of each engraving picture corresponds to a combination of cutting type and material color, that is, the engraving picture of a single layer only corresponds to a combination of cutting type and material color (for example, basic cutting, red), and the engraving picture composed of multiple layers can correspond to the same combination of cutting type and material color, or can correspond to multiple combinations of cutting type and material color (for example, there are three layers, two layers correspond to drawing, white, and one layer corresponds to basic cutting, red).

[0071] In order to facilitate the selection of the picture to be engraved, at least one engraved picture can be displayed on the first display interface. The picture option of each engraved picture can be a complete engraved picture or an identification of the engraved picture. The actual engraved picture can be saved on the terminal device or downloaded from the server in real time (only the selected engraved picture can be downloaded). In order to improve the flexibility of operation and the richness of the engraved content, the preset engraved picture can be allowed to be edited. To this end, in response to the selection operation performed on the engraved picture, the selected target engraved picture can be displayed on the first editing canvas in the first display interface. The selected target engraved picture can only allow the position to be adjusted, allow the engraved pattern therein to be adjusted, or allow partial adjustment of the engraved pattern therein, which is not limited in this embodiment.

[0072] For example, Fig. 9 As shown, the display interface of the terminal device (display interface of the client) can display the XML pictures stored in the loaded server, and the user can select the pictures to be engraved and add them to the editing canvas.

[0073] It should be noted that when R&D personnel pre-design images, they can name each layer according to a defined naming format, so that when parsing the image, they can identify relevant parameters, such as cutting type, based on the layer naming.

[0074] For engraved images, the engraved content can be separated into multiple layers according to the color of the engraved content, the corresponding cutting type and other information. Fig.10 As shown in the figure, the user selects a strawberry in the gallery (the gallery storing the above-mentioned set of engraved pictures), and on the right are three layers segmented according to color (i.e., red, green, and black). For each layer, a corresponding cutting type can be preset, wherein different layers can correspond to different cutting types or to the same cutting type. For another example, Fig.11 As shown, an engraving picture represented as a maple leaf can be pre-set. The engraving picture may include two layers. The layer corresponding to the outer contour has a preset cutting type of basic cutting, and the layer corresponding to the inner lines has a preset cutting type of brush drawing. When the engraving device receives the corresponding engraving data, the lines of the maple leaf can be drawn on the material by the brush, and the outer contour of the maple leaf can be cut.

[0075] In this embodiment, the drawing operations for the drawing content can be divided into two categories, cutting and drawing, wherein cutting can be divided into basic cutting, corrugated cutting and perforation cutting, and drawing can be divided into brush drawing, embossing drawing, concave texture drawing and engraving drawing. Through the operation selection interface, the drawing operation mode corresponding to different layers can be selected.

[0076] For the engraved pictures, the cutting type can be preset (that is, different engraved pictures can preset corresponding cutting types, and an engraved picture can include at least one layer, and each layer can preset corresponding cutting types), and the user can modify the set cutting type according to the needs, and the above modification can be to change only the cutting type of the engraved picture to be cut, or to change the default cutting type set in the picture library. Correspondingly, for the material colors preset in the picture library (that is, different engraved pictures can preset corresponding material colors, and an engraved picture can include at least one layer, and each layer can preset corresponding material colors), the user can modify the set material color according to the needs, and the above modification can be to change only the material color of the engraved picture to be cut, or to change the default material color set in the picture library. Here, the picture data with preset cutting types and material colors can be stored in the server, so that users can obtain them through the network for editing and cutting operations.

[0077] For the selected target engraving picture, the first editing canvas can display the entire target engraving picture or any layer in the target engraving picture. Correspondingly, the user can adjust the entire target engraving picture or any layer in the target engraving picture on the first editing canvas, wherein the method for adjusting the material color and cutting type of the target engraving picture is similar to that in the above-mentioned embodiment.

[0078] Through this embodiment, a drawing picture to be drawn can be selected from preset drawing pictures, and the selected drawing picture can be displayed on the editing canvas on the display interface, which can improve the convenience of user operation and the flexibility of drawing picture setting.

[0079] In an exemplary embodiment, the displayed target depicted picture can be adjusted through editing operations. The editing operation can be an adjustment of the target depicted picture as a whole, or an adjustment of depicted pictures in one or some layers of the target depicted picture.

[0080] As an optional implementation manner, after the target depiction picture selected by the first selection operation is displayed on the first editing canvas in the first display interface, the method further includes:

[0081] S21, in response to a first editing operation performed on a target depicted image, adjusting the depicted image of each target layer to obtain an adjusted target depicted image, and displaying the adjusted target depicted image on a first editing canvas.

[0082] In this embodiment, the user can edit the target engraved picture as a whole on the first editing canvas. For the terminal device, it can detect the first editing operation performed on the target engraved picture. In response to the detected first editing operation, the engraved picture of each target layer is adjusted. The above adjustment can be a simultaneous adjustment, or it can be adjusted in sequence according to the attachment relationship between the layers (the upper and lower relationship of the layers, the upper layer is attached to the lower layer, a relationship identified by the above association identifier). The above first editing operation is used to modify at least one of the following image parameters of the target engraved picture: image height, image width, image rotation angle, image position, image mirror. The first editing operation can be a drag operation performed on the target engraved picture with a reference point of the target engraved picture as the adjustment point, or it can be a modification operation performed on the parameter value of at least one image parameter through the image parameter interface of the target engraved picture.

[0083] For example, Fig.12 As shown, the user can edit the picture in the application, including modifying the width, height, rotation angle, position, mirror image, etc. The above editing can be a modification operation performed on the parameter value of at least one picture parameter on the picture parameter interface of the engraved picture.

[0084] Here, the editing operations allowed for the engraved image can be pre-configured. Taking the application as an example, the developer can pre-set the editing operations allowed for the engraved image in the application. All the editing operations allowed can be enabled by default, or some of them can be disabled according to user needs.

[0085] As another optional implementation, after the target depicted image selected by the first selection operation is displayed on the first editing canvas in the first display interface, the method further includes:

[0086] S22, in response to a second editing operation performed on a designated target layer in at least one target layer, adjusting the drawing image of the designated target layer to obtain an adjusted drawing image of the designated target layer, and displaying the adjusted drawing image of the designated target layer on the first editing canvas.

[0087] In this embodiment, the user can partially edit the target engraved picture on the first editing canvas. For the terminal device, it can detect the second editing operation performed on the specified target layer of the target engraved picture; in response to the detected second editing operation, the engraved picture of the specified target layer is adjusted. The above-mentioned second editing operation is used to modify at least one of the following picture parameters of the specified target layer: picture height, picture width, picture rotation angle, picture position, and picture mirror. The second editing operation can be a drag operation performed on the engraved picture on the target layer with a reference point of the engraved picture on the specified target layer as the adjustment point, or it can be a modification operation performed on the parameter value of at least one picture parameter through the picture parameter interface of the engraved picture on the target layer.

[0088] It should be noted that after editing the target engraving picture or the specified target layer, the engraving data of the target engraving picture will also be modified, and the target engraving data will be updated to the modified target engraving data. For example, after the user adjusts the image height of the target engraving picture, the parameter value of the height parameter representing the image height in the engraving data (xml data) of the target engraving picture will change accordingly; and then, the engraving data sent to the engraving device is the adjusted engraving data.

[0089] Through this embodiment, the engraved picture or the engraved picture of the specified layer in the engraved picture can be adjusted in response to the editing operation on the engraved picture or the specified layer in the engraved picture, which can improve the flexibility and convenience of the engraved picture setting.

[0090] In an exemplary embodiment, the method further comprises:

[0091] S31, in response to a selection operation performed on the engraved image, loading a cutting type pre-configured for the engraved image of each target layer.

[0092] Similar to the above embodiment, the cutting type corresponding to each layer of each etched picture in the picture library can be pre-configured. After the user selects the target etched picture, in response to the selection operation performed on the etched picture, the cutting type pre-configured for the etched picture of each target layer can be loaded.

[0093] Optionally, the cutting type pre-configured for the engraved image of each target layer can be displayed on the first display interface or the image parameter interface. The user can modify the cutting type of all or part of the target layer. Similarly, the material color pre-configured for the engraved image of the target layer can also be displayed in the first display interface or the image parameter interface, and the user can modify the material color of all or part of the target layer.

[0094] For example, for an image, the cutting operation type can be automatically loaded according to the cutting type preset in XML. In addition, it can also provide users with methods to modify the cutting tool and material color. Users can select the operation type, change the cutting type, and change the material color through the color palette or preset colors, such as Fig.13 shown.

[0095] Through this embodiment, in response to a selection operation performed on a depicted image, a cutting type pre-configured for the depicted image of each layer is loaded, which can improve the convenience of adjusting the image depiction operation.

[0096] In an exemplary embodiment, determining target depiction content includes:

[0097] S41, determining a target engraving text and a target font to be engraved, wherein the target font is a font used to engrave the target engraving text;

[0098] S42, displaying a target carved text of a target font on a second editing canvas in a second display interface, wherein the target carved text includes at least one carved character, and the target carved text of the target font is displayed according to target character data of each carved character.

[0099] In this embodiment, the target engraving content includes a target engraving text, and the target engraving text includes a group of engraving characters. Correspondingly, the target engraving content includes a target engraving text of a target font, and the target engraving data includes target character data of each engraving character. The target engraving text can be manually input by the user, or selected from a preset engraving text; the target engraving text can be a target engraving text of a target font, and the target font is the font used to engrave the target engraving text, which can be a default font or selected from a group of candidate fonts. The target engraving text and target font to be engraved can be selected from a preset engraving text of a specific font, or can be manually input or selected by the user, or can be determined by other methods, which is not limited in this embodiment.

[0100] For example, the text to be engraved may be manually input by a user, such as Fig.14 As shown, the user can click on the text in the canvas of the application and enter the engraving text to be engraved.

[0101] When the engraving device is engraving, it moves on the medium and engraves according to a predetermined path. The engraving data sent to the engraving device needs to include a path that can be recognized by the engraving device. To this end, the font data of the target font contains target character data for each preset character in at least one preset character, and the target character data for each preset character is used to specify the baseline and character path of each preset character corresponding to the target font. The target engraved text includes at least one engraved character, and at least one engraved character belongs to at least one preset character, so as to ensure that the text data of the target engraved text sent to the engraving device specifies the baseline and character path of each engraved character. Optionally, when the user enters the text to be engraved, the characters allowed to be input can be restricted, and only characters belonging to a set of preset characters are allowed to be entered.

[0102] In order to improve the flexibility of operation and the richness of the engraved content, the target engraved text of the target font can be allowed to be edited. To this end, the target engraved text of the target font can be displayed on the second editing canvas in the second display interface. The second editing canvas is a canvas used to edit the content to be engraved. It can be the same editing canvas as the first editing canvas, or it can be a different editing canvas. The layer displaying the target engraved text of the target font can belong to the aforementioned target layer, or it can be a separate layer (that is, the engraved text and the engraved picture are in different layers). The target engraved text of the target font is displayed based on the target character data of each engraved character in a group of engraved characters. The target engraved text of the target font can only allow the position to be adjusted, allow the text size and text color to be adjusted, or allow the text font of the target engraved text to be modified, etc. This is not limited in the present embodiment.

[0103] Optionally, the font data of the target font may be XML font data. Pre-configured XML image data, XML font data and material data may be stored in a server, such as Fig.15 As shown, the XML image data contains the preset cutting type and material color; the XML font data can define the baseline and character path of the character, and the material data defines the applicable engraving parameters for the corresponding material.

[0104] Through this embodiment, the engraving text to be engraved and the corresponding font can be determined, and the engraving text in a specific font can be displayed on the editing canvas, which can facilitate the setting of the engraving content and improve the flexibility and convenience of the engraving content setting.

[0105] In an exemplary embodiment, determining a target engraving text and a target font to be engraved includes:

[0106] S51, in response to a text input operation performed on a second editing canvas, displaying a target engraved text in a default font on the second editing canvas, and displaying at least one candidate font on a second display interface, wherein the text input by the text input operation is the target engraved text;

[0107] S52, in response to the selection operation performed on the target font, according to the target character data of each inscribed character, the target inscribed text of the default font displayed on the second editing canvas is updated to the target inscribed text of the target font.

[0108] In this embodiment, the engraving text to be engraved can be manually input by the user, and the font used for engraving (i.e., the engraving font) is selected from the set candidate fonts. The order of the engraving text input operation and the engraving font selection operation can be: first select the engraving font, and then enter the engraving text. Considering that if the engraving font is selected first, each input engraving character needs to match the corresponding character data and display on the second editing canvas, the operation process is complicated. In this embodiment, the engraving text can be entered first, and then the engraving font can be selected, so that the engraving text can be adjusted to the engraving text of the selected engraving font through a single conversion operation, which improves the convenience of engraving configuration.

[0109] For the target engraved text, in response to the text input operation performed on the second editing canvas, the target engraved text of the default font is displayed on the second editing canvas. Here, the text input by the text input operation is the target engraved text. After the text input operation is completed, or in response to the detected font selection trigger operation, font options of at least one candidate font are displayed on the second display interface. The font selection trigger operation is an operation that triggers the selection of a text font. It can be a trigger operation performed on a designated button on the second display interface, or it can be a specific operation performed on the input target engraved text. The font option of the candidate font can be the font identifier of the candidate font, rather than the actual font data. The actual font data can be pre-stored on the terminal device or downloaded from the server in real time. In this embodiment, there is no limitation on the font selection trigger operation and the method for obtaining font data.

[0110] For example, Fig.16 As shown, the XML font in the server is loaded in the application, and different character outline paths (i.e., character paths, here the default path) are obtained by selecting and switching different fonts. At this time, the character outline path obtained is the character outline path of a certain character of the default size under a certain font.

[0111] In response to the selection operation performed on the target font in at least one candidate font, the text font of the target engraved text displayed on the second editing canvas will change accordingly: according to the target character data of each engraved character, the target engraved text of the default font displayed on the second editing canvas is updated to the target engraved text of the target font. Here, the target engraved text of the target font can be a target engraved text of the target font and a specified size (default size, matching the font data of the target font).

[0112] It should be noted that the font data in XML format will define the paths of various characters, for example, the paths of the 26 English letters. When a user selects a font, the XML font data of the font will be parsed, and the paths of the 26 English letters (an example of characters) will be cached. When the user enters character A, the path of A will be obtained from the cache, and when the user enters character B, the path of character B will be obtained from the cache.

[0113] For the method of first selecting the engraving font and then entering the engraving text, it may include the following steps: displaying at least one candidate font on the second display interface (the font options of the candidate font may be displayed); in response to a selection operation performed on a target font among the at least one candidate font, obtaining the font data of the target font; in response to a text input operation performed on the second editing canvas, displaying the target engraving text of the target font on the second editing canvas according to the target character data of each engraving character in the target engraving text input by the text input operation.

[0114] Through this embodiment, by first inputting the engraved text and then selecting the engraved font, the operation of retrieving and changing the text font of the engraved text can be reduced, thereby improving the convenience of user operation.

[0115] In an exemplary embodiment, the displayed target engraved text can be adjusted through an editing operation. The editing operation can be an adjustment of the target engraved text as a whole, or an adjustment of one or some characters of the target engraved text.

[0116] As an optional implementation manner, after displaying the target engraved text in the target font on the second editing canvas in the second display interface, the method further includes:

[0117] S61, in response to the third editing operation performed on the target engraved text, the target character data of each engraved character is adjusted to obtain the adjusted target character data of each engraved character, and the adjusted target engraved text of the target font is displayed on the second editing canvas according to the adjusted target character data of each engraved character.

[0118] In this embodiment, the user can edit the target engraved text as a whole on the second editing canvas. For the terminal device, it can detect the third editing operation performed on the target engraved image, and in response to the detected third editing operation, the target character data of each engraved character is adjusted. The above adjustment can be made simultaneously or in sequence according to the order relationship between the engraved characters or other orders. The above third editing operation is used to modify at least one of the following text parameters of the target engraved text: font, size, line spacing, character spacing, and alignment.

[0119] As another optional implementation, after the target engraved text in the target font is displayed on the second editing canvas in the second display interface, the method further includes:

[0120] S62, in response to the fourth editing operation performed on the designated engraving character among the at least one engraving character, the target character data of the designated engraving character is adjusted to obtain the adjusted target character data of the designated engraving character, and the designated engraving character of the adjusted target font is displayed on the second editing canvas according to the adjusted target character data of the designated engraving character.

[0121] In this embodiment, the user can partially edit the target engraved text on the second editing canvas. For the terminal device, it can detect the fourth editing operation performed on the designated engraved character of the target engraved text; in response to the detected fourth editing operation, the target character data of the designated engraved character is adjusted. The above-mentioned fourth editing operation is used to modify at least one of the following text parameters of the designated engraved character: font, size, line spacing, character spacing, alignment. The fourth editing operation can be a drag operation performed on the designated engraved character with a reference point of the designated engraved character as the adjustment point, or it can be a modification operation performed on the parameter value of at least one character parameter on the character parameter interface of the designated engraved character.

[0122] It should be noted that after editing the target engraving text or the designated engraving character, the engraving data of the target engraving text will also be modified, and the target engraving data will be updated to the modified target engraving data. For an engraving character, the content of the adjustment of its target character data includes the character path in its target character data, and may also include the baseline in its target character data. For example, after the user adjusts the text height of the target engraving text, the data representing the character path of each engraving character in the engraving data of the target engraving text will change accordingly; and then, the engraving data sent to the engraving device is the adjusted engraving data.

[0123] For example, Fig.17As shown, editing text in an application may include but is not limited to at least one of the following: font, size, line spacing, word spacing, alignment, etc., which involves converting the default path according to the font attributes.

[0124] For font data, taking character A as an example, the process from character definition to character use may include: using xml to define the path of the character, uploading the xml data containing the paths of each character to the server, and implementing the operation of updating and switching fonts at any time on the application side; when in use, the font baseline, path and other information can be obtained through the xml file. When the application inputs character A, the path of character A is found through the xml data, and then the path of character A is transformed according to the font information of the application, such as the font size, so as to obtain the cutting path of the character through the character and its attributes. Optionally, the edited xml data can be saved locally or to a cloud server for easy use next time, such as Fig.18 shown.

[0125] Through this embodiment, the engraving data or the character data of the specified characters in the engraving text can be adjusted in response to the editing operation on the engraving text or the specified characters in the engraving text, which can improve the flexibility and convenience of the engraving text setting.

[0126] In an exemplary embodiment, before determining the preset drawing parameters corresponding to each sub-drawing data based on the target material corresponding to each sub-drawing data, the method further includes:

[0127] S71, taking each sub-drawing data as the current sub-drawing data and performing the following determination operation to obtain the target material corresponding to each sub-drawing data:

[0128] In the case where there is associated sub-drawing data drawn on the same material as the current sub-drawing data in the sub-drawing data whose corresponding target material has been determined before the target material corresponding to the current sub-drawing data is determined, the target material corresponding to the associated sub-drawing data is determined as the target material corresponding to the current sub-drawing data;

[0129] In a case where, before determining the target material corresponding to the current sub-drawing data, there is no sub-drawing data drawn on the same material as the current sub-drawing data in the sub-drawing data corresponding to the target material determined before determining the target material corresponding to the current sub-drawing data, at least one candidate material is displayed on the third display interface; in response to a second selection operation performed on the candidate material, the candidate material selected by the second selection operation is determined as the target material corresponding to the current sub-drawing data.

[0130] In this embodiment, when determining the target material corresponding to each sub-drawing data, each sub-drawing data can be used as the current sub-drawing data, and the target material corresponding to the current sub-drawing data can be determined in different ways according to whether there is associated sub-drawing data drawn on the same material as the current sub-drawing data in the sub-drawing data of the determined corresponding target material. Whether there is associated sub-drawing data of the current sub-drawing data in the sub-drawing data of the determined corresponding target material can be determined based on an association identifier (the identifier can be the above-mentioned attachment relationship, that is, the relationship that one layer is attached to another layer). Here, the association identifier can be used to identify the association relationship between different sub-drawing data, that is, to identify whether one sub-drawing data is associated with another sub-drawing data and the specific nature of this association, for example, whether it is necessary to draw on the same material. The association identifier can be pre-configured by the R&D personnel according to the needs.

[0131] Optionally, in the case where there is associated sub-drawing data drawn on the same material as the current sub-drawing data in the sub-drawing data whose corresponding target material has been determined before the current sub-drawing data, the target material corresponding to the associated sub-drawing data can be directly determined as the target material corresponding to the current sub-drawing data. In the case where there is no sub-drawing data drawn on the same material as the current sub-drawing data in the sub-drawing data whose corresponding target material has been determined before the current sub-drawing data, and the current sub-drawing data is the first sub-drawing data drawn on a certain material, or the only sub-drawing data, the user can select a material from the candidate materials, and then in response to this selection operation, the selected candidate material can be determined as the target material corresponding to the current sub-drawing data. Here, at least one candidate material is a preset material in at least one preset material that allows cutting using the cutting type corresponding to the current sub-drawing data.

[0132] Optionally, during cutting, the engraving data to be cut (e.g., XML path data) can be separated according to the material color and cutting type, thereby reducing the operation cost of the user needing to select a specified path for cutting. Fig.19 As shown, the separated xml path data and the corresponding operation type can be displayed on the drawn preview page, where: Fig.19 The left and right sides correspond to different material colors.

[0133] For the sub-engraving data to be sent, the engraving material preset in the server (such as Fig. 20 As shown in the figure, the engraving parameters such as tool pressure, sharp angle compensation, and closing compensation are preset in the engraving material to avoid cutting abnormalities caused by errors when users set the engraving parameters themselves.

[0134] Here, the engraving material loaded according to the current cutting type can be the engraving material of the corresponding cutting type including the current cutting type. In addition, for the case where at least two sub-engraving data are engraved on the same material, the engraving material loaded is the engraving material corresponding to the cutting types corresponding to the at least two sub-engraving data, that is, in order to ensure that the engraving material corresponding to multiple sub-engraving data can support the cutting types of these sub-engraving data, when selecting the material, the cutting requirements of all relevant sub-engraving data can be considered. For example, if two sub-engraving data correspond to basic cutting and embossing respectively, the engraving material that can meet these two cutting types can be loaded. Set the lower computer according to the cutting parameters of the material, and perform engraving according to the xml path to ensure the accuracy and efficiency of engraving.

[0135] Through this embodiment, the target material corresponding to the current sub-drawing data is determined in different ways based on whether there is associated sub-drawing data in the sub-drawing data of the determined corresponding target material, which can simplify the drawing determination process and thus improve drawing efficiency.

[0136] The following is an explanation of the engraving control method in the embodiment of the present application in conjunction with an optional example. In this optional example, the engraving content includes engraving pictures and engraving texts, and the engraving pictures and engraving texts are both defined by data in XML format, the terminal device is the host computer, and the engraving machine is the slave computer.

[0137] During the preliminary preparation, XML image data, XML font data and material data can be generated. This step is performed by relevant personnel, and the generated XML image data, XML font data and material data can be saved to the server.

[0138] In actual use, you can edit and cut XML data separately. The above process can be performed by the application running on the terminal device in combination with the engraving machine. For the editing process of XML data editing, select to add the pictures you need to use in the application and edit the pictures; enter text in the application, select the XML font to switch the text font, and edit the text attributes. In the application, you can save XML data to the local or server. When cutting, you can select the XML data to be cut, select the corresponding material, and perform cutting.

[0139] Specifically, Fig.21As shown, the process of the engraving control method in this optional example may include the following steps: for engraving pictures, xml picture data can be loaded and edited; for engraving text, the font can be set according to the xml font data of the selected font by obtaining the input text; the cutting type and material color of the engraved picture or engraved text can be modified as needed; the xml data can be separated according to the material color and cutting type; for the separated xml data, the materials can be selected separately, and the xml engraving path (the engraving path in the engraved picture and / or the engraving path of the engraved characters in the engraved text) and the corresponding engraving parameters, such as cutting pressure, closure compensation, sharp angle compensation, etc., can be sent to the lower computer.

[0140] Through this optional example, the pictures, fonts, and cutting methods (pressure and compensation) corresponding to the cutting materials are set in advance and stored in the upper computer; when the user selects the corresponding engraving content, the server will send the relevant parameters set in advance to the lower computer, which can reduce the user's usage cost and ensure the accuracy of cutting.

[0141] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0142] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware server, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM (Read-Only Memory) / RAM (Random Access Memory), a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0143] According to another aspect of the embodiment of the present application, a carving control device is also provided, which is used to implement the carving control method provided in the above embodiment, and the description has been made no further. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0144] Fig. 22 is a structural block diagram of a carving control device according to an embodiment of the present application, such as Fig. 22 As shown, the device comprises:

[0145] The first determining unit 2202 is used to determine the target engraving content, wherein the target engraving content is the content to be engraved by the engraving device, and the engraving data corresponding to the target engraving content is the target engraving data;

[0146] The separation unit 2204 is used to separate the target engraving data into a group of sub-engraving data according to the cutting type corresponding to the target engraving data and the material color corresponding to the target engraving data, wherein each sub-engraving data corresponds to a tool;

[0147] The second determining unit 2206 is used to determine the preset drawing parameters corresponding to each sub-drawing data based on the target material corresponding to each sub-drawing data, wherein the target material corresponding to each sub-drawing data is the material used for drawing according to each sub-drawing data, and the preset drawing parameters corresponding to each sub-drawing data are preset drawing parameters of the target material corresponding to each sub-drawing data under the tool corresponding to each sub-drawing data;

[0148] The sending unit 2208 is used to send each sub-drawing data and the preset drawing parameters corresponding to each sub-drawing data to the drawing device, so that the drawing device performs drawing according to each sub-drawing data using the preset drawing parameters corresponding to each sub-drawing data.

[0149] It should be noted that the first determination unit 2202 in this embodiment can be used to execute the above step S202, the separation unit 2204 in this embodiment can be used to execute the above step S204, the second determination unit 2206 in this embodiment can be used to execute the above step S206, and the sending unit 2208 in this embodiment can be used to execute the above step S208.

[0150] Through the embodiments provided by the present application, the target engraving content is determined, wherein the target engraving content is the content to be engraved by the engraving device, and the engraving data corresponding to the target engraving content is the target engraving data; according to the cutting type corresponding to the target engraving data and the material color corresponding to the target engraving data, the target engraving data is separated into a group of sub-engraving data, wherein each sub-engraving data corresponds to a tool; based on the target material corresponding to each sub-engraving data, the preset engraving parameters corresponding to each sub-engraving data are determined, wherein the target material corresponding to each sub-engraving data is For the material used for engraving according to each sub-engraving data, the preset engraving parameters corresponding to each sub-engraving data are preset engraving parameters of the target material corresponding to each sub-engraving data under the tool corresponding to each sub-engraving data; each sub-engraving data and the preset engraving parameters corresponding to each sub-engraving data are sent to the engraving equipment, so that the engraving equipment performs engraving according to each sub-engraving data using the preset engraving parameters corresponding to each sub-engraving data, thereby solving the problem of poor engraving accuracy in the engraving control method in the related art and improving the engraving accuracy.

[0151] In an exemplary embodiment, the first determining unit includes:

[0152] A first display module, used to display at least one engraving picture on a first display interface, wherein the engraving picture includes at least one layer of engraving pictures, and each layer of engraving pictures corresponds to a combination of a cutting type and a material color;

[0153] The second display module is used to respond to the first selection operation performed on the engraving picture, and display the target engraving picture selected by the first selection operation on the first editing canvas within the first display interface, wherein the target engraving picture includes an engraving picture of at least one target layer, the target engraving content includes the target engraving picture, and the target engraving data includes the picture data of the engraving picture of each target layer.

[0154] In an exemplary embodiment, the above device further comprises:

[0155] A first execution unit is used to adjust the drawing picture of each target layer in response to the first editing operation performed on the target drawing picture after displaying the target drawing picture selected by the first selection operation on the first editing canvas in the first display interface to obtain the adjusted target drawing picture, and display the adjusted target drawing picture on the first editing canvas, wherein the first editing operation is used to modify the picture parameters of the target drawing picture; or

[0156] The second execution unit is used to adjust the engraving picture of the designated target layer in response to the second editing operation performed on the designated target layer in at least one target layer, obtain the adjusted engraving picture of the designated target layer, and display the adjusted engraving picture of the designated target layer on the first editing canvas, wherein the second editing operation is used to modify the image parameters of the engraving picture of the designated target layer.

[0157] In an exemplary embodiment, the above device further comprises:

[0158] The loading unit is used to load the cutting type pre-configured for the engraving picture of each target layer in response to the selection operation performed on the engraving picture.

[0159] In an exemplary embodiment, the first determining unit includes:

[0160] A determination module, used to determine a target engraving text and a target font to be engraved, wherein the target font is a font used to engrave the target engraving text, and the font data of the target font includes target character data of at least one preset character, and the target character data of each preset character is used to specify a baseline and a character path of each preset character of the target font;

[0161] The third display module is used to display the target engraving text of the target font on the second editing canvas in the second display interface, wherein the target engraving text includes at least one engraving character, the target engraving text of the target font is displayed according to the target character data of each engraving character, the target engraving content includes the target engraving text of the target font, and the target engraving data includes the target character data of each engraving character.

[0162] In an exemplary embodiment, the determining module includes:

[0163] A first display submodule is used to display a target engraved text in a default font on the second editing canvas in response to a text input operation performed on the second editing canvas, and to display at least one candidate font on the second display interface, wherein the text input by the text input operation is the target engraved text;

[0164] The second display submodule is used to update the target engraving text of the default font displayed on the second editing canvas to the target engraving text of the target font according to the target character data of each engraved character in response to the selection operation performed on the target font.

[0165] In an exemplary embodiment, the above device further comprises:

[0166] a third execution unit, configured to, after displaying the target engraved text of the target font on the second editing canvas in the second display interface, adjust the target character data of each engraved character in response to a third editing operation performed on the target engraved text, obtain the adjusted target character data of each engraved character, and display the adjusted target engraved text of the target font on the second editing canvas according to the adjusted target character data of each engraved character, wherein the third editing operation is used to modify text parameters of the target engraved text; or

[0167] A fourth execution unit is used to adjust the target character data of the designated engraving character in response to a fourth editing operation performed on a designated engraving character among at least one engraving character, obtain the adjusted target character data of the designated engraving character, and display the adjusted designated engraving character of the target font on the second editing canvas according to the adjusted target character data of the designated engraving character, wherein the fourth editing operation is used to modify the text parameters of the designated engraving character.

[0168] In an exemplary embodiment, the above device further comprises:

[0169] The fifth execution unit is used to perform the following determination operation on each sub-drawing data as the current sub-drawing data before determining the preset drawing parameters corresponding to each sub-drawing data based on the target material corresponding to each sub-drawing data to obtain the target material corresponding to each sub-drawing data:

[0170] In the case where there is associated sub-drawing data drawn on the same material as the current sub-drawing data in the sub-drawing data whose corresponding target material has been determined before the target material corresponding to the current sub-drawing data is determined, the target material corresponding to the associated sub-drawing data is determined as the target material corresponding to the current sub-drawing data;

[0171] In the case that there is no sub-engraving data engraved on the same material as the current sub-engraving data in the sub-engraving data corresponding to the target material determined before the current sub-engraving data, at least one candidate material is displayed on the third display interface, wherein the candidate material is at least one preset material that allows cutting with a tool corresponding to the current sub-engraving data; in response to a second selection operation performed on the candidate material, the candidate material selected by the second selection operation is determined as the target material corresponding to the current sub-engraving data.

[0172] In an exemplary embodiment, when the target drawing data includes a drawing picture, the picture data of the drawing picture of the target drawing data is picture data in a scalable vector graphics format; when the target drawing data includes a drawing text, the text data of the drawing text of the target drawing data is text data in an extensible markup language format.

[0173] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware, wherein the hardware environment includes a network environment.

[0174] According to another aspect of the embodiments of the present application, a storage medium is further provided. Optionally, in this embodiment, the storage medium can be used to execute the program code of any of the above-mentioned plotting control methods in the embodiments of the present application.

[0175] Optionally, in this embodiment, the storage medium may be located on at least one network device among a plurality of network devices in the network shown in the above embodiment.

[0176] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:

[0177] S1, determining a target engraving content, wherein the target engraving content is the content to be engraved by the engraving device, and engraving data corresponding to the target engraving content is the target engraving data;

[0178] S2, according to the cutting type corresponding to the target engraving data and the material color corresponding to the target engraving data, separating the target engraving data into a group of sub-engraving data, wherein each sub-engraving data corresponds to a tool;

[0179] S3, based on the target material corresponding to each sub-drawing data, determining the preset drawing parameters corresponding to each sub-drawing data, wherein the target material corresponding to each sub-drawing data is the material used for drawing according to each sub-drawing data, and the preset drawing parameters corresponding to each sub-drawing data are preset drawing parameters of the target material corresponding to each sub-drawing data under the tool corresponding to each sub-drawing data;

[0180] S4, sending each sub-drawing data and the preset drawing parameters corresponding to each sub-drawing data to the drawing device, so that the drawing device performs drawing according to each sub-drawing data using the preset drawing parameters corresponding to each sub-drawing data.

[0181] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, which will not be described in detail in this embodiment.

[0182] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a ROM, a RAM, a mobile hard disk, a magnetic disk, or an optical disk.

[0183] According to another aspect of the embodiments of the present application, an electronic device for implementing the above-mentioned engraving control method is also provided. The electronic device may be a smart device, a server, a terminal, or a combination thereof.

[0184] Fig.23 is a structural block diagram of an optional electronic device according to an embodiment of the present application, such as Fig.23 As shown, it includes a processor 2302, a communication interface 2304, a memory 2306 and a communication bus 2308, wherein the processor 2302, the communication interface 2304 and the memory 2306 communicate with each other through the communication bus 2308, wherein,

[0185] Memory 2306, used for storing computer programs;

[0186] The processor 2302 is used to execute the computer program stored in the memory 2306 to implement the following steps:

[0187] S1, determining a target engraving content, wherein the target engraving content is the content to be engraved by the engraving device, and engraving data corresponding to the target engraving content is the target engraving data;

[0188] S2, according to the cutting type corresponding to the target engraving data and the material color corresponding to the target engraving data, separating the target engraving data into a group of sub-engraving data, wherein each sub-engraving data corresponds to a tool;

[0189] S3, based on the target material corresponding to each sub-drawing data, determining the preset drawing parameters corresponding to each sub-drawing data, wherein the target material corresponding to each sub-drawing data is the material used for drawing according to each sub-drawing data, and the preset drawing parameters corresponding to each sub-drawing data are preset drawing parameters of the target material corresponding to each sub-drawing data under the tool corresponding to each sub-drawing data;

[0190] S4, sending each sub-drawing data and the preset drawing parameters corresponding to each sub-drawing data to the drawing device, so that the drawing device performs drawing according to each sub-drawing data using the preset drawing parameters corresponding to each sub-drawing data.

[0191] Optionally, the communication bus may be a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.23The communication interface is used for communication between the above electronic device and other devices.

[0192] The memory may include RAM, or may include non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0193] As an example, the memory 2306 may include but is not limited to the first determination unit 2202, separation unit 2204, second determination unit 2206 and sending unit 2208 in the above-mentioned engraving control device. In addition, it may also include but is not limited to other module units in the above-mentioned engraving control device, which will not be repeated in this example.

[0194] The above-mentioned processor can be a general-purpose processor, which can include but not be limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0195] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0196] It can be understood by those skilled in the art that Fig.23 The structure shown is for illustration only. The device for implementing the above-mentioned engraving control method may be a terminal device, which may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Fig.23 It does not limit the structure of the above electronic device. For example, the electronic device may also include Fig.23 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Fig.23 Different configurations shown.

[0197] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.

[0198] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0199] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0200] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0201] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, units or modules, which can be electrical or other forms.

[0202] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.

[0203] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist physically separately, or at least two units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0204] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for controlling a drawing, characterized in that: include: Determine target engraving content, wherein the target engraving content is content to be engraved by the engraving device, and engraving data corresponding to the target engraving content is the target engraving data; Separating the target engraving data into a group of sub-engraving data according to the cutting type corresponding to the target engraving data and the material color corresponding to the target engraving data, wherein each of the sub-engraving data corresponds to a tool; Based on the target material corresponding to each of the sub-engraving data, the preset engraving parameters corresponding to each of the sub-engraving data are determined, wherein the target material corresponding to each of the sub-engraving data is the material used for engraving according to each of the sub-engraving data, and the preset engraving parameters corresponding to each of the sub-engraving data are preset engraving parameters of the target material corresponding to each of the sub-engraving data under the tool corresponding to each of the sub-engraving data; Each of the sub-drawing data and the preset drawing parameters corresponding to each of the sub-drawing data are sent to the drawing device, so that the drawing device performs drawing according to each of the sub-drawing data using the preset drawing parameters corresponding to each of the sub-drawing data.

2. The method according to claim 1, characterized in that The step of determining the target engraving content includes: Displaying at least one engraving picture on the first display interface, wherein the engraving picture includes at least one layer of engraving pictures, and each of the layer of engraving pictures corresponds to a combination of cutting type and material color; In response to a first selection operation performed on the engraving picture, a target engraving picture selected by the first selection operation is displayed on a first editing canvas within the first display interface, wherein the target engraving picture includes an engraving picture of at least one target layer, the target engraving content includes the target engraving picture, and the target engraving data includes image data of the engraving picture of each target layer.

3. The method according to claim 2, characterized in that After displaying the target depicted image selected by the first selection operation on the first editing canvas in the first display interface, the method further includes: In response to a first editing operation performed on the target depicted picture, adjusting the depicted picture of each target layer to obtain the adjusted target depicted picture, and displaying the adjusted target depicted picture on the first editing canvas, wherein the first editing operation is used to modify the picture parameters of the target depicted picture; or In response to a second editing operation performed on a specified target layer among the at least one target layer, the drawing image of the specified target layer is adjusted to obtain an adjusted drawing image of the specified target layer, and the adjusted drawing image of the specified target layer is displayed on the first editing canvas, wherein the second editing operation is used to modify image parameters of the drawing image of the specified target layer.

4. The method according to claim 2, characterized in that: The method further comprises: In response to a selection operation performed on the depicted image, a cutting type pre-configured for the depicted image of each target layer is loaded.

5. The method according to claim 1, characterized in that The step of determining the target engraving content includes: Determine a target engraving text and a target font to be engraved, wherein the target font is a font used to engrave the target engraving text, and the font data of the target font includes target character data of at least one preset character, and the target character data of each preset character is used to specify a baseline and a character path of each preset character of the target font; The target engraving text of the target font is displayed on a second editing canvas within a second display interface, wherein the target engraving text includes at least one engraving character, the target engraving text of the target font is displayed according to target character data of each engraving character, the target engraving content includes the target engraving text of the target font, and the target engraving data includes target character data of each engraving character.

6. The method according to claim 5, characterized in that The step of determining the target engraving text and the target font to be engraved includes: In response to a text input operation performed on the second editing canvas, the target engraved text in a default font is displayed on the second editing canvas, and at least one candidate font is displayed on the second display interface, wherein the text input by the text input operation is the target engraved text; In response to the selection operation performed on the target font, the target inscribed text of the default font displayed on the second editing canvas is updated to the target inscribed text of the target font according to the target character data of each inscribed character.

7. The method according to claim 5, characterized in that After displaying the target carved text in the target font on the second editing canvas in the second display interface, the method further includes: In response to a third editing operation performed on the target engraved text, the target character data of each engraved character is adjusted to obtain the adjusted target character data of each engraved character, and the adjusted target engraved text of the target font is displayed on the second editing canvas according to the adjusted target character data of each engraved character, wherein the third editing operation is used to modify the text parameters of the target engraved text; or In response to a fourth editing operation performed on a designated carved character among the at least one carved character, the target character data of the designated carved character is adjusted to obtain the adjusted target character data of the designated carved character, and the designated carved character of the adjusted target font is displayed on the second editing canvas according to the adjusted target character data of the designated carved character, wherein the fourth editing operation is used to modify the text parameters of the designated carved character.

8. The method according to any one of claims 1 to 7, characterized in that Before determining the preset drawing parameters corresponding to each of the sub-drawing data based on the target material corresponding to each of the sub-drawing data, the method further includes: Each of the sub-drawing data is used as the current sub-drawing data to perform the following determination operation to obtain the target material corresponding to each of the sub-drawing data: In the case where there is associated sub-drawing data drawn on the same material as the current sub-drawing data in the sub-drawing data whose corresponding target material has been determined before the target material corresponding to the current sub-drawing data is determined, the target material corresponding to the associated sub-drawing data is determined as the target material corresponding to the current sub-drawing data; In a case where there is no sub-engraving data engraved on the same material as the current sub-engraving data in the sub-engraving data corresponding to the target material determined before the current sub-engraving data, at least one candidate material is displayed on the third display interface, wherein the candidate material is at least one preset material that allows cutting with a tool corresponding to the current sub-engraving data; in response to a second selection operation performed on the candidate material, the candidate material selected by the second selection operation is determined as the target material corresponding to the current sub-engraving data.

9. The method according to any one of claims 1 to 7, characterized in that In the case where the target engraving data includes an engraving picture, the picture data of the engraving picture of the target engraving data is picture data in a scalable vector graphics format; In the case that the target carving data includes carving text, the text data of the carving text of the target carving data is text data in an extensible markup language format.

10. A carving control device, characterized in that: include: A first determining unit is used to determine a target engraving content, wherein the target engraving content is the content to be engraved by the engraving device, and the engraving data corresponding to the target engraving content is the target engraving data; A separation unit, used for separating the target engraving data into a group of sub-engraving data according to the cutting type corresponding to the target engraving data and the material color corresponding to the target engraving data, wherein each of the sub-engraving data corresponds to a tool; A second determining unit is used to determine the preset drawing parameters corresponding to each of the sub-drawing data based on the target material corresponding to each of the sub-drawing data, wherein the target material corresponding to each of the sub-drawing data is the material used for drawing according to each of the sub-drawing data, and the preset drawing parameters corresponding to each of the sub-drawing data are preset drawing parameters of the target material corresponding to each of the sub-drawing data under the tool corresponding to each of the sub-drawing data; The sending unit is used to send each of the sub-drawing data and the preset drawing parameters corresponding to each of the sub-drawing data to the drawing device, so that the drawing device can draw according to each of the sub-drawing data using the preset drawing parameters corresponding to each of the sub-drawing data.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method according to any one of claims 1 to 9 when executed by a processor.

12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.