File processing method and device, electronic equipment and storage medium

By determining the target animation of the target style that is suitable for the electronic file and updating the file to generate a new file, the problem of poor animation effect of electronic devices in the existing technology is solved, and the strong correlation between the animation and the file content and the improvement of user experience is achieved.

CN119625140APending Publication Date: 2025-03-14ZHUHAI KINGSOFT OFFICE SOFTWARE +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311168035.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-11
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The prior art produces electronic device animations with poor results and lacks correlation with device content, resulting in poor user experience.

Method used

By determining the target animation of the target style that is adapted to the electronic file and updating the file based on the animation, a new file including the target animation is generated. The method includes analyzing the file content and outline structure in response to the editing or viewing state of the file, generating adapted animations, and generating and modifying animations through control components or natural language inputs.

Benefits of technology

It realizes personalized configuration of animation, makes the animation content richer, improves the correlation between animation effects and file content, and thus improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119625140A_ABST
    Figure CN119625140A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a file processing method and device, electronic equipment and a storage medium. The file processing method comprises the steps that a target animation of a target style matched with a first file is determined; and updating the first file based on the target animation to generate a second file including the target animation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to but is not limited to the field of document processing technology, and in particular to a file processing method and device, an electronic device and a storage medium. Background Art

[0002] With the continuous development of computer technology or Internet technology, the use of electronic files to handle work, life and other matters has become increasingly indispensable.

[0003] Electronic files may generally include but are not limited to presentation files, document files and / or spreadsheet files. Presentation files are generally used for presentations; document files are generally used to record information in the form of text and / or images; spreadsheet files can generally record information in the form of spreadsheets.

[0004] At present, there are two main ways to generate animations for electronic files: one is to generate animations corresponding to electronic files manually. This method is cumbersome to operate and it is difficult to generate good-looking animations. The other is to generate animations for electronic devices based on existing animations on the market. This method has simple animations, poor effects, and no relevance to the content of the electronic device. The animations generated by the current electronic device animation generation method are not good, which brings a bad experience to users. Summary of the invention

[0005] Embodiments of the present disclosure provide a file processing method and device, an electronic device, and a storage medium.

[0006] A first aspect of the present disclosure provides a file processing method, the method comprising:

[0007] Determine a target animation of a target style adapted to the first file;

[0008] The first file is updated based on the target animation to generate a second file including the target animation.

[0009] In some embodiments, determining a target animation of a target style adapted to the first file includes:

[0010] In response to the state of editing the first file, determining the target animation of the target style adapted to the first file;

[0011] or,

[0012] In response to the state of viewing the first file, the target animation of the target style adapted to the first file is determined.

[0013] In some embodiments, in response to editing the first file, determining the target animation of the target style adapted to the first file includes:

[0014] In response to the state of editing the first file, displaying prompt information;

[0015] The target animation of the target style adapted to the first file is determined according to a first feedback operation acting on the prompt information.

[0016] In some embodiments, determining a target animation of a target style adapted to the first file includes:

[0017] Based on the animation to be added to the first file, generating the target animation of the target style adapted to the first file;

[0018] or,

[0019] Based on the fact that the alternative animation added by the first file is not compatible, the target animation of the target style compatible with the first file is generated.

[0020] In some embodiments, determining a target animation of a target style adapted to the first file includes:

[0021] Pre-generating a plurality of target animations of candidate styles adapted to the first file;

[0022] From the target animations of multiple candidate styles generated in advance, the target animation that matches the current target style is selected.

[0023] In some embodiments, determining a target animation of a target style adapted to the first file includes one of the following:

[0024] Analyze the file content of the first file and / or the outline structure generated by the first file to determine the target animation of the target style adapted to the first file;

[0025] Determining the target animation of the target style adapted to the first file according to a second feedback operation acting on the control component;

[0026] In response to detecting a natural language input of a conversation panel indicating a user demand, determining the target animation of the target style adapted to the first file.

[0027] In some embodiments, the control component includes at least one of the following:

[0028] the control component displayed on the session panel;

[0029] Displaying the control component in the animation outline interface of the first file;

[0030] The control component is popped up within the page of the first file.

[0031] In some embodiments, the control component includes at least one of the following:

[0032] A first type of control component, used to instruct generation and / or modification of the target animation corresponding to all pages of the first file;

[0033] The second type of control component is used to instruct the generation and / or modification of the target animation in a single page of the first file;

[0034] The third type of control component is used to instruct the generation and / or modification of the target animation corresponding to the object in a single page of the first file.

[0035] In some embodiments, determining the target animation of the target style adapted to the first file includes at least one of the following:

[0036] Generate and / or modify the target animation corresponding to all pages of the first file;

[0037] Generate and / or modify the target animation in a predetermined page in the first file;

[0038] Generate and / or modify the target animation corresponding to the predetermined object in the predetermined page in the first file.

[0039] In some embodiments, the target animation includes: page animation and / or transition animation; wherein the page animation is an animation in a page of the first file; and the transition animation is an animation of the page transition.

[0040] In some embodiments, updating the first file based on the target animation to generate a second file including the target animation includes:

[0041] When no animation is added to the first file, adding the target animation to the first file to generate a second file including the target animation;

[0042] or,

[0043] When the candidate animation has been added to the first file, the candidate animation in the first file is replaced with the target animation to generate a second file including the target animation.

[0044] In some embodiments, the method further comprises: determining a playback duration of the first file;

[0045] The determining of the target animation of the target style adapted to the first file includes: determining the target animation of the target style adapted to the first file based on the playback duration.

[0046] A second aspect of an embodiment of the present disclosure provides a file processing device, the device comprising:

[0047] A processing module, used for determining a target animation of a target style adapted to the first file;

[0048] A generating module is used to update the first file based on the target animation to generate a second file including the target animation.

[0049] A third aspect of the present disclosure provides an electronic device, including:

[0050] processor;

[0051] a memory for storing processor-executable instructions;

[0052] Wherein, the processor is configured to: implement any file processing method described in the first aspect when running the executable instructions.

[0053] A fourth aspect of an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores an executable program, wherein when the executable program is executed by a processor, the file processing method described in any of the first aspects is implemented.

[0054] In the disclosed embodiment, a target animation of a target style adapted to a first file can be determined, and the first file can be updated based on the target animation to generate a second file including the target animation. In this way, the first file can select a target animation of a suitable style for display, and thus personalized configuration of the animation of the first file can be achieved, making the animation content of the first file richer.

[0055] Furthermore, the target animation generated in the embodiment of the present disclosure has a strong correlation with the content of the first file, which can improve the animation effect; thus, the user's experience satisfaction can also be improved.

[0056] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0058] Figure 1 The figure is a flowchart of a file processing method according to an exemplary embodiment.

[0059] Figure 2 The diagram is a schematic diagram of adding and / or replacing animations in a display interface of a file according to an exemplary embodiment.

[0060] Figure 3 The figure is a flowchart of a file processing method according to an exemplary embodiment.

[0061] Figure 4 The present invention is a schematic diagram showing prompt information displayed on a display interface of a file according to an exemplary embodiment.

