Slide format conversion method, system and device, medium and product

By obtaining and analyzing the multi-dimensional attribute information of the target element in the slide page and determining its layout and rendering scheme, the problem of low accuracy in slide format conversion in the prior art is solved, and higher conversion accuracy and equipment are achieved compatibility.

CN119474015APending Publication Date: 2025-02-18CHINA PING AN LIFE INSURANCE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411573265.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The conversion accuracy of the prior art during the slide format conversion process is low, resulting in unstable image formats that cannot be displayed correctly on most devices.

Method used

By obtaining the target element and its multi-dimensional attribute information in the slide page to be converted, the layout information of the target element and the target rendering scheme are determined, and the target element is loaded on the preset picture based on this information to realize the format conversion of the slide.

Benefits of technology

Improves the accuracy of slide format conversion, ensuring that the converted picture format can be displayed stably on most devices, enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119474015A_ABST
    Figure CN119474015A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a format conversion method, system and device of a slide, a medium and a product, and relates to the technical field of computers.The method comprises the steps that under the condition that a conversion instruction is received, a target element in a to-be-converted slide page and multi-dimensional attribute information of the target element are obtained; according to the multi-dimensional attribute information, determining layout information of the target element on the to-be-converted slide page and a target rendering scheme corresponding to the target element, so that different types of target elements can be converted in a targeted manner; and loading the target element to the preset picture according to the target rendering scheme on the basis of the layout information so as to convert the to-be-converted slide into a picture format, thereby improving the accuracy of slide format conversion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, system, device, medium and product for converting the format of a slide. Background Art

[0002] Slides, also known as presentation slides, are visual aids for presenting information. During the presentation of slides, since different devices and software have different support for slides, it is often necessary to convert the slides into a picture format that can be displayed in a relatively stable manner on most devices. However, the conversion accuracy of the related technology in the process of converting the format of slides is low.

[0003] Application Contents

[0004] In view of this, one of the purposes of the present application is to provide a method, system, device, medium and product for converting the format of a slide, which can improve the conversion accuracy of the slide format.

[0005] To achieve the above purpose, the technical solution of this application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a method for converting the format of a slide, the method comprising:

[0007] When receiving the conversion instruction, obtaining the target element in the slide page to be converted and the multi-dimensional attribute information of the target element;

[0008] Determine the layout information of the target element on the slide page to be converted and the target rendering scheme corresponding to the target element according to the multi-dimensional attribute information;

[0009] Based on the layout information, the target element is loaded onto the preset image according to the target rendering scheme to convert the slide to be converted into an image format.

[0010] In a possible implementation, the multi-dimensional attribute information includes at least geometric attribute information, format attribute information, and visual attribute information;

[0011] Determining the layout information of the target element on the slide page to be converted and the target rendering scheme corresponding to the target element according to the multi-dimensional attribute information includes:

[0012] Determine the layout information of the target element on the slide page to be converted according to the geometric attribute information and the format attribute information;

[0013] According to the visual attribute information, the target rendering scheme corresponding to the target element is determined.

[0014] In a possible implementation, the geometric attribute information includes length information, width information, and position information, and the format attribute information includes a first alignment mode;

[0015] According to the geometric attribute information and the format attribute information, the layout information of the target element on the slide page to be converted is determined, including:

[0016] Determine the occupied space of the target element according to the length information and width information of the target element on the slide page to be converted;

[0017] Determine the target position of the target element on the slide page to be converted according to the position information of the target element on the slide page to be converted;

[0018] Determine a second alignment method according to the target position;

[0019] Determining a target alignment according to the first alignment and the second alignment;

[0020] According to the occupied space and the target alignment, the layout information of the target element on the slide page to be converted is determined.

[0021] In a possible implementation, the visual attribute information includes color information and style information, and determining a target rendering scheme corresponding to the target element according to the visual attribute information includes:

[0022] Determine the target rendering scheme corresponding to the target element according to the color information and style information.

[0023] In a possible implementation manner, after obtaining the target element in the slide page to be converted and the multi-dimensional attribute information of the target element, the method further includes:

[0024] When the target element is determined to be a multimedia element according to the multi-dimensional attribute information, a placeholder is generated at a corresponding position of the preset image according to the geometric attribute information of the multimedia element, and the placeholder is used to mark the metadata of the multimedia element.

[0025] In a possible implementation manner, after obtaining the target element in the slide page to be converted and the multi-dimensional attribute information of the target element, the method further includes:

[0026] When the target element is determined to be a vector element according to the multi-dimensional attribute information, obtaining geometric attribute information of the vector element and at least one frame of image corresponding to the vector element;

[0027] Determine a display area of ​​the vector element in a preset image according to the geometric attribute information of the vector element;

