Data processing method and device, computer equipment and storage medium

By intelligently judging and processing user's role switching instructions in the intelligent dialogue product, the target role and style background are automatically obtained from the virtual character library and the transition animation is generated, the problem of cumbersome role switching operations in the existing technology is solved, and seamless user experience and visual fluency are achieved.

CN119883074APending Publication Date: 2025-04-25PING AN HEALTH CLOUD CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411877200.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

When existing intelligent dialogue products realize virtual role switching, the operation process is cumbersome, interrupting the continuous dialogue experience between users and virtual roles, increasing the user's operation burden, and reducing the overall user experience of the product.

Method used

By judging the role switching command triggered by the user in the call interface, we intelligently obtain the target role and target style background from the preset virtual character library, and generate transition animations, display the transition animation on the call interface, and finally display the target role and target style background.

Benefits of technology

It realizes role switching that automatically and intelligently completes the user role switching needs, simplifies the user operation process, provides a seamless dialogue experience, improves the user experience, and ensures the smoothness of the visual experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883074A_ABST
    Figure CN119883074A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of data processing, and relates to a data processing method, which is applied to the financial science and technology field and the digital medical field, and comprises the following steps: judging whether a role switching instruction triggered by a user in a call interface is received or not; if yes, obtaining a target role corresponding to the role switching instruction from a preset virtual role library; obtaining a target style background corresponding to the target role; generating a corresponding transition animation based on the target role; the transition animation is displayed on the call interface; and after the transition animation is finished, displaying the target role and the target style background on the call interface. The invention further provides a data processing device, computer equipment and a storage medium. In addition, the invention also relates to a block chain technology, and the transition animation can be stored in a block chain. According to the role switching method and device, role switching meeting the role switching requirement of the user can be automatically and intelligently completed, the user experience is improved, and the fluency of visual experience is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of data processing technology, financial technology, and digital medicine, and in particular to data processing methods, devices, computer equipment, and storage media. Background Art

[0002] With the rapid development of financial technology and digital healthcare, intelligent dialogue products have become an indispensable part of these fields. Such products greatly enrich the user experience and enhance the personalization and interactivity of services by providing virtual characters to interact with users. However, in the existing technology, the switching method of virtual characters has become one of the key factors restricting the improvement of user experience.

[0003] At present, most intelligent conversation products on the market usually use a cumbersome operation process when switching virtual characters. Users need to exit the current chat interface first, return to the product main menu or a specific character selection interface, and then choose from a variety of virtual characters. This switching method not only interrupts the continuous conversation experience between the user and the virtual character, but also increases the user's operation burden and reduces the overall user experience of the product. Summary of the invention

[0004] The purpose of the embodiments of the present application is to propose a data processing method, apparatus, computer device and storage medium to solve the technical problem that when existing intelligent dialogue products implement virtual character switching, the continuous dialogue experience between the user and the virtual character is not only interrupted, but also the user's operating burden is increased, and the overall user experience of the product is reduced.

[0005] In order to solve the above technical problems, the present application provides a data processing method, which adopts the following technical solution:

[0006] Determine whether a role switching instruction triggered by the user in the call interface is received;

[0007] If so, obtaining a target character corresponding to the character switching instruction from a preset virtual character library;

[0008] Acquire a target style background corresponding to the target character;

[0009] Generate a corresponding transition animation based on the target character;

[0010] Displaying the transition animation on the call interface;

[0011] After the transition animation ends, the target character and the target style background are displayed on the call interface.

[0012] Furthermore, the step of determining whether a role switching instruction triggered by a user in a call interface is received specifically includes:

[0013] Determining whether a sliding operation triggered by the user in the call interface is detected;

[0014] If so, obtaining a sliding distance corresponding to the sliding operation;

[0015] Determining whether the sliding distance is greater than a preset distance threshold;

[0016] If so, it is determined that the role switching instruction triggered by the user in the call interface is received, otherwise it is determined that the role switching instruction triggered by the user in the call interface is not received.

[0017] Furthermore, the step of acquiring the target character corresponding to the character switching instruction from the preset virtual character library specifically includes:

[0018] Acquire designated selection information corresponding to the role switching instruction;

[0019] Calling the virtual character library;

[0020] Filtering out a designated role corresponding to the designated selection information from the virtual role library;