[0062] Figure 5 The figure is a schematic diagram of a file display interface according to an exemplary embodiment.

[0063] Figure 6 The figure is a flowchart of a file processing method according to an exemplary embodiment.

[0064] Fig. 7A The present invention is a schematic diagram of a display control component of a file display interface according to an exemplary embodiment.

[0065] Figure 7B The present invention is a schematic diagram of a display control component of a file display interface according to an exemplary embodiment.

[0066] Figure 7C The present invention is a schematic diagram of a display control component of a file display interface according to an exemplary embodiment.

[0067] Fig.7D The present invention is a schematic diagram of a display control component of a file display interface according to an exemplary embodiment.

[0068] Figure 8 The figure is a schematic diagram showing the structure of a file processing device according to an exemplary embodiment.

[0069] Fig. 9 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0070] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the embodiments of the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the embodiments of the present disclosure as detailed in the appended claims.

[0071] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0072] like Figure 1 As shown, the present disclosure provides a file processing method, the method comprising:

[0073] 11: Determine a target animation of a target style adapted to the first file;

[0074] 12: Update the first file based on the target animation to generate a second file including the target animation.

[0075] The file processing method provided by the embodiment of the present disclosure may be executed by an electronic device, which may include various terminals or server ends. For example, the electronic device may include but is not limited to at least one of the following: a mobile phone, a computer, a tablet computer, a smart wearable device, a vehicle-mounted device, a smart home device, and a smart office device. For example, the server end may be an application server that generates a target application.

[0076] In some embodiments, both the first file and the second file may be files of various types; for example, the first file may be a presentation file, a document file, and / or a spreadsheet file. Exemplarily, the presentation file may be a slide, a whiteboard canvas, etc.; the presentation file may be used for presentation. Exemplarily, the document file may be a WORD file, a WPS file, a note file, and / or a PDF file, etc. Exemplarily, the spreadsheet file may be an EXCEL file, etc.

[0077] In some embodiments, the first file and the second file only include different animations. Exemplarily, the first file does not include the target animation, and the second file includes the target animation. Exemplarily, the first file includes an alternative animation, and the second file includes the target animation; the alternative animation and the target animation have different animation styles, and / or the alternative animation and the target animation have different content.

[0078] In other embodiments, the animations included in the first file and the second file are different, and the corresponding texts in the first file and the second file are partially adjusted; the partial adjustment includes adjusting the paragraph format of the text, locally adjusting the description of the text and / or partially modifying the text corresponding to the animation, etc.

[0079] In other embodiments, the second file is an updated first file.

[0080] In some embodiments, the second file is determined based on the first file and the target animation.

[0081] The aforementioned alternative animations may also include page animations and / or transition animations.

[0082] In some embodiments, the target style may be various types of styles.

[0083] For example, the target style may include but is not limited to at least one of the following: formal style or informal style, humorous style or non-humorous style, funny style, cool style, gorgeous style, plain style, realistic style and aesthetic style, etc.

[0084] For another example, the target style may include the style of animation effects; for example, it may include but is not limited to the styles of scaling, rotating, bouncing, flying in, fading out, etc. of text, pictures, charts, and / or shapes.

[0085] In some embodiments, the target animation includes: page animation and / or transition animation; wherein the page animation is an animation in a page of the first file; and the transition animation is an animation of page transition.

[0086] Exemplarily, the page animation may be an animation of an object in the page, and / or the page animation may also be an animation of the entire page except for the transition. For example, in the first file, the first page switches to the second page; the animation during the transition of the second page is a transition animation, such as a transition animation of the first page entering gradually; if the second page needs to be displayed prominently, the target animation of the second page may be a bounce, zoom, etc.; in this case, the second page's bounce, zoom, etc. animation page may be a page animation.

[0087] In some embodiments, the first file includes at least one page, wherein a page includes at least one object. Exemplarily, the page includes a dynamic page. Exemplarily, the object included in the page can be called a page object.

[0088] In some embodiments, the first file includes at least one dynamic page, wherein the dynamic page is a page whose page object is provided with animation data. Exemplarily, the dynamic page can be a slide page and / or a web page, etc.

[0089] Optionally, the page object is an object in a dynamic page. Exemplarily, the page object can be a picture, a text box, a video and / or a shape, etc.

[0090] Optionally, the page object is provided with animation data, wherein the animation data indicates that the page object is set to be dynamically displayed. Exemplarily, the dynamic display of a dynamic page is reflected by the continuous playback of several frames of images; the animation data of the page object determines the display state of the page object in each frame of the image, for example, the dynamic data of the page determines the position information and / or contour information of the page object in each frame.

[0091] The above is only an example of the expression form of animation data in the page object; there is no limitation on the expression form of animation data of the page object, and its specific expression mode is adjusted according to different types of dynamic pages and page objects, and any data that can determine the animation performance of the page object in the dynamic page can be used as animation data. Exemplarily, the animation data of the page object may include: data on the dynamic display mode of the page object, animation play time and / or animation play speed, etc.

[0092] Optionally, the electronic device can determine the position information and / or outline information of the page object on each frame image corresponding to the dynamic page according to the dynamic display mode, animation playback time and / or animation playback speed of the page object. Exemplarily, the outline information is related to the size specified in the dynamic display mode.

[0093] In some embodiments, the dynamic page is a slide set with animation data as an example for explanation. Exemplarily, a text box in the slide is set with animation data, that is, the text box can be set to be displayed with animation; when the slide is shown, the text box is dynamically displayed.

[0094] Optionally, the dynamic display method may represent the movement path and / or size of the page object in the dynamic page. Exemplarily, the dynamic display method may include at least one of the following: horizontal blinds, vertical blinds, box-shaped contraction, box-shaped expansion, horizontal chessboard, vertical chessboard, horizontal combing, vertical combing, downward insertion, left insertion, right insertion, upward insertion, lower left insertion, upper left insertion, lower right insertion, upper right insertion, cut out, cut out with full black, fly in from the bottom, fly in from the top, fly in from the left, and fly in from the right. For example, a text box in a slide is set to fly in from the bottom; when the slide is shown, the text box will have an animation effect of flying from the bottom to the normal position of the text box.

[0095] Optionally, the animation playing time may represent the time when the page object appears in the animation page, or the animation playing time may represent the time interval from the time when the home slide is played, or the animation playing time may represent the time interval from the time when the current slide is played.

[0096] Optionally, the animation playing speed may represent the moving speed of the page object in the moving path.

[0097] In some embodiments, each page object may be converted into a description of a polygon; the polygon may include one or more sets of contour edges.

[0098] Optionally, each group of contour edges is one or more groups of paths. The path may be a moving path in the above embodiment. Exemplarily, for a line-shaped page object, the path may include a group of commands; the command may be predefined format specification data. Exemplarily, for a page object such as a picture, an artistic word, or a text box, the path may be an edge corresponding to the contour of the page object.

