CN114004918A - Poster generation method, device and medium - Google Patents

Poster generation method, device and medium Download PDF

Info

Publication number
CN114004918A
CN114004918A CN202111297238.1A CN202111297238A CN114004918A CN 114004918 A CN114004918 A CN 114004918A CN 202111297238 A CN202111297238 A CN 202111297238A CN 114004918 A CN114004918 A CN 114004918A
Authority
CN
China
Prior art keywords
poster
information
template
image
size
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.)
Pending
Application number
CN202111297238.1A
Other languages
Chinese (zh)
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.)
Ctrip Computer Technology Shanghai Co Ltd
Original Assignee
Ctrip Computer Technology Shanghai 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 Ctrip Computer Technology Shanghai Co Ltd filed Critical Ctrip Computer Technology Shanghai Co Ltd
Priority to CN202111297238.1A priority Critical patent/CN114004918A/en
Publication of CN114004918A publication Critical patent/CN114004918A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a poster generation method, a poster generation device, equipment and a medium, wherein the poster generation method comprises the following steps: determining poster template information, the poster template information comprising at least one poster template; determining personalization information, the personalization information comprising content information for populating the poster template; selecting the poster template from the poster template information based on the personalization information; and generating the poster according to the personalized information and the poster template. The technical scheme in the embodiment of the invention has higher efficiency.

Description

