Image design method and device, storage medium and electronic equipment

By obtaining and updating image design sample data, generating replacement instructions and sending them to service equipment, the problem of cumbersome and time-consuming image design operations is solved, and a fast and simple design process is achieved.

CN119131201APending Publication Date: 2024-12-13DUXIAOMAN TECH (BEIJING) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411284048.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The existing image design technology is cumbersome and time-consuming, and lacks convenient solutions.

Method used

By obtaining the initial design sample data, the target design sample data is determined, and when the target module replacement operation is detected, a replacement instruction is generated and sent to the service device to update the design sample data to generate the target design image.

Benefits of technology

Convenient image design is achieved, significantly reducing design time and quickly generating target design images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119131201A_ABST
    Figure CN119131201A_ABST
Patent Text Reader

Abstract

The invention provides an image design method and device, a storage medium and electronic equipment, and the method comprises the steps: obtaining initial design sample manuscript data, the initial design sample manuscript data comprises the module attribute of each module in at least one module; determining target design sample manuscript data based on the initial design sample manuscript data; when a target module replacement operation for a design sample manuscript indicated by the target design sample manuscript data is detected, determining a target module replacement instruction based on a replacement keyword indicated by the target module replacement operation, and sending the target module replacement instruction to target service equipment, the target service equipment generates to-be-replaced data based on the data indicated by the target module replacement instruction; and when to-be-replaced data returned by the target service equipment is received, updating the target design sample manuscript data based on the to-be-replaced data so as to generate a target design image based on the updated target design sample manuscript data. According to the embodiment of the invention, image design can be conveniently carried out so as to effectively reduce time consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an image design method, device, storage medium and electronic equipment. Background Art

[0002] Currently, image design is widely used in various scenarios; however, related technologies usually require designers to manually design according to needs, which makes the operation cumbersome and time-consuming. Based on this, there is currently no good solution for how to conveniently design images to reduce time consumption. Summary of the invention

[0003] In view of this, the embodiments of the present invention provide an image design method, device, storage medium and electronic device to solve the problems that the related technical operations are cumbersome and time-consuming; that is, the embodiments of the present invention can conveniently perform image design to effectively reduce time consumption, thereby quickly and easily generating a target design image.

[0004] According to one aspect of an embodiment of the present invention, there is provided an image design method, the method comprising:

[0005] Acquire initial design draft data, wherein the initial design draft data includes module attributes of each module in at least one module, wherein the at least one module includes M text modules and N picture modules, where M and N are both non-negative integers;

[0006] Based on the initial design draft data, target design draft data is determined, where one design draft data is used to indicate one design draft, and the design draft indicated by one design draft data includes each module indicated by the corresponding design draft data;

[0007] When a target module replacement operation for the design sample indicated by the target design sample data is detected, a target module replacement instruction is determined based on a replacement keyword indicated by the target module replacement operation, and the target module replacement instruction is sent to a target service device, so that the target service device generates data to be replaced based on the data indicated by the target module replacement instruction;

[0008] When the data to be replaced returned by the target service device is received, the target design draft data is updated based on the data to be replaced, so as to generate a target design image based on the updated target design draft data.

[0009] According to another aspect of an embodiment of the present invention, there is provided an image design device, the device comprising:

[0010] An acquisition unit, configured to acquire initial design draft data, wherein the initial design draft data includes module attributes of each module in at least one module, wherein the at least one module includes M text modules and N picture modules, where M and N are both non-negative integers;

[0011] A processing unit, configured to determine target design draft data based on the initial design draft data, wherein one design draft data is used to indicate one design draft, and the design draft indicated by one design draft data includes each module indicated by the corresponding design draft data;

[0012] The processing unit is further configured to, when a target module replacement operation for the design sample indicated by the target design sample data is detected, determine a target module replacement instruction based on a replacement keyword indicated by the target module replacement operation;

[0013] an output unit, configured to send the target module replacement instruction to a target service device, so that the target service device generates data to be replaced based on the data indicated by the target module replacement instruction;

[0014] The processing unit is further configured to update the target design draft data based on the data to be replaced when receiving the data to be replaced returned by the target service device, so as to generate a target design image based on the updated target design draft data.

[0015] According to another aspect of an embodiment of the present invention, an electronic device is provided, comprising a processor and a memory storing a program, wherein the program comprises instructions, which, when executed by the processor, enable the processor to perform the above-mentioned method.

[0016] According to another aspect of an embodiment of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the above-mentioned method.

[0017] The embodiment of the present invention can obtain initial design draft data, the initial design draft data includes the module attributes of each module in at least one module, at least one module includes M text modules and N picture modules, M and N are both non-negative integers; and based on the initial design draft data, the target design draft data is determined, one design draft data is used to indicate a design draft, and the design draft indicated by one design draft data includes each module indicated by the corresponding design draft data. Based on this, when the target module replacement operation for the design draft indicated by the target design draft data is detected, the target module replacement instruction is determined based on the replacement keyword indicated by the target module replacement operation, and the target module replacement instruction is sent to the target service device, so that the target service device generates the data to be replaced based on the data indicated by the target module replacement instruction; when the data to be replaced returned by the target service device is received, the target design draft data is updated based on the data to be replaced, so as to generate the target design image based on the updated target design draft data. It can be seen that the embodiment of the present invention can conveniently perform image design to effectively reduce time consumption, thereby quickly and easily generating the target design image. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Further details, features and advantages of the invention are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0019] Figure 1 A schematic flow chart of an image design method according to an exemplary embodiment of the present invention is shown;

[0020] Figure 2 A schematic flow chart of another image design method according to an exemplary embodiment of the present invention is shown;

[0021] Figure 3a A schematic diagram showing a module attribute setting area according to an exemplary embodiment of the present invention;

[0022] Figure 3b A schematic diagram showing another module attribute setting area according to an exemplary embodiment of the present invention;

[0023] Figure 4 A schematic diagram showing another module attribute setting area according to an exemplary embodiment of the present invention;

[0024] Figure 5a A schematic diagram of updating a font copy according to an exemplary embodiment of the present invention is shown;

[0025] Figure 5b A schematic diagram showing an update picture according to an exemplary embodiment of the present invention is shown;

[0026] Figure 6A schematic block diagram of an image design device according to an exemplary embodiment of the present invention is shown;

[0027] Figure 7 A block diagram of an exemplary electronic device that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0028] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.

[0029] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0030] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0031] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0032] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.