[0099] Optionally, a set of paths may include a set of commands, and a set of commands includes at least one command; for example, a command may be: move from one point to another point (moveto), determine a straight line between two points (lineto) and / or draw an arc (arcto), etc. Each command carries one or more coordinate point parameters for drawing the edges of the polygon of each page object. The coordinate point parameters carried in each command can be determined based on the position information of the page object in each frame determined by the animation data. For example, each page object is provided with a reference point, and the coordinate information corresponding to the page object is the coordinate data of the reference point of the page object in the picture; when the page object is converted into a description of a polygon, any endpoint of each side of the polygon can determine the relative coordinates with respect to the reference point; thus, the coordinates of any endpoint in the picture can be determined based on the relative coordinates. For example, the page object is a square with a side length of 2 unit distances. The endpoint a at the upper left corner of the square is used as the reference point. If the coordinates of the reference point a in the screen are (0, 0), then the coordinates of the other three endpoints b, c and d in the screen are (0, 2), (2, 2) and (2, 0) respectively; a set of commands for the square page object are lineto(a, b), lineto(b, c), lineto(c, d) and lineto(d, a).

[0100] Optionally, the text box can be converted into a quadrilateral, a triangle, a circle, etc.; the picture can be converted into a quadrilateral, a circle, etc.

[0101] In other embodiments, other types of dynamic pages, such as web pages, can also set animation data according to page objects in the dynamic pages, and / or determine the position information and / or outline information of the page objects in each frame image corresponding to the dynamic page.

[0102] In the disclosed embodiment, a target animation of a target style adapted to the first file can be determined, and the first file can be updated based on the target animation to generate a second file including the target animation. In this way, the first file can select a target animation of a suitable style for display, and thus personalized configuration of the animation of the first file can be achieved, making the animation content of the first file richer.

[0103] Furthermore, the target animation generated in the embodiment of the present disclosure has a strong correlation with the content of the first file, which can improve the animation effect; thus, the user's experience satisfaction can also be improved.

[0104] In some embodiments, step 11 includes: determining a target style that is compatible with the first file; and generating a target animation that includes the target style.

[0105] In some embodiments, determining the target style of the first file includes: determining the target style adapted to the first file based on at least one of the file content, target audience, display purpose, and display scenario of the first file.

[0106] Exemplarily, the file content of the first file may include: key point information of the first file.

[0107] Exemplarily, the target audience is used to describe the audience or audience of the first file; the target audience may be audiences of different ages, audiences of different genders, and / or audiences of different identities. For example, if the target audience is relatively older, the target style is determined to be a formal style; if the target audience is relatively younger, the target style is determined to be an informal style; and so on. For example, if the identity of the target audience is a teacher, the target style is determined to be a realistic style; if the identity of the target audience is a student, the target style is determined to be a cool style; and so on.

[0108] For example, different display purposes and / or different display scenes may correspond to different target styles. For example, if the display purpose is to popularize legal knowledge to students, the target style may be determined to be a formal style; if the display purpose is to introduce scenic spots to tourists, the target style may be determined to be a humorous style; and so on. For another example, if the display scene is a formal scene, the target style may be determined to be a formal style; if the display scene is a relaxed scene, the target style may be determined to be a humorous style.

[0109] Of course, the above is merely an example of determining the target style of the first file based on at least one of the file content, target audience, display purpose, and display scene of the first file, and the specific implementation is not limited to the examples.

[0110] Thus, in the disclosed embodiment, a target style suitable for the first file can be determined based on at least one of the file content, target audience, display purpose, and display scene of the first file, thereby facilitating acquisition of a target animation of a target style adapted to the first file.

[0111] In some embodiments, step 11 includes at least one of the following: determining the target animation corresponding to all pages of the first file; determining the target animation in a predetermined page in the first file; and determining the target animation corresponding to a predetermined object in a predetermined page in the first file.

[0112] Exemplarily, the predetermined page may refer to any one or more pages in the first file.

[0113] Exemplarily, the predetermined object may refer to any one or more objects in the page. The object may be any file content in the first file, such as text information, picture information and / or table information.

[0114] Exemplarily, determining the target animation in the predetermined page in the first file may be: determining the target animation of the predetermined page in the first file during the transition; or determining the target animation of all objects in the entire predetermined page in the first file.

[0115] Exemplarily, determining the target animation of the predetermined object in the predetermined page in the first file may be: determining the target animation of some predetermined objects in the first file, or determining the target animation of all predetermined objects in the first file. For example, the predetermined page includes multiple paragraphs, and each paragraph is a predetermined object, so different target animations can be determined for different paragraphs.

[0116] In this way, the animations in all pages of the first file can be determined, so that the animations in the first file can maintain a unified target style. Alternatively, the animations in one or more single pages of the first file can be determined, so that the single pages can be differentially adjusted so that the style of the animations on the single pages can better match the content of the single pages. Alternatively, the animations corresponding to one or more objects on a single page in the first file can be determined, so that the animations with smaller granularity can be adjusted, so that the first file can match more accurate and detailed animations.

[0117] In the aforementioned embodiment, the determining action may be a generating and / or modifying action. For example, determining the target animation corresponding to all pages of the first file includes: generating and / or modifying the target animation of all pages of the first file. For another example, determining the target animation in a predetermined page of the first file includes: generating and / or modifying the target animation in the predetermined page of the first file. For another example, determining the target animation corresponding to a predetermined object in a predetermined page of the first file includes: generating and / or modifying the target animation corresponding to a predetermined object in a predetermined page of the first file.

[0118] In some embodiments, modifying the target animation includes: modifying the target animation, deleting the target animation and / or deleting the target animation. For example, modifying the target animation corresponding to the predetermined object in the predetermined page in the first file includes: modifying the target animation corresponding to the predetermined object in the predetermined page in the first file, replacing the first target animation corresponding to the predetermined object in the predetermined page in the first file with the second target animation, and / or deleting the target animation corresponding to the predetermined object in the predetermined page in the first file, etc.

[0119] In some embodiments, step 11 includes: generating a target animation of a target style that matches the first file based on the animation to be added to the first file; or generating a target animation of a target style that matches the first file based on the fact that the alternative animation added to the first file is not compatible.

[0120] In some embodiments, step 12 includes: when no animation is added to the first file, adding the target animation to the first file to generate a second file including the target animation; or, when an alternative animation has been added to the first file, replacing the alternative animation in the first file with the target animation to generate a second file including the target animation.

[0121] For example, Figure 2 As shown, in Figure 2 A document interface is displayed on the left, and a session panel is displayed on the right; the document interface displays the file content of the first file. The electronic device needs to insert a cool-style target animation C1 in the B1 area based on the content of the A1 part of the current page, and the generated target animation C1 can be added to the B1 area. Alternatively, the electronic device determines, based on the content of the A2 part of the current page, that the aesthetic-style target animation C2 in the B2 area does not match the A2 part, and needs to insert a gorgeous-style target animation C3 that matches the A2 part; then the aesthetic-style target animation C2 in the B2 area needs to be replaced with the gorgeous-style target animation C3. In some embodiments, after step 12, a second file including the target animation is displayed.