[0028] Determine a target static image corresponding to the vector element from at least one frame of image;

[0029] Load the target static image into the display area of ​​the preset image.

[0030] In a second aspect, an embodiment of the present application provides a slide format conversion system, the system comprising:

[0031] An acquisition module, used to acquire a target element in a slide page to be converted and multi-dimensional attribute information of the target element when receiving a conversion instruction;

[0032] A determination module, used to determine the layout information of the target element on the slide page to be converted and the target rendering scheme corresponding to the target element according to the multi-dimensional attribute information;

[0033] The loading module is used to load the target element onto the preset image according to the target rendering scheme based on the layout information, so as to convert the slide to be converted into the image format.

[0034] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and when the computer program is executed by the processor, the method for converting the format of slides provided in the first aspect is implemented.

[0035] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by one or more processors, the method for converting the format of slides provided in the first aspect is implemented.

[0036] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by one or more processors, it implements the slide format conversion method provided in the first aspect.

[0037] The embodiment of the present application provides a method for converting the format of a slide, which can obtain the target element in the slide page to be converted and the multi-dimensional attribute information of the target element when receiving a conversion instruction, and determine the layout information of the target element on the slide page to be converted and the target rendering scheme corresponding to the target element according to the multi-dimensional attribute information, so as to convert different types of target elements in a targeted manner. Finally, based on the layout information, the target element is loaded onto a preset picture according to the target rendering scheme to convert the slide to be converted into a picture format, which can improve the accuracy of the slide format conversion. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] 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. It should be understood that 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 these drawings without paying any creative work.

[0039] Figure 1 A flowchart of a method for converting the format of a slide provided in an embodiment of the present application;

[0040] Figure 2 A flow chart for determining layout information included in a method for converting a slide format provided in an embodiment of the present application;

[0041] Figure 3 A flowchart for determining another layout information included in a method for converting a slide format provided in an embodiment of the present application;

[0042] Figure 4 A vector element processing flow chart involved in a method for converting a slide format provided in an embodiment of the present application;

[0043] Figure 5 A schematic diagram of the functional modules of a slide format conversion system provided in an embodiment of the present application;

[0044] Figure 6 A diagram of the internal structure of an electronic device provided in an embodiment of the present application.

[0045] Description of reference numerals:

[0046] The slide format conversion system 500 includes an acquisition module 510 , a determination module 520 , and a loading module 530 . DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0048] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0049] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0050] In various embodiments of the present application, the expression "or" or "at least one of A or / and B" includes any combination or all combinations of the words listed at the same time. For example, the expression "A or B" or "at least one of A or / and B" may include A, may include B, or may include both A and B.

[0051] In the description of the present application, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear to indicate an orientation or position relationship, it is based on the orientation or position relationship shown in the drawings, or is the orientation or position relationship in which the product of the invention is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application.

[0052] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.

[0053] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.

[0054] Furthermore, in the embodiments of the present application, the term "connection" may refer to "electrical connection" or "direct connection". "Electrical connection" may refer to direct electrical connection between two components or electrical connection between two components via one or more normally open tubes or other components.

[0055] To facilitate a better understanding of the solutions of the embodiments of the present application, the relevant technologies are first introduced below.

[0056] Artificial intelligence (AI) is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. AI is a branch of computer science that attempts to understand the essence of intelligence and produce a new type of intelligent machine that can respond in a similar way to human intelligence. Research in this field includes robotics, speech recognition, image recognition, natural language processing and expert systems. AI can simulate the information process of human consciousness and thinking. AI is also a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0057] Natural language processing (NLP): NLP uses computers to process, understand and apply human languages ​​(such as Chinese, English, etc.). NLP is a branch of artificial intelligence and an interdisciplinary subject between computer science and linguistics. It is often referred to as computational linguistics. Natural language processing includes grammatical analysis, semantic analysis, and text understanding. Natural language processing is often used in technical fields such as machine translation, handwritten and printed character recognition, speech recognition and text-to-speech conversion, information intent recognition, information extraction and filtering, text classification and clustering, public opinion analysis and opinion mining. It involves data mining related to language processing, machine learning, knowledge acquisition, knowledge engineering, artificial intelligence research, and linguistic research related to language computing.

[0058] Information Extraction: A text processing technology that extracts specified types of entity, relationship, event and other factual information from natural language text and forms structured data output. Information extraction is a technology that extracts specific information from text data. Text data is composed of some specific units, such as sentences, paragraphs, and chapters. Text information is composed of some small specific units, such as characters, words, phrases, sentences, paragraphs, or a combination of these specific units. Extracting noun phrases, names, place names, etc. from text data are all text information extraction. Of course, the information extracted by text information extraction technology can be various types of information.

