Shadow animation effect processing method and device, equipment and storage medium

By automating the processing of shadow animation effects of lyrics, including word segmentation, display position acquisition, shadow layer composition and rendering engine invocation, the problem of cumbersome processing and vulnerability to manual intervention in the existing technology is solved, and a more efficient and stable processing effect is achieved. .

CN119313804APending Publication Date: 2025-01-14BEIJING JIDOU INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411356070.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-01-14

Smart Images

  • Figure CN119313804A_ABST
    Figure CN119313804A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of information, and discloses a shadow animation effect processing method and device, equipment and a storage medium, and the method comprises the steps: obtaining lyric data, carrying out the word segmentation of the lyric data, and obtaining lyrics; obtaining a to-be-added shadow animation effect of the lyrics, obtaining a plurality of shadow layers corresponding to the shadow animation effect, and forming a two-dimensional vector corresponding to each shadow layer; obtaining a shadow color and a shadow angle corresponding to each shadow layer, selecting the total number of the shadow layers as a target layer number, and splicing the two-dimensional vector, the shadow color and the shadow angle corresponding to each shadow layer according to the target layer number to generate a target character string; updating the original character string of the attribute into the target character string, and generating an updated attribute; and displaying the lyrics rendered with the shadow animation effect on the vehicle-mounted terminal interface through the rendering engine loaded with the updated attributes. The method is beneficial to improving the processing efficiency of the shadow animation effect of the lyrics.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a shadow animation effect processing method, device, equipment and storage medium. Background Art

[0002] Shadow animation effects can simulate the complex process of light and object interaction in the real world, making the animation scene closer to the real world, thereby enhancing the audience's sense of immersion and involvement. In addition, shadow animation effects can also add rich layers and details to the animation, making the picture more vivid and interesting, attracting the audience's attention and enhancing the overall visual experience. Therefore, shadow animation effects are a key factor in improving the quality of animation works and enhancing the audience's viewing experience.

[0003] However, the existing process of processing the shadow animation effect of lyrics is cumbersome, which is not conducive to improving the processing efficiency of the shadow animation effect. The reason is that the existing technology mainly uses manual processing to process the shadow animation effect of lyrics, and the manual processing method requires inputting instructions one by one, which consumes a lot of human resources and time resources, increases the processing time of the shadow animation effect of lyrics, and is easily affected by manual intervention, so it is not conducive to improving the processing efficiency of the shadow animation effect. Summary of the invention

[0004] The present invention provides a shadow animation effect processing method, device, computer equipment and storage medium to solve the technical problem that the existing processing process of the shadow animation effect of lyrics is complicated and is not conducive to improving the processing efficiency of the shadow animation effect.

[0005] In a first aspect, a shadow animation effect processing method is provided, comprising: Acquire lyrics data, perform word segmentation processing on the lyrics data, and obtain lyrics; Obtaining the display position of the lyrics in the vehicle computer interface; Obtain the shadow animation effect to be added to the lyrics, obtain multiple shadow layers corresponding to the shadow animation effect, and form a two-dimensional vector corresponding to each shadow layer according to the offset of each shadow layer in the horizontal direction relative to the display position and the offset of each shadow layer in the vertical direction relative to the display position; Obtain the shadow color and shadow angle corresponding to each of the shadow layers, select the total number of the shadow layers as the target number of layers, and concatenate the two-dimensional vector, the shadow color, and the shadow angle corresponding to each of the shadow layers according to the target number of layers to generate a target character string; In a preset cascading style sheet, obtaining an attribute corresponding to the shadow animation effect, updating an original character string of the attribute to the target character string, and generating an updated attribute; Calling a rendering engine, and rendering the shadow animation effect below the lyrics by loading the updated attribute of the rendering engine, generating the lyrics rendered with the shadow animation effect, and displaying the lyrics rendered with the shadow animation effect on the vehicle interface.

[0006] Further, obtaining the display position of the lyrics in the vehicle interface includes: Connecting to the vehicle system and obtaining the vehicle interface in the vehicle system; Obtain the display position of the lyrics in the vehicle machine interface.