[0122] It should be noted that in Figure 2 In the example, the B1 area actually displays the content of A1, and the B2 area displays the content of A2. In order to distinguish the generated target animation, Figure 2 The ranges of the B1 area and the B2 area are described as being larger than the ranges of the A1 content and the A2 content. In addition, the target animation C1 is actually added to the A1 content, and C2 and C3 are actually added to the A2 content.

[0123] In this way, a target animation of a new target style and an animation configuration of a suitable style can be generated for the first file. And / or, the existing animation in the first file can be further modified so that the first file can match a more suitable animation.

[0124] In some embodiments, step 11 includes: pre-generating a plurality of target animations of candidate styles that are compatible with the first file; and selecting a target animation that is compatible with the current target style from the pre-generated plurality of target animations of candidate styles.

[0125] For example, the candidate styles may include the target style.

[0126] Exemplarily, one candidate style corresponds to one target animation.

[0127] In this way, different target animations can be generated for the first file under different candidate styles; thus, a suitable target animation can be selected according to the current target style to update the first file and then display it.

[0128] In some embodiments, pre-generating target animations of multiple candidate styles that are compatible with the first file includes: pre-generating target animations that are compatible with the multiple candidate styles based on a preset model.

[0129] Optionally, the preset model may be a trained model for generating a target animation for a target style; for example, the first file and the target style corresponding to the first file are input into the preset model to obtain target animations corresponding to a plurality of candidate styles of the first file.

[0130] Thus, in the disclosed embodiment, the first file can be analyzed in different alternative styles through a pre-trained AI model to obtain appropriate target animations corresponding to the different alternative styles; and by determining the target animation based on the preset model, the intelligence of obtaining the target animation can also be improved.

[0131] In other embodiments, multiple target animations of alternative styles adapted to the first file are pre-generated, including: based on at least one of the file content of the first file, alternative target audiences, alternative display purposes, and alternative display scenes, multiple target animations of alternative styles adapted to the first file are pre-generated.

[0132] In this way, the alternative styles that the first file may correspond to may be determined based on the file content, alternative target audiences, alternative display purposes and alternative display scenarios of the first file, so that target animations suitable for various scenarios may be generated.

[0133] In some embodiments, the method further includes: storing at least one candidate style of the first file in correspondence with a target animation corresponding to the candidate style.

[0134] Exemplarily, the electronic device stores mapping information, where the mapping information includes at least one candidate style of the first file and a target animation corresponding to the candidate style.

[0135] In this way, the target animations in different candidate styles can be saved in the first file, which is convenient for subsequent determination of the target animations in different styles.

[0136] In some embodiments, the target animation of the target style adapted to the first file in step 11 can be determined based on the AI ​​model. One implementation is: based on the AI ​​model call instruction, the target animation of the target style adapted to the first file is determined; another implementation is: based on the AI ​​model, the target animation of the target style adapted to the first file is directly determined.

[0137] The AI ​​model can be run on a terminal or a server, etc. An exemplary electronic device receives and obtains a first file, and puts the first file into a local AI model for processing; or sends the first file to a server, and the AI ​​model in the server performs various tasks on the first file, and then returns the result to the electronic device.

[0138] The AI ​​model may be various neural network models and / or machine learning models. For example, the AI ​​model may be, but is not limited to, a convolutional neural network (CNN) model, a recurrent neural network (RNN) model, a deep neural network (DNN) model, and / or a large language model (LLM) or a large-scale language model.

[0139] For example, the AI ​​model may include a Generative Pre-Trained Transformer (GPT) model. The training process of the GTP model is: unsupervised pre-training on a large-scale corpus, and then fine-tuning on a specific task to achieve better results. The GTP model can be used for various natural language processing tasks, such as text generation, machine translation, sentiment analysis, and / or animation generation.

[0140] The AI ​​model can recognize natural language input by the user, obtain the semantics of the natural language, and automatically generate a first file, modify the first file, and / or generate and / or modify a target animation of a target style based on the semantics.

[0141] The AI ​​model may process the content and / or style of the first file. The style may be understood as a representative visual effect presented by the entire file or a specific page of the first file. For example, the AI ​​model may process the file content of the first file, the outline structure of the first file, the target style of the first file, the target animation and / or natural language of the first file.

[0142] In some embodiments, step 11 includes: determining a target animation of a target style adapted by the first file based on an AI model calling instruction.

[0143] Exemplarily, an AI model is first trained, such as an AI intelligent controller (Artificial Intelligence Generated Content, AIGC), to call existing instructions to generate a target animation of a target style adapted to the first file. Training an AI model (such as an AIGC model) includes at least one of the following steps:

[0144] Step 21, collect instruction data. Collect data containing existing instructions and / or corresponding operations for animation generation. These instructions can be text commands, function calls, application programming interface (API) requests, etc. For example, the instruction can be a command in the previous embodiment, such as moving from one point to another point (moveto), determining a straight line between two points (lineto) and / or drawing an arc (arcto), etc.

[0145] Step 22: Prepare the data set. Organize the collected instructions and / or data into a data set for training. This ensures that the data set contains input instructions and corresponding expected outputs.

[0146] Step 23: Build a model. Select a suitable machine learning model, such as a recurrent neural network (RNN) or a transformer model, and build the model structure according to the characteristics of the data set. The input of the model can be an instruction text; the output is the corresponding operation or response generated by the model. Exemplarily, the model is an AI model or an AIGC. Exemplarily, the input of the model can be a set of commands; the output of the model can be a generated animation operation.

[0147] Step 24: Train the model. Use the prepared dataset to train the model. By inputting the instruction text into the model and comparing it with the expected output, the model parameters are continuously adjusted to improve its performance.

[0148] Step 25: Evaluate and tune the model. Evaluate the trained model using the test data to check the accuracy and performance of the model when processing different instructions. Based on the evaluation results, tune and improve the model.

[0149] Step 26: Deploy and apply the model. Once the model training is completed and meets the requirements, it is deployed to the corresponding platform or application so that the existing instructions can be called by inputting instructions and the corresponding operations or responses can be obtained. Exemplarily, the model is deployed to an electronic device or to a server that has a communication connection with the electronic device; the electronic device can determine the instruction text according to the first file, input the instruction text into the model to output an animation corresponding to the instruction text.

[0150] Optionally, the function call of the above model is: an instruction or command or function etc. corresponding to an object set in the phantom film.

[0151] Optionally, after step 26, the instructions of the object in the page of the first file are input into the AI ​​model to obtain the target animation corresponding to the object. For example, for a certain slide, a command "help me generate the animation of the first object" is input into the AI ​​model; the AI ​​model generates an instruction set based on the input instruction, and the instruction set can represent the first object, the animation type of the first object, the dynamic display method of the first object and / or the animation playback time, etc.; the instruction set can be an API parameter; the AI ​​model calls the corresponding API corresponding to the instruction set to generate the animation of the first object.

[0152] In this way, in the embodiment of the present disclosure, the target animation of the target style adapted to the first file can be generated by calling instructions of the AI ​​model, thereby realizing the automatic generation of the target animation.

[0153] In some other embodiments, step 11 includes: determining a target animation of a target style adapted to the first file based on the AI ​​model.