[0059] In order to solve the technical problems in the background technology, the embodiments of the present application provide a method, system, device, medium and product for converting the format of a slide. The following first introduces the method for converting the format of a slide provided in the embodiments of the present application.

[0060] See also Figure 1 , Figure 1 The flowchart of a slide format conversion method provided in an embodiment of the present application is a method for converting the slide format. The method for converting the slide format can be applied to the slide format conversion system and electronic device in the following embodiments, wherein the electronic device includes a personal computer, a server, a mobile device, a cloud computing platform, and a supercomputer. The slide format conversion method will be introduced from the perspective of application to electronic devices, and the method specifically includes the following steps:

[0061] Step 110, when a conversion instruction is received, obtaining a target element in the slide page to be converted and multi-dimensional attribute information of the target element.

[0062] Step 120: Determine the layout information of the target element on the slide page to be converted and the target rendering scheme corresponding to the target element according to the multi-dimensional attribute information.

[0063] Step 130: Based on the layout information, the target element is loaded onto a preset image according to the target rendering scheme to convert the slide to be converted into an image format.

[0064] The embodiment of the present application provides a method for converting the format of a slide, which can obtain the target element in the slide page to be converted and the multi-dimensional attribute information of the target element when receiving a conversion instruction, and determine the layout information of the target element on the slide page to be converted and the target rendering scheme corresponding to the target element according to the multi-dimensional attribute information, so as to convert different types of target elements in a targeted manner. Finally, based on the layout information, the target element is loaded onto a preset picture according to the target rendering scheme to convert the slide to be converted into a picture format, which can improve the accuracy of the slide format conversion.

[0065] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, AI is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0066] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0067] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0068] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.

[0069] The following will be Figure 1 Each step of the slide format conversion method is explained in detail.

[0070] In step 110, the conversion instruction can be used to indicate to the electronic device that there is a slide conversion task, and the electronic device is required to convert the slide page to be converted from the current format to the target format, such as from pptx format to jpeg format, to meet different usage requirements. For example, when displaying on different platforms such as web pages, the slide needs to be converted into a picture format.

[0071] For example, a slide usually contains a large number of elements, such as text, graphics, animations, etc., and its file structure is relatively complex. In contrast, the image format is relatively simple. When a web page is loaded, the browser parses the image file faster than the loaded slide file. For example, a pptx file containing multiple slides may take a long time to load due to the dynamic elements, links, and complex styles in it, while a group of converted images can be loaded in parallel, which can significantly increase the loading speed of the web page and improve the user experience.

[0072] In addition, files in slide format may require more resources when stored and transmitted on the server side, because the server needs to process various types of elements and interactive logic in the slide, while image files are relatively small in size and do not require complex processing by the server, so they generally do not take up too many server resources.

[0073] In some embodiments, the conversion instruction can also be used to instruct the electronic device to convert one slide page to be converted, or multiple slide pages to be converted.

[0074] In some embodiments, the conversion instruction may also store the storage location of the slide page to be converted, so that the electronic device can quickly locate the location of the slide to be converted, thereby indirectly improving the format conversion speed of the slide. Specifically, the storage location may be a local address, such as "E:\desktop\slide page to be converted.pptx", or a network storage location, such as "https: / / my files / slide page to be converted.pptx".

[0075] The target element is an element obtained by the electronic device from the slide page to be converted, and the types of the target element include text, graphics, animation, etc. In this embodiment, the target element may include at least one element in the slide to be converted.

[0076] The multi-dimensional attribute information corresponds to the target element and can be used to indicate the type, format, location, etc. of the target element. In the embodiment of the present application, by dividing the attribute information associated with the target element, multi-dimensional information can be obtained, which can effectively avoid the confusion of multiple attribute information, thereby affecting the accuracy of the format conversion of the slide.

[0077] Based on the divided and attributed multi-dimensional attribute information, when converting the slide page to be converted into a picture format, obtaining the multi-dimensional attribute information of the target element can preserve the important features of the target element, reduce the probability of information loss, and thus improve the accuracy of the slide format conversion.

[0078] In some embodiments, the multi-dimensional attribute information includes geometric attribute information, format attribute information, visual attribute information, etc. The geometric attribute information may include position information and size information, the format attribute information may include alignment, and the visual attribute information may include color information and style information.

[0079] In some embodiments, the electronic device may also parse and extract the target elements and their corresponding multi-dimensional attribute information in the slide page to be converted by means of a slide parsing library or parsing tool, such as Apache POI of Java, or OpenXML SDK.

[0080] In step 120, the layout information may include the position, size, arrangement, and hierarchical relationship of the target element in the slide page to be converted. After acquiring the multi-dimensional attribute information of the target element in the aforementioned embodiment, the electronic device may determine the layout information and the target rendering scheme of the target element based on the multi-dimensional attribute information.

