Presentation processing method, device, electronic device and storage medium

By obtaining a beautification template that matches the presentation and automatically adapting it, the cumbersome problem of beautifying multiple slides in a presentation is solved, and the overall beautification and efficiency of multiple slides are achieved.

CN114238671BActive Publication Date: 2025-09-23GUANGZHOU KINGSOFT MOBILE TECH +3
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111554093.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-17
Publication Date
2025-09-23
Estimated Expiration
2041-12-17

AI Technical Summary

Technical Problem

The beautification process of multiple slides in a presentation is cumbersome and time-consuming. It is difficult for ordinary users to meet the overall matching requirements in terms of style and color, resulting in low efficiency.

Method used

A presentation processing method is provided. By obtaining a beautification template that matches the preset beautification dimensions, displaying and selecting the target template, and adapting the slides to the corresponding template, the overall beautification of multiple slides is achieved, including automatic matching of style, layout, color and text dimensions.

Benefits of technology

It achieves overall matching of styles, colors, etc. of multiple slides, improves users' office efficiency and simplifies the beautification process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114238671B_ABST
    Figure CN114238671B_ABST
Patent Text Reader

Abstract

The present application relates to a presentation processing method, device, electronic device, and storage medium, and relates to the field of office automation. The method comprises: obtaining at least one beautification template that matches the presentation under a preset beautification dimension; wherein the presentation includes multiple slides, and each beautification template includes multiple slide templates corresponding one-to-one to the multiple slides; displaying at least one beautification 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 adapting each slide in the presentation to a corresponding slide template in the target beautification template to obtain a presentation preview image. This method effectively solves the problem of cumbersome and time-consuming operations when users beautify multiple slides in a presentation, ensuring that the overall matching of multiple slides in the presentation in terms of style, color, etc. is matched and coordinated, effectively improving the user's office efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of office automation, and more specifically, to a presentation processing method, device, electronic device, and storage medium. Background Art

[0002] A presentation includes multiple pages for presenting static content (such as text and pictures) and dynamic content (such as video and audio), and each page is a slide.

[0003] With the widespread use of presentations, when making presentations, the makers are not only required to input the necessary presentation content in each slide, but also required to beautify the slides, such as changing the theme color of the slides to make it more consistent with the presentation content, changing the layout of text and pictures in the slides to make the presentation content in the slides clearer, etc., so as to make the presentation content in the slides more vivid and intuitive, increase the attractiveness of the slides to the viewers, and enhance the viewers' sense of pleasure when watching.

[0004] Currently, beautifying slides requires not only knowledge of slide design, such as understanding color matching and matching style with content, but also proficiency in the various editing functions within presentations. In practice, these two requirements are often difficult for average presentation users to meet. When a presentation contains multiple slides, it's often necessary to consider the overall matching and coordination of style, color, and layout across the slides. This makes the entire beautification process cumbersome, time-consuming, and inefficient. Summary of the Invention

[0005] One purpose of the embodiments of the present application is to provide a new technical solution for presentation processing to solve the problem in the prior art that users have to perform cumbersome and time-consuming operations when beautifying multiple slides in a presentation.

[0006] According to a first aspect of the present application, a presentation processing method is provided, the method comprising: obtaining at least one beautification template that matches the presentation under a preset beautification dimension; wherein the presentation comprises multiple slides, and each beautification template comprises multiple slide templates corresponding one-to-one to the multiple slides; displaying at least one beautification template in a preset display interface; determining a selected target beautification template in response to a selection operation for at least one beautification template; adapting each slide in the presentation to a corresponding slide template in the target beautification template to obtain a presentation preview image.

[0007] Optionally, obtaining at least one beautification template that matches the presentation under a preset beautification dimension includes: when the preset beautification dimension is a style dimension, determining a target scene based on the data content in the presentation; determining style information based on the target scene; obtaining at least one first beautification template that matches the style information, and using the at least one first beautification template as at least one beautification template that matches the presentation under the style dimension.

[0008] Optionally, determining the target scene according to the data content in the presentation includes: identifying the page type of each slide in the presentation; and determining the target scene according to the data content in a first slide of a first type in the presentation.

[0009] Optionally, obtaining at least one beautification template that matches the presentation under a preset beautification dimension includes: when the beautification dimension is a typesetting dimension, obtaining object information of at least one slide in the presentation; wherein the object information includes the object type and the quantity of each object type; obtaining at least one second beautification template that matches the object information as at least one beautification template that matches the presentation under the typesetting dimension.

[0010] Optionally, obtaining object information in at least one slide in a presentation includes: identifying a page type of each slide in the presentation; and obtaining object information in a second slide in the presentation whose page type is a second type.

[0011] Optionally, obtaining at least one beautification template that matches the presentation under a preset beautification dimension includes: when the beautification dimension is a color matching dimension, obtaining the page type of each slide in the presentation; identifying the slide theme color in the third slide whose page type is the third type in the presentation, and determining the target color based on the slide theme color; obtaining at least one third beautification template that matches the target color, and using the at least one third beautification template as the at least one beautification template that matches the presentation under the color matching dimension.

[0012] Optionally, obtaining at least one beautification template that matches the presentation under a preset beautification dimension includes: when the beautification dimension is a text dimension, obtaining text setting information of the text in the presentation; obtaining at least one fourth beautification template that matches the text setting information, and using the at least one fourth beautification template as at least one beautification template that matches the presentation under the text dimension; wherein the fourth beautification template includes at least one of the following text setting information: title, subtitle, and text.

[0013] Optionally, the presentation has multiple preset beautification dimensions. After adapting each slide in the presentation to the corresponding slide template in the target beautification template and obtaining a preview image of the presentation, the above method also includes: obtaining multiple target beautification templates corresponding one by one to the multiple preset beautification dimensions; taking each target beautification template in the multiple target beautification templates as the selected beautification template in turn, and adapting each slide in the presentation to the corresponding slide template in the selected beautification template in turn, and obtaining a beautified presentation after adapting all the target beautification templates; wherein, the presentation retains the beautification result after the last adaptation to the selected beautification template when it is adapted to the selected beautification template next time.

[0014] Optionally, after obtaining the beautified presentation, the above method also includes: obtaining a 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 in the target slide except the first object; when the consistency matching degree is less than a preset matching degree, performing 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.

[0015] According to the second aspect of the present application, a presentation processing device is also provided, which includes: an acquisition module for acquiring at least one beautification template that matches the presentation under a preset beautification dimension; wherein the presentation includes multiple slides, and each beautification template includes multiple slide templates corresponding one-to-one to the multiple slides; a display module for displaying at least one beautification template in a preset display interface; a determination module for responding to a selection operation for at least one beautification template and determining the selected target beautification template; a processing module for adapting each slide in the presentation to the corresponding slide template in the target beautification template to obtain a presentation preview image.

[0016] Optionally, the acquisition module includes: a scene determination submodule, which is used to determine the target scene according to the data content in the presentation when the preset beautification dimension is the style dimension; a style determination submodule, which is used to determine the style information according to the target scene; and a style acquisition submodule, which is used to acquire at least one first beautification template that matches the style information, and use the at least one first beautification template as at least one beautification template that matches the presentation under the style dimension.

[0017] Optionally, the scene determination submodule is configured to: identify the page type of each slide in the presentation; and determine the target scene according to the data content in the first slide of the first type in the presentation.

[0018] Optionally, the acquisition module includes: an information acquisition sub-module, used to obtain object information of at least one slide in a presentation when the beautification dimension is a typesetting dimension; wherein the object information includes the object type and the quantity of each object type; an information matching sub-module, used to obtain at least one second beautification template that matches the object information, as at least one beautification template that matches the presentation under the typesetting dimension.

[0019] Optionally, the information acquisition submodule is configured to identify the page type of each slide in the presentation; and acquire object information in a second slide of the second type in the presentation.

[0020] Optionally, the acquisition module includes: a type acquisition sub-module, used to obtain the page type of each slide in the presentation when the beautification dimension is the color matching dimension; a color recognition sub-module, used to identify the slide theme color in the third slide whose page type is the third type in the presentation; a color determination sub-module, used to determine the target color according to the slide theme color; a color matching sub-module, used to obtain at least one third beautification template that matches the target color, and use the at least one third beautification template as at least one beautification template that matches the presentation under the color matching dimension.

[0021] Optionally, the acquisition module includes: a text acquisition sub-module, used to obtain text setting information of text in the presentation when the beautification dimension is a text dimension; a text matching sub-module, used to obtain at least one fourth beautification template that matches the text setting information, and use the at least one fourth beautification template as at least one beautification template that matches the presentation under the text dimension; wherein the fourth beautification template includes at least one of the following text setting information: title, subtitle, and text.

[0022] Optionally, the presentation has multiple preset beautification dimensions, and the above-mentioned device also includes: a beautification module, which is used to obtain multiple target beautification templates corresponding to the multiple preset beautification dimensions 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; each target beautification template in the multiple target beautification templates is used as the selected beautification template in turn, and each slide in the presentation is adapted to the corresponding slide template in the selected beautification template in turn, and after all the target beautification templates are adapted, a beautified presentation is obtained; wherein, the presentation retains the beautification result after the last adaptation to the selected beautification template when it is adapted to the selected beautification template next time.

[0023] Optionally, the above-mentioned device also includes: a consistency adjustment module, which is used to obtain the consistency matching degree between the first object and the second object in the target slide after the beautification 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 in the target slide except the first object; when the consistency matching degree is less than the preset matching degree, the first object is subjected to consistency adjustment processing to obtain the 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.

[0024] According to a third aspect of the present application, an electronic device is also provided, including a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to execute the computer program to implement the method according to the first aspect of the present application.

[0025] According to a fourth aspect of the present application, a storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, the method according to the first aspect of the present application is implemented.

[0026] One beneficial effect of the embodiment of the present application is that it is possible to obtain at least one beautification template that matches a presentation under a preset beautification dimension; wherein the presentation includes multiple slides, and each beautification template includes multiple slide templates corresponding one to one to the multiple slides; at least one beautification template is displayed in a preset display interface; in response to a selection operation for at least one beautification template, the selected target beautification template is determined; each slide in the presentation is adapted to the corresponding slide template in the target beautification template to obtain a preview image of the presentation. It can be seen that the embodiment of the present application can effectively solve the problem that the user's operation is cumbersome and time-consuming when beautifying multiple slides in a presentation, and can beautify multiple slides as a whole under the preset beautification dimension, so that the overall matching of multiple slides in the presentation in terms of style, color, etc. is matched and coordinated, effectively improving the user's office efficiency.

[0027] Other features and advantages of the embodiments of the present application will become apparent from the following detailed description of exemplary embodiments of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the description, serve to explain the principles of the embodiments of the present application.

[0029] Figure 1 A flowchart of a presentation processing method provided in an embodiment of the present application;

[0030] Figure 2A flowchart of another presentation processing method provided in an embodiment of the present application;

[0031] Figure 3 A flowchart of another method for processing a presentation provided in an embodiment of the present application;

[0032] Figure 4 A flowchart of another method for processing a presentation provided in an embodiment of the present application;

[0033] Figure 5 A flowchart of another method for processing a presentation provided in an embodiment of the present application;

[0034] Figure 6 A diagram showing a beautified template in the style dimension in a presentation processing method provided in an embodiment of the present application;

[0035] Figure 7 A diagram showing a beautified template and a presentation preset image in the layout dimension in a presentation processing method provided in an embodiment of the present application;

[0036] Figure 8 A diagram showing a beautification template and a presentation preset image in the color matching dimension in a presentation processing method provided in an embodiment of the present application;

[0037] Figure 9 A diagram showing a beautified template and a preset presentation image in the text dimension in a presentation processing method provided in an embodiment of the present application;

[0038] Figure 10 A diagram showing a presentation preset image under the style dimension in a presentation processing method provided in an embodiment of the present application;

[0039] Figure 11 A diagram comparing the effects of typesetting dimensions before and after beautification in a presentation processing method provided in an embodiment of the present application;

[0040] Figure 12 A diagram comparing the effects of font dimensions before and after beautification in a presentation processing method provided in an embodiment of the present application;

[0041] Figure 13 This is a schematic diagram of the architecture of the presentation processing method provided in an embodiment of the present application;

[0042] Figure 14 is a functional structure block diagram of a presentation processing device according to some embodiments of the present application;

[0043] Figure 15 This is a schematic diagram of the hardware structure of an electronic device in some embodiments of the present application. DETAILED DESCRIPTION

[0044] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangements of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present application.

[0045] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.

[0046] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.

[0047] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0048] It should be noted that like reference numerals and letters refer to like items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0049] It should be noted that the execution subject of the embodiment of the present application can be an application located in the local terminal, or it can also be a functional unit such as a plug-in or software development kit (SDK) set in the application located in the local terminal. This embodiment does not specifically limit this.

[0050] It is understandable that the above application may be a local program (native App) installed on the terminal (ie, the client), or may be a web page program (web App) of a browser on the terminal, which is not particularly limited in this embodiment.

[0051] In addition, the terminals involved in the embodiments of the present application may include but are not limited to mobile phones, personal digital assistants (PDAs), wireless handheld devices, tablet computers (Tablet Computers), personal computers (PCs), and handheld computers (PDAs).

[0052] Hereinafter, various embodiments and examples according to the present application will be described with reference to the accompanying drawings.

[0053] <Method Example>

[0054] Figure 1 This is a flowchart of a method for processing presentation documents provided by an embodiment of the present application. It should be noted that the presentation document method provided by the embodiment of the present application can be executed on the server side, or on the client side, or part on the server side and part on the client side. Hereinafter, an example of execution on the server side will be used for illustration.

[0055] As Figure 1 shown, the method includes the following steps S110 to S140.

[0056] Step S110: Obtain at least one beautification template that matches the presentation document in a preset beautification dimension; wherein, the presentation document includes multiple slides, and each beautification template includes multiple slide templates corresponding one by one to the multiple slides.

[0057] It should be noted that the above-mentioned presentation document may include all the slides of a PPT, or may include some slides of a PPT. For example, a PPT consists of 20 slides (i.e., slides 1 - 20), and the above-mentioned presentation document may be all the slides, i.e., slides 1 - 20, or may be some slides, such as slides 1 - 10. The multiple slides of the presentation document can be multiple slides manually selected by the user from a PPT, or can be multiple slides automatically selected according to a preset selection rule. There can be various preset selection rules. For example, select page numbers as specified page numbers, such as the specified page numbers are 1 to m, where m satisfies: m is a natural number and 0 < m < n, where n is the maximum page number in a PPT, and n is a natural number and 0 < n; or select even page numbers, or select odd page numbers, etc. The embodiment of the present application does not limit the preset selection rule.

[0058] There can be various preset beautification dimensions. In the embodiment of the present application, the preset beautification dimension may include at least one of the following: style dimension, layout dimension, color matching dimension, and text dimension.

[0059] The style dimension corresponds to the design style of the presentation document. The beautification template under the style dimension is used to set the overall design style of the presentation document.

[0060] The layout dimension corresponds to the layout of each object in the presentation document. The beautification template under the layout dimension is used to set the position and size of each object in the presentation document.

[0061] The color matching dimension corresponds to the slide colors of each slide in the presentation document. The beautification template under the color matching dimension is used to set the colors of color-filled objects in the presentation document. Color-filled objects can be, for example, the slide background layer, the background layer of structural objects, etc.

[0062] The text dimension corresponds to the text in the presentation. The text dimension's beautification templates are used to set the formatting information for the text in the presentation, such as the font, size, and style (e.g., whether to bold or italicize the text).

[0063] The multiple slide templates included in each beautification template are associated under a preset beautification dimension, that is, the designs of the multiple slide templates included in each beautification template on the preset beautification dimension are matching and coordinated, and can be regarded as a set.

[0064] For example, the preset beautification dimension is the style dimension, and the multiple slide templates included in each beautification template have matching and coordination in style design, and are a set, or can be considered to be of the same style. For example, if the beautification template is in the style of a small fresh style, then each of the multiple slide templates is in the style of a small fresh style, and it will not happen that some of the multiple slide templates are in the style of a small fresh style, while other slide templates are in styles other than the style of a small fresh style (such as Gothic style, retro style, etc.). Multiple slide modules have matching and coordination in design. For example, if the beautification template is in the style of a small fresh style, then the multiple slide templates form a set of small fresh styles, for example, the designs of the title, subtitle, background color, etc. are the same.

[0065] For example, at least one beautification template that matches the presentation in a preset beautification dimension may be from a preset template database.

[0066] A plurality of preset beautification templates may be pre-stored in the preset template database. In step S110, the template matching degree between the presentation and each preset beautification template under the preset beautification dimension may be calculated. When the template matching degree is greater than the preset template matching degree threshold, the preset beautification template corresponding to the template matching degree is used as a beautification template that matches the presentation under the preset beautification dimension, and the beautification template is obtained from the template database.

[0067] As another example, at least one beautification template that matches the presentation under a preset beautification dimension may also be a template generated in real time (ie, generated online).

[0068] The execution process of step S110 is described in detail below through some embodiments.

[0069] In some embodiments, the preset beautification dimension is a style dimension. In this case, Figure 2 As shown, the execution process of step S110 may include steps S210 to S230.

[0070] Step S210: When the preset beautification dimension is the style dimension, a target scene is determined according to the data content in the presentation.

[0071] When the preset beautification dimension is the style dimension, the design style of the presentation can be the style that reflects the scene corresponding to the data content in the presentation, such as speech scenes, meeting scenes, entertainment scenes, education and training scenes, etc. This application does not limit the type of scene.

[0072] The data content in the presentation can be text (e.g., words, numbers, English words, etc.), pictures, videos, audio, etc. When determining the target scenario based on the data content in the presentation, content analysis can be performed on the data content, and the corresponding target scenario can be determined based on the analysis results of the content analysis.

[0073] When performing content analysis on data content, if the data content is text, semantic analysis can be performed on the text to obtain the meaning that the text wants to express, and the analysis result of the semantic analysis is used as the analysis result of the content analysis on the text.

[0074] When the data content is a picture (or video), image recognition is performed on the picture or video to identify the main information contained in the picture or video, and the recognition result of the image recognition is used as the analysis result of the content analysis of the image (or video).

[0075] When the data content is audio, speech recognition is performed on the audio to identify the information content contained in the audio, and the recognition result of the speech recognition is used as the analysis result of the content analysis of the text.

[0076] When determining the corresponding target scenario based on the content analysis results, key information (e.g., keywords) may be extracted from the content analysis results, and then the scenario with the highest correlation with the key information from multiple preset scenarios may be selected as the target scenario. For example, the multiple preset scenarios may include a lecture scenario, a meeting scenario, an entertainment scenario, an education and training scenario, etc. If the keyword extracted from the content analysis results is classroom, and the scenario with the highest correlation with classroom is an education and training scenario, then the target scenario may be determined to be the education and training scenario.

[0077] When obtaining the association between each preset scene and a keyword from multiple preset scenes, for example, description information (such as a label) can be set for each scene in the multiple preset scenes in advance, and the similarity between the description information and the keyword of each scene can be calculated to obtain the similarity between each preset scene and the keyword.

[0078] When determining the target scenario based on the data content in the presentation, the target scenario can be determined based on the data content in all slides in the presentation, or the target scenario can be determined based on the data content in some slides in the presentation, so as to reduce the amount of data to be processed in determining the target scenario, reduce the system load, and improve the processing response efficiency.

[0079] When determining a target scene based on the data content of some slides in a presentation, the page type of each slide in the presentation may be first identified. Page types in a presentation may include one or more of the following: cover page, table of contents page, transition page, main text page, and end page. The target scene is then determined based on the data content of a first slide in the presentation, which has a first page type. The first page type includes one or more of the following: cover page, table of contents page, main text page, and end page.

[0080] Step S220: determining style information according to the target scene.

[0081] In some embodiments, the target scene can be directly determined as the style information. For example, if the target scene is an education and training scene, the style information can be determined as the education and training scene. For example, the style information includes a style tag, and directly determining the target scene as the style information can be directly using the target scene as the tag content of the style tag.

[0082] In other embodiments, to increase the variety of styles provided to users, the style information may include first style information related to the target scene and second style information designed based on the viewer's perception, such as "fresh," "minimalist," "literary," and so on. In this case, the target scene can be directly used as the first style information, and then the second style information set by the user or the system default can be obtained to obtain style information composed of the first and second style information. For example, if the style information includes a style tag, determining the target scene as the style information may mean directly using the first and second style information as the tag content of the style tag.

[0083] Step S230: Acquire at least one first beautification template that matches the style information, and use the at least one first beautification template as at least one beautification template that matches the presentation in the style dimension.

[0084] According to the above style information, for multiple first-setting beautification templates, the first matching degree between each first-setting beautification template and the presentation is calculated. When the first matching degree is greater than the preset style matching degree threshold, the first-setting beautification template corresponding to the first matching degree is used as the first beautification template, and at least one first beautification template is obtained, and it is used as at least one beautification template that matches the presentation in the style dimension.

[0085] Calculating the first degree of matching between each first-setting beautification template and the presentation based on the above-mentioned style information can, for example, be: for any first-setting beautification template, calculating the similarity between the preset style information preset in the first-setting beautification template and the style information of the presentation, and using the similarity as the first degree of matching between the preset beautification template and the presentation.

[0086] The plurality of first beautification templates can be pre-set by those skilled in the art according to actual conditions and pre-stored in a preset template database. For example, the plurality of first beautification templates can be a plurality of preset beautification templates in a preset template database.

[0087] In some embodiments, the preset beautification dimension is the layout dimension. In this case, Figure 3 As shown, the execution process of step S110 may include steps S310 to S320.

[0088] Step S310: When the beautification dimension is the layout dimension, obtain object information of at least one slide in the presentation; the object information includes the object type and the number of each object type. The object information of a slide is the information of the objects in the slide. The objects in the slide can be structural objects or material objects. The object type of a structural object includes any of the following: title, subtitle, and body; the object type of a material object includes any of the following: text type (the object is text), image type (the object is an image), video control type (the object is a video control), audio control type (the object is an audio control), and / or table type (the object is a table).

[0089] When obtaining object information of at least one slide in a presentation, you can obtain object information in all slides in the presentation, or you can obtain object information in some slides in the presentation, so as to reduce the amount of data processed, reduce system load, and improve processing response efficiency.

[0090] When obtaining object information from some slides in a presentation, the page type of each slide in the presentation may be first identified. The page types in a presentation may include one or more of the following: cover page, table of contents page, transition page, body page, and end page. After identifying the page type of each slide in the presentation, object information is obtained for a second slide in the presentation whose page type is a second type. The second type includes body pages.

[0091] When obtaining the object type of an object in at least one slide in a presentation, the presentation (i.e., at least one object in the presentation) can be input into a preset type recognition model, and the type of each object in the output result of the type recognition model can be obtained as the object type of the object in the presentation.

[0092] The type recognition model can be trained on multiple pre-collected samples. Each sample includes a sample object and manually annotated type information for the sample object. In this case, when an object is input into the type recognition model, the type of the model's output is the object type of the object.

[0093] After obtaining the object type of each object, the number of each object type is counted to obtain the number of each object type.

[0094] Step S320: Acquire at least one second beautification template that matches the object information as at least one beautification template that matches the presentation in the layout dimension.

[0095] For the object information of at least one slide in a presentation, and multiple second-set beautification templates, calculate the 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 beautification template. When the second matching degree is greater than a preset typesetting matching degree threshold, use the preset beautification template corresponding to the second matching degree as the second beautification template to obtain at least one second beautification template, and use the second beautification template as at least one beautification template that matches the presentation in the typesetting dimension.

[0096] The plurality of second set beautification templates can be pre-set by those skilled in the art according to actual conditions and pre-stored in a preset template database. For example, the plurality of second set beautification templates can be a plurality of preset beautification templates in a preset template database.

[0097] In some embodiments, the preset beautification dimension is the color matching dimension. In this case, Figure 4 As shown, the execution process of step S110 may include steps S410 to S430.

[0098] Step S410: when the beautification dimension is the color matching dimension, the page type of each slide in the presentation is obtained.

[0099] The types of pages in a presentation can include one or more of the following: cover page, table of contents, transition pages, body pages, and closing pages.

[0100] Step S420: Identify the slide theme color of the third slide of the third type of page in the presentation, and determine the target color according to the slide theme color.

[0101] The third type may include one or more of the following: a cover page, a transition page, and an end page. A slide theme color in the third slide is identified. The slide theme color may include all colors included in the slide, such as the material object color of each material object in the third slide, the fill color of each structural object, and the background layer color of the slide.

[0102] When determining the target color based on the slide theme color, the influence of each slide theme color on each object in the slide can be determined, such as the visibility of each slide theme color relative to each object, and the slide theme color with the least influence is determined as the target color.

[0103] The method of determining the influence of each slide theme color on each object in the slide can be set by those skilled in the art according to actual conditions.

[0104] Step S430: Acquire at least one third beautification template that matches the target color, and use the at least one third beautification template as at least one beautification template that matches the presentation in the color matching dimension.

[0105] For multiple third-setting beautification templates, the third matching degree between the colors in each third-setting beautification template and the target color can be calculated. When the third matching degree is greater than the preset color matching degree threshold, the preset beautification template corresponding to the third matching degree is used as the third beautification template to obtain at least one third beautification template, and the third beautification template is used as at least one beautification template that matches the presentation in the color matching dimension.

[0106] The plurality of third set beautification templates can be pre-set by those skilled in the art according to actual conditions and pre-stored in a preset template database. For example, the plurality of third set beautification templates can be a plurality of preset beautification templates in a preset template database.

[0107] In some embodiments, the preset beautification dimension is the text dimension. In this case, Figure 5 As shown, the execution process of step S110 may include steps S510 to S520.

[0108] Step S510: When the beautification dimension is a text dimension, obtain text setting information of the text in the presentation.

[0109] The text setting information may include, for example, at least one of the following: font setting information, text effect information, font and font size, etc.

[0110] For example, the font setting information includes bold setting information and italic setting information. The above setting information includes setting and not setting.

[0111] For example, for bold setting information, "Example 1" is not set, and "Example 2" is set; for italic setting information, "Example 1" is not set, and "Example 2" is set.

[0112] For example, the text effect information includes underline setting information, strikethrough setting information, superscript setting information, and subscript setting information.

[0113] Underline refers to the underline set for the text. For the underline setting information, "Example 1" is not set. Example 2 " is set; for the setting information of the strikethrough, the strikethrough refers to the strikethrough set for the text, for example, "Example 1" is not set, and "Example 2" is set; for the setting information of the superscript, the superscript refers to setting the text as a superscript, for example, "Example 1" is not set, " 示例二 " is set; for subscript setting information, subscript means setting the text as subscript, for example, "Example 1" is not set, " 示例二 ” for settings.

[0114] Font refers to the writing style of text, such as regular script, cursive script, Songti, Fangsongti, and bold. Font size is used to set the size of text, such as No. 1, Small No. 1, Small No. 2, Small No. 2, No. 3, Small No. 3, No. 4, Small No. 4, No. 5, Small No. 5, No. 6, Small No. 6, No. 7, and No. 7.

[0115] In the text dimension, text in the same structural object has the same font size, while text in different structural objects has different font sizes. The font settings of different structural objects on the same slide should be consistent and coordinated. For example, the title font size should be the largest, the subtitle font size should be the second largest, and the body text font size should be the smallest.

[0116] Step S520: Acquire at least one fourth beautification template that matches the text setting information, and use the at least one fourth beautification template as at least one beautification template that matches the presentation in the text dimension.