[0033] It should be noted that the execution subject of the image design method provided in the embodiment of the present invention may be one or more electronic devices, which is not limited in the embodiment of the present invention; wherein, the electronic device may be a terminal (i.e., a client) or a server, then when the execution subject includes multiple electronic devices, and the multiple electronic devices include at least one terminal and at least one server, the image design method provided in the embodiment of the present invention may be jointly executed by the terminal and the server. Optionally, the electronic device may include an image design platform. In this case, the execution subject of the image design method provided in the embodiment of the present invention may also be the image design platform in the electronic device, that is, the image design method provided in the embodiment of the present invention may be executed by the image design platform in the electronic device, and so on.

[0034] Accordingly, the terminals mentioned here may include but are not limited to: smart phones, tablet computers, laptops, desktop computers, intelligent voice interaction devices, etc. The server mentioned here may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, etc.

[0035] Based on the above description, an embodiment of the present invention proposes an image design method, which can be executed by the electronic device (terminal or server) mentioned above; or, the image design method can be executed by the terminal and the server together; or, the image design method can be executed by the image design platform in the electronic device, etc. For the sake of convenience, the following description will be given by taking the electronic device executing the image design method as an example; Figure 1 As shown, the image design method may include the following steps S101-S104:

[0036] S101, obtaining initial design draft data, the initial design draft data including module attributes of each module in at least one module, the at least one module including M text modules and N picture modules, M and N are both non-negative integers.

[0037] Among them, a text module can be used to display a font copy (ie, the text content of the corresponding text module), and a picture module can be used to display a picture.

[0038] In the embodiment of the present invention, the initial design draft data may be obtained in the following ways, but not limited to:

[0039] The first acquisition method: the electronic device can obtain the initial design draft; and parse the initial design draft to obtain the draft parsing data of the initial design draft, and the draft parsing data can include the module parsing data of each module, that is, the module parsing data of each module in the initial design draft; based on this, the module attributes of each module can be determined based on the module parsing data of each module, so as to obtain the initial design draft data. Optionally, the electronic device can respond to the draft upload operation detected in the draft upload interface, and use the draft indicated by the draft upload operation as the initial design draft to obtain the initial design draft, such as the electronic device can respond to the draft upload operation detected in the draft upload interface through the image design platform, and at this time, the draft indicated by the draft upload operation can be uploaded to the image design platform, so as to obtain the initial design draft through the image design platform; or, the electronic device can obtain the draft download link, and at this time, the draft downloaded based on the draft download link can be used as the initial design draft, and so on; the embodiment of the present invention is not limited to this. In this case, the user (such as a designer, etc.) can perform a sample upload operation on the sample upload interface, so that the electronic device responds to the sample upload operation detected on the sample upload interface.

[0040] Optionally, when parsing the initial design draft to obtain draft parsing data of the initial design draft, the electronic device may parse the initial design draft through a file parser (such as PSD.js (an open source SDK (Software Development Kit) for parsing design drafts), etc.), to obtain draft parsing data of the initial design draft, and the draft parsing data may be JSON data (JavaScript Object Notation, a lightweight data interaction format), that is, the initial design draft may be parsed into corresponding JSON data. In this case, the module parsing data of a module may be the original JSON data of the corresponding module; illustratively, when any module is a text module, the module parsing data of any module may be the original JSON data of the text module, when any module is an image module, the module parsing data of any module may be the original JSON data of the image module, and so on. It should be understood that the design draft may be composed of at least one module in a specific arrangement order (i.e., in a corresponding hierarchical order), and each module has Respective module attributes; that is, the sample draft parsing data can also be used to indicate the arrangement order of each module, that is, it can be used to indicate the hierarchy of each module; illustratively, the module parsing data of each module in the sample draft parsing data can be arranged in order from low to high hierarchy, or in order from high to low hierarchy, and can also include the hierarchy identification of each module, etc.; the embodiment of the present invention is not limited to this. Among them, a hierarchy identification can be used to indicate the hierarchy of the corresponding module; optionally, a hierarchy identification can include the hierarchy number of the corresponding module and / or the sample identification of the design sample to which the corresponding module belongs, etc., which is not limited to this in the embodiment of the present invention.

[0041] Optionally, the module parsing data of a module may include the attribute information of the corresponding module under each parsing attribute in at least one parsing attribute, and a module may have at least one parsing attribute; optionally, at least one parsing attribute of a module may include type (type), in which case, the electronic device may determine whether any module is a text module or a picture module based on the parsing attribute "type" of any module; for example, when the type in the module parsing data of any module is a text module type identifier (such as "text" (text, i.e., font copywriting)) (i.e., when the type of any module is a text module type identifier), it can be determined that any module is a text module, and when the type in the module parsing data of any module is a picture module type identifier (such as "layer" (layer)) (i.e., when the type of any module is a picture module type identifier), it can be determined that any module is a picture module, and so on. Based on this, the electronic device may first determine whether any module is a text module or a picture module. Optionally, both the text module type identifier and the picture module type identifier may be set according to experience or according to actual needs, and the embodiment of the present invention does not limit this.

[0042] Optionally, at least one parsed attribute of a text module may include, but is not limited to: left (width value from the upper right corner of the corresponding design draft), top (height value from the upper right corner of the corresponding design draft), width (width, which can be in pixels), height (height, which can be in pixels), text (font copy), fontFamily (font), fontSize (JSON font size), transform.yy (proportional height), fontWeight (font weight, i.e., the thickness of the word), fontStyle (font style), lineHeight (line spacing), transform.a (proportional width), color (font color), textAlign (font arrangement), type, etc.; the embodiment of the present invention does not limit this. Optionally, at least one parsed attribute of an image module may include, but is not limited to: left, top, width, height, image (image address), opacity (image transparency), etc.; the embodiment of the present invention does not limit this.

[0043] Optionally, the module attributes of a text module may include the attribute information of each text attribute in the text attribute set, and the text attribute set may include at least one of the following attributes: position (here may refer to the position of the text layer where the corresponding module is located), width (here may refer to the width of the text layer where the corresponding module is located), height (here may refer to the height of the text layer where the corresponding module is located), font copy, level, font, font size, font weight, font style, line spacing, word spacing, font color, font arrangement and label, etc.; the embodiment of the present invention is not limited to this. Optionally, the module attributes of an image module may include the attribute information of each image attribute in the image attribute set, and the image attribute set may include at least one of the following attributes: position (here may refer to the position of the image layer where the corresponding module is located), width (here may refer to the width of the image layer where the corresponding module is located), height (here may refer to the height of the image layer where the corresponding module is located), label, level, image address and image transparency, etc.; the embodiment of the present invention is not limited to this. Among them, the text layer can also be called a text layer.

