CN113781601A - Poster synthesis method, device, equipment and storage medium - Google Patents

Poster synthesis method, device, equipment and storage medium Download PDF

Info

Publication number
CN113781601A
CN113781601A CN202111046830.4A CN202111046830A CN113781601A CN 113781601 A CN113781601 A CN 113781601A CN 202111046830 A CN202111046830 A CN 202111046830A CN 113781601 A CN113781601 A CN 113781601A
Authority
CN
China
Prior art keywords
information
poster
processed
picture
determining
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
CN202111046830.4A
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.)
Shenzhen Kukai Software Technology Co ltd
Original Assignee
Shenzhen Kukai Software 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 Kukai Software Technology Co ltd filed Critical Shenzhen Kukai Software Technology Co ltd
Priority to CN202111046830.4A priority Critical patent/CN113781601A/en
Publication of CN113781601A publication Critical patent/CN113781601A/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/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • 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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to the technical field of image processing, and discloses a poster synthesis method, a poster synthesis device, poster synthesis equipment and a storage medium, wherein the poster synthesis method comprises the following steps: obtaining a poster to be processed and drawing assembly information; performing position processing on the poster to be processed, and determining the drawing position of the drawing component information; and synthesizing the poster to be processed according to the drawing assembly information and the drawing position to determine a target poster. The poster to be processed and the drawing assembly information are synthesized at the drawing position by performing position processing on the poster to be processed, so that poster synthesis is efficiently completed by determining the drawing position.

Description

