A presentation method, device, computer storage medium and terminal
By grouping outline contents according to node levels and determining PPT templates based on feature vectors, the problem of poor PPT file generation effect in the prior art is solved, and higher quality PPT file generation and better demonstration effect are achieved.
Patent Information
- Application Number
- CN202010626318.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-01
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2040-07-01
AI Technical Summary
When generating PPT files in the prior art, the content of the split outline is based on the first-level outline as the pagination basis, resulting in poor demonstration effect of the generated PPT files. How to improve the generation quality of PPT files has become a problem to be solved.
By dividing the outline content into multiple groups according to the node level, the feature vectors of each group are calculated, the PPT template used to fill the outline content is determined based on the feature vector, and the outline content is filled into the template to generate a PPT file.
Through the method of determining templates through node level grouping and feature vectors, the generated PPT file corresponds to the structure of the outline content, improving the generation quality and demonstration effect of PPT file.
Smart Images

Figure CN113887180B_ABST
Abstract
Description
Technical Field
[0001] This article relates to but is not limited to office automation application technology, and in particular to a presentation method, device, computer storage medium and terminal. Background Art
[0002] With the application of outline editors, some users enter outline content through the outline editor and generate PPT presentation (PPT, PowerPoint) files based on the entered outline content; the outline content entered through the editor generally includes a main title and one or more first-level outline nodes, and the first-level outline node contains several levels of child nodes in a tree structure, such as: second-level nodes, third-level nodes, and fourth-level nodes. Figure 1 It is a schematic diagram of the outline content in the relevant technology, such as Figure 1 As shown, the outline content obtained through the outline editor includes: main title node, first-level outline node, author node, time node, second-level node and third-level node, etc.
[0003] In the related art, when generating a PPT file according to the outline content, it generally includes: simply splitting the outline content into several parts according to the rules set by the user, and generating a page of PPT with the content of each split part; Figure 2 Schematic diagram of generating PPT files for related technologies, such as Figure 2 As shown, the related technology takes each first-level outline and all the nodes it contains as the content of a page of PPT, and fills them into the corresponding PPT pages respectively to generate a PPT file.
[0004] The above method of generating PPT files generally uses the first-level outline as the basis for paging when splitting the outline content. The content of each page of the PPT determined by the split is also written into the PPT page by a simple filling method, resulting in poor presentation effect of the obtained PPT file. How to improve the generation quality of PPT files has become a problem to be solved. Summary of the invention
[0005] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0006] The embodiments of the present invention provide a method and device for generating a presentation, a computer storage medium and a terminal, which can improve the generation quality and presentation effect of a PPT file.
[0007] An embodiment of the present invention provides a method for generating a presentation, comprising:
[0008] Divide the outline content into two or more groups according to the node level according to the preset strategy;
[0009] Calculate the feature vector of each group obtained by the division; wherein the feature vector is used to represent the page structure of the presentation PPT page generated by the outline content contained in the group;
[0010] According to the calculated characteristic vectors of each group, a PPT template for filling the outline content contained in each group is determined;
[0011] Fill the outline content contained in each group into the determined PPT template to generate a PPT file.
[0012] On the other hand, an embodiment of the present invention further provides a computer storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method for generating the above-mentioned presentation is implemented.
[0013] In another aspect, an embodiment of the present invention further provides a terminal, comprising: a memory and a processor, wherein the memory stores a computer program; wherein:
[0014] The processor is configured to execute the computer program in the memory;
[0015] When the computer program is executed by the processor, the method for generating a presentation as described above is implemented.
[0016] In another aspect, an embodiment of the present invention further provides a presentation generating device, comprising: a dividing unit, a calculating unit, a template determining unit and a generating unit; wherein:
[0017] The division unit is set to: divide the outline content into two or more groups according to the node level according to the preset strategy;
[0018] The calculation unit is configured to: calculate the feature vector of each group obtained by the division; wherein the feature vector is used to represent the page structure of the presentation PPT page generated by the outline content contained in the group;
[0019] Determine the template unit setting: determine the PPT template used to fill the outline content contained in each group according to the calculated characteristic vector of each group;
[0020] The generating unit is configured to fill the outline contents contained in each group into a determined PPT template to generate a PPT file.
[0021] An embodiment of the present invention groups outline contents according to node levels, and determines a presentation (PPT) template for filling the outline contents contained in the group according to a characteristic vector of the group; each page of the PPT file corresponding to the group is set based on the node level, corresponding to the structure of the outline contents; the generated PPT file selects a PPT template according to the characteristic vector of the group, thereby improving the generation quality and presentation effect of the PPT file.
[0022] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0024] Figure 1 A schematic diagram of the outline content in the related technology;
[0025] Figure 2 Schematic diagram of generating PPT files for related technologies;
[0026] Figure 3 A flowchart of a method for generating a presentation in an embodiment of the present invention;
[0027] Figure 4 A schematic diagram of a PPT cover generated by an embodiment of the present invention;
[0028] Figure 5 This is a schematic diagram of a PPT directory page of an embodiment of the present invention;
[0029] Figure 6 A schematic diagram of a PPT chapter page generated according to an embodiment of the present invention;
[0030] Figure 7 A schematic diagram of a text page generated for an embodiment of the present invention;
[0031] Figure 8 The present invention is a structural block diagram of a device for generating a presentation document according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other arbitrarily without conflict.
[0033] The steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions. Also, although a logical sequence is shown in the flowchart, in some cases, the steps shown or described can be performed in a sequence different from that shown here.
[0034] Figure 3Flow chart of a method for generating a presentation in accordance with an embodiment of the present invention, as shown in FIG. Figure 3 As shown, including:
[0035] Step 301: Divide the outline content into two or more groups according to the node level according to a preset strategy;
[0036] In an exemplary embodiment, the outline content is divided into two or more groups according to a preset strategy based on the node level, including:
[0037] Divide the outline contents included in the title node, time node, author node and the first picture node sorted after the title node into groups for generating the PPT cover;
[0038] Divide the outline contents included in all first-level outline nodes into groups for generating PPT directory pages;
[0039] Divide the outline contents included in each first-level outline node into groups for generating PPT chapter pages corresponding to the first-level outline nodes;
[0040] The outline contents included in the subnodes greater than a preset level in each first-level outline node are divided into groups for generating PPT text pages corresponding to the subnodes.
[0041] The sub-nodes in the embodiment of the present invention may include: a second-level node, a third-level node, a fourth-level node, etc.
[0042] In an exemplary embodiment, before dividing the outline content into two or more groups according to a preset strategy, the method further includes: parsing the outline content with reference to relevant technologies to determine the nodes included in the outline content and the level of each node.
[0043] Step 302: Calculate the feature vector of each group obtained by the division; wherein the feature vector is used to represent the page structure of the PPT page generated by the outline content contained in the group;
[0044] It should be noted that the feature vector calculation method of the embodiment of the present invention may include existing methods in the relevant technology, and the feature vector is used to identify the amount of text contained in the title, text, graphic group, graphic and text group, etc. in the PPT page, the image size, resolution, etc.
[0045] In an exemplary embodiment, before calculating the feature vectors of each group obtained by division, the method of the embodiment of the present invention further includes:
[0046] When the sub-node included in the group is located at the second end of the outline content and there is only one sub-node, the outline content of the sub-node and the sub-node of the sub-node at the next level are merged into one group; and / or,
[0047] When the sub-node included in the group is located at the end of the outline content and there is only one sub-node, the outline content of the sub-node and the sub-node of the previous level of the sub-node are merged into one group.
[0048] In an exemplary embodiment, the embodiment of the present invention calculates the feature vector of each group obtained by division, including:
[0049] For each group obtained by the division, determine the page structure of the PPT page generated by the outline content contained in the group;
[0050] According to the determined page structure, feature calculations are performed on the page components contained in the page structure to obtain feature vectors of each group;
[0051] Among them, the page structure includes: the page composition included in the PPT page; the page composition includes: basic components and / or component components composed of more than one basic components.
[0052] It should be noted that different page components, the amount of text contained in the page components, or information such as image size and resolution can be represented by feature vectors obtained through feature calculation.
[0053] In an exemplary embodiment, the basic components in the embodiment of the present invention include one or any combination of the following: title, picture, text; based on the above basic components, the component assembly in the embodiment of the present invention may include one or any combination of the following: icon group, image and text group, picture group, text group, title group; wherein the icon group may consist of more than one icon; the image and text group may consist of more than one image and more than one text; the text group may consist of more than two texts; the title group may consist of more than two texts;
[0054] It should be noted that after determining the page structure, the characteristic vector can be calculated by referring to the relevant technology; for example, the existing method of determining the grouping is that the page structure of the PPT page generated by the outline content contained in the grouping is: a title with a text volume of a, a graphic group consisting of three main texts with text volumes of x, y and z respectively, and a picture with a pixel size of m*n; based on the above page structure, the characteristic vector is calculated by the existing method in the relevant technology.
[0055] In an exemplary embodiment, when determining the page structure, for the group obtained by group merging, the outline content of the terminal node can be used as the main text or subtitle; for example, when there is only one child node at the end, the outline content of the child node is used as the subtitle or main text; when there are only multiple child nodes at the end, the outline content of each terminal child node is used as the main text, so that the diagram group can be constructed;
[0056] Step 303: Determine a presentation PPT template for filling the outline content contained in each group according to the calculated characteristic vector of each group;
[0057] In an exemplary embodiment, the embodiment of the present invention determines a PPT template for filling the outline content contained in each group, including:
[0058] Determine the feature vector of each pre-stored PPT template;
[0059] For each group, the feature vector of the group is compared with the feature vector of the PPT template, and the PPT template whose feature vector satisfies similar conditions to the feature vector of the group is used as the PPT template for filling the outline content contained in the group. The PPT template for filling the outline content contained in the group determined by the embodiment of the present invention according to the feature vector can reasonably and effectively fill the outline content contained in the group; for example: the content contained in the group is: a title with a text volume a, a graphic group consisting of three texts with a text volume of x, y and z respectively, and a picture with a pixel size of m*n; after calculating the feature vector according to the outline content contained in the above group, the determined PPT template generally includes: the same composition and the feature vectors of each composition are relatively similar, that is, the PPT template for filling the outline content of the above group can be filled with a title with a text volume close to or equal to a, a graphic group consisting of three texts with a text volume close to or equal to x, y and z respectively, and a picture with a pixel size close to or equal to m*n.
[0060] Step 304: Fill the outline content contained in each group into the determined PPT template to generate a PPT file.
[0061] After the embodiment of the present invention groups the outline contents according to the node level, a presentation (PPT) template for filling the outline contents contained in each group is determined according to the characteristic vector of the group. In this way, the generated PPT file corresponds to the node level of the outline contents, thereby improving the generation quality and presentation effect of the PPT file.
[0062] Figure 4 A schematic diagram of a PPT cover generated by an embodiment of the present invention, such as Figure 4 As shown in the figure, the generated PPT cover page includes the outline content of the main title node, author node and time node; Figure 5 Schematic diagram of the PPT directory page of the embodiment of the present invention, such as Figure 5 As shown, after the outline contents of all first-level outline nodes are grouped as PPT directory pages in the embodiment of the present invention, the generated PPT directory page includes the outline contents of all first-level outline nodes; Figure 6 A schematic diagram of a PPT chapter page generated by an embodiment of the present invention is shown in FIG. Figure 6As shown, after generating the PPT directory page, generate the PPT chapter page according to the outline content of each first-level outline node; Figure 7 A schematic diagram of a text page generated by an embodiment of the present invention, such as Figure 7 As shown, a PPT text page is generated based on the outline contents included in the sub-nodes greater than a preset level in each first-level outline node.
[0063] It should be noted that, after the embodiment of the present invention fills the outline content contained in the group into the PPT template, the generated PPT pages can be connected according to the node hierarchy of the outline content, for example: the PPT cover is used as the first page of the PPT file, the PPT directory page is used as the second page, and then the generated PPT chapter pages are sorted according to the sorting of the first-level outline nodes; after each PPT chapter page, a PPT text page generated by the outline content of the child node under the first-level outline node is inserted; assuming that the first-level outline node 1 includes: second-level text node 1, second-level text node 2 and second-level text node 3; then after the PPT text page 1 is generated according to the second-level text node 1, second-level text node 2 and second-level text node 3, it is connected after the first-level outline node 1; assuming that the first-level outline node 2 includes: second-level text node 4, second-level text node 5 and second-level text node 6; then after the PPT text page 3 is generated according to the second-level text node 4, second-level text node 5 and second-level text node 6, it is connected after the first-level outline node 2.
[0064] In an exemplary embodiment, when filling the outline content contained in each group into the determined PPT template, the method of the embodiment of the present invention further includes:
[0065] When the node levels of the outline contents contained in the groups obtained by division are the same, corresponding section numbers are added to each PPT page grouped by the outline contents of the nodes of the same level according to the order of the groups.
[0066] It should be noted that after the embodiment of the present invention generates a PPT file, the style of the generated PPT file can be set with reference to relevant technologies; for example: according to the received background setting instruction, the background of the generated PPT file can be set.
[0067] An embodiment of the present invention further provides a computer storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method for generating the presentation is implemented.
[0068] The embodiment of the present invention further provides a terminal, comprising: a memory and a processor, wherein a computer program is stored in the memory; wherein:
[0069] The processor is configured to execute the computer program in the memory;
[0070] When the computer program is executed by a processor, the method for generating a presentation as described above is implemented.
[0071] Figure 8 FIG. 1 is a structural block diagram of a device for generating a presentation document according to an embodiment of the present invention, such as Figure 8 As shown, it includes: a division unit, a calculation unit, a template determination unit and a generation unit; wherein,
[0072] The division unit is set to: divide the outline content into two or more groups according to the node level according to the preset strategy;
[0073] The calculation unit is configured to: calculate the feature vector of each group obtained by the division; wherein the feature vector is used to represent the page structure of the presentation (PPT) page generated by the outline content contained in the group;
[0074] Determine the template unit setting: determine the PPT template used to fill the outline content contained in each group according to the calculated characteristic vector of each group;
[0075] The generating unit is configured to fill the outline contents contained in each group into a determined PPT template to generate a PPT file.
[0076] In an exemplary embodiment, the partitioning unit is configured as follows:
[0077] Divide the outline contents included in the title node, time node, author node and the first picture node sorted after the title node into groups for generating the PPT cover;
[0078] Divide the outline contents included in all first-level outline nodes into groups for generating PPT directory pages;
[0079] Divide the outline contents included in each first-level outline node into groups for generating PPT chapter pages corresponding to the first-level outline nodes;
[0080] The outline contents included in the subnodes greater than a preset level in each first-level outline node are divided into groups for generating PPT text pages corresponding to the subnodes.
[0081] The sub-nodes in the embodiment of the present invention may include: a second-level node, a third-level node, a fourth-level node, etc.
[0082] In an exemplary embodiment, the division unit is further configured to:
[0083] When the child node included in the group obtained by the division is located at the second end of the outline content and there is only one child node, the outline content of the child node and the child node of the next level of the child node are merged into one group; and / or,
[0084] When the child node included in the group obtained by the division is located at the end of the outline content and there is only one child node, the outline content of the child node and the child node of the previous level of the child node are merged into one group.
[0085] In an exemplary embodiment, the computing unit is configured as follows:
[0086] For each group obtained by the division, determine the page structure of the PPT page generated by the outline content contained in the group;
[0087] According to the determined page structure, feature calculations are performed on the page components contained in the page structure to obtain feature vectors of each group;
[0088] Among them, the page structure includes: the page composition included in the PPT page; the page composition includes: basic components and / or component components composed of more than one basic components.
[0089] In an exemplary embodiment, when determining the page structure, for the group obtained by group merging, the outline content of the terminal node can be used as the main text or subtitle; for example, when there is only one child node at the end, the outline content of the child node is used as the subtitle or main text; when there are only multiple child nodes at the end, the outline content of each terminal child node is used as the main text, so that the diagram group can be constructed;
[0090] In an exemplary embodiment, the basic components in the embodiment of the present invention include one or any combination of the following: title, picture, text; based on the above basic components, the component assembly in the embodiment of the present invention may include one or any combination of the following: icon group, image and text group, picture group, text group, title group; wherein the icon group may consist of more than one icon; the image and text group may consist of more than one image and more than one text; the text group may consist of more than two texts; the title group may consist of more than two texts;
[0091] In an exemplary embodiment, the template determination unit in the embodiment of the present invention is configured as follows:
[0092] Determine the feature vector of each pre-stored PPT template;
[0093] For each group, the feature vector of the group is compared with the feature vector of the PPT template, and the PPT template whose feature vector is closest to the feature vector of the group is used as the PPT template for filling the outline content contained in the group.
[0094] In an exemplary embodiment, the generating unit is further configured to:
[0095] When the node levels of the outline contents contained in the groups obtained by division are the same, corresponding section numbers are added to each PPT page grouped by the outline contents of the nodes of the same level according to the order of the groups.
[0096] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
Claims
1. A method for generating a presentation, comprising: Divide the outline content into two or more groups according to the node level according to the preset strategy; Calculate the feature vector of each group obtained by the division; wherein the feature vector is used to represent the page structure of the presentation PPT page generated by the outline content contained in the group, and the page structure includes: the page composition included in the PPT page; the page composition includes: basic components and / or component components composed of more than one basic component; Determine a PPT template for filling the outline content contained in each group according to the calculated characteristic vector of each group; Fill the outline content contained in each group into the determined PPT template to generate a PPT file.
2. The generation method according to claim 1, characterized in that: The step of dividing the outline content into two or more groups according to a preset strategy based on the node level includes: Divide the outline content included in the main title node, the time node, the author node, and the first picture node arranged after the main title node into the group for generating the PPT cover; Divide the outline contents included in all first-level outline nodes into the groups used to generate the PPT directory page; Dividing the outline contents included in each first-level outline node into the grouping for generating the PPT chapter page corresponding to the first-level outline node; The outline contents included in the subnodes greater than the preset level in each first-level outline node are divided into the groups used to generate the PPT text pages corresponding to the subnodes.
3. The generation method according to claim 1, characterized in that: Before calculating the feature vectors of each group obtained by division, the method further includes: When the sub-node included in the group is located at the second end of the outline content and there is only one sub-node, the outline content of the sub-node and the sub-node of the sub-node at the next level are merged into one sub-node; and / or, When the sub-node included in the group is located at the end of the outline content and there is only one sub-node, the outline content of the sub-node and the sub-node of the previous level of the sub-node are merged into one sub-node.
4. The generation method according to claim 1, characterized in that: The feature vectors of each group obtained by the calculation and division include: For each of the groups obtained by the division, determining a page structure of a PPT page generated by the outline content contained in the group; According to the determined page structure, feature calculations are performed on the page components contained in the page structure to obtain feature vectors of each group.
5. The generation method according to any one of claims 1 to 4, characterized in that: The step of determining a PPT template for filling the outline content contained in each group includes: Determine the feature vector of each pre-stored PPT template; For each of the groups, the feature vector of the group is compared with the feature vector of the PPT template, and the PPT template whose feature vector satisfies similar conditions with the feature vector of the group is used as the PPT template for filling the outline content contained in the group.
6. The generation method according to any one of claims 1 to 4, characterized in that: When filling the outline contents contained in each group into the determined PPT template, the method further includes: When the node levels of the outline contents contained in the groups obtained by division are the same, corresponding section numbers are added to the PPT pages grouped by the outline contents of the nodes of the same level according to the order of the groups.
7. A computer storage medium, wherein a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the method for generating a presentation as claimed in any one of claims 1 to 6 is implemented.
8. A terminal, comprising: A memory and a processor, wherein the memory stores a computer program; wherein, The processor is configured to execute the computer program in the memory; When the computer program is executed by the processor, the method for generating a presentation according to any one of claims 1 to 6 is implemented.
9. A device for generating a presentation, comprising: A division unit, a calculation unit, a template determination unit and a generation unit; wherein, The division unit is set to: divide the outline content into two or more groups according to the preset strategy based on the node level; The calculation unit is configured to: calculate the feature vector of each group obtained by the division; wherein the feature vector is used to represent the page structure of the presentation PPT page generated by the outline content contained in the group, and the page structure includes: the page composition included in the PPT page; the page composition includes: basic components and / or component components composed of more than one basic component; Determine the template unit setting: determine the PPT template used to fill the outline content contained in each group according to the calculated characteristic vector of each group; The generating unit is configured to fill the outline contents contained in each group into a determined PPT template to generate a PPT file.
10. The generating device according to claim 9, characterized in that The division unit is configured as: Divide the outline content included in the main title node, the time node, the author node, and the first picture node arranged after the main title node into the group for generating the PPT cover; Divide the outline contents included in all first-level outline nodes into the groups used to generate the PPT directory page; Dividing the outline contents included in each first-level outline node into the grouping for generating the PPT chapter page corresponding to the first-level outline node; The outline contents included in the subnodes greater than the preset level in each first-level outline node are divided into the groups used to generate the PPT text pages corresponding to the subnodes.
Citation Information
Patent Citations
Method and device for typesetting project outline
CN106469142A