[0044] Based on this, when determining the module attributes of each module based on the module parsing data of each module, for any module in at least one module, if any module is a text module, the attribute information of any module under each text attribute in the text attribute set can be determined based on the module parsing data of any module, thereby adding the attribute information of any module under each text attribute to the module attributes of any module to determine the module attributes of any module. Exemplarily, the attribute information (i.e., values) of the parsed attributes "left" and "top" in the module parsing data of any module can be used to represent the attribute information of any module under the text attribute "position". In this case, the position can refer to the coordinates of the text layer where any module is located from the upper right corner of the corresponding design draft, which can be in pixels; and / or, the attribute information of the parsed attributes "width", "height", "text", "fontFamily", "fontWeight", "fontStyle", "lineHeight", "color" and "textAlign" in the module parsing data of any module (i.e., the attribute information of any module under these parsed attributes) can be used as the attribute information of any module under the text attributes "width", "height", "font text", "font", "font weight", "font style", "line spacing", "font color" and "font arrangement" in turn; and / or, the attribute information of the parsed attributes "fontSize" and "transform.yy" in the module parsing data of any module can be used to calculate the attribute information of any module under the text attribute "font size". For example, the attribute information of any module under the text attribute "font size" can be used. The attribute information of the attribute "fontSize" parsed in the module parsing data of any module × the attribute information of the parsed attribute "transform.yy"; and / or, the attribute information of the attributes "fontSize" and "transform.a" parsed in the module parsing data of any module can be used to calculate the attribute information of any module under the text attribute "character spacing", such as the attribute information of any module under the text attribute "character spacing" can be the attribute information of the attribute "fontSize" parsed in the module parsing data of any module × the attribute information of the parsed attribute "transform.a"; And / or, the attribute information of any module under the text attribute "level" can be determined based on the arrangement order of the module resolution data of each module in the sample resolution data. For example, when the module resolution data of each module in the sample resolution data are arranged in order from low to high levels, the arrangement position of the module resolution data of any module in the sample resolution data can be used as the attribute information of any module under the text attribute "level", or when the sample resolution data includes level identifiers of each module, the attribute information of any module under the text attribute "level" can be determined based on the level identifier of any module, and so on; the embodiments of the present invention are not limited to this.

[0045] Correspondingly, if any module is a picture module, the attribute information of any module under each picture attribute in the picture attribute set can be determined based on the module parsing data of any module, so as to add the attribute information of any module under each picture attribute to the module attributes of any module to determine the module attributes of any module. Exemplarily, the attribute information of the parsed attributes "left" and "top" in the module parsing data of any module can be used to represent the attribute information of any module under the image attribute "position", where the position can refer to the coordinates of the image layer where any module is located from the upper right corner of the corresponding design draft, which can be in pixels; and / or, the attribute information of the parsed attributes "width", "height", "image" and "opacity" in the module parsing data of any module can be used as the attribute information of any module under the image attributes "width", "height", "image address" and "image transparency" in turn; and / or, the attribute information of any module under the image attribute "level" can be determined based on the arrangement order of the module parsing data of each module in the draft parsing data, or when the draft parsing data includes the level identification of each module, the attribute information of any module under the image attribute "level" can be determined based on the level identification of any module, and so on; the embodiments of the present invention are not limited to this.

[0046] The second acquisition method: the initial design draft data is stored in the storage space of the electronic device itself. In this case, the initial design draft data can be acquired from the storage space of the electronic device itself.

[0047] The third acquisition method: the electronic device may also respond to the sample data upload operation detected in the sample data upload interface, and use the design sample data indicated by the sample data upload operation as the initial design sample data, etc. In this case, the user may perform the sample data upload operation in the sample data upload interface, so that the electronic device responds to the sample data upload operation detected in the sample data upload interface; optionally, the sample upload interface and the sample data upload interface may be the same interface or different interfaces, which is not limited in the embodiment of the present invention.

[0048] S102, based on the initial design draft data, determine the target design draft data, one design draft data is used to indicate one design draft, and the design draft indicated by one design draft data includes each module indicated by the corresponding design draft data.

[0049] Optionally, the target design draft data may include a label of each module in the H modules included in at least one module, that is, it may include the attribute information of each module under the label (such as text attributes or image attributes), that is, the module attribute of one module in the H modules may include the attribute information of the corresponding module under the label, and H is a positive integer. Among them, a design draft data is used to indicate a design draft, which may refer to a design draft data that can be used to represent a design draft, that is, it may refer to a design draft data that can be used to generate a design draft.

[0050] In an embodiment of the present invention, the attribute information of a module under an attribute (such as a text attribute or an image attribute) may also be referred to as the attribute of a module, such as the attribute information of a module under a tag may also be referred to as the tag of a module (i.e., tag attribute), or the attribute information of a module under a font copy may also be referred to as the font copy of a module (i.e., font copy attribute), or the attribute information of a module under an image address may also be referred to as the image address of a module (i.e., image address attribute), and so on; the embodiment of the present invention is not limited to this.

[0051] S103, when a target module replacement operation for a design sample indicated by the target design sample data is detected, a target module replacement instruction is determined based on a replacement keyword indicated by the target module replacement operation, and the target module replacement instruction is sent to a target service device, so that the target service device generates data to be replaced based on the data indicated by the target module replacement instruction.

[0052] Optionally, the number of target service devices may be one or more, and one target service device may be used to generate new font text and / or new images, which is not limited in the embodiments of the present invention. Optionally, when the number of target service devices is one (in this case, one target service device may be used to generate new font text and new images), the target module replacement instruction may be sent to the target service device regardless of whether the module acted upon by the target module replacement operation is a text module or an image module; when the number of target service devices is multiple, and different target service devices only support the generation of new font text or new images, the target service device corresponding to the module acted upon by the target module replacement operation may be determined, and the target module replacement instruction may be sent to the target service device corresponding to the module acted upon by the target module replacement operation, and so on. Optionally, when the module acted upon by the target module replacement operation is a text module, the target service device corresponding to the module acted upon by the target module replacement operation may be a target service device corresponding to the text module (i.e., a target service device that can be used to generate new font text); when the module acted upon by the target module replacement operation is a picture module, the target service device corresponding to the module acted upon by the target module replacement operation may be a target service device corresponding to the picture module (i.e., a target service device that can be used to generate new pictures). In this case, the text module may correspond to at least one target service device, the picture module may correspond to at least one target service device, and so on.

[0053] Optionally, the target service device may be Wenxin Yiyan (i.e., a service device for implementing Wenxin Yiyan), or AI (Artificial Intelligence) Creator (i.e., a service device for implementing AI Creator), etc.; this is not limited in the embodiments of the present invention.

[0054] S104, when the data to be replaced returned by the target service device is received, the target design draft data is updated based on the data to be replaced, so as to generate a target design image based on the updated target design draft data.

[0055] The embodiment of the present invention can obtain initial design draft data, the initial design draft data includes the module attributes of each module in at least one module, at least one module includes M text modules and N picture modules, M and N are both non-negative integers; and based on the initial design draft data, the target design draft data is determined, one design draft data is used to indicate a design draft, and the design draft indicated by one design draft data includes each module indicated by the corresponding design draft data. Based on this, when the target module replacement operation for the design draft indicated by the target design draft data is detected, the target module replacement instruction is determined based on the replacement keyword indicated by the target module replacement operation, and the target module replacement instruction is sent to the target service device, so that the target service device generates the data to be replaced based on the data indicated by the target module replacement instruction; when the data to be replaced returned by the target service device is received, the target design draft data is updated based on the data to be replaced, so as to generate the target design image based on the updated target design draft data. It can be seen that the embodiment of the present invention can conveniently perform image design to effectively reduce time consumption, thereby quickly and easily generating the target design image.

[0056] Based on the above description, the embodiment of the present invention further proposes a more specific image design method. Accordingly, the image design method can be executed by the electronic device (terminal or server) mentioned above; or, the image design method can be executed by the terminal and the server together; or, the image design method can be executed by the image design platform in the electronic device, etc. For the sake of convenience, the following description will be given by taking the electronic device executing the image design method as an example; please refer to Figure 2 , the image design method may include the following steps S201-S205:

[0057] S201, obtaining initial design draft data, the initial design draft data including module attributes of each module in at least one module, the at least one module including M text modules and N picture modules, M and N are both non-negative integers.

[0058] S202, in response to a property setting operation detected in a module property setting area of ​​any module indicated by the initial design draft data, the module properties of any module in the initial design draft data are updated using the property setting information indicated by the property setting operation to obtain updated initial design draft data.

[0059] Among them, when any module is a text module, the above-mentioned attribute setting operation may refer to a text module setting operation, and the text module setting operation may support the setting of attribute information of each text attribute in at least one text attribute included in the text attribute set; when any module is an image module, the above-mentioned attribute setting operation may refer to an image module setting operation, and the image module setting operation may support the setting of attribute information of each image attribute in at least one image attribute included in the image attribute set.

[0060] Optionally, the number of module attribute setting areas of any module may be one or more, which is not limited in the embodiment of the present invention; that is, different attributes may be set in the same area, or in different areas, and so on.

[0061] In an embodiment of the present invention, the electronic device may respond to a detected setting area display operation for a module property setting area of ​​any module and display the module property setting area of ​​any module. For example, the module display interface of the electronic device may include module identifiers of each module (one module may be one layer). Then, when the module identifier of any module is selected, the user may click or long-press the setting button in the module display interface (i.e., the pressing time is greater than a preset pressing time threshold) to implement the setting area display operation for the module property setting area of ​​any module, so that the electronic device displays the module property setting area of ​​any module, such as Figure 3a and Figure 3bAs shown; or, the module display interface may also include a label setting button, then when the module identifier of any module is selected, the user may click or long press the label setting button in the module display interface to realize the setting area display operation of the module attribute setting area of ​​any module, and the module attribute setting area of ​​any module displayed at this time may be the label setting area of ​​any module; or, the module attribute setting area of ​​any module (such as the area displayed by clicking the setting button) may include a label setting button, in which case the user may click or long press the label setting button to make the electronic device display the label setting area of ​​any module (another module attribute setting area of ​​any module can realize the setting area display operation of the module attribute setting area of ​​any module); or, the module display interface may include a label setting button, and the user may click or long press the label setting button to make the electronic device display the label setting area of ​​each module (that is, the module attribute setting area of ​​each module can be displayed at this time), etc.; the embodiments of the present invention are not limited to this. Optionally, a module identifier can be a text module identifier or a picture module identifier. A text module identifier can include but is not limited to text module indication information (such as T, used to indicate that the module is a text module) and the font text of the corresponding module, etc. A picture module identifier can include but is not limited to picture module indication information (such as a picture, used to indicate that the corresponding module is a picture module) and the picture of the corresponding module (i.e., the picture corresponding to the picture address), etc., and the embodiments of the present invention do not limit this. Optionally, the preset pressing time threshold can be set according to experience or according to actual needs, and the embodiments of the present invention do not limit this. Among them, Figure 3a and Figure 3b The X in the figure may represent the horizontal coordinate (such as the width from the upper right corner of the design draft), and the Y may represent the vertical coordinate (such as the height from the upper right corner of the design draft).

[0062] It should be noted that Figure 3a and Figure 3b The module attribute setting area is only exemplarily shown, and the embodiment of the present invention does not limit this; for example, Figure 3a The area may also include, but is not limited to, a font weight setting area, a font arrangement setting area, and a font color setting area, etc.; for example, Figure 3b The area may also include but is not limited to the image address setting area, etc. Optionally, the module attribute setting area of ​​a text module may also be referred to as the text module attribute setting area of ​​the corresponding text module, and the module attribute setting area of ​​an image module may also be referred to as the image module attribute setting area of ​​the corresponding image module.

[0063] In one embodiment, when any module is a text module, the attribute setting operation may include a text attribute setting operation for each text attribute in at least one text attribute. For example, when at least one text attribute includes a position and a label, the attribute setting operation may include a text attribute setting operation for the position and a text attribute setting operation for the label, etc. Exemplarily, the attribute information of a text attribute "label" may include text; or, may also include a title, etc.; this is not limited in the embodiment of the present invention.

[0064] In another implementation, when any module is a picture module, the attribute setting operation may include an image attribute setting operation for each of the at least one image attribute, such as when the at least one image attribute includes image transparency and a label, the attribute setting operation may include an image attribute setting operation for image transparency and an image attribute setting operation for a label, etc. Exemplarily, the attribute information of an image attribute "label" may include decorative elements and animals, and may also include activity elements, etc.; this is not limited in the embodiment of the present invention.

[0065] For example, any module is a picture module, and at least one picture attribute includes a picture attribute "label". Figure 4 As shown, the module attribute setting area (here may be the label setting area) of any module may include all picture label information, then the user may perform a label information selection operation on at least one picture label information, so that the electronic device responds to the detected label information selection operation, thereby using the picture label information (such as decorative elements and animals) selected by the label information selection operation as the attribute information of any module under the label, that is, as the label of any module, and so on.

