Powerpoint generation method and device and electronic equipment
By parsing mind maps and automatically filling them with text and images to generate presentations, the problem of automatically generating video mind maps is solved, simplifying the operation process and improving the efficiency of document presentation.
Patent Information
- Application Number
- CN202411016918.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-22
AI Technical Summary
Existing technologies lack mind mapping products that can automatically generate videos, and PowerPoint software requires users to create materials and record audio themselves, which is cumbersome and lacks automatic audio generation functionality.
This paper provides a method for generating presentations. It extracts text content and hierarchical structure by parsing mind maps, selects a presentation master, converts the hierarchical structure into the presentation's hierarchical structure, and finally fills in the content, including automatic filling of text and images.
It enables the rapid conversion of mind maps into presentations, simplifies the operation process, facilitates the presentation and dissemination of document content, and supports users to make secondary modifications and customizations.
Smart Images

Figure CN119005155A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of document processing technology, and more specifically, to a presentation generation method, device, and electronic device. Background Art
[0002] As an effective way to organize and present information, mind mapping is widely used in various fields. Converting static mind mapping into dynamic video format can further improve the efficiency and attractiveness of information transmission.
[0003] There are no mind mapping products on the market that can automatically generate videos. However, in other drawing or document products, such as Microsoft's PowerPoint (Presentation, PPT or PPTX) software, the software provides a PPT export video function. When exporting videos, all recorded timings, narrations, ink strokes and laser pen gestures can be included, and animations, transitions and media can be retained, as well as the specified time for each slide to stay.
[0004] The PowerPoint video export function basically exports the effect of PPT playback in the form of a video. All materials for generating the video need to be created by the user, which is a cumbersome operation. In addition, there is no automatic voice generation function, so users need to record it themselves. Summary of the invention
[0005] In view of the problems existing in the above-mentioned prior art, the embodiments of the present application provide a presentation generation method, device, and electronic device, which can quickly generate a presentation from a mind map.
[0006] In a first aspect, an embodiment of the present application provides a method for generating a presentation, comprising:
[0007] Parse mind maps to extract text content and hierarchical structure;
[0008] Selecting the master template of the presentation according to the text content of the mind map;
[0009] Converting the hierarchical structure of the mind map into the hierarchical structure of the presentation; and
[0010] The presentation is filled with content according to the selected master and hierarchical structure of the presentation.
[0011] Furthermore, the step of filling the presentation with content according to the selected master template and hierarchical structure of the presentation includes:
[0012] Fill the text placeholder of said master;
[0013] Selecting a content page template for the presentation; and
[0014] The content page of the presentation is filled with text according to the extracted text content and hierarchical structure of the mind map.
[0015] Further, according to the extracted text content and hierarchical structure of the mind map, the content page of the presentation is filled with text, including:
[0016] When the number of characters in the text content of the extracted mind map exceeds or falls below a preset value, the text content is abbreviated or expanded and filled into the content page of the presentation.
[0017] Further, after filling the content page of the presentation with text according to the extracted text content and hierarchical structure of the mind map, the method further includes:
[0018] The content page of the presentation is filled with pictures according to the extracted text content of the mind map.
[0019] Furthermore, the step of filling the content page of the presentation with pictures according to the extracted text content of the mind map includes:
[0020] Extracting keywords according to the extracted text content of the mind map;
[0021] Combining the keyword and the background color of the master, searching from an online picture library, and selecting a picture to be filled; and
[0022] Fill the selected picture into the content page of the presentation.
[0023] Further, after filling the content page of the presentation with text according to the extracted text content and hierarchical structure of the mind map, the method further includes:
[0024] A theme color is selected for the page where the content page of the presentation is located.
[0025] Furthermore, the selecting the master template of the presentation according to the text content of the mind map includes:
[0026] The text content of the mind map is analyzed by a large language model, and a master template matching the style of the presentation is selected.
[0027] In a second aspect, the present application also provides a presentation generating device, including:
[0028] Mind map parsing module, used to parse mind maps and extract text content and hierarchical structure;
[0029] A master template selection module, used to select the master template of the presentation according to the text content of the mind map;
[0030] A structure conversion module, used for converting the hierarchical structure of the mind map into the hierarchical structure of the presentation; and
[0031] The content filling module is used to fill the content of the presentation according to the selected master template and hierarchical structure of the presentation.
[0032] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to implement the presentation generation method according to the first aspect described above when executing the program.
[0033] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is used to implement the presentation generation method described in the first aspect above.
[0034] In a fifth aspect, an embodiment of the present application further provides a computer program product on which a computer program is stored, wherein the computer program is used to implement the presentation generation method described in the first aspect above.
[0035] The embodiments of the present application bring the following beneficial effects:
[0036] The presentation generation method provided in the embodiment of the present application first parses the mind map to extract the text content and hierarchical structure, and selects the master of the presentation according to the text content of the mind map, and converts the hierarchical structure of the mind map into the hierarchical structure of the presentation. Finally, the presentation is filled with content according to the selected master and hierarchical structure of the presentation, so that the mind map can be quickly converted into a presentation, which is convenient for the presentation and dissemination of the file content. At the same time, the generation method based on the master function is convenient for users to perform secondary modification and customization. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0038] Figure 1 A flowchart of a method for generating a presentation provided in an embodiment of the present application;
[0039] Figure 2 A schematic diagram of the structure of a mind map provided in an embodiment of the present application;
[0040] Figure 3 A structural block diagram of a presentation generating device provided in an embodiment of the present application;
[0041] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0042] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments described in the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0044] In the specification and claims of this application and the above-mentioned drawings, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "multiple" means two or more. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to the specific circumstances.
[0045] Figure 1 FIG. 1 is a flowchart of a method for generating a presentation according to an embodiment of the present application. Figure 1 As shown, the presentation generation method of the embodiment of the present application includes the following steps:
[0046] S101: Parse the mind map to extract text content and hierarchical structure;
[0047] Specifically, see Figure 2 The main structure of a mind map is a topic tree composed of multiple topic nodes, including central topics, first-level topics, second-level topics, and even N-level topics. A mind map includes text content and hierarchical structure. First, you need to parse the mind map to extract the text content and hierarchical structure.
[0048] That is, the mind map needs to be passed into the constructed "mind map parser" to parse and understand the hierarchical text or graphics in the conventional sense, and extract the text and its hierarchical structure. Any text with a hierarchical structure can be understood by the parser, no matter what common format its text content is stored in.
[0049] The results of the mind map parsing module need to be understood by the presentation or slide generation module, and the results need to be translated and reorganized into page-by-page presentation or slide text content, and the properties of each text need to be identified, such as whether it is a title, directory or content.
[0050] S102: selecting the master template of the presentation according to the text content of the mind map;
[0051] Specifically, in order to achieve the rich expression of PPTX presentations and ensure the smooth progress of activities, rigorous generation rules need to be designed to clearly define the structure and content combination of PPTX. These rules ensure that the generated PPTX presentations meet professional standards. The presentation generation method provided in the embodiment of the present application generates a PPTX presentation with the following five parts: 1. Home page (Title Slide): Contains the title of the presentation, author information, and company or organization logo; 2. Table of Contents: Lists the titles and page numbers of each part of the presentation to facilitate quick navigation by the audience; 3. Transition Slide: Used to introduce new topics or chapters to help achieve a smooth transition between content; 4. Content Slide: Contains the main content of the presentation, combined with text, charts, pictures, etc.; 5. Conclusion Slide: Displays the closing remarks.
[0052] The embodiment of the present application controls the overall style and layout of the slides by using a master. The master defines the style and tone of the presentation, including fonts, colors, backgrounds, etc. By using a master, the user can ensure that the entire presentation maintains a consistent look and style, while simplifying the editing and updating of the slides.
[0053] In the method for generating a presentation provided in the embodiment of the present application, the text content of the mind map is analyzed by LLM (Large Language Model), for example, the scene emotion expressed by the central theme is analyzed, and the color most suitable for the central theme can be obtained, so as to select the master template of the presentation. Taking the prompt algorithm as an example, its algorithm mode is as follows:
[0054] Please select and return the description that is closest to the core concept represented by "{central theme}{second-level content}" from ['Master style description 1', 'Master style description 2'...'Master style description N'].
[0055] S103: Convert the hierarchical structure of the mind map into the hierarchical structure of the presentation.
[0056] Specifically, Figure 2 As shown, the main structure of the mind map is a topic tree composed of multiple topic nodes, including central topics, first-level topics, second-level topics, and even N-level topics. The mind map includes text content and hierarchical structure, so the hierarchical structure of the mind map needs to be converted into the hierarchical structure of the presentation.
[0057] The mind map needs to be passed into the constructed "mind map parser" to parse and understand the hierarchical text or graphics in the conventional sense, and extract the text and its hierarchical structure. Any text with a hierarchical structure can be understood by the parser, no matter what common format its text content is stored in.
[0058] The results of the mind map parsing module need to be understood by the presentation or slide generation module, and the results need to be translated and reorganized into page-by-page presentation or slide text content, and the properties of each text need to be identified, such as whether it is a title, directory or content.
[0059] S104: Filling the presentation with content according to the selected master template and hierarchical structure of the presentation.
[0060] Specifically, after the master template and hierarchical structure of the presentation are determined, the presentation needs to be filled with content. The content to be filled is the text content of the parsed mind map, and the presentation is filled according to the attributes of each identified text, such as whether it is a title, directory or content.
[0061] Therefore, the presentation generation method provided in the embodiment of the present application first parses the mind map to extract the text content and hierarchical structure, and selects the master of the presentation based on the text content of the mind map, and converts the hierarchical structure of the mind map into the hierarchical structure of the presentation. Finally, the presentation is filled with content based on the selected master and hierarchical structure of the presentation, so that the mind map can be quickly converted into a presentation, which is convenient for the presentation and dissemination of the file content. At the same time, through the generation method based on the master function, it is convenient for users to make secondary modifications and customizations.
[0062] Further, in some embodiments of the present application, the step of filling the presentation with content according to the selected master and hierarchical structure of the presentation includes:
[0063] Fill the text placeholder of said master;
[0064] Selecting a content page template for the presentation; and
[0065] The content page of the presentation is filled with text according to the extracted text content and hierarchical structure of the mind map.
[0066] Specifically, after determining the selected master, the formatted text generated by the slide text generation module is filled into the master placeholder. In this method, the placeholder is filled with simple layout information such as the title, directory, producer, producer portrait (or company logo) of the slide or presentation.
[0067] "Content Page" is a special layout in the master. It only has a fixed text placeholder at the top of the slide to identify the title of the current slide page. For the "Content Page", simply using the pre-made master's text placeholder to represent the limited effect that can be displayed. If the rules are complex, too many layouts may be introduced into the master.
[0068] In the embodiment of the present application, the layout of the elements of the "content page" except the title is defined as a "content template", and a "content template" library containing various numbers of elements is prepared in advance (the quantity is mainly measured by the number of text boxes). When generating slides, a specific content template that can accommodate this number is selected according to the number of branches of the fourth level (the number of text boxes is generally limited to 1-9, and the content exceeding this range will be ignored), and the text or image content is filled into the content template and copied to the created slide through code.
[0069] It should be noted that the storage form or production method of the content template is not limited. The user can achieve this function by serializing the marked text, such as describing the size, position and text attributes of each text box, as well as the position, size and attributes of the picture elements. The embodiment of the present application chooses to use a page of independent slides to organize and record the content template, which is conducive to slide designers using tools such as PowerPoint for production, delivery and acceptance.
[0070] Therefore, the presentation is filled with content based on the selected master and hierarchical structure of the presentation, including: filling the text placeholders of the master, that is, filling the title, directory, producer, producer portrait (or company logo) of the slide or presentation, etc., and then selecting the content page template of the presentation, and filling the content page of the presentation with text based on the extracted text content and hierarchical structure of the mind map, thereby ensuring that the text content of the mind map can be converted into a presentation, which is convenient for the presentation and dissemination of the file content.
[0071] Furthermore, in some embodiments of the present application, text filling is performed on the content page of the presentation according to the extracted text content and hierarchical structure of the mind map, including:
[0072] When the number of characters in the text content of the extracted mind map exceeds or falls below a preset value, the text content is abbreviated or expanded and filled into the content page of the presentation.
[0073] Specifically, in order to maintain the beauty of the text layout of a presentation or slide, the amount of text in each text box should be limited to a certain range. The embodiment of the present application provides a function switch for the user to select. When the switch is turned on, the system will determine the content to be filled based on the maximum number of text characters recommended by each content template. If the text exceeds the recommended number, the system will use the promp algorithm and LLM to abbreviate or expand the text to keep the content in the text box appropriate, thereby realizing intelligent processing in the process of filling the content template text.
[0074] Furthermore, in some embodiments of the present application, after the content page of the presentation is filled with text according to the extracted text content and hierarchical structure of the mind map, the method further includes:
[0075] The content page of the presentation is filled with pictures according to the extracted text content of the mind map.
[0076] Specifically, the prefabricated content template may contain a placeholder for an image. The embodiment of the present application will identify the central theme and the text of the current content page, and extract the keywords in the current page. Then, the embodiment of the present application will use these keywords in combination with the master background color to search in the online image library. Among the first ten results returned, the system will randomly select a picture and replace it with the picture placeholder position in the content template.
[0077] Therefore, the presentation generation method provided in the embodiment of the present application generates a slide or presentation generation result that is rich in content by combining text and graphics, and adopts a variety of text typesetting methods and color schemes to make the slide or presentation more attractive.
[0078] Further, in some embodiments of the present application, the step of filling the content page of the presentation with pictures according to the extracted text content of the mind map includes:
[0079] Extracting keywords according to the extracted text content of the mind map;
[0080] Combining the keyword and the background color of the master, searching from an online picture library, and selecting a picture to be filled; and
[0081] Fill the selected picture into the content page of the presentation.
[0082] Specifically, the prefabricated content template may contain a placeholder for an image. The embodiment of the present application will identify the central theme and the text of the current content page, and extract the keywords in the current page. Then, the embodiment of the present application will use these keywords in combination with the master background color to search in the online image library. Among the first ten results returned, the system will randomly select a picture and replace it with the picture placeholder position in the content template.
[0083] Therefore, the presentation generation method provided in the embodiment of the present application generates a slide or presentation generation result that is rich in content by combining text and graphics, and adopts a variety of text typesetting methods and color schemes to make the slide or presentation more attractive.
[0084] Furthermore, in some embodiments of the present application, after the content page of the presentation is filled with text according to the extracted text content and hierarchical structure of the mind map, the method further includes:
[0085] A theme color is selected for the page where the content page of the presentation is located.
[0086] Specifically, in order to avoid the slides or presentations generated under the same master from showing a monotonous and repetitive effect, the embodiment of the present application introduces the concept of "theme color" in the generation process to control the color of text and graphics. Each master is configured with an exclusive theme color by default, and a plurality of sets of general theme color composition libraries are pre-configured. During the generation process, the system will select the theme color by random selection, and will set a higher weight for the default theme color of the master to ensure that it has a higher probability of being selected.
[0087] Therefore, the presentation generation method provided in the embodiment of the present application generates a slide or presentation generation result that is rich in content by combining text and graphics, and adopts a variety of text typesetting methods and color schemes to make the slide or presentation more attractive.
[0088] Further, in some embodiments of the present application, selecting the master of the presentation according to the text content of the mind map includes:
[0089] The text content of the mind map is analyzed by a large language model, and a master template matching the style of the presentation is selected.
[0090] Specifically, the embodiment of the present application controls the overall style and layout of the slides by using a master. The master defines the style and tone of the presentation, including fonts, colors, backgrounds, etc. By using a master, the user can ensure that the entire presentation maintains a consistent appearance and style, while simplifying the editing and updating of the slides.
[0091] In the method for generating a presentation provided in the embodiment of the present application, the text content of the mind map is analyzed by LLM (Large Language Model), for example, the scene emotion expressed by the central theme is analyzed, and the color most suitable for the central theme can be obtained, so as to select the master template of the presentation. Taking the prompt algorithm as an example, its algorithm mode is as follows:
[0092] Please select and return the description that is closest to the core concept represented by "{central theme}{second-level content}" from ['Master style description 1', 'Master style description 2'...'Master style description N'].
[0093] Therefore, the presentation generation method provided in the embodiment of the present application analyzes the text content of the mind map through a large language model, selects a master template that matches the style of the presentation, and can quickly generate a presentation that meets user needs.
[0094] Figure 3 2 is a structural block diagram of the presentation document generating device 200 according to an embodiment of the present application. Figure 3 As shown, the presentation generating device 200 of the embodiment of the present application includes: a map parsing module 210, a master selection module 220, a structure conversion module 230 and a content filling module 240, wherein:
[0095] A mind map parsing module 210, for parsing mind maps and extracting text content and hierarchical structure;
[0096] A master template selection module 220, used to select the master template of the presentation according to the text content of the mind map;
[0097] A structure conversion module 230, used to convert the hierarchical structure of the mind map into the hierarchical structure of the presentation; and
[0098] The content filling module 240 is used to fill the content of the presentation according to the selected master and hierarchical structure of the presentation.
[0099] The presentation generation device provided in the embodiment of the present application first parses the mind map, extracts the text content and the hierarchical structure, and selects the master of the presentation according to the text content of the mind map, and converts the hierarchical structure of the mind map into the hierarchical structure of the presentation. Finally, the presentation is filled with content according to the selected master and hierarchical structure of the presentation, so that the mind map can be quickly converted into a presentation, which is convenient for the demonstration and dissemination of the file content. At the same time, through the generation method based on the master function, it is convenient for users to make secondary modifications and customizations.
[0100] It should be noted that the specific implementation of the presentation generation device in the embodiment of the present application is similar to the specific implementation of the presentation generation method in the embodiment of the present application. Please refer to the description of the method part for details, and no further details will be given here.
[0101] Figure 4 Schematic diagram of the structure of an electronic device 300 according to an embodiment of the present application.
[0102] like Figure 4 As shown, the electronic device 300 includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from the storage part 302 to a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The CPU 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0103] The following components are connected to the I / O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed, so that a computer program read therefrom is installed into the storage section 308 as needed.
[0104] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 309, and / or installed from a removable medium 311. When the computer program is executed by a central processing unit (CPU) 301, the above-mentioned functions defined in the electronic device of the present application are executed.
[0105] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electronic device, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0106] In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction-executing electronic device, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction-executing electronic device, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0107] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the processing receiving device, method and computer program product according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the aforementioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession 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 with a dedicated hardware-based electronic device that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0108] The units or modules involved in the embodiments of the present application may be implemented in software or hardware. The units or modules described may also be set in a processor, and the processor is used to implement the presentation generation method when executing the program:
[0109] Parse mind maps to extract text content and hierarchical structure;
[0110] Selecting the master template of the presentation according to the text content of the mind map;
[0111] Converting the hierarchical structure of the mind map into the hierarchical structure of the presentation; and
[0112] The presentation is filled with content according to the selected master and hierarchical structure of the presentation.
[0113] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently and not be assembled into the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the presentation generation method described in the present application:
[0114] Parse mind maps to extract text content and hierarchical structure;
[0115] Selecting the master template of the presentation according to the text content of the mind map;
[0116] Converting the hierarchical structure of the mind map into the hierarchical structure of the presentation; and
[0117] The presentation is filled with content according to the selected master and hierarchical structure of the presentation.
[0118] As another aspect, the present application further provides a computer program product, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer program product stores one or more programs, and when the above programs are used by one or more processors to execute the presentation generation method described in the present application:
[0119] Parse mind maps to extract text content and hierarchical structure;
[0120] Selecting the master template of the presentation according to the text content of the mind map;
[0121] Converting the hierarchical structure of the mind map into the hierarchical structure of the presentation; and
[0122] The presentation is filled with content according to the selected master and hierarchical structure of the presentation.
[0123] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. All equivalent structural changes made by using the contents of the present application specification and drawings under the application concept of the present application, or directly / indirectly used in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for generating a presentation, characterized in that: include: Parse mind maps to extract text content and hierarchical structure; Selecting the master template of the presentation according to the text content of the mind map; Converting the hierarchical structure of the mind map into the hierarchical structure of the presentation; and The presentation is filled with content according to the selected master and hierarchical structure of the presentation.
2. The method for generating a presentation according to claim 1, characterized in that: The step of filling the presentation with content according to the selected master template and hierarchical structure of the presentation includes: Fill the text placeholder of said master; Selecting a content page template for the presentation; and The content page of the presentation is filled with text according to the extracted text content and hierarchical structure of the mind map.
3. The method for generating a presentation according to claim 2, characterized in that: Filling the content page of the presentation with text according to the extracted text content and hierarchical structure of the mind map, including: When the number of characters in the text content of the extracted mind map exceeds or falls below a preset value, the text content is abbreviated or expanded and filled into the content page of the presentation.
4. The method for generating a presentation according to claim 2, characterized in that: After filling the content page of the presentation with text according to the text content and hierarchical structure of the extracted mind map, the method further includes: The content page of the presentation is filled with pictures according to the extracted text content of the mind map.
5. The method for generating a presentation according to claim 4, characterized in that: The step of filling the content page of the presentation with pictures according to the extracted text content of the mind map comprises: Extracting keywords according to the extracted text content of the mind map; Combining the keyword and the background color of the master, searching from an online picture library, and selecting a picture to be filled; and Fill the selected picture into the content page of the presentation.
6. The method for generating a presentation according to claim 2, characterized in that: After filling the content page of the presentation with text according to the text content and hierarchical structure of the extracted mind map, the method further includes: A theme color is selected for the page where the content page of the presentation is located.
7. The method for generating a presentation according to claim 1, characterized in that: The step of selecting the master template of the presentation according to the text content of the mind map includes: The text content of the mind map is analyzed by a large language model, and a master template matching the style of the presentation is selected.
8. A presentation document generating device, characterized in that: include: Mind map parsing module, used to parse mind maps and extract text content and hierarchical structure; A master template selection module, used to select the master template of the presentation according to the text content of the mind map; A structure conversion module, used for converting the hierarchical structure of the mind map into the hierarchical structure of the presentation; and The content filling module is used to fill the content of the presentation according to the selected master template and hierarchical structure of the presentation.
9. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor is used to implement the presentation generation method according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to implement the presentation generation method according to any one of claims 1-7.
Citation Information
Cited By
Document generation method and device and computer equipment
CN121092500A
