CN111538856A - Picture material generation method and device, computer equipment and storage medium - Google Patents

Picture material generation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111538856A
CN111538856A CN202010372374.1A CN202010372374A CN111538856A CN 111538856 A CN111538856 A CN 111538856A CN 202010372374 A CN202010372374 A CN 202010372374A CN 111538856 A CN111538856 A CN 111538856A
Authority
CN
China
Prior art keywords
picture
target
preset database
information
example graph
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010372374.1A
Other languages
Chinese (zh)
Other versions
CN111538856B (en
Inventor
杨胜涛
柳志华
易武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Kaniu Technology Co ltd
Original Assignee
Shenzhen Kaniu Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Kaniu Technology Co ltd filed Critical Shenzhen Kaniu Technology Co ltd
Priority to CN202010372374.1A priority Critical patent/CN111538856B/en
Publication of CN111538856A publication Critical patent/CN111538856A/en
Application granted granted Critical
Publication of CN111538856B publication Critical patent/CN111538856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a method and a device for generating picture materials, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring a picture and file, wherein the picture and file comprises first mark information, and the first mark information at least comprises one of a first service type, a first operation position and a first label; if the second marking information of the example drawings in the first preset database is consistent with the first marking information of the picture and literature, taking the example drawings in the first preset database as the target mark illustrations so as to obtain a plurality of target mark illustrations; and combining the picture file with each target example graph to generate a plurality of picture materials. The embodiment of the invention realizes the batch production of the picture materials, can acquire a plurality of picture materials by inputting one picture file, and improves the design efficiency of the picture materials; and through matching and screening of the marking information, the relevance between the example image and the picture file is improved, so that the generated picture material is more accurate.

Description

Picture material generation method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of advertisements, in particular to a method and a device for generating picture materials, computer equipment and a storage medium.
Background
With the development of internet technology, online advertisements are more and more delivered. At present, advertisement delivery adopts an advertisement flow distribution mechanism based on an algorithm model, so that advertisement marketing needs more and richer picture materials to meet the advertisement delivery mode.
Traditional advertising picture materials are designed manually by technicians according to requirements, and the manual design mode is low in efficiency and high in cost. In another way, the technician selects the template closest to the requirements from the material library, adds the pattern, and adjusts and modifies the template to form the final advertisement picture. Compared with a manual design mode, the manufacturing mode of the advertisement picture accelerates the generation speed of one advertisement picture to a certain extent, but the technical personnel still need to select and modify the advertisement picture, and the technical personnel select one template to generate one advertisement picture each time, so that the output efficiency of the advertisement picture is still low, and the requirement of the current advertisement algorithm cannot be met.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for generating picture materials, a computer device, and a storage medium, so as to implement batch generation of picture materials required for advertisement delivery and improve the output efficiency of advertisement picture materials.
In a first aspect, an embodiment of the present invention provides a method for generating a picture material, including:
acquiring a picture file, wherein the picture file comprises first mark information, and the first mark information at least comprises one of a first service type, a first operation position and a first label;
if second marking information of the example graph in a first preset database is consistent with first marking information of the picture and literature, taking the example graph in the first preset database as a target mark graph to obtain a plurality of target mark graphs, wherein the second marking information comprises a second service type, a second operation position and a second label;
and combining the picture file with each target example graph to generate a plurality of picture materials.
Further, if the second label information of the example graph in the first preset database is consistent with the first label information of the picture file, taking the example graph in the first preset database as the example graph with the target label, so as to obtain a plurality of example graphs with target labels, including:
if the second service type of the example graph in the first preset database is consistent with the first service type of the picture case; and/or
If the second operation position of the example graph in the first preset database is consistent with the first operation position of the picture and literature; and/or
And if the second label of the example graph in the first preset database is consistent with the first label of the picture and literature, taking the example graph in the first preset database as a target mark example graph, thereby obtaining a plurality of target mark example graphs.
Further, the method also comprises the following steps:
and uploading the plurality of picture materials to a server in a multithreading uploading mode.
Further, before the obtaining the picture and the file, the method further comprises:
acquiring a plurality of example graphs including second label information;
and storing the plurality of example graphs comprising the second mark information into a first preset database.
Further, the obtaining a plurality of example graphs including the second flag information includes:
obtaining an example graph generation task, wherein the example graph generation task comprises a plurality of initial elements of an example graph, the initial elements comprise third label information, and the third label information at least comprises one of a third service type, a third operator position and a third label;
matching multiple groups of target elements of the example graph formed by the initial elements in a second preset database according to the third marking information of each initial element to obtain multiple element combinations, wherein the initial elements and the group of target elements form one element combination, the group of target elements comprises multiple target elements, the elements in the second preset database comprise fourth marking information, and the fourth marking information comprises a fourth service type, a fourth operation position and a fourth label;
acquiring a plurality of picture sizes corresponding to each element combination;
and generating an example graph according to each corresponding picture size of each element combination to obtain a plurality of example graphs, wherein the second marking information of each example graph is the third marking information or the fourth marking information of the elements in the element combination.
Further, the plurality of initial elements comprise an initial template, an initial background and an initial icon, and the second preset database comprises a plurality of templates, a plurality of backgrounds and a plurality of icons;
matching, in a second preset database, a plurality of groups of target elements of the example graph formed by the initial elements according to the third label information of each initial element to obtain a plurality of element combinations, including:
if the fourth mark information of the background and the fourth mark information of the icon in the second preset database are consistent with the third mark information of the initial template, taking the background in the second preset database as a target background, taking the icon in the second preset database as a target icon, and obtaining a plurality of target backgrounds and target icons, wherein the initial template, one target background and one target icon form an element combination, so that a plurality of element combinations are obtained;
if the fourth mark information of the template and the fourth mark information of the icon in the second preset database are consistent with the third mark information of the initial background, taking the template in the second preset database as a target template, taking the icon in the second preset database as a target icon, and obtaining a plurality of target templates and target icons, wherein the initial background, one target template and one target icon form an element combination, so that a plurality of element combinations are obtained;
if the fourth mark information of the template and the fourth mark information of the background in the second preset database are consistent with the third mark information of the initial icon, taking the template in the second preset database as a target template, taking the background in the second preset database as a target background, obtaining a plurality of target templates and target backgrounds, and forming an element combination by the initial icon, one target template and one target background, thereby obtaining a plurality of element combinations.
Further, the step of storing the plurality of example graphs including the second label information in the first preset database includes:
determining whether all of the example graphs of the current example graph group are successfully generated;
if all the example graphs of the current example graph group are successfully generated, storing the example graphs of the current example graph group into a first preset database in a line-by-line storage mode;
and if the example graphs of the current example graph group are not generated successfully, marking the example graph generation task as a task to be retried, and executing the task to be retried according to a preset delay rule to regenerate the example graph.
In a second aspect, an embodiment of the present invention provides an apparatus for generating a picture material, including:
the system comprises a file acquisition module, a file acquisition module and a file processing module, wherein the file acquisition module is used for acquiring a picture file, the picture file comprises first mark information, and the first mark information at least comprises one of a first service type, a first operation position and a first label;
a destination label illustration determining module, configured to, if second label information of an example illustration in a first preset database is consistent with first label information of the picture case, take the example illustration in the first preset database as a destination label illustration, so as to obtain a plurality of destination label illustrations, where the second label information includes a second service type, a second service location, and a second label;
and the picture material generation module is used for combining the picture pattern with each target example image to generate a plurality of picture materials.
In a third aspect, an embodiment of the present invention provides a computer device, where the computer device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for generating picture material according to any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for generating a picture material according to any embodiment of the present invention.
The method for generating the picture materials provided by the embodiment of the invention realizes the batch production of the picture materials, can acquire a plurality of picture materials by inputting one picture file, and improves the design efficiency of the picture materials; and through matching and screening of the marking information, the relevance between the example image and the picture file is improved, so that the generated picture material is more accurate.
Drawings
Fig. 1 is a schematic flowchart of a method for generating a picture material according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for generating a picture material according to a second embodiment of the present invention;
fig. 3A is a flowchart illustrating a method for generating an exemplary graph according to a third embodiment of the present invention;
fig. 3B is a schematic flowchart of a method for determining an element combination according to a third embodiment of the present invention;
FIG. 3C is a diagram illustrating an exemplary task processing flow provided by a third embodiment of the present invention;
fig. 3D is a schematic diagram of a task retry process according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for generating a picture material according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, the first label information may be referred to as second label information, and similarly, the second label information may be referred to as first label information, without departing from the scope of the present application. Both the first mark information and the second mark information are mark information, but they are not the same mark information. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "plurality", "batch" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
Fig. 1 is a schematic flow chart of a method for generating picture materials according to an embodiment of the present invention, which can be used to generate picture materials for advertisement delivery in batch. As shown in fig. 1, a method for generating a picture material according to an embodiment of the present invention includes:
s110, obtaining a picture file, wherein the picture file comprises first mark information, and the first mark information at least comprises one of a first service type, a first operation position and a first label.
The marking information may be regarded as a mark for classifying various elements in the advertisement picture or the advertisement picture in multiple directions, and the marking information may be of multiple types, for example, the marking information includes a service type, an operation position, a label, and the like. The service type refers to the service field of the advertisement picture application, such as e-commerce, brand publicity, self-service loan, card handling, financial nonstandard and the like. The operation position refers to the placement position of the advertisement picture on the website page, for example, a financial APP home page banner (banner advertisement), a financial APP home page popup window, a financial APP home page floating icon, and the like. The labels are some special categories of the advertisement pictures, and the labels are divided into a plurality of categories, each category has a plurality of labels, for example, the labels of the holiday type are: the feature types are labeled as: red envelope, gold coin, gift box, personage, books, cell-phone etc. exclusive label has: weekly topics, kyoton offerings, choice topics, etc. Usually, the service type and the operator position in the tag information are unique, but the tag may be various.
An advertisement picture capable of advertising is called a picture material, the composition content of the picture material is called an element, obviously, the picture material comprises a plurality of elements, and the picture pattern is character propaganda information in the picture material, namely, the picture pattern is one of the elements of the picture material. In this embodiment, the picture and literature is provided by a technician advertising the picture, and the first marking information of the picture and literature may be added manually by the technician, or may be added automatically by a program according to some keywords in the picture and literature after the technician inputs the picture and literature. The first marking information of the picture and document at least comprises one of a first service type, a first operator position and a first label, namely the picture and document at least comprises one marking information.
And S120, if second mark information of the example graph in the first preset database is consistent with the first mark information of the picture file, taking the example graph in the first preset database as a target graph, so as to obtain a plurality of target graphs, wherein the second mark information comprises a second service type, a second operation position and a second label.
Specifically, the example graph is a picture composed of all elements except the picture case in the picture material, the first preset database is a database for storing a large number of example graphs in advance, the label information of the example graph in the first preset database is called as second label information, and the second label information includes a second service type, a second service location and a second label, that is, the example graph in the first preset database includes all kinds of label information.
After the picture and literature is acquired, matching an example graph in a first preset database according to first marking information of the picture and literature, and determining a target example graph matched with the picture and literature, that is, if second marking information of the example graph in the first preset database is consistent with the first marking information of the picture and literature, the example graph is an example graph matched with the picture and literature and is used as a destination indication graph, and a large number of example graphs are stored in the first preset database in advance, so that a plurality of destination indication graphs can be obtained.
Optionally, the method for determining the target indication diagram according to different types of the first label information of the picture and text further includes:
if the second service type of the example graph in the first preset database is consistent with the first service type of the picture and file (namely the service types are matched); and/or
If the second operator position of the example graph in the first preset database is consistent with the first operator position of the picture and literature (namely the operator positions are matched); and/or
If the second label of the example graph in the first preset database is consistent with the first label of the picture and literature (namely the labels are matched), the example graph in the first preset database is taken as the example graph with the target mark, so that a plurality of example graphs with the target mark are obtained.
That is, what kinds of the first flag information of the picture document include, matching of the flag information of the corresponding kind is required. If the first marking information of the picture and literature only comprises one of a first service type, a first operation position and a first label, the target marking illustration can be determined only by performing one of service type matching, operation position matching and label matching, and if the first marking information of the picture and literature comprises multiple types, multiple types of matching are required. When the first mark information of the picture case includes a first service type, a first operation position and a first tag, and when the second service type, the second operation position and the second tag of the example graph in the first preset database are respectively consistent with the first service type, the first operation position and the first tag corresponding to the picture case, the example graph in the first preset database can be used as the target mark example graph.
Further, when the type and the number of the first tag of the picture document are large during the tag matching, when at least one tag of each type of the tag of the example graph and the picture document in the first preset database is the same, the example graph in the first preset database can be used as the illustration map with the target label. For example, the first label (represented in the form of "label category-label") of the picture copy includes: the second label of example fig. 1 in the first preset database comprises: the second label of example fig. 2 in the first preset database comprises: in holiday-valentine's day, feature-gift, feature-mobile phone, feature-time limit, when matching tags, at least one tag is the same for each tag category of the example fig. 1 and the picture document, while the same tag is not in the "holiday" category tag of the example fig. 2 and the picture document, therefore, the example fig. 1 can be used as an illustration with a target designation, and the example fig. 2 is not an illustration with a target designation.
And S130, combining the picture pattern with each target example image to generate a plurality of picture materials.
In general, the example drawings also include example documents, which are documents that are not directly usable, and the example documents are generally used for displaying the position information of the picture documents in the picture materials. And combining the picture pattern with the target example graph, namely replacing the picture pattern with the example pattern in the destination indication graph to generate the picture material. And replacing the example file in each destination mark illustration with the picture file to generate a plurality of picture materials. For example, in one example illustration, the top case is denoted as "add subject here", the picture case is "protect environment, person is responsible", and the generated picture material, the top case is "protect environment, person is responsible".
The method for generating the picture materials provided by the embodiment of the invention realizes the batch production of the picture materials, can acquire a plurality of picture materials by inputting one picture file, and improves the design efficiency of the picture materials; and through matching and screening of the marking information, the relevance between the example image and the picture file is improved, so that the generated picture material is more accurate.
Example two
Fig. 2 is a schematic flow chart of a method for generating a picture material according to a second embodiment of the present invention, which is a further refinement of the above embodiment. As shown in fig. 2, a method for generating a picture material according to a second embodiment of the present invention includes:
s210, obtaining a plurality of example graphs comprising second mark information.
Specifically, the example graph not including the second flag information may be obtained first, and then the second flag information is added to the example graph through secondary processing, or the example graph including the second flag information may be directly obtained, or the constituent elements of the example graph including the second flag information may be obtained first, and then the example graph including the second flag information is generated through the constituent elements.
S220, storing the multiple example graphs comprising the second mark information into a first preset database.
Specifically, a plurality of example graphs comprising second mark information are stored in a first preset database, and support of example graph materials is provided for generation of the picture materials. The first preset database may be MySQL or Redis.
S230, obtaining a picture file, wherein the picture file comprises first mark information, and the first mark information at least comprises one of a first service type, a first operation position and a first label.
S240, if second mark information of the example graph in the first preset database is consistent with the first mark information of the picture file, taking the example graph in the first preset database as a target mark graph, and obtaining a plurality of target mark graphs, wherein the second mark information comprises a second service type, a second operation position and a second label.
And S250, combining the picture pattern with each target example graph to generate a plurality of picture materials.
And S260, uploading the plurality of picture materials to a server in a multithreading uploading mode.
Specifically, the generated picture material is usually stored in a server, and the picture material is automatically acquired from the server when the advertisement is delivered. The thread is an execution flow in the program, one thread usually executes one task, and due to the fact that the number of the generated picture materials is large, the picture materials are uploaded to the server in a multi-thread uploading mode, and therefore uploading time of the picture materials can be greatly reduced.
The generation method of the picture materials provided by the embodiment of the invention realizes the batch production of the picture materials, and a plurality of picture materials can be obtained by inputting one picture file, thereby improving the design efficiency of the picture materials; and through matching and screening of the marking information, the relevance between the example image and the picture file is improved, so that the generated picture material is more accurate. The time for uploading the picture materials to the server is reduced through a multithreading uploading mode, and the uploading efficiency is improved.
EXAMPLE III
Fig. 3A is a flowchart of a method for generating an example graph according to a third embodiment of the present invention, and this embodiment further details a generation process of the example graph in the foregoing embodiment, that is, further details two steps of "obtaining a plurality of example graphs including second tag information" and "storing the plurality of example graphs including second tag information in a first preset database" in the foregoing embodiment.
As shown in fig. 3A, a method for generating an example graph according to a third embodiment of the present invention includes:
s310, an example graph generating task is obtained, wherein the example graph generating task comprises a plurality of initial elements of an example graph, the initial elements comprise third marking information, and the third marking information at least comprises one of a third service type, a third operator position and a third label.
Specifically, after the technician edits the elements that make up the example graph, the program automatically creates an example graph generation task, and thus the example graph generation task includes a plurality of initial elements of the example graph. The label information of the initial element is referred to as third label information, and the third label information at least includes one of a third service type, a third operator, and a third tag. After the example graph generation task is obtained, the example graph generation task is marked to be processed, so that the subsequent processes can process the example graph generation task to generate the example graph.
Further, the generation task of the example graph can be acquired at regular time, that is, after the generation task of the example graph is created, the generation task of the example graph is not executed immediately, but the generation task of the example graph is acquired through the timing task, so that the current generation task of the example graph is ensured to be executed after the execution of the previous generation task of the example graph is finished, the flow execution is smoother, and the pressure of the computer equipment is also reduced.
S320, matching, in a second preset database, multiple groups of target elements in the example graph formed by the initial elements according to the third tag information of each initial element, to obtain multiple element combinations, where the initial element and a group of target elements form an element combination, a group of target elements includes multiple target elements, the elements in the second preset database include fourth tag information, and the fourth tag information includes a fourth service type, a fourth service location, and a fourth tag.
Specifically, the second preset database is a database in which a plurality of elements capable of forming the example graph are stored in advance, and the second preset database may be the same database as the first preset database or different databases, for example, the second preset database and the first preset database are both MySQL, the mark information of the elements in the second preset database is referred to as fourth mark information, and the fourth mark information includes a fourth service type, a fourth service location, and a fourth tag.
The group of target elements (a group of target elements includes a plurality of target elements) composing the example graph with the initial elements means that the type of the plurality of target elements obtained by matching in the second preset database is different from that of the initial elements, and the types of the plurality of target elements in the group of target elements are also different from each other, and the plurality of target elements and the initial elements can compose the example graph. For example, the constituent elements of the example diagram include a first element, a second element, and a third element, the plurality of initial elements include a first initial element, a second initial element, and a third initial element, the first initial element is matched with the elements, and the obtained set of target elements includes a second target element and a third target element, that is, the first initial element, the second target element, and the third target element may constitute an example diagram. And performing element matching on the second initial element to obtain a group of target elements, wherein the group of target elements comprises the first target element and the third target element, and the second initial element, the first target element and the third target element can form an example graph. And performing element matching on the third initial element to obtain a group of target elements, wherein the group of target elements comprises the first target element and the second target element, and the third initial element, the first target element and the second target element can form an example graph.
Matching multiple sets of target elements forming the example graph with the initial elements in the second preset database according to the third tag information of each initial element means that when the fourth tag information of the elements forming the example graph with the initial elements in the second preset database is the same as the third tag information of the initial elements, the elements in the second preset database can be used as the target elements. For example, according to the first mark information of the first initial element, if the fourth mark information of the second element and the fourth mark information of the third element in the second preset database, which can form an example graph with the initial element, are the same as the third mark information of the first initial element, the second element may be used as the second target element, the third element may be used as the third target element, and the first initial element, the second target element and the third target element form an element combination. And, there are often a plurality of second target elements and third target elements, and the first initial element forms an element combination with each of the second target elements and the third target elements, respectively, to obtain a plurality of element combinations.
Illustratively, the constituent elements of the example diagram include a template, a background, and an icon (other elements such as a logo, a button, a title, and the like may also be included, and the embodiment is only illustrated with the template, the background, and the icon), where the template is a template indicating the example diagram and mainly defines the position, the layout, the font of the picture and the like of various constituent elements of the example diagram; the background of the background indication illustration comprises a picture background, a transparent background, a pure color background and the like; icons are graphical representations on an exemplary graph, icons being elements that are strongly related to traffic, generally the same meaning as a pictorial case. Correspondingly, the plurality of initial elements comprise initial templates, initial backgrounds and initial icons, and the second preset database comprises a plurality of templates, a plurality of backgrounds and a plurality of icons.
As shown in fig. 3B, a flow diagram of a method for determining an element combination provided in this embodiment is that, matching, in a second preset database, a plurality of sets of target elements in an exemplary graph formed by the initial elements according to third tag information of each initial element, and obtaining a plurality of element combinations further includes:
s321, if the fourth mark information of the background and the fourth mark information of the icon in the second preset database are consistent with the third mark information of the initial template (that is, the elements of the initial template are matched), taking the background in the second preset database as a target background, taking the icon in the second preset database as a target icon, and obtaining a plurality of target backgrounds and target icons, where the initial template, one target background and one target icon form an element combination, and thus a plurality of element combinations are obtained.
S322, if the fourth flag information of the template and the fourth flag information of the icon in the second preset database are consistent with the third flag information of the initial background (that is, the elements of the initial background are matched), taking the template in the second preset database as a target template, taking the icon in the second preset database as a target icon, and obtaining a plurality of target templates and target icons, where the initial background, one target template and one target icon form an element combination, and thus obtain a plurality of element combinations;
s323, if the fourth mark information of the template and the fourth mark information of the background in the second preset database are consistent with the third mark information of the initial icon (i.e., the elements of the initial icon are matched), taking the template in the second preset database as a target template, taking the background in the second preset database as a target background, and obtaining a plurality of target templates and target backgrounds, where the initial icon, one target template and one target background form an element combination, thereby obtaining a plurality of element combinations.
Illustratively, the specific matching process is described by taking the element matching of the initial template as an example. The third mark information comprises a third service type, a third operation position and a third label, the fourth mark information comprises a fourth service type, a fourth operation position and a fourth label, when the template is subjected to element matching, three matching types of service type matching, operation position matching and label matching are required to be carried out, namely, if the fourth service type, the fourth operation position and the fourth label of the background and the icon in the second preset database are respectively consistent with the third service type, the third operation position and the third label of the initial template, the background and the icon in the second preset database are used as a target background and a target icon. When the label types and the number of labels for performing label matching are large, when at least one label is the same between the background in the second preset data and each label type of the initial template, the background is considered as the background matched with the initial template, and when at least one label is the same between the icon in the second preset data and each label type of the initial template, the icon is considered as the icon matched with the initial template.
S330, acquiring a plurality of picture sizes corresponding to each element combination.
Specifically, since the display screen of the current terminal device has various sizes, for example, 3.7 inches, 4.5 inches, 5.0 inches, 5.5 inches, etc., in order to enable advertisement pictures on terminal devices with different sizes to be better displayed, the size of the advertisement picture needs to be designed according to the size of the terminal device, that is, each example picture has multiple picture sizes, one element combination can form one example picture, and the picture size of the example picture is the picture size corresponding to the element combination. The multiple picture sizes corresponding to each element combination may be obtained according to the mark information of the element, for example, according to the operator position.
Optionally, before obtaining the multiple picture sizes corresponding to each element combination, multiple element combinations may be placed in the queue, when it is determined that there is an element combination in the queue, one element combination is obtained from the queue and the multiple picture sizes corresponding to the element combination are obtained, when there is no element combination in the queue, the example diagram generation task is described to have been completed, and at this time, the flow may be ended.
S340, generating an example graph according to each corresponding picture size of each element combination to obtain a plurality of example graphs, wherein the second marking information of each example graph is the third marking information or the fourth marking information of the elements in the element combination.
Specifically, the exemplary diagram formed by each element combination generally has a default size, and for example, the exemplary diagram formed by each element combination is designed according to the display screen of the terminal device being 5.0 inches. Generating the example graph according to each corresponding picture size for each element combination means that scaling operation is performed on each element combination of the example graph with a default size according to each picture size, and the scaled example graph is the final example graph. For example, the picture size includes 3.7 inches, 4.5 inches, 5.0 inches, 5.5 inches, and when the picture size is 3.7 inches or 4.5 inches, the elements in each element combination need to be output after being scaled down; when the picture size is 5.0 inches, an example picture of the default size may be directly output; when the picture size is 5.5 inches, the elements in each element combination need to be amplified and output.
Since the example graph is composed of elements in the element combination, the second flag information of the example graph is the third flag information or the fourth flag information of the constituent elements.
S350, all the example graphs generated by one element combination according to the corresponding picture sizes are taken as an example graph group, and whether all the example graphs of the current example graph group are successfully generated is determined.
Specifically, all example graphs with different picture sizes generated by combining one element are called an example graph group, that is, one example graph group comprises a plurality of example graphs, and the number of the example graphs is the same as that of the picture sizes. Determining whether all the example graphs of the current example graph group are successfully generated includes determining whether the number of the example graphs in the current example graph group is equal to the number of the picture sizes, and determining whether the generation of the example graphs in the current example graph group has abnormal conditions, such as element matching which cannot be performed by connecting with a second preset database, missing content of the element, and the like.
And S360, if all the example graphs of the current example graph group are successfully generated, storing the example graphs of the current example graph group into a first preset database in a line-by-line storage mode.
Specifically, the example graph is stored in the first preset database, that is, the storage address of the example graph is stored in a preset database, and the picture file (e.g.,. png file) formed by the example graph itself is usually uploaded to a file server, so that the user can speed up the access. Optionally, the first preset database is MySQL, the example graph is stored in the first preset database in a row-by-row storage manner, that is, an address of an element of the example graph is stored in a row in the first preset database, and when a new element is subsequently added to the example graph, the structure of the table does not need to be changed, which is beneficial to subsequent maintenance.
Further, when a plurality of computer devices simultaneously execute the process of generating the example graph, a plurality of threads of the plurality of computer devices simultaneously upload the picture file of the example graph to the file server, and at this time, a Deadlock (Deadlock) may occur, where in a multitask system, a Deadlock is formed when one or more processes wait for system resources and the resources are occupied by the processes themselves or other processes. To prevent the occurrence of a deadlock condition, a distributed lock control is used when storing the example graph to the first pre-set database, thereby enabling multiple threads to save the example graph in order. At present, many systems are deployed in a distributed manner, and in order to prevent multiple processes in the distributed system from interfering with each other, a distributed coordination technology is required to schedule the processes, and the core of the distributed coordination technology is a distributed lock. The distributed lock enables a method to be executed by only one thread of one device at the same time in a distributed system environment, so that the distributed lock is provided with a lock failure mechanism, and deadlock can be prevented.
S370, if the example graphs of the current example graph group are not generated successfully, marking the task generated by the example graph as a task to be retried, and executing the task to be retried according to a preset delay rule to regenerate the example graph.
Specifically, if all the example graphs of the current example graph group are not successfully generated, it is described that an abnormal situation occurs in the generation of the example graphs in the current example graph group, for example, the example graphs cannot be connected to the second preset database for element matching, the content of the element is missing, and the like.
In this embodiment, the preset delay rule may be a preset delay time with a fixed delay, for example, a task to be retried is executed after delaying for 1 minute. The preset delay rule may also be that delay time is sequentially increased according to a preset rule, for example, after the first delay for 1 minute, the task to be retried is executed, if the task to be retried still cannot be generated successfully after the re-execution of the example graph is performed, the task to be retried is executed again after the delay for 2 minutes, and then the delay retry is performed according to a rule that every time the task to be retried is executed again, the next delay time is increased by 1 minute, that is, the delay time is sequentially delayed for 3 minutes, 4 minutes, 5 minutes, and the like. Or delaying for 2 minutes, 4 minutes, 6 minutes, etc. in sequence, and the specific delay rule is not limited in this embodiment and may be set according to the actual situation.
The generation method of the example graphs provided by the third embodiment of the invention realizes batch generation of the example graphs, can generate a plurality of example graphs at one time, and improves the generation accuracy of the example graphs through matching of the marking information, so that the generated example graphs better meet the target requirements. By generating the example graphs with a plurality of picture sizes, the scene adaptability of the example graphs is stronger, and the range of the terminal equipment which can be matched by the example graphs is expanded.
For example, as shown in fig. 3C, a schematic diagram of an exemplary task processing flow provided for this embodiment is shown.
Steps S1 to S3 are alternative embodiments of step S310 in this embodiment, and the task of generating the example graph is acquired by timing the task, and the task is marked as processing, so that the computer device executes the task in processing, and the task in the initial state refers to the task of generating the acquired example graph, which includes a plurality of initial elements.
Step S4 is an alternative implementation of step S320 in this embodiment, that is, a corresponding combination relationship (i.e., an element combination) is matched for each initial element in the plurality of initial elements, and the obtained plurality of combination relationships are placed in a queue, for example, when the initial element is a template, a corresponding background and an icon are matched through a service type, a service location, a tag, and the like, the template forms a combination relationship with one background and one icon obtained through matching, usually, one initial element can be matched to obtain a plurality of combination relationships, and each combination relationship can generate an example graph.
Steps S5 to S11 and S18 are alternative implementations of steps S330 to S340 in the present embodiment. Putting the combined relation into a queue, then judging whether the combined relation to be processed exists in the queue, namely determining whether the combined relation exists in the queue, if the combined relation does not exist in the queue, showing that all the combined relations obtained by element matching already generate an example graph, and the example graph generation task is already executed and completed, and marking the example graph generation task as successful processing and ending the process; if the queue has a combination relationship, the example graph generation task is still in the process, at this time, the combination relationship in the queue is sequentially obtained according to the first-in first-out rule of the queue, a plurality of picture sizes of the example graph required to be generated by each combination relationship are obtained, and each element in the combination relationship is scaled and aligned according to the picture sizes so as to generate the example graph using the screen sizes of different models.
Steps S12 to S18 are alternative implementations of steps S350 to S370 in the present embodiment, wherein steps S13 to S15 are alternative implementations of step S360 in the present embodiment, and steps S16 to S18 are alternative implementations of step S370 in the present embodiment. Taking all example graphs generated according to different sizes in a combined relation as a group of pictures (namely, an example graph group), when the group of pictures are not generated successfully, indicating that an abnormal condition occurs, marking the example graph generation task as a task to be retried, and executing the task to be retried according to a preset delay rule; when a group of pictures are generated successfully, the example graph files of the group of pictures are uploaded to a file server in batch in a distributed lock control mode, the storage addresses of the example graphs are stored in a first preset database, the uploading and the storage of all the example graphs of one combination relation are completed, and the generation of the example graph of the next combination relation can be carried out.
Illustratively, as shown in fig. 3D, a schematic diagram of a task retry flow is provided for this implementation. The task retry flow is substantially the same as the example task processing flow except that the step S2 of the example task processing flow acquires a task in an initial state, and the step S2 'of the task retry flow acquires a task to be retried, and in the task retry flow, after the example graph is stored in the first preset database, the retry record needs to be deleted, that is, the step S15' is added after the same step S15 of the example task processing flow. The remaining process steps of the task retry process are the same as those in the task processing process of the example diagram, and are not described again here.
Example four
Fig. 4 is a schematic structural diagram of a device for generating picture materials according to a fourth embodiment of the present invention, which can be used to generate picture materials for advertisement delivery in batch. The picture material generation device provided by the embodiment of the invention can realize the picture material generation method provided by any embodiment of the invention, has corresponding functional structures and beneficial effects of the realization method, and the content which is not described in detail in the embodiment can refer to the description of any method embodiment of the invention.
As shown in fig. 4, a device for generating a picture material according to a fourth embodiment of the present invention includes: a pattern acquisition module 410, a target example graph determination module 420 and a picture material generation module 430.
The case acquiring module 410 is configured to acquire a picture case, where the picture case includes first tag information, and the first tag information at least includes one of a first service type, a first operator location, and a first tag;
the case diagram determining module 420 is configured to, if second tag information of an example diagram in a first preset database is consistent with first tag information of the picture case, take the example diagram in the first preset database as a case diagram, so as to obtain a plurality of case diagram examples, where the second tag information includes a second service type, a second service location, and a second tag;
the picture material generation module 430 is configured to combine the picture pattern with each target example graph to generate a plurality of picture materials.
Further, the target example graph determining module 420 is specifically configured to: if the second service type of the example graph in the first preset database is consistent with the first service type of the picture case; and/or if the second operation position of the example graph in the first preset database is consistent with the first operation position of the picture file; and/or if the second label of the example graph in the first preset database is consistent with the first label of the picture file, taking the example graph in the first preset database as the example graph with the target mark, thereby obtaining a plurality of example graphs with the target mark.
Further, the method also comprises the following steps: and the picture material uploading module is used for uploading the plurality of picture materials to a server in a multithreading uploading mode.
Further, the method also comprises the following steps:
the example graph acquiring module is used for acquiring a plurality of example graphs comprising second mark information;
the example graph storage module is used for storing the example graphs comprising the second mark information into a first preset database.
Further, the example graph acquisition module includes:
an example graph generation task obtaining unit, configured to obtain an example graph generation task, where the example graph generation task includes a plurality of initial elements of an example graph, the initial elements include third tag information, and the third tag information includes at least one of a third service type, a third operator location, and a third tag;
the element matching unit is used for matching a plurality of groups of target elements forming the example graph with the initial elements in a second preset database according to third marking information of each initial element to obtain a plurality of element combinations, wherein the initial elements and a group of target elements form one element combination, the group of target elements comprise a plurality of target elements, the elements in the second preset database comprise fourth marking information, and the fourth marking information comprises a fourth service type, a fourth operation position and a fourth label;
a picture size acquiring unit configured to acquire a plurality of picture sizes corresponding to each element combination;
and the example graph generating unit is used for generating an example graph according to each corresponding picture size of each element combination to obtain a plurality of example graphs, and the second marking information of each example graph is the third marking information or the fourth marking information of the elements in the element combination.
Further, the plurality of initial elements comprise an initial template, an initial background and an initial icon, and the second preset database comprises a plurality of templates, a plurality of backgrounds and a plurality of icons; the element matching unit is specifically configured to: if the fourth mark information of the background and the fourth mark information of the icon in the second preset database are consistent with the third mark information of the initial template, taking the background in the second preset database as a target background, taking the icon in the second preset database as a target icon, and obtaining a plurality of target backgrounds and target icons, wherein the initial template, one target background and one target icon form an element combination, so that a plurality of element combinations are obtained; if the fourth mark information of the template and the fourth mark information of the icon in the second preset database are consistent with the third mark information of the initial background, taking the template in the second preset database as a target template, taking the icon in the second preset database as a target icon, and obtaining a plurality of target templates and target icons, wherein the initial background, one target template and one target icon form an element combination, so that a plurality of element combinations are obtained; if the fourth mark information of the template and the fourth mark information of the background in the second preset database are consistent with the third mark information of the initial icon, taking the template in the second preset database as a target template, taking the background in the second preset database as a target background, obtaining a plurality of target templates and target backgrounds, and forming an element combination by the initial icon, one target template and one target background, thereby obtaining a plurality of element combinations.
Further, all example graphs generated by one element combination according to a plurality of corresponding picture sizes are an example graph group, and the example graph storage module comprises:
an example graph determining unit for determining whether all the example graphs of the current example graph group are successfully generated;
the example graph storage unit is used for storing the example graphs of the current example graph group into a first preset database in a line-by-line storage mode if all the example graphs of the current example graph group are successfully generated;
and the task retry unit is used for marking the task generated by the example graph as a task to be retried if the example graphs of the current example graph group are not generated successfully, and executing the task to be retried according to a preset delay rule to regenerate the example graph.
The generation device of the picture materials provided by the embodiment of the invention realizes the batch production of the picture materials through the pattern acquisition module, the target example image determination module and the picture material generation module, and can acquire a plurality of picture materials by inputting one picture pattern, thereby improving the design efficiency of the picture materials; and through matching and screening of the marking information, the relevance between the example image and the picture file is improved, so that the generated picture material is more accurate.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary computer device 512 suitable for use in implementing embodiments of the present invention. The computer device 512 shown in FIG. 5 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in fig. 5, computer device 512 is embodied in the form of a general purpose device. Components of computer device 512 may include, but are not limited to: one or more processors 516 (one processor is illustrated in fig. 5), a memory device 528, and a bus 518 that couples various system components including the memory device 528 and the processors 516.
Bus 518 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 512 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 512 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 528 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 530 and/or cache Memory 532. The computer device 512 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 534 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk such as a Compact disk Read-Only Memory (CD-ROM), Digital Video disk Read-Only Memory (DVD-ROM) or other optical media may be provided. In these cases, each drive may be connected to bus 518 through one or more data media interfaces. Storage 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 540 having a set (at least one) of program modules 542 may be stored, for example, in storage 528, such program modules 542 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may include an implementation of a network environment. The program modules 542 generally perform the functions and/or methods of the described embodiments of the invention.
The computer device 512 may also communicate with one or more external devices 514 (e.g., keyboard, pointing terminal, display 524, etc.), with one or more terminals that enable a user to interact with the computer device 512, and/or with any terminals (e.g., network card, modem, etc.) that enable the computer device 512 to communicate with one or more other computing terminals. Such communication may occur via input/output (I/O) interfaces 522. Also, computer device 512 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) via Network adapter 520. As shown in FIG. 5, network adapter 520 communicates with the other modules of computer device 512 via bus 518. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the computer device 512, including but not limited to: microcode, end drives, Redundant processors, external disk drive Arrays, RAID (Redundant Arrays of independent disks) systems, tape drives, and data backup storage systems.
The processor 516 executes various functional applications and data processing by running a program stored in the storage device 528, for example, implementing a method for generating picture material provided by any embodiment of the present invention, the method may include: acquiring a picture file, wherein the picture file comprises first mark information, and the first mark information at least comprises one of a first service type, a first operation position and a first label; if second marking information of the example graph in a first preset database is consistent with first marking information of the picture and literature, taking the example graph in the first preset database as a target mark graph to obtain a plurality of target mark graphs, wherein the second marking information comprises a second service type, a second operation position and a second label; and combining the picture file with each target example graph to generate a plurality of picture materials.
EXAMPLE six
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for generating a picture material according to any embodiment of the present invention, where the method includes: acquiring a picture file, wherein the picture file comprises first mark information, and the first mark information at least comprises one of a first service type, a first operation position and a first label; if second marking information of the example graph in a first preset database is consistent with first marking information of the picture and literature, taking the example graph in the first preset database as a target mark graph to obtain a plurality of target mark graphs, wherein the second marking information comprises a second service type, a second operation position and a second label; and combining the picture file with each target example graph to generate a plurality of picture materials.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for generating a picture material is characterized by comprising the following steps:
acquiring a picture file, wherein the picture file comprises first mark information, and the first mark information at least comprises one of a first service type, a first operation position and a first label;
if second marking information of the example graph in a first preset database is consistent with first marking information of the picture and literature, taking the example graph in the first preset database as a target mark graph to obtain a plurality of target mark graphs, wherein the second marking information comprises a second service type, a second operation position and a second label;
and combining the picture file with each target example graph to generate a plurality of picture materials.
2. The method of claim 1, wherein if the second tag information of the example graph in the first preset database is consistent with the first tag information of the picture pattern, taking the example graph in the first preset database as a target-labeled graph, thereby obtaining a plurality of target-labeled graphs, comprising:
if the second service type of the example graph in the first preset database is consistent with the first service type of the picture case; and/or
If the second operation position of the example graph in the first preset database is consistent with the first operation position of the picture and literature; and/or
And if the second label of the example graph in the first preset database is consistent with the first label of the picture and literature, taking the example graph in the first preset database as a target mark example graph, thereby obtaining a plurality of target mark example graphs.
3. The method of claim 1, further comprising:
and uploading the plurality of picture materials to a server in a multithreading uploading mode.
4. The method of claim 2, wherein prior to obtaining the pictorial copy, further comprising:
acquiring a plurality of example graphs including second label information;
and storing the plurality of example graphs comprising the second mark information into a first preset database.
5. The method of claim 4, wherein the obtaining a plurality of example graphs including second marker information comprises:
obtaining an example graph generation task, wherein the example graph generation task comprises a plurality of initial elements of an example graph, the initial elements comprise third label information, and the third label information at least comprises one of a third service type, a third operator position and a third label;
matching multiple groups of target elements of the example graph formed by the initial elements in a second preset database according to the third marking information of each initial element to obtain multiple element combinations, wherein the initial elements and the group of target elements form one element combination, the group of target elements comprises multiple target elements, the elements in the second preset database comprise fourth marking information, and the fourth marking information comprises a fourth service type, a fourth operation position and a fourth label;
acquiring a plurality of picture sizes corresponding to each element combination;
and generating an example graph according to each corresponding picture size of each element combination to obtain a plurality of example graphs, wherein the second marking information of each example graph is the third marking information or the fourth marking information of the elements in the element combination.
6. The method of claim 5, wherein the plurality of initial elements comprise an initial template, an initial background, and an initial icon, and wherein the second pre-defined database comprises a plurality of templates, a plurality of backgrounds, and a plurality of icons;
matching, in a second preset database, a plurality of groups of target elements of the example graph formed by the initial elements according to the third label information of each initial element to obtain a plurality of element combinations, including:
if the fourth mark information of the background and the fourth mark information of the icon in the second preset database are consistent with the third mark information of the initial template, taking the background in the second preset database as a target background, taking the icon in the second preset database as a target icon, and obtaining a plurality of target backgrounds and target icons, wherein the initial template, one target background and one target icon form an element combination, so that a plurality of element combinations are obtained;
if the fourth mark information of the template and the fourth mark information of the icon in the second preset database are consistent with the third mark information of the initial background, taking the template in the second preset database as a target template, taking the icon in the second preset database as a target icon, and obtaining a plurality of target templates and target icons, wherein the initial background, one target template and one target icon form an element combination, so that a plurality of element combinations are obtained;
if the fourth mark information of the template and the fourth mark information of the background in the second preset database are consistent with the third mark information of the initial icon, taking the template in the second preset database as a target template, taking the background in the second preset database as a target background, obtaining a plurality of target templates and target backgrounds, and forming an element combination by the initial icon, one target template and one target background, thereby obtaining a plurality of element combinations.
7. The method of claim 5, wherein the step of storing the plurality of example graphs including the second label information in a first predetermined database comprises:
determining whether all of the example graphs of the current example graph group are successfully generated;
if all the example graphs of the current example graph group are successfully generated, storing the example graphs of the current example graph group into a first preset database in a line-by-line storage mode;
and if the example graphs of the current example graph group are not generated successfully, marking the example graph generation task as a task to be retried, and executing the task to be retried according to a preset delay rule to regenerate the example graph.
8. An apparatus for generating a picture material, comprising:
the system comprises a file acquisition module, a file acquisition module and a file processing module, wherein the file acquisition module is used for acquiring a picture file, the picture file comprises first mark information, and the first mark information at least comprises one of a first service type, a first operation position and a first label;
a destination label illustration determining module, configured to, if second label information of an example illustration in a first preset database is consistent with first label information of the picture case, take the example illustration in the first preset database as a destination label illustration, so as to obtain a plurality of destination label illustrations, where the second label information includes a second service type, a second service location, and a second label;
and the picture material generation module is used for combining the picture pattern with each target example image to generate a plurality of picture materials.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of generating picture material as claimed in any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of generating a picture material according to any one of claims 1 to 7.
CN202010372374.1A 2020-05-06 2020-05-06 Picture material generation method and device, computer equipment and storage medium Active CN111538856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010372374.1A CN111538856B (en) 2020-05-06 2020-05-06 Picture material generation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010372374.1A CN111538856B (en) 2020-05-06 2020-05-06 Picture material generation method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111538856A true CN111538856A (en) 2020-08-14
CN111538856B CN111538856B (en) 2023-08-29