[0066] Based on this, the attribute information of any attribute of any module can be set through the attribute setting operation to update the module attribute of any module. It should be understood that the attribute information set by the attribute setting operation can be the attribute setting information indicated by the attribute setting operation, such as the attribute setting information indicated by the picture attribute setting operation for the picture attribute "label" may include the selected label information; wherein, the attribute setting information indicated by the attribute setting operation for any module may include the attribute setting information set by the attribute setting operation (such as the picture attribute setting operation or the text attribute setting operation) for each attribute in at least one attribute (such as the text attribute or the picture attribute) of any module. It can be seen that the module attribute of any module in the updated initial design draft data can be the module attribute after the user sets it through the attribute setting operation. Optionally, the attribute information of a module under an attribute can be empty, such as when no label is set for any module, the attribute information of any module under the label can be empty, and so on.

[0067] S203, determining target design draft data based on the updated initial design draft data.

[0068] In the embodiment of the present invention, the user can perform a property setting operation on any module, so that the electronic device responds to the property setting operation on any module, thereby finally obtaining the target design draft data.

[0069] Exemplarily, the electronic device may continue to respond to the property setting operation of any module indicated by the updated initial design draft data until the target design draft data is obtained; or, the updated initial design draft data may be used as the target design draft data, and so on. Optionally, the electronic device may also respond to the detected module deletion operation and delete the module affected by the module deletion operation so that the target design draft data does not include the module properties of the module affected by the module deletion operation; and / or, it may also respond to the detected module level editing operation and update the level of each module according to the level order indicated by the module level editing operation, such as updating the arrangement order of each module in the target design draft data, and so on; the embodiments of the present invention are not limited to this.

[0070] In other embodiments, the electronic device may also use the initial design draft data as the target design draft data, and so on; the embodiment of the present invention does not limit the method for determining the target design draft data.

[0071] S204, when a target module replacement operation for a design draft indicated by the target design draft data is detected, a target module replacement instruction is determined based on a replacement keyword indicated by the target module replacement operation, and the target module replacement instruction is sent to a target service device, so that the target service device generates data to be replaced based on the data indicated by the target module replacement instruction.

[0072] Among them, the target module replacement operation for the design sample indicated by the target design sample data may refer to the target module replacement operation for any module indicated by the target design sample data, that is, it may refer to the target module replacement operation for any module in the design sample indicated by the target design sample data.

[0073] Optionally, for any module indicated by the target design sample data, the user can perform a target module replacement operation on any module, so that the electronic device detects the target module replacement operation for any module, even if the electronic device detects the target module replacement operation for any module in the design sample indicated by the target design sample data. Optionally, the module attribute setting area of ​​any module may include an AI replacement button, so the user can perform a click operation or a long press operation on the AI ​​replacement button, so that the electronic device displays the keyword input area of ​​any module. In this case, the user can enter a replacement keyword (which may include one or more words) in the keyword input area of ​​any module, and perform a click operation or a long press operation on the confirmation replacement button corresponding to the keyword input area of ​​any module, so as to perform a target module replacement operation on any module; or, the module attribute setting area of ​​any module may include a keyword input area and an AI replacement button, so after the user enters the replacement keyword in the keyword input area of ​​any module, the user can perform a click operation or a long press operation on the AI ​​replacement button, so as to perform a target module replacement operation on any module, etc.; the embodiment of the present invention does not limit the implementation method of the target replacement operation. Optionally, if any module is a text module, the AI ​​replacement button in the module property setting area of ​​any module can be an AI font change button; if any module is an image module, the AI ​​replacement button in the module property setting area of ​​any module can be an AI image change button, and so on.

[0074] Based on this, when determining the target module replacement instruction based on the replacement keyword indicated by the target module replacement operation, the electronic device can determine the module on which the target module replacement operation acts; if the module on which the target module replacement operation acts is a text module, the text replacement indication information of the module on which the target module replacement operation acts can be determined, and based on the text replacement indication information and the replacement keyword indicated by the target module replacement operation, the target module replacement instruction is determined so that the data indicated by the target module replacement instruction includes the text replacement indication information and the replacement keyword indicated by the target module replacement operation; if the module on which the target module replacement operation acts is a picture module, the picture replacement indication information of the module on which the target module replacement operation acts can be determined, and based on the picture replacement indication information and the replacement keyword indicated by the target module replacement operation, the target module replacement instruction is determined so that the data indicated by the target module replacement instruction includes the picture replacement indication information and the replacement keyword indicated by the target module replacement operation.

[0075] Optionally, the above-mentioned text replacement indication information may include but is not limited to: the label of the module on which the target module replacement operation acts (i.e., the attribute information under the text attribute "label"), the length of the text (i.e., the number of words in the font text, i.e., the number of words in the attribute information under the text attribute "font text"), etc., and the embodiments of the present invention do not limit this; for example, assuming that the label of any module is a title, the replacement keyword is keyword A, and the text length is 6, then the target module replacement instruction can be: generate a title text related to keyword A, and the text length is 6.

[0076] Optionally, the above-mentioned picture replacement indication information may include but is not limited to: the label of the module on which the target module replacement operation acts (i.e., the attribute information under the picture attribute "label"), the original picture (i.e., the picture corresponding to the attribute information under the picture attribute "picture address"), the width (i.e., the attribute information under the picture attribute "width"), the height (i.e., the attribute information under the picture attribute "height"), etc., which are not limited in the embodiment of the present invention; for example, assuming that the label of any module is a background picture, the replacement keyword is red, the width is 1080, and the height is 2190, then the target module replacement instruction may be: generate a red background picture with a width of 1080 and a height of 2190. Among them, one picture address may correspond to one picture, that is, one picture address may be used to download the corresponding picture.

[0077] S205, when the data to be replaced returned by the target service device is received, the target design draft data is updated based on the data to be replaced, so as to generate a target design image based on the updated target design draft data.

[0078] In the embodiment of the present invention, if the module acted by the target module replacement operation is a text module, the data to be replaced may be the text data to be replaced (i.e., the font copy to be replaced); if the module acted by the target module replacement operation is a picture module, the data to be replaced may be the picture data to be replaced. Optionally, the picture data to be replaced may be the picture to be replaced or the address of the picture to be replaced, which is not limited in the embodiment of the present invention.

[0079] Based on this, when updating the target design draft data based on the data to be replaced, if the module acted upon by the target module replacement operation is a text module, the font copy attribute of the module acted upon by the target module replacement operation in the target design draft data can be updated based on the data to be replaced (that is, the attribute information of the module acted upon by the target module replacement operation under the text attribute "font copy" can be updated, which can also be called the font copy of the module acted upon by the target module replacement operation), such as Figure 5a shown.

