Slide processing method, device and electronic equipment

By obtaining slide information for object recognition and configuration, it automatically adapts to the matching template to generate a preview image, solving the problem of tedious and time-consuming operations in the slide beautification process and improving the user's office efficiency.

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

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, users have to perform tedious and time-consuming operations when beautifying slides, resulting in low office efficiency.

Method used

By acquiring slide information, performing object recognition processing, determining configuration information, and adapting the slide information to a matching template, a slide preview image is generated.

Benefits of technology

It realizes the automatic beautification of slides, improves the user's office efficiency, and makes up for the lack of knowledge and skills of ordinary users in the beautification process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114254610B_ABST
    Figure CN114254610B_ABST
Patent Text Reader

Abstract

This application relates to a slide processing method, device, electronic device, and computer-readable storage medium, and relates to the field of automated office work. The method comprises: obtaining slide information of a target slide, wherein the slide information includes at least one object; performing object recognition processing on the at least one object to obtain a recognition result; determining corresponding configuration information based on the recognition result, and determining at least one template that matches the configuration information; and adapting the slide information to the at least one template to obtain at least one slide preview image that corresponds to the at least one template. This application can automatically beautify slides in presentations, improving user office efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of automated office, and more specifically, to a slide processing method, device, electronic device, and computer-readable storage medium. Background Art

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

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

[0004] Currently, beautifying a slide requires not only knowledge of slide design, such as understanding color matching and matching style with content, but also proficiency in using various editing functions within presentations. In practice, these two requirements are often difficult for ordinary presentation users to meet. Therefore, beautifying a slide often requires a significant amount of time, requiring numerous operations, such as dragging and dropping elements within the slide, adjusting their size and layout, and editing any found elements. This entire process is cumbersome, time-consuming, and inefficient. Summary of the Invention

[0005] An object of the embodiments of the present application is to provide a slide processing method, device, electronic device, and computer-readable storage medium to solve the problem in the prior art that when users beautify slides, the entire process is cumbersome and time-consuming, resulting in low user office efficiency.

[0006] According to the first aspect of the present application, a slide processing method is provided, which includes: obtaining slide information of a target slide, wherein the slide information includes at least one object; performing object recognition processing on the at least one object to obtain a recognition result; determining corresponding configuration information based on the recognition result, and determining at least one template that matches the configuration information; adapting the slide information to at least one template respectively to obtain at least one slide preview image that corresponds one-to-one to the at least one template.

[0007] Optionally, object recognition processing is performed on at least one object to obtain a recognition result, including: performing at least one of the following processing: identifying the type of at least one object and using the type of at least one object as the recognition result; identifying the position of at least one object and using the position of at least one object as the recognition result; identifying the color of at least one object and using the color of at least one object as the recognition result.

[0008] Optionally, the above-mentioned objects include: structural objects or material objects, and identifying the type of at least one object includes: when the object is a structural object, identifying the structural type of the structural object, wherein the structural type includes any one of the following: title, subtitle, and text; when the object is a material object, identifying the material type of the material object; wherein the material type includes any one of the following: text, picture, video control, audio control, and table.

[0009] Optionally, after identifying the material type of the material object, it also includes: when the material type of the identified material object is a target material type, identifying at least one content element contained in the material object; wherein the target material type includes any one of the following: text, picture and table; determining the content of the material object based on at least one content element.

[0010] Optionally, determining at least one template that matches the configuration information includes: calculating the matching degree between each preset template in the template database and the configuration information; when the matching degree is greater than a matching degree threshold, using the preset template corresponding to the matching degree as the template that matches the configuration information.

[0011] Optionally, in the case where at least one template includes multiple templates, after determining at least one template that matches the configuration information, the above method also includes: obtaining the matching degree between each template in the multiple templates and the configuration information; sorting the multiple templates according to the matching degree between the templates and the configuration information to obtain a first sorting result; and based on the first sorting result, displaying multiple slide preview images corresponding one-to-one to the multiple templates in a preset window interface.

[0012] Optionally, before displaying multiple slide preview images corresponding one-to-one to multiple templates in a preset window interface according to the first sorting result, the above method also includes: obtaining user behavior data of each template in the multiple templates; counting the data values ​​corresponding to the user behavior data of each template, and sorting the multiple templates in descending order of the data values ​​corresponding to the user behavior data of the multiple templates to obtain a second sorting result; displaying multiple slide preview images corresponding one-to-one to the multiple templates in a preset window interface according to the first sorting result, including: calculating a third sorting result according to the first sorting result and the second sorting result, and displaying the multiple slide preview images corresponding one-to-one to the multiple templates in the preset window interface according to the third sorting result.

[0013] Optionally, in the case where at least one template includes multiple templates, after determining at least one template that matches the configuration information, the above method also includes: obtaining user behavior data of each template in the multiple templates; counting the data values ​​corresponding to the user behavior data of each template, and sorting the multiple templates in descending order of the data values ​​corresponding to the user behavior data of the multiple templates to obtain a fourth sorting result; according to the fourth sorting result, displaying multiple slide preview images corresponding one by one to the multiple templates in a preset window interface.

[0014] Optionally, after determining at least one template that matches the configuration information, the above method also includes: determining beautification processing information corresponding to the slide information based on the slide information and the target template in at least one template; adapting the slide information to at least one template respectively to obtain at least one slide preview image corresponding to at least one template, including: beautifying the slide information according to the beautification processing information, adapting the beautified slide information to the second target template, and obtaining the corresponding slide preview image.

[0015] According to the second aspect of the present application, a slide processing device is also provided, which includes: an acquisition module for acquiring slide information of a target slide, wherein the slide information includes at least one object; an identification module for performing object recognition processing on at least one object to obtain a recognition result; a determination module for determining corresponding configuration information based on the recognition result, and determining at least one template matching the configuration information; a processing module for adapting the slide information to at least one template respectively, and obtaining at least one slide preview image corresponding to at least one template.

[0016] Optionally, the recognition module includes at least one sub-module for executing the following: a first recognition sub-module, used to identify the type of at least one object, and use the type of at least one object as the recognition result; a second recognition sub-module, used to identify the position of at least one object, and use the position of at least one object as the recognition result; a third recognition sub-module, used to identify the color of at least one object, and use the color of at least one object as the recognition result.

[0017] Optionally, the above-mentioned object includes: a structural object or a material object, and the first identification submodule is used to: when the object is a structural object, identify the structural type of the structural object, wherein the structural type includes any one of the following: title, subtitle, and text; when the object is a material object, identify the material type of the material object; wherein the material type includes any one of the following: text, picture, video control, audio control, and table.

[0018] Optionally, the first identification submodule is also used to: after identifying the material type of the material object, when the material type of the identified material object is a target material type, identify at least one content element contained in the material object; wherein the target material type includes any one of the following: text, picture and table; determine the content of the material object based on at least one content element.

[0019] Optionally, the determination module includes a first determination submodule for determining the corresponding configuration information based on the recognition result and a second determination submodule for determining at least one template matching the configuration information. The second determination submodule is used to: calculate the matching degree between each preset template in the template database and the configuration information; when the matching degree is greater than the matching degree threshold, the preset template corresponding to the matching degree is used as the template matching the configuration information.

[0020] Optionally, in the case where at least one template includes multiple templates, the above-mentioned device also includes: a matching degree acquisition module, which is used to obtain the matching degree between each template in the multiple templates and the configuration information after the determination module determines at least one template that matches the configuration information; a first sorting module, which is used to sort the multiple templates according to the matching degree between the template and the configuration information to obtain a first sorting result; and a display module, which is used to display multiple slide preview images corresponding to the multiple templates in a preset window interface according to the first sorting result.

[0021] Optionally, the above-mentioned device also includes: a data acquisition module, which is used to obtain user behavior data of each template in the multiple templates before the first display module displays the multiple slide preview images corresponding to the multiple templates one by one in a preset window interface according to the first sorting result; a statistical module, which is used to count the data values ​​corresponding to the user behavior data of each template, and sort the multiple templates in descending order of the data values ​​corresponding to the user behavior data of the multiple templates to obtain a second sorting result; a calculation module, which is used to calculate a third sorting result based on the first sorting result and the second sorting result; and a display module, which is used to display the multiple slide preview images corresponding to the multiple templates one by one in the preset window interface according to the third sorting result.

[0022] Optionally, in the case where at least one template includes multiple templates, the above-mentioned device also includes: a data acquisition module, which is used to obtain user behavior data of each template in the multiple templates after the determination module determines at least one template that matches the configuration information; count the data values ​​corresponding to the user behavior data of each template, and sort the multiple templates in descending order according to the data values ​​corresponding to the user behavior data of the multiple templates to obtain a fourth sorting result; and a display module, which is used to display multiple slide preview images corresponding to the multiple templates in a preset window interface according to the fourth sorting result.

[0023] Optionally, the above-mentioned device also includes: a beautification module, which is used to determine the beautification processing information corresponding to the slide information based on the slide information and the target template in at least one template after the determination module determines at least one template that matches the configuration information; the processing module is used to: beautify the slide information according to the beautification processing information, adapt the beautified slide information to the second target template, and obtain the corresponding slide preview image.

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

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

[0026] One beneficial effect of the embodiment of the present application is that it can first obtain the slide information of the target slide, wherein the slide information includes at least one object; perform object recognition processing on the at least one object to obtain a recognition result; determine the corresponding configuration information based on the recognition result, and determine at least one template that matches the configuration information; respectively adapt the slide information to the at least one template to obtain at least one slide preview image that corresponds to the at least one template. It can be seen that the present application can automatically beautify a single-page slide, thereby effectively solving the problem in the prior art that when users beautify slides, the entire process is cumbersome and time-consuming, resulting in low user office efficiency. It effectively makes up for the shortcomings of ordinary users who do not have slide beautification knowledge and are not proficient in using various editing functions in presentations when beautifying slides, thereby improving user office efficiency.

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

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

[0029] Figure 1 This is a flow chart of a slide processing method provided by an embodiment of the present application;

[0030] Figure 2 This is a schematic diagram of displaying at least one slide preview image on a client in a slide processing method provided by an embodiment of the present application;

[0031] Figure 3 is a flow chart of another slide processing method provided by an embodiment of the present application;

[0032] Figure 4 is a flow chart of another slide processing method provided in an embodiment of the present application;

[0033] Figure 5 Schematic diagram of the structure of the slide processing method provided in the embodiment of the present application;

[0034] Figure 6 This is a functional structure diagram of a slide processing device provided in an embodiment of the present application;

[0035] Figure 7 This is a schematic diagram of the hardware structure of an electronic device according to some embodiments of the present application. DETAILED DESCRIPTION

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

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

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

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

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

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

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

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

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

[0045] <Method Example>

[0046] Figure 1 This is a flow chart of a slide processing method provided by an embodiment of the present application. Figure 1 As shown, the method includes the following steps S110 to S140.

[0047] It should be noted that steps S110 to S140 may be executed on the server side or on the client side, and the following description will mainly take the execution on the server side as an example.

[0048] Step S110: Obtain slide information of a target slide; wherein the slide information includes at least one object.

[0049] The target slide is a slide that the user selects from at least one slide in the presentation and needs to be beautified. For example, when a beautification instruction for a slide currently displayed in the display interface is received, the slide is used as the target slide.

[0050] For example, the beautification instruction is triggered upon detecting that the user has performed a corresponding selection operation on a target control in the display interface. The target control is a beautification control pre-set in the display interface for initiating the slide beautification function. The server obtains the slide information of the target slide by sending a request to the client and receiving the slide information of the target slide from the client in response to the request, or by directly receiving the slide information of the target slide from the client.

[0051] The slide information includes at least one object in the target slide. For example, any of the at least one target object can be a structure object or a material object. A structure object can be, for example, a title object, a subtitle object, a body object, or other objects related to the structural components of a slide. Material objects can include, for example, text objects, image objects, video control objects, audio control objects, table objects, and other material-related objects. A structure object can contain any material object.

[0052] Step S120: performing object recognition processing on at least one object to obtain a recognition result.

[0053] For example, step S120 may be performing at least one of the following processing: identifying the type of at least one object, and taking the type of at least one object as the recognition result; identifying the position of at least one object, and taking the position of at least one object as the recognition result; identifying the color of at least one object, and taking the color of at least one object as the recognition result.