[0117] The fourth beautification template includes text setting information of at least one of the following: title, subtitle, and body text. In other words, the fourth beautification template includes text setting information of the title, subtitle, and / or body text.

[0118] For multiple fourth-setting beautification templates, the fourth matching degree between the text setting information in each fourth-setting beautification template and the text setting information of the presentation can be calculated. When the fourth matching degree is greater than a preset text matching degree threshold, the fourth-setting beautification template corresponding to the fourth matching degree is used as the fourth beautification template to obtain at least one fourth beautification template, and the fourth beautification template is used as at least one beautification template that matches the presentation in the text dimension.

[0119] The plurality of fourth set beautification templates can be pre-set by those skilled in the art according to actual conditions and pre-stored in a preset template database. For example, the plurality of fourth set beautification templates can be a plurality of preset beautification templates in a preset template database.

[0120] 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.

[0121] Step S120: displaying at least one beautification template in a preset display interface.

[0122] In a preset display interface, the at least one beautification template obtained in step S110 is displayed, so that the user can select a desired target beautification template according to the displayed at least one beautification template (corresponding to step S130 ).

[0123] For example, Figure 6 As shown, the preset beautification dimension is the style dimension (corresponding to Figure 6 In the case of full-text skinning of part 60), if the style information obtained in step S110 is education and training and simplicity, at least one beautification template under the style information of education and training and simplicity is displayed in the preset display interface.

[0124] For example, when the preset beautification dimension is the typesetting dimension, Figure 7 As shown in the middle area A, at least one beautified template obtained according to the presentation in the layout dimension is displayed in the preset display interface.

[0125] For example, when the preset beautification dimension is the color matching dimension, Figure 8 As shown in the middle area C, at least one beautification template obtained according to the presentation in the color matching dimension is displayed in the preset display interface.

[0126] For example, when the preset beautification dimension is the text dimension, Figure 9 As shown in the middle area E, at least one beautified template obtained according to the presentation in the text dimension is displayed in a preset display interface.

[0127] Step S130: In response to a first selection operation on at least one beautification template, determining a selected target beautification template.

[0128] The at least one beautifying template can be selected in the at least one beautifying template selection interface, thereby performing a selection operation for the at least one beautifying template. In this case, in step S130, in response to the selection operation for the at least one beautifying template, the beautifying template selected by the selection operation can be used as the target beautifying template for the preset beautifying dimension. The selection operation can be an operation performed by the user on the at least one beautifying template as needed, or it can be an operation automatically triggered by the terminal or server.

[0129] Step S140: adapting each slide in the presentation to a corresponding slide template in the target beautification template to obtain a presentation preview image.

[0130] Each slide template in a beautifying template has a corresponding page type. These page types include at least: cover page, table of contents, transition page, body page, and end page. A presentation includes multiple slides, each of which has a corresponding page type. These page types include one or more of the following: cover page, table of contents, transition page, body page, and end page.

[0131] For multiple slide templates of the target beautification template and multiple slides in the presentation, the slide templates and slides of the same page type are matched, and each slide in the presentation is adapted to its corresponding slide template to obtain a presentation preview image for user preview and selection.

[0132] For example, Figure 10 As shown, when the preset beautification dimension is the style dimension, at least one beautification template obtained based on the style dimension is displayed in area G of the display interface, and a presentation preview is displayed in area H of the display interface. After the user selects a beautification template in area G, area H displays a preview of the presentation after adapting the presentation to the user-selected beautification template.

[0133] For example, when the preset beautification dimension is the typesetting dimension, Figure 7 As shown in area B, a preview of the presentation under the layout dimension is displayed in the preset display interface.

[0134] For example, when the preset beautification dimension is the color matching dimension, Figure 8 As shown in area D, a preview image of the presentation under the color matching dimension is displayed in the preset display interface.

[0135] For example, when the preset beautification dimension is the text dimension, Figure 9 As shown in the middle area F, a preview image of the presentation in the text dimension is displayed in the preset display interface.

[0136] Through the embodiments of the present application, the overall matching of multiple slides in a presentation in terms of style, color, etc. can be made matching and coordinated, thereby achieving the purpose of beautifying the overall appearance of multiple slides in the presentation.

[0137] For example, Figure 11 As shown, under the layout dimension, Figure 11 Part A in the figure shows the presentation before beautification. Figure 11 Part B shows the presentation after being beautified in terms of layout. Figure 11 By comparing Part A and Part B in the presentation, it can be clearly seen that the matching and coordination of the layout dimensions of multiple slides in the presentation have been adjusted, and the overall matching and coordination have been effectively improved compared to before beautification.

[0138] For example, Figure 12 As shown, under the layout dimension, Figure 12 Part A in the figure shows the presentation before beautification. Figure 12 Part B in the figure shows the presentation after being beautified in terms of font dimensions. Figure 12 By comparing Part A and Part B in the presentation, it can be clearly seen that the matching and coordination of the font dimensions of multiple slides in the presentation have been adjusted, and the overall matching and coordination have been effectively improved compared to before beautification.

[0139] In an embodiment of the present application, at least one beautification template that matches a presentation under a preset beautification dimension can be obtained; wherein, the presentation includes multiple slides, and each beautification template includes multiple slide templates corresponding one to one to the multiple slides; at least one beautification template is displayed in a preset display interface; in response to a selection operation for at least one beautification template, the selected target beautification template is determined; each slide in the presentation is adapted to the corresponding slide template in the target beautification template to obtain a preview image of the presentation. It can be seen that the embodiment of the present application can effectively solve the problem that the user has to perform cumbersome and time-consuming operations when beautifying multiple slides in a presentation, and can beautify multiple slides as a whole under the preset beautification dimension, so that the overall matching of multiple slides in the presentation in terms of style, color, etc. is matched and coordinated, effectively improving the user's office efficiency.

[0140] In some embodiments, for the same presentation, the user may beautify the presentation under more than one beautification dimension, that is, the presentation has multiple preset beautification dimensions. In this case, after executing step S140, multiple target beautification templates corresponding to the multiple preset beautification dimensions are obtained, and then each target beautification template in the multiple target beautification templates is sequentially used as the selected beautification template, and each slide in the presentation is sequentially adapted to the corresponding slide template in the selected beautification template. After adapting all target beautification templates, a beautified presentation is obtained; wherein, the presentation retains the beautification result after the previous adaptation to the selected beautification template the next time it is adapted to the selected beautification template. In other words, the beautification results under multiple different beautification dimensions can be superimposed, and the superimposed beautification result is used as the final beautification result.

[0141] In some embodiments, after obtaining a beautified presentation, i.e., after superimposing the beautification results under multiple different beautification dimensions, there may still be significant differences in the consistency of objects on each slide in the beautified presentation under each beautification dimension. For example, the color of the title may not match the overall style of the presentation, or the size of the text on a slide may not be coordinated with other objects on the slide (e.g., title, table, and / or image). In this case, the objects with significant consistency differences are adjusted to ensure that the objects on each slide in the presentation maintain a high degree of consistency with the overall presentation, further enhancing the beautification effect.