[0080] Then correspondingly, if the module acted upon by the target module replacement operation is a picture module, the picture address attribute of the module acted upon by the target module replacement operation in the target design draft data can be updated based on the data to be replaced (that is, the attribute information of the module acted upon by the target module replacement operation under the picture attribute "picture address" can be updated, which can also be called the picture address of the module acted upon by the target module replacement operation), so as to realize the updating of the target design draft data based on the data to be replaced, such as Figure 5b As shown. Optionally, when the data to be replaced is a picture to be replaced, the electronic device can upload the picture to be replaced to the picture storage server to obtain the picture address of the picture to be replaced (i.e., the picture address to be replaced), so as to use the picture address to be replaced to update the picture address of the module acted on by the target module replacement operation; or, when the data to be replaced is the picture address to be replaced, the picture address of the module acted on by the target module replacement operation can be directly updated with the data to be replaced, and so on; the embodiment of the present invention is not limited to this. Based on this, the update of the picture corresponding to the picture address of the module acted on by the target module replacement operation can be realized.

[0081] Optionally, the number of target module replacement operations may be one or more, which is not limited in the embodiment of the present invention; based on this, the user can perform a target module replacement operation on any module. Optionally, when the number of target module replacement operations is multiple, for any target module replacement operation among the multiple target module replacement operations, the target module replacement instruction corresponding to any target module replacement operation may be determined based on the replacement keyword indicated by any target module replacement operation, and the target module replacement instruction corresponding to any target module replacement operation is used to request the target service device for the data to be replaced corresponding to any target module replacement operation; Optionally, when the number of target service devices is multiple, the target service device corresponding to the module acted on by any target module replacement operation may be determined, so as to send the target module replacement instruction corresponding to any target module replacement operation to the target service device corresponding to the module acted on by any target module replacement operation, so that the target module replacement instruction corresponding to any target module replacement operation can be used to request the target service device corresponding to the module acted on by any target module replacement operation for the data to be replaced corresponding to any target module replacement operation. It should be understood that when the number of target service devices is one, the target service devices corresponding to the modules acted on by different target module replacement operations are the same, that is, the same target service device.

[0082] Then correspondingly, when there are multiple target module replacement operations, the data to be replaced corresponding to any target module replacement operation can be received (such as the data to be replaced corresponding to any target module replacement operation returned by the target service device); based on this, the module properties of the module acted on by any target module replacement operation in the target design draft data can be updated based on the data to be replaced corresponding to any target module replacement operation, so as to update the target design draft data based on the data to be replaced corresponding to any target module replacement operation. In this case, the electronic device can update the module properties of the module acted on by the corresponding target module replacement operation based on the data to be replaced corresponding to each target module replacement operation in the multiple target module replacement operations.

[0083] Based on this, after updating the target design draft data, the updated target design draft data can be obtained. Optionally, when generating a target design image based on the updated target design draft data, the module attributes of each module in the updated target design draft data can be used to generate the target design image; or, the updated target design draft data can continue to be updated in response to the detected target module replacement operation and / or attribute setting operation until the update is stopped, so as to generate the target design image using the current design draft data (i.e., the design draft data when the update is stopped), that is, the module attributes of each module in the current design draft data can be used to generate the target design image, and so on; the embodiment of the present invention is not limited to this.

[0084] After acquiring the initial design draft data, the embodiment of the present invention can respond to the property setting operation detected in the module property setting area of ​​any module indicated by the initial design draft data, and use the property setting information indicated by the property setting operation to update the module property of any module in the initial design draft data to obtain the updated initial design draft data; and determine the target design draft data based on the updated initial design draft data. Based on this, when the target module replacement operation for the design draft indicated by the target design draft data is detected, the target module replacement instruction can be determined based on the replacement keyword indicated by the target module replacement operation, and the target module replacement instruction can be sent to the target service device, so that the target service device generates the data to be replaced based on the data indicated by the target module replacement instruction; when the data to be replaced returned by the target service device is received, the target design draft data can be updated based on the data to be replaced, so as to generate the target design image based on the updated target design draft data. It can be seen that the embodiments of the present invention can realize the precipitation of design specifications by precipitating design drafts into templates online; based on this, AI capabilities can be provided to combine templates and requirements to generate target design images that meet the specifications and match the relevant keywords, so that the design can be completed quickly, and the target image design that matches the theme (i.e. the given keywords) can be quickly given, which greatly saves time and manpower.

[0085] Based on the description of the above-mentioned related embodiments of the image design method, the embodiment of the present invention further proposes an image design device, which may be a computer program (including program code) running in an electronic device; Figure 6 As shown, the image design device may include an acquisition unit 601, a processing unit 602, and an output unit 603. The image design device may execute Figure 1 or Figure 2 The image design method shown, that is, the image design device can run the above units:

[0086] An acquisition unit 601 is used to acquire initial design draft data, wherein the initial design draft data includes module attributes of each module in at least one module, wherein the at least one module includes M text modules and N picture modules, where M and N are both non-negative integers;

[0087] The processing unit 602 is used to determine target design draft data based on the initial design draft data, where one design draft data is used to indicate one design draft, and the design draft indicated by one design draft data includes each module indicated by the corresponding design draft data;

[0088] The processing unit 602 is further configured to, when a target module replacement operation for the design sample indicated by the target design sample data is detected, determine a target module replacement instruction based on a replacement keyword indicated by the target module replacement operation;

[0089] An output unit 603 is used to send the target module replacement instruction to a target service device, so that the target service device generates data to be replaced based on the data indicated by the target module replacement instruction;

[0090] The processing unit 602 is further configured to update the target design draft data based on the data to be replaced when receiving the data to be replaced returned by the target service device, so as to generate a target design image based on the updated target design draft data.

[0091] In one implementation, when the processing unit 602 determines the target design draft data based on the initial design draft data, it can be specifically used to:

[0092] In response to a property setting operation detected in a module property setting area of ​​any module indicated by the initial design draft data, the module property of any module in the initial design draft data is updated using the property setting information indicated by the property setting operation to obtain updated initial design draft data;

[0093] Based on the updated initial design draft data, target design draft data is determined.

[0094] In another implementation, the module attribute of a text module includes the attribute information of each text attribute in the text attribute set, and the module attribute of an image module includes the attribute information of each image attribute in the image attribute set;

