CN115238667A - Poster generation method, system, device and storage medium - Google Patents

Poster generation method, system, device and storage medium Download PDF

Info

Publication number
CN115238667A
CN115238667A CN202210927694.8A CN202210927694A CN115238667A CN 115238667 A CN115238667 A CN 115238667A CN 202210927694 A CN202210927694 A CN 202210927694A CN 115238667 A CN115238667 A CN 115238667A
Authority
CN
China
Prior art keywords
poster
base map
target
materials
area
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
CN202210927694.8A
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.)
Ping An International Financial Leasing Co Ltd
Original Assignee
Ping An International Financial Leasing 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 Ping An International Financial Leasing Co Ltd filed Critical Ping An International Financial Leasing Co Ltd
Priority to CN202210927694.8A priority Critical patent/CN115238667A/en
Publication of CN115238667A publication Critical patent/CN115238667A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/19Recognition using electronic means
    • G06V30/191Design or setup of recognition systems or techniques; Extraction of features in feature space; Clustering techniques; Blind source separation
    • G06V30/19173Classification techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present application relates to the field of internet and data processing technologies, and more particularly, to a poster generation method, system, device, and storage medium. The method comprises the following steps: obtaining a poster generation template of a target poster; obtaining base map materials required by a target poster; performing OCR recognition on the base map material, and classifying according to a recognition result; determining a circled area in each base map material according to the classified base map materials, and carrying out pixel processing on the circled area to obtain a target material; and generating a target poster based on the poster generation template and the target material. The method has the advantages that the time for generating the poster is short, the dependence on manual operation is reduced, and the generated poster can meet the diversified requirements of customers due to dynamic processing and configuration.

Description

