Vehicle terminal animation interface display method and device, storage medium, and electronic device
By receiving the animation interface display change instructions and using the preset animation engine to load, combined with the dynamic presentation of current driving data, the problem that the vehicle terminal animation interface cannot be personalized is solved, and the technical effect of rapid personalized customization is achieved.
Patent Information
- Application Number
- CN202111260540.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-10-27
AI Technical Summary
The animation interface of the vehicle terminal cannot effectively achieve personalized customization, making it difficult to quickly meet user needs.
By receiving animation interface display change instructions, the animation elements of the vehicle terminal instrument display interface are replaced with preset animation file scripts, and loaded using the preset animation engine. Combined with the dynamic presentation of the current driving data, an animation file script in Json format is generated to create animations. Scenes enable rapid replacement and personalized customization of animation elements.
It realizes fast and convenient personalized customization of the vehicle terminal animation interface, and solves the problem that the animation interface display cannot meet the personalized needs of users.
Smart Images

Figure CN113986432B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer software, and more specifically, to a method and device for displaying an animated interface of a vehicle-mounted terminal, a storage medium, and an electronic device. Background Art
[0002] The vehicle terminal should display information such as speed and rotation speed during driving on the instrument home page of the animation interface.
[0003] For the instrument homepage with animation interface, users have the need for personalized customization, but it takes a long time to meet the customization needs.
[0004] With regard to the problem in the related art that the animation interface display of the vehicle terminal cannot be well customized, no effective solution has been proposed yet. Summary of the invention
[0005] The main purpose of the present application is to provide a method and device for displaying an animated interface of an in-vehicle terminal, a storage medium, and an electronic device to solve the problem that the display of the animated interface of the in-vehicle terminal cannot be well customized.
[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for displaying an animation interface of a vehicle-mounted terminal is provided.
[0007] The vehicle-mounted terminal animation interface display method according to the present application includes: receiving an animation interface display change instruction; according to the animation interface display change instruction, replacing the animation elements in the instrument display interface of the vehicle-mounted terminal with a preset animation file script and loading it, wherein the preset animation file script is called through a preset animation engine, and the preset animation file script is pre-stored in the vehicle-mounted terminal.
[0008] Furthermore, the step of replacing the animation elements in the instrument display interface of the vehicle terminal with a preset animation file script and loading it according to the animation interface display change instruction also includes:
[0009] The current driving data of the vehicle is received, and according to the attribute information agreed in the animation interface display change instruction, the animation elements in the instrument display interface of the vehicle terminal are replaced with the driving data to be dynamically loaded.
[0010] Furthermore, the vehicle-mounted terminal includes: a head-up display device, and the animated interface display information of the head-up display device includes at least one of the following: a speedometer, a turn signal, a navigation direction, a distance to the next turn, and a street name of the next exit or turn.
[0011] Furthermore, replacing the animation elements in the instrument display interface of the vehicle terminal with a preset animation file script and loading it includes: when the animation elements contain at least one group of identical animation primitives, replacing the animation elements with the same preset animation file script according to the at least one group of identical animation primitives and loading it; when the animation elements contain different animation primitives, replacing the animation elements with different preset animation file scripts and loading them according to the different animation primitives.
[0012] Furthermore, replacing the animation elements in the instrument display interface of the vehicle terminal with a preset animation file script and loading it includes: according to the pre-cache, replacing the animation elements in the instrument display interface of the vehicle terminal with a preset animation file script and loading it through the pre-cache.
[0013] Furthermore, according to the animation interface display change instruction, the animation elements in the instrument display interface of the vehicle terminal are replaced with a preset animation file script and loaded, including: generating the animation in the corresponding scene according to the preset requirements, and exporting the animation file script in Json format; placing the animation file script in Json format into the system directory of the vehicle terminal; reading the obtained animation file script in Json format through the animation engine, and parsing the Layer layer in the animation file script to create different drawing layers, wherein the animation engine uses the drawing layer as the minimum rendering unit, and the elements in the Layer layer include at least one of the following: shape primitive, ks field; by loading each of the Layer layers and completing the rendering and replacement of the animation data, the playback of the entire animation scene is formed.
[0014] Furthermore, according to the animation interface display change instruction, the animation elements in the instrument display interface of the vehicle terminal are replaced with a preset animation file script and loaded, including: according to the animation interface display change instruction and the current driving data of the received vehicle, the attributes in the animation file script replace the current driving data, so as to dynamically present the animation scene of the vehicle terminal.
[0015] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a vehicle-mounted terminal animation interface display device is provided.
[0016] According to the vehicle-mounted terminal animation interface display device of the present application, it includes: a receiving module for receiving animation interface display change instructions; a dynamic adjustment module for replacing the animation elements in the instrument display interface of the vehicle-mounted terminal with a preset animation file script and loading it according to the animation interface display change instructions, wherein the preset animation file script is called through a preset animation engine, and the preset animation file script is pre-stored in the vehicle-mounted terminal.
[0017] In the embodiments of the present application, the vehicle-mounted terminal animation interface display method and device, storage medium, and electronic device adopt a method of receiving animation interface display change instructions. By following the animation interface display change instructions, the animation elements in the instrument display interface of the vehicle-mounted terminal are replaced with preset animation file scripts and loaded, thereby achieving the technical effect of quickly and conveniently personalizing the animation, and further solving the technical problem that the vehicle-mounted terminal animation interface display cannot be well personalized. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings constituting a part of this application are used to provide a further understanding of this application, so that other features, purposes and advantages of this application become more obvious. The schematic embodiment drawings and their descriptions of this application are used to explain this application and do not constitute an improper limitation on this application. In the drawings:
[0019] Figure 1 It is a hardware structure diagram of the vehicle terminal animation interface display method according to an embodiment of the present application;
[0020] Figure 2 It is a schematic diagram of the flow of the method for displaying an animated interface of a vehicle terminal according to an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of the structure of the vehicle terminal animation interface display device according to an embodiment of the present application;
[0022] Figure 4 It is a flow chart of a method for displaying an animated interface of a vehicle terminal according to a preferred embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] In the present application, the terms "upper", "lower", "left", "right", "front", "back", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings. These terms are mainly used to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to have a specific orientation, or to be constructed and operated in a specific orientation.
[0026] In addition, some of the above terms may be used to express other meanings in addition to indicating orientation or positional relationship. For example, the term "on" may also be used to express a certain dependency or connection relationship in some cases. For those of ordinary skill in the art, the specific meanings of these terms in this application can be understood according to specific circumstances.
[0027] In addition, the terms "installed", "set", "provided with", "connected", "connected", and "socketed" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral structure; it can be a mechanical connection, or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be an internal connection between two devices, elements, or components. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0028] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0029] like Figure 1 As shown, the hardware structure in the embodiment of the present application includes a vehicle terminal 100 and an instrument display interface 200, wherein the instrument display interface 200 is an animation screen display interface displayed and presented on the vehicle terminal 100. And the animation screen on the instrument display interface can meet the user's personalized customization.
[0030] like Figure 2 As shown, the method includes the following steps S201 to S202:
[0031] Step S201, receiving an animation interface display change instruction;
[0032] Step S202, according to the animation interface display change instruction, the animation elements in the instrument display interface of the vehicle terminal are replaced with a preset animation file script and loaded, wherein the preset animation file script is called by a preset animation engine, and the preset animation file script is pre-stored in the vehicle terminal.
[0033] From the above description, it can be seen that the present application achieves the following technical effects:
[0034] By adopting the method of receiving animation interface display change instructions, the purpose of replacing the animation elements in the instrument display interface of the vehicle terminal with preset animation file scripts and loading them is achieved according to the animation interface display change instructions, thereby realizing the technical effect of quickly and conveniently personalizing the animation, and further solving the technical problem that the animation interface display of the vehicle terminal cannot be well personalized.
[0035] In the above step S201, the vehicle terminal receives an animation interface display change instruction. The animation interface display change mainly refers to different display effects and page layouts selected by the user according to his / her preferences.
[0036] As an optional implementation, the animation interface display change instruction is usually issued directly by the user.
[0037] As an optional implementation, multiple preset animation alternatives or customized solutions can be provided for the user to select through the vehicle-mounted terminal.
[0038] In the above step S202, according to the animation interface display change instruction, the animation elements in the instrument display interface of the vehicle terminal are replaced with the preset animation file script and loaded. In other words, the animation elements in the instrument display interface can be replaced according to the preset animation file script. Under the premise of ensuring normal reception of driving data, the animation elements are replaced by the animation script file.
[0039] As an optional implementation, the preset animation file script is called by a preset animation engine. The preset animation engine in the vehicle terminal can call the script file in real time and obtain the corresponding animation.
[0040] As an optional implementation, the preset animation file script is pre-stored in the vehicle-mounted terminal. The preset animation file script in the vehicle-mounted terminal is stored in the vehicle-mounted terminal, which can meet the call of different personalized customization requirements.
[0041] As a preferred embodiment of the present invention, the method of replacing the animation elements in the instrument display interface of the vehicle terminal with a preset animation file script and loading it according to the animation interface display change instruction also includes: receiving the current driving data of the vehicle, and replacing the animation elements in the instrument display interface of the vehicle terminal with the driving data to be dynamically loaded according to the attribute information agreed in the animation interface display change instruction.
[0042] In specific implementation, the vehicle terminal receives the current driving data of the vehicle, and replaces the animation elements in the instrument display interface of the vehicle terminal with the driving data to be dynamically loaded according to the attribute information agreed in the animation interface display change instruction. It can be understood that the attribute information mainly refers to user customized information or pre-stored information. The animation elements in the instrument display interface of the vehicle terminal are replaced with the driving data to be dynamically loaded.
[0043] As a preference in this embodiment, the vehicle-mounted terminal includes: a head-up display device, the animated interface display information of the head-up display device includes at least one of the following: a speedometer, a turn signal, a navigation direction, a distance to the next turn, and the street name of the next exit or turn.
[0044] In specific implementation, the speedometer, turn signal, navigation direction, distance to the next turn, and street name of the next exit or turn are used as information displayed on the animation interface of the head-up display device. It should be noted that the above display information is only an example and is not used to limit the protection scope of the embodiments of this application.
[0045] As a preference in this embodiment, replacing the animation elements in the instrument display interface of the vehicle terminal with a preset animation file script and loading it includes: when the animation elements contain at least one group of identical animation primitives, replacing the animation elements with the same preset animation file script and loading it according to the at least one group of identical animation primitives; when the animation elements contain different animation primitives, replacing the animation elements with different preset animation file scripts and loading them according to the different animation primitives.
[0046] In specific implementation, when it is determined that the animation element contains at least one group of identical animation primitives, the animation element is replaced with the same preset animation file script according to the at least one group of identical animation primitives and loaded. This can save resource usage and improve efficiency. When it is determined that the animation element contains all different animation primitives, the animation element is replaced with different preset animation file scripts according to the all different animation primitives and loaded in sequence. Or it can be loaded according to different layers or different areas.
[0047] As a preference in this embodiment, replacing the animation elements in the instrument display interface of the vehicle terminal with a preset animation file script and loading it includes: according to the pre-cache, replacing the animation elements in the instrument display interface of the vehicle terminal with a preset animation file script and loading it through the pre-cache.
[0048] In specific implementation, the vehicle terminal replaces the animation elements in the instrument display interface of the vehicle terminal with preset animation file scripts based on the pre-cached file and loads them through the pre-cached file, thus meeting the real-time and fast requirements.
[0049] As a preferred embodiment of this embodiment, according to the animation interface display change instruction, the animation elements in the instrument display interface of the vehicle terminal are replaced with a preset animation file script and loaded, including: generating the animation in the corresponding scene according to the preset requirements, and exporting the animation file script in Json format; placing the animation file script in Json format into the system directory of the vehicle terminal; reading the obtained animation file script in Json format through the animation engine, and parsing the Layer layer in the animation file script to create different drawing layers, wherein the animation engine uses the drawing layer as the minimum rendering unit, and the elements in the Layer layer include at least one of the following: shape primitive, ks field; by loading each of the Layer layers and completing the rendering and replacement of the animation data, the playback of the entire animation scene is formed.
[0050] In the specific implementation, firstly, the animation in the corresponding scene is generated according to the preset requirements, and the animation file script in Json format is exported; the animation file script in Json format is placed in the system directory of the vehicle terminal. It can be understood that the animation file in Json format is placed in the asset directory of the program, and the path is set to the animation engine. The animation engine reads the animation file in Json format, parses the Layer layer in the animation file to create different drawing layers, and the engine uses the drawing layer as the rendering unit.
[0051] For example, when parsing the elements of the Layer layer, the core is to parse the shape primitives and create drawn objects based on the coordinate fields in the shape. Another example is to parse the ks field in the Layer to obtain the appearance information of each primitive, including color, position, shape, transparency, etc.
[0052] As a preferred embodiment of the present invention, the animation elements in the instrument display interface of the vehicle terminal are replaced with a preset animation file script and loaded according to the animation interface display change instruction, including: according to the animation interface display change instruction and the current driving data of the received vehicle, the attributes in the animation file script replace the current driving data, so as to dynamically present the animation scene of the vehicle terminal.
[0053] In specific implementation, according to the animation interface display change instruction and the received current driving data of the vehicle, the attributes in the animation file script replace the current driving data, thereby achieving a display effect of dynamically presenting the animation scene in the vehicle terminal.
[0054] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0055] According to an embodiment of the present application, a vehicle terminal animation interface display device for implementing the above method is also provided. Figure 3 As shown, the device comprises:
[0056] Receiving module 301, used to receive animation interface display change instructions;
[0057] The dynamic adjustment module 302 is used to replace the animation elements in the instrument display interface of the vehicle terminal with a preset animation file script and load it according to the animation interface display change instruction, wherein the preset animation file script is called by a preset animation engine and the preset animation file script is pre-stored in the vehicle terminal.
[0058] In the receiving module 301 of the embodiment of the present application, the vehicle terminal receives an animation interface display change instruction. The animation interface display change mainly refers to different display effects and page layouts selected by the user according to his or her preferences.
[0059] As an optional implementation, the animation interface display change instruction is usually issued directly by the user.
[0060] As an optional implementation, multiple preset animation alternatives or customized solutions can be provided for the user to select through the vehicle-mounted terminal.
[0061] In the dynamic adjustment module 302 of the embodiment of the present application, according to the animation interface display change instruction, the animation elements in the instrument display interface of the vehicle terminal are replaced with the preset animation file script and loaded. In other words, the animation elements in the instrument display interface can be replaced according to the preset animation file script. Under the premise of ensuring normal reception of driving data, the animation elements are replaced by the animation script file.
[0062] As an optional implementation, the preset animation file script is called by a preset animation engine. The preset animation engine in the vehicle terminal can call the script file in real time and obtain the corresponding animation.
[0063] As an optional implementation, the preset animation file script is pre-stored in the vehicle-mounted terminal. The preset animation file script in the vehicle-mounted terminal is stored in the vehicle-mounted terminal, which can meet the call of different personalized customization requirements.
[0064] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present application is not limited to any specific combination of hardware and software.
[0065] In order to better understand the above-mentioned process of the vehicle-mounted terminal animation interface display method, the above-mentioned technical solution is explained below in combination with the preferred embodiment, but it is not used to limit the technical solution of the embodiment of the present invention.
[0066] In the embodiment of the present application, the vehicle terminal animation interface display method is as follows:
[0067] like Figure 4 FIG. 1 is a flow chart of a method for displaying an animation interface of a vehicle terminal, which specifically includes:
[0068] Step S401, complete the design of the entire animation scene through Adobe software and output it into a vector animation file.
[0069] Design the animation in the scene in Adobe After Effect software and export it as an animation file in Json format. Then, place the animation file in Json format in the asset directory of the program and set the path to the animation engine.
[0070] Step S402: modify the attribute name of the data to be replaced to a fixed attribute name.
[0071] The animation engine reads the animation file in Json format, parses the Layer layer in the animation file to create different drawing layers, and the engine uses the drawing layer as the rendering unit.
[0072] Step S403: the vehicle terminal animation engine loads the animation file, parses the animation file to generate an animation homepage, and completes the display of the entire scene.
[0073] The core of parsing the various elements of the Layer layer is to parse the shape primitives, and create the drawn object according to the coordinate field in the shape. Then parse the ks field in the Layer to obtain the appearance information of each primitive, including color, position, shape, transparency, etc.
[0074] Call Android animation to dynamically draw and change each defined image according to the appearance information in ks. Replace the external data according to the name of the primitive. For example, the name of the speed animation primitive is txSpeed. Find this primitive and replace its value with the animation speed value passed from the outside to achieve the effect of dynamically replacing data.
[0075] Step S404, receiving vehicle data, and replacing the dynamic data with the attributes in the animation according to the agreed attribute names.
[0076] By loading each layer and completing the rendering and replacement of the animation, the entire animation scene is played. Users can dynamically replace the animation of the scene by loading different json animation files.
[0077] Step S405, completing the dynamic presentation of the entire animation scene.
[0078] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for displaying an animated interface of a vehicle terminal, characterized in that: include: Receive animation interface display change instructions; According to the animation interface display change instruction, the animation elements in the instrument display interface of the vehicle terminal are replaced with a preset animation file script and loaded, wherein the preset animation file script is called by a preset animation engine and the preset animation file script is pre-stored in the vehicle terminal; The method of replacing the animation elements in the instrument display interface of the vehicle terminal with a preset animation file script and loading it according to the animation interface display change instruction also includes: Receiving the current driving data of the vehicle, and replacing the animation elements in the instrument display interface of the vehicle terminal with the driving data to be dynamically loaded according to the attribute information agreed in the animation interface display change instruction; The vehicle-mounted terminal includes: a head-up display device, wherein the animation interface display information of the head-up display device includes at least one of the following: a speedometer, a turn signal, a navigation direction, a distance to the next turn, and a street name of the next exit or turn; The step of replacing the animation elements in the instrument display interface of the vehicle terminal with a preset animation file script and loading it according to the animation interface display change instruction includes: Generate animations in the corresponding scenes according to preset requirements and export the animation file script in Json format; Placing the animation file script in the Json format into the system directory of the vehicle terminal; The animation file script in the Json format is read by the animation engine, and the Layer layer in the animation file script is parsed to create different drawing layers, wherein the animation engine uses the drawing layer as the minimum rendering unit, and the elements in the Layer layer include at least one of the following: shape primitive, ks field; The entire animation scene is played by loading each of the Layer layers and completing the rendering and replacement of the animation data; According to the animation interface display change instruction and the received current driving data of the vehicle, the attributes in the animation file script replace the current driving data to dynamically present the animation scene of the vehicle-mounted terminal.
2. The method according to claim 1, characterized in that: The step of replacing the animation elements in the instrument display interface of the vehicle-mounted terminal with a preset animation file script and loading the script includes: When the animation element includes at least one group of identical animation primitives, the animation element is replaced with the same preset animation file script according to the at least one group of identical animation primitives and loaded; When the animation elements contain all different animation primitives, the animation elements are replaced with different preset animation file scripts according to the all different animation primitives and loaded.
3. The method according to claim 1, characterized in that The step of replacing the animation elements in the instrument display interface of the vehicle-mounted terminal with a preset animation file script and loading the script includes: According to the pre-caching, the instrument display interface replaces the animation elements in the instrument display interface of the vehicle-mounted terminal with a preset animation file script and loads it through the pre-caching.
4. A vehicle-mounted terminal animation interface display device, characterized in that: include: A receiving module, used for receiving animation interface display change instructions; A dynamic adjustment module, used to replace the animation elements in the instrument display interface of the vehicle terminal with a preset animation file script and load it according to the animation interface display change instruction, wherein the preset animation file script is called by a preset animation engine and the preset animation file script is pre-stored in the vehicle terminal; The method of replacing the animation elements in the instrument display interface of the vehicle terminal with a preset animation file script and loading it according to the animation interface display change instruction also includes: Receiving the current driving data of the vehicle, and replacing the animation elements in the instrument display interface of the vehicle terminal with the driving data to be dynamically loaded according to the attribute information agreed in the animation interface display change instruction; The vehicle-mounted terminal includes: a head-up display device, wherein the animation interface display information of the head-up display device includes at least one of the following: a speedometer, a turn signal, a navigation direction, a distance to the next turn, and a street name of the next exit or turn; The step of replacing the animation elements in the instrument display interface of the vehicle terminal with a preset animation file script and loading it according to the animation interface display change instruction includes: Generate animations in the corresponding scenes according to preset requirements and export the animation file script in Json format; Placing the animation file script in the Json format into the system directory of the vehicle terminal; The animation file script in the Json format is read by the animation engine, and the Layer layer in the animation file script is parsed to create different drawing layers, wherein the animation engine uses the drawing layer as the minimum rendering unit, and the elements in the Layer layer include at least one of the following: shape primitive, ks field; The entire animation scene is played by loading each of the Layer layers and completing the rendering and replacement of the animation data; According to the animation interface display change instruction and the received current driving data of the vehicle, the attributes in the animation file script replace the current driving data to dynamically present the animation scene of the vehicle-mounted terminal.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 3 when executed.
6. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
System and method for rendering animation user interface
CN101882321A
Method and device for updating animation
CN102193806A
System and method for displaying state of monitoring equipment in real time based on flash animation
CN102917007A
Interface style transforming method and device
CN104899038A
Animation processing method and animation processing device
CN106504305A