[0007] Further, the obtaining of the shadow animation effect to be added to the lyrics, obtaining a plurality of shadow layers corresponding to the shadow animation effect, and forming a two-dimensional vector corresponding to each shadow layer according to the offset of each shadow layer in the horizontal direction relative to the display position and the offset of each shadow layer in the vertical direction relative to the display position, include: Obtain the shadow animation effect to be added to the lyrics, obtain the number of the shadow animation effect, and obtain multiple shadow layers corresponding to the number; A two-dimensional vector corresponding to each shadow layer is formed according to the offset of each shadow layer in the horizontal direction relative to the display position and the offset of each shadow layer in the vertical direction relative to the display position.

[0008] Further, the obtaining of the shadow color and shadow angle corresponding to each shadow layer, selecting the total number of the shadow layers as the target number of layers, and concatenating the two-dimensional vector, the shadow color and the shadow angle corresponding to each shadow layer according to the target number of layers to generate a target character string includes: Obtaining the shadow color and shadow angle corresponding to each of the shadow layers, counting the shadow layers, and obtaining the total number of the shadow layers; The total number of the shadow layers is selected as the target number of layers, and according to the target number of layers, the two-dimensional vector, the shadow color and the shadow angle corresponding to each shadow layer are concatenated to generate a target character string.

[0009] Further, obtaining the attribute corresponding to the shadow animation effect in a preset cascading style sheet, updating the original string of the attribute to the target string, and generating the updated attribute includes: In a preset cascading style sheet, obtain the attributes corresponding to the shadow animation effect, and call a preset JavaScript engine; The original string of the attribute is updated to the target string through the JavaScript engine, and the attribute having the target string is selected as the updated attribute.

[0010] Further, the calling of the rendering engine, by loading the updated rendering engine of the attribute, rendering the shadow animation effect below the lyrics, generating the lyrics rendered with the shadow animation effect, and displaying the lyrics rendered with the shadow animation effect on the vehicle interface, comprises: Calling a rendering engine, and rendering the shadow animation effect below the lyrics by loading the updated attribute into the rendering engine; After the rendering is completed, the layer of the shadow animation effect and the layer of the lyrics are merged to generate the lyrics rendered with the shadow animation effect, and the lyrics rendered with the shadow animation effect are displayed on the vehicle interface.

[0011] Further, in the calling of the rendering engine, by loading the updated attribute of the rendering engine, rendering the shadow animation effect below the lyrics, generating the lyrics rendered with the shadow animation effect, and displaying the lyrics rendered with the shadow animation effect on the vehicle interface, the shadow animation effect processing method includes: The end time of the lyrics that render the shadow animation effect is obtained, and if the current time is the end time, the shadow animation effect is cleared.

[0012] In a second aspect, a shadow animation effect processing device is provided, comprising: A first acquisition module is used to acquire lyrics data and perform word segmentation processing on the lyrics data to obtain lyrics; A second acquisition module is used to obtain the display position of the lyrics in the vehicle interface; A composition module, used for obtaining the shadow animation effect to be added to the lyrics, obtaining multiple shadow layers corresponding to the shadow animation effect, and composing a two-dimensional vector corresponding to each shadow layer according to the offset of each shadow layer in the horizontal direction relative to the display position and the offset of each shadow layer in the vertical direction relative to the display position; A first generation module is used to obtain the shadow color and shadow angle corresponding to each of the shadow layers, select the total number of the shadow layers as the target number of layers, and concatenate the two-dimensional vector, the shadow color and the shadow angle corresponding to each of the shadow layers according to the target number of layers to generate a target character string; A second generating module is used to obtain the attribute corresponding to the shadow animation effect in a preset cascading style sheet, update the original string of the attribute to the target string, and generate the updated attribute; The display module is used to call the rendering engine, and by loading the rendering engine with the updated attributes, render the shadow animation effect below the lyrics, generate the lyrics rendered with the shadow animation effect, and display the lyrics rendered with the shadow animation effect on the vehicle interface.

[0013] In a third aspect, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned shadow animation effect processing method when executing the computer program.

[0014] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned shadow animation effect processing method are implemented.