[0081] Specifically, the target rendering schemes corresponding to text, graphics, and animation are different, so targeted rendering can be performed, further improving the accuracy of converting the slide page to be converted into a picture format.

[0082] Taking the target element as an example, including text, you can use the Pillow library in Python as the target rendering solution for text elements.

[0083] In step 130, when the electronic device has determined the layout information and the target rendering scheme of the target element, the target element can be conveniently loaded onto the preset image.

[0084] When the specifications of the slide page to be converted are consistent with those of the preset image, the target element can be loaded onto the preset image in equal proportions; otherwise, the proportion needs to be adjusted before loading the target element onto the preset image.

[0085] In some embodiments, the electronic device can display conversion progress information in real time. The conversion progress information may include the percentage of completed conversion, the remaining conversion time, etc. If the electronic device converts multiple slide pages to be converted, the conversion progress information may also include the slide page number being processed.

[0086] For example, the electronic device may display the following content in real time:

[0087] Current conversion progress: 90%;

[0088] Remaining conversion time: 10s;

[0089] Slide number being processed: Page 90.

[0090] In some embodiments, after the format conversion is completed, the electronic device may also provide feedback of the conversion result to the user through a pop-up window, system notification, or other obvious methods.

[0091] Specifically, the feedback conversion result may include whether the conversion is successful, the specific location and name of the output file, and if any error or warning information occurs during the conversion process, it should also be displayed.

[0092] For example, after the conversion is completed, the electronic device can display the following inner cylinder:

[0093] Conversion status: conversion successful;

[0094] Conversion name: Conversion successfully 20242024.jpeg;

[0095] Storage location: E:\desktop;

[0096] Fault information: None.

[0097] In a possible implementation, the multi-dimensional attribute information includes at least geometric attribute information, format attribute information, and visual attribute information;

[0098] Please see Figure 2 , Figure 2 A flow chart for determining layout information included in a method for converting the format of a slide provided in an embodiment of the present application.

[0099] In the above embodiment, step 120 determines the layout information of the target element on the slide page to be converted and the target rendering scheme corresponding to the target element according to the multi-dimensional attribute information, including but not limited to the following steps 210 to 220:

[0100] Step 210: Determine the layout information of the target element on the slide page to be converted according to the geometric attribute information and the format attribute information.

[0101] Step 220: Determine a target rendering scheme corresponding to the target element according to the visual attribute information.

[0102] The embodiment of the present application can verify the repeated information in the geometric attribute information and the format attribute information based on the geometric attribute information and the format attribute information. If the repeated information in the geometric attribute information and the format attribute information is consistent, it can be indicated that the geometric attribute information recognized by the electronic device is correct, otherwise, it is incorrect. In the case of incorrect recognition of repeated information, the layout information of the target element on the slide page to be converted can be determined based on the repeated information in the format attribute information.

[0103] Specifically, the format attribute information is associated with the target element and can be directly obtained by the electronic device when acquiring multi-dimensional information. The geometric attribute information can be attribute information about the target element recognized by the electronic device based on the slide page to be converted.

[0104] Please see reference Figure 3 , Figure 3 A flowchart for determining another layout information included in a method for converting the format of a slide provided in an embodiment of the present application.

[0105] In a possible implementation, the geometric attribute information includes length information, width information, and position information, and the format attribute information includes a first alignment mode;

[0106] Determine the layout information of the target element on the slide page to be converted according to the geometric attribute information and the format attribute information, including but not limited to the following steps 310 to 350:

[0107] Step 310: determine the occupied space of the target element according to the length information and width information of the target element on the slide page to be converted.

[0108] Step 320: Determine the target position of the target element on the slide page to be converted according to the position information of the target element on the slide page to be converted.

[0109] Step 330: Determine a second alignment method according to the target position.

[0110] Step 340: Determine a target alignment according to the first alignment and the second alignment.

[0111] Step 350: Determine the layout information of the target element on the slide page to be converted according to the occupied space and the target alignment.

[0112] The embodiment of the present application can reduce the situation where the format of the target element is disordered by checking the alignment of the target element, thereby improving the accuracy of the slide format conversion.

[0113] The occupied space can be understood as the occupied area determined based on the length information and width information of the target element.

[0114] The position information may include two-dimensional coordinate information of the target element on the slide page to be converted.

[0115] In some embodiments, in order to unify the position information of different elements in the slide page to be converted, the coordinates of the upper left corner of the slide page to be converted can be selected as a reference to further determine the position information of each element in the slide page to be converted.

[0116] The target position may be a position where the target element as a whole is close to the edge of the slide page to be converted. Thus, the electronic device may determine the alignment of the target element in the slide page to be converted, that is, the second alignment, based on the target position and the edge position of the slide page to be converted.