[0154] Exemplarily, an AI model is first trained, such as an AIGC, to input the data of the object of the first file to generate a target animation of the target style adapted for the first file. Here, the steps of training the AI ​​model for directly determining the target animation from the first file are similar to the steps of training the AI ​​model for calling instructions to generate the target animation in the above embodiment, and may include: collecting data, preparing data sets, building models, training models, evaluating and tuning models, and / or deploying and applying models; in the AI ​​model for directly determining the target animation from the first file, the data set is data describing the first file or the object in the first file, the input in the AI ​​model is data describing the first file or the object in the first file, and the output of the AI ​​model is the target animation.

[0155] Optionally, after the model is deployed and applied, the data of the object in the page of the first file is input into the AI ​​model to obtain the target animation corresponding to the object.

[0156] Optionally, the AI ​​model database or other database stores: animation corresponding to at least one object in at least one page of at least one first file. The other database refers to a database of an electronic device in which the AI ​​model is deployed, or a database in a device capable of communicating with the electronic device, etc.

[0157] Thus, in the disclosed embodiment, the AI ​​model can directly generate a target animation of a target style adapted to the first file without calling instructions; on the one hand, automatic generation of the target animation can be achieved, and on the other hand, the AI ​​model does not need to call instructions to simplify the process of generating the target animation.

[0158] like Figure 3 As shown, in some embodiments, step 11 includes:

[0159] 1111: In response to the state of editing the first file, determining a target animation of a target style adapted to the first file.

[0160] In some embodiments, step 1111 includes: in response to the state of editing the current page of the first file, determining a target animation of a target style adapted to the current page; or, in response to the state of editing the current page of the first file, determining a target animation of a target style adapted to at least one object in the current page. In this way, appropriate configuration of the animation of the current page and / or the object of the current page can be achieved during the generation of the first file.

[0161] In some embodiments, step 1111 includes: in response to the state of editing the first file, displaying prompt information; and determining a target animation of a target style adapted to the first file according to a first feedback operation acting on the prompt information.

[0162] Exemplarily, the prompt information includes first prompt information, wherein the first prompt information is used to prompt whether to determine the target animation of the current page.

[0163] Exemplarily, the prompt information includes second prompt information, wherein the second prompt information is used to prompt whether to determine a target animation of a predetermined object in the current page.

[0164] Exemplarily, the first feedback operation may be an operation such as clicking, selecting, or inputting a natural language in response to the prompt information.

[0165] For example, Figure 4 As shown, in Figure 4A document interface is displayed on the left, and a conversation panel is displayed on the right. An AI dialogue based on conversational language can be conducted in the conversation panel. The AI ​​dialogue can be conducted by an AI model in natural language. When the electronic device is in the state of editing the first file, a pop-up window pops up on the conversation panel, and the pop-up window displays a first prompt message, for example, "whether to generate an animation for the current page"; the pop-up window also includes a first button and a second button; the first button displays "yes", which is used to indicate that an animation for the current page is generated; the second button displays "no", which is used to indicate that an animation for the current page is not generated. If the electronic device detects a first feedback operation acting on the first button, it determines to generate a target animation corresponding to the current page; or, if a first feedback operation acting on the second button is detected, it determines not to generate a target animation corresponding to the current page.

[0166] Based on the above embodiment, an input box can be set in the conversation panel, and natural language can be input in the input box; the AI ​​model in the electronic device can conduct a conversation by detecting the natural language input in the input box. When the electronic device is in the state of editing the first file, if a pop-up window showing the first indication information pops up on the conversation panel, it can also detect the natural language input in the input box of the conversation panel, such as inputting "determine the animation of the current page", etc., to determine the target animation for the current page.

[0167] Of course, in other embodiments, the electronic device may also determine the target animation of the target style adapted to the page by selecting a page of the first file when editing the first file; or, the electronic device may also determine the target animation of the target style adapted to the object by selecting an object of the page of the first file when editing the first file.

[0168] In this way, during the generation process of the first file, the target animation of the page of the first file or the object in the page can be determined in a variety of ways, and the animation can be generated and / or modified while the file is generated, so as to provide a more suitable style of animation for the first file.

[0169] Of course, in other embodiments, the input box for conducting AI dialogue can be set at any position of the display interface of the electronic device, and / or, the input box for conducting AI dialogue can also be displayed in other ways, which are not limited here. For example, the input box can be set in a document interface or an outline interface, etc. For example, the input box can be displayed in a pop-up manner, etc.

[0170] Exemplarily, the input box may be set on a toolbar for selecting file content in a document interface; and the input box may be displayed on a display interface by acting on the selection of the input box on the toolbar.

[0171] Exemplarily, when content in the document interface is selected, an input box may pop up; the pop-up input box may be displayed at any position in the display interface.

[0172] like Figure 3 As shown, in some other embodiments, step 11 includes:

[0173] 1112: In response to the state of viewing the first file, determining a target animation of a target style adapted to the first file.

[0174] In some embodiments, step 1112 includes: in response to viewing the first file, determining a target animation of a target style adapted to the first file based on the selected animation outline.

[0175] In some embodiments, based on the selected animation outline, determining a target animation of a target style adapted to the first file includes one of the following: determining a target animation of a target style adapted to all pages of the first file based on all animations of the selected animation outline; determining a target animation of a target style adapted to a predetermined page of the first file based on the animation of a predetermined page of the selected animation outline; and determining a target animation of a target sub-style adapted to a predetermined object of a predetermined page of the first file based on the animation of a predetermined object of a predetermined page of the selected animation outline.

[0176] For example, Figure 5 As shown, in Figure 5 The document interface is displayed on the left side and the session panel is displayed on the right side; there are two windows on the session panel; the upper window is used to display the generated animation outline, and the lower window has an input box. After the generation of the first file is completed, the upper window displays the animation outline of the first file; at this time, all pages, predetermined pages, and / or objects in the predetermined pages of the first file can be generated and / or modified by selecting the animation outline.

[0177] For example, in Figure 5 In the example, the "Reset" button can be used to generate animations; the "Update" button can be used to modify animations. Of course, this is just an example, and the specific implementation is not limited to this example; for example, the "Reset" button can also be replaced by the "Generate" button; the "Update" button can be replaced by the "Modify" button; the button can also be a control component or a prompt box, etc.

[0178] In this way, after the first file is generated, the animation of the first file can be generated and / or modified in the reading state, so as to configure an animation of a more suitable style for the first file.

[0179] like Figure 6 As shown, in some embodiments, step 11 includes:

[0180] 1121: Analyze the file content of the first file and / or the outline structure generated by the first file, and determine a target animation of a target style adapted to the first file.

[0181] Exemplarily, the outline structure includes: document structure.

[0182] Exemplarily, the outline structure includes: a document structure and an animation structure. Optionally, the document structure is a document outline; the animation structure is an animation outline.

[0183] Exemplarily, the electronic device further determines the animation effect of the transition animation in the target animation of the first file according to the file structure and / or animation structure of the first file.

[0184] In this way, a target animation of a target style adapted to the first file can be automatically generated by automatically analyzing the file content of the first file and / or the outline structure corresponding to the first file.