[0015] The present application provides a shadow animation effect processing method, device, computer equipment and storage medium, which obtain lyrics data, perform word segmentation processing on the lyrics data to obtain lyrics; obtain the display position of the lyrics in the vehicle interface; obtain the shadow animation effect to be added to the lyrics, obtain multiple shadow layers corresponding to the shadow animation effect, and form a two-dimensional vector corresponding to each shadow layer according to the offset of each shadow layer in the horizontal direction relative to the display position and the offset of each shadow layer in the vertical direction relative to the display position; obtain the shadow color and shadow angle corresponding to each shadow layer, select the total number of shadow layers as the target number of layers, and according to the target number of layers, splice the two-dimensional vector, shadow color and shadow angle corresponding to each shadow layer to generate a target string; in a preset cascading style sheet, obtain the attribute corresponding to the shadow animation effect, and replace the original string of the attribute with the original one. The target string is newly generated, and the updated attributes are generated; the rendering engine is called, and the shadow animation effect is rendered below the lyrics by loading the rendering engine with the updated attributes, and the lyrics with the shadow animation effect are generated, and the lyrics with the shadow animation effect are displayed on the vehicle-machine interface. The beneficial effects are in two aspects. On the one hand, the rendering engine is called, and the shadow animation effect is rendered below the lyrics by loading the rendering engine with the updated attributes, and the lyrics with the shadow animation effect are generated, and the lyrics with the shadow animation effect are displayed on the vehicle-machine interface. Since no manual processing is required, the processing time of the shadow animation effect of the lyrics is reduced, which is beneficial to improving the processing efficiency of the shadow animation effect of the lyrics; on the other hand, it will not be affected by manual intervention, so it is beneficial to improve the stability of displaying the lyrics with the shadow animation effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0017] Figure 1 is a schematic diagram of an application environment of a shadow animation effect processing method in one embodiment of the present invention; Figure 2 A schematic flow chart of a shadow animation effect processing method provided by an embodiment of the present invention; Figure 3 yes Figure 1 A schematic flow chart of a specific implementation of step S23; Figure 4 yes Figure 1 A schematic flow chart of a specific implementation of step S25; Figure 5 yes Figure 1 A schematic flow chart of a specific implementation of step S26; Figure 6 is a structural schematic diagram of a shadow animation effect processing device in one embodiment of the present invention; Figure 7 It is a structural schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0019] See also Figure 1 , Figure 1 is a schematic diagram of an application environment of a shadow animation effect processing method according to an embodiment of the present invention. The shadow animation effect processing method provided by the embodiment of the present invention can be applied in Figure 1 In an application environment, a client communicates with a server through a network.

[0020] The server obtains lyrics data through the client, performs word segmentation on the lyrics data, and obtains lyrics; Obtaining the display position of the lyrics in the vehicle computer interface; Obtain the shadow animation effect to be added to the lyrics, obtain multiple shadow layers corresponding to the shadow animation effect, and form a two-dimensional vector corresponding to each shadow layer according to the offset of each shadow layer in the horizontal direction relative to the display position and the offset of each shadow layer in the vertical direction relative to the display position; Obtain the shadow color and shadow angle corresponding to each of the shadow layers, select the total number of the shadow layers as the target number of layers, and concatenate the two-dimensional vector, the shadow color, and the shadow angle corresponding to each of the shadow layers according to the target number of layers to generate a target character string; In a preset cascading style sheet, obtaining an attribute corresponding to the shadow animation effect, updating an original character string of the attribute to the target character string, and generating an updated attribute; Calling a rendering engine, and rendering the shadow animation effect below the lyrics by loading the updated attribute of the rendering engine, generating the lyrics rendered with the shadow animation effect, and displaying the lyrics rendered with the shadow animation effect on the vehicle interface.

[0021] In the scheme implemented by the above-mentioned shadow animation effect processing method, device, equipment and medium, the beneficial effects are in two aspects. On the one hand, the rendering engine is called, and the shadow animation effect is rendered below the lyrics by loading the rendering engine of the updated attribute to generate the lyrics rendered with the shadow animation effect. The lyrics rendered with the shadow animation effect are displayed on the vehicle interface. Since no manual processing is required, the processing time of the shadow animation effect of the lyrics is reduced, which is conducive to improving the processing efficiency of the shadow animation effect of the lyrics. On the other hand, it will not be affected by manual intervention, which is conducive to improving the stability of displaying the lyrics rendered with the shadow animation effect.

[0022] The client includes but is not limited to vehicle-mounted devices, smart phones, personal computers and tablet computers.

[0023] The server can be implemented with an independent task database or a task database cluster composed of multiple task databases. The present invention is described in detail below through specific embodiments.

[0024] See also Figure 2 , Figure 2 A flowchart of a shadow animation effect processing method provided by an embodiment of the present invention includes the following steps: S21, obtaining lyrics data, performing word segmentation processing on the lyrics data to obtain lyrics; Exemplarily, obtaining lyrics data, performing word segmentation processing on the lyrics data, and obtaining lyrics includes: Connect to a media platform, obtain lyrics data through the media platform, perform word segmentation processing on the lyrics data, and obtain lyrics.