[0142] Specifically, in an embodiment of the present application, the consistency matching degree between the first object and the second object in the target slide can 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 in the target slide except the first object; when the consistency matching degree is less than the preset matching degree, the first object is subjected to consistency adjustment processing to obtain the 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, that is, the consistency matching degree between the adjusted first object and the second object is greater than or equal to the preset matching degree.

[0143] In an embodiment of the present application, all parameters that can affect the coordination between multiple objects in a presentation can be used as parameters corresponding to the consistency matching degree. For example, size, color, and position. In this case, the consistency matching degree may include, for example, any of the following: size matching degree, color matching degree, and position matching degree. The consistency matching degree may also be the sum of the above three (size matching degree, color matching degree, and position matching degree) after assigning corresponding weights.

[0144] For example, the size matching degree, i.e., the size matching degree, may be the ratio of the target size of the first object to the target size of the second object. The target size may be, for example, the maximum size or the average of the maximum size and the minimum size.

[0145] For example, color matching refers to the degree of color similarity, such as the degree of RGB value similarity. The calculation method of the color similarity can be set by those skilled in the art according to actual conditions.

[0146] For example, position matching refers to the degree of proximity of locations. When the proximity is too high, multiple objects may overlap, making them difficult to distinguish clearly. Therefore, calculating the position matching can effectively avoid the result of multiple objects overlapping.

[0147] It is understandable that the above consistency matching is merely exemplary. In specific implementation, the present application embodiment does not limit the parameters corresponding to the consistency matching. For example, the background layer can be treated as an object and the consistency adjustment can be performed on the color of the background layer alone.

[0148] The solution in this application is described in detail below through a specific example. Figure 13 As shown, the execution body includes a server (ie Figure 13 Server) and PC (i.e. Figure 13 Client) as an example, start the function (the process sequence corresponds to Figure 13 ①) is to start the presentation processing function in this application. The startup method can be that the user manually operates the preset startup control to start it, or it can be spontaneously started after the preset conditions are met. The above preset conditions can be set by those skilled in the art according to actual conditions, such as starting once every preset time, or starting after detecting that the user has finished editing the end page, etc.

[0149] After the function is started, the server executes the functions of multi-page parallel recognition and parallel matching in sequence. After the server completes the parallel matching function, the client executes the functions of step-by-step application, stylization engine, and download in sequence.

[0150] The function of multi-page parallel recognition is to recognize each slide in multiple slides of the presentation, and the process of recognizing each slide in multiple slides is parallel, that is, each slide in multiple slides is recognized at the same time.

[0151] Specifically, if Figure 13 As shown, for Figure 13 The "Multi-page Parallel Identification" section includes page type identification (corresponding to Figure 13 "Page type identification") function, structure identification (corresponding to Figure 13"Structure Recognition") function, and theme color recognition (corresponding to Figure 13 Theme color recognition) function in .

[0152] Specifically, in Figure 13 Page type recognition identifies the slide's page type, which can include any of the following: cover page, table of contents page, transition page, body page (also known as content page), and end page. Structure recognition identifies the type and position of each object in a slide. Theme color recognition identifies the slide's page color.