Poster generation method, device and medium
Technical Field
The invention relates to the field of software, in particular to a poster generation method, a poster generation device, poster generation equipment and a poster generation medium.
Background
In some application scenarios, a large number of posters need to be generated, and how to consider the personalization of the posters and the generation efficiency of the posters becomes an urgent problem to be solved.
Disclosure of Invention
To solve the problems in the prior art, an embodiment of the present invention provides a poster generation method, including:
determining poster template information, the poster template information comprising at least one poster template;
determining personalization information, the personalization information comprising content information for populating the poster template;
selecting the poster template from the poster template information based on the personalization information;
and generating the poster according to the personalized information and the poster template.
Optionally, the poster template comprises a plurality of panels, and one or more of the positional relationship or the panel size of the plurality of panels.
Optionally, the personalized information includes content information for populating one or more of the plurality of panels, and the generating the poster from the personalized information and the poster template includes: and filling the content information into the corresponding plate.
Optionally, the filling the content information into the corresponding plate includes:
adjusting the content information according to the size information of the plate;
and filling the adjusted content information into the corresponding plate.
Optionally, the content information is text information, and the adjusting the content information according to the size of the plate includes:
judging whether the text length for filling the plate exceeds the size of the plate;
if the text length exceeds the preset text length, adjusting the text length to generate an adjusted text matched with the size of the plate;
the filling the adjusted content information into the corresponding plate includes: and filling the adjusted text into the corresponding plate.
Optionally, the adjusting the text length to generate an adjusted text matching the size of the plate includes at least one of:
cutting the text according to the size of the plate and adding an ellipsis;
and line feed is carried out on the text according to the size of the plate.
Optionally, the content information includes an image, the slab includes a layer background area, and adjusting the content information according to the size of the slab includes:
determining an image layer background area of an image application;
adjusting the image according to the size of the layer background area applying the image;
the filling the adjusted content information into the corresponding plate includes: and filling the adjusted image to a corresponding image layer background area.
Optionally, adjusting the image according to the size of the layer background area to which the image is applied includes at least one of:
intercepting an image with a corresponding size from the image according to the size of the layer background area applying the image to serve as an adjusted image;
and scaling the image according to the size of the layer background area applying the image to obtain the adjusted image.
Optionally, the image includes an identification code.
Optionally, the generating a poster according to the personalized information and the poster template includes: and if the necessary information for generating the poster is lacked in the personalized information, issuing prompt information to acquire the information again.
Optionally, the personalized information includes activity information obtained by monitoring a route, and selecting the poster template from the poster template information based on the personalized information includes: determining the poster template based on the activity information.
An embodiment of the present invention further provides a poster generation apparatus, including:
a template information determination unit that determines poster template information including at least one poster template;
a personalized information determination unit that determines personalized information including content information for populating the poster template;
a template determination unit adapted to select the poster template from the poster template information based on the personalization information;
and the poster drawing unit is suitable for generating the poster according to the personalized information and the poster template.
An embodiment of the present invention further provides an electronic device, including:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to execute via execution of the executable instructions to implement the poster generation method.
An embodiment of the present invention also provides a computer-readable storage medium storing a program that, when executed, implements the poster generation method.
In the embodiment of the invention, the poster generation efficiency can be improved by acquiring the poster template information and the personalized information, selecting a proper template according to the personalized information and generating the poster.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, with reference to the accompanying drawings.
FIG. 1 is a flow chart of a method of poster generation in an embodiment of the present invention;
FIG. 2 is a flowchart of one specific implementation of step S14 in FIG. 1;
FIG. 3 is a flow diagram of another specific implementation of step S14 of FIG. 1;
FIG. 4 is a flow diagram of another specific implementation of step S14 of FIG. 1;
FIG. 5 is a schematic illustration of a poster structure in an embodiment of the invention;
fig. 6 is a schematic diagram of the unit structure of a poster generating apparatus in an embodiment of the invention;
FIG. 7 is a schematic diagram of a client or server according to an embodiment of the present invention; and
fig. 8 is a schematic structural diagram of a computer-readable storage medium according to one embodiment of the present invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus their repetitive description will be omitted.
With reference to fig. 1 in combination, an embodiment of the present invention provides a poster generation method, which may specifically include the following steps:
step S11, determining poster template information, wherein the poster template information comprises at least one poster template;
step S12, determining personalized information, wherein the personalized information comprises content information used for filling the poster template;
a step S13 of selecting the poster template from the poster template information based on the personalization information;
and step S14, generating a poster according to the personalized information and the poster template.
In the embodiment of the invention, the poster generation efficiency can be improved on the premise of considering the personalized requirements of the poster by acquiring the poster template information and the personalized information, selecting a proper template according to the personalized information and generating the poster.
The poster is a carrier for displaying information, and may include any one or more of text or images. The included images can be located on one or more layers, and the text can be in the background of the images or in an independent area. The poster may be in the form of an electronic or paper poster, all without limitation.
As described in the background, in some application scenarios, a large number of posters need to be generated. For example, in a scenario where the information platform cooperates with various merchants, further taking hotel merchants as an example, the platform needs to provide a large amount of posters for the hotel merchants according to changes of activities. For tens of thousands of hotel merchants, if the traditional design method is adopted, the hotel merchants are required to use uniform movable posters for reducing cost, meanwhile, in order to give consideration to the individuation of poster information, a large amount of labor cost waste is caused if posters are generated according to different hotel individuation, and any individuation change of the hotel merchants needs to be provided by an information platform side for modification, so that the complexity of a program flow is increased.
For the holding of the different events, hotel merchants can actively update posters of the corresponding events. For poster materials with reusable scenes, a designer only needs to change information of different hotel merchants, and a single picture making mode is adopted, so that great labor cost waste is caused, and the hotel merchants cannot timely acquire and update required poster material pictures due to the problem of time required for making pictures. The embodiment of the invention mainly aims to solve the problems of acquisition of poster materials generated by merchants and generation of the poster materials by enterprises, and reduces the cost of the enterprises for poster development by improving the reusability of the poster materials, the diversity of combination forms and the timeliness of acquisition time through the technology, thereby improving the convenience, introduction and high efficiency of the hotel merchants for poster acquisition. According to the embodiment of the invention, the collected poster materials of the reusable scene are used as poster template information, and the personalized information is combined with the poster template information to independently generate the corresponding activity poster according to different activities, so that the poster matched with the activity can be generated in real time.
As previously described, poster templates can be obtained by collecting poster material. In specific implementation, when the poster template is selected from the poster template information based on the personalized information, whether the poster material collected from the merchant exists or not can be firstly inquired, if the poster material exists, the poster of the merchant can be generated on the basis of the template corresponding to the poster material, and the poster generation efficiency can be improved.
In a particular implementation, the poster template may include one or more of the following: the area division, the layer position, the text area position, and the like of the poster, and each of the above-mentioned areas, for example, each layer area, text area, and the like, may be referred to as a plate of the poster. The personalized information may include graphics or text that each region desires to display.
In a specific implementation, the sizes of the different regions may also be included in the personalized information, and the size information included in the personalized information or the plate information may be determined by a specific application scenario.
In a specific implementation, generating the poster from the personalized information and the poster template includes: and filling the content information into the corresponding plate.
Specifically, in conjunction with fig. 2, the filling may be performed by the following steps:
step S21, adjusting the content information according to the size of the plate;
and step S22, filling the adjusted content information into the corresponding plate.
By adjusting the content information, the adjusted content information meets the requirement of the poster template size, the personalized configuration of the poster content can be realized, and the poster generation efficiency is improved.
In a specific implementation, the step of filling the content information into the corresponding plate may specifically be implemented by:
step S31, judging whether the text length for filling the plate exceeds the size of the plate;
step S32, if the text length exceeds the preset text length, adjusting the text length to generate an adjusted text matched with the size of the plate;
and step S33, filling the adjusted text into the corresponding plate.
In a specific implementation, the adjusting the text length to generate an adjusted text matching the size of the plate includes at least one of: cutting the text according to the size of the plate and adding an ellipsis; and line feed is carried out on the text according to the size of the plate. The following description will be given with reference to specific examples.
Referring to fig. 4 in combination, in a specific implementation, the content information may include an image, the slab includes a layer background area, and adjusting the content information according to the size of the slab may include the following steps:
step S41, determining the background area of the image layer of the image application;
step S42, adjusting the image according to the size of the background area of the image layer to which the image is applied;
step S43, the filling the adjusted content information into the corresponding plate includes: and filling the adjusted image to a corresponding image layer background area.
In a specific implementation, the adjusting the image according to the size of the background area of the image layer to which the image is applied includes at least one of:
intercepting an image with a corresponding size from the image according to the size of the layer background area applying the image to serve as an adjusted image;
and scaling the image according to the size of the layer background area applying the image to obtain the adjusted image.
The image may include an image used as a background, and may also include an identification code, such as a two-dimensional code connected to a merchant website page. By adjusting the size of the image, the image selected in a personalized way can be applied to the poster template, and both personalization and poster generation efficiency are considered.
The above steps are further described with reference to a specific embodiment. Fig. 5 is a schematic view of a poster template in an embodiment of the invention. As shown in fig. 5, the poster structure example includes several plates of a bottom layer image, an upper layer beijing, a text background, text content, a lower layer background, and an applet two-dimensional code, and can be a structure example of a poster template. The specific poster generation steps are as follows:
(1) first, the height H of the bottom image is set1And width W1And adding a background to the bottom layer image. Currently acquired coordinates (x)1,y1) With the original coordinates (x)0,y0) I.e., (0, 0).
(2) Height H of upper background2Width W2Starting coordinate (x)2,y2) And other background style parameters. Firstly to H2And W2Size and Hi(max)、Wi(max)A comparison is made, with reference to equation (6), equation (7). If it exceeds, default H2And W2Size Hi(max)、Wi(max). Where the area is filled according to the transmitted parametersAnd (4) background.
(3) Acquiring height H of text background area size3Width W3Starting coordinate (x)3,y3) Other background style parameters, for H3And W3Size and Hi(max)、Wi(max)A comparison is made, with reference to equation (6), equation (7). If exceeded, default H if exceeded3And W3Size Hi(max)、Wi(max). Where the background is filled in according to the transmitted parameters.
(4) Height H of text content area size is obtained4Width W4Starting coordinate (x)4,y4) Other background style parameters, for H4And W4Size and Hi(max)、Wi(max)A comparison is made, with reference to equation (6), equation (7). If it exceeds, default H4And W4Size Hi(max)、Wi(max). The region is filled with text and the like according to the transmitted parameters. In the text content area, two mode processing modes can be carried out for the text content beyond the current line:
firstly, the text is adjusted by truncating the text, and the specific implementation mode is as follows:
when the length of the text is WtestOver W4When the text is truncated at the end of the current line, it is replaced with the end of ellipses …. The text processing formula is as follows:
Wtext=WCurrentText+WNextWord (1)
Figure BDA0003336935070000071
Figure BDA0003336935070000072
the Text represents the current Text information to be judged, the CurrentText represents the current judged Text information, and the first word of the Text information is used as an initial value. Lastword represents the last word of the currently judged text information, and W plus the subscripts represent the lengths of the words. By the method, word-by-word judgment is realized, and the text content is adjusted, so that the text content is adaptive to the poster template.
Secondly, the text is adjusted in a line feed way, specifically, when the length W of the character is equal to the length W of the charactertestOver W4Line feed processing is adopted. The text processing formula is as follows:
Wtext=WCurrentText+WNextWord (1)
Figure BDA0003336935070000073
wherein, CurrentLine represents the number of lines, and formula 5 represents the number of lines plus one to perform line feed.
(5) Obtaining the height H of the lower background area5Width W5Starting coordinate (x)5,y5) Other background style parameters, for H5And W5Size and Hi(max)、Wi(max)For comparison, refer to equations (6), (7). If it exceeds, default to H5And W5Respectively has a size of Hi(max)、Wi(max). Where the background is filled in according to the transmitted parameters.
(6) Height H of small program two-dimensional code background area size is obtained6Width W6Starting coordinate (x)6,y6) Other background style parameters, for height H6Width W6Size and Hi(max)、Wi(max)For comparison, refer to equations (6), (7). If so, the height H is determined6Width W6Respectively taking Hi(max)、Wi(max). And producing a corresponding two-dimensional code pattern in the area according to the transmitted parameters.
(7) And covering the produced picture area on the corresponding layer to generate a corresponding poster material. The calculation formula (6) of the available length and width of the region is as follows:
Figure BDA0003336935070000081
the calculation formula (7) of the start coordinate position is:
Figure BDA0003336935070000082
x in the above formula0Is the current brush's vertical axis coordinate, y, of the current layer0The current brush's vertical axis coordinate, x, for the current layer1Is the horizontal axis coordinate of the bottom layer, y1Is the ordinate of the longitudinal axis of the substrate.
The parameters in this embodiment may be specifications in the poster template, may be from personalized information, may be direct specifications of personalized information, or may be obtained by measuring text or images in the personalized information. For example, H corresponding to each regioni(max)、Wi(max)Can be carried on the poster template and the height, width of each region can be from personalized information or vice versa.
In a specific implementation, the above steps may be implemented by Python language, or may be implemented by other languages.
In a specific implementation, when the necessary information for generating the poster is found to be missing in the personalized information during the generation of the poster, the prompting information is issued to acquire the information again. For example, a prompt may be presented via an interface display to retrieve the information again. If the acquisition fails, default information may also be employed.
In a specific implementation, the personalized information may include activity information obtained by monitoring a route, and the poster template may be determined based on the activity information, so that a matching degree between the poster template and the personalized information filling the template may be improved.
The embodiment of the invention also comprises a poster generation device, which specifically comprises the following units:
a template information determination unit 61 that determines poster template information including at least one poster template;
a personalized information determination unit 62 that determines personalized information including content information for populating the poster template;
a template determination unit 63 adapted to select the poster template from the poster template information based on the personalization information;
and a poster drawing unit 64 adapted to generate a poster from the personalized information and the poster template.
It is understood that fig. 6 is only an illustration and does not show the data flow relationship between the modules. The implementation and the beneficial effects of the poster generation device in the embodiment of the invention can refer to a poster generation method, and are not described herein again.
The functional blocks in the above embodiments may be implemented wholly or partially by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of program instruction products. The program instruction product includes one or more program instructions. The processes or functions according to the present application occur in whole or in part when program instruction instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The program instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
Moreover, the apparatuses disclosed in the above embodiments may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or modules may be combined or may be dynamic to another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or modules, and may be in an electrical or other form.
In addition, each functional module and each sub-module in the above embodiments may be dynamically in one processing unit, or each module may exist alone physically, or two or more modules may be dynamically in one unit. The dynamic component can be realized in a form of hardware or a form of a software functional module. The dynamic components described above, if implemented in the form of software functional modules and sold or used as a stand-alone product, may also be stored in a computer readable storage medium. The storage medium may be a read-only memory, a magnetic or optical disk, or the like
An embodiment of the present invention further provides an electronic device, including:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to execute, via execution of the executable instructions, to implement the poster generation method described previously.
An embodiment of the present invention also provides a computer-readable storage medium for storing a program that, when executed, implements the poster generation method described above.
The implementation principles and beneficial effects of the device, the method, the medium, the equipment and the like in the embodiment of the invention are the same, and can be referred to each other.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" platform.
Fig. 7 is a schematic structural diagram of a client or a server in an embodiment of the present invention. An electronic apparatus 600 for implementing the aforementioned language identification method according to this embodiment of the present invention is described below with reference to fig. 7. The electronic device 600 shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different platform components (including the memory unit 620 and the processing unit 610), a display unit 640, etc.
Wherein the storage unit stores program code which can be executed by the processing unit 610 such that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention as described in the above-mentioned method section of the present specification.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, to name a few.
Fig. 8 is a schematic structural diagram of a computer-readable storage medium of the present invention. Referring to fig. 8, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a 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.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A 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 readable storage medium include: an electrical connection having one or more wires, a portable 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable storage medium may include a propagated data signal with 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 readable storage medium may also be any readable medium that is not a 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 readable storage 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.
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, 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 computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In the description herein, references to the description of "an embodiment," "a further embodiment," "specifically," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Moreover, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without conflicting aspects.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and 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 at least one such feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process. And the scope of the preferred embodiments of the present invention includes additional implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
In summary, according to the technical scheme in the embodiment of the present invention, by obtaining poster template information and personalized information, and selecting an appropriate template according to the personalized information to generate a poster, the efficiency of poster generation can be improved.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (14)