[0025] The media platform has established cooperative relationships with many media content providers and has a huge content library, which contains song lyrics data. Users only need to perform simple search or play operations on the media platform, and the media platform can quickly retrieve the lyrics of the corresponding song from its backend database and display them to users in real time.

[0026] S22, obtaining the display position of the lyrics in the vehicle computer interface; Wherein, obtaining the display position of the lyrics in the vehicle interface includes: Connecting to the vehicle system and obtaining the vehicle interface in the vehicle system; Obtain the display position of the lyrics in the vehicle machine interface.

[0027] Among them, the car computer interface is the operating interface of the vehicle information system. After the vehicle is started, the car computer interface is usually automatically activated and displayed on the main instrument panel or the central control touch screen, becoming the main window for users to perform various operations.

[0028] S23, obtaining the shadow animation effect to be added to the lyrics, obtaining multiple shadow layers corresponding to the shadow animation effect, and forming a two-dimensional vector corresponding to each shadow layer according to the offset of each shadow layer in the horizontal direction relative to the display position and the offset of each shadow layer in the vertical direction relative to the display position; S24, obtaining the shadow color and shadow angle corresponding to each shadow layer, selecting the total number of shadow layers as the target number of layers, and concatenating the two-dimensional vector, the shadow color, and the shadow angle corresponding to each shadow layer according to the target number of layers to generate a target character string; The obtaining of the shadow color and shadow angle corresponding to each shadow layer, selecting the total number of shadow layers as the target number of layers, and concatenating the two-dimensional vector, the shadow color and the shadow angle corresponding to each shadow layer according to the target number of layers to generate a target character string includes: Obtaining the shadow color and shadow angle corresponding to each of the shadow layers, counting the shadow layers, and obtaining the total number of the shadow layers; The total number of the shadow layers is selected as the target number of layers, and according to the target number of layers, the two-dimensional vector, the shadow color and the shadow angle corresponding to each shadow layer are concatenated to generate a target character string.

[0029] Exemplarily, the target string includes the two-dimensional vectors, shadow colors, and shadow angles of all shadow layers, and every two shadow layers are separated by commas.

[0030] S25, obtaining the attribute corresponding to the shadow animation effect in a preset cascading style sheet, updating the original string of the attribute to the target string, and generating the updated attribute; Among them, Cascading Style Sheets (CSS for short) can adapt to different design requirements.

[0031] S26, calling the rendering engine, rendering the shadow animation effect below the lyrics by loading the rendering engine with the updated attributes, generating the lyrics rendered with the shadow animation effect, and displaying the lyrics rendered with the shadow animation effect on the vehicle interface.

[0032] Among them, the shadow animation effect significantly improves the readability of the lyrics. The shadow animation effect significantly improves the readability of the lyrics. When the background color of the car interface is similar to the color of the lyrics, the shadow can clearly outline the edges of the lyrics, forming a sharp contrast, allowing users to read the lyrics more easily and accurately.

[0033] Wherein, in calling the rendering engine, by loading the updated attribute of the rendering engine, rendering the shadow animation effect below the lyrics, generating the lyrics rendered with the shadow animation effect, and displaying the lyrics rendered with the shadow animation effect on the vehicle interface, the shadow animation effect processing method includes: The end time of the lyrics that render the shadow animation effect is obtained, and if the current time is the end time, the shadow animation effect is cleared.

[0034] In the embodiment of the present invention, the beneficial effects are in two aspects. On the one hand, the rendering engine is called, and the shadow animation effect is rendered below the lyrics by loading the rendering engine with the updated attributes to generate the lyrics rendered with the shadow animation effect. The lyrics rendered with the shadow animation effect are displayed on the vehicle interface. Since no manual processing is required, the processing time of the shadow animation effect of the lyrics is reduced, which is beneficial to improving the processing efficiency of the shadow animation effect of the lyrics. On the other hand, it will not be affected by manual intervention, which is beneficial to improving the stability of displaying the lyrics rendered with the shadow animation effect.

[0035] See also Figure 3 , Figure 3 yes Figure 1 A specific implementation flow diagram of step S23 is described in detail as follows: S31, obtaining the shadow animation effect to be added to the lyrics, obtaining the number of the shadow animation effect, and obtaining a plurality of shadow layers corresponding to the number; Each of the shadow animation effects corresponds to one of the numbers, and different shadow animation effects correspond to different numbers.

[0036] S32, composing a two-dimensional vector corresponding to each shadow layer according to the offset of each shadow layer in the horizontal direction relative to the display position and the offset of each shadow layer in the vertical direction relative to the display position.

[0037] The i-th offset relative to the display position in the horizontal direction is Xi, and the i-th offset relative to the display position in the vertical direction is Yi, and the two offsets are combined to form a two-dimensional vector (Xi, Yi), where i is a positive integer.

[0038] For the sake of illustration, an example is given below: The multiple shadow layers are shadow layer 1, shadow layer 2, and shadow layer 3; Among them, the first offset in the horizontal direction relative to the display position is X1, and the Dth offset in the vertical direction relative to the display position is Y1, then these two offsets are combined to form a two-dimensional vector (X1, Y1).

[0039] Among them, the second offset in the horizontal direction relative to the display position is X2, and the Dth offset in the vertical direction relative to the display position is Y2, then these two offsets are combined to form a two-dimensional vector (X2, Y2).

[0040] Among them, the third offset in the horizontal direction relative to the display position is X3, and the Dth offset in the vertical direction relative to the display position is Y3, then these two offsets are combined to form a two-dimensional vector (X3, Y3).

[0041] In the embodiment of the present invention, the introduction of the two-dimensional vector makes the position change of the shadow layer clear, which is conducive to realizing complex shadow animation effects.

[0042] See also Figure 4 , Figure 4 yes Figure 1 A specific implementation flow diagram of step S25 is described in detail as follows: S41, obtaining the attributes corresponding to the shadow animation effect in a preset cascading style sheet, and calling a preset JavaScript engine; Among them, in the preset cascading style sheet, the text-shadow attribute is selected as the attribute corresponding to the shadow animation effect.

[0043] Among them, Cascading Style Sheets (CSS for short).

[0044] Among them, the text-shadow attribute is a CSS attribute that adds a shadow effect to text content.

[0045] Among them, the full Chinese name of CSS attributes is: Cascading Style Sheet Properties, and the full English name is: CSS Properties. CSS is the abbreviation of Cascading Style Sheets.

[0046] S42, updating the original string of the attribute to the target string through the JavaScript engine, and selecting the attribute having the target string as the updated attribute.

[0047] Among them, the full Chinese name of JavaScript engine is: JavaScript execution engine, and the full English name of JavaScript engine is: JavaScript Engine.

[0048] Among them, the JavaScript engine is a virtual machine that specializes in processing JavaScript scripts.

[0049] Among them, JavaScript is an interpreted language. The code is not precompiled, but interpreted and executed line by line at runtime.

[0050] In the embodiment of the present invention, the original character string is updated to the target character string. This update operation is beneficial to maintaining the timeliness of the attribute.

[0051] See also Figure 5 , Figure 5 yes Figure 1 A specific implementation flow diagram of step S26 is described in detail as follows: S51, calling a rendering engine, and rendering the shadow animation effect below the lyrics by loading the updated attribute into the rendering engine; S52, after rendering is completed, the layer of the shadow animation effect and the layer of the lyrics are merged to generate the lyrics rendered with the shadow animation effect, and the lyrics rendered with the shadow animation effect are displayed on the vehicle interface.

[0052] Exemplarily, after the rendering is completed, the layer of the shadow animation effect and the layer of the lyrics are merged to generate the lyrics rendered with the shadow animation effect, and the lyrics rendered with the shadow animation effect are displayed on the vehicle interface, including: After rendering is completed, the layer of the shadow animation effect and the layer of the lyrics are merged to generate the lyrics rendered with the shadow animation effect. The lyrics rendered with the shadow animation effect are displayed on the vehicle interface, the center of the layer is selected as the rotation center, and the layer is controlled to rotate around the rotation center to a preset angle.

[0053] Preferably, the preset angle is 45 degrees.

[0054] In the embodiment of the present invention, since no manual processing is required, the processing time of the shadow animation effect of the lyrics is reduced, which is beneficial to improving the processing efficiency of the shadow animation effect of the lyrics.

[0055] See also Figure 6 , Figure 6is a structural diagram of a shadow animation effect processing device in one embodiment of the present invention. Figure 6 As shown, the shadow animation effect processing device includes a first acquisition module 101, a second acquisition module 102, a composition module 103, a first generation module 104, a second generation module 105, and a display module 106. The functional modules are described in detail as follows: The first acquisition module 101 is used to acquire lyrics data and perform word segmentation processing on the lyrics data to obtain lyrics; The second acquisition module 102 is used to obtain the display position of the lyrics in the vehicle interface; The composition module 103 is used to obtain the shadow animation effect to be added to the lyrics, obtain multiple shadow layers corresponding to the shadow animation effect, and compose a two-dimensional vector corresponding to each shadow layer according to the offset of each shadow layer in the horizontal direction relative to the display position and the offset of each shadow layer in the vertical direction relative to the display position; The first generation module 104 is used to obtain the shadow color and shadow angle corresponding to each of the shadow layers, select the total number of the shadow layers as the target number of layers, and concatenate the two-dimensional vector, the shadow color and the shadow angle corresponding to each of the shadow layers according to the target number of layers to generate a target character string; The second generating module 105 is used to obtain the attribute corresponding to the shadow animation effect in a preset cascading style sheet, update the original string of the attribute to the target string, and generate the updated attribute; The display module 106 is used to call the rendering engine, and render the shadow animation effect below the lyrics by loading the rendering engine with the updated attributes, generate the lyrics rendered with the shadow animation effect, and display the lyrics rendered with the shadow animation effect on the vehicle interface.

[0056] In the embodiment of the present invention, the beneficial effects are in two aspects. On the one hand, the rendering engine is called, and the shadow animation effect is rendered below the lyrics by loading the rendering engine with the updated attributes to generate the lyrics rendered with the shadow animation effect. The lyrics rendered with the shadow animation effect are displayed on the vehicle interface. Since no manual processing is required, the processing time of the shadow animation effect of the lyrics is reduced, which is beneficial to improving the processing efficiency of the shadow animation effect of the lyrics. On the other hand, it will not be affected by manual intervention, which is beneficial to improving the stability of displaying the lyrics rendered with the shadow animation effect.

[0057] The specific definition of the shadow animation effect processing device can refer to the definition of the shadow animation effect processing method above, which will not be repeated here.

[0058] Each module in the above shadow animation effect processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0059] See also Figure 7 , Figure 7 is another structural diagram of a computer device in one embodiment of the present invention. In one embodiment, a computer device is provided. The computer device is a server or a client. Its internal structure diagram can be as shown in FIG. Figure 7 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external database. When the computer program is executed by the processor, the functions or steps of a shadow animation effect processing method are realized.

[0060] In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor.

[0061] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or computer device can refer to the relevant descriptions of the server and the client in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.

[0062] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0063] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent possible changes only. Unless explicitly required, separate components and functions are optional, and the order of operations may vary. Parts and subsamples of some embodiments may be included in or replace parts and subsamples of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated sub-samples, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other sub-samples, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method or device including the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0064] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0065] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some sub-samples can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0066] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A method for processing shadow animation effects, characterized in that: include: Acquire lyrics data, perform word segmentation processing on the lyrics data, and obtain lyrics; Obtaining the display position of the lyrics in the vehicle computer interface; Obtain the shadow animation effect to be added to the lyrics, obtain multiple shadow layers corresponding to the shadow animation effect, and form a two-dimensional vector corresponding to each shadow layer according to the offset of each shadow layer in the horizontal direction relative to the display position and the offset of each shadow layer in the vertical direction relative to the display position; Obtain the shadow color and shadow angle corresponding to each of the shadow layers, select the total number of the shadow layers as the target number of layers, and concatenate the two-dimensional vector, the shadow color, and the shadow angle corresponding to each of the shadow layers according to the target number of layers to generate a target character string; In a preset cascading style sheet, obtaining an attribute corresponding to the shadow animation effect, updating an original character string of the attribute to the target character string, and generating an updated attribute; Calling a rendering engine, and rendering the shadow animation effect below the lyrics by loading the updated attribute of the rendering engine, generating the lyrics rendered with the shadow animation effect, and displaying the lyrics rendered with the shadow animation effect on the vehicle interface.

2. The shadow animation effect processing method according to claim 1, characterized in that: The obtaining of the display position of the lyrics in the vehicle interface includes: Connecting to the vehicle system and obtaining the vehicle interface in the vehicle system; Obtain the display position of the lyrics in the vehicle machine interface.