[0054] For example, when identifying the type of at least one object, since the object can be a structural object or a material object, in this case, if the object is a structural object, the structural type of the structural object can be identified, and the structural type can include any of the following: title, subtitle, and body text; if the object is a material object, the material type of the material object can be identified, and the material type can include any of the following: text, image, video control, audio control, and table. When identifying the structural type or material type, at least one object can be input into a preset object type recognition model, and the type of each object in the output result of the object type recognition model can be obtained as the object type of the object.

[0055] The object type recognition model can be obtained by performing machine learning training on multiple pre-collected first samples. Each first sample includes a first sample object and a type manually labeled for the first sample object. The first sample object of each first sample is used as input, and the type manually labeled for the first sample object in each first sample is used as output. After training multiple first samples using a preset machine learning algorithm, an object type recognition model is obtained. In this case, an object is input into the object type recognition model, and the object type recognition model outputs the type of the object accordingly. The method of performing machine learning training on multiple first samples can be set by those skilled in the art according to actual conditions, and the embodiments of the present application are not limited to this.

[0056] In some embodiments, when the material type of a material object is identified as a target material type, at least one content element contained in the material object may also be identified. The target material type may include any of the following: text, image, and table. The content of the material object is then determined based on the at least one content element.

[0057] Taking the target material type as a picture as an example, when the material type of the material object is identified as a picture, at least one content element contained in the picture is further identified, and then the content of the picture is determined according to the at least one content element.

[0058] The content elements in the picture are the elements contained in the picture, such as people, trees, houses, rivers, utensils, etc. The content of the picture includes people, scenery, animals, awards, decorations, etc.

[0059] In some examples, the element type of at least one content element in an image can be identified, such as a person, animal, tree, house, river, or appliance. The number of content elements corresponding to each element type is then counted, and the element type corresponding to the content element with the largest number of elements is used as the image content. For example, if at least one content element in an image only includes multiple people, or at least one content element includes five people and one animal, the image content can be determined to be people.

[0060] In other examples, the element type of at least one content element in an image can be identified, and image element information containing the element type of the at least one content element can be searched in a preset mapping table. The content type corresponding to the image element information can then be determined as the content of the image. The mapping table contains a preset correspondence between image element information and content, and the image element information contains the element type of one or more content elements. For example, if at least one content element in an image includes trees and a river, and the mapping table determines that the content corresponding to the image element information containing trees and a river is scenery, then the content of the image can be determined to be scenery.

[0061] Taking the target material type as text as an example, the text can be recognized and the content of the text can be determined based on the recognition results.

[0062] Taking the target material type as a table as an example, the text in the table can be recognized and the content of the table can be determined based on the recognition results.

[0063] For example, when identifying the position of at least one object, for any object, the coordinates of the object in the target slide may be identified, and the coordinates of the object in the target slide may be used as the position of the object.

[0064] For example, when identifying the color of at least one object, for any object, the RGB value of each object (the numerical value corresponding to each color channel of red, green, and blue in the RGB color mode) can be identified, and the RGB value of the object can be used as the color of the object.

[0065] Of course, it can be understood that the above-mentioned methods of identifying the type, position, and color of at least one object are merely exemplary. In specific implementations, as long as the type, position, and color of at least one object can be identified, this application does not limit the method of identifying the type, position, and color of at least one object.

[0066] Step S130: Determine corresponding configuration information according to the recognition result, and determine at least one template that matches the configuration information.

[0067] The configuration information includes at least one of the following: page type, page color, page element characteristics, and page style. There are multiple ways to determine the corresponding configuration information based on the recognition result.

[0068] As described in step S120, the recognition result may be, for example, the type of at least one object, the position of at least one object, and / or the color of at least one object. When determining corresponding configuration information based on the recognition result, for example, the page type may be determined based on the type of at least one object and the position of at least one object, the page color may be determined based on the color of at least one object, and the page element characteristics may be determined based on the type of at least one object. The page style may also be determined based on the type of at least one object, the position of at least one object, and the color of at least one object.

[0069] In some examples, the page type is determined based on the type of at least one object and the position of at least one object. The page structure of the target slide can be determined based on the type and position of the object identified in step S120 (for example, for the type of object, the number and position of each type existing in the target slide are determined, and the number and position of each type existing in the target slide are used as the page structure), and then the page type is determined based on the page structure.

[0070] Page types include any of the following: cover page, table of contents page, transition page, body page (also known as content page), and end page. Generally, pages of the same type have similar page structures. Therefore, in some examples, a correspondence between page structure and page type can be pre-set, and then the page type can be determined based on the determined page structure and the correspondence.

[0071] For example, the cover page usually has a large title with the large title centered. In this case, the page structure with the large title centered and the cover page can be matched in the above correspondence. In this case, when the determined page structure includes a large title with the large title centered, the page type of the target slide can be determined as a cover page based on the page structure and the above correspondence.

[0072] In other examples, when determining the page type, the page structure determined above can be input into a preset page type recognition model, and the output result of the page type recognition model can be obtained as the page type of the target slide.

[0073] The page type recognition model can be obtained after machine learning training is performed on multiple pre-collected second samples. Each second sample includes a page structure sample and a page type sample corresponding to the page structure sample. The page structure sample of each second sample is used as input, and the page type sample of each second sample is used as output. The page type recognition model is obtained after training multiple second samples using a preset machine learning algorithm. In this case, a page structure is input to the page type recognition model, and the output result of the page type recognition model is the page type corresponding to the page structure. The method of performing machine learning training on multiple second samples can be set by those skilled in the art according to actual conditions, and the embodiments of the present application do not limit this.

[0074] In some embodiments, before executing step S120, the page number of the target slide can also be obtained. Generally, slides in a presentation have page numbers, which can be used to indicate the position of the slide in all the slides contained in the presentation. Some page types (such as cover pages and end pages) are usually arranged in fixed positions. For example, if a presentation has n pages, n is a natural number and n>1, the cover page is arranged on the first page of the presentation (i.e., page 1), and the end page is arranged on the last page of the presentation (i.e., page n). In this case, the page number of the target slide can be used to determine whether the page type of the target slide is a cover page or an end page.