1. A poster generation method, comprising:
determining poster template information, the poster template information comprising at least one poster template;
determining personalization information, the personalization information comprising content information for populating the poster template;
selecting the poster template from the poster template information based on the personalization information;
and generating the poster according to the personalized information and the poster template.
2. A poster generation method as claimed in claim 1, wherein the poster template comprises a plurality of panels, and one or more of the positional relationship or panel size of the plurality of panels.
3. The poster generation method of claim 2, wherein the personalized information comprises content information for populating one or more of the plurality of panels, the generating the poster from the personalized information and the poster template comprising: and filling the content information into the corresponding plate.
4. A poster generation method as claimed in claim 2, wherein populating the content information to the corresponding plates comprises:
adjusting the content information according to the size information of the plate;
and filling the adjusted content information into the corresponding plate.
5. A poster generation method as defined in claim 4, wherein the content information is text information, and wherein the adjusting the content information according to the size of the plate comprises:
judging whether the text length for filling the plate exceeds the size of the plate;
if the text length exceeds the preset text length, adjusting the text length to generate an adjusted text matched with the size of the plate;
the filling the adjusted content information into the corresponding plate includes: and filling the adjusted text into the corresponding plate.
6. A poster generation method as claimed in claim 5, wherein adjusting the text length to generate an adjusted text matching the dimensions of the board comprises at least one of:
cutting the text according to the size of the plate and adding an ellipsis;
and line feed is carried out on the text according to the size of the plate.
7. A poster generation method as defined in claim 4, wherein the content information comprises an image, the plaque comprises a layer background area, and adjusting the content information according to the size of the plaque comprises:
determining an image layer background area of an image application;
adjusting the image according to the size of the layer background area applying the image;
the filling the adjusted content information into the corresponding plate includes: and filling the adjusted image to a corresponding image layer background area.
8. The poster generation method of claim 7, wherein adjusting the image according to a size of an overlay background area to which the image is applied comprises at least one of:
intercepting an image with a corresponding size from the image according to the size of the layer background area applying the image to serve as an adjusted image;
and scaling the image according to the size of the layer background area applying the image to obtain the adjusted image.
9. The poster generation method of claim 7, wherein the image comprises an identification code.
10. The poster generation method of claim 1, wherein generating the poster from the personalization information and the poster template comprises: and if the necessary information for generating the poster is lacked in the personalized information, issuing prompt information to acquire the information again.
11. The poster generation method of claim 1, wherein the personalization information comprises activity information obtained by listening to a route, and wherein selecting the poster template from the poster template information based on the personalization information comprises: determining the poster template based on the activity information.
12. A poster generating apparatus, comprising:
a template information determination unit that determines poster template information including at least one poster template;
a personalized information determination unit that determines personalized information including content information for populating the poster template;
a template determination unit adapted to select the poster template from the poster template information based on the personalization information;
and the poster drawing unit is suitable for generating the poster according to the personalized information and the poster template.
13. An electronic device, comprising:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the poster generation method of any of claims 1 to 11 via execution of the executable instructions.
14. A computer-readable storage medium storing a program, characterized in that the program, when executed, implements the poster generation method of any of claims 1 to 11.
CN202111297238.1A 2021-11-04 2021-11-04 Poster generation method, device and medium Pending CN114004918A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111297238.1A CN114004918A (en) 2021-11-04 2021-11-04 Poster generation method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111297238.1A CN114004918A (en) 2021-11-04 2021-11-04 Poster generation method, device and medium