Poster synthesis method, device, equipment and storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a poster combining method, device, apparatus, and storage medium.
Background
In poster composition processing, it is common to perform text drawing or other graphics on the original poster, for example: in the corner mark drawing process, for the synthesized picture, the drawing position of the picture needs to be determined, and for the synthesized character, the font, the character weight, the font color, the background color, and the like of the character need to be determined. The existing poster synthesis processing is generally carried out through picture processing software with strong functions, because when the poster is synthesized, the poster is directly drawn and is not a single synthesized character or a synthesized picture, and the characters and the picture need to be synthesized with high probability, the feeling of the poster to human eyes after being drawn is easily prominent, so that the poster is weakened, and the poster synthesis cannot be efficiently completed.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a poster synthesis method, a poster synthesis device, poster synthesis equipment and a storage medium, and aims to solve the technical problem of how to efficiently synthesize posters in the prior art.
To achieve the above object, the present invention provides a poster synthesizing method including the steps of:
obtaining a poster to be processed and drawing assembly information;
performing position processing on the poster to be processed, and determining the drawing position of the drawing component information;
and synthesizing the poster to be processed according to the drawing assembly information and the drawing position to determine a target poster.
Optionally, the performing position processing on the poster to be processed to determine a drawing position of the drawing component information includes:
performing position processing on the poster to be processed to obtain the poster to be processed after the position processing;
determining type information of the drawing component information;
and determining the drawing position of the drawing component information according to the type information, the position identifier, the margin and the poster to be processed after the position processing.
Optionally, the determining a drawing position of the drawing component information according to the type information, the position identifier, the margin and the poster to be processed after the position processing includes:
if the type information of the drawing component information is picture information, judging whether the drawing position of the picture information is drawn based on a preset drawing component or not;
if the drawing position of the picture information is not drawn based on a preset drawing assembly, acquiring the position information of the poster to be processed after position processing;
and determining the drawing position of the drawing component information according to the position identifier, the margin, the position information of the poster to be processed after the position processing and the picture information.
Optionally, if the type information of the drawing component information is picture information, determining whether a drawing position of the picture information is drawn based on a preset drawing component, further comprising:
if the drawing position of the picture information is drawn based on a preset drawing component, acquiring preset drawing coordinate information of the preset drawing component;
and determining the drawing position of the drawing component information according to the position identification, the margin, the preset drawing coordinate information and the picture information.
Optionally, the determining a drawing position of the drawing component information according to the type information, the position identifier, the margin and the poster to be processed after the position processing includes:
if the type information of the drawing component information is character information, judging whether to convert the character information into picture information;
if the text information is not converted into the picture information, judging whether the drawing position of the text information is drawn based on a preset drawing assembly;
if the drawing position of the text information is not drawn based on a preset drawing assembly, acquiring the position information of the poster to be processed after position processing;
and determining the drawing position of the drawing component information according to the position identifier, the margin, the position information of the poster to be processed after the position processing and the character information.
Optionally, if the text information is not converted into the picture information, determining whether a drawing position of the text information is drawn based on a preset drawing component, further comprising:
if the drawing position of the character information is drawn based on a preset drawing component, acquiring preset drawing coordinate information of the preset drawing component;
and determining the drawing position of the drawing component information according to the position identification, the margin, the preset drawing coordinate information and the character information.
Optionally, if the type information of the drawing component information is text information, determining whether to perform conversion of the text information into picture information, including:
if the text information is converted into the picture information, determining the background color of the text information;
and determining the picture information according to the character information and the background color, and executing a step of judging whether the picture information is drawn based on a preset drawing component.
Further, to achieve the above object, the present invention also proposes a poster synthesizing apparatus comprising:
the acquisition module is used for acquiring the poster to be processed and drawing the component information;
the determining module is used for determining the drawing position of the drawing component information by performing position processing on the poster to be processed;
and the synthesis module is used for synthesizing the poster to be processed according to the drawing component information and the drawing position to determine a target poster.
Further, to achieve the above object, the present invention also proposes a poster synthesizing apparatus comprising: a memory, a processor and a poster composition program stored on the memory and executable on the processor, the poster composition program being configured to implement the steps of the poster composition method as described above.
Furthermore, to achieve the above object, the present invention also proposes a storage medium having stored thereon a poster synthesizing program which, when executed by a processor, realizes the steps of the poster synthesizing method as described above.
The invention obtains the poster to be processed and draws the information of the assembly; performing position processing on the poster to be processed, and determining the drawing position of the drawing component information; and synthesizing the poster to be processed according to the drawing assembly information and the drawing position to determine a target poster. The poster to be processed and the drawing assembly information are synthesized at the drawing position by performing position processing on the poster to be processed, so that poster synthesis is efficiently completed by determining the drawing position.
Drawings
Fig. 1 is a schematic structural diagram of a poster synthesizing apparatus of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow diagram of a first embodiment of a poster synthesis method of the present invention;
FIG. 3 is a schematic flow diagram of a second embodiment of a poster synthesis method of the invention;
FIG. 4 is a diagram of the composition of a poster composition method according to an embodiment of the invention relying on other rendering components;
FIG. 5 is a composite view of an embodiment of a poster composition method of the present invention without relying on other rendering components;
fig. 6 is a block diagram showing the structure of a first embodiment of the poster synthesizing apparatus of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a poster synthesizing device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the poster synthesizing apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the arrangement shown in fig. 1 does not constitute a limitation of poster synthesizing devices and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a poster composition program.
In the poster synthesizing apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the poster synthesizing apparatus of the present invention may be provided in the poster synthesizing apparatus which calls the poster synthesizing program stored in the memory 1005 through the processor 1001 and executes the poster synthesizing method provided by the embodiment of the present invention.
An embodiment of the present invention provides a poster synthesizing method, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a poster synthesizing method according to the present invention.
In this embodiment, the poster synthesizing method includes the steps of:
step S10: and acquiring the poster to be processed and drawing the assembly information.
It should be noted that the execution body of the present embodiment may be a poster combining apparatus, and may also be other apparatuses that can achieve the same or similar functions.
It can be understood that the poster to be processed may be an original poster that needs to be subjected to text drawing or picture drawing, wherein if the original poster is a dynamic image, a first frame of the dynamic image is obtained, the first frame of the dynamic image is obtained as the poster to be processed, and if the original poster is a static image, the original poster is directly obtained. The drawing component information includes drawing type information, and the drawing type information includes drawing text information or drawing picture information, which is not limited in this embodiment.
Step S20: and performing position processing on the poster to be processed, and determining the drawing position of the drawing component information.
It can be understood that the poster to be processed is subjected to position processing, the type information of the drawing component information is determined, and the drawing position of the drawing component information is determined according to the type information, the position identifier, the margin and the poster to be processed after the position processing.
It should be understood that, in the position processing of the poster to be processed, the poster to be processed is adjusted in corresponding width and height based on the width and height information recommended by the drawing requirement, and coordinate information is established with the preset position of the poster to be processed as an origin, in a specific implementation process, the preset position may be an upper left corner of the poster to be processed, which is not limited in this embodiment, and the drawing position of the drawing component information is further determined according to the type information, the assigned position identifier, and the margin of each drawing component.
Step S30: and synthesizing the poster to be processed according to the drawing assembly information and the drawing position to determine a target poster.
It should be understood that according to the final drawing component type and the drawing position, if the drawing component type is a picture, the operation flow of picture drawing is executed, so that the drawing picture is filled in the drawing position corresponding to the picture type, and if the drawing component type is the picture, the operation flow of character drawing is executed, so that the drawing character is filled in the drawing position corresponding to the character type, and the combination of the drawing component and the poster to be processed is realized, so that the target poster is obtained.
The method comprises the steps of obtaining a poster to be processed and drawing component information; performing position processing on the poster to be processed, and determining the drawing position of the drawing component information; and synthesizing the poster to be processed according to the drawing assembly information and the drawing position to determine a target poster. The poster to be processed and the drawing assembly information are synthesized at the drawing position by performing position processing on the poster to be processed, so that poster synthesis is efficiently completed by determining the drawing position.
Referring to fig. 3, fig. 3 is a schematic flow chart of a second embodiment of a poster synthesizing method of the present invention.
Based on the first embodiment described above, the poster synthesizing method of the present embodiment includes, at step S20:
step S201: and carrying out position processing on the poster to be processed to obtain the poster to be processed after the position processing.
It should be understood that, the position processing of the poster to be processed is based on the adjustment of the corresponding width and height of the poster to be processed, and the coordinate information is established with the preset position of the poster to be processed as the origin, in the specific implementation process, the preset position may be the upper left corner of the poster to be processed, which is not limited in this embodiment, so as to obtain the poster to be processed after the position processing.
Step S202: determining type information of the drawing component information.
It should be noted that the type information of the drawing component information includes picture information and text information, where the text information includes text, font size, font color, and font weight, and the picture information includes picture height, width information, and picture address, which is not limited in this embodiment.
Step S203: and determining the drawing position of the drawing component information according to the type information, the position identifier, the margin and the poster to be processed after the position processing.
Further, the step S203 includes:
and if the type information of the drawing component information is picture information, judging whether the drawing position of the picture information is drawn based on a preset drawing component.
It should be understood that, if the type information is picture information, that is, if the drawing component for poster synthesis is a picture, it is determined whether or not the preset drawing component is relied upon for drawing when the drawing position of the picture information is confirmed.
It is to be understood that the preset drawing component may be other drawing components that have already determined a drawing position besides the current drawing component, for example, a picture or a text that has already determined a drawing position, and the embodiment is not limited thereto.
Further, if the type information of the drawing component information is picture information, determining whether a drawing position of the picture information is drawn based on a preset drawing component, and further including:
if the drawing position of the picture information is drawn based on a preset drawing component, acquiring preset drawing coordinate information of the preset drawing component; and determining the drawing position of the drawing component information according to the position identification, the margin, the preset drawing coordinate information and the picture information.
It should be understood that the preset drawing coordinate information may be coordinate information of a preset drawing component determined with the upper left corner of the poster to be processed as an origin, and if the drawing position of the picture information depends on the preset drawing component for drawing, the preset drawing coordinate information of the preset drawing component is obtained, and the drawing position of the drawing component information may be determined according to the position identifier, the edge distance, the preset drawing coordinate information relative to the preset drawing component, and the picture height and width information in the picture information, for example, as shown in fig. 4, a picture-dependent other drawing component composite map is shown, wherein 01 denotes a poster, 02 denotes a picture to be drawn, 03 denotes other drawing components, and the poster is a drawing base map, and the picture to be drawn or other drawing components are drawn on the poster, and in case that the position coordinates of other drawing components are determined, the position is identified as the lower left corner, the margins are the margins x in the horizontal direction and the margins y in the vertical direction, each spaced by 20 pixels, and the picture height information h and the width information w may be determined by the original width and height of the picture when no zoom picture width and height instruction is provided, and determined by zooming to the corresponding width and height when a zoom picture width and height instruction is provided.
And if the drawing position of the picture information is not drawn based on the preset drawing assembly, acquiring the position information of the poster to be processed after the position processing.
It should be noted that the position information of the poster to be processed after the position processing may be width information and height information of the poster to be processed after the position processing, and therefore, if the drawing position of the picture information does not depend on the preset drawing component for drawing, the width information and the height information of the poster to be processed are obtained.
And determining the drawing position of the drawing component information according to the position identifier, the margin, the position information of the poster to be processed after the position processing and the picture information.
In a specific implementation process, the position identifier may be any position where the drawing component is located at an upper left corner, an upper right corner, a lower left corner, or a lower right corner of the poster or other drawing components to be processed, which is not limited in this embodiment. The margin may be a pixel value of a horizontal margin and a vertical margin of the drawing component from the poster to be processed or other drawing components, and it is generally default that the margin of the drawing component from the poster to be processed in the horizontal direction and the margin of the drawing component in the vertical direction are each separated by 20 pixels, which is not limited in this embodiment. Therefore, when the type information of the current drawing component is picture information and no other drawing component is relied on in the synthesis process, the drawing position of the drawing component information can be determined according to the position identification, the margin, the position information of the poster to be processed and the picture height and width information in the picture information, for example, as shown in fig. 5, a picture synthesis graph independent of other drawing components is determined, wherein 01 represents the poster, 02 represents the picture to be drawn, the poster is a drawing base graph, the picture to be drawn is drawn on the drawing base graph of the poster, the position identification is the upper left corner, the margin is the margin x in the horizontal direction and the margin in the vertical direction y are respectively spaced by 20 pixels, the picture height information h and the width information w can be determined by the original width and height of the picture when no instruction for zooming the picture width and height is provided, determined by scaling to a corresponding aspect when a scale picture aspect instruction is provided.
It should be understood that if the type information of the drawing component information is picture information, it is first judged whether to rely on other drawing components, and if not, the drawing position is determined according to the position identification, the margin, the width and height of the poster to be processed after the position processing, and the width and height of the drawn picture information; and if the drawing position depends on other drawing components, obtaining the drawing coordinate information of the other drawing components, and determining the drawing position according to the position identification, the margin, the drawing coordinate, the width and the height in the drawing coordinate information depending on the other components and the width and the height in the drawing picture information.
Further, step S203 further includes:
and if the type information of the drawing component information is character information, judging whether to convert the character information into picture information.
It can be understood that, if the type information is text information, that is, if the drawing component for poster synthesis is text, it is determined whether the text information needs to be converted into picture information when the text information drawing position is confirmed.
Further, if the type information of the drawing component information is text information, determining whether to convert the text information into picture information, and then:
if the text information is converted into the picture information, determining the background color of the text information; and determining the picture information according to the character information and the background color, and executing a step of judging whether the picture information is drawn based on a preset drawing component.
It should be noted that, if the poster synthesizing device performs conversion of the text information into picture information, the background color of the text information is determined, where the background color may be any one of a background color obtained by converting text content with transparency or a custom background color, which is not limited in this embodiment.
It should be understood that the converted picture information may be determined by combining the text information with the background color, so that the step of determining whether the picture information is drawn based on the preset drawing component is further performed according to the above-described process flow of determining the drawing coordinates of the picture information.
It can be understood that after the text information is converted into the picture information and the drawing position of the text information in the current state is determined, the position area corresponding to the original poster can be intercepted according to the drawing coordinate information of the drawing component, and the maximum number of colors in the corresponding position area of the original poster can be extracted through the picture processing method, so that the maximum number of colors can be used as the background color with transparency processing.
And if the text information is not converted into the picture information, judging whether the drawing position of the text information is drawn based on a preset drawing assembly.
Since the text information can be synthesized based on the text information if the conversion of the text information into the picture information is not required, it is further determined whether or not the drawing position of the text information depends on another drawing component for drawing.
Further, if the text information is not converted into the picture information, determining whether the drawing position of the text information is drawn based on a preset drawing component, and then:
if the drawing position of the character information is drawn based on a preset drawing component, acquiring preset drawing coordinate information of the preset drawing component; and determining the drawing position of the drawing component information according to the position identification, the margin, the preset drawing coordinate information and the character information.
It can be understood that, if the drawing position of the text information depends on the preset drawing component for drawing, the preset drawing coordinate information of the preset drawing component is obtained, and the drawing position of the drawing component information can be determined according to the position identifier, the edge distance, the preset drawing coordinate information of the text information relative to the preset drawing component, and the height and width information of the text in the text information.
And if the drawing position of the text information is not drawn based on the preset drawing assembly, acquiring the position information of the poster to be processed after the position processing.
It can be understood that if the drawing position of the text information does not depend on other drawing components for drawing, the width information and the height information of the poster to be processed after position processing are obtained.
And determining the drawing position of the drawing component information according to the position identifier, the margin, the position information of the poster to be processed after the position processing and the character information.
It should be understood that, when the type information of the current drawing component is text information and no other drawing components are relied on in the synthesis process, the drawing position of the drawing component information can be determined according to the position identifier, the margin, the position information of the poster to be processed after the position processing, and the width information and the height information of the text content in the text information.
It can be understood that, if the type information of the drawing component information is text information, firstly judging whether the text information is to be converted into picture information, if so, converting the text information into the picture information, then determining the drawing position of the text information in the state according to the drawing coordinate determination process of the picture information, if not, further judging whether other drawing components are relied on, if not, determining the drawing position according to the position mark, the margin, the width and the height of the poster to be processed after the position processing and the width and the height of the text content in the text information, if so, searching the drawing coordinate information of the dependent component, and according to the position mark, the margin, the drawing coordinate, the width and the height in the drawing coordinate information of the dependent component and the width and the height of the text content in the text information, thereby determining the drawing position.
In the embodiment, the poster to be processed is subjected to position processing to obtain the poster to be processed after the position processing; determining type information of the drawing component information; and determining the drawing position of the drawing component information according to the type information, the position identifier, the margin and the poster to be processed after the position processing, wherein the type information of the drawing component information comprises picture information and/or character information, so that the drawing position can be determined through the position identifier, the margin and whether other drawing components are relied on, and the accuracy of efficiently finishing poster synthesis is further improved.
Furthermore, an embodiment of the present invention also proposes a storage medium having a poster synthesizing program stored thereon, which when executed by a processor implements the steps of the poster synthesizing method as described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
Referring to fig. 6, fig. 6 is a block diagram showing the structure of a first embodiment of the poster synthesizing apparatus of the present invention.
As shown in fig. 6, a poster combining apparatus according to an embodiment of the present invention includes:
and the acquisition module 10 is used for acquiring the poster to be processed and drawing the component information.
It can be understood that the poster to be processed may be an original poster that needs to be subjected to text drawing or picture drawing, wherein if the original poster is a dynamic image, a first frame of the dynamic image is obtained, the first frame of the dynamic image is obtained as the poster to be processed, and if the original poster is a static image, the original poster is directly obtained. The drawing component information includes drawing type information, and the drawing type information includes drawing text information or drawing picture information, which is not limited in this embodiment.
And the determining module 20 is used for determining the drawing position of the drawing component information by performing position processing on the poster to be processed.
It should be understood that, in the position processing of the poster to be processed, the poster to be processed is adjusted in corresponding width and height based on the width and height information recommended by the drawing requirement, and coordinate information is established with the preset position of the poster to be processed as an origin, in a specific implementation process, the preset position may be an upper left corner of the poster to be processed, which is not limited in this embodiment, and the drawing position of the drawing component information is further determined according to the type information, the assigned position identifier, and the margin of each drawing component.
And the synthesis module 30 is used for synthesizing the poster to be processed according to the drawing component information and the drawing position, and determining the target poster.
It should be understood that according to the final drawing component type and the drawing position, if the drawing component type is a picture, the operation flow of picture drawing is executed, so that the drawing picture is filled in the drawing position corresponding to the picture type, and if the drawing component type is the picture, the operation flow of character drawing is executed, so that the drawing character is filled in the drawing position corresponding to the character type, and the combination of the drawing component and the poster to be processed is realized, so that the target poster is obtained.
The method comprises the steps of obtaining a poster to be processed and drawing component information; performing position processing on the poster to be processed, and determining the drawing position of the drawing component information; and synthesizing the poster to be processed according to the drawing assembly information and the drawing position to determine a target poster. The poster to be processed and the drawing assembly information are synthesized at the drawing position by performing position processing on the poster to be processed, so that poster synthesis is efficiently completed by determining the drawing position.
In an embodiment, the determining module 20 is further configured to perform position processing on the poster to be processed, so as to obtain a poster to be processed after the position processing; determining type information of the drawing component information; and determining the drawing position of the drawing component information according to the type information, the position identifier, the margin and the poster to be processed after the position processing.
In an embodiment, the determining module 20 is further configured to determine whether a drawing position of the picture information is drawn based on a preset drawing component if the type information of the drawing component information is the picture information; if the drawing position of the picture information is not drawn based on a preset drawing assembly, acquiring the position information of the poster to be processed after position processing; and determining the drawing position of the drawing component information according to the position identifier, the margin, the position information of the poster to be processed after the position processing and the picture information.
In an embodiment, the determining module 20 is further configured to obtain preset drawing coordinate information of a preset drawing component if the drawing position of the picture information is drawn based on the preset drawing component; and determining the drawing position of the drawing component information according to the position identification, the margin, the preset drawing coordinate information and the picture information.
In an embodiment, the determining module 20 is further configured to determine whether to perform conversion of the text information into picture information if the type information of the drawing component information is text information; if the text information is not converted into the picture information, judging whether the drawing position of the text information is drawn based on a preset drawing assembly; if the drawing position of the text information is not drawn based on a preset drawing assembly, acquiring the position information of the poster to be processed after position processing; and determining the drawing position of the drawing component information according to the position identifier, the margin, the position information of the poster to be processed after the position processing and the character information.
In an embodiment, the determining module 20 is further configured to obtain preset drawing coordinate information of a preset drawing component if the drawing position of the text information is drawn based on the preset drawing component; and determining the drawing position of the drawing component information according to the position identification, the margin, the preset drawing coordinate information and the character information.
In an embodiment, the determining module 20 is further configured to determine a background color of the text information if the text information is converted into picture information; and determining the picture information according to the character information and the background color, and executing a step of judging whether the picture information is drawn based on a preset drawing component.
For other embodiments or specific implementation methods of the poster synthesizing device according to the present invention, reference may be made to the above-mentioned embodiments of the methods, which are not described in detail herein.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not elaborately described in this embodiment may be referred to a poster synthesizing method provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A poster synthesizing method, characterized by comprising:
obtaining a poster to be processed and drawing assembly information;
performing position processing on the poster to be processed, and determining the drawing position of the drawing component information;
and synthesizing the poster to be processed according to the drawing assembly information and the drawing position to determine a target poster.
2. A poster synthesizing method as claimed in claim 1, wherein the position processing of the poster to be processed to determine the drawing position of the drawing component information comprises:
performing position processing on the poster to be processed to obtain the poster to be processed after the position processing;
determining type information of the drawing component information;
and determining the drawing position of the drawing component information according to the type information, the position identifier, the margin and the poster to be processed after the position processing.
3. A poster synthesizing method as claimed in claim 2, wherein the determining of the drawing position of the drawing component information from the type information, the position identification, the margin, and the position-processed poster to be processed comprises:
if the type information of the drawing component information is picture information, judging whether the drawing position of the picture information is drawn based on a preset drawing component or not;
if the drawing position of the picture information is not drawn based on a preset drawing assembly, acquiring the position information of the poster to be processed after position processing;
and determining the drawing position of the drawing component information according to the position identifier, the margin, the position information of the poster to be processed after the position processing and the picture information.
4. A poster synthesizing method as defined in claim 3, wherein, if the type information of the drawing component information is picture information, after determining whether the drawing position of the picture information is drawn based on a preset drawing component, further comprising:
if the drawing position of the picture information is drawn based on a preset drawing component, acquiring preset drawing coordinate information of the preset drawing component;
and determining the drawing position of the drawing component information according to the position identification, the margin, the preset drawing coordinate information and the picture information.
5. A poster synthesizing method as claimed in claim 2, wherein the determining of the drawing position of the drawing component information from the type information, the position identification, the margin, and the position-processed poster to be processed comprises:
if the type information of the drawing component information is character information, judging whether to convert the character information into picture information;
if the text information is not converted into the picture information, judging whether the drawing position of the text information is drawn based on a preset drawing assembly;
if the drawing position of the text information is not drawn based on a preset drawing assembly, acquiring the position information of the poster to be processed after position processing;
and determining the drawing position of the drawing component information according to the position identifier, the margin, the position information of the poster to be processed after the position processing and the character information.
6. A poster synthesizing method as defined in claim 5, wherein, if the conversion of the text information into picture information is not performed, determining whether the drawing position of the text information is based on a preset drawing component, further comprises:
if the drawing position of the character information is drawn based on a preset drawing component, acquiring preset drawing coordinate information of the preset drawing component;
and determining the drawing position of the drawing component information according to the position identification, the margin, the preset drawing coordinate information and the character information.
7. A poster synthesizing method as defined in claim 5, wherein the determining whether to perform conversion of the text information into picture information if the type information of the drawing component information is text information comprises:
if the text information is converted into the picture information, determining the background color of the text information;
and determining the picture information according to the character information and the background color, and executing a step of judging whether the picture information is drawn based on a preset drawing component.
8. A poster synthesizing apparatus, characterized in that it comprises:
the acquisition module is used for acquiring the poster to be processed and drawing the component information;
the determining module is used for determining the drawing position of the drawing component information by performing position processing on the poster to be processed;
and the synthesis module is used for synthesizing the poster to be processed according to the drawing component information and the drawing position to determine a target poster.
9. A poster synthesizing apparatus, characterized by comprising: a memory, a processor, and a poster composition program stored on the memory and executable on the processor, the poster composition program configured to implement the poster composition method of any of claims 1 to 7.
10. A storage medium characterized in that the storage medium has stored thereon a poster synthesizing program that, when executed by a processor, implements the poster synthesizing method according to any one of claims 1 to 7.
CN202111046830.4A 2021-09-08 2021-09-08 Poster synthesis method, device, equipment and storage medium Pending CN113781601A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111046830.4A CN113781601A (en) 2021-09-08 2021-09-08 Poster synthesis method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111046830.4A CN113781601A (en) 2021-09-08 2021-09-08 Poster synthesis method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113781601A true CN113781601A (en) 2021-12-10