Poster generation method, system, device and storage medium
Technical Field
The present application relates to the field of internet and data processing technologies, and more particularly, to a poster generation method, system, device, and storage medium.
Background
In recent years, in H5 technology (HTML 5 technology) marketing promotion activities, posters are one of important element types, and each cut poster graph in the traditional process needs a designer to make and provide various materials, and then a developer converts the poster graph into an H5 poster page and embeds the poster page into a certain promotion activity. The poster generator integrates intelligent demand analysis, the poster template is recommended according to multi-dimensional weight calculation, an operator can select a proper template and complete personalized setting on the basis of the template, and a poster graph or an H5 poster page is quickly obtained.
However, the production process of poster pages is complex and time-consuming, repeated design and development are required for each activity according to different requirements, and the requirement adjustment in the middle may also be circulated among business parties, products, design and development.
Disclosure of Invention
Based on the technical problem, the invention aims to determine the circled area aiming at the classified base map materials, perform pixel processing on the circled area to obtain a target material, and generate the target poster based on the poster generation template and the target material, so that the problems that the poster manufacturing is too dependent on manpower and consumes long time are solved.
A first aspect of the invention provides a method of poster generation, the method comprising:
obtaining a poster generation template of a target poster;
obtaining base map materials required by a target poster;
performing OCR recognition on the base map material, and classifying according to a recognition result;
determining a circled area in each base map material according to the classified base map materials, and carrying out pixel processing on the circled area to obtain a target material;
and generating a target poster based on the poster generation template and the target material.
In some embodiments of the present invention, the OCR recognizing the base image material and classifying according to a recognition result includes:
performing OCR recognition on the base map material;
obtaining characteristic data of the base map materials according to an OCR recognition result, and distributing labels for the base map materials according to the characteristic data;
and determining the category of each base map material according to the label.
In some embodiments of the present invention, for the classified base map materials, determining a circled area in each base map material includes:
selecting any one of the base map materials in one category according to the classified base map materials, and selecting a designated area with a preset area by using a circle selection tool, wherein the designated area is a regular graphic area or an irregular graphic area;
and taking the appointed area of the preset area as a determined circle selection area.
In some embodiments of the present invention, the performing pixel processing on the circled area to obtain a target material includes:
traversing all pixel points circled in the circled area, judging whether each pixel point accords with a preset pixel threshold value, and if so, keeping; if not, erasing to obtain transparent effect;
taking the base map materials corresponding to the circled area and the areas except the circled area after traversing and pixel processing as target materials;
and storing the target materials in a material library.
In some embodiments of the invention, the method further comprises:
and carrying out visual layered display on the plurality of selected area partitions.
In some embodiments of the invention, the method further comprises:
engraving out a pattern formed by the corresponding pixel after the pixel processing;
and if the engraving effect of the pattern does not accord with the preset condition, adjusting.
In some embodiments of the invention, the generating a target poster based on the poster generation template and the target material comprises:
acquiring preset configuration information, wherein the preset configuration information comprises overall configuration information and local configuration information;
generating a first poster according to the overall configuration information and the poster generation template;
and on the basis of the first poster, fusing the target material and the local configuration information to generate a target poster.
A second aspect of the invention provides a poster generation system, the system comprising:
the low-code platform is used for acquiring a poster generating template of a target poster, acquiring a base map material required by the target poster, and sending the poster generating template and the base map material to a server;
and the server is used for performing OCR recognition on the base map materials, classifying the base map materials according to recognition results, determining a circled area in each base map material according to the classified base map materials, performing pixel processing on the circled area to obtain a target material, and generating a target poster based on the poster generation template and the target material.
A third aspect of the invention provides a computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of:
obtaining a poster generation template of a target poster;
obtaining base map materials required by a target poster;
performing OCR recognition on the base map material, and classifying according to a recognition result;
determining a circled area in each base map material according to the classified base map materials, and carrying out pixel processing on the circled area to obtain a target material;
and generating a target poster based on the poster generation template and the target material.
A fourth aspect of the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
obtaining a poster generation template of a target poster;
obtaining base map materials required by a target poster;
performing OCR recognition on the base map material, and classifying according to a recognition result;
determining a circled area in each base map material according to the classified base map materials, and carrying out pixel processing on the circled area to obtain a target material;
and generating a target poster based on the poster generation template and the target material.
The technical scheme provided in the embodiment of the application at least has the following technical effects or advantages:
according to the method, the poster of the target poster generates the template and the required base map material, the base map material is subjected to OCR recognition and is classified according to the recognition result, the circled area is determined in each base map material aiming at the classified base map material, and the circled area is subjected to pixel processing to obtain the target material, the template is generated on the basis of the poster, the target poster is generated through the target material, the time for generating the poster is short, the dependence on manual operation is reduced, and the generated poster can meet the diversified demands of clients due to dynamic processing and configuration.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a schematic diagram of poster generation method steps in an exemplary embodiment of the present application;
FIG. 2 illustrates a flow chart of the poster generation method described in an exemplary embodiment of the present application;
fig. 3 shows a schematic structural diagram of a server in an exemplary embodiment of the present application;
fig. 4 shows a schematic structural diagram of a computer device provided in an exemplary embodiment of the present application.
Detailed Description
Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present application. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present application. It will be apparent to one skilled in the art that the present application may be practiced without one or more of these details. In other instances, well-known features have not been described in order to avoid obscuring the present application.
It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments according to the present application. As used herein, the singular is intended to include the plural unless the context clearly dictates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Exemplary embodiments according to the present application will now be described in more detail with reference to the accompanying drawings. These exemplary embodiments may, however, be embodied in many different forms and should not be construed as limited to only the embodiments set forth herein. The figures are not drawn to scale, wherein certain details may be exaggerated and some details may be omitted for clarity of presentation. The shapes of various regions, layers, and relative sizes and positional relationships therebetween shown in the drawings are merely exemplary, and deviations may occur in practice due to manufacturing tolerances or technical limitations, and a person skilled in the art may additionally design regions/layers having different shapes, sizes, relative positions, as actually required.
Several examples are given below in conjunction with the description of figures 1-4 to describe exemplary embodiments according to the present application. It should be noted that the following application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
Example 1:
the present embodiment provides a poster generation method, as shown in fig. 1, including:
s1, obtaining a poster generation template of a target poster;
s2, obtaining base map materials required by the target poster;
s3, performing OCR recognition on the base map material, and classifying according to a recognition result;
s4, aiming at the classified base map materials, determining a circled area in each base map material, and carrying out pixel processing on the circled area to obtain a target material;
and S5, generating a target poster based on the poster generation template and the target material.
In a specific implementation manner, the poster generation template can be extracted from a template library, and when a client sends an application for generating the poster at a terminal, a server side calls the template from the template library according to the proposed application information of the poster generation. For example, to make a poster application embedded in an H5 event page. H5 denotes HTML5. Is a language description way for constructing Web content. HTML5 is the next generation standard of the internet, is a language way to build and present internet contents, and is considered as one of the core technologies of the internet. Because the poster is an important element type in the H5 marketing promotion activity, each cut poster drawing in the traditional process needs a designer to make and provide various materials, and then a developer converts the poster drawing into an H5 poster page and embeds the H5 poster page into a certain promotion activity. It can therefore be appreciated that there are already a number of templates accumulated in the template library. In addition, a material library is also provided, and various materials are also accumulated. The template library and the material library comprise materials uploaded by a client or a designer at a terminal in the past preset time, and also comprise poster templates and poster materials used in posters finished in the past preset time.
In a specific implementation manner, performing OCR recognition on the base map material, and classifying according to a recognition result, includes: performing OCR recognition on the base map material; obtaining characteristic data of the base map materials according to an OCR recognition result, and distributing labels for the base map materials according to the characteristic data; and determining the category of each base map material according to the label. Here, OCR (optical character recognition) refers to a process in which an electronic device (e.g., a scanner or a digital camera) checks characters printed on paper and then translates shapes into computer characters by a character recognition method; that is, the process of scanning the text data, then analyzing the image file and obtaining the character and layout information. In other words, the OCR technology is used to intelligently identify the poster title and the contained element characters of the base picture material, then the content such as poster labels and descriptions is intelligently classified, and finally the classification result can be archived.
In a specific implementation manner, determining a circled area for the classified base map material includes: selecting any one of the base map materials in one category according to the classified base map materials, and selecting a designated area with a preset area by adopting a circle selection tool, wherein the designated area is a regular graphic area or an irregular graphic area; and taking the appointed area of the preset area as a determined circle selection area. Here, a plurality of the circled areas are displayed in a visual layering mode.
In a specific implementation manner, performing pixel processing on the circled area to obtain a target material includes: traversing all pixel points circled in the circled area, judging whether each pixel point accords with a preset pixel threshold value, and if so, keeping; if not, erasing to obtain transparent effect; taking the base map materials corresponding to the circled area and the areas except the circled area after traversing and pixel processing as target materials; and storing the target materials in a material library.
In a specific implementation, the method further includes: carving out a pattern formed by the pixels corresponding to the processed pixels; and if the engraving effect of the pattern does not accord with the preset condition, adjusting. The adjustment here is a manual adjustment or a machine adjustment.
In one particular implementation, generating a target poster based on a poster generation template and target material includes: acquiring preset configuration information, wherein the preset configuration information comprises overall configuration information and local configuration information; generating a first poster according to the overall configuration information and the poster generation template; and on the basis of the first poster, fusing the target material and the local configuration information to generate a target poster.
In the prior art, the poster needs to be designed by designers one by one, the time consumption is long, the used picture materials need to be stored and inquired and used manually, the operation is very inconvenient, the picture processing result lacks benchmarking reference, and the business approval is difficult to obtain quickly.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Example 2:
this embodiment provides a poster generation method, and the detailed steps are described below.
In the first step, a poster generation template of a target poster is obtained.
And secondly, obtaining base map materials required by the target poster.
"template" is a generic term for standardizing, unifying, modeling, or for fixing formats and layouts. The poster template may have considerable appeal and artistic appeal, and the factors such as image, color, composition, form feeling and the like are called to form a strong visual effect, so that the poster template is a template which is matched with elements such as content, structure, patterns and the like. For example, according to a historical poster sample, sample content comprises basic color, layout structure, element position, font size, character color, shadow and other information, the configuration information of the background color, effect and picture application sample is automatically stacked into a base map, the output can be an HTML page or a picture, and the content and configuration of each element of the automatically generated base map can be adjusted according to requirements aiming at the HTML page type.
In a specific implementation manner, the poster generation template may be extracted from a template library, and when a client sends an application for generating a poster at a terminal, the server retrieves the template from the template library according to the proposed application information of the poster, for example, applies for making a poster application embedded in an H5 event page. Because posters are one important element type in H5 marketing promotion activities, each cut poster graph in the traditional process needs a designer to make and provide various materials, and then developers convert the poster graph into H5 poster pages and embed the H5 poster pages into certain promotion activities. It can therefore be appreciated that there are already a number of templates accumulated in the template library. In addition, a material library is also provided, and various materials are accumulated. The template library and the material library comprise materials uploaded by a client at a terminal in the past preset time, and poster templates and poster materials used in posters finished in the past preset time.
According to the above process, referring to fig. 2 and fig. 3, a low-code platform can be used in the poster generation method generation process, and considering that the difficulties of poster generation lie in the integration of basic materials and the setting of the graphic and text data combination rules, some fixed logics or abstractable logics of the whole production process are realized by using codes instead of manual work, so that a poster template and base map materials are manufactured by using the low-code platform. The Low-Code Platform, known in the english name Low Code Development Platform, is a relatively popular Code Platform for H5 project Development in recent years. The low-code platform provides a visual development interface and a self-defined code function, and mainly can reduce code writing amount, make an application scene extremely abstract and templated, meet complex functional requirements of an enterprise, and help the enterprise to complete development of an H5 project at the highest speed.
In a specific embodiment, as shown in fig. 3, the low-code platform creates various base map materials, selects the required base map materials and transmits the selected base map materials to the server, and the server performs subsequent processing such as OCR recognition and classification.
And thirdly, performing OCR recognition on the base map materials, and classifying according to recognition results.
In a specific implementation manner, the OCR recognizing the base image material and classifying the base image material according to a recognition result includes: performing OCR recognition on the base map material; distributing labels according to the OCR recognition result; and determining the category of each base map material according to the label. Here, OCR (optical character recognition) refers to a process in which an electronic device (e.g., a scanner or a digital camera) checks characters printed on paper and then translates shapes into computer characters by a character recognition method; namely, the process of scanning the text data, then analyzing and processing the image file and obtaining the character and layout information. In other words, the OCR technology is used to intelligently identify the poster title and the contained element characters of the base picture material, then the content such as poster labels and descriptions is intelligently classified, and finally the classification result can be archived.
And fourthly, determining a circled area in each piece of the base map material according to the classified base map materials, and carrying out pixel processing on the circled area to obtain a target material.
In a specific implementation manner, any one of the base map materials in one category is selected according to the classified base map materials, and a specified area with a preset area is selected by adopting a circle selection tool, wherein the specified area is a regular graph area or an irregular graph area; and taking the appointed area of the preset area as a determined circle selection area. The circling tool is convenient and quick to operate. Specifically, a circling tool is adopted to receive a circling action, a designated area on a picture (namely, a base image material) is set, and coordinate information and the designated action corresponding to the designated area are set as associated information associated with a picture, so that the area is circled in the base image material.
In a specific implementation manner, performing pixel processing on the circled area to obtain a target material includes: traversing all the pixel points circled in the circled area, judging whether each pixel point accords with a preset pixel threshold value, and if so, keeping the pixel points; if not, erasing to obtain transparent effect; taking base map materials corresponding to the circled area subjected to traversal and pixel processing and areas except the circled area as target materials; the preset pixel threshold may be set as a basic adjustment color value and a boundary threshold thereof, and may be set as a single color or a plurality of colors.
In a specific implementation, the method further includes: carving out a pattern formed by the pixels corresponding to the processed pixels; and if the engraving effect of the pattern does not meet the preset condition, adjusting. If the engraving effect does not reach the preset standard, the adjustment can be manually adjusted.
And fifthly, generating a target poster based on the poster generation template and the target material.
In a particular implementation, generating a target poster based on a poster generation template and target material includes: acquiring preset configuration information, wherein the preset configuration information comprises overall configuration information and local configuration information; generating a first poster according to the overall configuration information and the poster generation template; and on the basis of the first poster, fusing the target material and the local configuration information to generate a target poster. The so-called "fusing target materials and local configuration information to generate a target poster" is to add the target materials one by one to the first poster according to the local configuration information under the condition that the first poster is used as a frame, and finally form the target poster.
In another specific implementation manner, multiple poster configuration schemes can be comprehensively calculated according to multiple element information in the material library and attribute weights of the element information, and multiple composite effects can be generated for parallel viewing or used as alternative posters. As a switchable implementation mode, a plurality of poster recommendation schemes can be formed by utilizing data information stored during production of historical activity posters for comparison and screening of users, multi-dimensional information such as themes, tones, industries, target users, types, delivery platforms, character descriptions and the like can be dynamically configured, finally, the matched templates and matched materials can be calculated by combining the configuration and different weights, and the target posters can be generated through combination.
According to the method, the poster of the target poster generates the template and the required base map material, the base map material is subjected to OCR recognition and is classified according to the recognition result, the circled area is determined in each base map material aiming at the classified base map material, and the circled area is subjected to pixel processing to obtain the target material, the template is generated on the basis of the poster, the target poster is generated through the target material, the time for generating the poster is short, the dependence on manual operation is reduced, and the generated poster can meet the diversified demands of clients due to dynamic processing and configuration.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Example 3:
the present embodiment provides a poster generation system for executing the poster generation method provided in any of the above embodiments, as shown in fig. 2, the system including:
the low-code platform is used for acquiring a poster generation template of a target poster, acquiring a base map material required by the target poster, and sending the poster generation template and the base map material to a server;
and the server is used for performing OCR recognition on the base map materials, classifying the base map materials according to recognition results, determining a circled area in each base map material according to the classified base map materials, performing pixel processing on the circled area to obtain a target material, and generating a target poster based on the poster generation template and the target material.
It will be appreciated that the poster generation system also includes a template repository for storing poster templates and a materials repository for storing materials repositories, and as further shown in figure 2, the poster generation system includes a low code platform, a server, a template repository and a materials repository. The low-code platform provides a visual development interface and a self-defined code function, and mainly reduces code writing amount, an application scene is extremely abstract and templated, so that not only can complex functional requirements of enterprises be met, but also the enterprises can be helped to complete development of H5 projects at the highest speed, poster templates and materials can be made, good interaction with a server side is performed in the system, and the running time of the system is saved.
In the working process of the poster generation system, as shown in fig. 3, a low-code platform and a server have a specific interactive flow, and uploading in fig. 3 means uploading to the low-code platform, and can also be understood as uploading a base map to the low-code platform by the client. The low-code platform can be used for manufacturing various base map materials, the base map materials include a one-key manufacturing function, the required base map materials are selected from the manufactured base map materials and submitted to the server, and the server performs OCR (optical character recognition), classification and other subsequent processing.
In a specific implementation mode, the server side realizes that OCR recognition is carried out on the base map materials, classification is carried out according to recognition results, a circled area is determined according to the classified base map materials, pixel processing is carried out on the circled area to obtain target materials, a large amount of interaction is carried out on the low-code platform in the process of generating a template based on the poster and generating the target poster based on the target materials, and the low-code platform can be requested to carry out visual layered display on the circled area.
In another specific implementation manner, as shown in fig. 3, a poster generator is arranged at the server, the low-code platform supports visual editing, a user selects various functional components, and can adjust the settings of the components according to the needs of the user, so as to enrich the elements and information of the components, and the poster generator outputs a poster. The poster belongs to one poster component aiming at the H5 activity page, can be combined with other functional components for use, can also be independently used and embedded into the page, finally generates one or more H5 activity pages on an editor platform, and can also convert the page into pictures for directly saving or downloading so as to meet the generation requirement of more personalized posters.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
It is further emphasized that the system provided in the embodiments of the present application may be based on artificial intelligence techniques for obtaining and processing relevant data. Among them, artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result. The artificial intelligence base technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
Reference is now made to fig. 4, which is a schematic diagram illustrating a computer device provided in some embodiments of the present application. As shown in fig. 4, the computer device 2 includes: a processor 200, a memory 201, a bus 202 and a communication interface 203, wherein the processor 200, the communication interface 203 and the memory 201 are connected through the bus 202; the memory 201 stores a computer program that can be executed on the processor 200, and the processor 200 executes the poster generation method provided in any of the previous embodiments when executing the computer program.
The Memory 201 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 203 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
Bus 202 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 201 is used for storing a program, the processor 200 executes the program after receiving an execution instruction, and the poster generation method disclosed in any of the foregoing embodiments of the present application can be applied to the processor 200, or implemented by the processor 200.
The processor 200 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 200. The Processor 200 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201 and completes the steps of the method in combination with the hardware thereof.
Embodiments of the present application also provide a computer-readable storage medium corresponding to the poster generation method provided in any of the foregoing embodiments, and a computer program is stored thereon, and when being executed by a processor, the computer program will execute the poster generation method provided in any of the foregoing embodiments.
In addition, examples of the computer-readable storage medium may further include, but are not limited to, a phase change memory (PRAM), a Static Random Access Memory (SRAM), a Dynamic Random Access Memory (DRAM), other types of Random Access Memories (RAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash memory, or other optical and magnetic storage media, which are not described in detail herein.
The computer-readable storage medium provided by the foregoing embodiment of the present application and the method for allocating a quantum key distribution channel in a spatial division multiplexing optical network provided by the embodiment of the present application have the same inventive concept, and have the same beneficial effects as methods adopted, run, or implemented by application programs stored in the computer-readable storage medium.
Embodiments of the present application also provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for generating a poster includes: obtaining a poster generation template of a target poster; obtaining base map materials required by a target poster; performing OCR recognition on the base map material, and classifying according to a recognition result; determining a circled area in each base map material according to the classified base map materials, and carrying out pixel processing on the circled area to obtain a target material; and generating a target poster based on the poster generation template and the target material.
It should be noted that: the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may also be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. In addition, this application is not directed to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the present application as described herein, and any descriptions of specific languages are provided above to disclose the best modes of the present application. In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the application and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed to reflect the intent: this application is intended to cover such departures from the present disclosure as come within known or customary practice in the art to which this invention pertains. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this application.
Those skilled in the art will appreciate that the modules in the devices in an embodiment may be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification, and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except that at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the creation apparatus of a virtual machine according to embodiments of the present application. The present application may also be embodied as an apparatus or device program for carrying out a part or all of the methods described herein. A program implementing the present application may be stored on a computer-readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
The above description is only for the preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A poster generation method, characterized in that the method comprises:
obtaining a poster generation template of a target poster;
obtaining base map materials required by a target poster;
performing OCR recognition on the base map material, and classifying according to a recognition result;
determining a circled area in each base map material according to the classified base map materials, and carrying out pixel processing on the circled area to obtain target materials;
and generating a target poster based on the poster generation template and the target material.
2. A poster generation method as claimed in claim 1, wherein OCR recognition of the base image material and classification according to the recognition result comprises:
performing OCR recognition on the base map material;
obtaining characteristic data of the base map materials according to an OCR recognition result, and distributing labels for the base map materials according to the characteristic data;
and determining the category of each base map material according to the label.
3. A poster generation method as claimed in claim 2, wherein determining a circled area in each of the base map materials for the sorted base map materials comprises:
selecting any one of the base map materials in one category according to the classified base map materials, and selecting a designated area with a preset area by using a circle selection tool, wherein the designated area is a regular graphic area or an irregular graphic area;
and taking the designated area of the preset area as a determined circle selection area.
4. A poster generation method as claimed in claim 3, wherein said pixel processing said circled area to obtain target material comprises:
traversing all the pixel points circled in the circled area, judging whether each pixel point accords with a preset pixel threshold value, if so, retaining, and if not, erasing to change into a transparent effect;
taking the base map materials corresponding to the circled area and the areas except the circled area after traversing and pixel processing as target materials;
and storing the target materials in a material library.
5. A poster generation method as claimed in claim 4, wherein the method further comprises:
and carrying out visual layered display on the plurality of circled areas.
6. A poster generation method as claimed in claim 4, further comprising:
carving out a pattern formed by the pixels corresponding to the processed pixels;
and if the engraving effect of the pattern does not meet the preset condition, adjusting.
7. The poster generation method of claim 1, wherein generating the target poster based on the poster generation template and the target material comprises:
acquiring preset configuration information, wherein the preset configuration information comprises overall configuration information and local configuration information;
generating a first poster according to the overall configuration information and the poster generation template;
and on the basis of the first poster, fusing the target material and the local configuration information to generate a target poster.
8. A poster generation system, the system comprising:
the low-code platform is used for acquiring a poster generation template of a target poster, acquiring a base map material required by the target poster, and sending the poster generation template and the base map material to a server;
and the server is used for performing OCR recognition on the base map materials, classifying the base map materials according to recognition results, determining circled areas in each base map material according to the classified base map materials, performing pixel processing on the circled areas to obtain target materials, and generating a target poster based on the poster generation template and the target materials.
9. A computer device comprising a memory and a processor, wherein the memory has stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202210927694.8A 2022-08-03 2022-08-03 Poster generation method, system, device and storage medium Pending CN115238667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210927694.8A CN115238667A (en) 2022-08-03 2022-08-03 Poster generation method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210927694.8A CN115238667A (en) 2022-08-03 2022-08-03 Poster generation method, system, device and storage medium

Publications (1)

Publication Number Publication Date
CN115238667A true CN115238667A (en) 2022-10-25

Family

ID=83676936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210927694.8A Pending CN115238667A (en) 2022-08-03 2022-08-03 Poster generation method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN115238667A (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
US20050223319A1 (en) Layout-rule generation system, layout system, layout-rule generation program, layout program, storage medium, method of generating layout rule, and method of layout
CN110659371B (en) Automatic batch generation method and device for banner images of target objects
US20220044451A1 (en) Method and device for image generation and colorization
CN110969004B (en) Automatic typesetting method and system for graphics context, server and medium
US20190236813A1 (en) Information processing apparatus, information processing program, and information processing method
CN111243061B (en) Commodity picture generation method, device and system
CN117058271A (en) Method and computing device for generating commodity main graph background
CN110750666A (en) Picture generation method and system, electronic device and storage medium
CN115238667A (en) Poster generation method, system, device and storage medium
CN114997105A (en) Design template, material generation method, computing device and storage medium
CN113689436A (en) Image semantic segmentation method, device, equipment and storage medium
CN116385584A (en) Poster generation method, device and system and computer readable storage medium
CN114332895A (en) Text image synthesis method, text image synthesis device, text image synthesis equipment, storage medium and program product
CN111158647B (en) Creative material self-adaptive generation method and device based on structural theory
CN113223187A (en) Advertisement finished product image batch manufacturing method, system, equipment and readable storage medium
US20200364034A1 (en) System and Method for Automated Code Development and Construction
CN112416340A (en) Webpage generation method and system based on sketch
US11868790B2 (en) One-to-many automatic content generation
CN116110065A (en) Method, device, computer equipment and storage medium for generating question card data
CN112927321B (en) Intelligent image design method, device, equipment and storage medium based on neural network
CN115034177A (en) Presentation file conversion method, device, equipment and storage medium
CN112581565B (en) Method and device for generating multimedia material graph
CN111489422A (en) Poster generation and model training method and device, electronic equipment and storage medium
KR20210116789A (en) An apparatus for creating banner image automatically and method tehreof, computer readable storage medium
CN113850268B (en) Text recognition ordering method, device, equipment and medium based on artificial intelligence

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