[0117] The first alignment is associated with the target element, and the multi-dimensional attribute information corresponding to the target element acquired by the electronic device includes the first alignment, and the electronic device does not need to perform identification based on other attribute information.

[0118] When the electronic device determines that the first alignment and the second alignment are consistent, such as both are left-aligned, the electronic device can determine the layout information in either the first alignment or the second alignment. If the first alignment and the second alignment are inconsistent, such as the first alignment is left-aligned and the second alignment is right-aligned, in this case, the electronic device can select the first alignment included in the format attribute information as the final alignment to determine the layout information.

[0119] Layout information includes alignment and space usage.

[0120] In a possible implementation, the visual attribute information includes color information and style information, and determining a target rendering scheme corresponding to the target element according to the visual attribute information includes:

[0121] Determine the target rendering scheme corresponding to the target element according to the color information and style information.

[0122] This embodiment determines the target rendering scheme through color information and style information, which can further improve the accuracy of slide format conversion.

[0123] Specifically, color information may include information such as primary color, secondary color, color contrast, and color saturation. Primary color is the main color of the target element. Secondary color combined with primary color can enhance the visual effect or highlight the target element. High contrast color will make the target element more eye-catching. Appropriate color saturation can also enhance the visual effect of the target element.

[0124] Style information may include shape, texture, size, and transparency.

[0125] After determining the color information and style information, the electronic device can analyze and determine the complexity of the rendering target element, and then select an appropriate target rendering scheme based on the complexity.

[0126] For example, for some target elements with lower complexity, drawing software such as Adobe Illustrator may be called to complete drawing and rendering.

[0127] In a possible implementation manner, after obtaining the target element in the slide page to be converted and the multi-dimensional attribute information of the target element, the method further includes:

[0128] When the target element is determined to be a multimedia element according to the multi-dimensional attribute information, a placeholder is generated at a corresponding position of the preset image according to the geometric attribute information of the multimedia element, and the placeholder is used to mark the metadata of the multimedia element.

[0129] Multimedia elements are not easy to convert into image objects. This embodiment can mark the metadata of the multimedia elements by generating placeholders, which can further improve the accuracy of conversion.

[0130] In some embodiments, the multimedia element includes audio. The electronic device can recognize the audio and extract key metadata therein, such as the file name, duration, playback settings, key content, and other metadata of the audio.

[0131] In some embodiments, the multimedia element includes a video. The electronic device can identify the video and extract key metadata therein, such as the file name, duration, resolution, playback settings, and other metadata of the video.

[0132] In some embodiments, the electronic device can generate placeholders of different shapes to distinguish whether the multimedia element is audio or video. Placeholders of different shapes can be selected according to actual needs, mainly based on the ability to distinguish audio and video. The shape of the placeholder is not limited here.

[0133] In some embodiments, during the process of recognizing audio, the electronic device may convert the speech in the audio into a text format, and then may count key words whose occurrence frequency is greater than or equal to a preset number of times as key content.

[0134] In some embodiments, during the process of recognizing audio, the electronic device can also extract key metadata from the audio with the help of a deep learning neural network. The deep learning neural network may include at least one of a convolutional neural network, a ring neural network, and a long short-term memory artificial neural network.

[0135] The placeholder in the embodiment of the present application can display the key elements of the audio or video, and even in the picture format, it can briefly show the content to be expressed in the original slide page to be converted.

[0136] Please see Figure 4 , Figure 4 A vector element processing flow chart involved in a method for converting the format of a slide provided in an embodiment of the present application.

[0137] In a possible implementation, after obtaining the target element in the slide page to be converted and the multi-dimensional attribute information of the target element, the method further includes but is not limited to steps 410 to 440:

[0138] Step 410 , when it is determined that the target element is a vector element according to the multi-dimensional attribute information, obtain geometric attribute information of the vector element and at least one frame of image corresponding to the vector element.

[0139] Step 420: Determine a display area of ​​the vector element in a preset image according to the geometric attribute information of the vector element.

[0140] Step 430: Determine a target static image corresponding to the vector element from at least one frame of image.

[0141] Step 440: Load the target static image into the display area of ​​the preset image.

[0142] Specifically, the electronic device may select a frame of image or an image obtained by merging multiple frames of image as the target static image corresponding to the vector element.

[0143] In some embodiments, the electronic device can generate multiple frames of images through frame capture technology to simulate animation effects. Each vector element, such as the key frame of the animation, will be extracted as a static image, and the user can choose to save all frames of the animation or only keep the last frame as the target static image. At the same time, the start and end time and type (such as fly-in, fade-out, etc.) of the animation will be marked to facilitate further dynamic display on the multimedia platform.

[0144] In some embodiments, before obtaining the target element in the slide page to be converted and the multi-dimensional attribute information of the target element, the electronic device may check the security of the slide page to be converted.

[0145] Exemplarily, if the slide page to be converted contains a web page link, the electronic device needs to check the security of the web page link.

[0146] In some embodiments, after the security check of the slide page to be converted is passed, the electronic device may also check the sensitive information in the content of the slide page to be converted, such as the ID card number and the telephone number. If the electronic device detects the above sensitive information, the sensitive information may be encrypted during the conversion process to prevent the sensitive information from being leaked.

[0147] In some embodiments, after obtaining the target elements and multi-dimensional attribute information of the target elements in the slide page to be converted, the electronic device can convert the identified target elements and their multi-dimensional attribute information into structured data, and can accurately record the position, size, color, font and other detailed information of each element.

[0148] For example, for a slide page to be converted that contains multiple layers of nested graphics, structured data can clearly describe the hierarchical relationship, rotation angle, etc. of each graphic. If not converted into structured data, these details may be lost in the process of converting to images, resulting in the misalignment of elements in the image, incomplete display, or distorted style.

[0149] The elements in the slides to be converted are often logical and related, such as the paragraph structure of the text, the data relationship of the chart, etc. Structured data can save the logic and relationship of these elements in a systematic way.

[0150] For example, if the target element includes a table, the data in the table may present a certain contrast or association relationship in the form of rows and columns. After conversion to structured data, it can be ensured that when generating images, the row height, column width, data alignment, etc. of the table can be accurately presented according to the original settings in the slide page to be converted, which can avoid data confusion or format errors and ensure the consistency and accuracy of the content converted from the slide to be converted to the image form.

[0151] In some embodiments, during the process of converting the slide pages to be converted into images, some slide pages to be converted may contain complex designs (such as multiple layers, occlusion relationships, etc.). The electronic device can analyze the multi-layer images with the help of the deep learning neural network mentioned in the above content, and can infer and complete the occluded parts to ensure that the output image is complete. At the same time, for content with poor image quality or low resolution, it can also be enhanced, such as increasing brightness or contrast, to improve the clarity of the final image.

[0152] In some embodiments, the multi-dimensional attribute information may further include interactive dimension attributes, and the interactive maintenance attributes may be used to indicate other elements or attribute information of other elements that are associated with the target element.

[0153] Corresponding to the above method embodiment, the present application embodiment also provides a slide format conversion system, see Figure 5 , Figure 5 A schematic diagram of functional modules of a slide format conversion system provided in an embodiment of the present application, wherein the slide format conversion system 500 includes:

[0154] The acquisition module 510 is used to acquire the target element in the slide page to be converted and the multi-dimensional attribute information of the target element when receiving the conversion instruction;

[0155] A determination module 520 is used to determine the layout information of the target element on the slide page to be converted and the target rendering scheme corresponding to the target element according to the multi-dimensional attribute information;

[0156] The loading module 530 is used to load the target element onto the preset picture according to the target rendering scheme based on the layout information, so as to convert the slide to be converted into a picture format.

[0157] The slide format conversion system provided by the embodiment of the present application can obtain the target element and the multi-dimensional attribute information of the target element in the slide page to be converted through the acquisition module when receiving the conversion instruction, and determine the layout information of the target element on the slide page to be converted and the target rendering scheme corresponding to the target element through the determination module according to the multi-dimensional attribute information, so as to convert different types of target elements in a targeted manner. Finally, the loading module loads the target element onto a preset picture according to the target rendering scheme based on the layout information to convert the slide to be converted into the picture format, so as to improve the accuracy of the slide format conversion.

[0158] In a possible implementation manner, the multi-dimensional attribute information includes at least geometric attribute information, format attribute information, and visual attribute information. The determination module 520 is further specifically configured to:

[0159] Determine the layout information of the target element on the slide page to be converted according to the geometric attribute information and the format attribute information;

[0160] According to the visual attribute information, the target rendering scheme corresponding to the target element is determined.

[0161] The embodiment of the present application can verify the repeated information in the geometric attribute information and the format attribute information based on the geometric attribute information and the format attribute information. If the repeated information in the geometric attribute information and the format attribute information is consistent, it can be indicated that the geometric attribute information recognized by the electronic device is correct, otherwise, it is incorrect. In the case of incorrect recognition of repeated information, the layout information of the target element on the slide page to be converted can be determined based on the repeated information in the format attribute information.

[0162] Specifically, the format attribute information is associated with the target element and can be directly obtained by the electronic device when acquiring multi-dimensional information. The geometric attribute information can be attribute information about the target element recognized by the electronic device based on the slide page to be converted.