[0021] The designated role is used as the target role.

[0022] Furthermore, the step of obtaining a target style background corresponding to the target character specifically includes:

[0023] Get the role name of the target role;

[0024] Call the preset style background library;

[0025] Performing query processing on the style background library based on the character name to obtain a specified style background matching the character name;

[0026] The designated style background is used as the target style background.

[0027] Furthermore, the step of generating a corresponding transition animation based on the target character specifically includes:

[0028] Acquire the first role information of the target role, and acquire the second role information of the original role;

[0029] Get the preset animation type and animation parameters;

[0030] Based on the first character information, the second character information and the animation parameters, generating a specified animation corresponding to the animation type;

[0031] The specified animation is used as the transition animation.

[0032] Furthermore, after the transition animation ends, after the step of displaying the target character and the target style background on the call interface, the method further includes:

[0033] Obtaining original conversation information corresponding to the user;

[0034] Determining a target dialog box corresponding to the target role in the call interface;

[0035] The original dialog information is displayed in the target dialog box.

[0036] Furthermore, after the step of displaying the transition animation on the call interface, the method further includes:

[0037] Get the preset animation storage strategy;

[0038] Generate identification information corresponding to the transition animation;

[0039] The transition animation and the identification information are stored based on the animation storage strategy.

[0040] In order to solve the above technical problems, the embodiment of the present application further provides a data processing device, which adopts the following technical solution:

[0041] A judgment module, used to judge whether a role switching instruction triggered by a user in a call interface is received;

[0042] A first acquisition module, configured to acquire a target character corresponding to the character switching instruction from a preset virtual character library;

[0043] A second acquisition module is used to acquire a target style background corresponding to the target character;

[0044] A first generating module, used for generating a corresponding transition animation based on the target character;

[0045] A first display module, used for displaying the transition animation on the call interface;

[0046] The second display module is used to display the target character and the target style background on the call interface after the transition animation ends.

[0047] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0048] Determine whether a role switching instruction triggered by the user in the call interface is received;

[0049] If so, obtaining a target character corresponding to the character switching instruction from a preset virtual character library;

[0050] Acquire a target style background corresponding to the target character;

[0051] Generate a corresponding transition animation based on the target character;

[0052] Displaying the transition animation on the call interface;

[0053] After the transition animation ends, the target character and the target style background are displayed on the call interface.

[0054] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0055] Determine whether a role switching instruction triggered by the user in the call interface is received;

[0056] If so, obtaining a target character corresponding to the character switching instruction from a preset virtual character library;

[0057] Acquire a target style background corresponding to the target character;

[0058] Generate a corresponding transition animation based on the target character;

[0059] Displaying the transition animation on the call interface;

[0060] After the transition animation ends, the target character and the target style background are displayed on the call interface.

[0061] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0062] The present application first determines whether a role switching instruction triggered by a user in a call interface is received; if so, the target role corresponding to the role switching instruction is obtained from a preset virtual role library; then the target style background corresponding to the target role is obtained; then a corresponding transition animation is generated based on the target role; the transition animation is subsequently displayed on the call interface; finally, after the transition animation ends, the target role and the target style background are displayed on the call interface. After receiving a role switching instruction triggered by a user in a call interface, the present application intelligently obtains the target role corresponding to the role switching instruction from a preset virtual role library, and obtains the target style background corresponding to the target role, and then generates a corresponding transition animation based on the target role, and then displays the transition animation on the call interface, and after the transition animation ends, the target role and the target style background are displayed on the call interface, so that the role switching that meets the user's role switching needs can be automatically and intelligently completed. The whole process simplifies the user's operation process, and the user can easily switch between different virtual characters and obtain a seamless conversation experience, which improves the user experience and ensures the smoothness of the visual experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0064] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0065] Figure 2 A flowchart of an embodiment of a data processing method according to the present application;

[0066] Figure 3 is a schematic structural diagram of an embodiment of a data processing device according to the present application;

[0067] Figure 4 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0068] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0069] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0070] 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 accompanying drawings.