[0185] In some embodiments, step 11 may also include: determining a target style based on at least one relevant information of the first file; the relevant information includes at least one of the following: the file content of the first file, the outline structure of the first file, the audience information of the first file, and the display scene of the first file, etc.

[0186] Exemplarily, the audience information is used to describe the audience (or viewer); for example, the audience information may include but is not limited to the age, gender, and identity of the audience (or viewer).

[0187] If the audience information shows that the audience is children, the target style of the target animation can be determined as a more informal style; if the audience information shows that the audience is adults, the target style of the target animation can be determined as a more formal style; if the audience information shows that the audience is teenagers, the target style of the target animation can be determined as a cool style; and so on.

[0188] Exemplarily, the display scene information is used to describe the display scene; for example, the display scene can be a serious scene, a heavy scene, an active scene, a formal scene, or an informal scene, etc.

[0189] In this way, the target animation of the target style can be determined by considering multiple relevant information of the first file, so that the determination of the target animation of the target style can be considered more comprehensively, so that a more suitable target animation of the target style is configured for the first file.

[0190] In some embodiments, step 11 may further include: determining priorities of the multiple related information based on the multiple related information of the first file; and determining a target style according to the priorities of the multiple related information and the corresponding multiple related information.

[0191] In some embodiments, determining a target style according to the priority and multiple related information and corresponding multiple related information includes: determining a target style of a target animation according to an alternative style corresponding to the related information with the highest priority among the multiple related information.

[0192] Exemplarily, the file content of the first file corresponds to the first priority, the outline structure of the file content of the first file corresponds to the second priority, the audience information corresponds to the third priority, and the display scene information corresponds to the fourth priority. For example, the first priority is higher than the second priority, the second priority is higher than the third priority, and the third priority is higher than the fourth priority, then the target style of the target animation can be determined according to the file content of the first file.

[0193] In other examples, the priority order of the multiple priorities may be that the third priority is higher than the first priority, the first priority is higher than the second priority, the second priority is higher than the fourth priority; or the fourth priority is higher than the first priority, the first priority is higher than the second priority, the second priority is higher than the third priority; and so on. The above is only an example of the priority order, and the specific implementation is not limited to this example.

[0194] In this way, the target animation of the target style can be determined by selecting the relevant information with the highest priority, so that the main factors affecting the animation style can be considered, and the target animation of the appropriate target style can be matched for the first file, and the determination of the target animation of the target style can be adapted to the scenarios with different importance of relevant information.

[0195] In some embodiments, step 11 may further include: generating target animations of multiple target styles according to multiple related information; and step 12 includes: updating the first file based on a target animation of a target style to generate a second file including the target animation of the target style. One related information may correspond to one target animation of the target style.

[0196] Exemplarily, the electronic device associates and stores a first file with target animations of multiple target styles corresponding to multiple related information; when the audience information and / or display scene information corresponding to the first file changes, a target animation of a target style that matches the current audience information and / or display scene information is selected from the multiple target animations of the target styles.

[0197] The target animation of the target style may be generated when the content of the first file is generated, or when the incremental information of the first file is generated. The incremental information is the enhanced content of the file content of the first file. The incremental information may be, but is not limited to, at least one of the following: the speech of the first file, the document annotation information of the first file, the comment information of the first file, the bullet screen information of the first file, the blank space of the first file, and the subtitle information of the first file, etc.

[0198] like Figure 6 As shown, in some other embodiments, step 11 includes:

[0199] 1122: Determine a target animation of a target style adapted to the first file according to a second feedback operation acting on the control component.

[0200] In some embodiments, the control component includes at least one of the following:

[0201] Control components displayed in the session panel;

[0202] A control component for displaying the animation outline interface of the first file;

[0203] A control component that pops up within the page of the first document.

[0204] In some embodiments, the control component includes at least one of the following:

[0205] The first type of control component is used to instruct the generation and / or modification of target animations corresponding to all pages of the first file;

[0206] The second type of control component is used to instruct the generation and / or modification of the target animation in the single page of the first file;

[0207] The third type of control component is used to instruct the generation and / or modification of a target animation corresponding to an object in a single page of the first file.

[0208] Exemplarily, the first type of control component may include a first generation control component and / or a first modification control component; the second type of control component may include a second generation control component and / or a second modification control component; and the third type of control component may include a third generation control component and / or a third modification control component.

[0209] Exemplarily, the second feedback operation may be, but is not limited to, operations such as clicking or sliding.

[0210] Exemplarily, the conversation panel may include at least one of the following: an outline structure area, an input box area, a prompt information area, and a control component area. The outline structure area may display a document structure or an animation structure; the input box area may input natural language; the prompt information area may display prompt information; and the control component area may display control components.

[0211] For example, Fig. 7A As shown, in Fig. 7A The right side of the interface has a session panel; the session panel is provided with a first type of control component, a second type of control component and / or a third type of control component. Here, the control component area of ​​the session panel is provided with a first type of control component, a second type of control component and / or a third type of control component.

[0212] For example, Figure 7B As shown, in Figure 7B There is a conversation panel on the right; the conversation panel includes two windows, the upper window generates an animation outline, and the lower window is provided with an input box capable of conducting AI dialogue. A first-class control component, a second-class control component and / or a third-class control component are provided above the animation outline. Here, the outline structure area of ​​the conversation panel can add the first-class control component, the second-class control component and the third-class control component, so that the animation (e.g., all animations in the animation outline, animations of at least one single page of the animation outline, animations of at least one object of a single page in the animation outline) can be generated and / or modified by selecting the animation in the outline structure area (e.g., all animations in the animation outline, animations of at least one single page of the animation outline, animations of at least one object of a single page in the animation outline).

[0213] For example, Figure 7C As shown, in Figure 7C The document interface is displayed on the left; the document interface displays the page of the first file; after the electronic device detects an operation acting on the page of the first file, such as selecting the page of the first file, the second type of control component pops up; and / or, after the electronic device detects an operation acting on an object in the page of the first file, such as selecting the object in the page of the first file, the third type of control component pops up. In this way, the determination of the single-page animation and / or the object animation in the current page can also be realized by the control component that pops up on the document interface.

[0214] For example, the control component may be a control component displayed in the editing panel. Fig.7D As shown, in Fig.7D The document interface is displayed on the left side of Fig.7D A session panel is displayed on the right side of the document interface; an editing panel is also provided below the document interface. The editing panel is provided with a first-class control component, a second-class control component and / or a third-class control component.

[0215] Of course, the above is only an example of the control component settings, and the specific implementation is not limited to the above examples.

[0216] In this way, the first file can be made to match an animation of a suitable style through the second feedback operation acting on the control component.

[0217] like Figure 6 As shown, in some other embodiments, step 11 includes:

[0218] 1223: In response to detecting a natural language input indicating a user demand in the conversation panel, determining a target animation of a target style adapted to the first file.

[0219] Exemplarily, the electronic device determines a target animation of a target style adapted to the first file in response to a user demand indicated by natural language to determine animations of all pages of the first file. For example, the natural language may be "determine animations of all pages", etc., and a target animation of a target style adapted to all pages of the first file may be generated and / or modified.