Family

ID=71977446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010372374.1A Active CN111538856B (en) 2020-05-06 2020-05-06 Picture material generation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111538856B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107786887A (en) * 2017-10-10 2018-03-09 北京奇艺世纪科技有限公司 A kind of method and device for showing displaying information
CN108694210A (en) * 2017-04-11 2018-10-23 阿里巴巴集团控股有限公司 Template generation method and device
CN108961362A (en) * 2017-05-27 2018-12-07 阿里巴巴集团控股有限公司 A kind of generation method and device of network picture
CN109344291A (en) * 2018-09-03 2019-02-15 腾讯科技(武汉)有限公司 A kind of video generation method and device
CN110245257A (en) * 2019-05-31 2019-09-17 阿里巴巴集团控股有限公司 The generation method and device of pushed information
CN110347858A (en) * 2019-07-16 2019-10-18 腾讯科技(深圳)有限公司 A kind of generation method and relevant apparatus of picture
CN110750666A (en) * 2018-07-04 2020-02-04 北京京东尚科信息技术有限公司 Picture generation method and system, electronic device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694210A (en) * 2017-04-11 2018-10-23 阿里巴巴集团控股有限公司 Template generation method and device
CN108961362A (en) * 2017-05-27 2018-12-07 阿里巴巴集团控股有限公司 A kind of generation method and device of network picture
CN107786887A (en) * 2017-10-10 2018-03-09 北京奇艺世纪科技有限公司 A kind of method and device for showing displaying information
CN110750666A (en) * 2018-07-04 2020-02-04 北京京东尚科信息技术有限公司 Picture generation method and system, electronic device and storage medium
CN109344291A (en) * 2018-09-03 2019-02-15 腾讯科技(武汉)有限公司 A kind of video generation method and device
CN110245257A (en) * 2019-05-31 2019-09-17 阿里巴巴集团控股有限公司 The generation method and device of pushed information
CN110347858A (en) * 2019-07-16 2019-10-18 腾讯科技(深圳)有限公司 A kind of generation method and relevant apparatus of picture