[0153] After executing Figure 13 After the "multi-page parallel recognition" process in Figure 13 The function of "parallel matching" (process sequence corresponds to Figure 13 (2)

[0154] The parallel matching function is to match each slide in multiple slides of the presentation (i.e., for each slide, the slide is matched with multiple preset templates), and the process of matching each slide in multiple slides is parallel, i.e., each slide in multiple slides is matched at the same time.

[0155] Specifically, for Figure 13 The "Parallel Matching" section in the .NET Framework includes structural matching (corresponding to Figure 13 "Structure matching") function, matching degree calculation (corresponding to Figure 13 "Matching calculation") function, beautification characteristics (corresponding to Figure 13 "Beautification Features") and template recommendations (corresponding to Figure 13 Template Recommendation in .

[0156] It should be noted that Figure 13 The function of the "matching" part of the configuration information only shows the function of matching the page structure, and does not show the function of matching other configuration information (such as the page color, page element characteristics, and / or page style mentioned in the above embodiment). In specific implementation, the implementation of the matching function related to the above other configuration information is similar to that of the page structure. For details, please refer to Figure 13 The configuration information in the page structure is implemented.

[0157] Specifically, in Figure 13In the structure matching, the configuration information to be matched is selected according to the preset beautification dimension, and the matching degree calculation is to calculate the matching degree between the preset template and the configuration information to be matched. For example, under the preset beautification dimension, each preset template includes multiple preset slide templates. According to the configuration information to be matched of each slide in the multiple slides and the number of each page type in the multiple slides, multiple slide templates to be matched corresponding to the multiple slides are determined in the multiple preset slide templates of each preset template; the matching degree of each slide in the multiple slides in the presentation and the corresponding slide template to be matched is calculated, and all the matching degrees obtained are averaged to obtain the matching degree of the presentation and the preset template.

[0158] The configuration information to be matched under the preset beautification dimension can refer to the corresponding description in the above embodiment. For example, the configuration information to be matched under the style dimension is the page style, and the configuration information to be matched under the layout dimension is the position and size of each object in the slide of the presentation; the configuration information to be matched under the color dimension is the color of the color-filled object in the slide of the presentation; the configuration information to be matched under the text dimension is the formatting information of the text in the slide of the presentation.

[0159] The beautification feature is based on the matching degree between the presentation and the preset template obtained above, and the preset template with a matching degree greater than the matching degree threshold is used as the beautification template matched under the preset beautification dimension, thereby obtaining at least one beautification template that matches the presentation under the preset beautification dimension.

[0160] The implementation of the functions in "Multi-page parallel recognition" and the implementation of the functions of "structure matching", "matching degree calculation", and "beautification characteristics" in "parallel matching" correspond to the process of obtaining at least one beautification template that matches the presentation under the preset beautification dimensions in the above step S110.

[0161] Template recommendation determines the template to be recommended, that is, takes the at least one beautification template as the template to be recommended and recommends it to the user. Template recommendation corresponds to step S120 in the above embodiment.

[0162] After executing Figure 13 After the "parallel matching" process in Figure 13 The "step-by-step application" function (process sequence corresponds to Figure 13 (3)

[0163] The step-by-step application function is to apply each beautified template to each slide in multiple slides of the presentation.

[0164] Specifically, for Figure 13 The "Step-by-step application" section in the Figure 13"Download User Documents") function, select the template to apply (corresponding to Figure 13 "Select a template") in the function and application characteristics (corresponding to Figure 13 "Application Features") and generate templates and thumbnails (corresponding to Figure 13 Generate templates and thumbnails) in the

[0165] Specifically, in Figure 13 Downloading a user document extracts the slide information for each slide in the presentation. Slide information includes at least one object. For example, any target object in the at least one object can be a structure object or a material object. Structural objects can be, for example, objects related to the structural components of a slide, such as a title object, a subtitle object, or a body object. Material objects can include, for example, text objects, image objects, video control objects, audio control objects, table objects, and other material-related objects. A structure object can contain any material object.

[0166] Selecting an application template means selecting one of at least one beautification template as the target beautification template (corresponding to step S130). The application characteristics determine the beautification processing information corresponding to each slide information in the multiple slides of the presentation based on the slide information of each slide and the slide template corresponding to the applied template. The beautification processing information is based on the multiple objects in the slide information and the information generated by the slide template after the multiple objects are re-beautified (e.g., layout and splicing). For example, the beautification processing information can be puzzle information generated by puzzle processing multiple images, or process information generated by generating a flowchart from text content, etc.

[0167] Generating templates and thumbnails corresponds to the execution process of step S140 in the above embodiment. The implementation process of downloading user documents, application characteristics and generating templates and thumbnails can be specifically referred to the corresponding description in the above embodiment, which will not be repeated here.

[0168] After executing Figure 13 After the "step-by-step application" process in Figure 13 The function of "stylization engine" (process sequence corresponds to Figure 13 ④).

[0169] Specifically, for Figure 13 The "style engine" part in the , its functions include presentation layer (corresponding to Figure 13 The "presentation layer" in the function and structure layer (corresponding to Figure 13 The function of the "structure layer" in Figure 13 "Background layer") function, global color correction (corresponding to Figure 13The "Global Color Correction" function in

[0170] The implementation of the "stylization engine" function corresponds to the fact that the objects on each slide of the beautified presentation may still have significant differences in consistency under each beautification dimension in the above embodiments. For example, the color of the title may not match the overall style of the presentation, or the size of the text on the slide may not be coordinated with other objects on the slide (such as the title, table, and / or image). In this case, the objects with significant consistency differences are adjusted to ensure that the objects on each slide of the presentation maintain a high degree of consistency with the presentation as a whole, further enhancing the beautification effect.

[0171] The function of the presentation layer is to adjust the consistency of the overall style in the presentation, such as the size of the object in the slide; the function of the background layer is to adjust the consistency of the overall style in the background layer, such as the background color; the function of the structure layer is to adjust the consistency of the overall style in the structure, such as the position of the object; the function of the global color correction is to adjust the consistency of the overall style based on the colors of all objects in a slide. The specific function implementation process can be found in the corresponding description in the above embodiment, which will not be repeated here.

[0172] After executing Figure 13 After the "Stylization Engine" process in Figure 13 The "Download Application" function (the process sequence corresponds to Figure 13 ⑤).

[0173] Specifically, for Figure 13 The "Download App" section in the Figure 13 "Generate preview image") function, document download (corresponding to Figure 13 "Document Download" function in the .

[0174] Specifically, in Figure 13 In the "Generate Preview Image" dialog box, you can regenerate the presentation preview image based on the consistency adjustment results in the "Stylization Engine". Downloading the document means downloading the generated preview image.

[0175] <Equipment Example>

[0176] Figure 14 : is a functional structure diagram of a presentation processing device according to some embodiments of the present application. Figure 14 As shown, the presentation processing device 140 may include: an acquisition module 141 , a display module 142 , a determination module 143 and a processing module 144 .

[0177] The acquisition module 141 is used to acquire at least one beautification template that matches the presentation under a preset beautification dimension; wherein the presentation includes multiple slides, and each beautification template includes multiple slide templates corresponding to the multiple slides.

[0178] The display module 142 is configured to display at least one beautification template in a preset display interface.

[0179] The determination module 143 is configured to determine a selected target beautification template in response to a selection operation on at least one beautification template.

[0180] The processing module 144 is used to adapt each slide in the presentation to the corresponding slide template in the target beautification template to obtain a presentation preview image.

[0181] One beneficial effect of the embodiment of the present application is that it is possible to obtain at least one beautification template that matches a presentation under a preset beautification dimension; wherein the presentation includes multiple slides, and each beautification template includes multiple slide templates corresponding one to one to the multiple slides; at least one beautification template is displayed in a preset display interface; in response to a selection operation for at least one beautification template, the selected target beautification template is determined; each slide in the presentation is adapted to the corresponding slide template in the target beautification template to obtain a preview image of the presentation. It can be seen that the embodiment of the present application can effectively solve the problem that the user's operation is cumbersome and time-consuming when beautifying multiple slides in a presentation, and can beautify multiple slides as a whole under the preset beautification dimension, so that the overall matching of multiple slides in the presentation in terms of style, color, etc. is matched and coordinated, effectively improving the user's office efficiency.

[0182] Optionally, the acquisition module includes: a scene determination submodule, which is used to determine the target scene according to the data content in the presentation when the preset beautification dimension is the style dimension; a style determination submodule, which is used to determine the style information according to the target scene; and a style acquisition submodule, which is used to acquire at least one first beautification template that matches the style information, and use the at least one first beautification template as at least one beautification template that matches the presentation under the style dimension.

[0183] Optionally, the scene determination submodule is configured to: identify the page type of each slide in the presentation; and determine the target scene according to the data content in the first slide of the first type in the presentation.

[0184] Optionally, the acquisition module includes: an information acquisition sub-module, used to obtain object information of at least one slide in a presentation when the beautification dimension is a typesetting dimension; wherein the object information includes the object type and the quantity of each object type; an information matching sub-module, used to obtain at least one second beautification template that matches the object information, as at least one beautification template that matches the presentation under the typesetting dimension.

[0185] Optionally, the information acquisition submodule is configured to identify the page type of each slide in the presentation; and acquire object information in a second slide of the second type in the presentation.

[0186] Optionally, the acquisition module includes: a type acquisition sub-module, used to obtain the page type of each slide in the presentation when the beautification dimension is the color matching dimension; a color recognition sub-module, used to identify the slide theme color in the third slide whose page type is the third type in the presentation; a color determination sub-module, used to determine the target color according to the slide theme color; a color matching sub-module, used to obtain at least one third beautification template that matches the target color, and use the at least one third beautification template as at least one beautification template that matches the presentation under the color matching dimension.

[0187] Optionally, the acquisition module includes: a text acquisition sub-module, used to obtain text setting information of text in the presentation when the beautification dimension is a text dimension; a text matching sub-module, used to obtain at least one fourth beautification template that matches the text setting information, and use the at least one fourth beautification template as at least one beautification template that matches the presentation under the text dimension; wherein the fourth beautification template includes at least one of the following text setting information: title, subtitle, and text.

[0188] Optionally, the presentation has multiple preset beautification dimensions, and the above-mentioned device also includes: a beautification module, which is used to obtain multiple target beautification templates corresponding to the multiple preset beautification dimensions 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; each target beautification template in the multiple target beautification templates is used as the selected beautification template in turn, and each slide in the presentation is adapted to the corresponding slide template in the selected beautification template in turn, and after all the target beautification templates are adapted, a beautified presentation is obtained; wherein, the presentation retains the beautification result after the last adaptation to the selected beautification template when it is adapted to the selected beautification template next time.

[0189] Optionally, the above-mentioned device also includes: a consistency adjustment module, which is used to obtain the consistency matching degree between the first object and the second object in the target slide after the beautification 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 in the target slide except the first object; when the consistency matching degree is less than the preset matching degree, the first object is subjected to consistency adjustment processing to obtain the 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.

[0190] Figure 15 is a schematic diagram of the hardware structure of an electronic device according to another embodiment.

[0191] like Figure 15 As shown, the electronic device 150 includes a processor 151 and a memory 152, wherein the memory 152 is used to store an executable computer program, and the processor 151 is used to execute a method such as any of the above method embodiments under the control of the computer program.

[0192] Each module of the above presentation processing device 140 can be implemented by the processor 151 in this embodiment executing a computer program stored in the memory 152, or can be implemented by other circuit structures, which is not limited here.

[0193] The present application may be a system, method and / or computer program product. The computer program product may include a storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present application.

[0194] A storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. The storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples of storage media (a non-exhaustive list) include: a portable computer disk, 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 disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination thereof. As used herein, a storage medium is not to be construed as a transient 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., a light pulse through a fiber optic cable), or an electrical signal transmitted through an electrical wire.

[0195] The computer-readable program instructions described herein can be downloaded from a storage medium to each computing / processing device, or downloaded 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 can 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 the computer-readable program instructions from the network and forwards the computer-readable program instructions to the storage medium in each computing / processing device for storage.

[0196] The computer program instructions for performing the operation of the present application can be assembly instructions, instruction set architecture (ISA) instructions, machine 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, wherein the programming language includes object-oriented programming languages ​​such as Smalltalk, C++, and conventional procedural programming languages ​​such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or executed completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer by any type of network including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (such as by using an Internet service provider to connect to the Internet). In certain embodiments, by utilizing the state information of computer-readable program instructions to personalize electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), the electronic circuits can execute computer-readable program instructions, thereby realizing various aspects of the present application.

[0197] Various aspects of the present application are described herein with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.

[0198] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine such that when these instructions are executed by the processor of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

[0199] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

[0200] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a part of a module, program segment or instruction, and the part of the module, program segment or instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are all equivalent.

[0201] The embodiments of the present application have been described above. The above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, their practical applications, or technical improvements in the marketplace, or to enable other persons skilled in the art to understand the embodiments disclosed herein. The scope of this application is defined by the appended claims.

Claims

1. A presentation processing method, characterized in that: include: Acquire at least one beautification template that matches the presentation under a preset beautification dimension; wherein the presentation includes multiple slides, and each beautification template includes multiple slide templates corresponding one-to-one to the multiple slides; Displaying the at least one beautification template in a preset display interface; In response to a first selection operation on the at least one beautification template, determining a selected target beautification template; Adapting each slide in the presentation to a corresponding slide template in the target beautification template to obtain a presentation preview image; In the case where the presentation document has multiple preset beautification dimensions, obtaining multiple target beautification templates corresponding one-to-one to the multiple preset beautification dimensions; Selecting each target beautification template from the plurality of target beautification templates as a selected beautification template in turn, and adapting each slide in the presentation to a corresponding slide template in the selected beautification template in turn, and obtaining a beautified presentation after all target beautification templates have been adapted; Obtaining a consistency match between a first object and a second object in a target slide; wherein the target slide is any slide in the beautified presentation; the first object is any object in the target slide, and the second object is all objects in the target slide except the first object; When the consistency matching degree is less than the preset matching degree, the first object is subjected to consistency adjustment processing 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; the consistency matching degree includes at least one of the following: size matching degree, color matching degree, and position matching degree.

2. The method according to claim 1, characterized in that The acquiring of at least one beautification template that matches the presentation under a preset beautification dimension includes: In a case where the preset beautification dimension is a style dimension, determining a target scene according to the data content in the presentation; determining style information according to the target scene; At least one first beautification template matching the style information is obtained, and the at least one first beautification template is used as at least one beautification template matching the presentation document under the style dimension.

3. The method according to claim 2, characterized in that The determining of the target scene according to the data content in the presentation includes: Identifying the page type of each slide in the presentation; The target scene is determined according to the data content in the first slide of the presentation document whose page type is the first type.

4. The method according to claim 1, wherein The acquiring of at least one beautification template that matches the presentation under a preset beautification dimension includes: In the case where the beautification dimension is a typesetting dimension, obtaining object information of at least one slide in the presentation; wherein the object information includes object type and the number of each object type; At least one second beautification template matching the object information is obtained as at least one beautification template matching the presentation document under the layout dimension.

5. The method according to claim 4, characterized in that The acquiring of object information in at least one slide in the presentation includes: Identifying the page type of each slide in the presentation; Obtain object information in a second slide of a second type of page in the presentation.

6. The method according to any one of claims 1 to 5, characterized in that The acquiring of at least one beautification template that matches the presentation under a preset beautification dimension includes: When the beautification dimension is a color matching dimension, obtaining a page type of each slide in the presentation; Identifying a slide theme color in a third slide of a third type of page in the presentation, and determining a target color according to the slide theme color; At least one third beautification template that matches the target color is obtained, and the at least one third beautification template is used as at least one beautification template that matches the presentation in the color matching dimension.

7. The method according to any one of claims 1 to 5, characterized in that The acquiring of at least one beautification template that matches the presentation under a preset beautification dimension includes: In the case where the beautification dimension is a text dimension, obtaining text setting information of the text in the presentation; Obtain at least one fourth beautification template that matches the text setting information, and use the at least one fourth beautification template as at least one beautification template that matches the presentation under the text dimension; wherein the fourth beautification template includes at least one of the following text setting information: title, subtitle, and body text.

8. A presentation document processing device, characterized in that: include: An acquisition module, configured to acquire at least one beautification template that matches a presentation document under a preset beautification dimension; wherein the presentation document includes a plurality of slides, and each beautification template includes a plurality of slide templates corresponding one-to-one to the plurality of slides; A display module, configured to display the at least one beautification template in a preset display interface; a determination module, configured to determine a selected target beautification template in response to a first selection operation on the at least one beautification template; A processing module, configured to adapt each slide in the presentation to a corresponding slide template in the target beautification template to obtain a presentation preview image; A beautification module is configured to, when the presentation has multiple preset beautification dimensions, obtain multiple target beautification templates corresponding to the multiple preset beautification dimensions; sequentially select each of the multiple target beautification templates as a selected beautification template, and sequentially adapt each slide in the presentation to the corresponding slide template in the selected beautification template; after adapting all the target beautification templates, a beautified presentation is obtained; A consistency adjustment module is used to obtain a consistency matching degree between a first object and a second object in a target slide after the beautification module obtains the beautified presentation; wherein the target slide is any slide in the beautified presentation; the first object is any object in the target slide, and the second object is all objects in the target slide except the first object; when the consistency matching degree is less than a preset matching degree, consistency adjustment processing is performed 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; the consistency matching degree includes at least one of the following: size matching degree, color matching degree, and position matching degree.

9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to execute the computer program to implement the method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores a computer program, which implements the method according to any one of claims 1 to 7 when executed by a processor.

Citation Information

Patent Citations

  • Slide identification method and apparatus

    CN106934336A

  • Video template searching method and device, server and readable storage medium

    CN113094552A