3. The shadow animation effect processing method according to claim 1, characterized in that: The step of obtaining the shadow animation effect to be added to the lyrics, obtaining a plurality of shadow layers corresponding to the shadow animation effect, and forming a two-dimensional vector corresponding to each shadow layer according to the offset of each shadow layer in the horizontal direction relative to the display position and the offset of each shadow layer in the vertical direction relative to the display position, includes: Obtain the shadow animation effect to be added to the lyrics, obtain the number of the shadow animation effect, and obtain multiple shadow layers corresponding to the number; A two-dimensional vector corresponding to each shadow layer is formed according to the offset of each shadow layer in the horizontal direction relative to the display position and the offset of each shadow layer in the vertical direction relative to the display position.

4. The shadow animation effect processing method according to claim 1, characterized in that: The obtaining of the shadow color and the shadow angle corresponding to each of the shadow layers, selecting the total number of the shadow layers as the target number of layers, and concatenating the two-dimensional vector, the shadow color, and the shadow angle corresponding to each of the shadow layers according to the target number of layers to generate a target character string includes: Obtaining the shadow color and shadow angle corresponding to each of the shadow layers, counting the shadow layers, and obtaining the total number of the shadow layers; The total number of the shadow layers is selected as the target number of layers, and according to the target number of layers, the two-dimensional vector, the shadow color and the shadow angle corresponding to each shadow layer are concatenated to generate a target character string.

5. The shadow animation effect processing method according to claim 1, characterized in that: The step of obtaining the attribute corresponding to the shadow animation effect in a preset cascading style sheet, updating the original character string of the attribute to the target character string, and generating the updated attribute includes: In a preset cascading style sheet, obtain the attributes corresponding to the shadow animation effect, and call a preset JavaScript engine; The original string of the attribute is updated to the target string through the JavaScript engine, and the attribute having the target string is selected as the updated attribute.

6. The shadow animation effect processing method according to claim 1, characterized in that: The calling of the rendering engine, rendering the shadow animation effect below the lyrics by loading the updated attribute of the rendering engine, generating the lyrics rendered with the shadow animation effect, and displaying the lyrics rendered with the shadow animation effect on the vehicle interface, comprises: Calling a rendering engine, and rendering the shadow animation effect below the lyrics by loading the updated attribute into the rendering engine; After the rendering is completed, the layer of the shadow animation effect and the layer of the lyrics are merged to generate the lyrics rendered with the shadow animation effect, and the lyrics rendered with the shadow animation effect are displayed on the vehicle interface.

7. The shadow animation effect processing method according to claim 1, characterized in that: In calling the rendering engine, by loading the updated attribute of the rendering engine, rendering the shadow animation effect below the lyrics, generating the lyrics rendered with the shadow animation effect, and displaying the lyrics rendered with the shadow animation effect on the vehicle interface, the shadow animation effect processing method includes: The end time of the lyrics that render the shadow animation effect is obtained, and if the current time is the end time, the shadow animation effect is cleared.

8. A shadow animation effect processing device, characterized in that: include: A first acquisition module is used to acquire lyrics data and perform word segmentation processing on the lyrics data to obtain lyrics; A second acquisition module is used to obtain the display position of the lyrics in the vehicle interface; A composition module, used for obtaining the shadow animation effect to be added to the lyrics, obtaining multiple shadow layers corresponding to the shadow animation effect, and composing a two-dimensional vector corresponding to each shadow layer according to the offset of each shadow layer in the horizontal direction relative to the display position and the offset of each shadow layer in the vertical direction relative to the display position; A first generation module is used to obtain the shadow color and shadow angle corresponding to each of the shadow layers, select the total number of the shadow layers as the target number of layers, and concatenate the two-dimensional vector, the shadow color and the shadow angle corresponding to each of the shadow layers according to the target number of layers to generate a target character string; A second generating module is used to obtain the attribute corresponding to the shadow animation effect in a preset cascading style sheet, update the original string of the attribute to the target string, and generate the updated attribute; The display module is used to call the rendering engine, and by loading the rendering engine with the updated attributes, render the shadow animation effect below the lyrics, generate the lyrics rendered with the shadow animation effect, and display the lyrics rendered with the shadow animation effect on the vehicle interface.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the shadow animation effect processing method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the shadow animation effect processing method according to any one of claims 1 to 7 are implemented.