Also Published As

Publication number Publication date
CN111538856B (en) 2023-08-29

Similar Documents

Publication Publication Date Title
CN109801347B (en) Method, device, equipment and medium for generating editable image template
JP4700423B2 (en) Common charting using shapes
CN107832662B (en) Method and system for acquiring image annotation data
US10552525B1 (en) Systems, methods and apparatuses for automated form templating
US20100077355A1 (en) Browsing of Elements in a Display
CN107908641B (en) Method and system for acquiring image annotation data
CN109472852B (en) Point cloud image display method and device, equipment and storage medium
US9135234B1 (en) Collaborative generation of digital content with interactive reports
CN109343924A (en) Activiti flow chart redraws method, apparatus, computer equipment and storage medium processed
CN110012358A (en) Review of a film by the censor information processing method, device
CN112329777A (en) Character recognition method, device, equipment and medium based on direction detection
CN111951356A (en) Animation rendering method based on JSON data format
CN110286971B (en) Processing method and system, medium and computing device
US20200005387A1 (en) Method and system for automatically generating product visualization from e-commerce content managing systems
CN110855557A (en) Video sharing method and device and storage medium
CN109116718B (en) Method and device for setting alarm clock
CN114416068A (en) Application development platform, microprogram generation method, microprogram generation device and storage medium
CN111552826B (en) Example picture generation method and device, computer equipment and storage medium
CN113763009A (en) Picture processing method, picture skipping method, device, equipment and medium
US20080086324A1 (en) Parts managing system, parts managing method, and computer program product
CN111782996A (en) Asynchronous request processing method and device
CN111538856B (en) Picture material generation method and device, computer equipment and storage medium
US8902252B2 (en) Digital image selection in a surface computing device
WO2022089427A1 (en) Video generation method and apparatus, and electronic device and computer-readable medium
CN115756461A (en) Annotation template generation method, image identification method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant