CN114238671A - Presentation processing method and device, electronic equipment and storage medium - Google Patents

Presentation processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114238671A
CN114238671A CN202111554093.9A CN202111554093A CN114238671A CN 114238671 A CN114238671 A CN 114238671A CN 202111554093 A CN202111554093 A CN 202111554093A CN 114238671 A CN114238671 A CN 114238671A
Authority
CN
China
Prior art keywords
presentation
template
beautification
slide
dimension
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111554093.9A
Other languages
Chinese (zh)
Inventor
雷淑玲
程锦郁
胡娟
王茜
辛煜辉
程阳
赖伟
林灏
佘丹丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Wuhan Kingsoft Office Software Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Wuhan Kingsoft Office Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Kingsoft Mobile Technology Co Ltd, Wuhan Kingsoft Office Software Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN202111554093.9A priority Critical patent/CN114238671A/en
Publication of CN114238671A publication Critical patent/CN114238671A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/438Presentation of query results
    • G06F16/4387Presentation of query results by the use of playlists
    • G06F16/4393Multimedia presentations, e.g. slide shows, multimedia albums
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/45Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Abstract

The application relates to a presentation processing method, a presentation processing device, electronic equipment and a storage medium, and relates to the field of office automation, wherein the method comprises the following steps: acquiring at least one beautification template matched with the presentation under a preset beautification dimension; the demonstration manuscript comprises a plurality of slides, and each beautification template comprises a plurality of slide templates corresponding to the slides one by one; displaying at least one beautifying template in a preset display interface; in response to a selection operation for at least one beautification template, determining a selected target beautification template; and each slide in the presentation is adapted to the corresponding slide template in the target beautification template to obtain a presentation preview. The problems of complex operation and long consumed time when a plurality of slides in the presentation are beautified by a user are effectively solved, so that the plurality of slides in the presentation are integrally matched in style, color and the like, and the office efficiency of the user is effectively improved.

Description

Presentation processing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the field of office automation, in particular to a presentation processing method and device, electronic equipment and a storage medium.
Background
A presentation includes a plurality of pages, each page being a slide, for presenting static content (e.g., text, pictures) and dynamic content (e.g., video, audio).
With the wide application of the presentation, when the presentation is made, not only is a producer required to input necessary presentation contents in each slide, but also the producer is required to beautify the slide, for example, the theme colors of the slide are modified to make the slide more fit with the presentation contents, the layout of characters and pictures in the slide is modified to make the presentation contents in the slide more clear, and the like, so that the presentation contents in the slide are more vivid and intuitive, the attraction degree of the slide to viewers is increased, and the pleasure of the viewers in watching is improved.
Currently, slide beautification is implemented not only by requiring a producer to have slide beautification knowledge, such as understanding color matching, style and content matching, but also by requiring the producer to be able to use various editing functions in a presentation skillfully. In practice, it is often difficult for a normal user of a presentation to meet the above two requirements. Under the condition that the presentation contains a plurality of slides, the matching and coordination of the overall collocation of the plurality of slides in the presentation in the aspects of style, color, format and the like are always required to be considered, and for the condition that the presentation contains a plurality of slides, the whole beautifying process is complicated in operation, long in consumed time and low in efficiency.
Disclosure of Invention
An object of the embodiments of the present application is to provide a new technical solution for presentation processing, so as to solve the problems that in the prior art, when a user beautifies a plurality of slides in a presentation, the operation is cumbersome and the time consumption is long.
According to a first aspect of the present application, there is provided a presentation processing method, the method including: acquiring at least one beautification template matched with the presentation under a preset beautification dimension; the demonstration manuscript comprises a plurality of slides, and each beautification template comprises a plurality of slide templates corresponding to the slides one by one; displaying at least one beautifying template in a preset display interface; in response to a selection operation for at least one beautification template, determining a selected target beautification template; and each slide in the presentation is adapted to the corresponding slide template in the target beautification template to obtain a presentation preview.
Optionally, acquiring at least one beautification template matched with the presentation under a preset beautification dimension includes: determining a target scene according to the data content in the presentation under the condition that the preset beautification dimension is the style dimension; determining style information according to a target scene; and acquiring at least one first beautification template matched with the style information, and using the at least one first beautification template as at least one beautification template matched with the presentation under the style dimension.
Optionally, determining a target scene according to data content in the presentation, including: identifying the page type of each slide in the presentation; and determining a target scene according to the data content in the first slide with the page type of the first type in the presentation.
Optionally, acquiring at least one beautification template matched with the presentation under a preset beautification dimension includes: under the condition that the beautification dimension is the typesetting dimension, acquiring object information of at least one slide in the presentation; the object information comprises object types and the number of each object type; and acquiring at least one second beautification template matched with the object information as at least one beautification template matched with the presentation in the composition dimension.
Optionally, acquiring object information in at least one slide in the presentation, including: identifying the page type of each slide in the presentation; and acquiring object information in a second slide with the page type of the second type in the presentation.
Optionally, acquiring at least one beautification template matched with the presentation under a preset beautification dimension includes: acquiring the page type of each slide in the presentation under the condition that the beautification dimension is the color matching dimension; identifying the theme color of a slide in a third slide with the third type of page type in the presentation, and determining the target color according to the theme color of the slide; and acquiring at least one third beautification template matched with the target color, and using the at least one third beautification template as at least one beautification template matched with the presentation in the color matching dimension.
Optionally, acquiring at least one beautification template matched with the presentation under a preset beautification dimension includes: under the condition that the beautification dimension is a character dimension, acquiring character setting information of characters in the presentation; acquiring at least one fourth beautifying template matched with the character setting information, and taking the at least one fourth beautifying template as at least one beautifying template matched with the presentation under the character dimension; wherein, the fourth beautification template comprises at least one of the following text setting information: title, subtitle, and body.
Optionally, the presentation has a plurality of preset beautification dimensions, and after each slide in the presentation is fitted into a corresponding slide template in the target beautification template to obtain a preview image of the presentation, the method further includes: acquiring a plurality of target beautifying templates which correspond to a plurality of preset beautifying dimensions one by one; sequentially using each target beautifying template in the plurality of target beautifying templates as a selected beautifying template, sequentially adapting each slide in the presentation to the corresponding slide template in the selected beautifying template, and obtaining a beautified presentation after all the target beautifying templates are adapted; and when the beautifying template is selected in next adaptation of the presentation, the beautifying result of the beautifying template selected in last adaptation is reserved.
Optionally, after obtaining the beautified presentation, the method further includes: acquiring the consistency matching degree between a first object and a second object in a target slide; wherein the target slide is any slide in the presentation; the first object is any object in the target slide, and the second object is all objects except the first object in the target slide; under the condition that the consistency matching degree is smaller than the preset matching degree, carrying out consistency adjustment processing on the first object to obtain an adjusted first object; and the consistency matching degree between the adjusted first object and the second object is not less than the preset matching degree.
According to a second aspect of the present application, there is also provided a presentation processing apparatus including: the acquisition module is used for acquiring at least one beautifying template matched with the presentation under the preset beautifying dimension; the demonstration manuscript comprises a plurality of slides, and each beautification template comprises a plurality of slide templates corresponding to the slides one by one; the display module is used for displaying at least one beautifying template in a preset display interface; a determination module for determining a selected target beautification template in response to a selection operation directed to at least one beautification template; and the processing module is used for adapting each slide in the presentation to the corresponding slide template in the target beautifying template to obtain a presentation preview.
Optionally, the obtaining module includes: the scene determining submodule is used for determining a target scene according to the data content in the presentation under the condition that the preset beautification dimension is the style dimension; the style determining submodule is used for determining style information according to the target scene; and the style acquisition submodule is used for acquiring at least one first beautification template matched with the style information and using the at least one first beautification template as at least one beautification template matched with the presentation under the style dimension.
Optionally, the scene determination submodule is configured to: identifying the page type of each slide in the presentation; and determining a target scene according to the data content in the first slide with the page type of the first type in the presentation.
Optionally, the obtaining module includes: the information acquisition submodule is used for acquiring the object information of at least one slide in the presentation under the condition that the beautification dimension is the typesetting dimension; the object information comprises object types and the number of each object type; and the information matching submodule is used for acquiring at least one second beautification template matched with the object information and serving as at least one beautification template matched with the presentation under the typesetting dimension.
Optionally, the information obtaining sub-module is configured to identify a page type of each slide in the presentation; and acquiring object information in a second slide with the page type of the second type in the presentation.
Optionally, the obtaining module includes: the type acquisition submodule is used for acquiring the page type of each slide in the presentation under the condition that the beautification dimension is the color matching dimension; the color identification submodule is used for identifying the theme color of the slide in the third slide with the third page type in the presentation; the color determining submodule is used for determining a target color according to the theme color of the slide; and the color matching submodule is used for acquiring at least one third beautification template matched with the target color and taking the at least one third beautification template as at least one beautification template matched with the presentation under the color matching dimension.
Optionally, the obtaining module includes: the character acquisition submodule is used for acquiring character setting information of characters in the presentation under the condition that the beautification dimension is the character dimension; the character matching submodule is used for acquiring at least one fourth beautifying template matched with the character setting information, and the at least one fourth beautifying template is used as at least one beautifying template matched with the presentation under the character dimension; wherein, the fourth beautification template comprises at least one of the following text setting information: title, subtitle, and body.
Optionally, the presentation has a plurality of preset beautification dimensions, and the apparatus further includes: the beautification module is used for acquiring a plurality of target beautification templates which correspond to a plurality of preset beautification dimensions one by one after the processing module adapts each slide in the presentation to the corresponding slide template in the target beautification template to obtain a preview image of the presentation; sequentially using each target beautifying template in the plurality of target beautifying templates as a selected beautifying template, sequentially adapting each slide in the presentation to the corresponding slide template in the selected beautifying template, and obtaining a beautified presentation after all the target beautifying templates are adapted; and when the beautifying template is selected in next adaptation of the presentation, the beautifying result of the beautifying template selected in last adaptation is reserved.
Optionally, the apparatus further comprises: the consistency adjusting module is used for acquiring the consistency matching degree between the first object and the second object in the target slide after the beautifying module obtains the beautified presentation; wherein the target slide is any slide in the presentation; the first object is any object in the target slide, and the second object is all objects except the first object in the target slide; under the condition that the consistency matching degree is smaller than the preset matching degree, carrying out consistency adjustment processing on the first object to obtain an adjusted first object; and the consistency matching degree between the adjusted first object and the second object is not less than the preset matching degree.
According to a third aspect of the present application, there is also provided an electronic device comprising a memory for storing a computer program and a processor; the processor is adapted to execute a computer program to implement the method according to the first aspect of the present application.
According to a fourth aspect of the present application, there is also provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the method according to the first aspect of the present application.
The method has the advantages that at least one beautification template matched with the presentation under the preset beautification dimension can be obtained; the demonstration manuscript comprises a plurality of slides, and each beautification template comprises a plurality of slide templates corresponding to the slides one by one; displaying at least one beautifying template in a preset display interface; in response to a selection operation for at least one beautification template, determining a selected target beautification template; and each slide in the presentation is adapted to the corresponding slide template in the target beautification template to obtain a presentation preview. Therefore, the problems that a user is complex to operate and consumes a long time when beautifying a plurality of slides in a presentation can be effectively solved, and the plurality of slides can be beautified integrally under the preset beautifying dimensionality, so that the plurality of slides in the presentation are matched integrally in the aspects of style, color and the like, the matching performance and the coordination performance are achieved, and the office efficiency of the user is effectively improved.
Further features of embodiments of the present application and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which is to be read in connection with the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with the description, serve to explain the principles of the embodiments of the application.
Fig. 1 is a flowchart of a method for processing a presentation according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another method for processing a presentation according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a method of another presentation processing method according to an embodiment of the present application;
fig. 4 is a flowchart of a method of another presentation processing method according to an embodiment of the present application;
fig. 5 is a flowchart of a method of another presentation processing method according to an embodiment of the present application;
fig. 6 is a display diagram of a beautification template under style dimension in a presentation processing method according to an embodiment of the present application;
fig. 7 is a display diagram of a beautification template and a preset demonstration diagram under a composition dimension in a method for processing a presentation according to an embodiment of the present application;
fig. 8 is a display diagram of a beautification template and a preset diagram of a presentation in a color matching dimension in a presentation processing method according to an embodiment of the present application;
fig. 9 is a display diagram of a beautification template and a presentation default map in a text dimension in a presentation processing method according to an embodiment of the present application;
fig. 10 is a presentation diagram of a presentation preset diagram in a style dimension in a presentation processing method according to an embodiment of the present application;
fig. 11 is a diagram illustrating comparison of effects of a composition dimension before and after beautification in a method for processing a presentation according to an embodiment of the present application;
fig. 12 is a diagram illustrating comparison of effects of font dimensions before and after beautification in a method for processing a presentation according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a presentation processing method according to an embodiment of the present application;
fig. 14 is a functional block diagram of a presentation processing apparatus according to some embodiments of the present application;
fig. 15 is a hardware configuration diagram of an electronic device according to some embodiments of the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
It should be noted that, the execution subject in the embodiment of the present application may be an application located in the local terminal, or may also be a functional unit such as a plug-in or Software Development Kit (SDK) set in the application located in the local terminal, which is not particularly limited in this embodiment.
It is to be understood that the application may be a native App (native App) installed on the terminal (i.e., the client), or may also be a web page App (web App) of a browser on the terminal, and this embodiment is not particularly limited thereto.
In addition, the terminal according to the embodiments of the present application may include, but is not limited to, a mobile phone, a Personal Digital Assistant (PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a Personal Computer (PC), a palm Computer (PDA), and the like.
Various embodiments and examples according to the present application are described below with reference to the accompanying drawings.
< method examples >
Fig. 1 is a flowchart of a method for processing a presentation according to an embodiment of the present application. It should be noted that the presentation method provided in the embodiments of the present application may be executed at a server, or may be executed at a client, or a part of the presentation method may be executed at the server, or a part of the presentation method may be executed at the client. The following description will be given by taking an example of execution at the server.
As shown in fig. 1, the method includes the following steps S110 to S140.
Step S110: acquiring at least one beautification template matched with the presentation under a preset beautification dimension; the presentation comprises a plurality of slides, and each beautification template comprises a plurality of slide templates corresponding to the slides one by one.
It should be noted that the presentation may include a single PPT slide, or may include a subset of PPT slides, for example, a PPT slide is composed of 20 slides (i.e., slides 1-20), and the presentation may include all slides, i.e., slides 1-20, or a subset of slides, e.g., slides 1-10. The multiple slides of the presentation may be manually selected from one PPT by the user, or automatically selected according to preset selection rules. The preset selection rule can be various. For example, a page number is selected as a specified page number, such as a specified page number of 1 to m, where m satisfies: m is a natural number and 0< m < n, wherein n is the maximum page number in one PPT, and n is a natural number and 0< n; for another example, the page number is selected to be an even page number, or the page number is selected to be an odd page number, and the like, and the preset selection rule is not limited in this embodiment of the application.
The preset beautification dimension can be various. In an embodiment of the present application, the preset beautification dimension may include at least one of: style dimensions, layout dimensions, color matching dimensions, and text dimensions.
The style dimension corresponds to a design style of the presentation. And the beautification template under the style dimension is used for setting the design style of the whole presentation.
The layout dimension corresponds to the layout of each object in the presentation, and the beautification template under the layout dimension is used for setting the position and the size of each object in the presentation.
The color matching dimension corresponds to the slide color of each slide in the presentation. And the beautification template under the color matching dimension is used for setting the color of the color filling object in the presentation. The color fill object may be, for example, a slide background layer, a structure object background layer, or the like.
The text dimensions correspond to the text in the presentation. The beautification template in the text dimension is used for setting format setting information of the text in the presentation, such as the font, the font size, the font style (for example, whether the text is set to be bold or inclined), and the like.
The multiple slide templates included in each beautification template have relevance under the preset beautification dimension, namely: the design of the slide templates included in each beautification template on the preset beautification dimension has matching and coordination, and can be regarded as a series.
Illustratively, the preset beautification dimension is a style dimension, and the design of a plurality of slide templates included in each beautification template has matching and coordination on the style, is a set system, or can be regarded as the same style. For example, if the beautification template is a small refreshing style in style, each of the plurality of slide templates is the small refreshing style, and it does not appear that some slide templates of the plurality of slide templates are the small refreshing style, and other slide templates are other styles (e.g., gothic style, retro style, etc.) other than the small refreshing style. The multiple slide modules have matching and coordination in design, for example, the beautification template is a small refreshing style in style, and the multiple slide templates form a set of small refreshing styles, for example, the same in design of titles, subtitles, background colors, and the like.
For example, at least one beautification template that matches the presentation under a preset beautification dimension may be from a preset template database.
A plurality of preset beautification templates can be stored in a preset template database in advance, in step S110, the template matching degree of each preset beautification template under the presentation and the preset beautification dimension can be calculated, and when the template matching degree is greater than a preset template matching degree threshold, the preset beautification template corresponding to the template matching degree is used as a beautification template matched with the presentation under the preset beautification dimension, and the beautification template is obtained from the template database.
Further illustratively, the at least one beautification template that matches the presentation under the preset beautification dimension may also be a template that is generated in real-time (i.e., generated online).
The following describes the execution process in step S110 in detail by some embodiments.
In some embodiments, the preset beautification dimension is a style dimension. In this case, as shown in fig. 2, the execution process of step S110 may include steps S210 to S230.
Step S210: and under the condition that the preset beautification dimension is the style dimension, determining a target scene according to the data content in the presentation.
Under the condition that the preset beautification dimension is the style dimension, the design style of the presentation can be the style of a scene corresponding to the data content in the presentation, wherein the scene is a speech scene, a conference scene, an entertainment scene, an education training scene and the like.
The data content in the presentation may be text (e.g., words, numbers, english words, etc.), pictures, video, audio, etc. in the presentation. When determining the target scene according to the data content in the presentation, the content analysis may be performed on the data content, and the corresponding target scene may be determined according to an analysis result of the content analysis.
When the content of the data content is analyzed, the semantic analysis can be performed on the text under the condition that the data content is the text, the meaning to be expressed by the text is obtained, and the analysis result of the semantic analysis is used as the analysis result of the content analysis on the text.
When the data content is a picture (or video), the picture or video is subjected to image recognition, main information contained in the picture or video is recognized, and the recognition result of the image recognition is used as an analysis result for analyzing the content of the picture (or video).
And when the data content is the audio, performing voice recognition on the audio, recognizing the information content contained in the audio, and taking the recognition result of the voice recognition as an analysis result of content analysis on the text.
When determining the corresponding target scene according to the analysis result of the content analysis, key information (e.g., extracting a keyword) may be extracted from the analysis result of the content analysis, and then a scene with the highest association degree with the key information may be acquired as the target scene from among a plurality of preset scenes. For example, the plurality of preset scenes include a lecture scene, a meeting scene, an entertainment scene, and an educational training scene … …, the keyword extracted from the analysis result of the content analysis is a classroom, and the scene with the highest association degree with the classroom is an educational training scene, and the target scene is determined to be the educational training scene.
When obtaining the association degree with each preset scene and the keyword from the plurality of preset scenes, for example, description information (for example, a label) may be set in advance for each scene in the plurality of preset scenes, and the similarity between the description information of each scene and the keyword is calculated to obtain the similarity between each preset scene and the keyword.
When determining the target scene according to the data content in the presentation, the target scene may be determined according to the data content in all slides in the presentation, or may be determined according to the data content in some slides in the presentation, so as to reduce the data amount to be processed in the determined target scene, reduce the system load, and improve the processing response efficiency.
In the case where the target scene is determined based on the data content in the partial slides in the presentation, the page types of the slides in the presentation may be first identified, and the page types in the presentation may include one or more of: a cover page, a catalog page, a transition page, a body page, and an end page. And then determining a target scene according to the data content in the first slide with the page type of the presentation as the first type. Wherein the first type comprises one or more of: a cover page, a catalog page, a body page, and an end page.
Step S220: and determining style information according to the target scene.
In some embodiments, the target scene may be determined directly as genre information. For example, the target scene is an educational training scene, and the style information is determined to be the educational training scene. For example, the style information includes a style label, and directly determining the target scene as the style information may be directly regarding the target scene as the label content in the style label.
In other embodiments, to enhance the richness of the style types provided to the user, the style information may include first style information related to the target scene, and second style information designed based on the viewer's experience, such as refreshment, conciseness, art, and so forth. In this case, the target scene may be directly used as the first style information, and then the second style information set by the user or by default of the system is acquired, so as to obtain the style information composed of the first style information and the second style information. For example, the style information includes a style label, and determining the target scene as the style information may be directly taking the first style information and the second style information as the label content in the style label.
Step S230: and acquiring at least one first beautification template matched with the style information, and using the at least one first beautification template as at least one beautification template matched with the presentation under the style dimension.
And calculating a first matching degree of each first set beautifying template and the presentation according to the style information, and taking the first set beautifying template corresponding to the first matching degree as a first beautifying template to obtain at least one first beautifying template under the condition that the first matching degree is greater than a preset style matching degree threshold value, and taking the first beautifying template as at least one beautifying template matched with the presentation in style dimensions.
Calculating the first matching degree of each first setting beautification template and the presentation according to the style information may be, for example: and for any first set beautifying template, calculating the similarity between preset style information preset in the first set beautifying template and style information of the presentation, and taking the similarity as a first matching degree of the preset beautifying template and the presentation.
The plurality of first setting beautification templates can be preset by a person skilled in the art according to actual conditions and are stored in a preset template database in advance. For example, the plurality of first set beautification templates may be a plurality of preset beautification templates in a preset template database.
In some embodiments, the preset beautification dimension is a typesetting dimension. In this case, as shown in fig. 3, the execution process of step S110 may include steps S310 to S320.
Step S310: under the condition that the beautification dimension is the typesetting dimension, acquiring object information of at least one slide in the presentation; the object information includes object types and the number of each object type. Object information of a slide, i.e. information of objects in a slide. The objects in the slide show may be structure objects or material objects. The object type of the structure object includes any one of: title, subtitle, text; the object type of the material object includes any one of: text type (object is text), picture type (object is picture), video control type (object is video control), audio control type (object is audio control), and/or table type (object is table).
When the object information of at least one slide in the presentation is acquired, the object information in all slides in the presentation can be acquired, or the object information in a part of slides in the presentation can be acquired, so that the data volume of processing is reduced, the system load is reduced, and the processing response efficiency is improved.
In the case of obtaining object information in a portion of slides in a presentation, a page type of each slide in the presentation may be first identified, and the page type in the presentation may include one or more of the following: a cover page, a catalog page, a transition page, a body page, and an end page. After identifying the page type of each slide in the presentation, acquiring object information in a second slide of which the page type is a second type in the presentation. Wherein the second type comprises a text page.
When the object type of the object in at least one slide in the presentation is acquired, the presentation (i.e., at least one object in the presentation) may be input into a preset type recognition model, and the type of each object in the output result of the type recognition model is acquired as the object type of the object in the presentation.
The type recognition model can be obtained by training a plurality of samples collected in advance. Wherein each sample comprises a sample object and type information manually labeled on the sample object. In this case, an object is input to the type recognition model, and the type in the output result of the type recognition model is the object type of the object.
And after the object type of each object is obtained, counting the number of each object type to obtain the number of each object type.
Step S320: and acquiring at least one second beautification template matched with the object information as at least one beautification template matched with the presentation in the composition dimension.
And calculating a second matching degree of the object information of the slide under each page type in the at least one slide and the object information in the slide template under the page type in each second set beautifying template for the object information of at least one slide in the presentation and a plurality of second set beautifying templates, taking the preset beautifying template corresponding to the second matching degree as a second beautifying template to obtain at least one second beautifying template under the condition that the second matching degree is greater than a preset typesetting matching degree threshold, and taking the second beautifying template as at least one beautifying template matched with the presentation in the typesetting dimension.
The plurality of second setting beautification templates can be preset by a person skilled in the art according to actual conditions and are stored in a preset template database in advance. For example, the plurality of second setting beautification templates may be a plurality of preset beautification templates in a preset template database.
In some embodiments, the preset beautification dimension is a color matching dimension. In this case, as shown in fig. 4, the execution process of step S110 may include steps S410 to S430.
Step S410: and acquiring the page type of each slide in the presentation under the condition that the beautification dimension is the color matching dimension.
The page types in the presentation may include one or more of: a cover page, a catalog page, a transition page, a body page, and an end page.
Step S420: and identifying the theme color of the slide in the third slide with the third page type in the presentation, and determining the target color according to the theme color of the slide.
The third type may include one or more of: a cover page, a transition page, and an end page. The slide theme colors in the third slide are identified, which may include all colors contained in the slide, such as material object colors identifying material objects in the third slide, fill colors identifying structure objects, and background layer colors of the slide.
When the target color is determined according to the theme colors of the slides, the influence of each theme color of the slides on each object in the slides can be determined, for example, the visibility of each theme color of the slides relative to each object, and the theme color of the slide with the smallest influence is determined as the target color.
The manner in which the theme colors of each slide are determined to affect each object in the slide may be set by those skilled in the art based on the actual situation.
Step S430: and acquiring at least one third beautification template matched with the target color, and using the at least one third beautification template as at least one beautification template matched with the presentation in the color matching dimension.
And for the plurality of third set beautifying templates, calculating a third matching degree of the color in each third set beautifying template and the target color, taking the preset beautifying template corresponding to the third matching degree as a third beautifying template to obtain at least one third beautifying template under the condition that the third matching degree is greater than a preset color matching degree threshold value, and taking the third beautifying template as at least one beautifying template matched with the presentation under the color matching dimension.
The plurality of third preset beautifying templates can be preset by a person skilled in the art according to actual conditions and are stored in a preset template database in advance. For example, the plurality of third setting beautification templates may be a plurality of preset beautification templates in a preset template database.
In some embodiments, the preset beautification dimension is a text dimension. In this case, as shown in fig. 5, the execution process of step S110 may include steps S510 to S520.
Step S510: and under the condition that the beautification dimension is the character dimension, acquiring character setting information of characters in the presentation.
The text setting information may include, for example, at least one of: font setting information, character effect information, font size, etc.
Illustratively, the font setting information includes, for example, bold setting information and oblique setting information. The setting information includes setting and unsetting.
For example, for the bolded setting information, "example one" is unset, "example two" is set; for the setting information of the tilt, "example one" is unset, "example two" is set.
Illustratively, the text effect information includes, for example, underline setting information, strikethrough setting information, superscript setting information, and subscript setting information.
The underline indicates an underline set for the text, and "example one" is unset for the setting information of the underline "Example two"is set; for the setting information of the strikethrough, the strikethrough refers to the strikethrough set for the characters, for example, "example one" is not set, and "example two" is set; for the setting information of the superscript, the superscript means that the text is set as the superscript, for example, "example one" is not set "Example two"is set; for the setting information of the subscript, the subscript means that the text is set as the subscript, e.g., "example one" is not set "Example two"is set.
The font is the writing style of the character, such as regular script, cursive script, song style imitation, black body, etc. The font size is used to set the size of the text, such as first size, small first size, second size, small second size, third size, small third size, fourth size, small fourth size, fifth size, small fifth size, sixth size, small sixth size, seventh size and small seventh size.
Under the character dimension, the fonts of characters in the same structural object are the same, and the fonts of characters in different structural objects are different. The font settings of different structural objects in the same slide show matching and coordination, e.g. font size of the title is largest, font size of the subtitle is next to the font size of the subtitle, and font size of the body is smallest.
Step S520: and acquiring at least one fourth beautifying template matched with the character setting information, and taking the at least one fourth beautifying template as at least one beautifying template matched with the presentation under the character dimension.
The fourth beautification template comprises at least one of the following text setting information: title, subtitle, and body. That is, the fourth beautification template includes text setting information for a title, a subtitle, and/or a body text.
And for the plurality of fourth beautification templates, calculating a fourth matching degree of the character setting information in each fourth beautification template and the character setting information of the presentation, taking the fourth beautification template corresponding to the fourth matching degree as the fourth beautification template to obtain at least one fourth beautification template under the condition that the fourth matching degree is greater than a preset character matching degree threshold, and taking the fourth beautification template as at least one beautification template matched with the presentation in the character dimension.
The fourth set beautifying templates can be preset by those skilled in the art according to actual conditions and stored in a preset template database in advance. For example, the plurality of fourth setting beautification templates may be a plurality of preset beautification templates in a preset template database.
It should be noted that the preset beautification dimensions listed above are merely exemplary, and the embodiments of the present application include, but are not limited to, the beautification dimensions listed above.
Step S120: and displaying at least one beautifying template in a preset display interface.
Displaying the at least one beautification template obtained in the step S110 in a preset display interface, so that a user can select a desired target beautification template according to the displayed at least one beautification template (corresponding to the step S130).
For example, as shown in fig. 6, in the case that the preset beautification dimension is the style dimension (corresponding to the full text skin change of the part 60 in fig. 6), if the style information obtained in step S110 is the educational training and the reduction, at least one beautification template under the condition that the style information is the educational training and the reduction is displayed in the preset display interface.
Illustratively, in a case where the preset beautification dimension is a layout dimension, as shown in a region a in fig. 7, at least one beautification template obtained from the presentation in the layout dimension is displayed in a preset display interface.
Illustratively, in the case that the preset beautification dimension is a color matching dimension, at least one beautification template obtained from the presentation under the color matching dimension is displayed in a preset display interface, as shown in a region C in fig. 8.
Illustratively, in the case that the preset beautification dimension is a text dimension, as shown in a region E in fig. 9, at least one beautification template obtained from the presentation in the text dimension is displayed in a preset display interface.
Step S130: in response to a first selection operation for at least one beautification template, a selected target beautification template is determined.
The beautification template can be selected in the selection interface of the beautification template, and the selection operation of the beautification template is executed. In this case, in step S130, the beautification template selected by the selection operation may be used as the target beautification template in the preset beautification dimension in response to the selection operation for the at least one beautification template. The selection operation can be an operation executed by the user on at least one beautification template according to the needs of the user, and can also be an operation automatically triggered by a terminal or a server.
Step S140: and each slide in the presentation is adapted to the corresponding slide template in the target beautification template to obtain a presentation preview.
In the multiple slide templates of each beautification template, each slide template corresponds to one page type, and the page types of the multiple slide templates of each beautification template at least include: a cover page, a catalog page, a transition page, a text page, and an end page. The presentation includes a plurality of slides, each slide corresponding to a page type, and the page types of the plurality of slides of the presentation include one or more of: a cover page, a catalog page, a transition page, a text page, and an end page.
And for a plurality of slide templates of the target beautifying template and a plurality of slides in the presentation, corresponding the slide templates and the slides with the same page type, and adapting each slide in the presentation to the corresponding slide template to obtain a presentation preview image for the user to preview and select.
For example, as shown in fig. 10, in a case where the preset beautification dimension is a style dimension, at least one beautification template obtained in the style dimension is displayed in an area G of the display interface, and a presentation preview is displayed in an area H of the display interface. And after a user selects one beautifying template in the area G, displaying a demonstration manuscript preview picture after the demonstration manuscript is matched with the beautifying template selected by the user in the area H.
For example, in the case that the preset beautification dimension is the layout dimension, as shown in a region B in fig. 7, the presentation preview image in the layout dimension is displayed in the preset display interface.
Illustratively, in the case where the preset beautification dimension is the color matching dimension, as shown in a region D in fig. 8, the presentation preview image in the color matching dimension is displayed in the preset display interface.
Illustratively, in the case that the preset beautification dimension is a text dimension, as shown in a region F in fig. 9, a presentation preview image in the text dimension is presented in a preset display interface.
Through the embodiment of the application, the multiple slides in the presentation can be matched integrally in the aspects of style, color and the like, and the aim of beautifying the multiple slides in the presentation is fulfilled.
Illustratively, as shown in fig. 11, in the composition dimension, part a in fig. 11 shows the presentation before beautification, and part B in fig. 11 shows the presentation after beautification in the composition dimension. As is apparent from comparison between the part a and the part B in fig. 11, the matching and coordination of the plurality of slides in the presentation in the layout dimension are adjusted, and the matching and coordination are effectively improved as a whole compared with those before beautification.
Illustratively, as shown in fig. 12, in the layout dimension, part a of fig. 12 shows the presentation before beautification, and part B of fig. 12 shows the presentation after beautification in the font dimension. It is apparent from the comparison between the part a and the part B in fig. 12 that the matching and coordination of the plurality of slides in the presentation in the font dimension are adjusted, and the matching and coordination on the whole are effectively improved compared with those before beautification.
In the embodiment of the application, at least one beautification template matched with the presentation under the preset beautification dimension can be obtained; the demonstration manuscript comprises a plurality of slides, and each beautification template comprises a plurality of slide templates corresponding to the slides one by one; displaying at least one beautifying template in a preset display interface; in response to a selection operation for at least one beautification template, determining a selected target beautification template; and each slide in the presentation is adapted to the corresponding slide template in the target beautification template to obtain a presentation preview. Therefore, the problems that a user is complex to operate and consumes a long time when beautifying a plurality of slides in a presentation can be effectively solved, and the plurality of slides can be beautified integrally under the preset beautifying dimensionality, so that the plurality of slides in the presentation are matched integrally in the aspects of style, color and the like, the matching performance and the coordination performance are achieved, and the office efficiency of the user is effectively improved.
In some embodiments, for the same presentation, a user may beautify the presentation more than in one beautification dimension, that is, the presentation has a plurality of preset beautification dimensions, in this case, after step S140 is executed, a plurality of target beautification templates corresponding to the preset beautification dimensions one to one are obtained, then each target beautification template in the plurality of target beautification templates is sequentially used as a selected beautification template, and each slide in the presentation is sequentially adapted to a corresponding slide template in the selected beautification template, and after all target beautification templates are adapted, an beautified presentation is obtained; and when the beautifying template is selected in next adaptation of the presentation, the beautifying result of the beautifying template selected in last adaptation is reserved. That is, the beautification results under a plurality of different beautification dimensions can be superimposed, and the superimposed beautification result is used as a final beautification result.
In some embodiments, after obtaining the beautified presentation, i.e., the beautification result obtained by superimposing the beautification results in a plurality of different beautification dimensions, there may still be a significant difference in consistency between the objects of the slides in the beautified presentation in each beautification dimension, for example, the color of the title may not match the overall style of the presentation, the size of the text in the slides may not be consistent with the overall size of the other objects (e.g., titles, tables, and/or pictures) in the slide, and so on. In this case, the objects whose consistency is obviously different from the whole are adjusted, so that the objects of the slides in the presentation and the whole presentation keep high consistency, and the beautifying effect is further enhanced.
Specifically, in the embodiment of the present application, a consistency matching degree between a first object and a second object in a target slide may be obtained; wherein the target slide is any slide in the presentation; the first object is any object in the target slide, and the second object is all objects except the first object in the target slide; under the condition that the consistency matching degree is smaller than the preset matching degree, carrying out consistency adjustment processing on the first object to obtain an adjusted first object; and the consistency matching degree between the adjusted first object and the second object is not less than the preset matching degree, namely the consistency matching degree between the adjusted first object and the second object is greater than or equal to the preset matching degree.
In the embodiment of the application, all the parameters capable of influencing the harmony between a plurality of objects in the presentation can be used as the parameters corresponding to the consistency matching degree. Such as size, color, and location. In this case, the consistency matching degree may include any one of: the size matching degree, the color matching degree, and the position matching degree, and the consistency matching degree may be, for example, a sum result obtained by adding corresponding weights to the three (the size matching degree, the color matching degree, and the position matching degree) and summing the three.
For example, the size matching degree, i.e. the matching degree of the size, may be a ratio of a target size of the first object to a target size of the second object. Such as the maximum dimension or the average of the maximum and minimum dimensions.
Illustratively, the color matching degree is the degree of approximation of the color. Such as the degree of approximation of RGB values. The manner of calculating the degree of approximation of the color can be set by those skilled in the art according to actual circumstances.
Illustratively, the location matching degree is the degree of closeness of the locations. When the position closeness is too high, a plurality of objects may be superimposed on each other, so that the plurality of objects cannot be clearly distinguished. Therefore, the result that a plurality of objects are overlapped with each other can be effectively avoided by calculating the position matching degree.
It is to be understood that the above consistency matches are merely exemplary. In specific implementation, the parameters corresponding to the consistency matching degree are not limited in the embodiments of the present application, for example, the background layer may be used as one object, and the consistency adjustment may be performed separately for the color of the background layer.
The following specifically describes the scheme in the present application by a specific example. As shown in fig. 13, taking an execution main body including a server (i.e., a server in fig. 13) and a PC (i.e., a client in fig. 13) as an example, the start function (the flow sequence corresponds to (r) in fig. 13) is a function of starting presentation processing in the present application, the start mode may be that a user manually operates a preset start control to start, or may be that the start is performed spontaneously after a preset condition is met, where the preset condition may be set by a person skilled in the art according to an actual situation, for example, the start is performed once every preset time, or the start is performed after an end page editing by the user is detected.
After the function is started, the server side sequentially executes the functions of multi-page parallel identification and parallel matching, and after the server side executes the function of parallel matching, the client side sequentially executes the functions of step-by-step application, stylization engine and downloading.
The function of the multi-page parallel recognition is to perform recognition processing on each of a plurality of slides of the presentation, and the process of performing recognition processing on each of the plurality of slides is parallel, that is, to perform recognition processing on each of the plurality of slides simultaneously.
Specifically, as shown in fig. 13, as for the "multiple page parallel recognition" section in fig. 13, the functions thereof include a function of page type recognition (corresponding to "page type recognition" in fig. 13), a function of structure recognition (corresponding to "structure recognition" in fig. 13), and a function of theme color recognition (corresponding to "theme color recognition" in fig. 13).
Specifically, in fig. 13, the page type identifies, i.e., identifies, the page type of the slide, which includes any one of: a cover page, a catalog page, a transition page, a body page (also called a content page), and an end page. Structure recognition identifies the type and location of each object in the slide. The theme color identifies, i.e., identifies, the page color of the slide.
After the "multiple page parallel recognition" process in fig. 13 is performed, the function of "parallel matching" in fig. 13 may be performed based on the obtained result (the flow sequence corresponds to (ii) in fig. 13).
The function of parallel matching is to match each of the plurality of slides of the presentation (i.e., for each slide, the slide is matched to a plurality of preset templates), and the process of matching each of the plurality of slides is parallel, i.e., each of the plurality of slides is matched at the same time.
Specifically, as for the "parallel matching" section in fig. 13, the functions thereof include a function of structure matching (corresponding to "structure matching" in fig. 13), a function of degree of matching calculation (corresponding to "degree of matching calculation" in fig. 13), a function of beautification property (corresponding to "beautification property" in fig. 13), and a function of template recommendation (corresponding to "template recommendation" in fig. 13).
It should be noted that the function of the "matching" part of the configuration information in fig. 13 only shows the function of matching the page structure, and does not show the function of matching other configuration information (e.g., the page color, the page element characteristics, and/or the page style mentioned in the above embodiment). In specific implementation, the implementation of the matching function related to the other configuration information is similar to the page structure, and specifically, refer to the implementation mode in which the configuration information is the page structure in fig. 13.
Specifically, in fig. 13, the configuration information to be matched is selected by the structure matching according to the preset beautification dimension, and the matching degree is calculated, that is, the matching degree between the preset template and the configuration information to be matched is calculated. Illustratively, each preset template includes a plurality of preset slide templates under a preset beautification dimension. Determining a plurality of slide templates to be matched, which correspond to a plurality of slides one by one, in a plurality of preset slide templates of each preset template according to the configuration information to be matched of each slide in the plurality of slides and the number of each page type in the plurality of slides; and calculating the matching degree of each slide in the plurality of slides in the presentation and the corresponding slide template to be matched, and averaging all the obtained matching degrees to obtain the matching degree of the presentation and the preset template.
The preset configuration information to be matched in the beautification dimension may refer to the corresponding description in the above embodiment, for example, the configuration information to be matched in the style dimension is a page style, and the configuration information to be matched in the composition dimension is the position and size of each object in a slide of the presentation; the configuration information to be matched with the color matching dimension is the color of a color filling object in a slide of the presentation; the configuration information to be matched with the character dimension is format setting information of characters in slides of the presentation.
And the beautifying characteristic is that based on the matching degree of the obtained presentation and the preset template, the preset template with the matching degree larger than the threshold value of the matching degree is used as a beautifying template matched under the preset beautifying dimension, and at least one beautifying template matched with the presentation under the preset beautifying dimension is obtained.
The implementation of the function in the "parallel recognition of multiple pages" and the implementation of the functions in the "structure matching", "matching degree calculation", and "beautification property" in the "parallel matching" correspond to the process of acquiring at least one beautification template matched with the presentation in the preset beautification dimension in the above step S110.
And determining a template to be recommended by the template recommendation, namely using the at least one beautification template as the template to be recommended and recommending the template to a user. The template recommendation corresponds to step S120 in the above embodiment.
After the "parallel matching" process in fig. 13 is completed, the "step-by-step applying" function in fig. 13 may be executed based on the obtained result (the flow sequence corresponds to (c) in fig. 13).
The function of step-by-step application is to apply each slide in a plurality of slides of the presentation to each beautification template.
Specifically, as for the "step-and-apply" section in fig. 13, the functions thereof include a function of downloading a user document (corresponding to the "downloading user document" in fig. 13), a function of selecting an apply template (corresponding to the "selecting apply template" in fig. 13), a function of applying a property (corresponding to the "applying property" in fig. 13), and a function of generating a template and a thumbnail (corresponding to the "generating template and thumbnail" in fig. 13).
Specifically, in fig. 13, the slide information of each slide in the user document, i.e., the extracted presentation, is downloaded. The slide information includes at least one object. For example, any one of the at least one object may be a structure object or a material object. The structure object may be, for example, a title object, a subtitle object, a body object, or the like, which is related to a structural part in a slide show. The material object may include, for example, a text object, a picture object, a video control object, an audio control object, a form object, and the like, which are related to the material. Any material object can be accommodated in the structure object.
Selecting an application template, i.e., selecting one of at least one beautification template as a target beautification template (corresponding to step S130), determining beautification processing information corresponding to slide information according to the slide information of each of a plurality of slides of the presentation and the slide template corresponding to the slide by using the application template, where the beautification processing information is generated based on a plurality of objects in the slide information and the slide template, and is obtained after beautification processing (e.g., composition, splicing) is performed on the plurality of objects again. For example, the beautification processing information may be tile information generated by performing tile processing on a plurality of pictures, or flow information generated by generating a flow chart from the content of a text.
The generation of the template and the thumbnail corresponds to the execution of step S140 in the above embodiment. The implementation processes of downloading the user document, the application characteristics, and generating the template and the thumbnail function may specifically refer to the corresponding descriptions in the above embodiments, and are not described herein again.
After the "step-by-step applying" process in fig. 13 is performed, the function of the "stylization engine" in fig. 13 may be performed based on the obtained result (the flow sequence corresponds to the value of (r) in fig. 13).
Specifically, for the "stylization engine" section in fig. 13, the functions thereof include the function of a presentation layer (corresponding to the "presentation layer" in fig. 13), the function of a structure layer (corresponding to the "structure layer" in fig. 13), the function of a background layer (corresponding to the "background layer" in fig. 13), and the function of global color correction (corresponding to the "global color correction" in fig. 13).
The implementation of the functionality of the "stylization engine" corresponds to the above embodiments, and may also have a significant difference in consistency between the objects of the slides in the beautified presentation in each beautified dimension, for example, the color of the title may not match the overall style of the presentation, the size of the text in the slides may not be compatible with the overall size of other objects (e.g., titles, tables, and/or pictures) in the slide, and so on. In this case, the object whose consistency is obviously different from the whole is adjusted, so that the objects of the slides in the presentation and the whole presentation keep higher consistency, and the process of beautifying effect is further enhanced.
The function of the presentation layer is to make a consistent adjustment of the overall style on the presentation, such as the size of the objects in the slide; the function of the background layer is to perform a consistent adjustment of the overall style, such as a background color, the function of the structural layer is to perform a consistent adjustment of the overall style, such as a position of an object, and the function of the global color correction is to perform a consistent adjustment of the overall style based on all object colors in one slide.
After the "stylization engine" process in fig. 13 is executed, the function of "downloading application" in fig. 13 may be executed based on the obtained result (the flow sequence corresponds to the fifth step in fig. 13).
Specifically, as for the "download application" section in fig. 13, the functions thereof include a function of generating a preview image (corresponding to "generating a preview image" in fig. 13), and a function of document download (corresponding to "document download" in fig. 13).
Specifically, in fig. 13, "preview image generation" is to regenerate the presentation preview image according to the result of the consistency adjustment in the "stylization engine", and document downloading is to download the generated preview image.
< apparatus embodiment >
Fig. 14 is a functional block diagram of a presentation processing apparatus according to some embodiments of the present application. As shown in fig. 14, the presentation processing apparatus 140 may include: an acquisition module 141, a presentation module 142, a determination module 143, and a processing module 144.
The acquiring module 141 is configured to acquire at least one beautification template matched with the presentation under a preset beautification dimension; the presentation comprises a plurality of slides, and each beautification template comprises a plurality of slide templates corresponding to the slides one by one.
And a display module 142, configured to display at least one beautification template in a preset display interface.
A determination module 143, configured to determine a selected target beautification template in response to a selection operation for at least one beautification template.
And the processing module 144 is configured to adapt each slide in the presentation to a corresponding slide template in the target beautification template, so as to obtain a preview image of the presentation.
The method has the advantages that at least one beautification template matched with the presentation under the preset beautification dimension can be obtained; the demonstration manuscript comprises a plurality of slides, and each beautification template comprises a plurality of slide templates corresponding to the slides one by one; displaying at least one beautifying template in a preset display interface; in response to a selection operation for at least one beautification template, determining a selected target beautification template; and each slide in the presentation is adapted to the corresponding slide template in the target beautification template to obtain a presentation preview. Therefore, the problems that a user is complex to operate and consumes a long time when beautifying a plurality of slides in a presentation can be effectively solved, and the plurality of slides can be beautified integrally under the preset beautifying dimensionality, so that the plurality of slides in the presentation are matched integrally in the aspects of style, color and the like, the matching performance and the coordination performance are achieved, and the office efficiency of the user is effectively improved.
Optionally, the obtaining module includes: the scene determining submodule is used for determining a target scene according to the data content in the presentation under the condition that the preset beautification dimension is the style dimension; the style determining submodule is used for determining style information according to the target scene; and the style acquisition submodule is used for acquiring at least one first beautification template matched with the style information and using the at least one first beautification template as at least one beautification template matched with the presentation under the style dimension.
Optionally, the scene determination submodule is configured to: identifying the page type of each slide in the presentation; and determining a target scene according to the data content in the first slide with the page type of the first type in the presentation.
Optionally, the obtaining module includes: the information acquisition submodule is used for acquiring the object information of at least one slide in the presentation under the condition that the beautification dimension is the typesetting dimension; the object information comprises object types and the number of each object type; and the information matching submodule is used for acquiring at least one second beautification template matched with the object information and serving as at least one beautification template matched with the presentation under the typesetting dimension.
Optionally, the information obtaining sub-module is configured to identify a page type of each slide in the presentation; and acquiring object information in a second slide with the page type of the second type in the presentation.
Optionally, the obtaining module includes: the type acquisition submodule is used for acquiring the page type of each slide in the presentation under the condition that the beautification dimension is the color matching dimension; the color identification submodule is used for identifying the theme color of the slide in the third slide with the third page type in the presentation; the color determining submodule is used for determining a target color according to the theme color of the slide; and the color matching submodule is used for acquiring at least one third beautification template matched with the target color and taking the at least one third beautification template as at least one beautification template matched with the presentation under the color matching dimension.
Optionally, the obtaining module includes: the character acquisition submodule is used for acquiring character setting information of characters in the presentation under the condition that the beautification dimension is the character dimension; the character matching submodule is used for acquiring at least one fourth beautifying template matched with the character setting information, and the at least one fourth beautifying template is used as at least one beautifying template matched with the presentation under the character dimension; wherein, the fourth beautification template comprises at least one of the following text setting information: title, subtitle, and body.
Optionally, the presentation has a plurality of preset beautification dimensions, and the apparatus further includes: the beautification module is used for acquiring a plurality of target beautification templates which correspond to a plurality of preset beautification dimensions one by one after the processing module adapts each slide in the presentation to the corresponding slide template in the target beautification template to obtain a preview image of the presentation; sequentially using each target beautifying template in the plurality of target beautifying templates as a selected beautifying template, sequentially adapting each slide in the presentation to the corresponding slide template in the selected beautifying template, and obtaining a beautified presentation after all the target beautifying templates are adapted; and when the beautifying template is selected in next adaptation of the presentation, the beautifying result of the beautifying template selected in last adaptation is reserved.
Optionally, the apparatus further comprises: the consistency adjusting module is used for acquiring the consistency matching degree between the first object and the second object in the target slide after the beautifying module obtains the beautified presentation; wherein the target slide is any slide in the presentation; the first object is any object in the target slide, and the second object is all objects except the first object in the target slide; under the condition that the consistency matching degree is smaller than the preset matching degree, carrying out consistency adjustment processing on the first object to obtain an adjusted first object; and the consistency matching degree between the adjusted first object and the second object is not less than the preset matching degree.
Fig. 15 is a hardware configuration diagram of an electronic device according to another embodiment.
As shown in fig. 15, the electronic device 150 comprises a processor 151 and a memory 152, the memory 152 being adapted to store an executable computer program, the processor 151 being adapted to perform a method according to any of the above method embodiments, under control of the computer program.
The modules of the presentation processing apparatus 140 may be realized by the processor 151 executing a computer program stored in the memory 152 in the present embodiment, or may be realized by another circuit configuration, which is not limited herein.
The present application may be a system, method and/or computer program product. The computer program product may include a storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present application.
The storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the storage medium include: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Storage media, as used herein, is not to be construed as a transitory signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or an electrical signal transmitted through an electrical wire.
The computer-readable program instructions described herein may be downloaded from a storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present application may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry can execute computer-readable program instructions to implement aspects of the present application by utilizing state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present application are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present application, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the application is defined by the appended claims.

Claims (12)

1. A presentation processing method, comprising:
acquiring at least one beautification template matched with the presentation under a preset beautification dimension; the presentation comprises a plurality of slides, and each beautification template comprises a plurality of slide templates corresponding to the slides one by one;
displaying the at least one beautifying template in a preset display interface;
in response to a first selection operation for the at least one beautification template, determining a selected target beautification template;
and adapting each slide in the presentation to a corresponding slide template in the target beautification template to obtain a presentation preview.
2. The method of claim 1, wherein obtaining at least one beautification template that matches the presentation in a preset beautification dimension comprises:
determining a target scene according to the data content in the presentation under the condition that the preset beautification dimension is a style dimension;
determining style information according to the target scene;
and acquiring at least one first beautification template matched with the style information, and using the at least one first beautification template as at least one beautification template matched with the presentation under the style dimension.
3. The method of claim 2, wherein determining a target scene from data content in the presentation comprises:
identifying the page type of each slide in the presentation;
and determining the target scene according to the data content in the first slide with the first type of the page type in the presentation.
4. The method of claim 1, wherein obtaining at least one beautification template that matches the presentation in a preset beautification dimension comprises:
under the condition that the beautification dimension is the typesetting dimension, acquiring object information of at least one slide in the presentation; the object information comprises object types and the number of each object type;
and acquiring at least one second beautification template matched with the object information as at least one beautification template matched with the presentation under the typesetting dimension.
5. The method of claim 4, wherein the obtaining object information in at least one slide of the presentation comprises:
identifying the page type of each slide in the presentation;
and acquiring object information in a second slide with the page type of the second type in the presentation.
6. The method according to any one of claims 1-5, wherein the obtaining at least one beautification template that matches the presentation in a preset beautification dimension comprises:
acquiring the page type of each slide in the presentation under the condition that the beautification dimension is the color matching dimension;
identifying the theme color of a slide in a third slide with a third page type in the presentation, and determining a target color according to the theme color of the slide;
and acquiring at least one third beautification template matched with the target color, and using the at least one third beautification template as at least one beautification template matched with the presentation in the color matching dimension.
7. The method according to any one of claims 1-5, wherein the obtaining at least one beautification template that matches the presentation in a preset beautification dimension comprises:
acquiring character setting information of characters in the presentation under the condition that the beautification dimension is a character dimension;
acquiring at least one fourth beautification template matched with the character setting information, and taking the at least one fourth beautification template as at least one beautification template matched with the presentation in the character dimension; wherein, the fourth beautification template comprises at least one of the following text setting information: title, subtitle, and body.
8. The method of claim 1, wherein the presentation has a plurality of predefined beautification dimensions, and wherein after fitting each slide in the presentation into a corresponding slide template in the target beautification template to obtain a presentation preview, the method further comprises:
acquiring a plurality of target beautifying templates which correspond to the preset beautifying dimensions one by one;
sequentially using each target beautifying template in the plurality of target beautifying templates as a selected beautifying template, sequentially adapting each slide in the presentation to a corresponding slide template in the selected beautifying template, and obtaining a beautified presentation after all target beautifying templates are adapted; and when the beautifying template is selected in next adaptation of the presentation, the beautifying result of the beautifying template selected in last adaptation is reserved.
9. The method of claim 8, wherein after obtaining the beautified presentation, the method further comprises:
acquiring the consistency matching degree between a first object and a second object in a target slide; wherein the target slide is any slide in the presentation; the first object is any object in the target slide, and the second object is all objects except the first object in the target slide;
under the condition that the consistency matching degree is smaller than a preset matching degree, carrying out consistency adjustment processing on the first object to obtain an adjusted first object; wherein the consistency matching degree between the adjusted first object and the second object is not less than the preset matching degree.
10. A presentation processing apparatus, comprising:
the acquisition module is used for acquiring at least one beautifying template matched with the presentation under the preset beautifying dimension; the presentation comprises a plurality of slides, and each beautification template comprises a plurality of slide templates corresponding to the slides one by one;
the display module is used for displaying the at least one beautifying template in a preset display interface;
a determination module for determining a selected target beautification template in response to a first selection operation for the at least one beautification template;
and the processing module is used for adapting each slide in the presentation to the corresponding slide template in the target beautification template to obtain a presentation preview.
11. An electronic device comprising a memory and a processor, the memory for storing a computer program; the processor is adapted to execute the computer program to implement the method according to any of claims 1-9.
12. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method according to any one of claims 1-9.
CN202111554093.9A 2021-12-17 2021-12-17 Presentation processing method and device, electronic equipment and storage medium Pending CN114238671A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111554093.9A CN114238671A (en) 2021-12-17 2021-12-17 Presentation processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111554093.9A CN114238671A (en) 2021-12-17 2021-12-17 Presentation processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114238671A true CN114238671A (en) 2022-03-25

Family

ID=80758331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111554093.9A Pending CN114238671A (en) 2021-12-17 2021-12-17 Presentation processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114238671A (en)

Similar Documents

Publication Publication Date Title
CN109688463B (en) Clip video generation method and device, terminal equipment and storage medium
US11720949B2 (en) Method and device for recommending gift and mobile terminal
US10242265B2 (en) Actor/person centric auto thumbnail
US11265614B2 (en) Information sharing method and device, storage medium and electronic device
US9613268B2 (en) Processing of images during assessment of suitability of books for conversion to audio format
US20120196260A1 (en) Electronic Comic (E-Comic) Metadata Processing
CN106909548B (en) Picture loading method and device based on server
CN111263186A (en) Video generation, playing, searching and processing method, device and storage medium
CN109309844A (en) Video platform word treatment method, videoconference client and server
JP2020005309A (en) Moving image editing server and program
KR20210090273A (en) Voice packet recommendation method, device, equipment and storage medium
US20150111189A1 (en) System and method for browsing multimedia file
WO2019245033A1 (en) Moving image editing server and program
CN112989112B (en) Online classroom content acquisition method and device
WO2019146466A1 (en) Information processing device, moving-image retrieval method, generation method, and program
EP4138358A1 (en) Voice packet recommendation method, apparatus and device, and storage medium
CN113886610A (en) Information display method, information processing method and device
CN111309200B (en) Method, device, equipment and storage medium for determining extended reading content
CN110297965B (en) Courseware page display and page set construction method, device, equipment and medium
CN114238671A (en) Presentation processing method and device, electronic equipment and storage medium
CN113840099B (en) Video processing method, device, equipment and computer readable storage medium
CN113641853A (en) Dynamic cover generation method, device, electronic equipment, medium and program product
CN114254610A (en) Slide processing method and device and electronic equipment
CN110929496B (en) Text template generation method and device
JP2019144817A (en) Motion picture output device, motion picture output method, and motion picture output program

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