CN108694210A - Template generation method and device - Google Patents
Template generation method and device Download PDFInfo
- Publication number
- CN108694210A CN108694210A CN201710233974.8A CN201710233974A CN108694210A CN 108694210 A CN108694210 A CN 108694210A CN 201710233974 A CN201710233974 A CN 201710233974A CN 108694210 A CN108694210 A CN 108694210A
- Authority
- CN
- China
- Prior art keywords
- picture
- correspondence
- official documents
- library
- primary template
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0641—Shopping interfaces
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Processing Or Creating Images (AREA)
Abstract
A kind of template generation method of the application offer and device, this method include:At least one of picture library and official documents and correspondence library are provided, corresponding inhomogeneity purpose picture is stored in the picture library, corresponding inhomogeneity purpose official documents and correspondence is stored in the official documents and correspondence library;Primary template data are obtained, include element tags in the primary template data;At least one of picture and the official documents and correspondence in the primary template data are identified according to the element tags;For given multiple default classifications, corresponding inhomogeneity purpose picture is chosen from the picture library, and/or corresponding inhomogeneity purpose official documents and correspondence is chosen from the official documents and correspondence library;Using at least one of the corresponding picture replaced in the primary template file of at least one of selected picture and official documents and correspondence and official documents and correspondence, the template file of corresponding the multiple default classification is generated.The application can generate corresponding inhomogeneity purpose template file by primary template data, can solve the technical problem of template file inadequate resource and resource allocation unevenness.
Description
Technical field
This application involves technical field of electronic commerce more particularly to template generation methods and device.
Background technology
With the continuous development of e-commerce technology, shopping platform makes people's lives become more and more convenient, people
It can be browsed by shopping platform and buy required thing product.In general, shopping platform side can obtain the product for needing to launch advertisement
Promotional literature shows some new products in Webpage using the promotional literature in the form of web advertisement (banner) etc.
Image, to attract user to click to enter introduction and the purchase page of the product.
Wherein, promotional literature is generated by template file, in technical field of electronic commerce, also emerges the offer of some templates
Platform chooses the template file next life for meeting its product and launching scene for providing template file for advertiser for advertiser
At promotional literature.Template provides the source of the template file of platform, and typically stencil design teacher is provided.
In existing realization, since product classification (such as women's dress, men's clothing, shoes packet or digital product etc.) is numerous, template carries
It need to be directed to different product classification for platform, more template file is provided, can just meet the needs of different advertisers.However existing reality
In existing, due to stencil design's teacher inadequate resource or it is that designed template file is gathered in certain product classifications, causes
Template file is undermanned, also it is possible to certain classifications or the template file of dispensing scene are more, certain classifications or dispensing scene
Template file it is less, therefore there is also the problems of resource allocation unevenness.How to be carried for different product classification and dispensing scene
For more template file resource, become the technical issues of template provides platform urgent need to resolve.
Invention content
To overcome the problems in correlation technique, this application provides template generation method and devices.
The embodiment of the present application provides a kind of template generation method, the method includes:
At least one of picture library and official documents and correspondence library are provided, corresponding inhomogeneity purpose picture, institute are stored in the picture library
It states and is stored with corresponding inhomogeneity purpose official documents and correspondence in official documents and correspondence library;
Primary template data are obtained, include element tags in the primary template data;
At least one of picture and the official documents and correspondence in the primary template data are identified according to the element tags;
For given multiple default classifications, corresponding inhomogeneity purpose picture is chosen from the picture library, and/or from described
Corresponding inhomogeneity purpose official documents and correspondence is chosen in official documents and correspondence library;
Use the corresponding picture and text replaced in the primary template file of at least one of selected picture and official documents and correspondence
At least one of case generates the template file of corresponding the multiple default classification.
In an optional realization method, the format of the primary template data is SVG formats, described according to the member
Plain tag recognition goes out at least one of picture and official documents and correspondence in the primary template data, including:
The picture in the primary template data is identified by the image element tags in the primary template data,
And/or identify the official documents and correspondence in the primary template data by the text element tags in the primary template data.
It is described to replace institute using at least one of selected picture and official documents and correspondence are corresponding in an optional realization method
At least one of picture and the official documents and correspondence in primary template file are stated, the template file of corresponding the multiple default classification, packet are generated
It includes:
At least one of picture and the official documents and correspondence in the primary template data are deleted, primary template frame is obtained;
Template size is preset according to several, the primary template frame is adjusted into size, it is different described pre- to obtain adaptation
If the template framework of template size;
According to distributing position of the picture and official documents and correspondence in the primary template data in primary template data, determination is obtained
The point of addition of picture and official documents and correspondence in the template framework obtained;
According to the size of the point of addition, it is added to after at least one of selected picture and official documents and correspondence are adjusted size
The template framework of each acquisition generates the template file of the multiple default classification of correspondence of multiple and different sizes.
In an optional realization method, the method further includes:
According to distributing position of the picture and official documents and correspondence in the primary template data in primary template data, determination is used for
Indicate the patterned type of the picture and official documents and correspondence distributing position;
It is described to choose corresponding inhomogeneity purpose picture from the picture library, including:
The picture of corresponding different classifications and patterned type is chosen from the picture library, is stored with and is corresponded to not in the picture library
With classification and the picture of patterned type.
In an optional realization method, described chosen from the picture library corresponds to inhomogeneity purpose picture, including:
According to several preset time classifications, corresponding different classifications and and current time are chosen from the picture library
The picture of matched time classification is stored with the picture of corresponding different classifications and time classification in the picture library.
In an optional realization method, described chosen from the official documents and correspondence library corresponds to inhomogeneity purpose official documents and correspondence, including:
According to several default dispensing scenes, corresponding different classifications are chosen from the official documents and correspondence library and launch the text of scene
Case is stored with corresponding different classifications in the official documents and correspondence library and launches the official documents and correspondence of scene.
In an optional realization method, the method further includes:
Go out the picture and text in primary template data according to the Attribute Recognition of picture and official documents and correspondence in the primary template data
Distributing position of the case in primary template file.
In an optional realization method, the distributing position of the picture in the primary template data passes through x attributes, y
The attribute value of attribute, width attributes and/or height attributes is identified;
The distributing position of picture in the primary template data passes through x attributes, y attributes, dx attributes and/or dy attributes
Attribute value is identified.
In an optional realization method, production that picture in the picture library is provided by reading shopping platform side
Product details page data and obtain, the product details page data include the affiliated classification of product and picture.
In an optional realization method, the official documents and correspondence in the official documents and correspondence library is higher than preset by obtaining historic click-through rate
The sample promotional literature of rate threshold value is hit, and identifies the official documents and correspondence in the sample promotional literature and obtains.
The embodiment of the present application also provides a kind of template generation device, and described device includes:
Database provides module, is used for:At least one of picture library and official documents and correspondence library are provided, are stored in the picture library pair
Inhomogeneity purpose picture is answered, corresponding inhomogeneity purpose official documents and correspondence is stored in the official documents and correspondence library;
Initial data acquisition module, is used for:Primary template data are obtained, include element mark in the primary template data
Label;
Identification module is used for:It is identified according to the element tags in the picture and official documents and correspondence in the primary template data
At least one;
Module is chosen, is used for:For given multiple default classifications, corresponding inhomogeneity purpose figure is chosen from the picture library
Piece, and/or corresponding inhomogeneity purpose official documents and correspondence is chosen from the official documents and correspondence library;
Generation module is used for:The primary template text is replaced using at least one of selected picture and official documents and correspondence are corresponding
At least one of picture and official documents and correspondence in part generate the template file of corresponding the multiple default classification.
In an optional realization method, the formats of the primary template data is SVG formats, the identification module,
It is additionally operable to:
The picture in the primary template data is identified by the image element tags in the primary template data,
And/or identify the official documents and correspondence in the primary template data by the text element tags in the primary template data.
In an optional realization method, the generation module, including:
Submodule is deleted, is used for:At least one of picture and the official documents and correspondence in the primary template data are deleted, is obtained original
Template framework;
Submodule is adjusted, is used for:Template size is preset according to several, the primary template frame is adjusted into size, is obtained
The template framework of the different default template sizes must be adapted to;
Position determination submodule is used for:According in the primary template data picture and official documents and correspondence in primary template data
In distributing position, determine the point of addition of picture and official documents and correspondence in obtained template framework;
Submodule is generated, is used for:According to the size of the point of addition, by selected at least one of picture and official documents and correspondence
It is added to the template framework of each acquisition after adjustment size, generates the multiple default classification of correspondence of multiple and different sizes
Template file.
In an optional realization method, described device further includes:
Composition determining module, is used for:According in the primary template data picture and official documents and correspondence in primary template data
Distributing position, determine and be used to indicate the patterned type of the picture and official documents and correspondence distributing position;
The selection module, is additionally operable to:
The picture of corresponding different classifications and patterned type is chosen from the picture library, is stored with and is corresponded to not in the picture library
With classification and the picture of patterned type.
In an optional realization method, the selection module is additionally operable to:
According to several preset time classifications, corresponding different classifications and and current time are chosen from the picture library
The picture of matched time classification is stored with the picture of corresponding different classifications and time classification in the picture library.
In an optional realization method, the selection module is additionally operable to:
According to several default dispensing scenes, corresponding different classifications are chosen from the official documents and correspondence library and launch the text of scene
Case is stored with corresponding different classifications in the official documents and correspondence library and launches the official documents and correspondence of scene.
In an optional realization method, the identification module is additionally operable to:
Go out the picture and text in primary template data according to the Attribute Recognition of picture and official documents and correspondence in the primary template data
Distributing position of the case in primary template file.
In an optional realization method, the distributing position of product picture described in the identification module by x attributes,
The attribute value of y attributes, width attributes and/or height attributes is identified;The distributing position of the official documents and correspondence passes through x attributes, y
The attribute value of attribute, dx attributes and/or dy attributes is identified.
In an optional realization method, the product picture in the picture library is provided by reading shopping platform side
Product details page data and obtain, the product details page data include the affiliated classification of product and product picture.
In an optional realization method, the official documents and correspondence in the official documents and correspondence library is higher than preset by obtaining historic click-through rate
The sample promotional literature of rate threshold value is hit, and identifies the official documents and correspondence in the sample promotional literature and obtains.
The embodiment of the present application also provides a kind of template generation device, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
At least one of picture library and official documents and correspondence library are provided, corresponding inhomogeneity purpose picture, institute are stored in the picture library
It states and is stored with corresponding inhomogeneity purpose official documents and correspondence in official documents and correspondence library;
Primary template data are obtained, include element tags in the primary template data;
At least one of picture and the official documents and correspondence in the primary template data are identified according to the element tags;
For given multiple default classifications, corresponding inhomogeneity purpose picture is chosen from the picture library, and/or from described
Corresponding inhomogeneity purpose official documents and correspondence is chosen in official documents and correspondence library;
Use the corresponding picture and text replaced in the primary template file of at least one of selected picture and official documents and correspondence
At least one of case generates the template file of corresponding the multiple default classification.
The technical solution that embodiments herein provides can include the following benefits:
In the application, since primary template data include element tags, primary template can be identified by element tags
Picture in data and official documents and correspondence;Also, multiple default classifications are directed to, picture library and official documents and correspondence library are prepared in advance, so as to choose
Inhomogeneity purpose picture, and inhomogeneity purpose official documents and correspondence is chosen, on the basis of primary template data, by picture and official documents and correspondence
At least one replacement, ultimately generate corresponding inhomogeneity purpose template file.The embodiment of the present application passes through primary template data energy
It is enough to generate corresponding inhomogeneity purpose template file, therefore solve the problems, such as template file inadequate resource, also, due to can be with base
The template file of other multiple classifications is generated in primary template data, therefore the technology that can also solve resource allocation unevenness is asked
Topic.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not
The application can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application
Example, and the principle together with specification for explaining the application.
Figure 1A is a kind of flow chart of template generation method of the application shown according to an exemplary embodiment.
Figure 1B is a kind of application scenario diagram of template generation method of the application shown according to an exemplary embodiment.
Fig. 1 C are a kind of schematic diagrames of template file of the application shown according to an exemplary embodiment.
Fig. 1 D are schematic diagram of the application according to four kinds of various sizes of template files shown in an exemplary embodiment.
Fig. 2 is the block diagram of server where a kind of template generation device of the application shown according to an exemplary embodiment.
Fig. 3 is a kind of block diagram of template generation device of the application shown according to an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of consistent device and method of some aspects be described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, is not intended to be limiting the application.
It is also intended to including majority in the application and "an" of singulative used in the attached claims, " described " and "the"
Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps
Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from
In the case of the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
With the development of network technology and universal, internet becomes the main media that people obtain and exchange information, also at
The important place launched for advertisement.Web site operator can reserve display area that is fixed or floating on the page, by advertisement
It is main to buy all or part of display area according to their needs, promotional literature can be shown in the display area, to be wide
Accuse main carry out product promotion.
Promotional literature is generated by template file, in existing realization, the template file resource of template provider, typically by
Stencil design teacher provides, since stencil design teacher is undermanned or is that designed template file is gathered in certain product classes
Mesh, therefore lead to the problem of template file inadequate resource or resource allocation unevenness.The scheme that the embodiment of the present application is provided, can be with
Applied to template provider, multiple template files for matching other classifications are generated by primary template data, next to this Shen
Please embodiment be described in detail.
As shown in Figure 1A, Figure 1A is a kind of flow of template generation method of the application shown according to an exemplary embodiment
Figure, in combination with being illustrated for scene graph shown in Figure 1B, this embodiment scheme can be applied to template provider in Figure 1B
In the server configured, include the following steps 101 to 104:
In a step 101, at least one of picture library and official documents and correspondence library are provided, corresponding inhomogeneity is stored in the picture library
Purpose picture is stored with corresponding inhomogeneity purpose official documents and correspondence in the official documents and correspondence library.
In a step 102, primary template data are obtained, include element tags in the primary template data.
In step 103, it is identified in picture and official documents and correspondence in the primary template data extremely according to the element tags
It is one of few.
At step 104, for given multiple default classifications, corresponding inhomogeneity purpose figure is chosen from the picture library
Piece, and/or corresponding inhomogeneity purpose official documents and correspondence is chosen from the official documents and correspondence library.
In step 105, the primary template file is replaced using at least one of selected picture and official documents and correspondence are corresponding
In picture and at least one of official documents and correspondence, generate the template file of corresponding the multiple default classification.
As shown in Figure 1 C, it is a kind of schematic diagram of primary template data of the application shown according to an exemplary embodiment,
In primary template data other than product picture and official documents and correspondence, remaining is usually cosmetic elements, that is to say, that can will be former
Beginning template data is interpreted as the combined result of product picture, official documents and correspondence and other elements according to certain position.
In some examples, primary template data can be the existing template data resource of template provider, in such feelings
Under condition, template provider can apply the scheme that the present embodiment is provided to derive to having template data resource, to generate
More template files.In some examples, primary template data can also be the template that stencil design teacher is provided, such
In the case of, template provider can apply the scheme that the present embodiment is provided, when stencil design teacher has submitted certain of its design
After the template of classification, on the basis of the template of its submission, the template file of other multiple classifications is generated.
Product classification in the present embodiment refers to the classification belonging to product, such as may include men's clothing, women's dress, household, change
Cosmetic, women's shoes, Men's Shoes, luggage, food, underwear, health care, ornaments, movement, electric appliance, number, mother and baby etc., in practical applications
This can be not construed as limiting with flexible configuration, the present embodiment.
Official documents and correspondence can carry out specific manifestation by word to set product, advertising theme or advertising creative etc..
In banner, official documents and correspondence usually may include title, text or slogan etc..Such as " good-for-nothing edema with the heart involved snacks ", " male clothing inventory is in an emergency ",
" household electrical appliances superior ", " leading legend footwear ", " meet you, are exactly to sell fast newly most U.S. spring in March day at " super brand day "
Product ", " revelry of iFashion new products " etc..
Under normal conditions, stencil design teacher is according to certain advertising strategy come design template, and advertising strategy refers to the template
It is related to which kind of product (such as men's clothing, women's dress, household, cosmetics or women's shoes etc.), which kind of product is the template be suitable for or certain
Kind of advertisement launch scene (such as bring down stocks, presell, New Arrivals, sales promotion etc.).Therefore, the picture in template and official documents and correspondence can be with
Above-mentioned advertising strategy matches, and the purpose of the embodiment of the present application be in order to generate corresponding inhomogeneity purpose multiple template file,
Therefore the product picture and official documents and correspondence in primary template data, product picture and text in changing primary template data can be changed
When case, picture and official documents and correspondence can be chosen from preconfigured picture library and official documents and correspondence library.
Wherein, at least one of picture library and official documents and correspondence library, the figure in Figure 1B illustrated embodiments are provided in the present embodiment
Valut and official documents and correspondence library are illustrated by taking local data base as an example, and in practical application, picture library and official documents and correspondence library can also be disposed on
On other servers, picture library that the server of template provider can be configured from other servers and obtained in official documents and correspondence library
Picture and official documents and correspondence.
For picture library, picture library is for storing the corresponding picture of different classifications;Picture is classified by classification, with
For in the template file of certain derivative a kind of product, such purpose picture to be chosen from picture library.In practical applications, picture
Correspondence in library per pictures and classification, can be accomplished in several ways.Such as can be configured not for picture in advance
Same classification label, to be distinguished to picture according to classification label.And the acquisition modes of picture in some examples can be with
It is to be prepared in advance by template provider.Since picture and classification have correspondence, needing to generate template text for some classification
When part, you can quickly choose such purpose picture from picture library.In practical application, same classification corresponding diagram piece may have very much
, when choosing, it can randomly select, for the picture being selected, can be retained in picture library, can also be deleted
Or label, to which different pictures can be chosen by different primary template data.In addition, picture can be according to one in picture library
Fixed cycle is updated so that template, which provides platform, can continue to provide the template file of high quality.
As shown in table 1 below, show 5 pictures in picture library and corresponding classification (the present embodiment since length is limited,
5 pictures are only shown, picture number can flexible configuration according to actual needs in picture library in practical application):
Picture number | 111 | 112 | 113 | 114 | 115 |
Classification | Household electrical appliances | Women's dress | Women's dress | Men's clothing | Food |
Table 1
In order to which example is convenient in table 1, each pictures are distinguished with numbering, and picture name can also be used in practical application
Etc. other modes distinguish, classification can also use number or the other modes such as symbol distinguish.
For official documents and correspondence library, official documents and correspondence library is for storing the corresponding official documents and correspondence of different classifications;Official documents and correspondence is classified by classification, with
For in the template file for generating certain a kind of product, the corresponding official documents and correspondence of the classification can be chosen from official documents and correspondence library.In practical application
In, an official documents and correspondence may correspond to a classification, it is also possible to corresponding multiple classifications.Such as:
Official documents and correspondence 1:" household electrical appliances superior ", corresponding electric appliance classification;
Official documents and correspondence 2:" leading legend footwear ", corresponding footwear classification;
Official documents and correspondence 3:" super brand day ", corresponding all classifications;
Official documents and correspondence 4:" meeting you, be exactly new product of selling fast most U.S. spring in March day ", corresponding women's dress, women's shoes, cosmetics classification;
Official documents and correspondence 5:" bringing down stocks packet postal ", corresponding all classifications.
The correspondence of each official documents and correspondence and classification, can be accomplished in several ways in official documents and correspondence library.Such as can be advance
Different classifications is configured for official documents and correspondence, to be distinguished to official documents and correspondence according to classification.And the acquisition modes of official documents and correspondence, in some examples,
Can be prepared in advance by template provider.Since official documents and correspondence and classification have correspondence, needing to generate mould for some classification
When plate file, you can quickly choose such purpose official documents and correspondence from official documents and correspondence library.
As shown in table 2 below, show 4 official documents and correspondences in official documents and correspondence library and corresponding classification (the present embodiment since length is limited,
4 official documents and correspondences are only shown, official documents and correspondence quantity can flexible configuration according to actual needs in official documents and correspondence library in practical application):
Official documents and correspondence content | Classification |
Bring down stocks packet postal | It is all |
Leading legend footwear | Footwear |
Household electrical appliances superior | Household electrical appliances |
It learns to wear with goddess and take | Women's dress |
Table 2
In order to which example is convenient in table 2, each official documents and correspondence is distinguished with official documents and correspondence content, and official documents and correspondence can also be used in practical application
The other modes such as number are distinguished, and classification can also use the other modes such as number or symbol to distinguish.
In order to improve the acquisition efficiency of picture, improve the structure efficiency of picture library, in an optional realization method, institute
The picture stated in picture library is obtained by reading the product details page data that shopping platform side is provided, the product details
Page data includes the affiliated classification of product and picture.
In the present embodiment, it is contemplated that existing shopping platform is provided with the product details page of many products, and product is detailed
Record has more product related information in the feelings page, therefore by reading product details page data, can be arrived with quick obtaining
The affiliated classification of product and picture, to improve the structure efficiency of picture library.
In practical applications, due in picture library each classification correspond to that picture is more, the products of certain classifications is from time dimension
Consider on degree, different pictures may be applicable in different seasons, such as women's dress, men's clothing, footwear, food or cosmetics etc..If in the summer
Season, then the product picture selection summer product picture in women's dress template file, therefore the picture in the picture library of the present embodiment, also
Can more sophisticated category further be carried out according to time classification, that is to say and distinguished with classification and time classification.Specifically,
The present embodiment also provides following scheme:
Described chosen from the picture library corresponds to inhomogeneity purpose picture, including:
According to several preset time classifications, chosen from the preset picture library corresponding different classifications and with work as
The picture of the time classification of preceding time match is stored with the picture of corresponding different classifications and time classification in the picture library.
Preset time classification may include having:Spring, summer, autumn or winter can also divide etc. according to month
Deng flexible configuration, the present embodiment being specifically not construed as limiting according to actual needs to this.In picture library corresponding to each picture
Time classification, picture can be configured by database personnel, can also be by analyzing the said goods details page
The relevant informations such as the issuing time of data or sales cycle and determine.Therefore, by the above-mentioned means, can make in template file
Picture more meet user demand, can more highlight the timeliness of template file.
As shown in table 3 below, show 5 pictures in picture library and corresponding classification and time classification (the present embodiment by
It is limited in length, 5 pictures are only shown, picture number can match according to actual needs and flexibly in picture library in practical application
It sets):
Picture number | 111 | 112 | 113 | 114 | 115 |
Classification | Household electrical appliances | Women's dress | Women's dress | Men's clothing | Food |
Time classification | Spring | Spring | Summer | Autumn | Winter |
Table 3
In practical applications, advertiser, which launches product advertising, usually has certain advertising goal, for example, advertiser shop
Restocking new product needs to promote new product;Or in certain festivals or holidays, certain advertising campaigns are released, in festivals or holidays
Stimulate customer consumption;It either releases season and brings down stocks activity etc..Since official documents and correspondence is usually showing the throwing that advertiser has formulated
Scene, therefore the official documents and correspondence in the official documents and correspondence library of the present embodiment are put, it can also be further more fine to official documents and correspondence progress according to scene is launched
Classification, that is to say with classification and launch scene distinguish.Specifically, the present embodiment also provides following scheme:
Described chosen from the official documents and correspondence library corresponds to inhomogeneity purpose official documents and correspondence, including:
According to several default dispensing scenes, corresponding different classifications are chosen from the preset official documents and correspondence library and launch scene
Official documents and correspondence, corresponding different classifications are stored in the official documents and correspondence library and launch the official documents and correspondence of scene.
Default scene of launching may include having:Restocking new product, promotion, whipping, is brought down stocks or special events, tool daily sale
Body flexible configuration, the present embodiment can be not construed as limiting this according to actual needs.Throwing in official documents and correspondence library corresponding to each official documents and correspondence
Scene is put, can be configured by database personnel.Therefore, by the above-mentioned means, be directed to each classification, also produce it is multiple not
With the template file for launching scene, so as to enrich the resource of template file, template provider can provide more multiple coincidence not
With the template file of user demand.
As shown in table 4 below, 4 official documents and correspondences in official documents and correspondence library and corresponding classification are shown and launch scene (the present embodiment by
It is limited in length, 4 official documents and correspondences are only shown, official documents and correspondence quantity can match according to actual needs and flexibly in official documents and correspondence library in practical application
It sets):
Official documents and correspondence content | Classification | Launch scene |
Bring down stocks packet postal | It is all | It brings down stocks, packet postal |
Leading legend footwear | Footwear | Daily sale |
Household electrical appliances superior | Household electrical appliances | Daily sale |
It learns to wear with goddess and take | Women's dress | Restocking new product |
Table 4
In order to improve the acquisition efficiency of official documents and correspondence, and the preparation preferable official documents and correspondence of quality, in an optional realization method,
Official documents and correspondence in the official documents and correspondence library is higher than the sample promotional literature of default clicking rate threshold value by obtaining historic click-through rate, and identifies institute
It states the official documents and correspondence in sample promotional literature and obtains.
In the present embodiment, clicking rate (CTR, Click Through Rate), refers to the web advertisement (display advertising/word
Advertisement/AdWords/arranging advertisement/video ads etc.) click arrival rate, i.e. the actual click number of the advertisement and advertisement
The amount of showing (Show content) ratio, CTR be weigh Internet advertising effect an important indicator.Clicking rate is got over
Height illustrates that promotional literature more meets user preference.Therefore the high sample promotional literature of clicking rate is chosen to identify official documents and correspondence, can be made
Official documents and correspondence more meets user preference in official documents and correspondence library, ensures the quality of the template file finally generated.Specific official documents and correspondence extraction process,
OCR (Optical Character Recognition, optical character identification) technology may be used and identify word, it can also
It is to be identified by the way of reading document code above-mentioned.By the above-mentioned means, can be with quick obtaining to official documents and correspondence, to carry
The structure efficiency in high official documents and correspondence library.In practical application, the classification corresponding to official documents and correspondence can in advance be configured by database personnel.
Therefore, on the basis of above-mentioned picture library and official documents and correspondence library, the present embodiment is getting primary template data, Ke Yishi
Do not go out at least one of picture and the official documents and correspondence of primary template data, chooses inhomogeneity purpose figure from picture library and official documents and correspondence library later
Piece and official documents and correspondence, to replace at least one of picture and official documents and correspondence in primary template data, to generate the template text of other classifications
Part.
For identifying the process of picture and official documents and correspondence from primary template data, in some examples, template can be obtained and set
The primary template that meter personnel provide, if primary template is the template of the readable codes such as SVG, by the code for reading primary template
Primary template data are obtained, are identified in a manner of reading code.For example, if primary template can be vector graphics, arrow
Spirogram shape refers to the figure indicated with series of computation instruction.One vector graphics may be by one or more fundamental figures member
Element constitutes (graphic element includes picture, text, circle, rectangle, ellipse or lines etc.), in document code, each fundamental figure
Element corresponds to different element tags.Therefore, the present embodiment identifies original mould by the element tags in primary template data
Picture in plate data and official documents and correspondence.In other examples, primary template data can also be the data being made of multiple figure layers,
Different figure layers indicate picture element, Writing Element or the other elements in primary template data, can lead in primary template data
It crosses element tags and identifies picture and official documents and correspondence, by the mark of element tags, can identify and detach from primary template data
Go out picture figure layer and official documents and correspondence figure layer, after isolating picture figure layer and official documents and correspondence figure layer, correspondingly adds selected picture and text
Case forms new template.In practical application, can in conjunction with primary template data specific format and the corresponding identification of flexible configuration
And replacement process, the present embodiment are not construed as limiting this.
As an example, it is SVG (Scalable Vector Graphics scalable vector graphics with primary template data
Shape) file of format illustrates.SVG is a kind of graphical format based on extensible markup language (XML), and element tags are lifted
Under such as:
<circle>Define a circle;<ellipse>Define an ellipse;<image>Define an image;<text>It is fixed
An adopted text.
Therefore, the picture and official documents and correspondence in primary template data can be identified by element tags.
In order to improve recognition efficiency, in an optional realization method, the format of the primary template file is SVG lattice
Formula, at least one of picture and the official documents and correspondence identified according to the element tags in the primary template data, including:
The picture is identified by the image element tags in the primary template data, and/or by described original
Text element tags in template data identify the official documents and correspondence.
In the present embodiment, primary template file is appointed as the file of SVG formats, this class file can pass through image elements
Product picture and official documents and correspondence are quickly and easily identified with text elements, therefore recognition efficiency can be provided.
In document code, the label symbol of each independent element generally use agreement distinguishes, such as above-mentioned SVG texts
In part, symbolization " <>" distinguish different elements.For example, following code shows three independent elements:
Therefore, in the present embodiment, picture and official documents and correspondence can be independently in primary template data in primary template data
Other elements, it is desirable that product picture and official documents and correspondence independently other in the primary template file in primary template file
Element then can rapidly and accurately identify picture and official documents and correspondence from data, and recognition accuracy is higher.Due in template file
May further include having other cosmetic elements, if picture or official documents and correspondence are combined as an element with such cosmetic elements, either
Official documents and correspondence is combined as a picture element with picture, then may need to identify product picture using image detection algorithm, or use
OCR technique identifies that official documents and correspondence, such mode are less efficient.
After identifying at least one picture and official documents and correspondence in primary template data, one can be chosen from picture library and official documents and correspondence library
At least one of product picture and official documents and correspondence of a or multiple and different classifications, by the picture and official documents and correspondence in primary template file at least
One of it is corresponding replace at least one of selected product picture and official documents and correspondence, specifically, can be from primary template data
In identify picture, inhomogeneity purpose picture is chosen from picture library, selected picture is replaced from primary template data
Picture;Or be to identify official documents and correspondence from primary template data, inhomogeneity purpose official documents and correspondence is chosen from official documents and correspondence library, it will be selected
The official documents and correspondence taken is replaced from the official documents and correspondence in primary template data;It can also be the picture and official documents and correspondence identified in primary template data,
Picture and official documents and correspondence are all replaced, to generate the template file of multiple and different classifications.It can be as needed in practical application
Flexibly selection alternative, the present embodiment are not construed as limiting this.
In practical applications, in order to be adapted to the size of different device screens, a promotional literature is possible to that ruler can be adjusted
It is very little, to meet the displaying demand of distinct device.For the demand, the embodiment of the present application also provides following scheme:
It is described to use the corresponding picture replaced in the primary template file of at least one of selected picture and official documents and correspondence
At least one of with official documents and correspondence, the template file of corresponding the multiple default classification is generated, may include:
At least one of picture and the official documents and correspondence in the primary template data are deleted, primary template frame is obtained.
Template size is preset according to several, the primary template frame is adjusted into size, it is different described pre- to obtain adaptation
If the template framework of template size.
According to distributing position of the picture and official documents and correspondence in the primary template data in primary template data, determination is obtained
The point of addition of picture and official documents and correspondence in the template framework obtained.
According to the size of the point of addition, it is added to after at least one of selected picture and official documents and correspondence are adjusted size
The template framework of each acquisition generates the template file of the multiple default classification of correspondence of multiple and different sizes.
By Such analysis it is found that picture and official documents and correspondence are expressed in primary template data with element, therefore, pass through reading
The attribute of picture and the attribute of official documents and correspondence can automatically identify picture in primary template data and official documents and correspondence in primary template data
In distributing position.In an optional realization method, for the primary template data of SVG formats, the distribution of the picture
Position is identified by the attribute value of x attributes, y attributes, width attributes and/or height attributes;The distribution position of the official documents and correspondence
It sets and is identified by the attribute value of x attributes, y attributes, dx attributes and/or dy attributes.
Then, the picture and official documents and correspondence in primary template data can be deleted, primary template frame is obtained;Later according to one
Or multiple default template sizes, the size of primary template frame is zoomed in and out, adjusts product picture and official documents and correspondence in template framework
Position, mobile other elements position etc. be adjusted, you can one or more be adapted to default template size with generating
Template framework, and determine the point of addition of picture and official documents and correspondence in obtained template framework.
As shown in figure iD, the schematic diagram of four kinds of various sizes of template files is shown in Fig. 1 D.Due to modules frame
The size of frame is different, and selected picture and official documents and correspondence can be adjusted size by the present embodiment according to the size of the point of addition
It is added to the template framework of each acquisition afterwards, specific adjustment mode in practical applications can be with flexible configuration.Wherein, no
With the position of picture in the template framework of size, and can be used for the sizes (picture hole position) of exhibiting pictures may be all different, right
In the picture chosen from picture library, it may be necessary to it carries out certain size adjusting or is interception part picture, it is each to be adapted to
A module frame.Specifically, for several template frameworks being closely sized to, then the size of picture hole position is closer to, can be with
Determine that the overlapping region of picture hole position in several template frameworks being respectively closely sized to, control picture main body are placed in the overlay region
In domain, picture is intercepted based on the overlapping region size.
In practical applications, it is contemplated that it is more to correspond to picture for each classification in picture library, it is understood that there may be main body is produced in picture
The positions of product it is different (such as model's picture position in entire picture is placed in the middle, position occupy left, position occupy it is right etc.), and different mould
Product picture and official documents and correspondence are distributed different location in plate file, it is contemplated that position occupies left picture and is more suitable for a product picture residence left side
Template file, position occupies right picture and is more suitable for the template file that product picture occupies the right side, therefore, in order to make selected figure
Piece more agrees with the design of template file, makes that the template file of generation is more aesthetically pleasing, more meets user demand, prevents from not meeting user
Demand and lead to more data processing operations, the present embodiment also provides following scheme:
According to distributing position of the picture and official documents and correspondence in the primary template data in primary template data, determination is used for
Indicate the patterned type of the picture and official documents and correspondence distributing position.
It is described to choose corresponding inhomogeneity purpose picture from the picture library, including:
The picture of corresponding different classifications and patterned type is chosen from the picture library, is stored with and is corresponded to not in the picture library
With classification and the picture of patterned type.
Picture in the picture library of the present embodiment also further can carry out more sophisticated category according to patterned type,
It is to be distinguished with classification and patterned type.Patterned type can be that picture is placed in the middle, picture occupies left, the picture residence right side, picture occupies
Right, picture occupies inferior multiple types, flexible configuration, the present embodiment can be specifically not construed as limiting according to actual needs to this.Figure
Patterned type in valut corresponding to each picture, can configure picture by database personnel.Therefore, pass through above-mentioned side
Formula, can be when choosing product picture, according to the patterned type of primary template file so that selected product picture more agrees with
The design of template file keeps the template file of generation more aesthetically pleasing.
As shown in table 5 below, show 5 pictures in picture library and corresponding classification and patterned type (the present embodiment by
It is limited in length, 5 pictures are only shown, picture number can match according to actual needs and flexibly in picture library in practical application
It sets):
Picture number | 111 | 112 | 113 | 114 | 115 |
Classification | Household electrical appliances | Women's dress | Women's dress | Men's clothing | Food |
Patterned type | Between two parties | It occupies right | It occupies right | Under residence | It occupies left |
Table 5
It is corresponding with the embodiment of aforementioned template generation method, present invention also provides template generation device and its applied
Server embodiment.
The embodiment of the application template generation device can be applied on the server.Device embodiment can pass through software reality
It is existing, it can also be realized by way of hardware or software and hardware combining.For implemented in software, as on a logical meaning
Device is in being read corresponding computer program instructions in nonvolatile memory by the processor of server where it
Deposit what middle operation was formed.For hardware view, as shown in Fig. 2, for one kind of server where the application template generation device
Hardware structure diagram, in addition to processor 210 shown in Fig. 2, memory 230, network interface 220 and nonvolatile memory 240 it
Outside, the server in embodiment where device 231 can also include other hardware generally according to the actual functional capability of the server,
This is repeated no more.
As shown in figure 3, Fig. 3 is a kind of block diagram of template generation device of the application shown according to an exemplary embodiment,
Described device includes:
Database provides module 31, is used for:At least one picture library and official documents and correspondence library are provided, are stored in the picture library pair
Inhomogeneity purpose picture is answered, corresponding inhomogeneity purpose official documents and correspondence is stored in the official documents and correspondence library.
Initial data acquisition module 32, is used for:Primary template data are obtained, include element mark in the primary template data
Label.
Identification module 33, is used for:The picture and official documents and correspondence in the primary template data are identified according to the element tags
At least one of.
Module 34 is chosen, is used for:For given multiple default classifications, corresponding inhomogeneity purpose is chosen from the picture library
Picture, and/or corresponding inhomogeneity purpose official documents and correspondence is chosen from the official documents and correspondence library.
Generation module 35, is used for:The primary template is replaced using at least one of selected picture and official documents and correspondence are corresponding
At least one of picture and official documents and correspondence in file generate the template file of corresponding the multiple default classification.
In an optional realization method, the format of the primary template data is SVG formats, the identification module
(being not shown in Fig. 3), is additionally operable to:
The picture in the primary template data is identified by the image element tags in the primary template data,
And/or identify the official documents and correspondence in the primary template data by the text element tags in the primary template data.
In an optional realization method, the generation module 35 (is not shown) in Fig. 3, including:
Submodule is deleted, is used for:At least one of picture and the official documents and correspondence in the primary template data are deleted, is obtained original
Template framework.
Submodule is adjusted, is used for:Template size is preset according to several, the primary template frame is adjusted into size, is obtained
The template framework of the different default template sizes must be adapted to.
Position determination submodule is used for:According in the primary template data picture and official documents and correspondence in primary template data
In distributing position, determine the point of addition of picture and official documents and correspondence in obtained template framework.
Submodule is generated, is used for:According to the size of the point of addition, by selected at least one of picture and official documents and correspondence
It is added to the template framework of each acquisition after adjustment size, generates the multiple default classification of correspondence of multiple and different sizes
Template file.
In an optional realization method, described device further includes (being not shown in Fig. 3):
Composition determining module, is used for:According in the primary template data picture and official documents and correspondence in primary template data
Distributing position, determine and be used to indicate the patterned type of the picture and official documents and correspondence distributing position.
The selection module, is additionally operable to:
The picture of corresponding different classifications and patterned type is chosen from the picture library, is stored with and is corresponded to not in the picture library
With classification and the picture of patterned type.
In an optional realization method, the selection module 34 is additionally operable to:
According to several preset time classifications, corresponding different classifications and and current time are chosen from the picture library
The picture of matched time classification is stored with the picture of corresponding different classifications and time classification in the picture library.
In an optional realization method, the selection module 34 is additionally operable to:
According to several default dispensing scenes, corresponding different classifications are chosen from the official documents and correspondence library and launch the text of scene
Case is stored with corresponding different classifications in the official documents and correspondence library and launches the official documents and correspondence of scene.
In an optional realization method, the identification module 33 is additionally operable to:
Go out the picture and text in primary template data according to the Attribute Recognition of picture and official documents and correspondence in the primary template data
Distributing position of the case in primary template file.
In an optional realization method, the distributing position of product picture described in the identification module 33 is belonged to by x
The attribute value of property, y attributes, width attributes and/or height attributes is identified;The distributing position of the official documents and correspondence is belonged to by x
The attribute value of property, y attributes, dx attributes and/or dy attributes is identified.
In an optional realization method, the product picture in the picture library is provided by reading shopping platform side
Product details page data and obtain, the product details page data include the affiliated classification of product and product picture.
In an optional realization method, the official documents and correspondence in the official documents and correspondence library is higher than preset by obtaining historic click-through rate
The sample promotional literature of rate threshold value is hit, and identifies the official documents and correspondence in the sample promotional literature and obtains.
Correspondingly, the embodiment of the present application also provides a kind of template generation device, including:Processor;For storing processor
The memory of executable instruction;Wherein, the processor is configured as:
At least one picture library and official documents and correspondence library are provided, corresponding inhomogeneity purpose picture is stored in the picture library, it is described
Corresponding inhomogeneity purpose official documents and correspondence is stored in official documents and correspondence library.
Primary template data are obtained, include element tags in the primary template data.
At least one of picture and the official documents and correspondence in the primary template data are identified according to the element tags.
For given multiple default classifications, corresponding inhomogeneity purpose picture is chosen from the picture library, and/or from described
Corresponding inhomogeneity purpose official documents and correspondence is chosen in official documents and correspondence library.
Use the corresponding picture and text replaced in the primary template file of at least one of selected picture and official documents and correspondence
At least one of case generates the template file of corresponding the multiple default classification.
The function of modules and the realization process of effect specifically refer to above-mentioned template generation in above-mentioned template generation device
The realization process of step is corresponded in method, details are not described herein.
For template generation device embodiment, since it corresponds essentially to embodiment of the method, so related place ginseng
See the part explanation of embodiment of the method.The apparatus embodiments described above are merely exemplary, wherein the conduct
The module that separating component illustrates may or may not be physically separated, the component shown as module can be or
Person may not be physical module, you can be located at a place, or may be distributed on multiple network modules.It can root
According to actual need that some or all of module therein is selected to realize the purpose of application scheme.Ordinary skill people
Member is without creative efforts, you can to understand and implement.
Those skilled in the art will readily occur to its of the application after considering specification and putting into practice the invention applied here
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or
Person's adaptive change follows the general principle of the application and includes the common knowledge in the art that the application does not apply
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following
Claim is pointed out.
It should be understood that the application is not limited to the precision architecture for being described above and being shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by the accompanying claims.
The foregoing is merely the preferred embodiments of the application, not limiting the application, all essences in the application
With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of the application protection god.
Claims (21)
1. a kind of template generation method, which is characterized in that the method includes:
At least one of picture library and official documents and correspondence library are provided, corresponding inhomogeneity purpose picture, the text are stored in the picture library
Corresponding inhomogeneity purpose official documents and correspondence is stored in case library;
Primary template data are obtained, include element tags in the primary template data;
At least one of picture and the official documents and correspondence in the primary template data are identified according to the element tags;
For given multiple default classifications, corresponding inhomogeneity purpose picture is chosen from the picture library, and/or from the official documents and correspondence
Corresponding inhomogeneity purpose official documents and correspondence is chosen in library;
Using in the corresponding picture and official documents and correspondence replaced in the primary template file of at least one of selected picture and official documents and correspondence
At least one, generate the template file of corresponding the multiple default classification.
2. according to the method described in claim 1, it is characterized in that, the format of the primary template data be SVG formats, it is described
At least one of picture and the official documents and correspondence in the primary template data are identified according to the element tags, including:
The picture in the primary template data is identified by the image element tags in the primary template data, and/or
The official documents and correspondence in the primary template data is identified by the text element tags in the primary template data.
3. according to the method described in claim 1, it is characterized in that, described use selected at least one of picture and official documents and correspondence
At least one of the corresponding picture replaced in the primary template file and official documents and correspondence generate the mould of corresponding the multiple default classification
Plate file, including:
At least one of picture and the official documents and correspondence in the primary template data are deleted, primary template frame is obtained;
Template size is preset according to several, the primary template frame is adjusted into size, obtains the different default moulds of adaptation
The template framework of board size;
According to distributing position of the picture and official documents and correspondence in the primary template data in primary template data, determines and to be obtained
The point of addition of picture and official documents and correspondence in template framework;
It is each by being added to after at least one of selected picture and official documents and correspondence adjustment size according to the size of the point of addition
The template framework of the acquisition generates the template file of the multiple default classification of correspondence of multiple and different sizes.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
According to distributing position of the picture and official documents and correspondence in the primary template data in primary template data, determination is used to indicate
The patterned type of the picture and official documents and correspondence distributing position;
It is described to choose corresponding inhomogeneity purpose picture from the picture library, including:
The picture of corresponding different classifications and patterned type is chosen from the picture library, and corresponding inhomogeneity is stored in the picture library
The picture of mesh and patterned type.
5. according to the method described in claim 1, it is characterized in that, described choose corresponding inhomogeneity purpose from the picture library
Picture, including:
According to several preset time classifications, corresponding different classifications and and current time matches are chosen from the picture library
Time classification picture, the picture of corresponding different classifications and time classification is stored in the picture library.
6. according to the method described in claim 1, it is characterized in that, described choose corresponding inhomogeneity purpose from the official documents and correspondence library
Official documents and correspondence, including:
According to several default dispensing scenes, corresponding different classifications are chosen from the official documents and correspondence library and launch the official documents and correspondence of scene, institute
State the official documents and correspondence for being stored with corresponding different classifications in official documents and correspondence library and launching scene.
7. method according to claim 3 or 4, which is characterized in that the method further includes:
Existed according to the picture and official documents and correspondence that the Attribute Recognition of picture and official documents and correspondence goes out in primary template data in the primary template data
Distributing position in primary template file.
8. the method according to the description of claim 7 is characterized in that the distributing position of the picture in the primary template data is logical
The attribute value for crossing x attributes, y attributes, width attributes and/or height attributes is identified;
The distributing position of picture in the primary template data passes through x attributes, the attribute of y attributes, dx attributes and/or dy attributes
Value is identified.
9. according to the method described in claim 1, it is characterized in that, the picture in the picture library is by reading shopping platform side
The product details page data that are there is provided and obtain, the product details page data include the affiliated classification of product and picture.
10. according to the method described in claim 1, it is characterized in that, the official documents and correspondence in the official documents and correspondence library is clicked by obtaining history
Rate is higher than the sample promotional literature of default clicking rate threshold value, and identifies the official documents and correspondence in the sample promotional literature and obtain.
11. a kind of template generation device, which is characterized in that described device includes:
Database provides module, is used for:At least one of picture library and official documents and correspondence library are provided, is stored with and is corresponded to not in the picture library
Similar purpose picture is stored with corresponding inhomogeneity purpose official documents and correspondence in the official documents and correspondence library;
Initial data acquisition module, is used for:Primary template data are obtained, include element tags in the primary template data;
Identification module is used for:It is identified in picture and official documents and correspondence in the primary template data at least according to the element tags
One of;
Module is chosen, is used for:For given multiple default classifications, corresponding inhomogeneity purpose picture is chosen from the picture library,
And/or corresponding inhomogeneity purpose official documents and correspondence is chosen from the official documents and correspondence library;
Generation module is used for:It is replaced in the primary template file using at least one of selected picture and official documents and correspondence are corresponding
Picture and at least one of official documents and correspondence, generate the template file of corresponding the multiple default classification.
12. according to the devices described in claim 11, which is characterized in that the format of the primary template data is SVG formats, institute
Identification module is stated, is additionally operable to:
The picture in the primary template data is identified by the image element tags in the primary template data, and/or
The official documents and correspondence in the primary template data is identified by the text element tags in the primary template data.
13. according to the devices described in claim 11, which is characterized in that the generation module, including:
Submodule is deleted, is used for:At least one of picture and the official documents and correspondence in the primary template data are deleted, primary template is obtained
Frame;
Submodule is adjusted, is used for:Template size is preset according to several, the primary template frame is adjusted into size, is fitted
Template framework with the different default template sizes;
Position determination submodule is used for:According in the primary template data picture and official documents and correspondence in primary template data
Distributing position determines the point of addition of picture and official documents and correspondence in obtained template framework;
Submodule is generated, is used for:According to the size of the point of addition, at least one of selected picture and official documents and correspondence are adjusted
It is added to the template framework of each acquisition after size, generates the mould of the multiple default classification of correspondence of multiple and different sizes
Plate file.
14. according to the devices described in claim 11, which is characterized in that described device further includes:
Composition determining module, is used for:According to point of picture and official documents and correspondence in primary template data in the primary template data
Cloth position determines the patterned type for being used to indicate the picture and official documents and correspondence distributing position;
The selection module, is additionally operable to:
The picture of corresponding different classifications and patterned type is chosen from the picture library, and corresponding inhomogeneity is stored in the picture library
The picture of mesh and patterned type.
15. according to the devices described in claim 11, which is characterized in that the selection module is additionally operable to:
According to several preset time classifications, corresponding different classifications and and current time matches are chosen from the picture library
Time classification picture, the picture of corresponding different classifications and time classification is stored in the picture library.
16. according to the devices described in claim 11, which is characterized in that the selection module is additionally operable to:
According to several default dispensing scenes, corresponding different classifications are chosen from the official documents and correspondence library and launch the official documents and correspondence of scene, institute
State the official documents and correspondence for being stored with corresponding different classifications in official documents and correspondence library and launching scene.
17. the device according to claim 13 or 14, which is characterized in that the identification module is additionally operable to:
Existed according to the picture and official documents and correspondence that the Attribute Recognition of picture and official documents and correspondence goes out in primary template data in the primary template data
Distributing position in primary template file.
18. device according to claim 17, which is characterized in that the distribution position of product picture described in the identification module
It sets and is identified by the attribute value of x attributes, y attributes, width attributes and/or height attributes;The distributing position of the official documents and correspondence
It is identified by the attribute value of x attributes, y attributes, dx attributes and/or dy attributes.
19. according to the devices described in claim 11, which is characterized in that the product picture in the picture library is done shopping by reading
Product details page data that platform side is provided and obtain, the product details page data include the affiliated classification of product and
Product picture.
20. according to the devices described in claim 11, which is characterized in that the official documents and correspondence in the official documents and correspondence library is clicked by obtaining history
Rate is higher than the sample promotional literature of default clicking rate threshold value, and identifies the official documents and correspondence in the sample promotional literature and obtain.
21. a kind of template generation device, which is characterized in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
At least one of picture library and official documents and correspondence library are provided, corresponding inhomogeneity purpose picture, the text are stored in the picture library
Corresponding inhomogeneity purpose official documents and correspondence is stored in case library;
Primary template data are obtained, include element tags in the primary template data;
At least one of picture and the official documents and correspondence in the primary template data are identified according to the element tags;
For given multiple default classifications, corresponding inhomogeneity purpose picture is chosen from the picture library, and/or from the official documents and correspondence
Corresponding inhomogeneity purpose official documents and correspondence is chosen in library;
Using in the corresponding picture and official documents and correspondence replaced in the primary template file of at least one of selected picture and official documents and correspondence
At least one, generate the template file of corresponding the multiple default classification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710233974.8A CN108694210B (en) | 2017-04-11 | 2017-04-11 | Template generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710233974.8A CN108694210B (en) | 2017-04-11 | 2017-04-11 | Template generation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108694210A true CN108694210A (en) | 2018-10-23 |
CN108694210B CN108694210B (en) | 2022-02-18 |
Family
ID=63843383
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710233974.8A Active CN108694210B (en) | 2017-04-11 | 2017-04-11 | Template generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108694210B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109471631A (en) * | 2018-11-21 | 2019-03-15 | 北京京东尚科信息技术有限公司 | The generation method and device of masking-out material |
CN109978027A (en) * | 2019-03-12 | 2019-07-05 | 深圳微品致远信息科技有限公司 | An a kind of key drawing methods, system and storage medium based on machine learning |
CN110196972A (en) * | 2019-04-24 | 2019-09-03 | 北京奇艺世纪科技有限公司 | Official documents and correspondence generation method, device and computer readable storage medium |
CN110930177A (en) * | 2019-09-29 | 2020-03-27 | 京东数字科技控股有限公司 | AI advertisement template, AI advertisement generation method, AI advertisement generation device and storage medium |
CN111124482A (en) * | 2019-12-25 | 2020-05-08 | 北京达佳互联信息技术有限公司 | Method and device for configuring file information |
CN111178238A (en) * | 2019-12-25 | 2020-05-19 | 未鲲(上海)科技服务有限公司 | Certificate testing method, device, equipment and computer readable storage medium |
CN111191093A (en) * | 2020-01-02 | 2020-05-22 | 北京百度网讯科技有限公司 | Applet card generation method and device and electronic equipment |
CN111538856A (en) * | 2020-05-06 | 2020-08-14 | 深圳市卡牛科技有限公司 | Picture material generation method and device, computer equipment and storage medium |
CN111552826A (en) * | 2020-05-06 | 2020-08-18 | 深圳市卡牛科技有限公司 | Example picture generation method and device, computer equipment and storage medium |
CN111783415A (en) * | 2020-08-20 | 2020-10-16 | 支付宝(杭州)信息技术有限公司 | Template configuration method and device |
WO2021135678A1 (en) * | 2020-01-02 | 2021-07-08 | 北京达佳互联信息技术有限公司 | Editing template generating method and apparatus, electronic device, and storage medium |
CN114579524A (en) * | 2022-05-06 | 2022-06-03 | 成都大学 | Method and system for processing image data |
CN114662176A (en) * | 2022-04-02 | 2022-06-24 | 亿玛创新网络(天津)有限公司 | Method and device for generating multi-element picture by setting template and selecting resources |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080198390A1 (en) * | 2007-02-20 | 2008-08-21 | Seiko Epson Corporation | Image processing apparatus, image processing method, and program |
US20110320937A1 (en) * | 2010-06-25 | 2011-12-29 | Canon Kabushiki Kaisha | Editing apparatus, editing method performed by editing apparatus, and storage medium storing program |
CN102724425A (en) * | 2011-11-29 | 2012-10-10 | 新奥特(北京)视频技术有限公司 | Television image and text template broadcasting method |
US20140108443A1 (en) * | 2012-10-15 | 2014-04-17 | Exacttarget, Inc. | System and method to generate a data-rich template |
CN105094809A (en) * | 2015-06-29 | 2015-11-25 | 北京金山安全软件有限公司 | Combined picture layout modification method and device and terminal equipment |
CN105574909A (en) * | 2014-10-11 | 2016-05-11 | 北京金山安全软件有限公司 | Picture combination template processing method and device and terminal |
CN106155991A (en) * | 2016-06-27 | 2016-11-23 | 乐视控股(北京)有限公司 | The preview graph of a kind of font packet generates method and system |
CN106339373A (en) * | 2015-07-06 | 2017-01-18 | 北大方正集团有限公司 | Page template replacing method and device |
CN106557289A (en) * | 2015-09-29 | 2017-04-05 | 珠海金山办公软件有限公司 | A kind of lantern slide display packing, system and device |
-
2017
- 2017-04-11 CN CN201710233974.8A patent/CN108694210B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080198390A1 (en) * | 2007-02-20 | 2008-08-21 | Seiko Epson Corporation | Image processing apparatus, image processing method, and program |
US20110320937A1 (en) * | 2010-06-25 | 2011-12-29 | Canon Kabushiki Kaisha | Editing apparatus, editing method performed by editing apparatus, and storage medium storing program |
CN102724425A (en) * | 2011-11-29 | 2012-10-10 | 新奥特(北京)视频技术有限公司 | Television image and text template broadcasting method |
US20140108443A1 (en) * | 2012-10-15 | 2014-04-17 | Exacttarget, Inc. | System and method to generate a data-rich template |
CN105574909A (en) * | 2014-10-11 | 2016-05-11 | 北京金山安全软件有限公司 | Picture combination template processing method and device and terminal |
CN105094809A (en) * | 2015-06-29 | 2015-11-25 | 北京金山安全软件有限公司 | Combined picture layout modification method and device and terminal equipment |
CN106339373A (en) * | 2015-07-06 | 2017-01-18 | 北大方正集团有限公司 | Page template replacing method and device |
CN106557289A (en) * | 2015-09-29 | 2017-04-05 | 珠海金山办公软件有限公司 | A kind of lantern slide display packing, system and device |
CN106155991A (en) * | 2016-06-27 | 2016-11-23 | 乐视控股(北京)有限公司 | The preview graph of a kind of font packet generates method and system |
Non-Patent Citations (1)
Title |
---|
朱远平等: "一种适用于图像拼接的自适应模板匹配算法", 《计算机工程与应用》 * |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109471631A (en) * | 2018-11-21 | 2019-03-15 | 北京京东尚科信息技术有限公司 | The generation method and device of masking-out material |
CN109978027A (en) * | 2019-03-12 | 2019-07-05 | 深圳微品致远信息科技有限公司 | An a kind of key drawing methods, system and storage medium based on machine learning |
CN110196972A (en) * | 2019-04-24 | 2019-09-03 | 北京奇艺世纪科技有限公司 | Official documents and correspondence generation method, device and computer readable storage medium |
CN110196972B (en) * | 2019-04-24 | 2022-11-01 | 北京奇艺世纪科技有限公司 | Method and device for generating file and computer readable storage medium |
CN110930177A (en) * | 2019-09-29 | 2020-03-27 | 京东数字科技控股有限公司 | AI advertisement template, AI advertisement generation method, AI advertisement generation device and storage medium |
CN111124482A (en) * | 2019-12-25 | 2020-05-08 | 北京达佳互联信息技术有限公司 | Method and device for configuring file information |
CN111178238A (en) * | 2019-12-25 | 2020-05-19 | 未鲲(上海)科技服务有限公司 | Certificate testing method, device, equipment and computer readable storage medium |
CN111178238B (en) * | 2019-12-25 | 2024-09-20 | 未鲲(上海)科技服务有限公司 | Certificate testing method, device, equipment and computer readable storage medium |
CN111124482B (en) * | 2019-12-25 | 2024-05-07 | 北京达佳互联信息技术有限公司 | Configuration method and device for document information |
WO2021135678A1 (en) * | 2020-01-02 | 2021-07-08 | 北京达佳互联信息技术有限公司 | Editing template generating method and apparatus, electronic device, and storage medium |
CN111191093B (en) * | 2020-01-02 | 2023-07-21 | 北京百度网讯科技有限公司 | Method and device for generating applet card and electronic equipment |
CN111191093A (en) * | 2020-01-02 | 2020-05-22 | 北京百度网讯科技有限公司 | Applet card generation method and device and electronic equipment |
CN111552826A (en) * | 2020-05-06 | 2020-08-18 | 深圳市卡牛科技有限公司 | Example picture generation method and device, computer equipment and storage medium |
CN111538856B (en) * | 2020-05-06 | 2023-08-29 | 深圳市卡牛科技有限公司 | Picture material generation method and device, computer equipment and storage medium |
CN111552826B (en) * | 2020-05-06 | 2023-09-29 | 深圳市卡牛科技有限公司 | Example picture generation method and device, computer equipment and storage medium |
CN111538856A (en) * | 2020-05-06 | 2020-08-14 | 深圳市卡牛科技有限公司 | Picture material generation method and device, computer equipment and storage medium |
CN111783415A (en) * | 2020-08-20 | 2020-10-16 | 支付宝(杭州)信息技术有限公司 | Template configuration method and device |
CN111783415B (en) * | 2020-08-20 | 2023-10-27 | 支付宝(杭州)信息技术有限公司 | Template configuration method and device |
CN114662176A (en) * | 2022-04-02 | 2022-06-24 | 亿玛创新网络(天津)有限公司 | Method and device for generating multi-element picture by setting template and selecting resources |
CN114579524A (en) * | 2022-05-06 | 2022-06-03 | 成都大学 | Method and system for processing image data |
CN114579524B (en) * | 2022-05-06 | 2022-07-15 | 成都大学 | Method and system for processing image data |
Also Published As
Publication number | Publication date |
---|---|
CN108694210B (en) | 2022-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108694210A (en) | Template generation method and device | |
CN108694602A (en) | Promotional literature generation method and device | |
Wuisan et al. | Maximizing online marketing strategy with digital advertising | |
Eckman et al. | Toward a model of the in-store purchase decision process: Consumer use of criteria for evaluating women's apparel | |
CN105976203B (en) | Automatic generation method and device of internet advertisement originality | |
US20080300980A1 (en) | Method and system of synchronizing data processed through web widgets distributed across network nodes | |
CN109542916A (en) | Platform commodity enter method, apparatus, computer equipment and storage medium | |
CN105005876A (en) | Client behavior acquiring and analyzing system and the using method | |
US20140144977A1 (en) | Scannable recipe card to add items to shopping list | |
US20200342163A1 (en) | Systems and methods for converting static image online content to dynamic online content | |
CN107205042A (en) | A kind of accurate information method for pushing and system | |
CN107992500A (en) | A kind of information processing method and server | |
US20110288942A1 (en) | Method of producing a printed product | |
Paruchuri | Market segmentation, targeting, and positioning using machine learning | |
CN113554457B (en) | Intelligent poster generation method and device suitable for e-commerce platform and storage medium | |
US10600077B2 (en) | Advertising system | |
EP2709025A1 (en) | Asynchronous method and system for integrating user-selectable icons on web pages | |
CN113643075B (en) | Intelligent poster generation method, device and storage medium based on machine learning | |
McKelvey | The Marketing of Fashion | |
TWM573855U (en) | Product image intelligent system | |
Manko | The evolution of fashion: How digital technology makes a basic graphic T-Shirt a marketing staple | |
TWI684876B (en) | Product image intelligent system and method | |
US20230214894A1 (en) | Curated collections from multiple input sources | |
JP2019061511A (en) | Information processing device and program | |
Mohamad Arifin | Industrial training report: Sulisa Beauty |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |