Prompt information determination method, device and electronic device
By determining the structural description of animation materials and generating verification rules based on application scenario information, the problem of rework caused by unqualified material performance was solved, and material production efficiency was improved.
Patent Information
- Application Number
- CN201911340485.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-23
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2039-12-23
AI Technical Summary
In the existing technology, due to the large performance differences in rendering of animation materials, designers need to rework and redesign before official release, wasting manpower and resources.
By determining the structural description information and application scenario information of the material to be exported, verification rules are generated, and verification is performed based on this information, and corresponding prompt information is provided to avoid performance problems.
It reduces material production time, improves material production efficiency, and avoids rework problems caused by unqualified performance by designers.
Smart Images

Figure CN113082720B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to a method, device, and electronic device for determining prompt information. Background Art
[0002] With the development of computer technology, games controlled by computer programs for educational or entertainment purposes have become increasingly popular. The content and variety of games are becoming increasingly rich, the plots are becoming more complex, and the graphics are becoming more realistic. A game typically includes multiple game scenes, characters, and other animation assets. Designers need to design and render these assets to achieve various presentation effects.
[0003] In the existing animation asset production process, after designers design assets, they must first be put into a test environment before they are officially released. When rendering these assets, while rendering effects may be identical, performance can vary significantly due to differences in asset structure. This often results in assets being generated but failing to meet official release requirements due to substandard performance, forcing designers to rework and redesign, wasting significant time and resources. Summary of the Invention
[0004] The present application provides a method, device and electronic device for determining prompt information, which can solve the problems existing in the prior art.
[0005] The specific technical solutions provided in the embodiments of this application are as follows:
[0006] In one aspect, an embodiment of the present application provides a method for determining prompt information, the method comprising:
[0007] Confirm the material to be exported;
[0008] Obtaining structural description information of the material to be exported and application scenario information corresponding to the material to be exported;
[0009] Determining a first verification rule corresponding to the to-be-exported material based on the structure description information and the application scenario information;
[0010] Verifying the structural description information of the to-be-exported material based on a first verification rule to obtain a first verification result;
[0011] Based on the first verification result, first prompt information corresponding to the material to be exported is determined.
[0012] In one possible implementation, the first prompt information includes any one of the following:
[0013] First verification success prompt message, first warning prompt message, first error prompt message;
[0014] When the first prompt information is a first verification success prompt information or a first warning prompt information, the method further includes:
[0015] Get the rendering parameters corresponding to the material to be exported;
[0016] Determining a second verification rule corresponding to the to-be-exported material based on the rendering parameters and the application scenario information;
[0017] Verifying the rendering parameters of the to-be-exported material based on the second verification rule to obtain a second verification result;
[0018] Based on the second verification result, second prompt information corresponding to the material to be exported is determined.
[0019] In one possible implementation, the rendering parameters include at least one of the following:
[0020] Material rendering time and the instantaneous video memory size required for material rendering.
[0021] In one possible implementation, the second prompt information includes any one of the following:
[0022] Second success prompt message, second warning prompt message, second error prompt message.
[0023] In a possible implementation, the material to be exported includes at least one of the following:
[0024] Video sequence frames, vector graphics layers;
[0025] The structural description information of the material to be exported includes at least one of the following:
[0026] The number of video sequence frames in the material to be exported;
[0027] Whether there are video sequence frames in the material to be exported that can be merged;
[0028] The total number of vector layers in the material to be exported.
[0029] In one possible implementation, the application scenario includes at least one of the following:
[0030] User interaction interface UI playback scene;
[0031] Video editing scene, which refers to the scene where the material effects of the material to be exported are applied to the video to be edited.
[0032] In one possible implementation, obtaining application scenario information corresponding to the material to be exported includes:
[0033] When receiving a material export operation from the user, in response to the material export operation, displaying a scene selection list, the scene selection list including at least one application scene;
[0034] Receive a user's selection operation for an application scenario in the scenario selection list, and determine application scenario information according to the selection operation.
[0035] An embodiment of the present invention provides a device for determining prompt information, the device comprising:
[0036] A material determination module, used to determine the material to be exported;
[0037] An acquisition module is used to obtain structural description information of the material to be exported and application scenario information corresponding to the material to be exported;
[0038] A first rule determination module, configured to determine a first verification rule corresponding to the material to be exported based on the structure description information and the application scenario information;
[0039] A first verification module, configured to verify the structural description information of the to-be-exported material based on a first verification rule to obtain a first verification result;
[0040] The first prompt module is configured to determine first prompt information corresponding to the to-be-exported material based on the first verification result.
[0041] An embodiment of the present invention provides an electronic device, including:
[0042] one or more processors;
[0043] Memory;
[0044] One or more application programs, wherein the one or more application programs are stored in a memory and configured to be executed by one or more processors, and the one or more programs are configured to: execute the prompt information determination method according to the first aspect.
[0045] An embodiment of the present invention also provides a computer-readable storage medium, which is used to store a computer program. When the computer program runs on a computer, the computer can execute the prompt information determination method shown in the first aspect of this application.
[0046] The technical solution provided by the present invention brings beneficial effects:
[0047] The prompt information determination method, device, and electronic device provided in the present application determine the material to be exported; obtain the structural description information of the material to be exported and the application scenario information corresponding to the material to be exported; determine the first verification rule corresponding to the material to be exported based on the structural description information and the application scenario information; verify the structural description information of the material to be exported based on the first verification rule to obtain a first verification result; and determine the first prompt information corresponding to the material to be exported based on the first verification result. The technical solution provided in the present application generates a first verification rule through the structural description information and application scenario information of the material to be exported, verifies the structural description information of the material to be exported, and provides a prompt based on the verification result, thereby avoiding the problem of rework for designers due to the performance of the exported material not meeting the requirements of the official release, reducing the material production time, and improving the efficiency of material production. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments of the present application.
[0049] Figure 1 A flowchart of a method for determining prompt information provided in an embodiment of the present application;
[0050] Figure 2 A schematic diagram of a user interface for selecting an application scenario provided in an embodiment of the present application;
[0051] Figure 3 A schematic diagram of a user interface for displaying prompt information provided in an embodiment of the present application;
[0052] Figure 4 A flowchart of a method for determining prompt information provided in an embodiment of the present application;
[0053] Figure 5 A schematic diagram of the application of the solution provided in the embodiment of the present application to the material production process;
[0054] Figure 6 A schematic diagram of the verification process of the automated self-checking tool provided in an embodiment of the present application;
[0055] Figure 7 A schematic diagram of a device for determining prompt information provided in an embodiment of the present application;
[0056] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The following describes in detail embodiments of the present application, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and are not to be construed as limiting the present application.
[0058] Those skilled in the art will appreciate that, unless expressly stated otherwise, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of this application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, "connected" or "coupled" as used herein may include wireless connections or wireless couplings. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0059] The executors of the technical solution of this application are computer devices, including but not limited to servers, personal computers, laptops, tablet computers, smart phones, etc. Computer devices include user devices and network devices. User devices include but are not limited to computers, smart phones, PADs, etc. Network devices include but are not limited to a single network server, a server group consisting of multiple network servers, or a cloud composed of a large number of computers or network servers in cloud computing, wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computer sets. Computer devices can be run alone to implement this application, or they can be connected to the network and implement this application through interactive operations with other computer devices in the network. The network where the computer device is located includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, VPN network, etc.
[0060] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0061] Figure 1 A flowchart of a method for determining prompt information provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method may include:
[0062] Step S101, determining the material to be exported;
[0063] The materials to be exported in the technical solution of the present application include materials that need to be exported using export plug-ins after designers have designed animation materials using design software. Among them, design software may include but is not limited to various software for editing animated pictures and designing animation effects, such as Ae (After Effect), etc. The materials may include but are not limited to various animation materials, such as materials in PAG (Portable Animated Graphics) file format (the suffix of PAG format files is .pag, hereinafter collectively referred to as PAG materials), etc. PAG is a special animation file format designed for high-performance rendering scenarios. It can store animation elements such as vector graphics, text, bitmaps, and video sequence frames with extremely high compression ratios, and make full use of hardware acceleration capabilities for fast decoding and high-speed rendering to screens of various sizes.
[0064] The main features of the PAG file format are as follows:
[0065] Screen Rendering: Mainly designed for screen rendering scenarios, optimizing rendering performance and file size.
[0066] Scalability: The basic data structure is described based on tagged data blocks, which allows for the continuous addition of support for new animation features while maintaining backward compatibility with older file formats.
[0067] High compression rate: Pure binary data structure, dynamic bit storage with extremely high compression rate, and centralized compression of similar blocks, etc., can store the same animation content at an average file size of 10% to 50% of other formats.
[0068] File independence: A single file can integrate any resource, such as vectors, images, text, video sequence frames, and audio and video. The single-file delivery capability enables a more streamlined workflow.
[0069] High-speed rendering: The file format is simple and does not involve any string matching. Binary streams have a significant decoding speed advantage over text-based configuration files. Optimized encoding pre-converts the data directly required for the rendered scene, enabling faster rendering and display of animated content.
[0070] This embodiment takes the use of the Ae export plug-in to export PAG materials as an example to describe the technical solution of this application.
[0071] In one example, when a user clicks on the designed material A.page in the user interface of Ae, a function list corresponding to the operation is displayed in response to the click operation. When a user selects "Export Material" in the list, the material selected by the user is determined to be the material to be exported.
[0072] Step S102: obtaining structural description information of the material to be exported and application scenario information corresponding to the material to be exported;
[0073] The structural description information may include parameters describing the quantity and attributes of each component of the material to be exported. The application scenario information corresponding to the material to be exported may include identification information of the specific scenario to which the material will be applied after being exported. The application scenario information can be used to determine the scenario in which the material will be applied.
[0074] The structural description information may be generated during the material design process and stored in association with the material. After the material to be exported is determined, the structural description information of the material is called in the preset database.
[0075] In an optional embodiment of the present application, the material to be exported includes at least one of the following:
[0076] Video sequence frames, vector graphics layers;
[0077] The structural description information of the material to be exported includes at least one of the following:
[0078] The number of video sequence frames in the material to be exported;
[0079] Whether there are video sequence frames in the material to be exported that can be merged;
[0080] The total number of vector layers in the material to be exported.
[0081] Taking PAG material as an example, it can include at least one of video sequence frames and vector layers. Among them, the video sequence frame can be a segment of video data containing multiple video frames; the vector layer can include picture layers, shape layers, static layers, text layers, etc. Among them, multiple vector layers can be merged to obtain video sequence frames. The structural description information of the PAG material may include: the number of video sequence frames in the material to be exported, whether there are video sequence frames that can be merged in the video sequence frames in the material to be exported, and at least one of the total number of vector layers in the material to be exported, among which whether there are video sequence frames that can be merged in the video sequence frames in the material to be exported can specifically refer to whether any two or more video sequence frames in the material can be merged.
[0082] For obtaining application scenario information corresponding to the material to be exported, a specific application scenario may be pre-set and the information of the application scenario may be called, or the application scenario and the corresponding application scenario information may be determined according to a user's selection.
[0083] In an optional embodiment of the present application, the application scenario includes at least one of the following:
[0084] User Interface (UI) playback scene;
[0085] Video editing scene, which refers to the scene where the material effects of the material to be exported are applied to the video to be edited.
[0086] In actual applications, application scenarios can include UI playback scenarios, that is, playing the material to be exported directly in the UI after exporting; application scenarios can also be video editing scenarios, that is, applying the animation effect of the material to be exported to a certain frame in the video to be edited; application scenarios can also be general scenarios, that is, not limited to UI scenarios and video editing scenarios, and can be used in both application scenarios.
[0087] In an optional embodiment of the present application, obtaining application scenario information corresponding to the material to be exported includes:
[0088] When receiving a material export operation from the user, in response to the material export operation, displaying a scene selection list, the scene selection list including at least one application scene;
[0089] Receive a user's selection operation for an application scenario in the scenario selection list, and determine application scenario information according to the selection operation.
[0090] In actual applications, the application scene is selected in the scene selection list according to the user's choice to obtain the corresponding application scene information. The corresponding application scene information can be obtained according to different application scenarios, making the scene selection more flexible, thereby meeting the user's material needs for specific scenes.
[0091] In one example, the user interface for application scenario selection is as follows: Figure 2As shown, when the user receives an export operation for the designed PAG material "Synthesis 1" in the user interface of Ae, a scene selection list is displayed in response to the export operation, such as "Please select the application scene" as shown in the figure, wherein UI indicates that the application scene after the PAG material to be exported is the UI playback scene; "Weishi Blockbuster" as shown in the figure indicates that the application scene after the PAG material to be exported is the video editing scene, that is, the animation effect of the exported PAG material is applied to the editing of Weishi Blockbuster. "General" as shown in the figure represents a general scene, that is, it is not limited to UI scenes and video editing scenes, and can be used in these two application scenes. When the user clicks on a scene and clicks "OK", the application scene corresponding to the PAG material to be exported is determined. After the user clicks "Cancel", other PAG materials to be exported can be reselected for export.
[0092] It should be noted that Figure 2 The scene selection list shown in the figure is only an example of the technical solution of this application. The specific content of the scene selection list is not limited to that shown in the figure and can also include other content and can be set according to specific needs. In addition, the content of the interface shown in the figure, except for the scene selection list, is not related to the technical solution of this application and is therefore not explained here.
[0093] Step S103: determining a first verification rule corresponding to the material to be exported based on the structure description information and the application scenario information;
[0094] Specifically, different application scenarios have different requirements for materials, and corresponding verification rules are pre-set based on the application scenarios. Based on the application scenario information, the application scenario corresponding to the material to be exported can be determined. Based on the structural description information of the material to be exported, a first verification rule corresponding to the material in the corresponding application scenario is determined. The first rule may include indicators or conditions that should be met corresponding to various parameters in the structural description information.
[0095] For example, if the application scenario is a UI scene, you are not allowed to export materials containing video sequence frames. Or in a certain application scenario, the number of video sequence frames should be less than or equal to 5.
[0096] Step S104: Verify the structure description information of the material to be exported based on a first verification rule to obtain a first verification result;
[0097] Specifically, each parameter in the structure description information is verified according to the first verification rule to determine whether each parameter meets the corresponding index or satisfies the corresponding condition, thereby obtaining a first verification result.
[0098] Step S105: determining first prompt information corresponding to the material to be exported based on the first verification result.
[0099] Specifically, a correspondence between the first verification result and the first prompt information is pre-set. The first verification result may include parameter information that complies with the rules or parameter information that does not comply with the rules in the structure description information. If all parameters comply with the verification rules, the verification is successful and a prompt is given; when the structure description information contains parameters that do not comply with the rules, a corresponding prompt is given.
[0100] In an optional embodiment of the present application, the first prompt information includes any one of the following:
[0101] First verification success prompt message, first warning prompt message, first error prompt message;
[0102] In actual application, the corresponding prompt information is determined according to the verification result. When all the parameters in the structure description information meet the first verification rule, the first verification success prompt information is displayed, which can specifically include directly popping up a material preview window and displaying the material in the window. If some parameters in the structure description information do not meet the rules, but the material can also be used in the corresponding application scenario, a first warning prompt information will be displayed; if some parameters in the structure description information do not meet the rules, and because the parameters do not meet the rules, the material cannot be used in the corresponding application scenario, a first error prompt information will be displayed. Through the prompt information, the designer can be prompted to modify the material, avoiding rework caused by the material not meeting the requirements of the official release, and the rework rate of the material can be reduced through prompts.
[0103] In one example, the user interface for displaying the prompt information is as follows: Figure 3As shown in the figure, "Synthesis 1" is the PAG material to be exported. If the verification result is successful, the material preview window is directly displayed, and the PAG material "Synthesis 1" is displayed in the window, as shown in the material preview window pointed by the arrow corresponding to "Success" in the figure; if the verification result is that the number of video sequence frames in a specific scene does not meet the corresponding indicators, an error prompt message is displayed, such as "The number of sequence frames exceeds the maximum range (5>=5)!" pointed by the arrow corresponding to "Error" in the figure, where (5>=5) indicates that the number of video sequence frames of the PAG material to be exported in this scene should be less than 5. When it is greater than or equal to 5, an error prompt is given. The number of video sequence frames of the current material to be exported is 5, so an error prompt is given; if the application scenario corresponding to the PAG material to be exported is a UI scene, according to the verification rules, the material to be exported in the UI scene should not contain video sequence frames, but the current material to be exported contains video sequence frames, then a warning prompt is given according to the verification result, and the warning prompt message is "It is recommended not to include sequence frames in the UI scene" pointed by the arrow corresponding to "Warning" in the figure.
[0104] It should be noted that Figure 3 The prompt information shown in the figure is only an example of the prompt information in the technical solution of this application. The specific content of the prompt information is not limited to that shown in the figure, and may also include other content, which can be set according to specific needs. In addition, the content of the interface shown in the figure, except for the prompt information, is not related to the technical solution of this application and is therefore not explained here.
[0105] The technical solution provided in the embodiment of the present application generates a first verification rule through the structural description information and application scenario information of the material to be exported, verifies the structural description information of the material to be exported, and provides prompts based on the verification results, thereby avoiding the problem of rework for designers due to the performance of the exported material not meeting the requirements of the official release, reducing material production time, and improving material production efficiency.
[0106] Figure 4 A flowchart of a method for determining prompt information provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the method may include:
[0107] Step S201, determining the material to be exported;
[0108] The materials to be exported in the technical solution of this application include those that need to be exported using an export plug-in after the designer has designed animation materials using design software. This design software may include, but is not limited to, various software for editing animated images and designing animation effects, such as After Effects (AE). Materials may include, but are not limited to, various animation materials, such as Portable Animated Graphics (PAG) materials. This embodiment describes the technical solution of this application using the AE export plug-in as an example to export PAG materials.
[0109] In one example, when a user clicks on the designed material A.page in the user interface of Ae, a function list corresponding to the operation is displayed in response to the click operation. When a user selects "Export Material" in the list, the material is determined to be the material to be exported.
[0110] Step S202: obtaining structural description information of the material to be exported and application scenario information corresponding to the material to be exported;
[0111] The structural description information may include parameters describing the quantity and attributes of each component of the material to be exported. The application scenario information corresponding to the material to be exported may include identification information of the specific scenario to which the material will be applied after being exported. The application scenario information can be used to determine the scenario in which the material will be applied.
[0112] Step S203: determining a first verification rule corresponding to the material to be exported based on the structure description information and the application scenario information;
[0113] Specifically, different application scenarios have different requirements for materials, and corresponding verification rules are pre-set based on the application scenarios. Based on the application scenario information, the application scenario corresponding to the material to be exported can be determined. Based on the structural description information of the material to be exported, a first verification rule corresponding to the material in the corresponding application scenario is determined. The first rule may include indicators or conditions that should be met corresponding to various parameters in the structural description information.
[0114] For example, if the application scenario is a UI scene, you are not allowed to export materials containing video sequence frames. Or in a certain application scenario, the number of video sequence frames should be less than or equal to 5.
[0115] Step S204: Verify the structure description information of the material to be exported based on a first verification rule to obtain a first verification result;
[0116] Specifically, each parameter in the structure description information is verified according to the first verification rule to determine whether each parameter meets the corresponding index or satisfies the corresponding condition, thereby obtaining a first verification result.
[0117] Step S205: Determine first prompt information corresponding to the material to be exported based on the first verification result.
[0118] Specifically, a correspondence between the first verification result and the first prompt information is pre-set. The first verification result may include parameter information that complies with the rules or parameter information that does not comply with the rules in the structure description information. If all parameters comply with the verification rules, the verification is successful and a prompt is given; when the structure description information contains parameters that do not comply with the rules, a corresponding prompt is given.
[0119] Step S206: When the first prompt information is a first verification success prompt information or a first warning prompt information, obtaining rendering parameters corresponding to the material to be exported;
[0120] When the first prompt information is the first verification success prompt information or the first warning prompt information, it indicates that the structural description information of the material to be exported has passed the verification, and a simulated rendering test is performed on the material to be exported to obtain corresponding rendering parameters. The rendering parameters may include performance parameters when rendering the material to be exported.
[0121] In an optional embodiment of the present application, the rendering parameters include at least one of the following:
[0122] Material rendering time and the instantaneous video memory size required for material rendering.
[0123] In practical applications, the material rendering time indicates the time required to render the material; the instantaneous video memory required for material rendering indicates the maximum amount of memory occupied by the graphics processing unit (GPU) when rendering the material. The longer the material rendering time or the larger the instantaneous video memory required for material rendering, the worse the performance of material rendering.
[0124] Step S207: determining a second verification rule corresponding to the material to be exported based on the rendering parameters and the application scenario information;
[0125] Specifically, different application scenarios have different performance requirements for materials, and corresponding verification rules are pre-set based on the application scenarios. Based on the application scenario information, the application scenario corresponding to the material to be exported can be determined. Based on the rendering parameters of the material to be exported, the second verification rule corresponding to the material in the corresponding application scenario is determined. The second rule may include indicators or conditions that should be met for each parameter in the rendering parameters.
[0126] Step S208: Verify the rendering parameters of the to-be-exported material based on the second verification rule to obtain a second verification result;
[0127] Specifically, each parameter in the rendering parameters is verified according to the second verification rule to determine whether each parameter meets the corresponding index or satisfies the corresponding condition, thereby obtaining a second verification result.
[0128] Step S209: Determine the second prompt information corresponding to the material to be exported based on the second verification result.
[0129] Specifically, a correspondence between the second verification result and the second prompt information is pre-set. The second verification result may include parameter information that complies with the rules or parameter information that does not comply with the rules in the rendering parameters. If all parameters comply with the verification rules, the verification is successful and a prompt is given; when the rendering parameters contain parameters that do not comply with the rules, a corresponding warning prompt or error prompt is given.
[0130] In an optional embodiment of the present application, the second prompt information includes any one of the following:
[0131] Second success prompt message, second warning prompt message, second error prompt message.
[0132] In actual application, the corresponding prompt information is determined according to the verification result. When all the parameters in the rendering parameters meet the second verification rule, the second verification success prompt information is displayed, which can specifically include directly popping up the material preview window and displaying the material in the window. If some parameters in the rendering parameters do not meet the rules, the second warning prompt information or the second error prompt information corresponding to the second verification result is displayed according to the correspondence between the second verification result and the second prompt information. Through the prompt information, the designer can be prompted to modify the material, avoiding rework caused by the material not meeting the requirements of the official release. The prompt can reduce the rework rate of the material.
[0133] The technical solution provided in the embodiment of the present application generates a first verification rule through the structural description information and application scenario information of the material to be exported, verifies the structural description information of the material to be exported, obtains the rendering parameters corresponding to the material to be exported when the structural description information meets the first verification rule, generates a second verification rule through the rendering parameters and application scenario information of the material to be exported, further verifies the rendering parameters of the material to be exported, and provides prompts based on the verification results, thereby avoiding the problem of rework for designers due to the performance of the exported material not meeting the requirements of the official release, reducing the material production time, and improving the efficiency of material production.
[0134] In order to better illustrate the solution provided by the embodiment of the present application, the solution provided by the embodiment of the present application is applied to the material production process. Figure 5 The flowchart shown is described.
[0135] In a specific embodiment, the technical solution of the present application can be implemented by embedding an automated self-checking tool in the Ae export plug-in. Figure 5 As shown, the designer designs the material. After the material design is completed, it is exported and verified, which may include verification of structural description information and rendering parameters. The specific verification process is completed in the "Automated Tool Self-Check" part as shown in the figure. The qualification of the material to be exported is determined based on the verification result. If it is unqualified, a prompt is given based on the verification result, such as the "Prompt Designer to Modify Plan" shown in the figure. The designer redesigns the material according to the prompt information and verifies it again. If the verification result indicates that the material is qualified, the material is tested before going online, such as the "Material Online in Operational Test Environment" shown in the figure. The test results of the material are then verified, such as the "Testing / R&D Verification of Material Effect" shown in the figure, to determine whether the material is qualified. If it is qualified, the material is released to the formal environment. If it is unqualified, the problem with the material is determined. According to the problem with the material, the verification rules in the automated self-check tool are updated, such as the "Confirm material problem, R&D updates automated self-check data" shown in the figure. The designer redesigns the material and verifies the newly designed material based on the updated verification rules.
[0136] Among them, the verification process of the automated self-checking tool is as follows: Figure 6 As shown. First, the structural description information of the material to be exported is verified, as shown in the figure "Whether the file description information indicators are met". According to the verification result, corresponding prompts are given, such as "Success", "Pop-up warning prompt", and "Error" as shown in the figure. When the prompt message is an error prompt, it means that the material to be exported is unqualified and the designer needs to redesign the material, and the verification ends. When the prompt message is a success prompt or a warning prompt, it means that the material to be exported is qualified. You can further obtain the rendering parameters of the material to be exported, as shown in the figure "Try to play and render", and further verify the rendering parameters, as shown in the figure "Whether the file runtime indicators are met". The file runtime indicators represent the rendering parameters when simulating the rendering of the file. The corresponding prompt message is displayed according to the verification result of the rendering parameters. If the verification is successful, the material can be exported. If the prompt message is a warning prompt, as shown in the figure "Pop-up warning prompt", the material can also be exported, as shown in the figure "Export material file". If the prompt message is an error prompt, as shown in the figure "Pop-up error prompt", the verification ends.
[0137] Based on Figure 1 Based on the same principle as the method shown in , the embodiment of the present disclosure further provides a prompt information determination device 30, such as Figure 7 As shown, the prompt information determining device 30 includes:
[0138] A material determination module 31 is used to determine the material to be exported;
[0139] An acquisition module 32 is configured to acquire structural description information of the material to be exported and application scenario information corresponding to the material to be exported;
[0140] A first rule determination module 33 is configured to determine a first verification rule corresponding to the material to be exported based on the structure description information and the application scenario information;
[0141] A first verification module 34 is configured to verify the structural description information of the to-be-exported material based on a first verification rule to obtain a first verification result;
[0142] The first prompt module 35 is configured to determine first prompt information corresponding to the to-be-exported material based on the first verification result.
[0143] In one possible implementation, the first prompt information includes any one of the following:
[0144] First verification success prompt message, first warning prompt message, first error prompt message;
[0145] When the first prompt information is the first verification success prompt information or the first warning prompt information, the prompt information determination device 30 further includes a parameter acquisition module, a second rule determination module, a second verification module and a second prompt module;
[0146] The parameter acquisition module is used to obtain the rendering parameters corresponding to the material to be exported;
[0147] A second rule determination module, configured to determine a second verification rule corresponding to the material to be exported based on the rendering parameters and the application scenario information;
[0148] A second verification module is used to verify the rendering parameters of the to-be-exported material based on a second verification rule to obtain a second verification result;
[0149] The second prompt module is used to determine second prompt information corresponding to the material to be exported based on the second verification result.
[0150] In one possible implementation, the rendering parameters include at least one of the following:
[0151] Material rendering time and the instantaneous video memory size required for material rendering.
[0152] In one possible implementation, the second prompt information includes any one of the following:
[0153] Second success prompt message, second warning prompt message, second error prompt message.
[0154] In a possible implementation, the material to be exported includes at least one of the following:
[0155] Video sequence frames, vector graphics layers;
[0156] The structural description information of the material to be exported includes at least one of the following:
[0157] The number of video sequence frames in the material to be exported;
[0158] Whether there are video sequence frames in the material to be exported that can be merged;
[0159] The total number of vector layers in the material to be exported.
[0160] In one possible implementation, the application scenario includes at least one of the following:
[0161] User interaction interface UI playback scene;
[0162] Video editing scene, which refers to the scene where the material effects of the material to be exported are applied to the video to be edited.
[0163] In a possible implementation, the acquisition module 32 is configured to, upon receiving a material export operation from the user, display a scene selection list in response to the material export operation, where the scene selection list includes at least one application scene;
[0164] Receive a user's selection operation for an application scenario in the scenario selection list, and determine application scenario information according to the selection operation.
[0165] The prompt information determination device of the embodiment of the present disclosure can execute the prompt information determination method provided by the embodiment of the present disclosure, and its implementation principle is similar. The actions performed by each module in the prompt information determination device in the embodiment of the present disclosure correspond to the steps in the prompt information determination method in each embodiment of the present disclosure. For the detailed functional description of each module of the prompt information determination device, please refer to the description in the corresponding prompt information determination method shown in the previous text, and will not be repeated here.
[0166] The prompt information determination device provided in the embodiment of the present application determines the material to be exported; obtains the structural description information of the material to be exported and the application scenario information corresponding to the material to be exported; determines the first verification rule corresponding to the material to be exported based on the structural description information and the application scenario information; verifies the structural description information of the material to be exported based on the first verification rule to obtain a first verification result; and determines the first prompt information corresponding to the material to be exported based on the first verification result. The technical solution provided in the present application generates a first verification rule through the structural description information and application scenario information of the material to be exported, verifies the structural description information of the material to be exported, and provides prompts based on the verification results, thereby avoiding the problem of rework for designers due to the fact that the performance of the exported material does not meet the requirements of the official release, reducing the material production time, and improving the efficiency of material production.
[0167] The above embodiment introduces a prompt information determination device from the perspective of a virtual module. The following describes an electronic device from the perspective of a physical module, as shown below:
[0168] The present application embodiment provides an electronic device, such as Figure 8 As shown, Figure 8 The electronic device 1600 shown includes a processor 1601 and a memory 1603. The processor 1601 and the memory 1603 are connected, for example, via a bus 1602. Optionally, the electronic device 1600 may further include a transceiver 1604. It should be noted that in actual applications, the number of transceivers 1604 is not limited to one, and the structure of the electronic device 1600 does not constitute a limitation on the embodiments of the present application.
[0169] Processor 1601 may be a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA, or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 1601 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0170] The bus 1602 may include a path for transmitting information between the above components. The bus 1602 may be a PCI bus or an EISA bus, etc. The bus 1602 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0171] The memory 1603 may be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an EEPROM, a CD-ROM or other optical disk storage, an optical disc storage (including a compact disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0172] The memory 1603 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 1601. The processor 1601 is used to execute the application code stored in the memory 1603 to implement the content shown in any of the above method embodiments.
[0173] An embodiment of the present application provides an electronic device, and the electronic device in the embodiment of the present application includes: a memory and a processor; at least one program, stored in the memory, for determining the material to be exported when executed by the processor; obtaining structural description information of the material to be exported and application scenario information corresponding to the material to be exported; determining a first verification rule corresponding to the material to be exported based on the structural description information and the application scenario information; verifying the structural description information of the material to be exported based on the first verification rule to obtain a first verification result; and determining first prompt information corresponding to the material to be exported based on the first verification result.
[0174] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding contents of the aforementioned method embodiment.
[0175] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0176] The above descriptions are only partial embodiments of the present invention. It should be pointed out that ordinary technicians in this technical field can make several improvements and modifications without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. A method for determining prompt information, characterized in that: The method comprises: Confirm the material to be exported; Acquire structural description information of the material to be exported and application scenario information of the application scenario corresponding to the material to be exported; Determining a first verification rule corresponding to the to-be-exported material based on the structure description information and the application scenario information; Verifying the structure description information of the to-be-exported material based on the first verification rule to obtain a first verification result; Determining, based on the first verification result, first prompt information corresponding to the material to be exported; wherein the first prompt information is a first verification success prompt information, a first warning prompt information, or a first error prompt information; When the first prompt information is the first verification success prompt information or the first warning prompt information, a simulated rendering test is performed on the material to be exported to obtain the rendering parameters corresponding to the material to be exported; based on the rendering parameters and the application scenario information, a second verification rule corresponding to the material to be exported is determined; based on the second verification rule, the rendering parameters of the material to be exported are verified to obtain a second verification result; based on the second verification result, a second prompt information corresponding to the material to be exported is determined.
2. The method according to claim 1, characterized in that The rendering parameters include at least one of the following: Material rendering time and the instantaneous video memory size required for material rendering.
3. The method according to claim 1, characterized in that The second prompt information includes any one of the following: Second success prompt message, second warning prompt message, second error prompt message.
4. The method according to any one of claims 1 to 3, characterized in that The material to be exported includes at least one of the following: Video sequence frames, vector graphics layers; The structural description information of the material to be exported includes at least one of the following: The number of video sequence frames in the material to be exported; Whether there are video sequence frames in the to-be-exported material that can be merged; The total number of vector layers in the material to be exported.
5. The method according to any one of claims 1 to 3, characterized in that The application scenario includes at least one of the following: User interaction interface UI playback scene; The video editing scene refers to a scene in which the material effect of the material to be exported is applied to the video to be edited.
6. The method according to any one of claims 1 to 3, characterized in that Obtaining application scenario information of the application scenario corresponding to the material to be exported includes: When receiving a material export operation from a user, displaying a scene selection list in response to the material export operation, the scene selection list including at least one application scene; A selection operation of a user for an application scene in the scene selection list is received, and application scene information of the application scene corresponding to the material to be exported is determined according to the selection operation.
7. A prompt information determination device, characterized in that: The device comprises: A material determination module, used to determine the material to be exported; An acquisition module, configured to acquire structural description information of the material to be exported and application scenario information of an application scenario corresponding to the material to be exported; A first rule determination module, configured to determine a first verification rule corresponding to the to-be-exported material based on the structure description information and the application scenario information; a first verification module, configured to verify the structure description information of the to-be-exported material based on the first verification rule to obtain a first verification result; A first prompt module, configured to determine, based on the first verification result, first prompt information corresponding to the material to be exported; wherein the first prompt information is a first verification success prompt information, a first warning prompt information, or a first error prompt information; a parameter acquisition module, configured to, when the first prompt information is the first verification success prompt information or the first warning prompt information, perform a simulated rendering test on the material to be exported to obtain rendering parameters corresponding to the material to be exported; A second rule determination module, configured to determine a second verification rule corresponding to the to-be-exported material based on the rendering parameters and the application scenario information; A second verification module, configured to verify the rendering parameters of the to-be-exported material based on the second verification rule to obtain a second verification result; The second prompt module is configured to determine second prompt information corresponding to the to-be-exported material based on the second verification result.
8. An electronic device, characterized in that: The electronic device comprises: one or more processors; Memory; One or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to: execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium is used to store a computer program, and when the computer program is run on a computer, the computer can execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Data verification method and device, computing equipment and medium
CN110390069A