CN110060317A - Poster method of automatic configuration, equipment, storage medium and device - Google Patents
Poster method of automatic configuration, equipment, storage medium and device Download PDFInfo
- Publication number
- CN110060317A CN110060317A CN201910202282.6A CN201910202282A CN110060317A CN 110060317 A CN110060317 A CN 110060317A CN 201910202282 A CN201910202282 A CN 201910202282A CN 110060317 A CN110060317 A CN 110060317A
- Authority
- CN
- China
- Prior art keywords
- poster
- text
- placeholder
- picture
- type
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 239000000284 extract Substances 0.000 claims abstract description 12
- 238000006243 chemical reaction Methods 0.000 claims description 6
- 238000013507 mapping Methods 0.000 claims description 6
- 230000011218 segmentation Effects 0.000 claims description 6
- 230000009466 transformation Effects 0.000 claims description 4
- 238000013079 data visualisation Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000003086 colorant Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000002845 discoloration Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/35—Clustering; Classification
- G06F16/353—Clustering; Classification into predefined classes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
- G06F40/289—Phrasal analysis, e.g. finite state techniques or chunking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/04—Context-preserving transformations, e.g. by using an importance map
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a kind of poster method of automatic configuration, equipment, storage medium and devices, this method comprises: obtaining poster official documents and correspondence information, poster picture and poster template, the poster template includes the first text placeholder and picture placeholder;The type of the first text placeholder is obtained, and extracts the type of poster text and the poster text from the poster official documents and correspondence information;The first text placeholder is replaced with to the poster text of same type, and the picture placeholder is replaced with into the poster picture, to generate target poster.Based on data visualization, automatically poster official documents and correspondence information is replaced in the first text placeholder into poster template, poster picture is replaced in the picture placeholder into poster template, target poster can be automatically configured, improve poster allocative efficiency, it is easy to operate, and repeatedly inputted manually without user, improve user experience.
Description
Technical field
The present invention relates to technical field of data processing more particularly to a kind of poster method of automatic configuration, equipment, storage medium
And device.
Background technique
The production of poster is usually required designer and is completely combined using elements such as picture, text and colors and cloth
Office, source of houses poster on the market, typesetting and figure of the major part using the individually designed text of designer, layman are difficult at present
Quickly to design the poster of content appropriateness and picture fineness, therefore, it is necessary to a kind of methods of rapid configuration poster.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of poster method of automatic configuration, equipment, storage medium and devices, it is intended to
It solves layman in the prior art and is difficult to the technical issues of quickly designing proper content and the poster of picture fineness.
To achieve the above object, the present invention provides a kind of poster method of automatic configuration, the poster method of automatic configuration packet
Include following steps:
Obtain poster official documents and correspondence information, poster picture and poster template, the poster template include the first text placeholder and
Picture placeholder;
The type of the first text placeholder is obtained, and extracts poster text and described from the poster official documents and correspondence information
The type of poster text;
The first text placeholder is replaced with to the poster text of same type, and the picture placeholder is replaced with
The poster picture, to generate target poster.
Preferably, the type for obtaining the first text placeholder, and sea is extracted from the poster official documents and correspondence information
The type of message sheet and the poster text, comprising:
The type of the first text placeholder is obtained according to the pre-set text in the first text placeholder;
The poster official documents and correspondence information is segmented, and extracts poster text from word segmentation result;
Current key word is extracted from the poster text, and class is carried out to the poster text according to the current key word
Type identification, obtains the corresponding type of the poster text.
Preferably, described that current key word is extracted from the poster text, according to the current key word to the sea
Message this progress type identification obtains the corresponding type of the poster text, comprising:
Current key word is extracted from the poster text, and the current key word is matched with predetermined keyword,
Obtain the matching degree of the current key word and the predetermined keyword;
If described, match degree is greater than the preset threshold, and it is corresponding to search the predetermined keyword in default mapping table
Type, and using the corresponding type of the predetermined keyword as the type of the poster text.
Preferably, after the matching degree for obtaining the current key word and the predetermined keyword, the poster is certainly
Dynamic configuration method further include:
If the matching degree is not more than the preset threshold, using the poster text as newly-increased text, and described
The second text placeholder is created in poster template;
The poster text that the first text placeholder is replaced with to same type replaces the second text placeholder
For the newly-increased text, and the picture placeholder is replaced with into the poster picture, to generate target poster.
Preferably, the poster text that the first text placeholder is replaced with to same type, and by the picture
Placeholder replaces with the poster picture, to generate target poster, comprising:
The first text placeholder is replaced with to the poster text of same type;
The picture placeholder is replaced with into the poster picture, and equal proportion scaling is carried out to replaced poster picture
It is corrected with clarity, to generate target poster.
Preferably, the poster text that the first text placeholder is replaced with to same type, and by the picture
Placeholder replaces with the poster picture, after generating target poster, the poster method of automatic configuration further include:
Image beautification is carried out to the target poster according to preset color collocation strategy and the instruction received.
Preferably, described that figure is carried out to the target poster according to preset color collocation strategy and the operational order received
As beautification, comprising:
Text color, picture color and the backcolor in the target poster are carried out according to preset color collocation strategy
Adjustment;
Text formatting change is carried out to the target poster text in the target poster according to the format conversion instruction received
It changes;
Corresponding target filter is selected according to the filter selection instruction received, and format is become according to the target filter
Target poster after changing is beautified.
In addition, to achieve the above object, the present invention also proposes that a kind of poster automatically configures equipment, and the poster automatically configures
Equipment includes memory, processor and is stored in the poster that can be run on the memory and on the processor and automatically configures
The step of program, the poster auto configurator is arranged for carrying out poster method of automatic configuration as described above.
In addition, to achieve the above object, the present invention also proposes a kind of storage medium, poster is stored on the storage medium
Auto configurator, the poster auto configurator realize the poster side of automatically configuring as described above when being executed by processor
The step of method.
In addition, to achieve the above object, the present invention also proposes that a kind of poster automatically configures device, and the poster automatically configures
Device includes:
Data obtaining module, for obtaining poster official documents and correspondence information, poster picture and poster template, the poster template includes
First text placeholder and picture placeholder;
Type acquisition module, for obtaining the type of the first text placeholder, and from the poster official documents and correspondence information
Extract the type of poster text and the poster text;
Poster generation module, for the first text placeholder to replace with to the poster text of same type, and by institute
It states picture placeholder and replaces with the poster picture, to generate target poster.
In the present invention, by obtaining poster official documents and correspondence information, poster picture and poster template, the poster template includes first
Text placeholder and picture placeholder;The type of the first text placeholder is obtained, and is mentioned from the poster official documents and correspondence information
Take the type of poster text and the poster text;The first text placeholder is replaced with to the poster text of same type,
And the picture placeholder is replaced with into the poster picture, to generate target poster.Due to can be automatically by poster official documents and correspondence information
It replaces in the first text placeholder into poster template, poster picture is replaced in the picture placeholder into poster template,
Target poster can be automatically configured, poster allocative efficiency is improved, it is easy to operate, it repeatedly inputs, improves manually without user
User experience.
Detailed description of the invention
Fig. 1 is that the poster for the hardware running environment that the embodiment of the present invention is related to automatically configures device structure schematic diagram;
Fig. 2 is the flow diagram of poster method of automatic configuration first embodiment of the present invention;
Fig. 3 is the flow diagram of poster method of automatic configuration second embodiment of the present invention;
Fig. 4 is the flow diagram of poster method of automatic configuration 3rd embodiment of the present invention;
Fig. 5 is the structural block diagram that poster of the present invention automatically configures device first embodiment.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is that the poster for the hardware running environment that the embodiment of the present invention is related to automatically configures device structure
Schematic diagram.
As shown in Figure 1, it may include: processor 1001, such as central processing unit that the poster, which automatically configures equipment,
(Central Processing Unit, CPU), communication bus 1002, user interface 1003, network interface 1004, memory
1005.Wherein, communication bus 1002 is for realizing the connection communication between these components.User interface 1003 may include display
Shield (Display), optional user interface 1003 can also include standard wireline interface and wireless interface, for user interface
1003 wireline interface can be USB interface in the present invention.Network interface 1004 optionally may include standard wireline interface,
Wireless interface (such as Wireless Fidelity (WIreless-FIdelity, WI-FI) interface).Memory 1005 can be the random of high speed
Memory (Random Access Memory, RAM) memory is accessed, stable memory (Non-volatile is also possible to
Memory, NVM), such as magnetic disk storage.Memory 1005 optionally can also be the storage independently of aforementioned processor 1001
Device.
It will be understood by those skilled in the art that structure shown in Fig. 1 does not constitute the limit for automatically configuring equipment to poster
It is fixed, it may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe module, Subscriber Interface Module SIM and poster auto configurator.
Poster shown in Fig. 1 automatically configures in equipment, and network interface 1004 is mainly used for connecting background server, with institute
It states background server and carries out data communication;User interface 1003 is mainly used for connecting peripheral hardware, carries out data communication with the peripheral hardware;
The poster automatically configures equipment and calls the poster auto configurator stored in memory 1005 by processor 1001, and holds
Row poster method of automatic configuration provided in an embodiment of the present invention.
Based on above-mentioned hardware configuration, the embodiment of poster method of automatic configuration of the present invention is proposed.
It is the flow diagram of poster method of automatic configuration first embodiment of the present invention referring to Fig. 2, Fig. 2, proposes the present invention
Poster method of automatic configuration first embodiment.
In the first embodiment, the poster method of automatic configuration the following steps are included:
Step S10: obtaining poster official documents and correspondence information, poster picture and poster template, and the poster template includes the first text
Placeholder and picture placeholder.
It should be noted that the executing subject of the present embodiment is that poster automatically configures equipment, the poster, which automatically configures, to be set
Standby can be that electronic equipments, the present embodiment such as PC or server are without restriction to this.In order to improve the effect of poster production
Rate will be subject to suitably modified replacement based on poster template, to quickly generate exquisite poster, the poster template packet
Several placeholders are included, the placeholder includes the first text placeholder and picture placeholder, and the placeholder is in poster template
Can location revision, for example, source of houses poster template includes the text of picture placeholder and " rent, location, area and floor " etc. first
Word placeholder.
It in the concrete realization, include that poster official documents and correspondence information and poster picture are added to the poster mould by content to be added
In plate, the configuration of poster can be fast implemented.The poster official documents and correspondence information can be text information, voice messaging or picture letter
Breath, for the replacement convenient for template, need to convert text information for the poster official documents and correspondence information, therefore, when the poster official documents and correspondence is believed
When breath is text information, do not deal with;When the poster official documents and correspondence information is voice messaging, language will be carried out to the voice messaging
Sound identification, obtains text information;When the poster official documents and correspondence information is pictorial information, text knowledge will be carried out to the pictorial information
Not, text information is obtained.
Step S20: obtaining the type of the first text placeholder, and poster text is extracted from the poster official documents and correspondence information
The type of this and the poster text.
It is understood that include several the first text placeholders in poster, and the poster official documents and correspondence information is one whole
Section text information, therefore, in order to by poster official documents and correspondence information content and the poster template in multiple first text occupy-places
Symbol corresponds, and also will acquire the type of the first text placeholder, and poster text is extracted from the poster official documents and correspondence information
The type of this and the poster text realizes mould to replacing poster text into the first text placeholder of same type
The replacement of plate, to generate target poster.
In the concrete realization, the type includes rent, house type, area, floor, attraction and contact method, for example, from
The type for extracting poster text " 2000 yuan " in poster official documents and correspondence information, and obtaining the poster text " 2000 yuan " is " rent ".
The first text placeholder: being replaced with the poster text of same type by step S30, and by the picture occupy-place
Symbol replaces with the poster picture, to generate target poster.
It should be noted that the poster text will be established according to type after obtaining the corresponding type of each poster text
With the corresponding relationship between the first text placeholder, thus according to certain sequence, successively by each the first text occupy-place
Symbol replaces with corresponding poster text, and the picture placeholder is replaced with the poster picture, to generate target poster.By
In poster can be quickly generated automatically, poster official documents and correspondence is input to one by one in poster template without user, operating process is simple, mentions
High user experience.
In the first embodiment, by obtaining poster official documents and correspondence information, poster picture and poster template, the poster template packet
Include the first text placeholder and picture placeholder;The type of the first text placeholder is obtained, and is believed from the poster official documents and correspondence
The type of poster text and the poster text is extracted in breath;The first text placeholder is replaced with to the poster of same type
Text, and the picture placeholder is replaced with into the poster picture, to generate target poster.Due to can be automatically by poster official documents and correspondence
Information is replaced in the first text placeholder into poster template, and poster picture is replaced to the picture placeholder into poster template
In, target poster can be automatically configured, poster allocative efficiency is improved, it is easy to operate, it repeatedly inputs, improves manually without user
User experience.
It is the flow diagram of poster method of automatic configuration second embodiment of the present invention referring to Fig. 3, Fig. 3, is based on above-mentioned Fig. 2
Shown in first embodiment, propose the second embodiment of poster method of automatic configuration of the present invention.
In a second embodiment, the step S20, comprising:
Step S201: the class of the first text placeholder is obtained according to the pre-set text in the first text placeholder
Type.
It should be noted that will acquire to accurately replace poster text to corresponding first text placeholder
The type of the first text placeholder, and the type of the poster text is obtained, poster text is replaced to identical with realizing
At first text placeholder of type, the accuracy of poster configuration is improved.
Step S202: segmenting the poster official documents and correspondence information, and poster text is extracted from word segmentation result.
It is understood that the poster official documents and correspondence information is one whole section of text information, the poster text is poster template
In each content to be added, such as " 2000 yuan ", " one Room of a Room " etc., in order to accurately replace poster text to corresponding
At first text placeholder, the poster official documents and correspondence information will also be segmented, and obtain word segmentation result, and from the word segmentation result
In extract poster text.
Step S203: current key word is extracted from the poster text, according to the current key word to the poster
Text carries out type identification, obtains the corresponding type of the poster text.
It should be noted that will carry out type identification after extracting the poster text to the poster text, and obtain institute
The corresponding type of poster text is stated, the poster text is replaced to the first text placeholder of same type.In this reality
It applies in example, current key word is extracted from the poster text, and carry out to the poster text according to the current key word
Type identification extracts keyword " member " from the poster text, then according to keyword for example, poster text is " 2000 yuan "
" member " can recognize that the type of poster text " 2000 yuan " is " rent ".
Further, the step S203, comprising:
Current key word is extracted from the poster text, and the current key word is matched with predetermined keyword,
Obtain the matching degree of the current key word and the predetermined keyword;
If described, match degree is greater than the preset threshold, and it is corresponding to search the predetermined keyword in default mapping table
Type, and using the corresponding type of the predetermined keyword as the type of the poster text.
It should be noted that the default mapping table includes the corresponding relationship between predetermined keyword and type, this
Embodiment will extract current key word from the poster text, and according to the current pass in the default mapping table
Keyword searches the type of the poster text, for example, the corresponding predetermined keyword of type " rent " is " member ", if the current pass
Keyword and predetermined keyword are all " member ", then can determine that the type of the poster text is " rent ".
It is understood that since user is when inputting poster official documents and correspondence information, it is defeated for same type of poster text
The keyword entered may be predetermined keyword, it is also possible to other keywords, for example, input " 2000 pieces of rent ", rather than it is defeated
Enter " 2000 yuan of rent ", it, will be to the current key word and institute in order to improve the type identification accuracy rate of such approximate keyword
It states predetermined keyword to be matched, obtains the matching degree of the current key word and the predetermined keyword, and in the matching
When degree is greater than preset threshold, assert that the current key word and the predetermined keyword are substantially consistent, by the default key
Type of the corresponding type of word as the poster text.
Further, described that current key word is extracted from the poster text, by the current key word and default pass
Keyword is matched, and after the matching degree for obtaining the current key word and the predetermined keyword, the poster is automatically configured
Method further include:
If the matching degree is not more than the preset threshold, using the poster text as newly-increased text, and described
The second text placeholder is created in poster template;
The poster text that the first text placeholder is replaced with to same type replaces the second text placeholder
For the newly-increased text, and the picture placeholder is replaced with into the poster picture, to generate target poster.
It should be noted that the current key word is matched with predetermined keyword, the current key word is obtained
Illustrate the current key word and institute if the matching degree is greater than the preset threshold with the matching degree of the predetermined keyword
It is substantially consistent to state predetermined keyword, if the matching degree is not more than the preset threshold, illustrates the current key word and institute
State that predetermined keyword is not consistent, the type of the corresponding poster text of the current keyword is not belonging to the first text placeholder
Type, the corresponding poster text of the current keyword can not be added in the poster template, therefore, by the poster text
This conduct increases text newly, and the second text placeholder is created in the poster template, when carrying out content replacement, by described
One text placeholder replaces with the poster text of same type, and the second text placeholder is replaced with the newly-increased text,
And the picture placeholder is replaced with into the poster picture, to generate target poster.
In a second embodiment, it by obtaining the type of the first text placeholder and poster text, realizes poster text
At this replacement to the first text placeholder of same type, the accuracy of poster configuration is improved;And by Keywords matching, into one
Step improves the accuracy rate that type identification is carried out to poster text;And by creating the newly-increased corresponding second text occupy-place of text
Symbol, realizes and is extended to poster template, improve the availability of poster template.
It is the flow diagram of poster method of automatic configuration 3rd embodiment of the present invention referring to Fig. 4, Fig. 4, is based on above-mentioned Fig. 3
Shown in second embodiment, propose the 3rd embodiment of poster method of automatic configuration of the present invention.
In the third embodiment, the step S30, comprising:
Step S301: the first text placeholder is replaced with to the poster text of same type.
It should be noted that the poster text will be established according to type after obtaining the corresponding type of each poster text
With the corresponding relationship between the first text placeholder, thus according to certain sequence, successively by each the first text occupy-place
Symbol replaces with the poster text of same type.
Step S302: the picture placeholder is replaced with into the poster picture, and replaced poster picture is carried out
Equal proportion scaling and clarity amendment, to generate target poster.
It is understood that determining the position of the picture placeholder, the picture placeholder is replaced with into the poster
Picture will also be modified replaced poster picture, after picture replacement for example, if the size of the poster picture
Larger with the difference in size of the picture placeholder, then equal proportion zooms in and out the poster picture, so that the poster figure
The size of piece and the poster placeholder is adapted;If the clarity of the poster picture and colorfulness are lower than threshold value, to institute
The clarity and colorfulness for stating poster picture are modified, so that the clarity of the poster picture and colorfulness reach the threshold
Value guarantees the picture quality of target poster.
Further, after the step S30, the poster method of automatic configuration further include:
Step S40: image beautification is carried out to the target poster according to preset color collocation strategy and the instruction received.
It should be noted that in order to increase the beautification degree of poster, it will be according to the operation of preset color collocation strategy and user
Instruction carries out image beautification to the target poster.The preset color collocation strategy includes between text, picture and background
Collocation of colour rule carries out color adjustment to the target poster according to preset color collocation strategy, so that the target
Poster has aesthetic feeling.
Further, the step S40, comprising:
Text color, picture color and the backcolor in the target poster are carried out according to preset color collocation strategy
Adjustment;
Text formatting change is carried out to the target poster text in the target poster according to the format conversion instruction received
It changes;
Corresponding target filter is selected according to the filter selection instruction received, and format is become according to the target filter
Target poster after changing is beautified.
It is understood that according to preset color collocation strategy to text color, the picture in the target poster
Color and background color are adjusted, on the basis of picture color, according to preset color collocation strategy to text color
It is adjusted with background color, improves the aesthetic feeling of the target poster.The pixel value for detecting the poster picture, in default color
The corresponding matched pixel value range of poster picture pixels value is searched in coloured silk collocation strategy, according to the matched pixel value range to text
Word color and background color is adjusted.Secondly, the format conversion instruction pair of user will be received in order to highlight partial content
Target poster text in the target poster carries out text formatting transformation, such as font transformation, text overstriking or text discoloration
Deng processing.Finally, will also be carried out using target filter to the transformed target poster of format according to the filter selection instruction of user
Beautification.
In the third embodiment, by carrying out equal proportion scaling and clarity amendment to replaced poster picture, guarantee
The picture quality of target poster.Image is carried out to the target poster according to preset color collocation strategy and the instruction received
Beautification, improves the aesthetic feeling of the target poster, highlights to specific character, can be improved the displaying effect of specific character
Fruit.
In addition, the embodiment of the present invention also proposes a kind of storage medium, poster is stored on the storage medium and is automatically configured
Program, the poster auto configurator realize the step of poster method of automatic configuration as described above when being executed by processor
Suddenly.
In addition, the embodiment of the present invention also proposes that a kind of poster automatically configures device, and the poster automatically configures referring to Fig. 5
Device includes:
Data obtaining module 10, for obtaining poster official documents and correspondence information, poster picture and poster template, the poster template packet
Include the first text placeholder and picture placeholder.
It should be noted that in order to improve the efficiency of poster production suitably modified replace will be subject to based on poster template
It changes, to quickly generate exquisite poster, the poster template includes several placeholders, and the placeholder includes that the first text accounts for
Position symbol and picture placeholder, the placeholder be poster template in can location revision, for example, source of houses poster template includes picture
The first text placeholder such as placeholder and " rent, location, area and floor ".
It in the concrete realization, include that poster official documents and correspondence information and poster picture are added to the poster mould by content to be added
In plate, the configuration of poster can be fast implemented.The poster official documents and correspondence information can be text information, voice messaging or picture letter
Breath, for the replacement convenient for template, need to convert text information for the poster official documents and correspondence information, therefore, when the poster official documents and correspondence is believed
When breath is text information, do not deal with;When the poster official documents and correspondence information is voice messaging, language will be carried out to the voice messaging
Sound identification, obtains text information;When the poster official documents and correspondence information is pictorial information, text knowledge will be carried out to the pictorial information
Not, text information is obtained.
Type acquisition module 20, for obtaining the type of the first text placeholder, and from the poster official documents and correspondence information
The middle type for extracting poster text and the poster text.
It is understood that include several the first text placeholders in poster, and the poster official documents and correspondence information is one whole
Section text information, therefore, in order to by poster official documents and correspondence information content and the poster template in multiple first text occupy-places
Symbol corresponds, and also will acquire the type of the first text placeholder, and poster text is extracted from the poster official documents and correspondence information
The type of this and the poster text realizes mould to replacing poster text into the first text placeholder of same type
The replacement of plate, to generate target poster.
In the concrete realization, the type includes rent, house type, area, floor, attraction and contact method, for example, from
The type for extracting poster text " 2000 yuan " in poster official documents and correspondence information, and obtaining the poster text " 2000 yuan " is " rent ".
Poster generation module 30, for the first text placeholder to be replaced with to the poster text of same type, and will
The picture placeholder replaces with the poster picture, to generate target poster.
It should be noted that the poster text will be established according to type after obtaining the corresponding type of each poster text
With the corresponding relationship between the first text placeholder, thus according to certain sequence, successively by each the first text occupy-place
Symbol replaces with corresponding poster text, and the picture placeholder is replaced with the poster picture, to generate target poster.By
In poster can be quickly generated automatically, poster official documents and correspondence is input to one by one in poster template without user, operating process is simple, mentions
High user experience.
In the present embodiment, include by obtaining poster official documents and correspondence information, poster picture and poster template, the poster template
First text placeholder and picture placeholder;Obtain the type of the first text placeholder, and from the poster official documents and correspondence information
The middle type for extracting poster text and the poster text;The first text placeholder is replaced with to the poster text of same type
This, and the picture placeholder is replaced with into the poster picture, to generate target poster.Since poster official documents and correspondence can be believed automatically
Poster picture is replaced the picture placeholder into poster template in the first text placeholder into poster template by breath replacement
In, target poster can be automatically configured, poster allocative efficiency is improved, it is easy to operate, it repeatedly inputs, improves manually without user
User experience.
In one embodiment, the type acquisition module 20 is also used to according to default in the first text placeholder
Text obtains the type of the first text placeholder;The poster official documents and correspondence information is segmented, and is mentioned from word segmentation result
Take poster text;From the poster text extract current key word, according to the current key word to the poster text into
Row type identification obtains the corresponding type of the poster text.
In one embodiment, the type acquisition module 20 is also used to extract current key word from the poster text,
The current key word is matched with predetermined keyword, obtains the matching of the current key word and the predetermined keyword
Degree;If described, match degree is greater than the preset threshold, searches the corresponding type of the predetermined keyword in default mapping table,
And using the corresponding type of the predetermined keyword as the type of the poster text.
In one embodiment, the type acquisition module 20, if being also used to the matching degree is not more than the preset threshold,
Then using the poster text as newly-increased text, and the second text placeholder is created in the poster template;By described first
Text placeholder replaces with the poster text of same type, and the second text placeholder is replaced with the newly-increased text, and
The picture placeholder is replaced with into the poster picture, to generate target poster.
In one embodiment, the poster generation module 30 is also used to replace with the first text placeholder identical
The poster text of type;The picture placeholder is replaced with the poster picture, and carried out to replaced poster picture etc.
Scaling and clarity amendment, to generate target poster.
In one embodiment, the poster automatically configures device, further includes:
Beautify module, for carrying out image to the target poster according to preset color collocation strategy and the instruction received
Beautification.
In one embodiment, the beautification module is also used to arrange in pairs or groups strategy in the target poster according to preset color
Text color, picture color and backcolor be adjusted;It is instructed according to the format conversion received to the target poster
In target poster text carry out text formatting transformation;Corresponding target filter is selected according to the filter selection instruction received,
And the transformed target poster of format is beautified according to the target filter.
Poster of the present invention automatically configures the other embodiments of device or specific implementation can refer to above-mentioned each method
Embodiment, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.If listing equipment for drying
Unit claim in, several in these devices, which can be, to be embodied by the same item of hardware.Word first,
Second and the use of third etc. do not indicate any sequence, can be title by these word explanations.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
(such as read-only memory mirror image (Read Only Memory image, ROM)/random access memory (Random Access
Memory, RAM), magnetic disk, CD) in, including some instructions are with so that a terminal poster automatically configures equipment and (can be
Mobile phone, computer, server, air conditioner or network poster automatically configure equipment etc.) it executes described in each embodiment of the present invention
Method.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of poster method of automatic configuration, which is characterized in that the poster method of automatic configuration the following steps are included:
Poster official documents and correspondence information, poster picture and poster template are obtained, the poster template includes the first text placeholder and picture
Placeholder;
The type of the first text placeholder is obtained, and extracts poster text and the poster from the poster official documents and correspondence information
The type of text;
The first text placeholder replaces with to the poster text of same type, and the picture placeholder is replaced with described
Poster picture, to generate target poster.
2. poster method of automatic configuration as described in claim 1, which is characterized in that described to obtain the first text placeholder
Type, and extract from the poster official documents and correspondence information type of poster text and the poster text, comprising:
The type of the first text placeholder is obtained according to the pre-set text in the first text placeholder;
The poster official documents and correspondence information is segmented, and extracts poster text from word segmentation result;
Current key word is extracted from the poster text, and type knowledge is carried out to the poster text according to the current key word
Not, the corresponding type of the poster text is obtained.
3. poster method of automatic configuration as claimed in claim 2, which is characterized in that described extract from the poster text is worked as
Preceding keyword carries out type identification to the poster text according to the current key word, it is corresponding to obtain the poster text
Type, comprising:
Current key word is extracted from the poster text, the current key word is matched with predetermined keyword, is obtained
The matching degree of the current key word and the predetermined keyword;
If described, match degree is greater than the preset threshold, searches the corresponding class of the predetermined keyword in default mapping table
Type, and using the corresponding type of the predetermined keyword as the type of the poster text.
4. poster method of automatic configuration as claimed in claim 3, which is characterized in that described to obtain the current key word and institute
After the matching degree for stating predetermined keyword, the poster method of automatic configuration further include:
If the matching degree is not more than the preset threshold, using the poster text as newly-increased text, and in the poster
The second text placeholder is created in template;
The second text placeholder is replaced with institute by the poster text that the first text placeholder is replaced with to same type
Newly-increased text is stated, and the picture placeholder is replaced with into the poster picture, to generate target poster.
5. such as poster method of automatic configuration of any of claims 1-4, which is characterized in that described by first text
Word placeholder replaces with the poster text of same type, and the picture placeholder is replaced with the poster picture, to generate
Target poster, comprising:
The first text placeholder is replaced with to the poster text of same type;
The picture placeholder is replaced with into the poster picture, and to replaced poster picture progress equal proportion scaling and clearly
Clear degree amendment, to generate target poster.
6. such as poster method of automatic configuration of any of claims 1-4, which is characterized in that described by first text
Word placeholder replaces with the poster text of same type, and the picture placeholder is replaced with the poster picture, to generate
After target poster, the poster method of automatic configuration further include:
Image beautification is carried out to the target poster according to preset color collocation strategy and the instruction received.
7. poster method of automatic configuration as claimed in claim 6, which is characterized in that it is described according to preset color collocation strategy and
The operational order received carries out image beautification to the target poster, comprising:
Text color, picture color and the backcolor in the target poster are adjusted according to preset color collocation strategy
It is whole;
Text formatting transformation is carried out to the target poster text in the target poster according to the format conversion instruction received;
Select corresponding target filter according to the filter selection instruction that receives, and according to the target filter to format conversion after
Target poster beautified.
8. a kind of poster automatically configures equipment, which is characterized in that it includes: memory, processor that the poster, which automatically configures equipment,
And it is stored in the poster auto configurator that can be run on the memory and on the processor, the poster automatically configures
The step of poster method of automatic configuration as described in any one of claims 1 to 7 is realized when program is executed by the processor.
9. a kind of storage medium, which is characterized in that be stored with poster auto configurator on the storage medium, the poster is certainly
The step of the poster method of automatic configuration as described in any one of claims 1 to 7 is realized when dynamic configurator is executed by processor
Suddenly.
10. a kind of poster automatically configures device, which is characterized in that the poster automatically configures device and includes:
Data obtaining module, for obtaining poster official documents and correspondence information, poster picture and poster template, the poster template includes first
Text placeholder and picture placeholder;
Type acquisition module is extracted for obtaining the type of the first text placeholder, and from the poster official documents and correspondence information
The type of poster text and the poster text;
Poster generation module, for the first text placeholder to replace with to the poster text of same type, and by the figure
Piece placeholder replaces with the poster picture, to generate target poster.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910202282.6A CN110060317A (en) | 2019-03-16 | 2019-03-16 | Poster method of automatic configuration, equipment, storage medium and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910202282.6A CN110060317A (en) | 2019-03-16 | 2019-03-16 | Poster method of automatic configuration, equipment, storage medium and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110060317A true CN110060317A (en) | 2019-07-26 |
Family
ID=67316928
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910202282.6A Pending CN110060317A (en) | 2019-03-16 | 2019-03-16 | Poster method of automatic configuration, equipment, storage medium and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110060317A (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111145310A (en) * | 2019-12-27 | 2020-05-12 | 北京奇艺世纪科技有限公司 | Poster generation method and device |
CN111192344A (en) * | 2019-12-06 | 2020-05-22 | 网娱互动科技(北京)股份有限公司 | Method for generating poster by automatically replacing characters and pictures |
CN111242691A (en) * | 2020-01-14 | 2020-06-05 | 广东博智林机器人有限公司 | Method and device for generating advertisement poster, storage medium and terminal equipment |
CN112102445A (en) * | 2020-11-17 | 2020-12-18 | 深圳市房多多网络科技有限公司 | Building poster manufacturing method, device, equipment and computer readable storage medium |
CN112257000A (en) * | 2020-10-28 | 2021-01-22 | 浙江大搜车软件技术有限公司 | Picture generation method and device, computer equipment and storage medium |
CN112541954A (en) * | 2020-12-22 | 2021-03-23 | 畅捷通信息技术股份有限公司 | Method for intelligently producing poster according to graphic characteristics |
CN112672181A (en) * | 2020-12-25 | 2021-04-16 | 广州博冠信息科技有限公司 | Information processing method and device, computer storage medium and electronic equipment |
CN112862926A (en) * | 2021-01-29 | 2021-05-28 | 成都环宇知了科技有限公司 | Swoole framework-based intelligent picture synthesis method and system |
CN113642563A (en) * | 2021-08-31 | 2021-11-12 | 平安医疗健康管理股份有限公司 | Drug use rechecking method, device, equipment and storage medium |
CN113673212A (en) * | 2021-08-20 | 2021-11-19 | 西安数拓网络科技有限公司 | Poster processing method, server and merchant client equipment |
CN113781601A (en) * | 2021-09-08 | 2021-12-10 | 深圳市酷开软件技术有限公司 | Poster synthesis method, device, equipment and storage medium |
CN114024931A (en) * | 2021-09-30 | 2022-02-08 | 北京达佳互联信息技术有限公司 | Information display method, device, terminal, server and storage medium |
CN114118041A (en) * | 2021-11-01 | 2022-03-01 | 深圳前海微众银行股份有限公司 | Text generation method and device and storage medium |
CN114710701A (en) * | 2022-02-28 | 2022-07-05 | 深圳腾银信息咨询有限责任公司 | Configured live broadcast page generation and control method, device, system and medium |
CN115209215A (en) * | 2021-04-09 | 2022-10-18 | 北京字跳网络技术有限公司 | Video processing method, device and equipment |
CN116226053A (en) * | 2023-05-05 | 2023-06-06 | 中国民航信息网络股份有限公司 | Text processing method, device and equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010191851A (en) * | 2009-02-20 | 2010-09-02 | Yahoo Japan Corp | Article feature word extraction device, article feature word extraction method and program |
CN103236007A (en) * | 2013-04-26 | 2013-08-07 | 孙鑫 | On-line poster generation system and on-line poster generation method |
CN107766371A (en) * | 2016-08-19 | 2018-03-06 | 中兴通讯股份有限公司 | A kind of text message sorting technique and its device |
CN107809492A (en) * | 2017-12-08 | 2018-03-16 | 广东太平洋互联网信息服务有限公司 | The generation method and system of sharing information |
CN107832756A (en) * | 2017-10-24 | 2018-03-23 | 讯飞智元信息科技有限公司 | Express delivery list information extracting method and device, storage medium, electronic equipment |
CN109325414A (en) * | 2018-08-20 | 2019-02-12 | 阿里巴巴集团控股有限公司 | Extracting method, the extracting method of device and text information of certificate information |
-
2019
- 2019-03-16 CN CN201910202282.6A patent/CN110060317A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010191851A (en) * | 2009-02-20 | 2010-09-02 | Yahoo Japan Corp | Article feature word extraction device, article feature word extraction method and program |
CN103236007A (en) * | 2013-04-26 | 2013-08-07 | 孙鑫 | On-line poster generation system and on-line poster generation method |
CN107766371A (en) * | 2016-08-19 | 2018-03-06 | 中兴通讯股份有限公司 | A kind of text message sorting technique and its device |
CN107832756A (en) * | 2017-10-24 | 2018-03-23 | 讯飞智元信息科技有限公司 | Express delivery list information extracting method and device, storage medium, electronic equipment |
CN107809492A (en) * | 2017-12-08 | 2018-03-16 | 广东太平洋互联网信息服务有限公司 | The generation method and system of sharing information |
CN109325414A (en) * | 2018-08-20 | 2019-02-12 | 阿里巴巴集团控股有限公司 | Extracting method, the extracting method of device and text information of certificate information |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111192344A (en) * | 2019-12-06 | 2020-05-22 | 网娱互动科技(北京)股份有限公司 | Method for generating poster by automatically replacing characters and pictures |
CN111145310A (en) * | 2019-12-27 | 2020-05-12 | 北京奇艺世纪科技有限公司 | Poster generation method and device |
CN111242691A (en) * | 2020-01-14 | 2020-06-05 | 广东博智林机器人有限公司 | Method and device for generating advertisement poster, storage medium and terminal equipment |
CN112257000A (en) * | 2020-10-28 | 2021-01-22 | 浙江大搜车软件技术有限公司 | Picture generation method and device, computer equipment and storage medium |
CN112102445A (en) * | 2020-11-17 | 2020-12-18 | 深圳市房多多网络科技有限公司 | Building poster manufacturing method, device, equipment and computer readable storage medium |
CN112102445B (en) * | 2020-11-17 | 2021-02-12 | 深圳市房多多网络科技有限公司 | Building poster manufacturing method, device, equipment and computer readable storage medium |
CN112541954A (en) * | 2020-12-22 | 2021-03-23 | 畅捷通信息技术股份有限公司 | Method for intelligently producing poster according to graphic characteristics |
CN112541954B (en) * | 2020-12-22 | 2024-03-26 | 畅捷通信息技术股份有限公司 | Method for intelligently producing poster according to graphic features |
CN112672181A (en) * | 2020-12-25 | 2021-04-16 | 广州博冠信息科技有限公司 | Information processing method and device, computer storage medium and electronic equipment |
CN112862926A (en) * | 2021-01-29 | 2021-05-28 | 成都环宇知了科技有限公司 | Swoole framework-based intelligent picture synthesis method and system |
CN112862926B (en) * | 2021-01-29 | 2023-08-01 | 成都环宇知了科技有限公司 | Intelligent picture synthesis method and system based on Swoole framework |
CN115209215A (en) * | 2021-04-09 | 2022-10-18 | 北京字跳网络技术有限公司 | Video processing method, device and equipment |
CN113673212A (en) * | 2021-08-20 | 2021-11-19 | 西安数拓网络科技有限公司 | Poster processing method, server and merchant client equipment |
CN113642563A (en) * | 2021-08-31 | 2021-11-12 | 平安医疗健康管理股份有限公司 | Drug use rechecking method, device, equipment and storage medium |
CN113781601A (en) * | 2021-09-08 | 2021-12-10 | 深圳市酷开软件技术有限公司 | Poster synthesis method, device, equipment and storage medium |
CN114024931A (en) * | 2021-09-30 | 2022-02-08 | 北京达佳互联信息技术有限公司 | Information display method, device, terminal, server and storage medium |
CN114024931B (en) * | 2021-09-30 | 2024-02-13 | 北京达佳互联信息技术有限公司 | Information display method, device, terminal, server and storage medium |
CN114118041A (en) * | 2021-11-01 | 2022-03-01 | 深圳前海微众银行股份有限公司 | Text generation method and device and storage medium |
CN114710701A (en) * | 2022-02-28 | 2022-07-05 | 深圳腾银信息咨询有限责任公司 | Configured live broadcast page generation and control method, device, system and medium |
CN116226053A (en) * | 2023-05-05 | 2023-06-06 | 中国民航信息网络股份有限公司 | Text processing method, device and equipment |
CN116226053B (en) * | 2023-05-05 | 2024-03-22 | 中国民航信息网络股份有限公司 | Text processing method, device and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110060317A (en) | Poster method of automatic configuration, equipment, storage medium and device | |
US9329777B2 (en) | Method and system for providing background contents of virtual key input device | |
CN105094775B (en) | Webpage generation method and device | |
CN107590524A (en) | The preparation method and device of a kind of electronic business card | |
US20120185788A1 (en) | User interface with vertical text elements for an east-asian defined layout | |
JP2013502861A (en) | Contact information input method and system | |
JP6459231B2 (en) | Template management apparatus and program | |
CN106127837A (en) | The multi-language support system of network caricature | |
CN105446592A (en) | Application icon classification and displaying method and device | |
CN110096276A (en) | Source of houses displayed page configuration method, equipment, storage medium and device | |
CN106020504A (en) | Information output method and device | |
CN105929980A (en) | Method and device for inputting information | |
CN106649209A (en) | Text display method and device | |
WO2018235326A1 (en) | Computer program, font switching device, and font switching method | |
CN112862558B (en) | Method and system for generating product detail page and data processing method | |
CN104657668A (en) | Terminal | |
US10120539B2 (en) | Method and device for setting user interface | |
JP2017174090A (en) | Information processing apparatus and program | |
CN109271083B (en) | Data processing method and device, computing equipment and storage medium | |
CN104657991A (en) | Picture processing method | |
CN112988026B (en) | Scroll bar display method and device and electronic equipment | |
CN106648367B (en) | Touch reading method and touch reading device | |
CN110119459A (en) | Image data retrieval method and image data retrieving apparatus | |
CN109740074B (en) | Method, device and equipment for processing parameter configuration information | |
CN105373565B (en) | web page processing method and device |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190726 |
|
WD01 | Invention patent application deemed withdrawn after publication |