Family

ID=78841702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111046830.4A Pending CN113781601A (en) 2021-09-08 2021-09-08 Poster synthesis method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113781601A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020054115A1 (en) * 2000-06-12 2002-05-09 Mack Stephen T. System for creating on a computer display screen composite images from diverse sources
EP3016012A1 (en) * 2014-10-31 2016-05-04 Xiaomi Inc. Method and device for marking terminal
CN109727298A (en) * 2018-02-12 2019-05-07 平安好房(上海)电子商务有限公司 Poster generation method, device, equipment and computer storage medium
CN110060317A (en) * 2019-03-16 2019-07-26 平安城市建设科技(深圳)有限公司 Poster method of automatic configuration, equipment, storage medium and device
CN111462281A (en) * 2020-03-31 2020-07-28 北京创鑫旅程网络技术有限公司 Poster generation method, device, equipment and storage medium
CN112634406A (en) * 2020-12-24 2021-04-09 北京百度网讯科技有限公司 Method, device, electronic equipment, storage medium and program product for generating picture

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020054115A1 (en) * 2000-06-12 2002-05-09 Mack Stephen T. System for creating on a computer display screen composite images from diverse sources
EP3016012A1 (en) * 2014-10-31 2016-05-04 Xiaomi Inc. Method and device for marking terminal
CN109727298A (en) * 2018-02-12 2019-05-07 平安好房(上海)电子商务有限公司 Poster generation method, device, equipment and computer storage medium
CN110060317A (en) * 2019-03-16 2019-07-26 平安城市建设科技(深圳)有限公司 Poster method of automatic configuration, equipment, storage medium and device
CN111462281A (en) * 2020-03-31 2020-07-28 北京创鑫旅程网络技术有限公司 Poster generation method, device, equipment and storage medium
CN112634406A (en) * 2020-12-24 2021-04-09 北京百度网讯科技有限公司 Method, device, electronic equipment, storage medium and program product for generating picture

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MASARU OHKAWARA; ISSEI FUJISHIRO: "Realizing Pseudo Color Bleeding with a Deep Composite Image", 2019 INTERNATIONAL CONFERENCE ON CYBERWORLDS (CW), 5 December 2019 (2019-12-05) *
杨明子;: "国产动画电影海报设计中的视觉要素研究", 中国包装, no. 08, 18 August 2017 (2017-08-18) *