Publications (1)

Publication Number Publication Date
CN114004918A true CN114004918A (en) 2022-02-01

Family

ID=79927045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111297238.1A Pending CN114004918A (en) 2021-11-04 2021-11-04 Poster generation method, device and medium

Country Status (1)

Country Link
CN (1) CN114004918A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117274429A (en) * 2023-08-23 2023-12-22 北京安锐卓越信息技术股份有限公司 Poster picture generation method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117274429A (en) * 2023-08-23 2023-12-22 北京安锐卓越信息技术股份有限公司 Poster picture generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109801347B (en) Method, device, equipment and medium for generating editable image template
JP4700423B2 (en) Common charting using shapes
JP4820526B2 (en) Publication creation method, electronic publication by the method, display method thereof, and network system
US11003680B2 (en) Method for providing e-book service and computer program therefor
US20110145691A1 (en) Method for Sequenced Document Annotations
CN110532497B (en) Method for generating panorama, method for generating three-dimensional page and computing device
CN104966311A (en) Vector graph storage method used for handwriting signing system
US8332750B2 (en) Resolving inter-page nodes and connectors in process diagrams
US9135234B1 (en) Collaborative generation of digital content with interactive reports
CN111597628B (en) Model marking method and device, storage medium and electronic equipment
CN114004918A (en) Poster generation method, device and medium
US9360339B2 (en) Rendering maps with canvas elements
KR20160113135A (en) Providing print view of document for editing in web-based application
CN111145143B (en) Problem image determining method and device, electronic equipment and storage medium
US8495519B2 (en) Methods and apparatus for displaying interprocess communication thumbnails
CN108536715B (en) Preview page generation method, device, equipment and storage medium
CN112365402B (en) Intelligent winding method and device, storage medium and electronic equipment
US8488183B2 (en) Moving labels in graphical output to avoid overprinting
CN111046096B (en) Method and device for generating graphic structured information
CN105378645A (en) Virtualizing applications for multi-monitor environments
US20120170078A1 (en) Image processing system and method
US20230119741A1 (en) Picture annotation method, apparatus, electronic device, and storage medium
CN113095051B (en) Method, device, computer equipment and storage medium for generating response mark enterprise report
US10896483B2 (en) Dynamic content generation system
US20070103488A1 (en) Substituting pattern fills

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