[0163] In a possible implementation, the geometric attribute information includes length information, width information, and position information, the format attribute information includes a first alignment mode, and the determination module 520 further includes a first determination submodule, which is used to:

[0164] Determine the occupied space of the target element according to the length information and width information of the target element on the slide page to be converted;

[0165] Determine the target position of the target element on the slide page to be converted according to the position information of the target element on the slide page to be converted;

[0166] Determine a second alignment method according to the target position;

[0167] Determining a target alignment according to the first alignment and the second alignment;

[0168] According to the occupied space and the target alignment, the layout information of the target element on the slide page to be converted is determined.

[0169] The embodiment of the present application can reduce the situation where the format of the target element is disordered by checking the alignment of the target element, thereby improving the accuracy of the slide format conversion.

[0170] The occupied space can be understood as the occupied area determined based on the length information and width information of the target element.

[0171] The position information may include two-dimensional coordinate information of the target element on the slide page to be converted.

[0172] In some embodiments, in order to unify the position information of different elements in the slide page to be converted, the coordinates of the upper left corner of the slide page to be converted can be selected as a reference to further determine the position information of each element in the slide page to be converted.

[0173] The target position may be a position where the target element as a whole is close to the edge of the slide page to be converted. Thus, the electronic device may determine the alignment of the target element in the slide page to be converted, that is, the second alignment, based on the target position and the edge position of the slide page to be converted.

[0174] The first alignment is associated with the target element, and the multi-dimensional attribute information corresponding to the target element acquired by the electronic device includes the first alignment, and the electronic device does not need to perform identification based on other attribute information.

[0175] When the electronic device determines that the first alignment and the second alignment are consistent, such as both are left-aligned, the electronic device can determine the layout information in either the first alignment or the second alignment. If the first alignment and the second alignment are inconsistent, such as the first alignment is left-aligned and the second alignment is right-aligned, in this case, the electronic device can select the first alignment included in the format attribute information as the final alignment to determine the layout information.

[0176] Layout information includes alignment and space usage.

[0177] In a possible implementation, the visual attribute information includes color information and style information, and the determination module 520 further includes a second determination submodule, which is used to:

[0178] Determine the target rendering scheme corresponding to the target element according to the color information and style information.

[0179] This embodiment determines the target rendering scheme through color information and style information, which can further improve the accuracy of slide format conversion.

[0180] Specifically, color information may include information such as primary color, secondary color, color contrast, and color saturation. Primary color is the main color of the target element. Secondary color combined with primary color can enhance the visual effect or highlight the target element. High contrast color will make the target element more eye-catching. Appropriate color saturation can also enhance the visual effect of the target element.

[0181] Style information may include shape, texture, size, and transparency.

[0182] After determining the color information and style information, the electronic device can analyze and determine the complexity of the rendering target element, and then select an appropriate target rendering scheme based on the complexity.

[0183] For example, for some target elements with lower complexity, drawing software such as Adobe Illustrator may be called to complete drawing and rendering.

[0184] In a possible implementation, the slide format conversion system 500 further includes a generation module, which is used to:

[0185] When the target element is determined to be a multimedia element according to the multi-dimensional attribute information, a placeholder is generated at a corresponding position of the preset image according to the geometric attribute information of the multimedia element, and the placeholder is used to mark the metadata of the multimedia element.

[0186] Multimedia elements are not easy to convert into image objects. This embodiment can mark the metadata of the multimedia elements by generating placeholders, which can further improve the accuracy of conversion.

[0187] In some embodiments, the multimedia element includes audio. The electronic device can recognize the audio and extract key metadata therein, such as the file name, duration, playback settings, key content, and other metadata of the audio.

[0188] In some embodiments, the multimedia element includes a video. The electronic device can identify the video and extract key metadata therein, such as the file name, duration, resolution, playback settings, and other metadata of the video.

[0189] In some embodiments, the electronic device can generate placeholders of different shapes to distinguish whether the multimedia element is audio or video. Placeholders of different shapes can be selected according to actual needs, mainly based on the ability to distinguish audio and video. The shape of the placeholder is not limited here.

[0190] In some embodiments, during the process of recognizing audio, the electronic device may convert the speech in the audio into a text format, and then may count key words whose occurrence frequency is greater than or equal to a preset number of times as key content.

[0191] In some embodiments, during the process of recognizing audio, the electronic device can also extract key metadata from the audio with the help of a deep learning neural network. The deep learning neural network may include at least one of a convolutional neural network, a ring neural network, and a long short-term memory artificial neural network.

[0192] The placeholder in the embodiment of the present application can display the key elements of the audio or video, and even in the picture format, it can briefly show the content to be expressed in the original slide page to be converted.

[0193] In a possible implementation, the slide format conversion system 500 further includes a processing module, and the processing module is used to:

[0194] When the target element is determined to be a vector element according to the multi-dimensional attribute information, obtaining geometric attribute information of the vector element and at least one frame of image corresponding to the vector element;

[0195] Determine a display area of ​​the vector element in a preset image according to the geometric attribute information of the vector element;

[0196] Determine a target static image corresponding to the vector element from at least one frame of image;

[0197] Load the target static image into the display area of ​​the preset image.

[0198] The present application also provides an electronic device. The present application also provides an electronic device. Figure 6 , Figure 6 An internal structure diagram of an electronic device provided for an embodiment of the present application. The electronic device includes a processor, a memory, and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the electronic device stores an operating system and may also store a computer program, which, when executed by the processor, enables the processor to implement the method for converting the format of slides applied to the electronic device in the above-mentioned embodiment. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to execute the method for converting the format of slides. Those skilled in the art will appreciate that Figure 6 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0199] The embodiment of the present application further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the format conversion method of slides in the method embodiment is implemented.

[0200] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the embodiment of the format conversion method of the above-mentioned slides, and can achieve similar or identical technical effects. To avoid repetition, it will not be described here.

[0201] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0202] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0203] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0204] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0205] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0206] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0207] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0208] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0209] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the rights of the present application is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present application should be within the scope of the rights of the present application.

Claims

1. A method for converting the format of a slide, characterized in that: The method comprises: When receiving the conversion instruction, obtaining the target element in the slide page to be converted and the multi-dimensional attribute information of the target element; Determining, according to the multi-dimensional attribute information, layout information of the target element on the slide page to be converted and a target rendering scheme corresponding to the target element; Based on the layout information, the target element is loaded onto a preset picture according to the target rendering scheme, so as to convert the slide to be converted into a picture format.

2. The method according to claim 1, characterized in that The multi-dimensional attribute information includes at least geometric attribute information, format attribute information and visual attribute information; The step of determining the layout information of the target element on the slide page to be converted and the target rendering scheme corresponding to the target element according to the multi-dimensional attribute information includes: Determining the layout information of the target element on the slide page to be converted according to the geometric attribute information and the format attribute information; The target rendering scheme corresponding to the target element is determined according to the visual attribute information.

3. The method according to claim 2, characterized in that The geometric attribute information includes length information, width information and position information, and the format attribute information includes a first alignment mode; The step of determining the layout information of the target element on the slide page to be converted according to the geometric attribute information and the format attribute information includes: Determine the occupied space of the target element according to the length information and the width information of the target element on the slide page to be converted; Determining a target position of the target element on the slide page to be converted according to the position information of the target element on the slide page to be converted; Determining a second alignment method according to the target position; Determining a target alignment according to the first alignment and the second alignment; The layout information of the target element on the slide page to be converted is determined according to the occupied space and the target alignment.

4. The method according to claim 2, characterized in that: The visual attribute information includes color information and style information, and determining the target rendering scheme corresponding to the target element according to the visual attribute information includes: The target rendering scheme corresponding to the target element is determined according to the color information and the style information.

5. The method according to claim 2, characterized in that: After obtaining the target element in the slide page to be converted and the multi-dimensional attribute information of the target element, the method further includes: When it is determined that the target element is a multimedia element according to the multi-dimensional attribute information, a placeholder is generated at a corresponding position of the preset image according to the geometric attribute information of the multimedia element, and the placeholder is used to mark the metadata of the multimedia element.

6. The method according to claim 2, characterized in that After obtaining the target element in the slide page to be converted and the multi-dimensional attribute information of the target element, the method further includes: When it is determined that the target element is a vector element according to the multi-dimensional attribute information, obtaining geometric attribute information of the vector element and at least one frame of image corresponding to the vector element; Determining a display area of ​​the vector element in the preset picture according to the geometric attribute information of the vector element; Determining a target static picture corresponding to the vector element from the at least one frame of image; The target static image is loaded into the display area of ​​the preset image.

7. A slide format conversion system, characterized in that: The system comprises: An acquisition module, configured to acquire, upon receiving a conversion instruction, a target element in a slide page to be converted and multi-dimensional attribute information of the target element; A determination module, configured to determine, according to the multi-dimensional attribute information, layout information of the target element on the slide page to be converted and a target rendering scheme corresponding to the target element; A loading module is used to load the target element onto a preset picture according to the target rendering scheme based on the layout information, so as to convert the slide to be converted into a picture format.

8. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein a computer program is stored in the memory, and the computer program implements the method according to any one of claims 1 to 6 when executed by the processor.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by one or more processors, implements the method of any one of claims 1 to 6.

Citation Information

Cited By

  • Editable slide generation method and device, equipment and storage medium

    CN121883656A