Similar Documents

Publication Publication Date Title
CN110321788B (en) Training data processing method, device, equipment and computer readable storage medium
CN103823620B (en) Screen adaption method and device
CN107301046B (en) Icon processing method and device, computer equipment and storage medium
CN111538799A (en) Thermodynamic diagram construction method, thermodynamic diagram construction equipment, thermodynamic diagram construction storage medium and thermodynamic diagram construction device
CN111914046B (en) Generation method and device of target seating chart and computer equipment
CN105389308B (en) Webpage display processing method and device
CN110674437A (en) Method and device for converting webpage data into PDF (Portable document Format) attachment
CN107301045B (en) Window display method and device
CN113781601A (en) Poster synthesis method, device, equipment and storage medium
CN113963354B (en) Method and device for obtaining order number
CN116663496A (en) SVG technology-based browser small font display component, display method and creation method
CN110717891A (en) Picture detection method and device based on grouping batch and storage medium
JP2005267158A (en) Character size control method, device, and program
CN113096217B (en) Picture generation method and device, electronic equipment and storage medium
CN111429549B (en) Route image generation method, device and storage medium
CN112465931B (en) Image text erasing method, related equipment and readable storage medium
US20030020740A1 (en) Graphics stack system and method
CN109799984B (en) Face frame drawing method, device and equipment and computer readable storage medium
CN110913193B (en) Image processing method, device, apparatus and computer readable storage medium
JP6414475B2 (en) Computer program and control device
CN114489546A (en) Split screen display method, electronic equipment, storage medium and device
CN108846883B (en) Quick drawing method and system for fractal graph, user equipment and storage medium
CN111652787A (en) Processing method and device for adding watermark characters into picture and computer equipment
CN111857626A (en) Picture display method, device and equipment based on screen coordinates and storage medium
JP3991061B1 (en) Image processing system

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