[0095] Wherein, when any of the modules is a text module, the attribute setting operation refers to a text module setting operation, and the text module setting operation supports setting the attribute information of each text attribute in at least one text attribute included in the text attribute set; when any of the modules is a picture module, the attribute setting operation refers to a picture module setting operation, and the picture module setting operation supports setting the attribute information of each picture attribute in at least one picture attribute included in the picture attribute set;

[0096] The text attribute set includes at least one of the following attributes: position, width, height, font text, level, font, font size, font weight, font style, line spacing, character spacing, font color, font arrangement and label; the image attribute set includes at least one of the following attributes: position, width, height, label, level, image address and image transparency.

[0097] In another implementation manner, when acquiring the initial design draft data, the acquiring unit 601 may be specifically used to:

[0098] Get initial design draft;

[0099] Parsing the initial design draft to obtain draft parsing data of the initial design draft, wherein the draft parsing data includes module parsing data of each module;

[0100] Based on the module parsing data of each module, the module attributes of each module are determined to achieve the acquisition of initial design draft data.

[0101] In another implementation, when the processing unit 602 determines the target module replacement instruction based on the replacement keyword indicated by the target module replacement operation, it may be specifically configured to:

[0102] Determine the module on which the target module replacement operation is performed;

[0103] If the module acted upon by the target module replacement operation is a text module, determining text replacement indication information of the module acted upon by the target module replacement operation, and determining a target module replacement instruction based on the text replacement indication information and a replacement keyword indicated by the target module replacement operation, so that the data indicated by the target module replacement instruction includes the text replacement indication information and the replacement keyword indicated by the target module replacement operation;

[0104] If the module on which the target module replacement operation acts is an image module, the image replacement indication information of the module on which the target module replacement operation acts is determined, and based on the image replacement indication information and the replacement keyword indicated by the target module replacement operation, the target module replacement instruction is determined so that the data indicated by the target module replacement instruction includes the image replacement indication information and the replacement keyword indicated by the target module replacement operation.

[0105] In another implementation, if the module acted upon by the target module replacement operation is a text module, the data to be replaced is the text data to be replaced; if the module acted upon by the target module replacement operation is a picture module, the data to be replaced is the picture data to be replaced; when the processing unit 602 updates the target design draft data based on the data to be replaced, it can be specifically used to:

[0106] If the module acted upon by the target module replacement operation is a text module, then updating the font and text attributes of the module acted upon by the target module replacement operation in the target design draft data based on the data to be replaced;

[0107] If the module affected by the target module replacement operation is an image module, the image address attribute of the module affected by the target module replacement operation in the target design draft data is updated based on the data to be replaced, so as to implement the updating of the target design draft data based on the data to be replaced.

[0108] In another implementation manner, the number of the target module replacement operations is multiple, and when the processing unit 602 determines the target module replacement instruction based on the replacement keyword indicated by the target module replacement operation, it can be specifically used to:

[0109] For any target module replacement operation among the multiple target module replacement operations, based on a replacement keyword indicated by the any target module replacement operation, determining a target module replacement instruction corresponding to the any target module replacement operation, wherein the target module replacement instruction corresponding to the any target module replacement operation is used to request the target service device for the data to be replaced corresponding to the any target module replacement operation;

[0110] When the processing unit 602 updates the target design draft data based on the data to be replaced, it can be specifically used to:

[0111] Based on the data to be replaced corresponding to any target module replacement operation, the module properties of the module acted upon by any target module replacement operation in the target design draft data are updated.

[0112] According to one embodiment of the present invention, Figure 1or Figure 2 Each step involved in the method shown can be Figure 6 The image design device shown is executed by each unit. For example, Figure 1 The step S101 shown in FIG. 1 can be performed by Figure 6 The acquisition unit 601 shown in FIG. 1 is executed, and steps S102 and S104 can be performed by Figure 6 The processing unit 602 shown in FIG. 1 is executed, and step S103 can be performed by Figure 6 The processing unit 602 and the output unit 603 shown in FIG. 6 are executed together. For example, Figure 2 The step S201 shown in FIG. 1 can be performed by Figure 6 The acquisition unit 601 shown in FIG. 1 is executed, and steps S202, S203 and S205 can be performed by Figure 6 The processing unit 602 shown in FIG. 1 is executed, and step S204 can be performed by Figure 6 The processing unit 602 and the output unit 603 shown in FIG. 6 are executed together, and so on.

[0113] According to another embodiment of the present invention, Figure 6 Each unit in the image design device shown can be separately or completely combined into one or several other units to form, or one (some) of the units can be further divided into multiple functionally smaller units to form, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present invention. The above-mentioned units are divided based on logical functions. In actual applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present invention, any image design device may also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0114] According to another embodiment of the present invention, the program can be executed by running a program on a general electronic device such as a computer including a central processing unit (CPU), a random access memory medium (RAM), a read-only memory medium (ROM), and other processing elements and storage elements. Figure 1 or Figure 2 A computer program (including program code) for each step involved in the corresponding method shown in Figure 6 The image design device shown in and the image design method of the embodiment of the present invention are implemented. The computer program can be recorded on a computer storage medium, for example, and loaded into the above electronic device through the computer storage medium and run therein.

[0115] The embodiment of the present invention can obtain initial design draft data, the initial design draft data includes the module attributes of each module in at least one module, at least one module includes M text modules and N picture modules, M and N are both non-negative integers; and based on the initial design draft data, the target design draft data is determined, one design draft data is used to indicate a design draft, and the design draft indicated by one design draft data includes each module indicated by the corresponding design draft data. Based on this, when the target module replacement operation for the design draft indicated by the target design draft data is detected, the target module replacement instruction is determined based on the replacement keyword indicated by the target module replacement operation, and the target module replacement instruction is sent to the target service device, so that the target service device generates the data to be replaced based on the data indicated by the target module replacement instruction; when the data to be replaced returned by the target service device is received, the target design draft data is updated based on the data to be replaced, so as to generate the target design image based on the updated target design draft data. It can be seen that the embodiment of the present invention can conveniently perform image design to effectively reduce time consumption, thereby quickly and easily generating the target design image.

[0116] Based on the description of the above method embodiment and device embodiment, the exemplary embodiment of the present invention further provides an electronic device, including: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to enable the electronic device to perform the method according to the embodiment of the present invention when executed by the at least one processor.

[0117] Exemplary embodiments of the present invention also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform a method according to an embodiment of the present invention.

[0118] An exemplary embodiment of the present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform a method according to an embodiment of the present invention.