[0220] Exemplarily, the electronic device determines a target animation of a target style adapted to the predetermined page of the first file in response to the user demand indicated by the natural language for determining an animation of a predetermined page of the first file. For example, the natural language may be "generate animations of the first and third pages", etc., and a target animation of a target style adapted to the first and third pages of the first file may be generated.

[0221] Exemplarily, the electronic device determines a target animation of a target style for a predetermined object on a predetermined page of a first file in response to a user demand indicated by a natural language. For example, the natural language may be "modify the animation of the first object on the first page and generate an animation corresponding to the first line to the second line of content on the third page", etc., and then the alternative animation of the first object on the first page of the first file may be modified to generate a target animation of a target style adapted to the first object, and a target animation of a target style adapted to the first line to the second line of content on the third page of the first file may be generated.

[0222] Of course, the above is merely an example of user needs indicated by natural language, and the specific implementation is not limited to the above examples.

[0223] In this way, a target animation of a suitable target style for the first file can be determined based on the understanding of the natural language.

[0224] In some embodiments, the method includes: determining a playback duration of the first file;

[0225] Determining a target animation of a target style adapted to the first file includes: determining a target animation of a target style adapted to the first file based on a playback duration.

[0226] In some embodiments, determining a target animation of a target style adapted to the first file based on the playback duration includes one of the following:

[0227] If the playback duration is greater than or equal to the first playback duration, determining that the number of target animations of the target style adapted to the first file is greater than or equal to the first number;

[0228] If the playback duration is less than or equal to the second playback duration, determine that the number of target animations of the target style adapted to the first file is less than or equal to the second number; wherein the first playback duration is greater than the second playback duration; and the first number is greater than the second number.

[0229] In this way, the number of target animations can be determined according to the length of the playback time of the first file; for example, when the playback time is relatively long, the number of target animations can be determined to be relatively large, or when the playback time is relatively short, the number of target animations can be determined to be relatively small, so that when the first file is displayed, the target animation that matches the length of the playback progress can be displayed.

[0230] In some other embodiments, determining a target animation of a target style adapted to the first file based on the playback duration includes at least one of the following:

[0231] If the playing time is less than or equal to the predetermined time, determining a target animation adapted to the key page in the first file;

[0232] If the playing time is less than or equal to the predetermined time, determining that the target animation adapted to the key page in the first file is an animation whose dynamic display time is less than or equal to the first display time;

[0233] If the playing time is less than or equal to the predetermined time, determining the target animation of the key object in the page of the first file;

[0234] If the playing time is less than or equal to the predetermined time, it is determined that the target animation of the key object in the page in the first file is an animation whose dynamic display time is less than or equal to the second display time.

[0235] Exemplarily, the first display duration is greater than or equal to the second display duration.

[0236] Exemplarily, the predetermined duration is less than or equal to the third playback duration. The third playback duration may be the same as or different from the first playback duration; or the third playback duration may be the same as or different from the second playback duration.

[0237] In this way, when the playback time of the first file is relatively short, only the target animation of the key page in the first file and / or the target animation of the key object in the page can be set, and / or, the target animation of the key page and / or the target animation of the key object can be selected with a shorter display time, thereby reducing the display time of the target animation in the first file so that other content in the first file (such as text parts, etc.) can be displayed for a relatively long time; this can reduce the occurrence of part of the content of the first file being missed from being displayed, etc., and can improve the user experience satisfaction.

[0238] The present disclosure also provides a model training method for training the AI ​​model in the aforementioned file processing method. The method includes:

[0239] Based on the alternative model, the training samples marked with the target label are trained to obtain the predicted label of the training samples;

[0240] Determining a loss value of the candidate model based on a difference between the target label and the predicted label; wherein the target label indicates a predetermined object to which the first file is adapted;

[0241] If the loss value meets the training stop condition, stop training the candidate model, and determine the candidate model when the training is stopped as the target model; or, if the loss value does not meet the training stop condition, continue training the candidate model.

[0242] Exemplarily, the loss value satisfies the training stop condition, including: the loss value is less than or equal to a predetermined value. The predetermined value may be an extremely small value, such as 0.001 or 0.000001.

[0243] Exemplarily, the predetermined object may be the aforementioned target style or target animation, etc.

[0244] The disclosed embodiment also provides a file processing method, which is performed using a trained target model; the method includes: inputting a first file into the target model to generate target content. Depending on the target model, the generated target content is different. The target content can be a target animation of a target style, etc.

[0245] Exemplarily, the target model may be one or more, or the target model may be a collection of multiple models. For example, the target model may be a natural language processing model, an outline structure generation model of the first file, an animation generation model of the first file, and / or a target style generation model of the first file.

[0246] The aforementioned outline structure generation model, animation generation model, target style generation model and natural language processing model can all be used in combination or in a cascaded manner.

[0247] Of course, the above is only an example of the model for processing the first file, and the specific implementation is not limited to this example.

[0248] like Figure 8 As shown, a second aspect of an embodiment of the present disclosure provides a file processing device, the device comprising:

[0249] The processing module 31 is used to determine a target animation of a target style adapted to the first file;

[0250] The generating module 32 is configured to update the first file based on the target animation to generate a second file including the target animation.

[0251] In some embodiments, the processing module 31 is used to determine a target animation of a target style adapted to the first file in response to the state of editing the first file; or

[0252] The processing module 31 is used to determine a target animation of a target style adapted to the first file in response to the state of reading the first file.

[0253] In some embodiments, the processing module 31 is used to display prompt information in response to the state of editing the first file; and determine a target animation of a target style adapted to the first file according to a first feedback operation acting on the prompt information.

[0254] In some embodiments, the processing module 31 is used to generate a target animation of a target style adapted to the first file based on the animation to be added to the first file; or

[0255] The processing module 31 is used to generate a target animation of a target style adapted to the first file based on the fact that the candidate animation added to the first file is not adapted.

[0256] In some embodiments, the processing module 31 is used to pre-generate a plurality of target animations of candidate styles that are compatible with the first file; and select a target animation that is compatible with the current target style from the pre-generated plurality of target animations of candidate styles.

[0257] In some embodiments, the processing module 31 is configured to:

[0258] Analyze the file content of the first file and / or the outline structure generated by the first file to determine a target animation of a target style adapted to the first file;

[0259] Determining, according to a second feedback operation acting on the control component, a target animation of a target style adapted to the first file;

[0260] In response to detecting a natural language input of the conversation panel indicating a user demand, a target animation of a target style adapted to the first file is determined.

[0261] In some embodiments, the control component includes at least one of the following:

[0262] Control components displayed in the session panel;

[0263] A control component for displaying the animation outline interface of the first file;

[0264] A control component that pops up within the page of the first document.

[0265] In some embodiments, the control component includes at least one of the following:

[0266] The first type of control component is used to instruct the generation and / or modification of target animations corresponding to all pages of the first file;

[0267] The second type of control component is used to instruct the generation and / or modification of the target animation in the single page of the first file;

[0268] The third type of control component is used to instruct the generation and / or modification of a target animation corresponding to an object in a single page of the first file.

[0269] In some embodiments, the processing module 31 is configured to:

[0270] Generate and / or modify target animations corresponding to all pages of the first file;

[0271] Generate and / or modify a target animation in a predetermined page in a first file;

[0272] Generate and / or modify a target animation corresponding to a predetermined object in a predetermined page in the first file.

[0273] In some embodiments, the generating module 32 is configured to:

[0274] When no animation is added to the first file, adding the target animation to the first file to generate a second file including the target animation;

[0275] When the alternative animation has been added to the first file, the alternative animation in the first file is replaced with the target animation to generate a second file including the target animation.

[0276] In some embodiments, the processing module 31 is used to determine the playback duration of the first file;

[0277] The processing module 31 is further used to determine a target animation of a target style adapted to the first file, including: determining a target animation of a target style adapted to the first file based on a playback duration.

[0278] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0279] An embodiment of the present disclosure further provides an electronic device, including:

[0280] processor;

[0281] a memory for storing processor-executable instructions;

[0282] The processor is configured to implement the file processing method of any embodiment of the present disclosure when running the executable instructions.

[0283] The electronic device can at least be a server and / or a terminal. One or more servers can constitute a service end.

[0284] The memory may include various types of storage media, which are non-transitory computer storage media that can continue to remember information stored thereon after the communication device loses power.

[0285] The processor can be connected to the memory through a bus or the like to read the executable program stored in the memory, for example, to implement the following Figure 1 , Figure 3 and Figure 6 Any of the file processing methods shown.

[0286] like Fig. 9 FIG. 4 is a diagram showing a structure of an electronic device 40 according to an exemplary embodiment. For example, the electronic device 40 may be provided as a network side device. Fig. 9 The electronic device 40 includes a processing component 41, which further includes one or more processors, and a memory resource represented by a processor 42 for storing instructions executable by the processing component 41, such as an application. The application stored in the processor 42 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 41 is configured to execute instructions to perform any method of the aforementioned method applied in the base station.

[0287] The electronic device 40 may further include a power supply component 43 configured to perform power management of the electronic device 40, a wired or wireless network interface 44 configured to connect the electronic device 40 to a network, and an input / output (I / O) interface 45. The electronic device 40 may operate based on an operating system stored in the processor 42, such as Windows Server TM, MacOS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.

[0288] The embodiments of the present disclosure further provide a computer-readable storage medium storing an executable program, wherein the executable program, when executed by a processor, implements the file processing method of any embodiment of the present disclosure. Figure 1 , Figure 3 and Figure 6 Any of the file processing methods shown.

[0289] An embodiment of the present disclosure provides a computer-readable storage medium, which stores an executable program. When the executable program is executed by a processor, the file processing method provided by any one of the above-mentioned technical solutions is implemented.

[0290] The computer-readable storage medium may specifically be: a non-temporary computer-readable storage medium.

[0291] Exemplarily, such as a memory including an executable program, the above instructions can be executed by the processing component 41 of the electronic device to complete the above method.

[0292] The non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0293] Those skilled in the art will readily appreciate other implementations of the disclosed embodiments after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosed embodiments, which follow the general principles of the disclosed embodiments and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the disclosed embodiments are indicated by the following claims.

[0294] It should be understood that the embodiments of the present disclosure are not limited to the precise structures described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the embodiments of the present disclosure is limited only by the appended claims.

Claims

1. A file processing method, characterized in that: The method comprises: Determine a target animation of a target style adapted to the first file; The first file is updated based on the target animation to generate a second file including the target animation.

2. The method according to claim 1, characterized in that The step of determining a target animation of a target style adapted to the first file includes: In response to the state of editing the first file, determining the target animation of the target style adapted to the first file; or, In response to the state of viewing the first file, the target animation of the target style adapted to the first file is determined.

3. The method according to claim 2, characterized in that In response to editing the first file, determining the target animation of the target style adapted to the first file includes: In response to the state of editing the first file, displaying prompt information; The target animation of the target style adapted to the first file is determined according to a first feedback operation acting on the prompt information.

4. The method according to any one of claims 1 to 3, characterized in that: The step of determining a target animation of a target style adapted to the first file includes: Based on the animation to be added to the first file, generating the target animation of the target style adapted to the first file; or, Based on the fact that the alternative animation added by the first file is not compatible, the target animation of the target style compatible with the first file is generated.

5. The method according to any one of claims 1 to 3, characterized in that: The step of determining a target animation of a target style adapted to the first file includes: Pre-generating a plurality of target animations of candidate styles adapted to the first file; From the target animations of multiple candidate styles generated in advance, the target animation that matches the current target style is selected.

6. The method according to claim 1, characterized in that The step of determining a target animation of a target style adapted to the first file includes one of the following: Analyze the file content of the first file and / or the outline structure generated by the first file to determine the target animation of the target style adapted to the first file; Determining the target animation of the target style adapted to the first file according to a second feedback operation acting on the control component; In response to detecting a natural language input of a conversation panel indicating a user demand, determining the target animation of the target style adapted to the first file.

7. The method according to claim 6, characterized in that The control component includes at least one of the following: the control component displayed on the session panel; Displaying the control component in the animation outline interface of the first file; The control component is popped up within the page of the first file.

8. The method according to claim 7, characterized in that The control component includes at least one of the following: A first type of control component, used to instruct generation and / or modification of the target animation corresponding to all pages of the first file; The second type of control component is used to instruct the generation and / or modification of the target animation in a single page of the first file; The third type of control component is used to instruct the generation and / or modification of the target animation corresponding to the object in a single page of the first file.

9. The method according to any one of claims 1 to 3, 6 to 8, characterized in that: The determining of the target animation of the target style adapted to the first file comprises at least one of the following: Generate and / or modify the target animation corresponding to all pages of the first file; Generate and / or modify the target animation in a predetermined page in the first file; Generate and / or modify the target animation corresponding to the predetermined object in the predetermined page in the first file.

10. The method according to claim 1, characterized in that The target animation includes: page animation and / or transition animation; The page animation is an animation in a page of the first file; and the transition animation is an animation of the page transition.

11. The method according to claim 1, characterized in that: The updating of the first file based on the target animation to generate a second file including the target animation comprises: When no animation is added to the first file, adding the target animation to the first file to generate a second file including the target animation; or, When the candidate animation has been added to the first file, the candidate animation in the first file is replaced with the target animation to generate a second file including the target animation.

12. The method according to claim 1, characterized in that The method further includes: determining a playback duration of the first file; The determining of the target animation of the target style adapted to the first file includes: determining the target animation of the target style adapted to the first file based on the playback duration.

13. A file processing device, characterized in that: The device comprises: A processing module, used for determining a target animation of a target style adapted to the first file; A generating module is used to update the first file based on the target animation to generate a second file including the target animation.

14. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: implement the file processing method described in any one of claims 1 to 12 when running the executable instructions.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an executable program, wherein the executable program, when executed by a processor, implements the file processing method according to any one of claims 1 to 12.