[0075] For example, the default page number of the cover page is 1. When the page number of the target slide is 1, the page type of the target slide is determined to be the cover page.

[0076] To improve the accuracy of page type identification, in some embodiments, the page type may be determined based on the page number and page structure.

[0077] For example, a cover page typically has a centrally positioned title, and in some cases, a transition page also has a centrally positioned title. Therefore, if the target slide's page structure is determined to have a centrally positioned title, the target slide's page type may be either a cover page or a transition page. In this case, the target slide's page can be retrieved. If the target slide's page number is 1, the page type can be determined to be a cover page; if the target slide's page number is m (a presentation has n pages, where n is a natural number and n>1, and m is a natural number and n>m>1), the page type can be determined to be a transition page. In some examples, when determining the page color based on the color of at least one object, the primary color of the target slide can be determined based on the colors of all objects in the target slide, and the primary color of the target slide can be used as the page color of the target slide. When determining the primary color, the color areas corresponding to the colors of the at least one object identified in step S120 can be counted, and the color corresponding to the largest color area among all color area areas can be used as the page color.

[0078] After using the color corresponding to the largest color area among all color areas as the page color, the above page color can also be fine-tuned according to the actual user's habits of selecting theme colors, and the color obtained after fine-tuning can be used as the page color to make the page color more in line with the habits of most users.

[0079] In other examples, after the color corresponding to the largest color area among all color area areas is used as the page color, there may be a situation where the page color and the colors of some objects in the target slide are highly similar. Based on this, if the page color of the target slide is adjusted to the object color, there may be a problem of poor object visibility. For example, if the page color is dark green, and some objects in the target slide are also dark green or a color very similar to it, in this case, the above-mentioned determined page color can be fine-tuned according to the colors of the above-mentioned objects, so that the similarity between the page color and the colors of the above-mentioned objects is less than or equal to a preset similarity threshold, thereby ensuring the visibility of each object in the target slide. The above-mentioned similarity threshold can be set by those skilled in the art according to actual conditions, and the embodiments of the present application are not limited to this.

[0080] Page element characteristics, for example, include the content of the material object corresponding to the target material type determined above. For example, if the material object includes text, the page element characteristics include the content of the text; if the material object includes an image, the page element characteristics include the content of the image; and so on. When determining page element characteristics based on the type of at least one object, if the object type is determined to be a material object, the content of the material object can be obtained as the page element characteristics. When determining page style based on the type of at least one object, the position of at least one object, and the color of at least one object, the page style can be determined based on the obtained page color and page element characteristics. The method for determining page color and page element characteristics can be described in the corresponding description of the above embodiments and will not be repeated here. When determining page style based on page color and page element characteristics, for example, a color style mapping table can be pre-set, including mappings between multiple preset page colors and preset page styles; a type style mapping table can be pre-set, including mappings between multiple preset page types and multiple preset page styles; and a page element style mapping table can be pre-set, including mappings between multiple preset page element characteristics and multiple preset page styles. A first predetermined page style can be determined based on the page color; a second predetermined page style can be determined based on the page type; and a third predetermined page style can be determined based on the page element characteristics. The page style is then determined based on the first predetermined page style, the second predetermined page style, and the third predetermined page style. For example, the predetermined page style that appears the most times among the first predetermined page style, the second predetermined page style, and the third predetermined page style may be used as the page style. In the case where the first predetermined page style, the second predetermined page style, and the third predetermined page style are all different, the predetermined page style with the highest priority may be used as the page style based on the priority set in advance for the first predetermined page style, the second predetermined page style, and the third predetermined page style. The above-mentioned priority may be a default setting or may be set by the user according to his or her actual needs. When determining at least one template that matches the configuration information, the degree of matching between the preset template and the configuration information may be calculated, and the preset template with a matching degree greater than a matching degree threshold may be used as the at least one template that matches the configuration information.

[0081] In a specific implementation, a template database can be pre-established, containing multiple preset templates. A degree of match between each preset template in the template database and the configuration information can be calculated. For each preset template's degree of match between the configuration information and the configuration information, a determination is made as to whether the degree of match exceeds a matching threshold. If the determination is yes, i.e., the degree of match exceeds the matching threshold, the preset template corresponding to the matching degree is considered the template that matches the configuration information. If the determination is no, i.e., the degree of match is less than or equal to the matching threshold, the preset template corresponding to the matching degree is not considered the template that matches the configuration information.

[0082] Calculating the degree of matching between each preset template in the template database and the configuration information can, for example, be calculating the preset degree of matching between each information in the configuration information and the preset template. For example, if the configuration information only includes page type, the preset degree of matching between the page type and the preset template is calculated. Alternatively, if the configuration information includes page type and page color, the preset degree of matching between the page type and the preset template, as well as the preset degree of matching between the page color and the preset template, is calculated to obtain the preset degree of matching corresponding to the page type and the preset degree of matching corresponding to the page color. Then, the preset degree of matching between the preset template and the configuration information is calculated based on the preset weight of each information in the configuration information. For example, the product of the preset degree of matching between each information in the configuration information and the preset weight of the information in the configuration information is calculated as the weighted matching degree of the information, the weighted matching degrees of all information in the configuration information are summed, and the summed result is used as the matching degree between the preset template and the configuration information.

[0083] Step S140: Adapting the slide information to the at least one found template to obtain at least one slide preview image corresponding to the at least one template.