[0119] refer to Figure 7, a block diagram of an electronic device 700 that can be used as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0120] like Figure 7 As shown, the electronic device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0121] A plurality of components in the electronic device 700 are connected to the I / O interface 705, including: an input unit 706, an output unit 707, a storage unit 708, and a communication unit 709. The input unit 706 may be any type of device capable of inputting information to the electronic device 700, and the input unit 706 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 707 may be any type of device capable of presenting information, and may include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 708 may include but is not limited to a disk, an optical disk. The communication unit 709 allows the electronic device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0122] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above. For example, in some embodiments, the image design method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 700 via the ROM 702 and / or the communication unit 709. In some embodiments, the computing unit 701 may be configured to perform the image design method in any other appropriate manner (e.g., by means of firmware).

[0123] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0124] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0125] As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0126] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0127] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0128] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0129] Furthermore, it should be understood that what is disclosed above is only a preferred embodiment of the present invention, and certainly cannot be used to limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. An image design method, characterized in that: include: Acquire initial design draft data, wherein the initial design draft data includes module attributes of each module in at least one module, wherein the at least one module includes M text modules and N picture modules, where M and N are both non-negative integers; Based on the initial design draft data, target design draft data is determined, where one design draft data is used to indicate one design draft, and the design draft indicated by one design draft data includes each module indicated by the corresponding design draft data; When a target module replacement operation for the design sample indicated by the target design sample data is detected, a target module replacement instruction is determined based on a replacement keyword indicated by the target module replacement operation, and the target module replacement instruction is sent to a target service device, so that the target service device generates data to be replaced based on the data indicated by the target module replacement instruction; When the data to be replaced returned by the target service device is received, the target design draft data is updated based on the data to be replaced, so as to generate a target design image based on the updated target design draft data.

2. The method according to claim 1, characterized in that The step of determining target design draft data based on the initial design draft data includes: In response to a property setting operation detected in a module property setting area of ​​any module indicated by the initial design draft data, the module property of any module in the initial design draft data is updated using the property setting information indicated by the property setting operation to obtain updated initial design draft data; Based on the updated initial design draft data, target design draft data is determined.

3. The method according to claim 2, characterized in that The module attribute of a text module includes the attribute information of each text attribute in the text attribute set, and the module attribute of an image module includes the attribute information of each image attribute in the image attribute set; Wherein, when any of the modules is a text module, the attribute setting operation refers to a text module setting operation, and the text module setting operation supports setting the attribute information of each text attribute in at least one text attribute included in the text attribute set; when any of the modules is a picture module, the attribute setting operation refers to a picture module setting operation, and the picture module setting operation supports setting the attribute information of each picture attribute in at least one picture attribute included in the picture attribute set; The text attribute set includes at least one of the following attributes: position, width, height, font text, level, font, font size, font weight, font style, line spacing, character spacing, font color, font arrangement and label; the image attribute set includes at least one of the following attributes: position, width, height, label, level, image address and image transparency.

4. The method according to any one of claims 1 to 3, characterized in that: The obtaining of initial design draft data includes: Get initial design draft; Parsing the initial design draft to obtain draft parsing data of the initial design draft, wherein the draft parsing data includes module parsing data of each module; Based on the module parsing data of each module, the module attributes of each module are determined to achieve the acquisition of initial design draft data.

5. The method according to any one of claims 1 to 3, characterized in that: The step of determining the target module replacement instruction based on the replacement keyword indicated by the target module replacement operation includes: Determine the module on which the target module replacement operation is performed; If the module acted upon by the target module replacement operation is a text module, determining text replacement indication information of the module acted upon by the target module replacement operation, and determining a target module replacement instruction based on the text replacement indication information and a replacement keyword indicated by the target module replacement operation, so that the data indicated by the target module replacement instruction includes the text replacement indication information and the replacement keyword indicated by the target module replacement operation; If the module on which the target module replacement operation acts is an image module, the image replacement indication information of the module on which the target module replacement operation acts is determined, and based on the image replacement indication information and the replacement keyword indicated by the target module replacement operation, the target module replacement instruction is determined so that the data indicated by the target module replacement instruction includes the image replacement indication information and the replacement keyword indicated by the target module replacement operation.

6. The method according to any one of claims 1 to 3, characterized in that: If the module acted upon by the target module replacement operation is a text module, the data to be replaced is the text data to be replaced; if the module acted upon by the target module replacement operation is a picture module, the data to be replaced is the picture data to be replaced; and updating the target design draft data based on the data to be replaced includes: If the module acted upon by the target module replacement operation is a text module, then updating the font and text attributes of the module acted upon by the target module replacement operation in the target design draft data based on the data to be replaced; If the module affected by the target module replacement operation is an image module, the image address attribute of the module affected by the target module replacement operation in the target design draft data is updated based on the data to be replaced, so as to implement the updating of the target design draft data based on the data to be replaced.

7. The method according to any one of claims 1 to 3, characterized in that: The number of the target module replacement operations is multiple, and the determining of the target module replacement instruction based on the replacement keyword indicated by the target module replacement operation includes: For any target module replacement operation among the multiple target module replacement operations, based on a replacement keyword indicated by the any target module replacement operation, determining a target module replacement instruction corresponding to the any target module replacement operation, wherein the target module replacement instruction corresponding to the any target module replacement operation is used to request the target service device for the data to be replaced corresponding to the any target module replacement operation; The updating of the target design draft data based on the data to be replaced includes: Based on the data to be replaced corresponding to any target module replacement operation, the module properties of the module acted upon by any target module replacement operation in the target design draft data are updated.

8. An image design device, characterized in that: The device comprises: An acquisition unit, configured to acquire initial design draft data, wherein the initial design draft data includes module attributes of each module in at least one module, wherein the at least one module includes M text modules and N picture modules, where M and N are both non-negative integers; A processing unit, configured to determine target design draft data based on the initial design draft data, wherein one design draft data is used to indicate one design draft, and the design draft indicated by one design draft data includes each module indicated by the corresponding design draft data; The processing unit is further configured to, when a target module replacement operation for the design sample indicated by the target design sample data is detected, determine a target module replacement instruction based on a replacement keyword indicated by the target module replacement operation; an output unit, configured to send the target module replacement instruction to a target service device, so that the target service device generates data to be replaced based on the data indicated by the target module replacement instruction; The processing unit is further configured to update the target design draft data based on the data to be replaced when receiving the data to be replaced returned by the target service device, so as to generate a target design image based on the updated target design draft data.

9. An electronic device, characterized in that: include: processor; as well as Memory for storing programs, The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1-7.

Citation Information

Cited By

  • Visual design management method and device, storage medium and electronic equipment

    CN120596758A