[0071] like Figure 1 As shown, the system architecture 100 may include a terminal device 101, a network 102 and a server 103. The terminal device 101 may be a laptop 1011, a tablet computer 1012 or a mobile phone 1013. The network 102 is used to provide a medium for a communication link between the terminal device 101 and the server 103. The network 102 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0072] The user can use the terminal device 101 to interact with the server 103 through the network 102 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0073] The terminal device 101 can be any electronic device with a display screen and supporting web browsing. In addition to the laptop computer 1011, tablet computer 1012 or mobile phone 1013, the terminal device 101 can also be an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV), a laptop computer, a desktop computer, etc.

[0074] The server 103 may be a server that provides various services, such as a background server that provides support for a web page displayed on the terminal device 101 .

[0075] It should be noted that the data processing method provided in the embodiments of the present application is generally executed by a server / terminal device, and accordingly, the data processing device is generally arranged in the server / terminal device.

[0076] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0077] Continue to refer Figure 2 , showing a flow chart of an embodiment of a data processing method according to the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. The data processing method provided in the embodiment of the present application can be applied to any scenario where data processing is required, and the data processing method can be applied to products in these scenarios, for example, data processing of intelligent dialogue products used in the financial insurance field or digital medical scenarios, such as role switching. The data processing method comprises the following steps:

[0078] Step S201, determining whether a role switching instruction triggered by the user in the call interface is received.

[0079] In this embodiment, the electronic device (eg, Figure 1The server / terminal device shown in the figure) can obtain the role switching instruction through a wired connection or a wireless connection. It should be pointed out that the above-mentioned wireless connection method may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or developed in the future. The executor of the present application is specifically an intelligent dialogue system, or simply referred to as a system, which can be applied to business scenarios in the financial technology field or the digital medical field to provide users with dialogue interaction functions. Among them, the specific implementation process of the above-mentioned judgment on whether the role switching instruction triggered by the user in the call interface is received will be further described in detail in the subsequent specific embodiments of the present application, and will not be elaborated on here.

[0080] Step S202: If yes, obtain the target character corresponding to the character switching instruction from a preset virtual character library.

[0081] In this embodiment, the specific implementation process of obtaining the target role corresponding to the role switching instruction from the preset virtual role library will be further described in detail in subsequent specific embodiments of the present application, and will not be elaborated on here.

[0082] Step S203, obtaining a target style background corresponding to the target character.

[0083] In this embodiment, the specific implementation process of obtaining the target style background corresponding to the target character will be further described in detail in subsequent specific embodiments of the present application, and will not be elaborated on here.

[0084] Step S204: generating a corresponding transition animation based on the target character.

[0085] In this embodiment, the specific implementation process of generating the corresponding transition animation based on the target character will be further described in detail in subsequent specific embodiments of the present application, and will not be elaborated on here.

[0086] Step S205: displaying the transition animation on the call interface.

[0087] In this embodiment, by displaying the generated transition animation on the call interface, the smoothness of the user's visual experience during the role switching process can be effectively ensured. The present application provides a smooth animation effect for switching roles and backgrounds to enhance the user experience. In order to make the switching of roles and backgrounds more natural, the system provides a smooth transition animation effect. When the user slides to switch roles, a smooth animation effect appears on the screen, making the changes of roles and backgrounds smoother. This animation effect not only enhances the visual experience, but also enhances the user's sense of immersion.

[0088] Step S206, after the transition animation ends, displaying the target character and the target style background on the call interface.

[0089] In this embodiment, after the transition animation ends, by displaying the target character and target style background on the call interface, the user can view the target character and target style background that correspond to his or her role switching needs. The entire role switching process is seamless for the user, so that the user will not feel any interruption or discomfort, and the user can continue to communicate with the new target character and enjoy a seamless role switching experience.

[0090] This application can simplify the character switching operation: a simple sliding operation can be used to quickly switch between characters and backgrounds without returning to a complex character list. In the call interface, users can quickly switch between different virtual characters by sliding their fingers on the screen (such as sliding left or right). This operation method is simple and intuitive, reduces the user's operation steps, and improves the user experience.