[0084] The slide information can be adapted to at least one template found to obtain at least one slide preview image, and then the at least one slide preview image can be sent to the client for the client to display the at least one slide preview image in the client interface (such as Figure 2 (as shown in Part A in the figure) for users to preview and select.

[0085] It can be seen that the embodiment of the present application can first obtain the slide information of the target slide, wherein the slide information includes at least one object; perform object recognition processing on at least one object to obtain a recognition result; determine the corresponding configuration information based on the recognition result, and determine at least one template that matches the configuration information; adapt the slide information to at least one template respectively, and obtain at least one slide preview image that corresponds one-to-one to at least one template.

[0086] It can be seen that the present application can automatically beautify single-page slides, thereby effectively solving the problem in the prior art that when users beautify slides, the entire process is cumbersome and time-consuming, resulting in low user office efficiency. It effectively makes up for the shortcomings of ordinary users who do not have knowledge of slide beautification and cannot skillfully use various editing functions in presentations when beautifying slides, thereby improving users' office efficiency.

[0087] In some embodiments, the at least one template matching the configuration information includes multiple templates. In this case, after executing step S130, as shown in FIG. Figure 3 As shown, the embodiment of the present application can also perform the following steps S310 to S330.

[0088] Step S310: Obtain the matching degree between each template in the plurality of templates and the configuration information.

[0089] Each template has a matching degree with the configuration information. Using the matching degree of each template with the configuration information as the matching degree corresponding to the template, multiple matching degrees corresponding to multiple templates can be obtained. The method for obtaining the matching degree between each template and the configuration information can be configured by those skilled in the art based on actual circumstances and is not limited in this embodiment of the application.

[0090] Step S320: sorting the multiple templates according to the matching degree between the templates and the configuration information to obtain a first sorting result.

[0091] The multiple matching degrees can be sorted in descending order, and the multiple templates can be sorted according to the sorting results of the multiple matching degrees. The position of each template in the sorting of the multiple templates is the same as the sorting position of the matching degree corresponding to the template in the sorting of the multiple matching degrees.

[0092] Step S330: Based on the first sorting result, a plurality of slide preview images corresponding to the plurality of templates are displayed in a preset window interface.

[0093] According to the order of arrangement from high to low in the first sorting result, the slide preview images corresponding to the multiple templates are displayed in sequence in a preset window interface, so that the slide preview images corresponding to the templates with higher matching degrees are displayed first.

[0094] In some embodiments, the at least one template that matches the configuration information includes multiple templates. In this case, Figure 4 As shown, the embodiment of the present application can also perform the following steps S410 to S430.

[0095] Step S410: Obtain user behavior data for each of the multiple templates.

[0096] User behavior data may be, for example, the number of times a user clicks on a template, the number of times a user selects a template, the number of times a user previews a template, or other data related to the user's behavior with respect to the template.

[0097] Step S420: Count the data values ​​corresponding to the user behavior data of each template, and sort the multiple templates in descending order according to the data values ​​corresponding to the user behavior data of the multiple templates to obtain a second sorting result. The user behavior data of each template corresponds to a specific data value, such as the number of clicks, selections, and previews of the template by the user. In this case, the data values ​​of the user behavior data of the multiple templates are sorted in descending order, and the multiple templates are sorted according to the sorting results of the data values ​​of the user behavior data of the multiple templates to obtain a second sorting result. The sorting position of each template in the multiple templates is the same as the sorting position of the data value of the user behavior data of the template in the data values ​​of the user behavior data of the multiple templates.

[0098] Step S430: Based on the second sorting result, a plurality of slide preview images corresponding to the plurality of templates are displayed in a preset window interface.

[0099] According to the order of arrangement from high to low in the second sorting result, multiple slide preview images corresponding to the multiple templates are sequentially displayed in a preset window interface, so that templates with higher values ​​of user behavior data are displayed first.

[0100] In some embodiments, when steps S410 to S420 are executed, the execution process of step S330 may be as follows: a third ranking result is calculated based on the first ranking result and the second ranking result, and based on the third ranking result, multiple slide preview images corresponding to multiple templates are displayed in a preset window interface. Specifically, the matching degree of any template in the first ranking result and the matching degree of the template in the second ranking result can be summed to obtain the summed result as the first target matching degree of the template, and the first target matching degrees of all templates are sorted in descending order to obtain the third ranking result. Of course, a first weight corresponding to the first ranking result and a second weight corresponding to the second ranking result can also be pre-set, and then the product of the matching degree of a template in the first ranking result and the first weight is obtained as the first matching degree of the template, and the product of the matching degree of the template in the second ranking result and the second weight is obtained as the second matching degree of the template, and then the sum of the first matching degree and the second matching degree is used as the second target matching degree of the template, and the second target matching degrees of all templates are sorted in descending order to obtain the third ranking result.

[0101] In some embodiments, before executing step S110, the server may further receive quantity information from the client, where the quantity information is the maximum number of slide preview images that can be displayed in the client interface. If the number of at least one slide preview image obtained by the server is greater than the maximum number of slide preview images that can be displayed in the client interface, the server may send the slide preview image with the highest sorting order to the client based on the above sorting result. After receiving a preset instruction (such as a refresh instruction), the client sends a preset request to the server so that the server selects some of the remaining slide preview images from the remaining slide preview images and sends them to the client based on the preset request and the priority of the remaining slide preview images, if the number of the remaining slide preview images is greater than the maximum number of slide preview images that can be displayed in the client interface; otherwise, all the remaining slide preview images are sent to the client.

[0102] In some embodiments, after executing step S130, the embodiment of the present application may further determine the beautification processing information corresponding to the slide information according to the slide information and a target template in the at least one template. The target template is any template in the at least one template.

[0103] Since the target template can adapt to at least one object in the target slide, for example, if the target slide has a title, the target template has a template adapted to the title. In this case, after determining the target template to which the slide information (i.e., at least one object in the target slide) is to be adapted, the adaptation result can be automatically beautified based on information such as the number and content of the at least one object, making the adaptation result more standardized and beautiful.

[0104] For example, a target slide contains multiple objects of the same type, such as multiple images, multiple controls, multiple text boxes, and multiple tables. In this case, after adapting the multiple objects in the target template, the adaptation results of the multiple objects in the target template can be beautified based on the logical association between the multiple objects of the same type. The information for beautifying the adaptation results is the beautification processing information. For example, the information can be typesetting or splicing the multiple identical objects.

[0105] For example, the number of images identified according to the slide information is multiple, that is, the target slide has multiple images, and the logical association relationship of the multiple images is a parallel relationship, and they are all landscape images. In this case, the puzzle information generated after the multiple images are puzzled is the beautification processing information. Based on this, the purpose of puzzle processing (puzzle in PPT) of multiple images can be achieved, that is, the positions of the multiple images are arranged in a predetermined manner, so that the positions of the multiple images after layout are more reasonable and beautiful, and the situation in which multiple images may be randomly and messily distributed in the adaptation result after the slide information is adapted to the target template is effectively improved.

[0106] For another example, the text content is identified based on the slide information. When it is determined that the text content is process content, a corresponding flowchart is generated based on the text content, wherein the process information of the flowchart generated from the text content is beautified processing information.

[0107] For example, if a target slide contains multiple objects, different types of objects may have associated relationships. For example, the target slide contains multiple titles and multiple images corresponding to the titles, and the text in the titles describes the content of the corresponding images. In this case, corresponding beautification information can be generated to layout each title and its corresponding image together according to the beautification information, automatically associating multiple titles with multiple images.

[0108] In some embodiments, after executing step S140, the client may further receive a filtering instruction carrying filtering information, determine at least one target slide preview image that matches the filtering information from the at least one slide preview image, and then display only the at least one target slide preview image on the client display interface. The filtering information may be set by the user according to actual circumstances.

[0109] The solution in this application is described in detail below through a specific example. Figure 5 As shown, the execution subject is the server (i.e. Figure 5 For example, the server receives the slide information and quantity information of the target slide from the client. The quantity information is the maximum number of slide previews that can be displayed in the client interface (the process sequence corresponds to Figure 5 In ①), the server can perform the functions of identification, matching and application according to the slide information of the target slide, and perform the function of downloading according to the result of applying the function and the received quantity information. Figure 5 In the "Identification" part, the above matching function corresponds to Figure 5 In the "match" part, the above-mentioned function corresponds to Figure 5 In the "Apply" section, the above downloaded functions correspond to Figure 5 , in the Downloads section.

[0110] Specifically, for Figure 5 The "recognition" part of the Figure 5 "Structure recognition") function, AI (Artificial Intelligence) image recognition (corresponding to Figure 5 AI image recognition) function, AI theme recognition (corresponding to Figure 5AI theme style recognition) and AI theme color recognition (corresponding to Figure 5 The "AI theme color recognition" function in the

[0111] Specifically, in Figure 5 In the process of structure recognition, the type and position of the object are identified, and AI picture recognition is to identify the object as a material object, and automatically identify the material object whose material type is a picture, so as to identify the picture in the target slide; the process of structure recognition and AI picture recognition can refer to the corresponding description of the process of identifying the type and position of at least one object in step S120, which will not be repeated here.

[0112] Specifically, in Figure 5 In the process of identifying the page style and page color of the target slide, AI theme style recognition is to identify the page style of the target slide, and AI theme color recognition is to identify the page color of the target slide. The process of identifying the page style and page color of the target slide can refer to the corresponding description of the process of determining the page style and page color in step S130, which will not be repeated here.

[0113] After executing Figure 5 After the "identification" process in Figure 5 The "matching" function (process sequence corresponds to Figure 5 Specifically, for Figure 5 The "matching" part in the Figure 5 "Structure matching") function, matching degree calculation (corresponding to Figure 5 "Matching calculation") function, beautification characteristics (corresponding to Figure 5 "Beautification Features") and template recommendations (corresponding to Figure 5 Template Recommendation) function in .

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

[0115] Specifically, in Figure 5In the example, structural matching refers to selecting the configuration information as the page type. The matching degree calculation corresponds to calculating the matching degree between the preset template and the page type in step S130. The beautification feature corresponds to selecting the preset template with a matching degree greater than the matching degree threshold in step S130 as the at least one template that matches the configuration information (the at least one template is the template to be recommended). Template recommendation refers to selecting the at least one template that matches the configuration information as the template to be recommended. The implementation process of the matching degree calculation, beautification feature, and template recommendation functions can be found in the corresponding description of the above embodiment and will not be repeated here.

[0116] After executing Figure 5 After the "matching" process in Figure 5 The "apply" function (process sequence corresponds to Figure 5 Specifically, for Figure 5 The "Apply" section in the Figure 5 "Download User Documents") function, select the template to apply (corresponding to Figure 5 "Select a template") in the function and application characteristics (corresponding to Figure 5 "Application Features") and generate templates and thumbnails (corresponding to Figure 5 Generate templates and thumbnails) in the

[0117] Specifically, in Figure 5 Downloading user documents means extracting slide information from the client; selecting an application template means selecting the template to be recommended as the application template. The application characteristics correspond to the process of determining the beautification processing information corresponding to the slide information based on the slide information and the target template in at least one template after determining at least one template that matches the configuration information (i.e., executing step S130) in the above embodiment. Generating templates and thumbnails corresponds to the execution process of step S140 in the above embodiment. The specific implementation process of downloading user documents, application characteristics, and generating templates and thumbnails can be found in the corresponding description in the above embodiment, and will not be repeated here.

[0118] After executing Figure 5 After the "apply" process in Figure 5 The "Download" function (process sequence corresponds to Figure 5 Specifically, for Figure 5 The "Download" section in the Figure 5 "Thumbnail download") function, document download (corresponding to Figure 5 "Document Download" function in the .

[0119] Specifically, in Figure 5In the process of downloading thumbnails, at least one slide preview image obtained in "Apply" is downloaded. Document downloading is to download at least one slide preview image corresponding to the quantity information in the at least one slide preview image according to the quantity information from the client, and finally send the slide preview images obtained by document downloading to the client (the process sequence corresponds to Figure 5 ⑤).

[0120] It should be noted that the above embodiment is described by taking execution on the server side as an example. The execution method of the client is similar to that of the server side. For details, please refer to the above introduction of the embodiment executed on the server side. The embodiment of this application will not be repeated.

[0121] <Equipment Example>

[0122] Figure 6 1 is a functional block diagram of a slideshow processing device according to some embodiments of the present application. Figure 6 As shown, the slide processing device 60 may include:

[0123] The acquisition module 61 is configured to acquire slide information of a target slide, wherein the slide information includes at least one object.

[0124] The recognition module 62 is configured to perform object recognition processing on at least one object to obtain a recognition result.

[0125] The determination module 63 is configured to determine corresponding configuration information according to the recognition result, and to determine at least one template that matches the configuration information.

[0126] The processing module 64 is configured to adapt the slide information to at least one template, and obtain at least one slide preview image corresponding to the at least one template.

[0127] The present application can first obtain the slide information of the target slide through the acquisition module, wherein the slide information includes at least one object; then perform object recognition processing on the at least one object through the recognition module to obtain a recognition result; determine the corresponding configuration information according to the recognition result through the determination module, and determine at least one template that matches the configuration information; finally, adapt the slide information to at least one template through the processing module to obtain at least one slide preview image that corresponds to the at least one template. It can be seen that the present application can automatically beautify a single-page slide, thereby effectively solving the problem of low office efficiency of users in the prior art when beautifying slides due to the cumbersome and time-consuming operation of the entire process, and effectively making up for the shortcomings of ordinary users who do not have slide beautification knowledge and are not proficient in using various editing functions in presentations when beautifying slides, thereby improving the office efficiency of users.

[0128] Optionally, the recognition module includes at least one sub-module for executing the following: a first recognition sub-module, used to identify the type of at least one object, and use the type of at least one object as the recognition result; a second recognition sub-module, used to identify the position of at least one object, and use the position of at least one object as the recognition result; a third recognition sub-module, used to identify the color of at least one object, and use the color of at least one object as the recognition result.

[0129] Optionally, the above-mentioned object includes: a structural object or a material object, and the first identification submodule is used to: when the object is a structural object, identify the structural type of the structural object, wherein the structural type includes any one of the following: title, subtitle, and text; when the object is a material object, identify the material type of the material object; wherein the material type includes any one of the following: text, picture, video control, audio control, and table.

[0130] Optionally, the first identification submodule is also used to: after identifying the material type of the material object, when the material type of the identified material object is a target material type, identify at least one content element contained in the material object; wherein the target material type includes any one of the following: text, picture and table; determine the content of the material object based on at least one content element.

[0131] Optionally, the determination module includes a first determination submodule for determining the corresponding configuration information based on the recognition result and a second determination submodule for determining at least one template matching the configuration information. The second determination submodule is used to: calculate the matching degree between each preset template in the template database and the configuration information; when the matching degree is greater than the matching degree threshold, the preset template corresponding to the matching degree is used as the template matching the configuration information.

[0132] Optionally, in the case where at least one template includes multiple templates, the above-mentioned device also includes: a matching degree acquisition module, which is used to obtain the matching degree between each template in the multiple templates and the configuration information after the determination module determines at least one template that matches the configuration information; a first sorting module, which is used to sort the multiple templates according to the matching degree between the template and the configuration information to obtain a first sorting result; and a display module, which is used to display multiple slide preview images corresponding to the multiple templates in a preset window interface according to the first sorting result.

[0133] Optionally, the above-mentioned device also includes: a data acquisition module, which is used to obtain user behavior data of each template in the multiple templates before the first display module displays the multiple slide preview images corresponding to the multiple templates one by one in a preset window interface according to the first sorting result; a statistical module, which is used to count the data values ​​corresponding to the user behavior data of each template, and sort the multiple templates in descending order of the data values ​​corresponding to the user behavior data of the multiple templates to obtain a second sorting result; a calculation module, which is used to calculate a third sorting result based on the first sorting result and the second sorting result; and a display module, which is used to display the multiple slide preview images corresponding to the multiple templates one by one in the preset window interface according to the third sorting result.

[0134] Optionally, in the case where at least one template includes multiple templates, the above-mentioned device also includes: a data acquisition module, which is used to obtain user behavior data of each template in the multiple templates after the determination module determines at least one template that matches the configuration information; count the data values ​​corresponding to the user behavior data of each template, and sort the multiple templates in descending order according to the data values ​​corresponding to the user behavior data of the multiple templates to obtain a fourth sorting result; and a display module, which is used to display multiple slide preview images corresponding to the multiple templates in a preset window interface according to the fourth sorting result.

[0135] Optionally, the above-mentioned device also includes: a beautification module, which is used to determine the beautification processing information corresponding to the slide information based on the slide information and the target template in at least one template after the determination module determines at least one template that matches the configuration information; the processing module is used to: beautify the slide information according to the beautification processing information, adapt the beautified slide information to the second target template, and obtain the corresponding slide preview image.

[0136] Figure 7 is a schematic diagram of the hardware structure of an electronic device according to an embodiment.

[0137] like Figure 7 As shown, the electronic device 700 includes a processor 701 and a memory 702, wherein the memory 702 is used to store an executable computer program, and the processor 701 is used to execute a method as any of the above method embodiments under the control of the computer program.

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

[0139] The electronic device 700 may be a mobile phone, a personal digital assistant (PDA), a wireless handheld device, a tablet computer (Tablet Computer), a personal computer (PC), a PDA (Personal Digital Assistants), etc.

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

[0141] A computer-readable storage medium can be a tangible device that can hold and store instructions for use by an instruction execution device. A computer-readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination thereof. As used herein, a computer-readable storage medium is not to be construed as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through an electrical wire.

[0142] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in the computer-readable storage medium in each computing / processing device.

[0143] The computer program instructions for performing the operation of the present application can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data or source code or object code written in any combination of one or more programming languages, programming languages ​​include object-oriented programming languages-such as Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming languages. Computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or executed completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer by any type of network-including local area network (LAN) or wide area network (WAN), or can be connected to an external computer (such as utilizing an Internet service provider to connect by the Internet). In certain embodiments, by utilizing the state information of computer-readable program instructions to personalize electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), the electronic circuits can execute computer-readable program instructions, thereby realizing various aspects of the present application.

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

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

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

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

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

Claims

1. A slide processing method, characterized in that: include: Obtaining slide information of a target slide, wherein the target slide is a slide selected from at least one slide in a presentation to be beautified, and the slide information includes at least one object; Performing object recognition processing on at least one object to obtain a recognition result includes: identifying the color of the at least one object, counting the areas of color regions corresponding to the same colors, and determining the color corresponding to the largest color region among all the color region areas as the page color; if the similarity between the page color and the color of an object in a target slide is greater than a preset similarity threshold, fine-tuning the determined page color based on the color of the object so that the similarity between the page color and the color of the object is less than or equal to the preset similarity threshold; Determine corresponding configuration information according to the recognition result, and determine at least one template matching the configuration information; the configuration information includes: page type, page color, page element characteristics and page style; determining the corresponding configuration information according to the recognition result includes: determining the page type according to the type of at least one object and the position of at least one object; determining the page color according to the color of at least one object; determining the page element characteristics according to the type of at least one object; determining the page style according to the page color, page type and page element characteristics, including: pre-setting a color style mapping table, a type style mapping table and a page element style mapping table; determining a first predetermined page style according to the page color; determining a second predetermined page style according to the page type; determining a third predetermined page style according to the page element characteristics; determining the page style according to the first predetermined page style, the second predetermined page style and the third predetermined page style; determining, according to the slide information and any target template in the at least one template, beautification processing information corresponding to the slide information; When the slide information identifies a plurality of pictures, and the pictures are logically associated in a parallel relationship, puzzle information generated by puzzle processing the pictures is beautification processing information; and When a target slide has multiple titles and multiple pictures corresponding to the multiple titles, and the text descriptions in the titles are the content of the corresponding pictures, information is generated by typeset the titles and the pictures corresponding to the titles, and beautifying the multiple titles and the pictures accordingly; The slide information is beautified according to the beautification information, and the beautified slide information is adapted to the target template to obtain a corresponding slide preview image.

2. The method according to claim 1, characterized in that Performing object recognition processing on at least one object to obtain a recognition result also includes: Perform at least one of the following actions: identifying a type of at least one object, and using the type of the at least one object as an identification result; A position of at least one object is identified, and the position of the at least one object is used as an identification result.

3. The method according to claim 2, characterized in that Subjects include: A structure object or a material object that identifies at least one object type, including: In the case where the object is a structural object, identifying a structural type of the structural object, wherein the structural type includes any one of the following: title, subtitle, and body; In the case that the object is a material object, the material type of the material object is identified; wherein the material type includes any one of the following: text, picture, video control, audio control, and table.

4. The method according to claim 3, characterized in that After identifying the material type of the material object, it also includes: When the material type of the identified material object is a target material type, identifying at least one content element contained in the material object; wherein the target material type includes any one of the following: text, picture, and table; determining the content of the material object based on at least one content element; The content of the text is identified according to the slide information. When it is determined that the content of the text is process content, a corresponding flowchart is generated according to the content of the text, wherein the process information of the flowchart generated from the text content is beautification processing information.

5. The method according to any one of claims 1 to 4, characterized in that Determining at least one template matching the configuration information includes: Calculate the matching degree between each preset template in the template database and the configuration information; When the matching degree is greater than the matching degree threshold, the preset template corresponding to the matching degree is used as the template that matches the configuration information.

6. The method according to claim 1, characterized in that In a case where the at least one template includes multiple templates, after determining at least one template matching the configuration information, the method further includes: Obtain the matching degree between each template and configuration information among multiple templates; Sorting the multiple templates according to the matching degree between the templates and the configuration information to obtain a first sorting result; According to the first sorting result, a plurality of slide preview images corresponding one-to-one to the plurality of templates are displayed in a preset window interface.

7. The method according to claim 6, characterized in that Before displaying the plurality of slide preview images corresponding one-to-one to the plurality of templates in a preset window interface according to the first sorting result, the method further includes: Obtain user behavior data for each of multiple templates; Counting the data values ​​corresponding to the user behavior data of each template, and sorting the multiple templates in descending order of the data values ​​corresponding to the user behavior data of the multiple templates to obtain a second sorting result; According to the first sorting result, multiple slide preview images corresponding to the multiple templates are displayed in a preset window interface, including: A third sorting result is calculated according to the first sorting result and the second sorting result. According to the third sorting result, a plurality of slide preview images corresponding to the plurality of templates are displayed in a preset window interface.

8. The method according to claim 1, characterized in that In a case where the at least one template includes multiple templates, after determining at least one template matching the configuration information, the method further includes: Obtain user behavior data for each of multiple templates; Counting the data values ​​corresponding to the user behavior data of each template, and sorting the multiple templates in descending order of the data values ​​corresponding to the user behavior data of the multiple templates to obtain a second sorting result; According to the second sorting result, a plurality of slide preview images corresponding one-to-one to the plurality of templates are displayed in a preset window interface.

9. A slide processing device, characterized in that: include: An acquisition module is configured to acquire slide information of a target slide, wherein the target slide is a slide selected from at least one slide in a presentation to be beautified, and the slide information includes at least one object; an identification module is configured to perform object recognition processing on the at least one object to obtain a recognition result, including: determining the color of the at least one object, counting the areas of color regions corresponding to the same colors, and determining the color corresponding to the largest color region among all the areas of the color regions as the page color; and, if the similarity between the page color and the color of an object in the target slide is greater than a preset similarity threshold, fine-tuning the determined page color based on the color of the object so that the similarity between the page color and the color of the object is less than or equal to the preset similarity threshold; a determination module, configured to determine corresponding configuration information based on the recognition result, and to determine at least one template matching the configuration information; the configuration information includes: page type, page color, page element characteristics, and page style; determining the corresponding configuration information based on the recognition result includes: determining the page type based on the type of at least one object and the position of at least one object; determining the page color based on the color of at least one object; determining the page element characteristics based on the type of at least one object; determining the page style based on the page color, page type, and page element characteristics, including: presetting a color style mapping table, a type style mapping table, and a page element style mapping table; determining a first predetermined page style based on the page color; determining a second predetermined page style based on the page type; determining a third predetermined page style based on the page element characteristics; and determining the page style based on the first predetermined page style, the second predetermined page style, and the third predetermined page style; Determining, based on the slide information and any target template in at least one template, beautification processing information corresponding to the slide information; if the slide information identifies a plurality of images, and the plurality of images are logically associated in a parallel relationship, performing puzzle processing on the plurality of images to generate puzzle information, namely the beautification processing information; and, if the target slide has a plurality of titles, a plurality of images corresponding to the plurality of titles, and the text descriptions in the titles are the content in the corresponding images, generating beautification processing information by typeset-ing the plurality of titles and the images corresponding to the titles; The processing module is used to beautify the slide information according to the beautification processing information, adapt the beautified slide information to the target template, and obtain a corresponding slide preview image.

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

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

Citation Information

Patent Citations

  • Slide identification method and apparatus

    CN106934336A

  • Generating presentation slides with distilled content

    CN108073680A

  • Color theme maintenance for presentations

    CN109213982A

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

    CN113094552A