CN111352623B - Page generation method and device - Google Patents

Page generation method and device Download PDF

Info

Publication number
CN111352623B
CN111352623B CN201811565125.3A CN201811565125A CN111352623B CN 111352623 B CN111352623 B CN 111352623B CN 201811565125 A CN201811565125 A CN 201811565125A CN 111352623 B CN111352623 B CN 111352623B
Authority
CN
China
Prior art keywords
page
processed
layout
content
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811565125.3A
Other languages
Chinese (zh)
Other versions
CN111352623A (en
Inventor
陈庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811565125.3A priority Critical patent/CN111352623B/en
Publication of CN111352623A publication Critical patent/CN111352623A/en
Application granted granted Critical
Publication of CN111352623B publication Critical patent/CN111352623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The embodiment of the application provides a page generation method and device. Acquiring object description information of at least one object to be processed; determining a layout mode of the at least one object to be processed; and constructing at least one page according to the layout mode, and generating page content of the at least one page based on the object description information of the at least one object to be processed so as to obtain a page file formed by the at least one page. The technical scheme provided by the embodiment of the application improves the page generation efficiency.

Description

Page generation method and device
Technical Field
The embodiment of the application relates to the technical field of computer application, in particular to a page generation method and a page generation device.
Background
With the development and popularization of network technology, the internet is a main medium for people to acquire and exchange information, especially, the technology of Html5 (HyperText Markup Language, 5 th edition of hypertext markup language, abbreviated as H5) appears, and the use of web pages for information propaganda has become a main trend at present, so that more and more platforms for page production are provided.
At present, a page template is commonly used for generating a page, the page template is an abstraction of page contents, defines page elements contained in the page, layout of each page element in the page and the like, the page template is developed and designed by a designer, and a user modifies element contents of certain page elements in the page template according to objects to be advertised, so that a page required by the user can be generated.
Because the user is required to select the page template and modify the content based on the page template, the page required by the user can be generated, and the page generation efficiency is not high due to the fact that the user collocation and layout knowledge are limited.
Disclosure of Invention
The embodiment of the application provides a page generation method and device, which are used for solving the technical problem of low page generation efficiency in the prior art.
In a first aspect, an embodiment of the present application provides a page generating method, including:
the processing end obtains object description information of at least one object to be processed;
determining a layout mode of the at least one object to be processed;
and constructing at least one page according to the layout mode, and generating page content of the at least one page based on the object description information of the at least one object to be processed so as to obtain a page file formed by the at least one page.
In a second aspect, an embodiment of the present application provides a page generating method, including:
responding to request operation of a user for at least one object to be processed, and generating a user request;
sending the user request to a processing end so that the processing end can acquire object description information of the at least one object to be processed; determining a layout mode of the at least one object to be processed, and constructing at least one page according to the layout mode; generating page content of the at least one page based on the object description information of the at least one object to be processed so as to obtain a page file formed by the at least one page;
And acquiring the page file provided by the processing end.
In a third aspect, an embodiment of the present application provides a page generating method, including:
the processing end obtains at least one picture to be processed
Determining a layout mode of the at least one picture to be processed;
and constructing at least one page according to the layout mode, and generating page content of the at least one page based on the at least one picture to be processed so as to obtain a page file formed by the at least one page.
In a fourth aspect, an embodiment of the present application provides a page generating method, including:
the processing end obtains object description information of at least one object to be processed;
generating a page file matched with the at least one object to be processed by using a page classification model based on the object description information of the at least one object to be processed; the page classification model is obtained based on object description information of at least one sample object and at least one sample file training corresponding to the at least one sample object.
In a fifth aspect, in an embodiment of the present application, there is provided a page generating apparatus, including:
the information acquisition module is used for acquiring object description information of at least one object to be processed;
The first layout determining module is used for determining a layout mode of the at least one object to be processed;
the first content generation module is used for constructing at least one page according to the layout mode and generating page content of the at least one page based on the object description information of the at least one object to be processed so as to obtain a page file formed by the at least one page.
In a sixth aspect, in an embodiment of the present application, there is provided a page generating apparatus, including:
the first request generation module is used for responding to the request operation of a user for at least one object to be processed and generating a user request;
the first request sending module is used for sending the user request to the processing end so that the processing end can acquire the object description information of the at least one object to be processed, determine the layout mode of the at least one object to be processed, construct at least one page according to the layout mode, and generate the page content of the at least one page based on the object description information of the at least one object to be processed so as to acquire a page file formed by the at least one page;
and the first file receiving module is used for acquiring the page file provided by the processing end.
In a seventh aspect, an embodiment of the present application provides a page generating apparatus, including:
a picture acquisition module for acquiring at least one picture to be processed
The second layout determining module is used for determining a layout mode of the at least one picture to be processed;
and the second content generation module is used for constructing at least one page according to the layout mode, and generating page content of the at least one page based on the at least one picture to be processed so as to obtain a page file formed by the at least one page.
In an eighth aspect, in an embodiment of the present application, there is provided a page generating apparatus, including:
the information acquisition module is used for acquiring object description information of at least one object to be processed;
the page generation module is used for generating a page file matched with the at least one object to be processed by utilizing a page classification model based on the object description information of the at least one object to be processed; the page classification model is obtained based on object description information of at least one sample object and at least one sample file training corresponding to the at least one sample object.
In a ninth aspect, in an embodiment of the present application, a processing device includes a processing component and a storage component;
The storage component stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component;
the processing assembly is configured to:
acquiring object description information of at least one object to be processed;
determining a layout mode of the at least one object to be processed;
and constructing at least one page according to the layout mode, and generating page content of the at least one page based on the object description information of the at least one object to be processed so as to obtain a page file formed by the at least one page.
In a tenth aspect, an embodiment of the present application provides a terminal, including a processing component and a storage component;
the storage component stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component;
the processing assembly is configured to:
responding to request operation of a user for at least one object to be processed, and generating a user request;
sending the user request to a processing end, so that the processing end obtains object description information of the at least one object to be processed, determines a layout mode of the at least one object to be processed, constructs at least one page according to the layout mode, and generates page content of the at least one page based on the object description information of the at least one object to be processed to obtain a page file formed by the at least one page;
And acquiring the page file provided by the processing end.
In an eleventh aspect, in an embodiment of the present application, a processing device includes a processing component and a storage component;
the storage component stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component;
the processing assembly is configured to:
acquiring at least one picture to be processed
Determining a layout mode of the at least one picture to be processed;
and constructing at least one page according to the layout mode, and generating page content of the at least one page based on the at least one picture to be processed so as to obtain a page file formed by the at least one page.
In a twelfth aspect, in an embodiment of the present application, there is provided a processing device, including a processing component and a storage component;
the storage component stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component;
the processing assembly is configured to:
acquiring object description information of at least one object to be processed;
generating a page file matched with the at least one object to be processed by using a page classification model based on the object description information of the at least one object to be processed; the page classification model is obtained based on object description information of at least one sample object and at least one sample file training corresponding to the at least one sample object.
In the embodiment of the application, first, object description information of at least one object to be processed is obtained; determining a layout mode of matching of the at least one object to be processed; and constructing at least one page according to the layout mode, and generating page content of the at least one page based on the object description information of the at least one object to be processed so as to obtain a page file formed by the at least one page. Generally, the embodiment of the application realizes automatic generation of the page and improves the page generation efficiency.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description will be given below of the drawings that are needed in the embodiments or the prior art descriptions, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 illustrates a flow chart of one embodiment of a page generation method provided herein;
FIG. 2 is a flow chart illustrating yet another embodiment of a page generation method provided herein;
FIGS. 3 a-3 e are schematic views respectively showing interface display of an embodiment of the present application in a practical application;
FIG. 4 is a flow chart illustrating yet another embodiment of a page generation method provided herein;
FIG. 5 is a flow chart illustrating yet another embodiment of a page generation method provided herein;
FIG. 6 is a schematic diagram illustrating the structure of one embodiment of a page generating apparatus provided in the present application;
FIG. 7 illustrates a schematic diagram of one embodiment of a processing device provided herein;
FIG. 8 illustrates a flow chart of one embodiment of a page generation apparatus provided herein;
FIG. 9 illustrates a schematic diagram of one embodiment of a processing device provided herein;
FIG. 10 illustrates a flow chart of one embodiment of a page generation apparatus provided herein;
fig. 11 is a schematic structural view of an embodiment of a processing apparatus provided in the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.
In some of the flows described in the specification and claims of this application and in the foregoing figures, a number of operations are included that occur in a particular order, but it should be understood that the operations may be performed in other than the order in which they occur or in parallel, that the order of operations such as 101, 102, etc. is merely for distinguishing between the various operations, and that the order of execution is not by itself represented by any order of execution. In addition, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first" and "second" herein are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, and are not limited to the "first" and the "second" being different types.
The embodiment of the application is applied to a page generation scene, such as an electronic poster aiming at a mobile popularization channel at present, and can be used for carrying out commodity propaganda, job recruitment, invitation letter making, small games and the like.
The page file in the embodiment of the application is formed by at least one page, and can be displayed in a fixed display area of an existing webpage or in various clients with browser functions, namely, sharing and propagation can be carried out based on the network address of the page file, and the page file can be opened by the client to obtain the network address, so that the propaganda purpose is realized.
In the prior art, page templates are commonly used to generate page files, which are developed by designers to design, and may include at least one sample page. A sample page is composed of common page elements, which may generally include a background element, a control element, a main body element, a decoration element, and the like, wherein the main body element is a content variable element for a user to modify the element content of the main body element based on related information of an object to be promoted, and the background element, the control element, and the decoration element in the page template represent the overall style of a page template and are not changed in general. In the prior art, a user needs to select a page template meeting the needs from a large number of page templates, edit each sample page in the page template based on objects needing to be advertised, and generate the page file, and the operation is complex, so that the page generation efficiency is affected.
In order to improve the page generation efficiency, the inventor provides a technical scheme of an embodiment of the application through a series of researches, and in the embodiment of the application, a processing end firstly acquires object description information of at least one object to be processed; determining a layout mode of matching of the at least one object to be processed; and constructing at least one page according to the layout mode, and generating page content of the at least one page based on the object description information of the at least one object to be processed so as to obtain a page file formed by the at least one page. According to the embodiment of the application, the page is automatically generated without template selection, modification, submission and the like of a user, and the page can be automatically generated only by selecting the object to be processed, so that the page generation efficiency is improved.
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Fig. 1 is a flowchart of one embodiment of a page generating method provided in the embodiment of the present application, where the present application technical solution is described from the point of view of a processing end, and the method may include the following steps:
101: object description information of at least one object to be processed is obtained.
The object description information may be in a form of a picture and/or text, and is used for performing related introduction on the object to be processed, for example, when the object to be processed is a commodity, the object description information may include a commodity picture, a commodity name, a commodity price, a commodity place of origin, a commodity feature and the like described in a text form; in another example, when the object to be processed is a position, the object description information may include a position name, a position property, a position requirement, etc. described in text form; for another example, when the object to be processed is a coupon, the object description information may include a coupon condition described in text form, such as full 100-element minus 50-element.
The objects to be processed are all corresponding to object description information.
As an alternative, the acquiring the object description information of the at least one object to be processed may include:
and acquiring object description information of at least one object to be processed, which is input by a user.
I.e. the object description information of each object to be processed may be entered by the user.
As another alternative, the acquiring the object description information of the at least one object to be processed may include:
acquiring an object identifier of at least one object to be processed input by a user;
and respectively acquiring object description information of the at least one object to be processed from an object database based on the object identification of the at least one object to be processed.
In the case of opening up the object database, the user only needs to provide the object identifier of at least one object to be processed, and can acquire the object description information of the at least one object to be processed from the object database based on the at least one object identifier.
Wherein, obtaining the object identifier of the at least one object to be processed input by the user may include:
outputting prompt information of each of a plurality of objects corresponding to the user identification;
responding to the selection operation of the user on the plurality of prompt messages, and determining at least one selected object to be processed;
And obtaining the object identification of the at least one object to be processed.
102: and determining a layout mode of matching the at least one object to be processed.
Because of the page size limitation, the main content of all the objects to be processed may not be completely displayed in one page, and thus, the layout manner may include the number of pages and the number of object layouts in each page.
Of course, the object layout position in each page, etc. may also be included.
As an alternative, the determining the layout manner of the at least one object to be processed matching may include:
and determining a layout mode of matching of the at least one object to be processed based on the number of the objects of the at least one object to be processed.
The corresponding relation between the number of the objects and the layout mode can be preset, and the layout mode matched with the at least one object to be processed can be obtained by searching the corresponding relation.
In addition, the number of the objects may correspond to a plurality of layout modes, and one layout mode may be randomly selected as a layout mode for matching the at least one object to be processed.
The layout mode with the highest user usage rate can be selected from a plurality of layout modes corresponding to the number of the objects as the layout mode matched with the at least one object to be processed.
Of course, it is also possible to combine at least one object category or object type to which the object to be processed belongs, and find one layout corresponding to the object category or object type from a plurality of layout corresponding to the number of objects, as a layout matching the at least one object to be processed.
Of course, from a plurality of layout modes corresponding to the number of objects, the layout mode with the highest user usage rate may be used as the layout mode for matching the at least one object to be processed.
103: and constructing at least one page according to the layout mode, and generating page content of the at least one page based on the object description information of the at least one object to be processed so as to obtain a page file formed by the at least one page.
The page may be specifically an Html5 (HyperText Markup Language, 5 th edition of hypertext markup language, abbreviated as H5) page, where H5 page is an advanced web page technology, and may support multimedia playing on a mobile device, so that the generated page file may be played on the mobile device. In practical applications, the page file may also be referred to as an electronic poster.
In this embodiment, a layout manner may be automatically determined according to at least one object to be processed, at least one page may be constructed according to the layout manner, and page content of the at least one page is automatically generated based on object description information of the at least one object to be processed, so that a page file formed by the at least one page is obtained, no user is required to participate in editing, automatic generation of pages is realized, and page generation efficiency is improved.
Wherein the page content of the page is composed of the element content of at least one page element.
Wherein, the at least one page element may include at least one main body element, and further may include a background element, at least one control element, at least one decoration element, and the like, wherein the at least one decoration element may include a main body decoration element such as a main body frame, and a background decoration element such as a background patch and a background pattern, and the like.
As an alternative, the layout includes the number of pages and the number of objects to be processed for each page layout.
The constructing at least one page according to the layout manner may include:
constructing at least one page according to the page quantity;
The generating the page content in the at least one page based on the object description information of the at least one object to be processed to obtain the page file composed of the at least one page includes:
determining at least one layout object corresponding to the page from the at least one object to be processed according to the number of the objects to be processed of the page layout;
and generating page contents in the page aiming at the object description information of at least one layout object corresponding to the page.
Wherein the processing manner for each page in the at least one page is the same, so that the page content of the at least one page can be generated.
Wherein the at least one object to be processed may be determined based on user input. Thus, in some embodiments, the determining, according to the number of objects to be processed in the page layout, at least one layout object corresponding to the page from the at least one object to be processed may be:
and determining at least one layout object corresponding to each page from the at least one object to be processed according to the input sequence of the at least one object to be processed and the number of the objects to be processed of each page layout.
The main body elements in the page comprise main body picture elements and/or main body text elements, and the object description information can comprise picture information and text information.
Thus, the generating the page content in the page may include:
generating main picture contents respectively corresponding to at least one layout object corresponding to the page based on the image information of the layout object; and/or the number of the groups of groups,
generating main body text content corresponding to the layout object based on the text information of the layout object;
background content is determined that matches at least one subject picture content or at least one subject document content.
In addition, at least one control in the page, which is matched with at least one subject picture content or at least one subject document content, can be determined;
in addition, in the page, a picture decoration content for each subject picture content, a background decoration content for the background content, and the like may also be determined.
The background content may specifically refer to a background picture; the background content matching the at least one subject picture content or the at least one subject document content may be a background picture in which a background color is determined to match a subject color according to a subject color extracted from the at least one subject picture content. The background color of the background picture may refer to the color of the largest occupied area in the background picture.
Wherein, the collocation rules of different colors can be preset.
As another alternative, the determining the layout manner of the at least one object to be processed matching may include:
and determining a page template matched with the at least one object to be processed and a layout mode corresponding to the page template.
Because some page elements in the page can be unified, a page template can be preset, the page template can be used for making the occupied position and the occupied size of each page element in each page, and in addition, the content variable element and the content fixed element in each page element can be made, for example, the content variable element is used for a main body element, and the content fixed element is used for a control element, a background element, a decoration element and the like.
The page template can also preset a corresponding layout mode, so that the page template matched with at least one object to be processed is determined, and the layout mode corresponding to the page template can be determined.
Of course, the layout mode corresponding to the page template may be determined based on the number of objects of the at least one object to be processed. The layout manner includes the number of layouts and the number of layout objects per page.
Wherein, as an optional manner, the determining the page template matched with the at least one object to be processed and the layout manner corresponding to the page template may include:
according to the object category of the at least one object to be processed, using the page template with highest historical use frequency corresponding to the object category as the page template matched with the at least one object to be processed, and determining the layout mode corresponding to the page template.
In addition, the page templates may be categorized by usage scenario, etc., so in some embodiments, the method may further include:
acquiring a target use scene input by a user;
the determining the layout mode corresponding to the page template matched with the at least one object to be processed may include:
and selecting a page template with highest historical use frequency from page templates corresponding to the target use scenes as a page template matched with the at least one object to be processed, and determining a layout mode corresponding to the page template.
Of course, it is also possible to select, from the target usage scenario and the page templates corresponding to the object categories to which the at least one object to be processed belongs, the page template with the highest historical usage frequency as the page template matched with the at least one object to be processed, and determine the layout mode corresponding to the page template.
As another alternative, the determining the page template matched with the at least one object to be processed and the layout manner corresponding to the page template may include:
determining a page template matched with the at least one object to be processed by using a template classification model according to the object description information of the at least one object to be processed;
and determining a layout mode corresponding to the page template.
The template classification model can be obtained in advance according to object description information of at least one sample object and at least one page template corresponding to the at least one sample object.
The object description information of the at least one sample object and the at least one page template corresponding to the at least one sample object serve as a training sample for training a template classification model.
Alternatively, the at least one page template corresponding to the at least one sample object may be a predetermined one of the page templates that matches the at least one sample object to the highest degree.
In addition, the template classification model may be specifically obtained by training according to object description information of at least one sample object, a plurality of page templates corresponding to the at least one sample object, and matching degrees of the at least one sample object and the plurality of page templates.
Namely, object description information of at least one sample object, a plurality of sample page templates corresponding to the at least one sample object and matching degree of the at least one sample object with the plurality of page templates are used as a training sample for training a template classification model. Therefore, the page template with the highest matching degree with the at least one object to be processed can be determined through the template classification model.
The template classification model may be a current general classifier, such as a support vector machine, which is not specifically limited in the present application.
In some embodiments, said constructing at least one page according to said layout means comprises:
constructing at least one page corresponding to the page template according to the layout mode of the page template;
the generating the page content of the at least one page based on the object description information of the at least one object to be processed includes:
determining at least one layout object corresponding to the at least one page respectively from the at least one object to be processed according to the layout mode of the page template;
and determining the element content of each page element in the page based on the object description information of at least one layout object corresponding to the page.
In some embodiments, the determining the element content of each page element in the page based on the object description information of at least one layout object corresponding to the page includes:
determining content variable elements and content fixed elements in the page;
generating element content of a content variable element in the page based on object description information of at least one layout object corresponding to the page;
and determining the element content of the content fixed element in the page set by the page template.
The element content of the content variable element and the element content of the content fixed element of the page constitute the page content of the page, so that a page file constituted by the at least one page can be obtained.
Wherein the content variable element may include a body picture element and/or a body document element; the object description information may include picture information and text information;
thus, in some embodiments, the generating the element content of the content variable element in the page based on the object description information of the at least one layout object corresponding to the page may include:
generating main body picture contents corresponding to the at least one layout object based on the image information of the at least one layout object; and/or the number of the groups of groups,
Based on the text information of the at least one layout object, main body text contents corresponding to the at least one layout object are respectively generated.
Optionally, the generating the main body picture content corresponding to the at least one layout object based on the image information of the at least one layout object may include:
identifying target content in the picture information of the at least one layout object respectively;
and respectively cutting the picture information of the at least one layout object according to the size of the main picture element in the page corresponding to the at least one layout object, so as to obtain main picture content corresponding to the at least one layout object and comprising respective target content.
The target content may refer to a picture content that at least includes the layout object in the picture information. For example, when the layout object is a commodity, such as clothes, the picture information is usually an effect map of wearing clothes by a human body, and in order to better reflect the effect of the layout object, the target content including the face and the layout object can be identified based on the face recognition technology.
Alternatively, the main text content may be abstract content, key content, or the like in the extracted text information, or the main text content matched with the main text content is determined according to the meaning conveyed by the text information, specifically, for example, the main text content corresponding to different key words may be preset, and the corresponding main text content may be determined by identifying the key words in the text information.
After the element content of each page element in the page is determined, the style characteristics of the page element, such as shape, color, etc., can be adjusted.
Thus, in certain embodiments, the method may further comprise:
determining the page style of the page based on the object description information of at least one layout object corresponding to the page;
and adjusting the page according to the page style of the page. The element content of each page element in the page may be specifically adjusted.
Optionally, the page style may include at least one page element coloring scheme in the page; the at least one page element is a color-matchable element, which may include, for example, a background element, which may be color-remapped to a background color; the control element can be further included, and the color of the control can be rearranged; the color-changing agent also comprises a modifying element, and the color of the modifying element can be changed;
the determining the page style in the page based on the object description information of the at least one layout object corresponding to the page may include:
identifying a main color of at least one layout object based on picture information of the at least one layout object corresponding to the page;
Determining a background color based on the subject color;
and determining a coloring scheme corresponding to at least one page element in the page according to the coloring rule corresponding to the background color.
In some embodiments, the determining a background color based on the subject color comprises:
deriving according to at least one color matching rule to obtain a plurality of associated colors;
a background color is selected from the plurality of associated colors.
Of course, the subject color may also be used as the determined background color.
In addition, according to the main color, the background color can be obtained according to a color matching rule displayed in contrast with the main color.
Wherein the at least one color matching rule may include a monochromatic color matching rule, an adjacent color matching rule, a contrast color matching rule, a gradient color matching rule, a general color matching rule, and the like.
Based on each color matching rule, at least one associated color can be derived based on the subject color, thereby obtaining the plurality of associated colors, wherein the plurality of colors can include the subject color.
The single color matching rule refers to a rule of obtaining derived colors by adjusting brightness and saturation of a main color.
The adjacent color matching rule refers to a rule that derived colors are obtained at intervals of 30 degrees or five or six digits from the hue circle of the main color;
the contrast color matching rule refers to a rule of derived colors obtained between 120 degrees and 180 degrees apart from a 24-phase ring of a main color;
the gradient color matching rule refers to a rule of obtaining derivative colors by adjusting the hue of the main color;
the general color matching rules refer to black, white and gray.
Wherein, one associated color can be arbitrarily selected from the plurality of associated colors as a background color; of course, the multiple associated colors may be recommended to the user, and the associated color selected by the user may be used as the background color.
Because at least one page element exists in one page and can be subjected to color matching, and because the background color of the background element is the main color in the page and other page elements are foreground elements of the background element, the at least one page element at least comprises the background element, and the coloring rule also prescribes that the color matching color of the at least one page element is based on different background colors.
Therefore, according to the coloring rule corresponding to the background color, a coloring scheme corresponding to at least one page element in the page can be determined.
The coloring scheme comprises the color matching color of at least one page element, so that the display color of at least one page element in the page can be updated according to the coloring scheme.
Wherein, the coloring rule can be preset based on the readability of the element content of each page element.
For example, the at least one page element includes a background element, a control element, a patch element (a background decoration element), a fragment element (a background decoration element), a body document element, etc., and a coloring rule may be: if the background color is m, the color of the patch element is not changed if the patch element is white and m is not white, otherwise, the similar color a of m is used as the color of the patch element; the fragment element uses the similar color of m as the color of the fragment element; the main body text element is a color b which has strong readability with the color of the relative background and is used as the color of the main body text element; the control element uses the contrasting color c of m as the color of the control element.
Further, in some embodiments, the determining the page style of the page based on the object description information of the at least one layout object corresponding to the page includes:
determining the page style of the page by using a style classification model based on the object description information of at least one layout object corresponding to the page; the style classification model is obtained based on object description information of at least one sample object and at least one page style training corresponding to the at least one sample object.
Alternatively, the style classification model may be specifically obtained through training based on object description information of at least one sample, multiple page styles corresponding to the at least one sample object, and matching degrees of the at least one sample object and the multiple page styles.
Furthermore, the page style of a page may be more than one, and thus, in some embodiments, the method may further comprise:
determining at least one group of page styles matched with the at least one object to be processed based on the object description information of the at least one object to be processed; wherein each group of page styles comprises page styles corresponding to the at least one page respectively; the page style comprises style characteristics of element contents of each page element; the page styles of the pages in each group of page styles can be the same or different.
And respectively carrying out style adjustment on the at least one page in the page file according to the at least one group of page styles to obtain at least one target file.
That is, after the page file is subjected to style adjustment according to different page styles, at least one target file can be obtained.
In addition, the obtained at least one target file can be recommended to the user, and then selected by the user. Thus, in certain embodiments, the method may further comprise:
recommending the at least one target file to a user;
and generating sharing prompt information based on the network address of the target file selected by the user.
The sharing prompt information can be used for acquiring the network address from the sharing prompt information and opening the target file based on the network address.
The sharing prompt information may include an information carrier carrying the network address, such as a two-dimensional code, and the network address may be obtained by scanning the two-dimensional code by the client to identify the two-dimensional code, that is, the page file corresponding to the network address may be opened.
Wherein the at least one page may include a cover page and at least one content page; in some embodiments, the determining at least one set of page styles matching the at least one object to be processed based on the object description information of the at least one object to be processed may include:
determining a target object corresponding to a cover page in the at least one object to be processed;
determining at least one cover page style matched with the target object based on the object description information of the target object;
Determining a content page style matching each cover page style;
a set of page styles consisting of each cover page style and the content page styles matched with the cover page styles are obtained, and at least one set of page styles is obtained.
The style of the content page may be the same as the style of the closed page, or may be the style of the content page corresponding to different cover page styles in advance.
In one practical application, the page style may include a coloring scheme; the object description information comprises picture information;
the determining at least one cover page style matching the target object based on the object description information of the target object includes:
identifying a subject color of the target object based on the picture information of the target object;
determining a cover page background color based on the subject color of the target object;
and determining a coloring scheme aiming at least one page element in the cover page according to the coloring rule corresponding to the background color of the cover page.
The main color of the target object may refer to the color with the largest occupied area in the target object.
Wherein, based on the subject color of the target object, determining the cover page background color may be:
Deriving according to at least one color matching rule to obtain a plurality of associated colors;
selecting at least one color from the plurality of associated colors as a cover page background color;
of course, the main color of the target object may be regarded as the cover page background color.
Further, in some embodiments, the determining the content page style that matches each cover page style may include:
determining a content page background color matching each cover page background color;
and determining a coloring scheme corresponding to each visual element in the content page according to the coloring rule corresponding to the background color of each content page.
The corresponding explanation of the coloring rule and the color matching rule is already described above, and will not be repeated here.
Wherein, in order to improve the user experience, the page content of each page in the page file can be modified.
Thus, in certain embodiments, the method may further comprise:
displaying at least one page of the page file in a client;
receiving a modification request of a user for any page element in any page;
updating the element content of any page element according to the modification request to obtain an updated file of the page file;
And generating sharing prompt information based on the network address of the updated file.
Optionally, the sharing prompt information is further used for displaying at the client, so that the user can conveniently view the sharing prompt information.
The sharing prompt information may include an information carrier carrying the network address, such as a two-dimensional code, and the network address may be obtained by scanning the two-dimensional code by the client to identify, that is, a page file corresponding to the network address may be opened.
Furthermore, when at least one target file is obtained by a page style modification, in some embodiments, the method may further comprise:
displaying the cover pages of the at least one target file in the client;
determining a cover page of any target file selected by a user;
displaying at least one page of any one target file in the client;
receiving a modification confirmation request of a user for any page element in any page;
updating the element content of any page element according to the modification confirmation request to obtain an updated file of any target file;
and generating sharing prompt information based on the network address of the updated file.
The modification confirmation request may include modification content for any one of the page elements, so that the element content of any one of the page elements may be updated based on the modification content in particular.
Further, as yet another embodiment, a pagefile is typically made up of cover pages and at least one content page, and since the cover pages may represent the overall style of a pagefile, the cover pages may be first generated for confirmation by the user, after which the content pages are regenerated.
Thus, the page generation method as shown in fig. 2 may include the following steps:
201: object description information of at least one object to be processed is obtained.
202: and determining the layout mode of the at least one object to be processed.
The operations of steps 201 to 202 can be seen from steps 101 to 102 in the embodiment shown in fig. 1.
203: a target object of the at least one object to be processed is determined.
204: and determining at least one cover page style according to the object description information of the target object.
The page style may refer to a coloring scheme, among other things.
Accordingly, determining at least one cover page style that matches the target object based on the object description information of the target object may include:
identifying a subject color of the target object based on the picture information of the target object;
deriving a plurality of associated colors according to at least one color matching rule based on the main body color;
Selecting at least one color from the plurality of associated colors as a cover page background color;
and determining a coloring scheme corresponding to at least one page element in the cover page according to the coloring rule corresponding to each cover page background color.
205: constructing at least one cover page according to the at least one cover page style;
206: and generating page contents of the at least one cover page according to the object description information of the target object.
When the layout manner is determined by the page template of at least one object to be processed, step 206 may specifically determine a content variable element and a content fixed element in the cover page;
generating element content of a content variable element in the page based on the object description information of the target object;
and determining the element content of the content fixed element of the page set by the page template.
The generation manner of the page content of the cover page may refer to the generation manner of the page content of one page described above, which is not described herein.
207: the at least one cover page is recommended to the user.
The at least one cover page may be presented in the client.
208: determining a target cover page selected by a user from the at least one cover page.
209: and determining the style of the content page matched with the style of the cover page of the target cover page.
210: and constructing at least one content page according to the layout mode and the content page style.
211: and generating page contents of the at least one content page according to the object description information of the object to be processed corresponding to the at least one content page so as to obtain a page file formed by the at least one page.
Furthermore, the method may further comprise:
displaying at least one page of the page file in a client;
receiving a modification confirmation request of a user for any page element in any page;
updating the element content of any page element according to the modification confirmation request to obtain an updated file of the page file;
and generating sharing prompt information based on the network address of the updated file.
In addition, in some embodiments, the constructing at least one page according to the layout manner, and generating the page content of the at least one page based on the object description information of the at least one object to be processed may include:
Constructing at least one page according to the layout mode, and determining at least one layout object corresponding to the at least one page from the at least one object to be processed;
and generating page contents and page styles of the pages by utilizing a content classification model aiming at the object description information of at least one layout object corresponding to the pages so as to obtain a page file formed by at least one page.
The content classification model is obtained in advance according to object description information of at least one sample object and at least one sample page training corresponding to the at least one sample object.
Alternatively, the object description information of at least one sample object, at least one sample page corresponding to the at least one sample object, and the matching degree of the at least one sample object with the at least one sample page are taken as a training sample for training the content classification model.
The sample page can be obtained by manual editing based on object description information of at least one sample object, and comprises page content, page style and the like.
In addition, the embodiment of the application further provides a page generation method, and the embodiment describes the technical scheme of the application from the perspective of a client, and the method can comprise the following steps:
Responding to request operation of a user for at least one object to be processed, and generating a user request;
sending the user request to a processing end, so that the processing end obtains object description information of the at least one object to be processed, determines a layout mode of the at least one object to be processed, constructs at least one page according to the layout mode, and generates page content of the at least one page based on the object description information of the at least one object to be processed to obtain a page file formed by the at least one page;
and acquiring the page file provided by the processing end.
In some embodiments, after the user request is sent to the processing end in response to the request operation of the user for at least one object to be processed, the method may further include:
displaying at least one page in the page file;
responding to modification operation of any page element in any page, sending a modification confirmation request to a processing end, so that the processing end updates element content of any page element according to the modification confirmation request, obtains an updated file of the page file, and generates sharing prompt information based on a network address of the updated file;
Receiving the sharing prompt information sent by the processing end;
and displaying the sharing prompt information.
In some embodiments, the processing end is further configured to determine at least one group of page styles matched with the at least one object to be processed based on the object description information of the at least one object to be processed, and perform style adjustment on pages in the page file according to the at least one group of page styles, so as to obtain at least one target file;
the method may further comprise:
displaying the respective cover pages of the at least one target file;
responding to the selected operation of the cover page of any target file, and requesting to acquire at least one page of any target file from a processing end;
displaying at least one page of any one target file;
responding to modification operation of any page element in any page, sending a modification confirmation request to a processing end, enabling the processing end to update element content of any page element according to the modification confirmation request so as to obtain an updated file of any target file, and generating sharing prompt information based on a network address of the updated file;
Receiving the sharing prompt information sent by the processing end;
and displaying the sharing prompt information.
In some embodiments, the processing end is specifically configured to determine a target object in the at least one object to be processed, determine at least one cover page style according to object description information of the target object, construct at least one cover page according to the at least one cover page style, and generate page content of the at least one cover page according to the object description information of the target object;
the method may further comprise:
displaying the at least one cover page;
and sending a selected target cover page to a processing end in response to the selected operation of the at least one cover page, so that the processing section determines a content page style matched with the cover page style of the target cover page, constructs at least one content page according to the layout mode and the content page style, and generates page contents of the content page according to object description information of an object to be processed corresponding to the content page.
In some embodiments, the generating the user request in response to the user request operation for the at least one object to be processed may include:
Generating a user request comprising an object identification of at least one object to be processed in response to an object identification of the at least one object to be processed input by a user; the object identification of the at least one object to be processed is used for the processing end to respectively acquire object description information of the at least one object to be processed from an object database based on the object identification of the at least one object to be processed.
In an actual application, the technical scheme of the embodiment of the application can be applied to a scene of commodity propaganda of a shop in an electronic commerce environment, and the object to be processed can refer to commodities provided by the shop, and can also comprise coupons provided by the shop and the like. For the commodity, the object description information may describe the commodity name, the commodity title, the commodity price, the store related information (related introduction information such as the business brand, the sales promotion, the business style, etc.), the commodity category, the commodity picture, etc. in the form of a picture or text.
For coupons, the object description information may be a coupon rule or the like described in text form.
Wherein the object description information may be entered by a user or retrieved from a database based on an object identification provided by the user.
In order to guide the user to make a page, the server may display object selection prompt information of different object types in the client, as shown in fig. 3a, in a partial interface display schematic diagram of a display interface of the client, commodity and coupon respectively correspond to commodity selection prompt information 301 and coupon selection prompt information 302, which are respectively used for prompting the user to perform commodity selection and coupon selection;
for the user operation of selecting prompt information for any object, the server may output at least one object prompt information corresponding to the object class in the client according to the object class corresponding to any object selection prompt information, as shown in fig. 3b, for the user operation of selecting prompt information for goods, at least one goods prompt information 303 may be displayed in the client, where, based on the user identification, a store identification corresponding to the user identification may be determined, based on the store identification, all goods corresponding to the store identification may be determined, and further, the goods prompt information of all goods may be output in the client, so that the user may select goods to be promoted from.
The user may operate (e.g., click on) the at least one merchandise alert, and the server may determine the selected merchandise, and in addition, for the user operation of the coupon selection alert, the at least one coupon alert may be output, so that the user operates the at least one coupon alert, and the selected coupon may be determined.
The selected commodity and the selected coupon are used as at least one object to be processed, the server side can acquire the object description information of the at least one object to be processed according to the object identification of the at least one object to be processed, and then the server side can automatically generate a page file formed by at least one page by combining the layout mode corresponding to the at least one object to be processed and the object description information.
Because the style characteristics such as the color or the shape of the page elements can be changed, the server side can also perform style characteristics on the page elements in the page file based on at least one group of page styles, thereby obtaining at least one target file corresponding to at least one group of page styles.
Because the cover pages in the target file can represent the overall style of the target file, the server can display the respective cover pages of the at least one target file in the client for the user to browse, search and select. Of course, it is also possible to first determine the target object of the at least one object to be processed, i.e. the target commodity located on the cover. Determining at least one cover page style according to the object description information of the target object, such as determining at least one coloring scheme according to the main color of the target object; according to the style of the at least one cover page, the at least one cover page can be constructed, page content of the at least one cover page is generated according to the object description information of the target object, for example, commodity pictures of target commodities are cut to obtain main picture content, main text content is extracted from text information describing relevant characteristics of the target commodities, and therefore the at least one cover page can be recommended to a user firstly, so that the user can conveniently screen out the target cover page from the main text content, and then the rest content pages can be continuously manufactured.
At least one cover page 304 as shown in FIG. 3c (only a portion of the cover pages are shown in the display interface due to screen size limitations, other cover pages can be viewed by flipping pages)
The user may select any one of the cover pages in combination with his or her aesthetic needs.
In addition, to improve the user experience, the user may also adjust the page element of any target file selected by the user, so the service end may display at least one page of any target file in the client based on any target file selected by the user, as shown in fig. 3d, and display at least one page 305 of any target file in the client (due to the limitation of the screen size, all pages may be viewed by page turning, and the cover page is shown in fig. 3 d).
The user may directly manipulate the page elements in the at least one page for modification.
Of course, as shown in fig. 3d, the server may also output modification prompt 306 for the page. The modification prompt information can be specific to the main body text element, so that a modification input box specific to the main body text element can be output, a user can conveniently modify the text in the modification input box, and the modification prompt information of a background element or other page elements can be included.
After the user modification is completed, a confirmation button or the like may be operated to trigger a modification confirmation request, where the modification confirmation request may include modification contents for any one of the page elements, so that the server side may update the element contents of any one of the page elements based on the modification confirmation request to obtain an updated file of any one of the target files; and then based on the network address of the updated file, the sharing prompt information can be generated, and the sharing prompt information is displayed in the client.
As shown in fig. 3e, the sharing prompt information may include an information carrier carrying the network address, such as the two-dimensional code 307, and may also include a browse control 308 to process at least one page of the updated file, and of course, may also include other information, such as a network address link, a re-edit button, etc., which are the same as in the prior art, and will not be described herein.
Fig. 4 is a flowchart of another embodiment of a page generating method according to an embodiment of the present application, where the method may include the following steps:
401: object description information of at least one object to be processed is obtained.
The operation of step 401 may refer to the operation of step 101 in the embodiment shown in fig. 1, which is not described herein.
402: and generating a page file matched with the at least one object to be processed by using a page classification model based on the object description information of the at least one object to be processed.
Wherein the page classification model is obtained based on at least one sample file training generated using object description information based on at least one sample object.
In the embodiment, the page classification model obtained by pre-training is utilized, and the page file matched with at least one object to be processed can be automatically generated based on the object description information of the at least one object to be processed, so that the automatic generation of the page is realized, the user does not need to participate in editing, the automatic generation of the page is realized, and the page generation efficiency is improved.
Alternatively, the object description information of at least one sample object and at least one sample file corresponding to the at least one sample object may be used as a training sample to train the page classification model.
Wherein only one sample file with the highest matching degree of at least one sample object can be involved in training.
Furthermore, as a further alternative, the page classification model is specifically trained to be obtained as follows:
Acquiring object description information of at least one sample object;
acquiring a plurality of sample files corresponding to the at least one sample object;
determining the degree of matching of the plurality of sample files with the at least one sample object, respectively;
and taking the object description information of the at least one sample object, the plurality of sample files and the matching degree of the plurality of sample files and the at least one sample object as a training sample, and training a page classification model.
The plurality of sample files of the at least one sample object can be obtained by manual editing, for example, a plurality of page templates are selected based on the object description information of the at least one sample object, and the plurality of sample files are obtained by editing the plurality of page templates.
Wherein the degree of matching of the plurality of sample files with the at least one sample object, respectively, may be obtained by artificial scoring, etc.
Furthermore, in certain embodiments, the method may further comprise:
displaying at least one page of the page file in a client;
receiving a modification confirmation request of a user for any page element in any page;
updating the element content of any page element according to the modification confirmation request to obtain an updated file of the page file;
And generating sharing prompt information based on the network address of the updated file.
In addition, as another embodiment, the embodiment of the present application further provides a page generating method, where the embodiment describes a technical solution of the present application from a client side perspective, and the method may include the following steps:
responding to request operation of a user for at least one object to be processed, and generating a user request;
sending the user request to a processing end, so that the processing end obtains object description information of the at least one object to be processed, and generating a page file matched with the at least one object to be processed by using a page classification model; the page classification model is obtained based on object description information of at least one sample object and at least one sample file training corresponding to the at least one sample object;
and acquiring the page file provided by the processing end.
In some embodiments, after the user request is sent to the processing end in response to the request operation of the user for at least one object to be processed, the method may further include:
displaying at least one page in the page file;
responding to modification operation of any page element in any page, sending a modification confirmation request to a processing end, so that the processing end updates element content of any page element according to the modification confirmation request, obtains an updated file of the page file, and generates sharing prompt information based on a network address of the updated file;
Receiving the sharing prompt information sent by the processing end;
and displaying the sharing prompt information.
In some embodiments, the generating the user request in response to the user request operation for the at least one object to be processed may further include:
generating a user request comprising an object identification of at least one object to be processed in response to an object identification of the at least one object to be processed input by a user; the object identification of the at least one object to be processed is used for the processing end to respectively acquire object description information of the at least one object to be processed from an object database.
In addition, as yet another embodiment, as shown in fig. 5, the present application further provides a page generating method, and this embodiment describes a technical solution of the present application from a processing end perspective, where the method may include the following steps:
501: at least one picture to be processed is obtained.
One of the pictures to be processed may correspond to one of the objects to be processed.
The at least one picture to be processed may be input by a user, or may be obtained from a picture database based on an object identifier of at least one object to be processed input by the user.
502: and determining the layout mode of the at least one picture to be processed.
503: and constructing at least one page according to the layout mode, and generating page content of the at least one page based on the at least one picture to be processed so as to obtain a page file formed by the at least one page.
In the embodiment, the user can automatically generate the page file only by providing the picture to be processed without editing and adjusting, so that the page generation efficiency is improved.
In some embodiments, the determining the layout manner of the at least one picture to be processed includes:
and determining the page template matched with the at least one picture to be processed and the layout mode corresponding to the page template.
In some embodiments, the constructing at least one page according to the layout manner, and generating, based on the at least one picture to be processed, page contents of the at least one page to obtain a page file composed of the at least one page includes:
constructing at least one page corresponding to the page template according to the layout mode of the page template;
determining at least one layout picture corresponding to the at least one page respectively from the at least one picture to be processed according to the layout mode of the page template;
And determining the element content of each page element in the page based on at least one layout picture corresponding to the page.
In some embodiments, the determining, based on at least one layout picture corresponding to the page, element content of each page element in the page includes:
determining content variable elements and content fixed elements in the page;
generating element content of a content variable element in the page based on at least one layout picture corresponding to the page;
and determining the element content of the content fixed element in the page set by the page template.
In some embodiments, the content variable element comprises a body picture element;
the generating the element content of the content variable element in the page based on the at least one layout picture corresponding to the page comprises:
respectively identifying target content in at least one layout picture corresponding to the page;
and cutting the picture information of the at least one layout object according to the sizes of the main picture elements corresponding to the at least one layout picture respectively to obtain main picture contents corresponding to the at least one layout picture and comprising respective target contents.
In certain embodiments, the method may further comprise:
determining the page style of the page based on the object description information of at least one layout object corresponding to the page;
and adjusting the page according to the page style of the page.
In some embodiments, the determining the page style of the page based on the object description information of the at least one layout object corresponding to the page may further include:
identifying a main body color in at least one layout picture based on the at least one layout picture corresponding to the page;
determining a background color based on the subject color;
and determining a coloring scheme corresponding to at least one page element in the page according to the coloring rule corresponding to the background color.
In some embodiments, the method may further comprise:
determining at least one set of page styles matching the at least one picture to be processed based on the at least one picture to be processed; wherein each set of page styles includes page styles corresponding to the at least one page;
and respectively carrying out style adjustment on the at least one page in the page file according to the at least one group of page styles to obtain at least one target file.
Furthermore, the method may further comprise:
recommending the at least one target file to a user;
and generating sharing prompt information based on the network address of any target file selected by the user.
In some embodiments, the method may further comprise:
displaying the cover pages of the at least one target file in the client;
determining a cover page of any target file selected by a user;
displaying at least one page of any one target file in the client;
receiving a modification confirmation request of a user for any page element in any page;
updating the element content of any page element according to the modification confirmation request to obtain an updated file of any target file;
and generating sharing prompt information based on the network address of the updated file.
In some embodiments, the at least one page includes a cover page and at least one content page;
the determining, based on the at least one picture to be processed, at least one set of page styles matching the at least one picture to be processed may further include:
determining a target picture corresponding to a cover page in the at least one picture to be processed;
Determining at least one cover page style matched with the target picture based on the target picture;
determining a content page style matching each cover page style;
a set of page styles consisting of each cover page style and the content page styles matched with the cover page styles are obtained, and at least one set of page styles is obtained.
In some embodiments, the page style includes a coloring scheme;
the determining, based on the target picture, at least one cover page style that matches the target picture may further include:
identifying a subject color of the target picture;
deriving to obtain a plurality of associated colors according to at least one color matching rule based on the main body color of the target picture;
selecting at least one color from the plurality of associated colors as a cover page background color;
and determining a coloring scheme corresponding to at least one page element in the cover page according to the coloring rule corresponding to each cover page background color.
It should be noted that, in the embodiment shown in fig. 5, the same or similar steps as those in the above embodiments may be specifically referred to the above embodiments, and the detailed description will not be repeated here.
In addition, as yet another embodiment, the present application further provides a page generating method, where the embodiment describes from the client side, and the method may include:
responding to the request operation of a user for at least one to-be-processed graph, and generating a user request;
sending the user request to a processing end, so that the processing end obtains at least one picture to be processed, determines the layout mode of the at least one picture to be processed, constructs at least one page according to the layout mode, and generates page content of the at least one page based on the at least one picture to be processed to obtain a page file formed by the at least one page;
and acquiring the page file provided by the processing end.
In some embodiments, the method may further comprise:
displaying at least one page in the page file;
responding to modification operation of any page element in any page, sending a modification confirmation request to a processing end, so that the processing end updates element content of any page element according to the modification confirmation request, obtains an updated file of the page file, and generates sharing prompt information based on a network address of the updated file;
Receiving the sharing prompt information sent by the processing end;
and displaying the sharing prompt information.
In some embodiments, the processing end is further configured to determine at least one group of page styles matched with the at least one picture to be processed based on the at least one picture to be processed, and perform style adjustment on the at least one page in the page file according to the at least one group of page styles, so as to obtain at least one target file;
the method further comprises the steps of:
displaying the respective cover pages of the at least one target file;
responding to the selected operation of the cover page of any target file, and requesting to acquire at least one page of any target file from a processing end;
displaying at least one page of any one target file;
responding to modification operation of any page element in any page, sending a modification confirmation request to a processing end, enabling the processing end to update element content of any page element according to the modification confirmation request so as to obtain an updated file of any target file, and generating sharing prompt information based on a network address of the updated file;
Receiving the sharing prompt information sent by the processing end;
and displaying the sharing prompt information.
In some embodiments, the processing end is specifically configured to determine a target picture in the at least one picture to be processed, determine at least one cover page style according to the target picture, construct at least one cover page according to the at least one cover page style, and generate page content of the at least one cover page according to the target picture;
the method further comprises the steps of:
displaying the at least one cover page;
and sending a selected target cover page to a processing end in response to the selected operation of the at least one cover page, so that the processing section determines a content page style matched with the cover page style of the target cover page, constructs at least one content page according to the layout mode and the content page style, and generates page contents of the content page according to object description information of an object to be processed corresponding to the content page.
Fig. 6 is a schematic structural diagram of an embodiment of a page generating apparatus provided in an embodiment of the present application, where the apparatus may include:
An information obtaining module 601, configured to obtain object description information of at least one object to be processed;
a first layout determining module 602, configured to determine a layout manner of the at least one object to be processed;
the first content generating module 603 is configured to construct at least one page according to the layout manner, and generate page content of the at least one page based on the object description information of the at least one object to be processed, so as to obtain a page file composed of the at least one page.
In some embodiments, the layout determining module may be specifically configured to determine a page template matched with the at least one object to be processed and a layout manner corresponding to the page template.
In some embodiments, the content generation module is specifically configured to:
constructing at least one page corresponding to the page template according to the layout mode of the page template;
determining at least one layout object corresponding to the at least one page respectively from the at least one object to be processed based on the layout mode of the page template;
and determining the element content of each page element in the page based on the object description information of at least one layout object corresponding to the page.
In some embodiments, the content generating module determines, based on the object description information of at least one layout object corresponding to the page, element content of each page element in the page, and may specifically determine a content variable element and a content fixed element in the page; generating element content of a content variable element in the page based on object description information of at least one layout object corresponding to the page; and determining the element content of the content fixed element in the page set by the page template.
In some embodiments, the content variable element includes a body picture element and/or a body document element; the object description information comprises picture information and text information;
the content generating module generates element content of a content variable element in the page based on object description information of at least one layout object corresponding to the page, and the element content may be specifically used for respectively generating main body picture content corresponding to the at least one layout object based on image information of the at least one layout object; and/or the number of the groups of groups,
based on the text information of the at least one layout object, main body text contents corresponding to the at least one layout object are respectively generated.
In some embodiments, the apparatus may further comprise:
the first style determining module is used for determining the page style of the page based on the object description information of at least one layout object corresponding to the page; and adjusting the page according to the page style of the page.
In some embodiments, the page style includes a coloring scheme;
the first style determining module determines, based on object description information of at least one layout object corresponding to the page, that a page style in the page may specifically be based on picture information of at least one layout object corresponding to the page, and identifies a main color of the at least one layout object; determining a background color based on the subject color; and determining a coloring scheme corresponding to at least one page element in the page according to the coloring rule corresponding to the background color.
Optionally, the first style determining module determines, based on the subject color, a background color, specifically, derives a plurality of associated colors according to at least one color matching rule based on the subject color; selecting from the plurality of associated colors.
In some embodiments, the first style determining module is specifically configured to determine, based on object description information of at least one layout object corresponding to the page, a page style of the page using a style classification model; the style classification model is obtained based on object description information of at least one sample object and page style training corresponding to the at least one sample object.
In some embodiments, the content generating module generates the subject picture content corresponding to the at least one layout object based on the image information of the at least one layout object, respectively, may specifically identify the target content in the picture information of the at least one layout object, respectively; and respectively cutting the picture information of the at least one layout object according to the size of the main body element in the page corresponding to the at least one layout object, and obtaining main body picture contents comprising respective target contents corresponding to the at least one layout object.
In some embodiments, the apparatus may further comprise:
a second style determining module, configured to determine at least one set of page styles matched with the at least one object to be processed based on object description information of the at least one object to be processed; wherein each set of page styles includes page styles corresponding to the at least one page; and respectively carrying out style adjustment on the at least one page in the page file according to the at least one group of page styles to obtain at least one target file.
In some embodiments, the at least one page includes a cover page and at least one content page;
The second style determining module determines at least one group of page styles matched with the at least one object to be processed based on the object description information of the at least one object to be processed, and may specifically determine a target object of a corresponding cover page in the at least one object to be processed; determining at least one cover page style matched with the target object based on the object description information of the target object; determining a content page style matching each cover page style; a set of page styles consisting of each cover page style and the content page styles matched with the cover page styles are obtained, and at least one set of page styles is obtained.
In some embodiments, the page style includes a coloring scheme; the object description information comprises picture information;
the second style determining module determines, based on the object description information of the target object, at least one cover page style that matches the target object, where the determining may specifically be:
identifying a subject color of the target object based on the picture information of the target object;
deriving a plurality of associated colors according to at least one color matching rule based on the main body color;
Selecting at least one color from the plurality of associated colors as a cover page background color;
and determining a coloring scheme corresponding to at least one page element in the cover page according to the coloring rule corresponding to the background color of the cover page.
In some embodiments, the second style determination module determining the content page style that matches each cover page style may specifically determine a content page background color that matches each cover page background color; and determining a coloring scheme for at least one page element in each content page according to the coloring rule corresponding to the background color of each content page.
In some embodiments, the layout determining module is specifically configured to determine, based on the number of objects of the at least one object to be processed, a layout manner in which the at least one object to be processed matches; the layout mode comprises the number of pages and the number of objects to be processed of each page layout.
In some embodiments, the content determining module is specifically configured to construct at least one page according to the number of pages;
determining at least one layout object corresponding to the page from the at least one object to be processed according to the number of the objects to be processed of the page layout;
And generating page contents of the page aiming at the object description information of at least one layout object corresponding to the page.
In some embodiments, the information determining module is specifically configured to obtain object description information of at least one object to be processed input by a user.
In some embodiments, the information determining module is specifically configured to obtain an object identifier of at least one object to be processed input by a user; and respectively acquiring object description information of the at least one object to be processed from an object database based on the object identification of the at least one object to be processed.
In some embodiments, the layout determining module is specifically configured to use, according to an object category to which the at least one object to be processed belongs, a page template with a highest historical usage frequency corresponding to the object category as a page template matched with the at least one object to be processed, and determine a layout manner corresponding to the page template.
In some embodiments, the layout determining module is specifically configured to determine, based on object description information of the at least one object to be processed, a page template that is matched with the at least one object to be processed by using a template classification model; determining a layout mode corresponding to the page template; the template classification model is obtained in advance according to object description information of at least one sample object and page template training corresponding to the at least one sample object.
In some embodiments, the apparatus may further comprise:
the first output module is used for displaying at least one page of the page file in the client;
the first request module is used for receiving a modification confirmation request of a user for any page element in any page;
the first updating module is used for updating the element content of any page element according to the modification confirmation request to obtain an updated file of the page file;
and the first sharing module is used for generating sharing prompt information based on the network address of the updated file.
In some embodiments, the apparatus may further comprise:
a recommending module, configured to recommend the at least one target file to a user;
and the second sharing module is used for generating sharing prompt information based on the network address of any target file selected by the user.
In some embodiments, the apparatus may further comprise:
the second display module is used for displaying the cover pages of the at least one target file in the client;
the cover determining module is used for determining the cover page of any target file selected by the user;
the third display module is used for displaying at least one page of any one target file in the client;
The second request module is used for receiving a modification confirmation request of a user for any page element in any page;
the second updating module is used for updating the element content of any page element according to the modification confirmation request so as to obtain an updated file of any target file;
and the third sharing module is used for generating sharing prompt information based on the network address of the updated file.
In some embodiments, the content determination module may be specifically configured to:
determining a target object in the at least one object to be processed;
determining at least one cover page style according to the object description information of the target object;
constructing at least one cover page according to the at least one cover page style;
generating page contents of the at least one cover page according to the object description information of the target object;
recommending the at least one cover page to a user;
determining a target cover page selected by a user from the at least one cover page;
determining a content page style matched with a cover page style of the target cover page;
constructing at least one content page according to the layout mode and the content page style;
And generating page contents of the at least one content page according to the object description information of the object to be processed corresponding to the at least one content page respectively.
In some embodiments, the content generating module may be specifically configured to construct at least one page according to the layout manner, and determine at least one layout object corresponding to the at least one page from the at least one object to be processed, where the at least one layout object corresponds to the at least one page; and generating page contents and page styles of at least one page by using a page classification model aiming at object description information of at least one layout object corresponding to the at least one page so as to obtain a page file formed by the at least one page.
The page generating apparatus shown in fig. 6 may perform the page generating method described in the embodiment shown in fig. 1, and its implementation principle and technical effects are not repeated. The specific manner in which the respective modules and units of the page generating apparatus in the above embodiments perform operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
In one possible design, the page generating apparatus of the embodiment shown in fig. 6 may be implemented as a processing device, as shown in fig. 7, including a processing component 701 and a storage component 702;
The storage component 702 stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component 701;
the processing component 701 is configured to:
acquiring object description information of at least one object to be processed;
determining a layout mode of the at least one object to be processed;
and constructing at least one page according to the layout mode, and generating page content of the at least one page based on the object description information of the at least one object to be processed so as to obtain a page file formed by the at least one page.
Wherein the processing component 701 may include one or more processors to execute computer instructions to perform all or part of the steps in the methods described above. Of course, the processing component may also be implemented as one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic elements for executing the methods described above.
The storage component 702 is configured to store various types of data to support operations in the processing device. The memory component may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
Of course, the processing device may necessarily also include other components, such as input/output interfaces, communication components, and the like. The input/output interface provides an interface between the processing component and a peripheral interface module, which may be an output device, an input device, etc. The communication component is configured to facilitate wired or wireless communication between the processing device and other devices, and the like.
The embodiment of the application further provides a computer readable storage medium, and a computer program is stored, and when the computer program is executed by a computer, the page generating method of the embodiment shown in fig. 1 can be realized.
As still another embodiment, an embodiment of the present application further provides a page generating apparatus, including:
the first request generation module is used for responding to the request operation of a user for at least one object to be processed and generating a user request;
the first request sending module is used for sending the user request to the processing end so that the processing end can acquire the object description information of the at least one object to be processed, determine the layout mode of the at least one object to be processed, construct at least one page according to the layout mode, and generate the page content of the at least one page based on the object description information of the at least one object to be processed so as to acquire a page file formed by the at least one page;
And the first file receiving module is used for acquiring the page file provided by the processing end.
Furthermore, in certain embodiments, the apparatus may further comprise:
the first display module is used for displaying at least one page in the page file; responding to modification operation of any page element in any page, sending a modification confirmation request to a processing end, so that the processing end updates element content of any page element according to the modification confirmation request, obtains an updated file of the page file, and generates sharing prompt information based on a network address of the updated file; receiving the sharing prompt information sent by the processing end; and displaying the sharing prompt information.
In some embodiments, the processing end is further configured to determine at least one group of page styles matched with the at least one object to be processed based on the object description information of the at least one object to be processed, and perform style adjustment on the at least one page in the page file according to the at least one group of page styles, so as to obtain at least one target file;
the apparatus may further include:
the second display module is used for displaying the respective cover pages of the at least one target file;
Responding to the selected operation of the cover page of any target file, and requesting to acquire at least one page of any target file from a processing end;
displaying at least one page of any one target file;
responding to modification operation of any page element in any page, sending a modification confirmation request to a processing end, enabling the processing end to update element content of any page element according to the modification confirmation request so as to obtain an updated file of any target file, and generating sharing prompt information based on a network address of the updated file;
receiving the sharing prompt information sent by the processing end;
and displaying the sharing prompt information.
In some embodiments, the processing end is specifically configured to determine a target object in the at least one object to be processed, determine at least one cover page style according to object description information of the target object, construct at least one cover page according to the at least one cover page style, and generate page content of the at least one cover page according to the object description information of the target object;
The apparatus may further include:
the third display module is used for displaying the at least one cover page;
and sending a selected target cover page to a processing end in response to the selected operation of the at least one cover page, so that the processing section determines a content page style matched with the cover page style of the target cover page, constructs at least one content page according to the layout mode and the content page style, and generates page contents of the content page according to object description information of an object to be processed corresponding to the content page.
In some embodiments, the first request sending module is specifically configured to generate, in response to an object identifier of at least one object to be processed input by a user, a user request including the object identifier of the at least one object to be processed; the object identification of the at least one object to be processed is used for the processing end to respectively acquire object description information of the at least one object to be processed from an object database.
In addition, the page generating apparatus may be implemented as a terminal, which may include a processing component and a storage component, in one possible design;
The storage component stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component;
the processing assembly is configured to:
responding to request operation of a user for at least one object to be processed, and generating a user request;
sending the user request to a processing end, so that the processing end obtains object description information of the at least one object to be processed, determines a layout mode of the at least one object to be processed, constructs at least one page according to the layout mode, and generates page content of the at least one page based on the object description information of the at least one object to be processed to obtain a page file formed by the at least one page;
and acquiring the page file provided by the processing end.
In addition, the terminal may necessarily include other components such as a display component, an input/output interface, a communication component, and the like. The display component is used for displaying corresponding information; the input/output interface provides an interface between the processing component and a peripheral interface module, which may be an output device, an input device, etc. The communication component is configured to facilitate wired or wireless communication between the terminal and other devices, and the like.
Fig. 8 is a schematic structural diagram of another embodiment of a page generating apparatus provided in an embodiment of the present application, where the apparatus may include:
a picture obtaining module 801 for obtaining at least one picture to be processed
A second layout determining module 802, configured to determine a layout manner of the at least one picture to be processed;
and the second content generating module 803 is configured to construct at least one page according to the layout manner, and generate page content of the at least one page based on the at least one picture to be processed, so as to obtain a page file formed by the at least one page.
In some embodiments, the second layout determining module may be specifically configured to determine a page template that matches the at least one to-be-processed picture and a layout manner corresponding to the page template.
In some embodiments, the second content generating module is specifically configured to construct at least one page corresponding to the page template according to a layout manner of the page template; determining at least one layout picture corresponding to the at least one page respectively from the at least one picture to be processed according to the layout mode of the page template; and determining the element content of each page element in the page based on at least one layout picture corresponding to the page.
In some embodiments, the second content generating module determines, based on at least one layout picture corresponding to the page, that element content of each page element in the page may be specifically used to determine a content variable element and a content fixed element in the page; generating element content of a content variable element in the page based on at least one layout picture corresponding to the page; and determining the element content of the content fixed element in the page set by the page template.
In some embodiments, the content variable element comprises a body picture element; the second content generation module generates element content of a content variable element in the page based on at least one layout picture corresponding to the page, wherein the element content can be specifically used for respectively identifying target content in at least one layout picture corresponding to the page; and cutting the picture information of the at least one layout object according to the sizes of the main picture elements corresponding to the at least one layout picture respectively to obtain main picture contents corresponding to the at least one layout picture and comprising respective target contents.
In some embodiments, the apparatus may further comprise:
A third style determining module, configured to determine a page style of the page based on object description information of at least one layout object corresponding to the page; and adjusting the page according to the page style of the page.
In some embodiments, the third style determining module determines, based on object description information of at least one layout object corresponding to a page, a page style of the page, specifically, based on at least one layout picture corresponding to the page, and identifies a subject color in the at least one layout picture; determining a background color based on the subject color; and determining a coloring scheme corresponding to at least one page element in the page according to the coloring rule corresponding to the background color.
In some embodiments, the apparatus may further comprise:
a fourth style determination module, configured to determine, based on the at least one to-be-processed picture, at least one set of page styles that match the at least one to-be-processed picture; wherein each group of page styles comprises page styles corresponding to the at least one page respectively; and respectively carrying out style adjustment on the at least one page in the page file according to the at least one group of page styles to obtain at least one target file.
In some embodiments, the at least one page includes a cover page and at least one content page;
the fourth style determination module determining, based on the at least one picture to be processed, at least one set of page styles matching the at least one picture to be processed includes:
determining a target picture corresponding to a cover page in the at least one picture to be processed;
determining at least one cover page style matched with the target picture based on the target picture;
determining a content page style matching each cover page style;
a set of page styles consisting of each cover page style and the content page styles matched with the cover page styles are obtained, and at least one set of page styles is obtained.
In some embodiments, the page style includes a coloring scheme;
the fourth style determination module determining, based on the target picture, at least one cover page style that matches the target picture includes:
identifying a subject color of the target picture;
deriving to obtain a plurality of associated colors according to at least one color matching rule based on the main body color of the target picture;
selecting at least one color from the plurality of associated colors as a cover page background color;
And determining a coloring scheme corresponding to at least one page element in the cover page according to the coloring rule corresponding to each cover page background color.
The page generating apparatus shown in fig. 8 may perform the page generating method described in the embodiment shown in fig. 5, and its implementation principle and technical effects are not repeated. The specific manner in which the respective modules and units of the page generating apparatus in the above embodiments perform operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
In one possible design, the page generating apparatus of the embodiment shown in fig. 8 may be implemented as a processing device, as shown in fig. 9, including a processing component 901 and a storage component 902;
the storage component 902 stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component 901;
the processing component 901 is configured to:
acquiring at least one picture to be processed
Determining a layout mode of the at least one picture to be processed;
and constructing at least one page according to the layout mode, and generating page content of the at least one page based on the at least one picture to be processed so as to obtain a page file formed by the at least one page.
Wherein the processing component 901 may include one or more processors to execute computer instructions to perform all or part of the steps in the methods described above. Of course, the processing component may also be implemented as one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic elements for executing the methods described above.
The storage component 902 is configured to store various types of data to support operations in the processing device. The memory component may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
Of course, the processing device may necessarily also include other components, such as input/output interfaces, communication components, and the like. The input/output interface provides an interface between the processing component and a peripheral interface module, which may be an output device, an input device, etc. The communication component is configured to facilitate wired or wireless communication between the processing device and other devices, and the like.
The embodiment of the application further provides a computer readable storage medium, and a computer program is stored, and when the computer program is executed by a computer, the page generating method of the embodiment shown in fig. 5 can be realized.
As still another embodiment, an embodiment of the present application further provides a page generating apparatus, including:
the second request generation module is used for responding to the request operation of a user for at least one object to be processed and generating a user request;
the second request sending module is used for sending the user request to the processing end so that the processing end can acquire the object description information of the at least one object to be processed and generate a page file matched with the at least one object to be processed by using a page classification model; the page classification model is obtained based on object description information of at least one sample object and at least one sample file training corresponding to the at least one sample object;
and the second file receiving module is used for acquiring the page file provided by the server.
In addition, the page generating apparatus may be implemented as a terminal, which may include a processing component and a storage component, in one possible design;
The storage component stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component;
the processing assembly is configured to:
responding to request operation of a user for at least one object to be processed, and generating a user request;
sending the user request to a processing end, so that the processing end obtains object description information of the at least one object to be processed, and generating a page file matched with the at least one object to be processed by using a page classification model; the page classification model is obtained based on object description information of at least one sample object and at least one sample file training corresponding to the at least one sample object;
and acquiring the page file provided by the processing end.
In addition, the terminal may necessarily include other components such as a display component, an input/output interface, a communication component, and the like. The display component is used for displaying corresponding information; the input/output interface provides an interface between the processing component and a peripheral interface module, which may be an output device, an input device, etc. The communication component is configured to facilitate wired or wireless communication between the terminal and other devices, and the like.
Fig. 10 is a schematic structural diagram of another embodiment of a page generating apparatus provided in an embodiment of the present application, where the apparatus may include:
an information obtaining module 1001, configured to obtain object description information of at least one object to be processed;
the page generation module 1002 generates a page file matched with the at least one object to be processed by using a page classification model based on the object description information of the at least one object to be processed; the page classification model is obtained based on object description information of at least one sample object and at least one sample file training corresponding to the at least one sample object.
In some embodiments, the apparatus may further comprise:
the model training module is used for acquiring object description information of at least one sample object;
acquiring a plurality of sample files corresponding to the at least one sample object;
determining the degree of matching of the plurality of sample files with the at least one sample object, respectively;
and taking the object description information of the at least one sample object, the plurality of sample files and the matching degree of the plurality of sample files and the at least one sample object as a training sample, and training a page classification model.
The page generating apparatus shown in fig. 10 may perform the page generating method described in the embodiment shown in fig. 4, and its implementation principle and technical effects are not repeated. The specific manner in which the respective modules and units of the page generating apparatus in the above embodiments perform operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
In one possible design, the page generating apparatus of the embodiment shown in fig. 10 may be implemented as a processing device, as shown in fig. 11, including a processing component 1101 and a storage component 1102;
the storage component 1102 stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component 1101;
the processing component 1101 is configured to:
acquiring object description information of at least one object to be processed;
generating a page file matched with the at least one object to be processed by using a page classification model based on the object description information of the at least one object to be processed; the page classification model is obtained based on object description information of at least one sample object and at least one sample file training corresponding to the at least one sample object.
Wherein the processing component 1101 may include one or more processors to execute computer instructions to perform all or part of the steps of the methods described above. Of course, the processing component may also be implemented as one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic elements for executing the methods described above.
The storage component 1102 is configured to store various types of data to support operations in the processing device. The memory component may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
Of course, the processing device may necessarily also include other components, such as input/output interfaces, communication components, and the like. The input/output interface provides an interface between the processing component and a peripheral interface module, which may be an output device, an input device, etc. The communication component is configured to facilitate wired or wireless communication between the processing device and other devices, and the like.
The embodiment of the application further provides a computer readable storage medium, and a computer program is stored, and when the computer program is executed by a computer, the page generating method of the embodiment shown in fig. 4 can be realized.
In addition, the embodiment of the application also provides a page generating device, which can include:
the third request generation module is used for responding to the request operation of a user for at least one object to be processed and generating a user request;
the third request sending module is used for sending the user request to the processing end so that the processing end can acquire the object description information of the at least one object to be processed and generate a page file matched with the at least one object to be processed by using a page classification model; the page classification model is obtained based on object description information of at least one sample object and at least one sample file training corresponding to the at least one sample object;
and the third file receiving module is used for acquiring the page file provided by the processing end.
In addition, the page generating apparatus may be implemented as a terminal, which may include a processing component and a storage component, in one possible design;
The storage component stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component;
the processing assembly is configured to:
responding to request operation of a user for at least one object to be processed, and generating a user request;
sending the user request to a processing end, so that the processing end obtains object description information of the at least one object to be processed, and generating a page file matched with the at least one object to be processed by using a page classification model; the page classification model is obtained based on object description information of at least one sample object and at least one sample file training corresponding to the at least one sample object;
and acquiring the page file provided by the processing end.
In addition, the terminal may necessarily include other components such as a display component, an input/output interface, a communication component, and the like. The display component is used for displaying corresponding information; the input/output interface provides an interface between the processing component and a peripheral interface module, which may be an output device, an input device, etc. The communication component is configured to facilitate wired or wireless communication between the terminal and other devices, and the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (36)

1. A page generation method, comprising:
the processing end obtains object description information of at least one object to be processed;
determining a layout mode of matching the at least one object to be processed, wherein the layout mode of matching the at least one object to be processed comprises a layout mode corresponding to a page template of matching the at least one object to be processed, or a layout mode of matching the number of objects of the at least one object to be processed;
and constructing at least one page according to the layout mode, and generating page content of the at least one page based on the object description information of the at least one object to be processed so as to obtain a page file formed by the at least one page.
2. The method of claim 1, wherein determining a layout manner in which the at least one object to be processed matches comprises:
and determining a page template matched with the at least one object to be processed and a layout mode corresponding to the page template.
3. The method of claim 2, wherein constructing at least one page according to the layout manner, and generating page content of the at least one page based on object description information of the at least one object to be processed comprises:
constructing at least one page corresponding to the page template according to the layout mode of the page template;
determining at least one layout object corresponding to the at least one page respectively from the at least one object to be processed according to the layout mode of the page template;
and determining the element content of each page element in the page based on the object description information of at least one layout object corresponding to the page.
4. A method according to claim 3, wherein said determining the element content of each page element in the page based on the object description information of at least one layout object corresponding to the page comprises:
Determining content variable elements and content fixed elements in the page;
generating element content of a content variable element in the page based on object description information of at least one layout object corresponding to the page;
and determining the element content of the content fixed element in the page set by the page template.
5. The method of claim 4, wherein the content variable element comprises a body picture element and/or a body document element; the object description information comprises picture information and text information;
the generating the element content of the content variable element in the page based on the object description information of at least one layout object corresponding to the page comprises:
generating main body picture contents corresponding to the at least one layout object based on the image information of the at least one layout object; and/or the number of the groups of groups,
based on the text information of the at least one layout object, main body text contents corresponding to the at least one layout object are respectively generated.
6. A method according to claim 3, further comprising:
determining the page style of the page based on the object description information of at least one layout object corresponding to the page;
And adjusting the page according to the page style of the page.
7. The method of claim 6, wherein the page style comprises a coloring scheme;
the determining the page style in the page based on the object description information of at least one layout object corresponding to the page comprises:
identifying a main color of at least one layout object based on picture information of the at least one layout object corresponding to the page;
determining a background color based on the subject color;
and determining a coloring scheme corresponding to at least one page element in the page according to the coloring rule corresponding to the background color.
8. The method of claim 7, wherein the determining a background color based on the subject color comprises:
deriving according to at least one color matching rule to obtain a plurality of associated colors;
a background color is selected from the plurality of associated colors.
9. The method of claim 6, wherein determining the page style of the page based on the object description information of the at least one layout object corresponding to the page comprises:
determining the page style of the page by using a style classification model based on the object description information of at least one layout object corresponding to the page; the style classification model is obtained based on object description information of at least one sample object and at least one page style training corresponding to the at least one sample object.
10. The method of claim 5, wherein generating the subject picture content corresponding to the at least one layout object based on the image information of the at least one layout object, respectively, comprises:
identifying target content in the picture information of the at least one layout object respectively;
and respectively cutting the picture information of the at least one layout object according to the size of the main picture element in the page corresponding to the at least one layout object, so as to obtain main picture contents respectively corresponding to the at least one layout object and comprising respective target contents.
11. The method as recited in claim 1, further comprising:
determining at least one group of page styles matched with the at least one object to be processed based on the object description information of the at least one object to be processed; wherein each group of page styles comprises page styles corresponding to the at least one page respectively;
and respectively carrying out style adjustment on the at least one page in the page file according to the at least one group of page styles to obtain at least one target file.
12. The method of claim 11, wherein the at least one page comprises a cover page and at least one content page;
The determining at least one set of page styles matched with the at least one object to be processed based on the object description information of the at least one object to be processed comprises:
determining a target object corresponding to a cover page in the at least one object to be processed;
determining at least one cover page style matched with the target object based on the object description information of the target object;
determining a content page style matching each cover page style;
a set of page styles consisting of each cover page style and the content page styles matched with the cover page styles are obtained, and at least one set of page styles is obtained.
13. The method of claim 12, wherein the page style comprises a coloring scheme; the object description information comprises picture information;
the determining at least one cover page style matching the target object based on the object description information of the target object includes:
identifying a subject color of the target object based on the picture information of the target object;
deriving to obtain a plurality of associated colors according to at least one color matching rule based on the main body color of the target object;
Selecting at least one color from the plurality of associated colors as a cover page background color;
and determining a coloring scheme aiming at least one page element in the cover page according to the coloring rule corresponding to the background color of the cover page.
14. The method of claim 13, wherein the determining the content page style that matches each cover page style comprises:
determining a content page background color matching each cover page background color;
and determining a coloring scheme for at least one page element in the content page according to the coloring rule corresponding to the background color of each content page.
15. The method of claim 1, wherein determining a layout manner in which the at least one object to be processed matches comprises:
determining a layout mode of matching of the at least one object to be processed based on the number of the at least one object to be processed; the layout mode comprises the number of pages and the number of objects to be processed of each page layout;
the step of constructing at least one page according to the layout mode and generating page content of the at least one page based on the object description information of the at least one object to be processed comprises the following steps:
Constructing at least one page according to the page quantity;
determining at least one layout object corresponding to the page from the at least one object to be processed according to the number of the objects to be processed of the page layout;
and generating page contents in the page aiming at the object description information of at least one layout object corresponding to the page.
16. The method of claim 1, wherein the obtaining object description information of at least one object to be processed comprises:
acquiring an object identifier of at least one object to be processed input by a user;
and respectively acquiring object description information of the at least one object to be processed from an object database based on the object identification of the at least one object to be processed.
17. The method as recited in claim 1, further comprising:
displaying at least one page of the page file in a client;
receiving a modification confirmation request of a user for any page element in any page;
updating the element content of any page element according to the modification confirmation request to obtain an updated file of the page file;
and generating sharing prompt information based on the network address of the updated file.
18. The method of claim 1, wherein constructing at least one page according to the layout manner, and generating page content of the at least one page based on object description information of the at least one object to be processed comprises:
determining a target object in the at least one object to be processed;
determining at least one cover page style according to the object description information of the target object;
constructing at least one cover page according to the at least one cover page style;
generating page contents of the at least one cover page according to the object description information of the target object;
recommending the at least one cover page to a user;
determining a target cover page selected by a user from the at least one cover page;
determining a content page style matched with a cover page style of the target cover page;
constructing at least one content page according to the layout mode and the content page style;
and generating page contents of the at least one content page according to the object description information of the object to be processed corresponding to the at least one content page respectively.
19. The method of claim 1, wherein constructing at least one page according to the layout manner, and generating page content of the at least one page based on object description information of the at least one object to be processed comprises:
Constructing at least one page according to the layout mode, and determining at least one layout object corresponding to the at least one page from the at least one object to be processed;
generating page contents of at least one page by utilizing a content classification model aiming at object description information of at least one layout object corresponding to the at least one page respectively so as to obtain a page file formed by the at least one page; the content classification model is obtained in advance according to object description information of at least one sample object and at least one sample page training corresponding to the at least one sample object.
20. A page generation method, comprising:
responding to request operation of a user for at least one object to be processed, and generating a user request;
sending the user request to a processing end so that the processing end can acquire object description information of the at least one object to be processed; determining a layout mode of matching the at least one object to be processed, wherein the layout mode of matching the at least one object to be processed comprises a layout mode corresponding to a page template of matching the at least one object to be processed, or a layout mode of matching the number of objects of the at least one object to be processed, and constructing at least one page according to the layout mode; generating page content of the at least one page based on the object description information of the at least one object to be processed so as to obtain a page file formed by the at least one page;
And acquiring the page file provided by the processing end.
21. The method as recited in claim 20, further comprising:
displaying at least one page in the page file;
responding to modification operation of any page element in any page, sending a modification confirmation request to a processing end, so that the processing end updates element content of any page element according to the modification confirmation request, obtains an updated file of the page file, and generates sharing prompt information based on a network address of the updated file;
receiving the sharing prompt information sent by the processing end;
and displaying the sharing prompt information.
22. The method of claim 20, wherein the processing side is further configured to determine at least one set of page styles matched with the at least one object to be processed based on the object description information of the at least one object to be processed, and perform style adjustment on pages in the page file according to the at least one set of page styles, respectively, to obtain at least one target file;
the method further comprises the steps of:
displaying the respective cover pages of the at least one target file;
Responding to the selected operation of the cover page of any target file, and requesting to acquire at least one page of any target file from a processing end;
displaying at least one page of any one target file;
responding to modification operation of any page element in any page, sending a modification confirmation request to a processing end, enabling the processing end to update element content of any page element according to the modification confirmation request so as to obtain an updated file of any target file, and generating sharing prompt information based on a network address of the updated file;
receiving the sharing prompt information sent by the processing end;
and displaying the sharing prompt information.
23. The method of claim 20, wherein the processing side is specifically configured to determine a target object in the at least one object to be processed, determine at least one cover page style according to object description information of the target object, construct at least one cover page according to the at least one cover page style, and generate page content of the at least one cover page according to the object description information of the target object;
The method further comprises the steps of:
displaying the at least one cover page;
and sending a selected target cover page to a processing end in response to the selected operation of the at least one cover page, so that the processing end determines a content page style matched with the cover page style of the target cover page, constructs at least one content page according to the layout mode and the content page style, and generates page contents of the content page according to object description information of an object to be processed corresponding to the content page.
24. The method of claim 20, wherein generating the user request in response to the user request for at least one object to be processed comprises:
generating a user request comprising an object identification of at least one object to be processed in response to an object identification of the at least one object to be processed input by a user; the object identifier of the at least one object to be processed is used for the processing end to respectively acquire the object description information of the at least one object to be processed from an object database based on the object identifier of the at least one object to be processed.
25. A page generation method, comprising:
The processing end obtains at least one picture to be processed
Determining a layout mode of matching the at least one picture to be processed, wherein the layout mode of matching the at least one picture to be processed comprises a layout mode corresponding to a page template of matching the at least one picture to be processed, or a layout mode of matching the number of objects of the at least one picture to be processed;
and constructing at least one page according to the layout mode, and generating page content of the at least one page based on the at least one picture to be processed so as to obtain a page file formed by the at least one page.
26. The method of claim 25, wherein determining the layout of the at least one picture to be processed comprises:
and determining the page template matched with the at least one picture to be processed and the layout mode corresponding to the page template.
27. The method of claim 26, wherein constructing at least one page according to the layout manner, and generating page content of the at least one page based on the at least one picture to be processed, to obtain a page file composed of the at least one page, comprises:
Constructing at least one page corresponding to the page template according to the layout mode of the page template;
determining at least one layout picture corresponding to the at least one page respectively from the at least one picture to be processed according to the layout mode of the page template;
and determining the element content of each page element in the page based on at least one layout picture corresponding to the page.
28. The method of claim 27, wherein determining the element content of each page element in the page based on the at least one layout picture corresponding to the page comprises:
determining content variable elements and content fixed elements in the page;
generating element content of a content variable element in the page based on at least one layout picture corresponding to the page;
and determining the element content of the content fixed element in the page set by the page template.
29. The method as recited in claim 27, further comprising:
determining the page style of the page based on the object description information of at least one layout object corresponding to the page;
and adjusting the page according to the page style of the page.
30. The method as recited in claim 26, further comprising:
determining at least one set of page styles matching the at least one picture to be processed based on the at least one picture to be processed; wherein each group of page styles comprises page styles corresponding to the at least one page respectively;
and respectively carrying out style adjustment on the at least one page in the page file according to the at least one group of page styles to obtain at least one target file.
31. A page generation method, comprising:
the processing end obtains object description information of at least one object to be processed;
generating a page file matched with the at least one object to be processed by using a page classification model based on the object description information of the at least one object to be processed; the page classification model is obtained based on object description information of at least one sample object and at least one sample file training corresponding to the at least one sample object.
32. The method according to claim 31, wherein the page classification model is specifically trained to be obtained as follows:
acquiring object description information of at least one sample object;
Acquiring a plurality of sample files corresponding to the at least one sample object;
determining the degree of matching of the plurality of sample files with the at least one sample object, respectively;
and taking the object description information of the at least one sample object, the plurality of sample files and the matching degree of the plurality of sample files and the at least one sample object as a training sample, and training a page classification model.
33. A page generating apparatus, comprising:
the information acquisition module is used for acquiring object description information of at least one object to be processed;
the first layout determining module is used for determining a layout mode of matching the at least one object to be processed, wherein the layout mode of matching the at least one object to be processed comprises a layout mode corresponding to a page template of matching the at least one object to be processed, or a layout mode of matching the number of objects of the at least one object to be processed;
the first content generation module is used for constructing at least one page according to the layout mode and generating page content of the at least one page based on the object description information of the at least one object to be processed so as to obtain a page file formed by the at least one page.
34. A page generating apparatus, comprising:
the first request generation module is used for responding to the request operation of a user for at least one object to be processed and generating a user request;
the first request sending module is used for sending the user request to the processing end, so that the processing end can acquire the object description information of the at least one object to be processed, and determine the layout mode of the at least one object to be processed, wherein the layout mode of the at least one object to be processed, which is matched, comprises the layout mode corresponding to the page template of the at least one object to be processed, or the layout mode of the at least one object to be processed, which is matched in number, and constructs at least one page according to the layout mode, and generates the page content of the at least one page based on the object description information of the at least one object to be processed, so as to acquire the page file formed by the at least one page;
and the first file receiving module is used for acquiring the page file provided by the processing end.
35. A page generating apparatus, comprising:
a picture acquisition module for acquiring at least one picture to be processed
The second layout determining module is used for determining a layout mode of the at least one picture to be processed, wherein the layout mode of the at least one picture to be processed comprises a layout mode corresponding to a page template of the at least one picture to be processed, or a layout mode of the at least one picture to be processed, wherein the number of the objects of the at least one picture to be processed is matched;
and the second content generation module is used for constructing at least one page according to the layout mode, and generating page content of the at least one page based on the at least one picture to be processed so as to obtain a page file formed by the at least one page.
36. A page generating apparatus, comprising:
the information acquisition module is used for acquiring object description information of at least one object to be processed;
the page generation module is used for generating a page file matched with the at least one object to be processed by utilizing a page classification model based on the object description information of the at least one object to be processed; the page classification model is obtained based on object description information of at least one sample object and at least one sample file training corresponding to the at least one sample object.
CN201811565125.3A 2018-12-20 2018-12-20 Page generation method and device Active CN111352623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811565125.3A CN111352623B (en) 2018-12-20 2018-12-20 Page generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811565125.3A CN111352623B (en) 2018-12-20 2018-12-20 Page generation method and device

Publications (2)

Publication Number Publication Date
CN111352623A CN111352623A (en) 2020-06-30
CN111352623B true CN111352623B (en) 2023-05-26

Family

ID=71195478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811565125.3A Active CN111352623B (en) 2018-12-20 2018-12-20 Page generation method and device

Country Status (1)

Country Link
CN (1) CN111352623B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256366A (en) * 2020-09-30 2021-01-22 北京达佳互联信息技术有限公司 Page display method and device and electronic equipment
CN114816618A (en) * 2021-04-14 2022-07-29 浙江口碑网络技术有限公司 Page element display method and device, electronic equipment and storage medium
CN116204184B (en) * 2023-04-28 2023-07-14 深圳华龙讯达信息技术股份有限公司 UI editing method, system and storage medium for improving page style adaptation

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101971204A (en) * 2007-10-01 2011-02-09 惠普开发有限公司 Arranging graphic objects on a page with relative position based control
CN106648555A (en) * 2015-10-28 2017-05-10 阿里巴巴集团控股有限公司 Page generation method and device
CN106682144A (en) * 2016-12-20 2017-05-17 上海亿账通互联网科技有限公司 Page display method and device
CN108008871A (en) * 2016-10-27 2018-05-08 阿里巴巴集团控股有限公司 A kind of page generation method and device
CN108345624A (en) * 2017-01-24 2018-07-31 阿里巴巴集团控股有限公司 Generate the method and device of the page
CN109002338A (en) * 2017-06-07 2018-12-14 阿里巴巴集团控股有限公司 Page rendering, page finishing information processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11188509B2 (en) * 2012-02-20 2021-11-30 Wix.Com Ltd. System and method for generating a visual data structure associated with business information based on a hierarchy of components

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101971204A (en) * 2007-10-01 2011-02-09 惠普开发有限公司 Arranging graphic objects on a page with relative position based control
CN106648555A (en) * 2015-10-28 2017-05-10 阿里巴巴集团控股有限公司 Page generation method and device
CN108008871A (en) * 2016-10-27 2018-05-08 阿里巴巴集团控股有限公司 A kind of page generation method and device
CN106682144A (en) * 2016-12-20 2017-05-17 上海亿账通互联网科技有限公司 Page display method and device
CN108345624A (en) * 2017-01-24 2018-07-31 阿里巴巴集团控股有限公司 Generate the method and device of the page
CN109002338A (en) * 2017-06-07 2018-12-14 阿里巴巴集团控股有限公司 Page rendering, page finishing information processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
漆海霞 ; .DIV+CSS技术在地调局网站页面设计中的应用.国土资源信息化.2011,(第05期),全文. *

Also Published As

Publication number Publication date
CN111352623A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
US10685080B2 (en) System and method for the creation and update of hierarchical websites based on collected business knowledge
US20190392487A1 (en) System, Device, and Method of Automatic Construction of Digital Advertisements
CN111352623B (en) Page generation method and device
CN106688215A (en) Automated click type selection for content performance optimization
US20240126826A1 (en) System and method for integrating user feedback into website building system services
Zhao et al. Modeling fonts in context: Font prediction on web designs
CN105094775B (en) Webpage generation method and device
CN109360020A (en) A kind of generation method and device of advertisement
US20140143082A1 (en) Method and apparatus for generating customized designs for retail items
US11361152B2 (en) System and method for automated content labeling
CN110750666A (en) Picture generation method and system, electronic device and storage medium
Cirillo Rstudio for R statistical computing cookbook
Siyamiyan Gorji et al. Analysis of the projected image of tourism destinations on photographs: the case of Iran on Instagram
CN110717312B (en) Text labeling method and device
CN109739993A (en) Dress ornament knowledge mapping display methods, device, figure server and storage medium
CN104156471A (en) Recommending processing method and system for automatic online decorative painting synthesis
Jahanian Quantifying aesthetics of visual design applied to automatic design
CN111352680A (en) Information recommendation method and device
CN109190019A (en) User image generation method, electronic equipment and computer storage medium
Jahanian Quantifying aesthetics of visual design applied to automatic design
Skinner et al. # sustainablefashion on Instagram: A content and network analysis of user‐generated posts
WO2018066502A1 (en) Content management system
CN112035994A (en) Intelligent aided design method and device and electronic equipment
Marcotte Brand Islam: The Marketing and Commodification of Piety: by Faegheh Shirazi, Austin, University of Texas Press, 2016, ix+ 281 pp., 52 black and white photos, endnotes, bibliography, index, $24.95 (paperback), ISBN 978-1-4773-0946-9
AU2018327277A1 (en) Generating sequential visual narratives

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