[0091] The present application first determines whether a role switching instruction triggered by a user in a call interface is received; if so, the target role corresponding to the role switching instruction is obtained from a preset virtual role library; then the target style background corresponding to the target role is obtained; then a corresponding transition animation is generated based on the target role; the transition animation is subsequently displayed on the call interface; finally, after the transition animation ends, the target role and the target style background are displayed on the call interface. After receiving a role switching instruction triggered by a user in a call interface, the present application intelligently obtains the target role corresponding to the role switching instruction from a preset virtual role library, and obtains the target style background corresponding to the target role, and then generates a corresponding transition animation based on the target role, and then displays the transition animation on the call interface, and after the transition animation ends, the target role and the target style background are displayed on the call interface, so that the role switching that meets the user's role switching needs can be automatically and intelligently completed. The whole process simplifies the user's operation process, and the user can easily switch between different virtual characters and obtain a seamless conversation experience, which improves the user experience and ensures the smoothness of the visual experience.

[0092] In some optional implementations, step S201 includes the following steps:

[0093] Determine whether a sliding operation triggered by the user in the call interface is detected.

[0094] In this embodiment, the sliding operation refers to the user's sliding operation on the screen (such as sliding left or right) to trigger the role switching operation in the call interface. The sliding operation can be completed by touching the screen and dragging the finger.

[0095] If so, obtain the sliding distance corresponding to the sliding operation.

[0096] In this embodiment, for a detected sliding operation, the user needs to reach a certain sliding distance to ensure that the sliding operation is recognized as an intention to switch roles.

[0097] It is determined whether the sliding distance is greater than a preset distance threshold.

[0098] In this embodiment, there is no specific limitation on the value of the distance threshold, which can be set according to actual business needs, for example, it can be set to 6 cm.

[0099] If so, it is determined that the role switching instruction triggered by the user in the call interface is received, otherwise it is determined that the role switching instruction triggered by the user in the call interface is not received.

[0100] In this embodiment, if it is detected that the sliding distance of the sliding operation is greater than the above distance threshold, it indicates that the user has the intention to switch roles, and then it is determined that the role switching instruction triggered by the user in the call interface is received. If it is detected that the sliding distance of the sliding operation is less than the above distance threshold, it indicates that the user does not have the intention to switch roles, and it may just trigger an erroneous operation, and then it is determined that the role switching instruction triggered by the user in the call interface is not received.

[0101] This application determines whether a sliding operation triggered by the user in the call interface is detected; if so, obtains the sliding distance corresponding to the sliding operation; subsequently determines whether the sliding distance is greater than a preset distance threshold; if so, determines that the role switching instruction triggered by the user in the call interface is received, otherwise determines that the role switching instruction triggered by the user in the call interface is not received. When this application detects a sliding operation triggered by the user in the call interface, it obtains the sliding distance corresponding to the sliding operation, and then compares the sliding distance with the preset distance threshold numerically, so that according to the obtained numerical comparison result, it can be quickly and accurately detected whether the role switching instruction triggered by the user in the call interface is received, which effectively improves the accuracy of the generated instruction detection result.

[0102] In some optional implementations of this embodiment, step S202 includes the following steps:

[0103] Acquire designated selection information corresponding to the role switching instruction.

[0104] In this embodiment, the above-mentioned designated selection information refers to the role information selected by the user after performing a sliding operation, such as the role information may refer to the role name.

[0105] The virtual character library is called.

[0106] In this embodiment, the virtual role library is a database of virtual roles that is pre-built according to actual business needs and stores role names of multiple virtual roles and one-to-one correspondence between each role name.

[0107] A designated role corresponding to the designated selection information is selected from the virtual role library.

[0108] In this embodiment, the designated role can be obtained by first searching the virtual role library for a designated role name that matches the designated selection information, and then filtering the virtual role library for a designated virtual role that matches the designated role name.

[0109] The designated role is used as the target role.

[0110] The present application obtains the designated selection information corresponding to the role switching instruction; then calls the virtual role library; then filters out the designated role corresponding to the designated selection information from the virtual role library; and subsequently uses the designated role as the target role. The present application obtains the designated selection information corresponding to the role switching instruction, and then based on the use of the virtual role library, can quickly and accurately filter out the designated role corresponding to the designated selection information and use it as the corresponding target role, effectively improving the efficiency and accuracy of obtaining the target role.

[0111] In some optional implementations, step S203 includes the following steps:

[0112] Gets the role name of the target role.

[0113] In this embodiment, the name information of the target role may be obtained to obtain the role name of the target role.

[0114] Call the preset style background library.

[0115] In this embodiment, the style background library is a database pre-built according to actual business needs, storing the role names of multiple virtual roles and the style backgrounds corresponding to the role names of the respective roles.

[0116] The style background library is queried based on the character name to obtain a designated style background matching the character name.

[0117] In this embodiment, the specified style background can be obtained by first searching for a specific character name matching the character name from the style background library, and then filtering out a specific style background matching the specific character name from the style background library.

[0118] The designated style background is used as the target style background.

[0119] The present application obtains the character name of the target character; then calls a preset style background library; then performs a query process on the style background library based on the character name to obtain a specified style background that matches the character name; and subsequently uses the specified style background as the target style background. The present application obtains the character name of the target character, and then uses the character name of the target character to query the style background library, thereby enabling fast and accurate query of the target style background corresponding to the target character, effectively improving the efficiency and accuracy of obtaining the target style background.

[0120] In some optional implementations, step S204 includes the following steps:

[0121] The first role information of the target role is obtained, and the second role information of the original role is obtained.

[0122] In this embodiment, the first character information of the target character refers to the appearance, position, size and rotation angle of the target character. The second character information of the original character refers to the appearance, position, size and rotation angle of the original character. The original character refers to the virtual character used by the user before the character switching.

[0123] Get the preset animation type and animation parameters.

[0124] In this embodiment, there is no specific limitation on the selection of the above-mentioned animation types, which can be set according to actual business needs. For example, it can include simple gradients, scaling, rotations, or more complex animation sequences, such as position movement, shape changes, or color transitions. Among them, gradient refers to: a gradual change in transparency or color. Scaling refers to: the size of a character or background gradually changes. Rotation refers to: a character or background rotates around a center point. Position movement refers to: a character or background moves on the screen. Shape change refers to: a gradual change in the shape or outline of a character. Color transition refers to: a gradual change in the color or texture of a character.

[0125] There is no specific limitation on the selection of the above animation parameters, which can be set according to actual business needs, including duration (the time from the start to the end of the animation), easing function (controls the change of animation speed, such as linear, acceleration, deceleration, etc.) and interpolation method (determines the calculation method of the intermediate frames of the animation).

[0126] A designated animation corresponding to the animation type is generated based on the first character information, the second character information, and the animation parameters.

[0127] In this embodiment, the first character information and the second character information are used as the basis for generating an animation, and then the key frames of the animation are calculated based on the animation type and animation parameters. Key frames are important time points in the animation, which define the starting state, the ending state and possible intermediate states of the animation. Then, the interpolation method is used to calculate the intermediate frames of the animation. Interpolation is to calculate the state of each frame in the animation based on the changes between the key frames. This can ensure a smooth transition of the animation. Among them, the above-mentioned interpolation method can adopt methods such as linear interpolation or Bezier curve interpolation. Subsequently, animation rendering is performed based on the obtained key frames and intermediate frames to convert the animation data into visual output, thereby obtaining the corresponding specified animation. Among them, the rendering process includes drawing the character information, such as the image or texture of the character, onto the screen, and updating their position, size, rotation and transparency according to the key frames and intermediate frames of the animation.

[0128] The specified animation is used as the transition animation.

[0129] The present application obtains the first character information of the target character and the second character information of the original character; then obtains the preset animation type and animation parameters; then generates a specified animation corresponding to the animation type based on the first character information, the second character information and the animation parameters; and subsequently uses the specified animation as the transition animation. The present application obtains the first character information of the target character, the second character information of the original character, and the preset animation type and animation parameters, and then based on the use of the first character information, the second character information and the animation parameters, can realize automatic and intelligent generation of a transition animation corresponding to the target character, thereby improving the generation efficiency and generation intelligence of the transition animation.

[0130] In some optional implementations of this embodiment, after step S206, the electronic device may further perform the following steps:

[0131] The original conversation information corresponding to the user is obtained.

[0132] In this embodiment, the original dialogue information refers to the context information of the dialogue between the user and the original character, including the text input by the user, the system's reply, and any related status information.

[0133] A target dialog box corresponding to the target role is determined in the call interface.

[0134] In this embodiment, the target dialog box refers to a dialog box used by the target character to interact with the user.

[0135] The original dialog information is displayed in the target dialog box.

[0136] In this embodiment, the text of the target dialog box can be updated by using the original conversation information to achieve seamless substitution of the previous conversation content into the conversation with the target character, thereby ensuring that the user can continue the previous conversation. Among them, the continuity of the chat content can be maintained through this application: during the role switching process, the chat content is automatically brought into the conversation of the next character to ensure the continuity and smoothness of the chat process. During the role switching process, the chat content will not be interrupted or lost, and the system will automatically bring the current chat content into the conversation of the new character to ensure that the user can continue the chat seamlessly. For example, if the user is having a conversation with a virtual character, when the user switches to another character, the previous conversation content will be automatically displayed in the dialog box of the new character.

[0137] This application obtains the original conversation information corresponding to the user; then determines the target dialog box corresponding to the target character in the call interface; and then displays the original conversation information in the target dialog box. This application obtains the original conversation information corresponding to the user, and automatically determines the target dialog box corresponding to the target character in the call interface, and then intelligently displays the original conversation information in the target dialog box, so that the conversation content can be seamlessly connected, and the user will not feel any interruption or discomfort, so that the user can easily switch between different virtual characters and obtain a seamless conversation experience, further improving the user experience.

[0138] In some optional implementations of this embodiment, after step S205, the electronic device may further perform the following steps:

[0139] Get the preset animation storage strategy.

[0140] In this embodiment, the selection of the above animation storage strategy is not specifically limited and can be determined according to actual business usage requirements. For example, any one of local database storage, cloud server storage, disk storage, blockchain storage, etc. can be used. Among them, blockchain storage is preferably used as the above animation storage strategy. By using blockchain to store and manage animations, the security and immutability of animations can be effectively guaranteed.

[0141] Generate identification information corresponding to the transition animation.

[0142] In this embodiment, the identification information may include: switching from an original role to a target role.

[0143] The transition animation and the identification information are stored based on the animation storage strategy.

[0144] In this embodiment, a corresponding relationship between the transition animation and the identification information may be established, and then according to the corresponding relationship, the transition animation and the identification information may be stored using the animation storage strategy.

[0145] The present application obtains a preset animation storage strategy; then generates identification information corresponding to the transition animation; and subsequently stores and processes the transition animation and the identification information based on the animation storage strategy. After generating the corresponding transition animation based on the target character, the present application will also automatically generate identification information corresponding to the transition animation, and then intelligently store and process the transition animation and the identification information based on the use of the animation storage strategy, thereby ensuring the storage security of the transition animation. Moreover, the transition animation can be directly called to perform the corresponding role switching processing, thereby eliminating the need to regenerate the transition animation, thereby reducing the processing workload of the role switching processing and improving the processing efficiency and processing intelligence of the role switching processing.

[0146] In some optional implementations, the user information obtained is subject to the user's consent and complies with relevant laws and policies.

[0147] In addition, the non-Company software tools or components that appear in the embodiments of the present application are merely examples and do not represent actual use.

[0148] In addition, this application uses sliding operations to quickly switch between characters and backgrounds, which simplifies the user's operation process and improves the user experience. At the same time, the continuity of the chat content is maintained to ensure that the user will not interrupt the conversation during the character switching process. The smooth transition animation effect further enhances the visual experience, making the user feel more natural and smooth during use. These improvements not only improve user satisfaction, but also enhance the competitiveness of intelligent dialogue products.

[0149] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0150] It should be emphasized that in order to further ensure the privacy and security of the above transition animation, the above transition animation can also be stored in a node of a blockchain.

[0151] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0152] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0153] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0154] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0155] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence 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 a part of the steps in the flowchart 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 part of the sub-steps or stages of other steps.

[0156] Further references Figure 3 , as a response to the above Figure 2 In order to realize the method shown in the figure, the present application provides an embodiment of a data processing device, and the device embodiment is Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0157] like Figure 3 As shown, the data processing device 300 described in this embodiment includes: a judgment module 301, a first acquisition module 302, a second acquisition module 303, a first generation module 304, a first display module 305 and a second display module 306. Among them:

[0158] The judgment module 301 is used to judge whether a role switching instruction triggered by the user in the call interface is received;

[0159] A first acquisition module 302 is used to acquire a target character corresponding to the character switching instruction from a preset virtual character library;

[0160] The second acquisition module 303 is used to acquire a target style background corresponding to the target character;

[0161] A first generating module 304, configured to generate a corresponding transition animation based on the target character;

[0162] A first display module 305, used to display the transition animation on the call interface;

[0163] The second display module 306 is used to display the target character and the target style background on the call interface after the transition animation ends.

[0164] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the data processing method in the aforementioned implementation mode, and are not described in detail here.

[0165] In some optional implementations of this embodiment, the determination module 301 includes:

[0166] A first determination submodule, used to determine whether a sliding operation triggered by the user in the call interface is detected;

[0167] A first acquisition submodule, configured to acquire a sliding distance corresponding to the sliding operation;

[0168] A second judgment submodule is used to judge whether the sliding distance is greater than a preset distance threshold;

[0169] The determination submodule is used to determine if the role switching instruction triggered by the user in the call interface is received, otherwise determine if the role switching instruction triggered by the user in the call interface is not received.

[0170] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the data processing method in the aforementioned implementation mode, and are not described in detail here.

[0171] In some optional implementations of this embodiment, the first acquisition module 302 includes:

[0172] A second acquisition submodule is used to acquire designated selection information corresponding to the role switching instruction;

[0173] A first calling submodule, used for calling the virtual character library;

[0174] A screening submodule, used for screening out a designated role corresponding to the designated selection information from the virtual role library;

[0175] The first determination submodule is used to take the designated role as the target role.

[0176] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the data processing method in the aforementioned implementation mode, and are not described in detail here.

[0177] In some optional implementations of this embodiment, the second acquisition module 303 includes:

[0178] A third acquisition submodule is used to acquire the role name of the target role;

[0179] The second calling submodule is used to call the preset style background library;

[0180] A query submodule, used for querying the style background library based on the character name to obtain a specified style background matching the character name;

[0181] The second determining submodule is configured to use the designated style background as the target style background.

[0182] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the data processing method in the aforementioned implementation mode, and are not described in detail here.

[0183] In some optional implementations of this embodiment, the first generating module 304 includes:

[0184] A fourth acquisition submodule is used to acquire the first role information of the target role and acquire the second role information of the original role;

[0185] The fifth acquisition submodule is used to acquire preset animation types and animation parameters;

[0186] A generating submodule, configured to generate a specified animation corresponding to the animation type based on the first character information, the second character information and the animation parameters;

[0187] The third determining submodule is used to use the specified animation as the transition animation.

[0188] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the data processing method in the aforementioned implementation mode, and are not described in detail here.

[0189] In some optional implementations of this embodiment, the data processing device further includes:

[0190] A third acquisition module is used to acquire original conversation information corresponding to the user;

[0191] A determination module, used to determine a target dialog box corresponding to the target role in the call interface;

[0192] The third display module is used to display the original dialog information in the target dialog box.

[0193] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the data processing method in the aforementioned implementation mode, and are not described in detail here.

[0194] In some optional implementations of this embodiment, the data processing device further includes:

[0195] The fourth acquisition module is used to acquire a preset animation storage strategy;

[0196] A generating module, used to generate identification information corresponding to the transition animation;

[0197] A storage module is used to store and process the transition animation and the identification information based on the animation storage strategy.

[0198] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the data processing method in the aforementioned implementation mode, and are not described in detail here.

[0199] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.

[0200] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0201] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0202] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of data processing methods, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.

[0203] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the computer-readable instructions stored in the memory 41 or process data, such as computer-readable instructions for running the data processing method.

[0204] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.

[0205] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0206] In the embodiment of the present application, the present application first determines whether a role switching instruction triggered by a user in a call interface is received; if so, the target role corresponding to the role switching instruction is obtained from a preset virtual role library; then the target style background corresponding to the target role is obtained; then a corresponding transition animation is generated based on the target role; the transition animation is subsequently displayed on the call interface; finally, after the transition animation ends, the target role and the target style background are displayed on the call interface. After receiving the role switching instruction triggered by the user in the call interface, the present application will intelligently obtain the target role corresponding to the role switching instruction from the preset virtual role library, and obtain the target style background corresponding to the target role, and then generate the corresponding transition animation based on the target role, and then display the transition animation on the call interface, and after the transition animation ends, the target role and the target style background are displayed on the call interface, so that the role switching that meets the user's role switching needs can be automatically and intelligently completed. The whole process simplifies the user's operation process, and the user can easily switch between different virtual characters and obtain a seamless conversation experience, improve the user experience, and ensure the smoothness of the visual experience.

[0207] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the data processing method as described above.

[0208] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0209] In the embodiment of the present application, the present application first determines whether a role switching instruction triggered by a user in a call interface is received; if so, the target role corresponding to the role switching instruction is obtained from a preset virtual role library; then the target style background corresponding to the target role is obtained; then a corresponding transition animation is generated based on the target role; the transition animation is subsequently displayed on the call interface; finally, after the transition animation ends, the target role and the target style background are displayed on the call interface. After receiving the role switching instruction triggered by the user in the call interface, the present application will intelligently obtain the target role corresponding to the role switching instruction from the preset virtual role library, and obtain the target style background corresponding to the target role, and then generate the corresponding transition animation based on the target role, and then display the transition animation on the call interface, and after the transition animation ends, the target role and the target style background are displayed on the call interface, so that the role switching that meets the user's role switching needs can be automatically and intelligently completed. The whole process simplifies the user's operation process, and the user can easily switch between different virtual characters and obtain a seamless conversation experience, improve the user experience, and ensure the smoothness of the visual experience.

[0210] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0211] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A data processing method, characterized in that: The steps include: Determine whether a role switching instruction triggered by the user in the call interface is received; If so, obtaining a target character corresponding to the character switching instruction from a preset virtual character library; Acquire a target style background corresponding to the target character; Generate a corresponding transition animation based on the target character; Displaying the transition animation on the call interface; After the transition animation ends, the target character and the target style background are displayed on the call interface.

2. The data processing method according to claim 1, characterized in that: The step of determining whether a role switching instruction triggered by a user in a call interface is received specifically includes: Determining whether a sliding operation triggered by the user in the call interface is detected; If so, obtaining a sliding distance corresponding to the sliding operation; Determining whether the sliding distance is greater than a preset distance threshold; If so, it is determined that the role switching instruction triggered by the user in the call interface is received, otherwise it is determined that the role switching instruction triggered by the user in the call interface is not received.

3. The data processing method according to claim 1, characterized in that: The step of acquiring the target character corresponding to the character switching instruction from the preset virtual character library specifically includes: Acquire designated selection information corresponding to the role switching instruction; Calling the virtual character library; Filtering out a designated role corresponding to the designated selection information from the virtual role library; The designated role is used as the target role.

4. The data processing method according to claim 1, characterized in that: The step of obtaining the target style background corresponding to the target character specifically includes: Get the role name of the target role; Call the preset style background library; Performing query processing on the style background library based on the character name to obtain a specified style background matching the character name; The designated style background is used as the target style background.

5. The data processing method according to claim 1, characterized in that: The step of generating a corresponding transition animation based on the target character specifically includes: Acquire the first role information of the target role, and acquire the second role information of the original role; Get the preset animation type and animation parameters; Based on the first character information, the second character information and the animation parameters, generating a specified animation corresponding to the animation type; The specified animation is used as the transition animation.

6. The data processing method according to claim 1, characterized in that: After the step of displaying the target character and the target style background on the call interface after the transition animation ends, the method further includes: Obtaining original conversation information corresponding to the user; Determining a target dialog box corresponding to the target role in the call interface; The original dialog information is displayed in the target dialog box.

7. The data processing method according to claim 1, characterized in that: After the step of displaying the transition animation on the call interface, the method further includes: Get the preset animation storage strategy; Generate identification information corresponding to the transition animation; The transition animation and the identification information are stored based on the animation storage strategy.

8. A data processing device, characterized in that: include: A judgment module, used to judge whether a role switching instruction triggered by a user in a call interface is received; A first acquisition module, configured to acquire a target character corresponding to the character switching instruction from a preset virtual character library; A second acquisition module is used to acquire a target style background corresponding to the target character; A first generating module, used for generating a corresponding transition animation based on the target character; A first display module, used for displaying the transition animation on the call interface; The second display module is used to display the target character and the target style background on the call interface after the transition animation ends.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the data processing method according to any one of claims 1 to 7 when executing the computer-readable instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the data processing method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Interaction method and device and electronic equipment

    CN120821396A