Resource processing method, device, terminal equipment and storage medium

By displaying virtual resource gift link messages in the social interface and obtaining user customized information, the terminal device displays matching target virtual resources, solving the problem of lack of fun in virtual gift gifts and improving the user experience and display flexibility of terminal devices.

CN113569167BActive Publication Date: 2025-08-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110152327.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-03
Publication Date
2025-08-26
Estimated Expiration
2041-02-03

AI Technical Summary

Technical Problem

The way of giving virtual gifts in the existing social interfaces is not interesting, and the user is not related to virtual gifts.

Method used

By displaying virtual resource gift link message in the social interface, users can enter resource customization information through the link message, and the terminal device displays matching target virtual resources based on the user's customized information, enhancing the correlation between the user and the virtual resources.

Benefits of technology

It improves the flexibility and interactivity of virtual resources, makes the received virtual resources meet user preferences, and enhances the correlation between users and virtual resources and the display flexibility of terminal devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113569167B_ABST
    Figure CN113569167B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention discloses a resource processing method, apparatus, terminal device, and storage medium, wherein the method includes: displaying a social interface, wherein the social interface includes a link message in which a first user donates a virtual resource to a second user; when the second user selects the link message, displaying a resource customization window; obtaining resource customization information of the second user from the resource customization window, and displaying a target virtual resource matching the resource customization information, thereby increasing the flexibility of donating virtual resources based on the social interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a resource processing method, apparatus, terminal device, and storage medium. Background Art

[0002] With the continuous development of internet technology, an increasing number of social applications have emerged to make users' lives and work more convenient. To enhance the emotional connection between users during interactions within social applications and to make communication more engaging and interactive, social interfaces generally offer virtual gifting components, allowing users to send virtual gifts to other users. Currently, virtual gifts are given based on pre-designed virtual gifts displayed within social interfaces. However, this lacks in fun. Therefore, how to make virtual gift giving within social interfaces more engaging and enhance the connection between users and virtual gifts has become a current research hotspot. Summary of the Invention

[0003] Embodiments of the present invention provide a resource processing method, apparatus, terminal device, and storage medium, which can increase the flexibility of donating virtual resources based on a social interface.

[0004] In one aspect, an embodiment of the present invention provides a resource processing method, comprising:

[0005] Displaying a social interface, wherein the social interface includes a link message in which the first user donates a virtual resource to the second user;

[0006] When the second user selects the link message, displaying a resource customization window;

[0007] The resource customization information of the second user is acquired from the resource customization window, and the target virtual resource matching the resource customization information is displayed.

[0008] In another aspect, an embodiment of the present invention provides a resource processing device, comprising:

[0009] A display unit, configured to display a social interface, wherein the social interface includes a link message in which a first user donates a virtual resource to a second user;

[0010] The display unit is further configured to display a resource customization window when the second user selects the link message;

[0011] an acquiring unit, configured to acquire resource customization information of the second user from the resource customization window;

[0012] The display unit is further configured to display the target virtual resource matching the resource customization information.

[0013] In another aspect, an embodiment of the present invention provides a terminal device, comprising a processor, an input device, an output device, and a memory, wherein the processor, input device, output device, and memory are interconnected, wherein the memory is used to store a computer program that supports the terminal device to execute the above method, wherein the computer program includes program instructions, and the processor is configured to call the program instructions and perform the following steps:

[0014] Displaying a social interface, wherein the social interface includes a link message in which the first user donates a virtual resource to the second user;

[0015] When the second user selects the link message, displaying a resource customization window;

[0016] The resource customization information of the second user is acquired from the resource customization window, and the target virtual resource matching the resource customization information is displayed.

[0017] On the other hand, an embodiment of the present invention provides a computer-readable storage medium, in which program instructions are stored. When the program instructions are executed by a processor, the program instructions are used to execute the resource processing method described in the first aspect.

[0018] In an embodiment of the present invention, when a first user gives a virtual resource to a second user, the first user may send a link message of giving the virtual resource to a social interface including the first user and the second user. Then, the terminal device of the second user may customize the virtual resource based on the link message displayed on the social interface. After the second user selects the link message displayed on the social interface, the terminal device may display a resource customization window, thereby further obtaining the resource customization information of the second user from the resource customization window. Then, the terminal device may display the target virtual resource that matches the obtained resource customization information. Customizing the target virtual resource based on the obtained resource customization information of the second user may enable the target virtual resource received by the second user to change according to the preferences of the second user, thereby enhancing the sense of customization of the received virtual resource and the correlation between the second user and the target virtual resource, and also enhancing the flexibility of the terminal device in displaying the target virtual resource. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1 is a schematic diagram of a social interface provided by an embodiment of the present invention;

[0021] Figure 2 is a schematic flow chart of a resource processing method provided by an embodiment of the present invention;

[0022] Figure 3a is a schematic diagram of displaying a link message provided by an embodiment of the present invention;

[0023] Figure 3b is a schematic diagram of a display resource customization window provided by an embodiment of the present invention;

[0024] Figure 3c is a schematic diagram of a display resource customization window provided by an embodiment of the present invention;

[0025] Figure 3d is a schematic diagram of a display resource customization window provided by an embodiment of the present invention;

[0026] Figure 3e is a schematic diagram showing a target virtual resource provided by an embodiment of the present invention;

[0027] Figure 3f is a schematic diagram showing a target virtual resource provided by an embodiment of the present invention;

[0028] Figure 4 is a schematic flow chart of a resource processing method provided by an embodiment of the present invention;

[0029] Figure 5a is a schematic diagram of determining a user type of a second user provided by an embodiment of the present invention;

[0030] Figure 5b is a schematic diagram of a display preview interface provided by an embodiment of the present invention;

[0031] Figure 5c This is a schematic diagram of a fusion display of a three-dimensional simulation image and a scene image of a target virtual resource provided by an embodiment of the present invention;

[0032] Figure 5d This is a schematic diagram of a fusion display of a three-dimensional simulation image and a scene image of a target virtual resource provided by an embodiment of the present invention;

[0033] Figure 5e is a schematic diagram of a three-dimensional simulation image displaying a target virtual resource provided by an embodiment of the present invention;

[0034] Figure 5f This is a schematic diagram of generating and sharing feedback information provided by an embodiment of the present invention;

[0035] Figure 5gThis is a schematic diagram of displaying feedback information on a social interface provided by an embodiment of the present invention;

[0036] Figure 5h is a schematic diagram of a display preview interface provided by an embodiment of the present invention;

[0037] Figure 6a is a schematic diagram of a framed gesture image provided by an embodiment of the present invention;

[0038] Figure 6b is a schematic diagram of a model provided by an embodiment of the present invention;

[0039] Figure 6c is a schematic diagram of redisplaying a target virtual resource provided by an embodiment of the present invention;

[0040] Figure 6d is a schematic diagram of redisplaying a target virtual resource provided by an embodiment of the present invention;

[0041] Figure 6e This is a schematic diagram of a first user donating a target virtual resource to a second user, provided by an embodiment of the present invention;

[0042] Figure 7 is a schematic block diagram of a resource processing device provided by an embodiment of the present invention;

[0043] Figure 8 This is a schematic block diagram of a terminal device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0044] An embodiment of the present invention proposes a resource processing method, so that when a first user (i.e., a donor of virtual resources) donates virtual resources to a second user (i.e., a recipient of virtual resources), the first user no longer specifies a specific virtual resource for donation. Instead, a link message of the virtual resource is sent to the second user. Based on the link message, the second user can input resource customization information through the link message, and then the terminal device can display the target virtual resource that matches the resource customization information according to the resource customization information of the second user, so that the terminal device can customize the resource based on the virtual resource needs of the second user. It can be understood that the donor of the virtual resource (such as the first user mentioned above) sends a link message to the recipient (such as the second user mentioned above), so that the terminal device can collect the resource customization information of the recipient of the virtual resource through the link message, and thus can display the target virtual resource that matches the resource customization information. Since the resource customization information reflects the virtual resource that the recipient of the virtual resource expects to receive, such as the appearance, shape or color of the virtual resource expected to be received, it can be understood that since the displayed target virtual resource matches the resource customization of the recipient of the virtual resource, there is a certain degree of correlation between the displayed target virtual resource and the recipient, that is, the target virtual resource displayed by the terminal device can meet the customization requirements of the receiving user for receiving the virtual resource, thereby improving the user's flexibility in receiving virtual resources. In a specific implementation, when the first user gives a virtual resource to the second user, the first user can send a resource link of the gifted virtual resource to the terminal device corresponding to the second user through the corresponding terminal device, wherein when the first user sends the resource link to the terminal device of the second user through the terminal device, the first user can send the resource link to the social interface including the first user and the second user through the terminal device to send the connected resource to the second user.

[0045] In one embodiment, the first user and the second user can respectively use corresponding login accounts to log in to the same social application on different terminal devices. For example, the first user can use account 1 to log in to the target social application of terminal device 1, and the second user can use account 2 to log in to the target application of terminal device 2. After the first user and the second user log in to the same application, the social interface of the logged-in application can be displayed on the terminal device of the first user and the terminal device of the second user, respectively. It can be understood that the social interface displayed on the terminal device of the first user and the terminal device of the second user, respectively, includes the first user and the second user, that is, the first user and the second user can both query and access the social interface through the corresponding terminal devices. Among them, the social interface is used to display social messages of users included in the social interface. The social messages can be, for example, text messages, picture messages, video messages, link messages or text messages, etc. Then, when the first user sends a link message of giving away virtual resources to the second user through the social interface, the link message can be displayed in the social interface displayed on the terminal device of the first user and the social interface displayed on the terminal device of the second user, respectively. In the embodiment of the present invention, the social interface displayed on the terminal device of the recipient user of the virtual resources (i.e., the second user) is mainly used as an example for detailed explanation, and the terminal devices described in the embodiments of the present invention, unless specifically emphasized, refer to the terminal devices corresponding to the recipient users of the virtual resources.

[0046] The social interface displayed in the terminal device may be a conversation interface, which may be as follows: Figure 1 In the interface shown in the middle left figure, the link message displayed in the conversation interface can be as follows Figure 1 In the conversation message marked by 10, in addition, the social interface displayed in the terminal interface can also be a content sharing interface, and the content sharing interface can also be as follows Figure 1 In the interface shown in the middle right figure, the content sharing platform can be, for example, an information publishing platform such as a friend circle or QQ space, and the link message displayed in the content sharing interface is as follows: Figure 1 The social information marked by 11 in the embodiment of the present invention is mainly based on the social interface displayed in the terminal device. Figure 1 The conversation interface shown in the left figure is used as an example for detailed description. In this social interface, Figure 1 For the content sharing interface shown in the middle right figure, please refer to the embodiment of the present invention.

[0047] After the terminal device displays the social interface, the second user can customize the virtual resource through the link message. Specifically, the terminal device can first display a resource customization window when the second user selects the link message. When displaying the resource customization window, the terminal device can directly display one or more virtual resources as virtual resources to be selected to the second user, so that the second user can select the target virtual resource from the one or more displayed virtual resources; or, when displaying the resource customization window, the terminal device can also display an information receiving area in the resource customization window, and the second user can input the relevant information of the required virtual resource (such as the color, graphic or type of the required virtual resource) into the information receiving area. Correspondingly, the terminal device can obtain the relevant information of the virtual resources required by the second user from the information receiving area, and generate the target virtual resources based on the relevant information to display to the second user. Similarly, the terminal device can also adopt other methods to obtain the relevant information of the virtual resources required by the second user from the resource customization window, and display the virtual resources required by the second user (i.e., the target virtual resources). This allows the terminal device to customize the virtual resources based on the virtual resource needs of the second user, thereby improving the interactivity between the user and the terminal device (or social interface), and at the same time enables the terminal device to realize customized display of virtual resources based on user needs, thereby improving the flexibility of the terminal device in displaying virtual resources.

[0048] See Figure 2 , is a schematic flow chart of a resource processing method provided by an embodiment of the present invention, the resource processing method can be executed by a terminal device corresponding to a user receiving virtual resources, specifically, Figure 2 As shown, the method may include:

[0049] S201 , displaying a social interface, where the social interface includes a link message in which a first user donates a virtual resource to a second user.

[0050] When a first user sends a virtual resource to a second user, the first user can send a link message of the gifted virtual resource to the second user through the corresponding terminal device. Specifically, the first user can send the link message of the gifted virtual resource to the second user through a social interface including the first user and the second user, wherein the social interface displayed in the terminal device of the first user includes a resource display component. When the resource display component is selected, the terminal device of the first user can display one or more gift identifications of the virtual resources to be selected, wherein the gift identification of the virtual resources displayed in the terminal device of the first user is not associated with a specific virtual resource. That is, when the gift identification of a virtual resource in the terminal device of the first user is selected, a specific virtual resource will not be directly sent to be displayed in the social interface including the first user and the second user, but a link message will be sent to the social interface. In one embodiment, the social interface displayed in the terminal device of the first user can be as follows Figure 3a In the interface marked by 301, the resource display component in the social interface can be as follows Figure 3a In the component marked by 30, after the first user selects the resource display component through the first user's terminal device, the interface for displaying the gift identification of one or more virtual resources to be selected in the first user's terminal device can be as follows Figure 3a As shown in the interface marked by 302, the gift identification of the virtual resource to be selected displayed in the interface can be as follows Figure 3a If the first user selects any of the symbols 30 in the figure and chooses to give a Christmas-related virtual resource to the second user, then the social interface of the link message of the first user giving the virtual resource to the second user displayed on the terminal device of the first user may be as follows: Figure 3a The interface marked by 303.

[0051] After the first user gives the virtual resource to the second user, the first user will send a link message in the conversation interface including the first user and the second user. It can be understood that based on the link message displayed in the conversation message, the terminal device of the first user and the terminal device of the second user will both display the link message in the social interface after displaying the social interface. The interface for displaying the link message in the conversation interface of the terminal device of the first user can be as follows: Figure 3a As shown in the interface marked by 303, the interface for displaying the link message in the conversation interface of the second user's terminal device may be as follows: Figure 1In one embodiment, after the link message is displayed in the social interface displayed on the second user's terminal device, the second user can customize the received virtual resource through the link message displayed in the social interface. In a specific implementation, when the second user's terminal device receives the second user's selection operation on the link message displayed in the social interface, it can display a resource customization window, that is, it switches to executing step S202.

[0052] S202: When the second user selects the link message, a resource customization window is displayed.

[0053] When the second user selects the link message displayed on the social interface in which the first user gives a virtual resource to the second user, a resource customization window may be displayed on the terminal device. Based on the displayed resource customization window, the terminal device of the second user may obtain the resource customization information of the second user from the resource customization window, so that the target virtual resource matching the resource customization information may be displayed. The resource customization window displayed on the terminal device may include an information receiving area, and the second user may input relevant information in the information receiving area. The terminal device may then use the second user's input information obtained from the information receiving area as resource customization information. In one embodiment, based on the second user's selection of the link message displayed on the social interface, the resource customization window including the information receiving area displayed by the terminal device may be as follows: Figure 3b wherein the information receiving area displayed in the resource customization window may be as follows Figure 3b In the text information receiving box in the window marked by 32, based on the displayed text information receiving box, the second user can type the resource customization information of the second user through the keyboard; or, the information receiving area displayed in the resource customization window can also include a voice input component, so that the second user can input the resource customization information through voice. In another embodiment, the resource customization window displayed in the terminal device can also include one or more virtual resources to be selected, and the resource customization window displaying one or more virtual resources to be selected can be as follows Figure 3c As shown in the window marked by 33, the second user can select one or more virtual resources from the virtual resources to be selected displayed in the resource customization window. Then, based on the second user's selection of the virtual resources displayed in the resource customization window, the terminal device can obtain the second user's resource customization information on the virtual resources.

[0054] In one embodiment, the resource customization window of the virtual resource displayed by the terminal device may further include one or more preference query information, wherein the preference query information may be information related to the virtual resource that the second user prefers, such as asking the second user for the preferred (favorite) color or shape, etc., wherein the resource customization window displaying the preference query information may be as follows: Figure 3d In the window marked by 34, based on the preference query information displayed in the resource customization window, the second terminal device can obtain the second user's answer to the preference query information from the resource customization window and use the obtained answer information as the resource customization information obtained for the second user. When the terminal device determines that the second user has selected the link message displayed in the social interface and displays the resource customization window, the terminal device can display the target virtual resource that matches the resource customization information based on the second user's resource customization information obtained from the resource customization window, i.e., proceed to step S203, thereby customizing the virtual resource sent to the second user based on the user needs of the second user.

[0055] S203: Acquire resource customization information of the second user from the resource customization window, and display target virtual resources matching the resource customization information.

[0056] The resource customization information of the second user obtained by the terminal device from the resource customization window may be the answer information of the second user to the preference inquiry information in the resource customization window as described above, or the resource customization information may be the input information of the second user obtained from the information receiving area of ​​the resource customization window, or the resource customization information may be a selection operation of one or more virtual resources to be selected in the resource customization window, etc. In one embodiment, when the terminal device displays the target virtual resource that matches the resource customization information according to the resource customization information of the second user obtained from the resource customization window, the terminal device may directly display a two-dimensional (2D) image of the target virtual resource on the social interface. If the resource customization window displayed on the social interface is as shown in FIG. Figure 3d In the window marked by 34, the preference inquiry information is displayed. If the terminal device determines that the answer information of the preference inquiry information is green based on the selection of the second user, as shown in FIG. Figure 3e As shown, the terminal device can display a two-dimensional image of the target virtual resource in green in the social interface, wherein the social interface displaying the two-dimensional image of the target virtual resource can be as follows Figure 3e In the interface marked by 304, the two-dimensional image of the target virtual resource is as follows Figure 3e The two-dimensional image marked by 35.

[0057] In one embodiment, after determining the target virtual resource that matches the resource customization information, the terminal device can also display a three-dimensional (3D) image of the target virtual resource. When the terminal device displays the three-dimensional image of the target virtual resource, the feature acquisition component of the terminal device, such as a camera component, can be enabled. Furthermore, after enabling the feature acquisition component, the terminal device can display a preview interface. The preview interface uses augmented reality (AR) technology, that is, through the position and angle calculation of the feature acquisition component and the addition of image analysis technology, the virtual world on the screen of the terminal device can be combined and interacted with the real world scene. When the terminal device displays the three-dimensional image of the target virtual resource that matches the resource customization information, the terminal device can combine the three-dimensional image of the target virtual resource with the scene object of the real scene image displayed in the preview interface. The scene object in the real scene can be an image of an object that specifically appears in the real scene, such as a table, a hand, or a computer. Then, the terminal device can fuse the three-dimensional image of the target virtual resource with the three-dimensional image of any one or more scene objects in the real scene for display. If the terminal device determines that the three-dimensional image of the target virtual resource that the terminal device needs to display is a three-dimensional image of the target virtual resource that is green in color based on the resource customization information of the second user obtained from the resource customization window, then the preview interface displaying the three-dimensional image of the target virtual resource that is green in color can be as follows Figure 3f As shown in the preview interface marked by 305, the three-dimensional image of the target virtual resource displayed in the preview interface can be as follows Figure 3f The three-dimensional image marked by 36.

[0058] In an embodiment of the present invention, when a first user gives a virtual resource to a second user, the first user may send a link message of giving the virtual resource to a social interface including the first user and the second user. Then, the terminal device of the second user may customize the virtual resource based on the link message displayed on the social interface. After the second user selects the link message displayed on the social interface, the terminal device may display a resource customization window, thereby further obtaining the resource customization information of the second user from the resource customization window. Then, the terminal device may display the target virtual resource that matches the obtained resource customization information. Customizing the target virtual resource based on the obtained resource customization information of the second user may enable the target virtual resource received by the second user to change according to the preferences of the second user, thereby enhancing the sense of customization of the received virtual resource and the correlation between the second user and the target virtual resource, and also enhancing the flexibility of the terminal device in displaying the target virtual resource.

[0059] See Figure 4, is a schematic flow chart of a resource processing method proposed in an embodiment of the present invention. The resource processing method can also be executed by a terminal device corresponding to a user receiving virtual resources, such as Figure 4 As shown, the method may include:

[0060] S401 , displaying a social interface, where the social interface includes a link message in which a first user donates a virtual resource to a second user.

[0061] In one embodiment, the specific implementation of step S401 can refer to the specific implementation of step S201 in the above embodiment, which will not be repeated here.

[0062] S402: When the second user selects the link message, a resource customization window is displayed.

[0063] When the second user selects the link message displayed on the social interface, the terminal device may display a resource customization window, which may include an information receiving area. The resource customization window displaying the information receiving area may be as follows: Figure 3b In the window marked by 32, it can be understood that the terminal device can obtain the input information of the second user from the displayed information receiving area, and use the obtained input information of the second user as the resource customization information of the second user. Further, the terminal device can display the target virtual resource that matches the input information. Among them, the information input area displayed in the resource customization window can be a text input area. Correspondingly, the second user can input text information through the text input area. The input information of the second user obtained by the terminal device is text information, and the text information is used as the resource customization information of the second user. In addition, if the information input area displayed in the resource customization window includes an audio component, the second user can input audio information through the audio component, so that the terminal device can use the obtained audio information as the resource customization information; or, the information input area displayed in the resource customization window can also call the feature acquisition component to obtain image information, then the terminal device can use the image information obtained by calling the feature acquisition device as the resource customization information of the second user.

[0064] In one embodiment, the resource customization window may also include one or more virtual resources to be selected. The resource customization window displayed by the terminal device including one or more virtual resources to be selected may be as follows: Figure 3cIn the window marked by 33, the second user can select the target virtual resource from the resource customization window that displays one or more virtual resources to be selected. Correspondingly, the terminal device can regard the detected selection trigger operation for the target virtual resource as the resource customization information obtained by the second user, and further display the target virtual resource selected by the second user. In another embodiment, the resource customization window may also include one or more preference query information, wherein the resource customization window that displays one or more preference query information can be, for example, as shown in FIG. Figure 3d , it can be understood that the terminal device can obtain the answer information of each preference query information and use the obtained answer information of each preference information as the resource customization information of the second user. Then, when the terminal device displays the target virtual resource that matches the resource customization information, it displays the target virtual resource that matches the answer information of each preference query information. The preference query information displayed in the resource customization window can be abstract query information, such as a psychological test question for the second user. Alternatively, the preference query information displayed in the resource customization window can be concrete query information, which is used to determine the resource attributes of the virtual resource that the second user specifically likes, such as the color, shape, type, etc. of the virtual resource that the second user likes.

[0065] In one embodiment, if the preference query information about the second user displayed in the resource customization window is abstract query information, the terminal device may determine the user type of the second user based on the second user's answer to the abstract query information. Furthermore, since each user type is associated with a type of virtual resource, after determining the second user's user type, the terminal device may obtain virtual resources of a target type associated with the second user's user type and display the virtual resources of the target type. The abstract query information displayed by the terminal device may include one or more of the following:

[0066] ①If you could live in seclusion in the future, where would you choose?

[0067] A. Near the lake; B. Near the river; C. Deep in the mountains; D. In the forest.

[0068] ②Which dish do you eat first when eating Western food?

[0069] A. Bread; B. Meat; C. Salad; D. Drinks.

[0070] ③If you want to drink something on New Year’s Day, what do you think is the most suitable combination?

[0071] A. Champagne; B. Milk; C. Wine; D. Whisky.

[0072] ④If you could turn into a corner of the sky, what would you like to be?

[0073] A. Sun; B. Moon; C. Stars; D. Meteor E. Clouds.

[0074] ⑤ Do you think writing the word “love” with a red pen can better represent true love than writing it with a green pen?

[0075] A. Yes; B. No.

[0076] ⑥Choose your favorite fruit from the following!

[0077] A. Grapes; B. Pears; C. Oranges; D. Bananas; E. Cherries; F. Apples; G. Others.

[0078] ⑦If you need to color the following animals, which one would you be more comfortable with?

[0079] A. Lion / blue; B. Cat / purple; C. Elephant / green; D. Fox / colorful.

[0080] ⑧Would you deliberately please your boss or friends for fame, wealth and power?

[0081] A. Yes; B. No.

[0082] ⑨Which do you think is more important, friends or family?

[0083] A. Friends; B. Family.

[0084] ⑩What TV programs do you prefer to watch?

[0085] A. Variety show; B. News program; C. TV series / movies; D. Sports broadcast; E. Science and education program.

[0086] The terminal device may determine the user type of the second user based on the answer information of the acquired abstract query information. When determining the user type of the second user based on the answer information of the acquired abstract query information, the terminal device may adopt the following method: Figure 5aAs shown, the user types are divided into nine types based on the three major sensory centers, wherein the nine types divided by the terminal device are respectively perfect type, giving type, successful type, unique type, knowledge type, loyal type, happy type, authoritative type, and peaceful type. Then, after the terminal device obtains the answer information of the second user based on the abstract query information, the user type of the second user determined by the terminal device can be a combination of one or more of the above nine user types. Furthermore, after determining the user type of the second user, the terminal device can display the target virtual resources that match the user type of the second user, wherein the target virtual resources that match the knowledge-type user are books, the target virtual resources that match the happy-type user are game controllers, the target virtual resources that match the authoritative-type user are crowns, and so on.

[0087] In another embodiment, the preference query information about the second user displayed in the resource customization window may also be concrete query information, wherein the concrete query information is used to determine the resource attributes of the virtual resource preferred (or liked) by the second user. For example, the concrete query information displayed in the resource customization window may be as follows: Figure 3d The resource customization window marked by 34 in the figure may be used to inquire about the color of the virtual resource that the second user likes, or the concrete inquiry information displayed in the resource customization window may be used to inquire about the shape of the virtual resource that the second user likes, or the type of the virtual resource that the second user likes, or the brightness of the virtual resource that the second user likes, etc. When the preference inquiry information displayed in the resource customization window is concrete inquiry information, the terminal device may determine the attribute information of the resource to be displayed based on the answer information of each concrete inquiry information. For example, if the answer information about the concrete inquiry information obtained by the terminal device includes: the favorite color is green, and the favorite shape of the virtual resource is elliptical, then the target virtual resource generated by the terminal device based on the answer information may be a cactus, and the target virtual resource cactus generated by the terminal device may be displayed.

[0088] S403: Acquire resource customization information of the second user from the resource customization window, and display target virtual resources matching the resource customization information.

[0089] The resource customization information of the second user obtained by the terminal device from the resource customization window can be: the input information of the second user obtained from the information receiving area included in the displayed resource customization window, or it can be a selection trigger operation of the target virtual resource from one or more virtual resources to be selected included in the displayed resource customization window, or it can be answer information about the preference inquiry information of the second user included in the displayed resource customization window. Among them, after the terminal device obtains the resource customization information of the second user from the resource customization window, it can store the obtained resource customization information in the link message of the interactive interface. Furthermore, the terminal device can obtain the resource data of the target virtual resource that matches the resource customization information from the resource database based on the resource customization information stored in the link message, such as the rendering data of the target virtual resource, etc. It can be understood that the number of target virtual resources determined by the terminal device based on the resource customization information may be one or more. When the number of target virtual resources determined by the terminal device based on the resource customization information is one, the determined target virtual resource will be rendered and displayed. Alternatively, if the number of target virtual resources determined by the terminal device is multiple, the terminal device can randomly select a target virtual resource from the multiple target virtual resources for rendering and display, or can render and display the determined multiple target virtual resources in sequence.

[0090] In one embodiment, when the terminal device obtains the resource customization information of the second user from the resource customization window and displays the target virtual resource that matches the resource customization information, the terminal device may further refer to the link message including the resource theme of the virtual resource to be donated, that is, when the terminal device displays the target virtual resource, it may display the target virtual resource that not only matches the resource customization information but also satisfies the resource theme. That is, if the link message displayed on the social interface is a link message about giving Christmas gifts, then the terminal device can determine that the resource theme of the virtual resource to be donated is a Christmas theme, and then the terminal device can display the target virtual resource that matches the resource customization information and is a Christmas theme after obtaining the resource customization information of the second user from the resource customization window.

[0091] When the terminal device displays the target virtual resource that matches the resource customization information, it can display a three-dimensional simulated image of the target virtual resource. Specifically, when the terminal device displays the three-dimensional simulated image of the target virtual resource, it needs to first display a preview interface, wherein the preview interface is an interface for displaying a scene image of a real scene, and the displayed scene image includes a three-dimensional image of one or more scene objects. The preview interface displayed by the terminal device can be as follows: Figure 5bAs shown in the interface, the preview interface displays a three-dimensional image of three pens placed on a table in a real scene. In one embodiment, the terminal device can call the feature acquisition component to display the preview interface. It can be understood that the real scene image in the preview interface displayed by the terminal device is the image of the real objects included in the real scene collected by the feature acquisition device. For example, if the real scene includes scene objects such as a table and a telephone, then the real scene image displayed in the preview interface includes a three-dimensional image of the table and a three-dimensional image of the telephone. When the terminal device calls the feature acquisition component to display the preview interface, the feature acquisition component will use the AR function to identify the scene objects included in the real scene and the location of each scene object, and construct a three-dimensional image of each scene object based on the recognition result, and further display the obtained three-dimensional image of each scene object in the preview interface. Among them, the feature acquisition component can be based on deep learning technology to construct a recognition model for identifying scene objects in the real scene. Then, when the terminal device calls the feature acquisition component to display the preview interface of the real scene image, the feature acquisition component can identify the scene objects included in the real scene through the learned recognition model, thereby obtaining the real scene image. In one embodiment, the feature acquisition component can be, for example, a camera component of the terminal device, etc. The model for identifying scene objects constructed by the terminal device based on deep learning can be one, or the terminal device can also construct multiple recognition models based on deep learning, so that the feature acquisition component can use one recognition model to identify one type of scene object.

[0092] Deep learning technology is a type of artificial intelligence (AI) technology. 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 achieve optimal results. The deep learning technology used in this embodiment mainly involves computer vision (CV) technology of this AI. Computer vision is the science of how to make machines "see." Specifically, it refers to machine vision that uses cameras and computers to replace the human eye to identify, track, and measure targets, and further performs image processing to make the computer-processed images more suitable for human observation or transmission to instruments for detection. As a scientific discipline, computer vision studies related theories and technologies, attempting to establish artificial intelligence systems that can obtain information from images or multidimensional data. Computer vision technology generally includes image processing, image recognition, image semantic understanding, image retrieval, optical character recognition (OCR), video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous positioning and mapping, and other technologies. It also includes common biometric recognition technologies such as face recognition and fingerprint recognition.

[0093] After the terminal device displays the preview interface, the three-dimensional simulation image of the target virtual resource and the scene image of the real scene can be fused to display the image fused by the three-dimensional simulation image of the target virtual resource and the scene image in the preview interface. In one embodiment, when the terminal device performs image fusion of the three-dimensional simulation image of the target virtual resource and the scene image, the three-dimensional simulation image of the target virtual resource can be fused with one or more scene images in the preview interface. It can be understood that the scene image displayed in the virtual reality scene is a three-dimensional image. Then, when the three-dimensional simulation image of the target virtual resource and the scene image are fused, the terminal can achieve the effect of fusion display of the target virtual resource and the real scene, thereby presenting the effect of combining the virtual resource with the real world scene in the preview interface. Among them, when the terminal device fuses the three-dimensional simulation image of the target virtual resource with the scene image in the preview interface, in order to further increase the interactivity between the second user and the target virtual resource, the terminal device can, when determining that the characteristic image of the second user is displayed in the preview interface, combine the target virtual resource with the characteristic image of the second user and display it. The characteristic image of the second user can be, for example, a hand characteristic image, a foot characteristic image or a facial characteristic image, etc. Based on the combined display of the target virtual resource and the characteristic image of the second user, the interactivity between the second user and the target virtual resource can be enhanced, thereby enhancing the user experience of the second user when receiving the target virtual resource.

[0094] In a specific implementation, after displaying the preview interface, the terminal device may first display the three-dimensional simulation image of the target virtual resource at the first display position of the preview interface before fusing the three-dimensional simulation image of the target virtual resource with the scene image, wherein the first display position may be any display position of the preview interface. After the terminal device displays the three-dimensional simulation image on the preview interface, it may obtain the second position of the target object in the preview interface when the scene image includes the three-dimensional image of the target object, and when the first position and the second position coincide, trigger the step of fusing the three-dimensional simulation image with the scene image. In one embodiment, the interface after the terminal device displays the three-dimensional simulation image at the first display position of the preview interface may be as follows Figure 5cAs shown in the interface marked by 500, if the target object is the palm of the second user, when the scene image of the terminal device includes a three-dimensional image of the palm image, the three-dimensional simulated image and the three-dimensional image of the scene image can be triggered to merge, that is, the three-dimensional simulated image and the three-dimensional image of the palm image are triggered to merge. In one embodiment, when the three-dimensional simulated image of the target virtual resource is displayed on the preview interface, the three-dimensional simulated image of the target virtual resource can be displayed statically on the preview interface, or the three-dimensional simulated image of the target virtual resource can be displayed dynamically on the preview interface. When the three-dimensional simulated image is dynamically displayed on the preview interface, the display position of the three-dimensional simulated image of the target virtual resource on the preview interface changes randomly.

[0095] In one embodiment, when the scene image includes a three-dimensional image of a palm image, the preview interface may be as follows: Figure 5c As shown in the interface marked by 501, the image after the fusion of the three-dimensional simulation image and the three-dimensional image of the palm image can be as follows: Figure 5c The interface marked by 502 is shown in FIG. After the 3D simulated image of the target virtual resource is displayed in the preview interface, and when the scene image includes the 3D image of the target object, the terminal device may, upon detecting that the target object corresponds to the first display position of the preview interface and the 3D image of the target object corresponds to the second display position of the preview interface, fuse the 3D simulated image with the 3D image of the target object. The first display position of the 3D simulated image in the preview interface refers to the display coordinates of the bottom (or bottom plane) of the 3D simulated image corresponding to the preview interface. In addition, the second display position of the 3D image of the target object in the preview interface refers to the center point of the 3D image of the target object. For example, when the target object is a 3D image of a palm image, the second display position is the center position of the palm, etc. It should be noted that the developer can flexibly set the first display position and the second display position based on the display effect of the target virtual resource. For example, the second display position can be set to the top of the head, thereby achieving the effect of adding the 3D simulated image of the target virtual resource to the top of the 3D image of the user's head image for display. It is understandable that if the terminal device displays the preview interface after the preview interface has displayed the 3D image of the target object, the 3D simulation image of the target virtual resource can be directly displayed on the 3D image of the target object.

[0096] In one embodiment, when the terminal device fuses and displays the three-dimensional simulation image of the target virtual resource and the characteristic image of the second user displayed in the preview interface, the terminal device may not display the three-dimensional simulation image of the target virtual resource in the preview interface in advance, but when the scene image includes the three-dimensional image of the target object (i.e., the target characteristic object of the second user), fuse and display the three-dimensional simulation image and the three-dimensional image of the target object. If the target object is the palm of the second user, then the terminal device may fuse and display the three-dimensional simulation image of the target virtual resource and the palm image when it is determined that the preview interface includes the palm image, that is, after displaying the preview interface, the terminal device fuses and displays the three-dimensional simulation avatar of the target virtual resource and the three-dimensional image of the target object when it is determined that the three-dimensional image of the target object is displayed in the real scene image of the preview interface. Figure 5d As shown, Figure 5d The interface marked by 503 is a preview interface displayed by the terminal device. Since the preview interface does not include the three-dimensional image of the palm, the terminal device will not compare the three-dimensional simulation image of the target virtual resource with the three-dimensional simulation image of the target virtual resource. Figure 5d The scene image in the preview interface marked with 503 is fused and displayed. If the terminal device detects that a three-dimensional image of the palm is displayed in the preview interface, the three-dimensional simulation image of the target virtual resource can be fused into the three-dimensional image of the palm for display. The preview interface that fusedly displays the three-dimensional simulation image of the target virtual resource can be as follows: Figure 5d As shown in the interface marked by 504.

[0097] In one embodiment, the three-dimensional simulation image of the target virtual resource displayed by the terminal device may include only one frame of image. Then the terminal device may Figure 5c (or as Figure 5d) is shown to display a three-dimensional simulated image comprising only one frame of image. Alternatively, the three-dimensional simulated image of the target virtual resource may also include N frames of image, where N is a positive integer greater than 1, that is, the three-dimensional simulated image of the target virtual resource may include at least two frames of image. Then, when the terminal device fuses and displays the three-dimensional simulated image of the target virtual resource with the image of the scene object of the real scene displayed on the preview interface, the terminal device may first display the first N-1 frames of image of the three-dimensional simulated image of the target virtual resource on the preview interface, and play the target animation associated with the first N-1 frames of image while displaying the first N-1 frames of image. After displaying the first N-1 frames of image, the Nth frame of image of the target three-dimensional image is displayed on the preview interface. In one embodiment, when the terminal device displays the first N-1 frames of image of the three-dimensional simulated image of the target virtual resource, the accompanying target animation played may be a swaying animation, a gift box unfolding animation, a progressive animation, etc. In addition, the playback of the first N-1 frames of image may also include audio information associated with the first N-1 frames of image.

[0098] In one embodiment, if the target animation associated with the first N-1 frames of the 3D simulation image of the target virtual resource is an animation of a gift box unfolding, such as Figure 5e As shown, when the terminal device determines the three-dimensional simulation image of the target virtual resource and determines the three-dimensional image of the target feature on the displayed preview interface, it can first display the first N-1 frames of the target virtual resource and play the target animation associated with the first N-1 frames of the image. The process of the terminal device displaying the first N-1 frames of the target virtual resource and playing the target animation can be seen in FIG. Figure 5e As shown in the interfaces marked by 505 and 506, after the terminal device displays the first N-1 frames of images, the Nth frame of the target three-dimensional image displayed may be as follows: Figure 5e As shown in the interface marked by 507.

[0099] In one embodiment, after the terminal device displays the three-dimensional simulated image of the target virtual resource on the preview interface, the terminal device can also collect the two-dimensional image of the target virtual resource and the two-dimensional image of the target object based on the image acquisition component included in the preview interface, and further display the feedback information obtained by fusing the two-dimensional image of the target virtual resource and the two-dimensional image of the target object in the social interface, so that the first user who donated the virtual resource can determine the target virtual resource donated by the first user based on the feedback information displayed on the social interface. Specifically, the image acquisition component displayed in the preview interface can be, for example, Figure 5fThe shooting component marked by 50, when the image acquisition component 50 is triggered, the terminal device can fuse the two-dimensional image of the target object and the two-dimensional image of the target virtual resource to generate feedback information. It can be understood that the two-dimensional image of the target object and the two-dimensional image of the target virtual resource obtained by the terminal device based on the triggering of the image acquisition component 50 by the second user can be a single-frame image, then the feedback information generated by the terminal device is an image.

[0100] After the terminal device generates the feedback information, the feedback information may be displayed on the editing interface. In one embodiment, the terminal device may display the feedback information on the editing interface as follows: Figure 5f As shown in the interface marked by 508, further, after the terminal device displays the feedback information on the editing interface, if it is detected that a sharing operation exists on the editing interface, the feedback information can be shared to the social interface and displayed on the social interface. In one embodiment, the terminal device can determine that a sharing operation exists on the editing interface when the sending component displayed on the editing interface is selected, or the terminal device can also determine that a sharing operation exists on the editing interface when a voice instruction information for sending the feedback information is obtained when displaying the editing interface, so that the feedback information can be shared to the social interface for display. If the feedback information is an image, the social interface after displaying the feedback information can be as follows: Figure 5f In another embodiment, the terminal device may generate a two-dimensional image of the target object based on the triggering of the image acquisition component 50, and the two-dimensional image of the target virtual resource may also be a multi-frame image. Then, the feedback information generated by the terminal device is a video, and the social interface after the feedback image displayed as a video may be as follows: Figure 5g The interface marked by 510.

[0101] In one embodiment, after the terminal device determines the target virtual resource based on the resource customization information of the second user obtained from the resource customization window, it can directly display the target virtual resource that matches the resource customization information as described above. Alternatively, the terminal device can also display prompt information for receiving the target virtual resource in the social interface after determining the target virtual resource, wherein the prompt information is displayed after the target virtual resource that matches the resource customization information is generated and before the target virtual resource is displayed, so that the terminal device can display the target virtual resource that matches the resource customization information when the confirmation mark included in the prompt information is triggered. The social interface on which the terminal device displays the prompt information for receiving the target virtual resource can be as follows: Figure 5h As shown in the interface marked by 511, the prompt information can be as follows Figure 5hThe information displayed in the prompt window marked by 51 is displayed. When the confirmation component in the prompt information is selected and triggered, the terminal device can display the target virtual resource matching the resource customization information, that is, the terminal can Figure 5h As shown, when the confirmation component in the prompt information is triggered, the preview interface obtained by the feature acquisition device is displayed instead, wherein the preview interface can be as follows Figure 5h Alternatively, the terminal device may also display a prompt message in the preview interface indicating that the three-dimensional simulation image of the target virtual resource needs to be fused with the characteristic image, that is, the preview interface may also be as shown in FIG. Figure 5h As shown in the interface marked by 513, the prompt information displayed on the preview interface can be as follows Figure 5h "Please aim at your palm" is displayed in the interface marked by 513.

[0102] When the terminal device displays the preview interface, it can first obtain a two-dimensional image of each scene object from the feature acquisition device, so that the augmented reality algorithm (i.e., AR algorithm) can be used to perform feature enhancement processing on the two-dimensional image of each object to obtain a three-dimensional image of each scene object, and the three-dimensional image of each scene object is displayed, wherein the interface displaying the three-dimensional image of each object is the preview interface. If the terminal device needs to fuse the three-dimensional simulated image of the target virtual resource into the three-dimensional image of the palm of the real scene, then, in order to enable the terminal device to call the feature acquisition device to successfully identify the palm from the real scene and display the three-dimensional image of the palm, the terminal device can pre-train a 3D skeleton point determination algorithm for the palm and gesture to realize the recognition of the palm and gesture in the real scene. Among them, the algorithm includes a gesture detection model, a 2D gesture skeleton point positioning model, and a 3D gesture skeleton point positioning model. Among them, when the terminal device trains the gesture detection model, it uses the center network (CenterNet) structure as the initial network structure of the gesture detection model, and uses an optimized lightweight backbone network structure (ghostnet backbone) to replace the original center backbone network structure (CenterNet backbone), thereby significantly reducing the amount of calculation of the terminal device when training the gesture detection model. Based on the trained gesture detection model, the terminal device can output the gesture position in the single color channel image (i.e., RGB image) collected by the feature acquisition device, such as Figure 6a As shown, if the image input to the trained gesture detection model by the terminal device is as follows Figure 6a In the image marked by 601, the trained gesture detection model can output the gesture position as follows: Figure 6aAs shown in the image marked by 602, the gesture in the input image is framed and marked with a box, thereby achieving positioning of the gesture in the image captured by the feature capture image.

[0103] The 2D gesture skeleton point model trained by the terminal device adopts an optimized lightweight network structure (ghostnet) and is combined with an encoder-decoder model structure. The encoding model and the decoding model in the 2D gesture skeleton point model can be connected by a skip layer, thereby increasing the richness of the feature extraction of the image by the 2D gesture skeleton point model. In one embodiment, the 2D gesture skeleton point model is a model for extracting features from the output model of the gesture detection model. If the gesture area framed in the output image of the gesture detection model occupies a small proportion of the output image, the terminal device can first crop the output image, that is, crop the image of the gesture area in the output image as the input of the 2D gesture skeleton point model, which can reduce the resolution of the image input to the 2D gesture skeleton point model, reduce the computational complexity of the 2D gesture skeleton point model, and remove interference from the background image area, thereby improving the accuracy of skeleton point positioning of the gesture image using the 2D gesture skeleton point model. In addition, the 3D gesture skeleton point model is a model that converts a 2D image into a 3D image. The 3D gesture skeleton point model also uses ghostnet as the backbone network. The input of the 3D gesture skeleton point model is the output of the 2D gesture skeleton point model. The output of the 3D gesture skeleton point model is a 21*3-dimensional feature vector. The terminal device uses a 2-layer loss function (L2 loss) as the supervised training model of the 3D gesture skeleton point model. The process of the terminal device using the above model architecture to recognize gestures in real scenes and display the corresponding three-dimensional images can be seen in Figure 6b .

[0104] After the terminal device has a model that converts scene objects in a real scene into corresponding three-dimensional images for display, the terminal device can obtain image information of the three-dimensional image of the target object when performing image fusion on the three-dimensional simulation image of the target virtual resource and the three-dimensional image of the target object. The image information includes one or two of the following: direction information of the target object in the preview interface, and position information of the target object in the preview interface (i.e., the second position of the target object). Furthermore, the terminal device can determine fusion parameters based on the image information, and perform image fusion on the three-dimensional simulation image and the three-dimensional image of the target object according to the fusion parameters, wherein the fusion parameters include one or two of the following: fusion position and fusion display direction; wherein the fusion position is the same as the position information included in the image information, and the fusion display direction is the same as the direction information included in the image information. In one embodiment, if the three-dimensional simulated image of the target virtual resource determined by the terminal device is the three-dimensional image of the cactus mentioned above, then when the terminal device renders and displays the three-dimensional simulated image of the target virtual resource, the 3D engine will load the 3D model and resources of the target virtual resource (i.e., the cactus) according to the model of the target virtual resource, and the gesture detection model will return the coordinates of the palm plane center point identified from each frame of the image and the orientation in real time based on each frame of the image obtained by the terminal device. Furthermore, the 3D engine sets the same orientation information and position information on the converter of the 3D image of the target virtual resource based on the palm center point and orientation, and finally renders the three-dimensional image of the target virtual resource. In addition, the 3D engine also needs to play the animation content of the matching belt in the 3D model frame by frame for each frame, for example, it can play the process of opening a gift and arranging a cactus. Through the characteristics of AR, the terminal device enables the virtual gift (i.e., the target virtual resource) to interact with the user, making it appear more realistic visually. Moreover, when displaying the three-dimensional image of the target virtual resource, the terminal device can adopt an indirect display method, similar to the joy of unpacking a blind box. Until the last moment, the sender and receiver do not know what the gift looks like, which satisfies the user's curiosity and stimulates the user to take pictures and share, thereby improving user stickiness.

[0105] S404: When the display duration of the target virtual resource reaches the target duration, stop displaying the target virtual resource.

[0106] S405: When the link message is triggered again, the target virtual resource is redisplayed in the target session interface.

[0107] In step S404 and step S405, after displaying the target virtual resource, the terminal device may stop displaying the target virtual resource when the display duration of the target virtual resource reaches the target duration, and redisplay the target virtual resource in the target session interface when the link message is triggered again, such as Figure 6cAs shown, if the terminal device displays the target virtual resource interface, it can be as follows Figure 6c In the interface marked by 603, after the three-dimensional simulation image of the target virtual resource is displayed for a preset time, the interface for stopping displaying the target virtual resource can be as follows Figure 6c In the interface marked by 604, after the target virtual resource is stopped from being displayed, if the link message displayed in the social interface is triggered again, the two-dimensional image of the target virtual resource can be displayed in the target conversation interface, such as Figure 6c Alternatively, after the terminal device stops displaying the target virtual resource, if the link message displayed in the social interface is triggered again, the link message may be displayed as shown in FIG. Figure 6d As shown, the feature acquisition component is re-enabled to display the preview interface, and the acquired virtual resources are displayed in the preview interface.

[0108] In one embodiment, if the target virtual resource presented by the first user to the second user is a virtual resource for a Christmas gift, such as Figure 6e As shown, the first user can start the resource donation interface through the functional component of the social interface, and after selecting the virtual resource "Random Christmas Gift" to send, the terminal device of the first user can generate a corresponding link message and send the link message to the second user through the social interface. The terminal device of the second user can display the link message sent by the first user when displaying the social interface. After the second user selects the link message through the terminal device, the resource customization window can be displayed, and then the second user can input resource customization information based on the displayed resource customization window, and then the terminal device of the second user can generate the target virtual resource customized by the second user based on the resource customization information.

[0109] After the terminal device displays the resource customization window, the resource customization information of the second user can be obtained from the resource customization window. If the resource customization information obtained by the terminal device is used to specify the color of the target virtual resource, the terminal device can store the resource customization information specifying the color of the target virtual resource in the link message by encoding. For example, the terminal device can store the RGB color settings of the color specified by the second user in the link message in JavaScript Object Notation (JS) format. When the terminal device needs to display the target virtual resource, it can download the three-dimensional simulation image of the target virtual resource based on the color information stored in the link message and then display it. The three-dimensional simulation image of the target virtual resource displayed by the terminal device can be a multi-frame dynamic image, and the first frame of the multi-frame dynamic image can be a simulation image of a gift box, thereby presenting the second user with a visual effect of opening a gift and enhancing the user experience. It can be understood that the simulation image of the gift box in the first frame displayed by the terminal device also meets the color indicated by the resource customization information of the second user. In one embodiment, after the terminal device obtains the resource customization information from the resource customization window, the terminal device may match multiple virtual resources. For example, if the resource customization information obtained by the terminal device is "green", the further obtained virtual resources related to green may include a green Christmas tree or a green cactus, etc. However, when the terminal device displays the target virtual resource, it may randomly select one to display, or it may use a specific selection algorithm to select and then display it.

[0110] After the terminal device generates a customized target virtual resource, the terminal device can prepare to display the target virtual resource, wherein the terminal device can start the feature acquisition component after the preparation for displaying the target virtual resource is completed, and call the feature acquisition component to perform AR scene recognition, and recognize the target feature (such as a palm), and when the target feature is recognized, the three-dimensional simulation image of the target virtual resource is integrated into the three-dimensional image of the target feature for display, wherein the three-dimensional simulation image of the target virtual resource is determined based on the second user resource customization information obtained from the resource customization window. In the process of the terminal device displaying the three-dimensional simulation image, the display parameters for displaying the three-dimensional simulation image will be determined based on the resource customization information, such as the text displayed, image color, etc., as well as the display of the playback animation associated with the target virtual resource. After the terminal device displays the three-dimensional simulation image of the target virtual resource, the terminal device can generate a captured image and send it to the first user when a shooting trigger operation is detected, so that the first user can view the image of the gifted target virtual resource.

[0111] In an embodiment of the present invention, the social interface displayed by the terminal device includes a link message in which the first user presents a virtual resource to the second user. When the second user selects the link message, a resource customization window can be displayed in the social interface, and then the terminal device can display the target virtual resource that matches the resource customization information obtained in the resource customization window. When the terminal device displays the target virtual resource, the three-dimensional image of the target feature of the second user in the detected real scene can be combined with the three-dimensional simulation image of the target virtual resource to display it, so that the displayed three-dimensional simulation image of the target virtual resource is more realistic. Moreover, based on the user's customization process of the target virtual resource, the displayed target virtual resource can be consistent with the psychological expectation of the second user, thereby improving the second user's satisfaction with the received target virtual resource, which is conducive to improving user stickiness.

[0112] Based on the description of the above resource processing method embodiment, the embodiment of the present invention also proposes a resource processing device, which can be a computer program (including program code) running in the above terminal device. The resource processing device can be used to perform the following steps: Figure 2 and Figure 4 For resource processing methods, see Figure 7 The resource processing device includes: a display unit 701 and an acquisition unit 702.

[0113] A display unit 701 is configured to display a social interface, wherein the social interface includes a link message in which a first user donates a virtual resource to a second user;

[0114] The display unit 701 is further configured to display a resource customization window when the second user selects the link message;

[0115] An acquiring unit 702 is configured to acquire resource customization information of the second user from the resource customization window;

[0116] The display unit 701 is further configured to display the target virtual resource matching the resource customization information.

[0117] In one embodiment, the displayed target virtual resource includes a three-dimensional simulated image of the target virtual resource; the display unit 701 is specifically configured to:

[0118] Displaying a preview interface, wherein the preview interface is used to display a scene image of a real scene, wherein the scene image includes a three-dimensional image of one or more scene objects;

[0119] The three-dimensional simulation image and the scene image are fused, and the fused image of the three-dimensional simulation image and the scene image is displayed in the preview interface.

[0120] In one embodiment, the apparatus further includes: an execution unit 703 .

[0121] The display unit 701 is further configured to display a three-dimensional simulated image of the target virtual resource at a first position of the preview interface;

[0122] The acquiring unit 702 is further configured to, when the scene image includes a three-dimensional image of a target object, acquire a second position of the three-dimensional image of the target object in the preview interface;

[0123] The execution unit 703 is configured to trigger the step of fusing the three-dimensional simulation image with the scene image when the first position and the second position coincide with each other.

[0124] In one embodiment, the preview interface includes an image acquisition component; the display unit 701 is further configured to generate feedback information in response to a triggering operation on the image acquisition component, and display the feedback information on the editing interface; the feedback information is generated based on the two-dimensional image of the target object and the two-dimensional image of the target virtual resource;

[0125] The display unit 701 is further configured to share the feedback information to the social interface and display the feedback information on the social interface if a sharing operation occurs on the editing interface.

[0126] In one embodiment, the three-dimensional simulated image of the target virtual resource includes N frames of images, where N is a positive integer greater than 1; the display unit 701 is specifically configured to:

[0127] Displaying the first N-1 frames of the three-dimensional simulation image of the target virtual resource on the preview interface, and playing a target animation associated with the first N-1 frames of the image during the display of the first N-1 frames of the image;

[0128] After the first N-1 frames of images are displayed, the Nth frame of the target three-dimensional image is displayed on the preview interface.

[0129] In one embodiment, if the resource customization window includes one or more preference query information, the display unit 701 is specifically configured to:

[0130] Obtaining answer information for each preference query information, and displaying a target virtual resource matching each obtained answer information;

[0131] The obtained answer information is the obtained resource customization information of the second user.

[0132] In one embodiment, the preference query information includes abstract query information; the display unit 701 is specifically configured to:

[0133] determining a user type of the second user according to answer information corresponding to each abstract query information, wherein one user type is associated with one type of virtual resource;

[0134] Acquire virtual resources of a target type associated with the user type of the second user, and display the virtual resources of the target type.

[0135] In one embodiment, the preference query information includes concrete query information; the display unit 701 is specifically configured to:

[0136] Determining resource attributes of a virtual resource to be displayed according to answer information of any concrete inquiry information, wherein the resource attributes include any one or more of the following: color, shape, and brightness;

[0137] Displays target virtual resources that match the resource attributes.

[0138] In one embodiment, if the resource customization window includes an information receiving area, the display unit 701 is specifically configured to:

[0139] Acquire the input information of the second user from the information receiving area, and display the target virtual resource matching the input information;

[0140] The input information is the acquired resource customization information of the second user, and the input information includes any one of the following: text information, audio information and image information.

[0141] In one embodiment, if the resource customization window includes one or more virtual resources to be selected, the display unit 701 is specifically configured to:

[0142] In response to a selection trigger operation on a target virtual resource in the resource customization window, displaying the target virtual resource;

[0143] The selection triggering operation for the target virtual resource is the acquired resource customization information of the second user.

[0144] In one embodiment, the link message includes the resource subject of the virtual resource to be donated; the display unit 701 is specifically configured to:

[0145] The target virtual resource that matches the resource customization information and satisfies the resource theme is displayed.

[0146] In one embodiment, the display unit 701 is further configured to display prompt information for receiving the target virtual resource in the social interface, wherein the prompt information is displayed after the target virtual resource matching the resource customization information is generated and before the target virtual resource is displayed;

[0147] The execution unit 703 is further configured to trigger the step of displaying the target virtual resource matching the resource customization information when the confirmation identifier included in the prompt information is triggered.

[0148] In one embodiment, the display unit 701 is further configured to stop displaying the target virtual resource when the display duration of the target virtual resource reaches a target duration;

[0149] The display unit 701 is further configured to redisplay the target virtual resource in the target session interface when the link message is triggered again.

[0150] In one embodiment, the display unit 701 is specifically configured to:

[0151] Acquire image information of the three-dimensional image of the target object, where the image information includes one or both of the following: direction information of the target object on the preview interface, and a second position of the target object on the preview interface;

[0152] Fusion parameters are determined according to the image information, and the three-dimensional simulation image and the three-dimensional image of the target object are fused according to the fusion parameters.

[0153] In one embodiment, the fusion parameters include one or both of the following: fusion position and fusion display direction;

[0154] The fusion position is the second position of the target object on the preview interface, and the fusion display direction is the same as the direction information included in the image information.

[0155] In one embodiment, the display unit 701 is specifically configured to:

[0156] acquiring a two-dimensional image of each scene object from a feature acquisition device;

[0157] An augmented reality algorithm is used to perform feature enhancement processing on the two-dimensional image of each object to obtain a three-dimensional image of each scene object, and the three-dimensional image of each scene object is displayed; the interface displaying the three-dimensional image of each object is a preview interface.

[0158] In an embodiment of the present invention, when a first user gives a virtual resource to a second user, the first user may send a link message of giving the virtual resource to a social interface including the first user and the second user. Then, the display unit 701 may customize the virtual resource based on the link message displayed on the social interface. After the second user selects the link message displayed on the social interface, the display unit 701 may further display a resource customization window, so that the acquisition unit 702 may further obtain the resource customization information of the second user from the resource customization window. Then, the display unit 701 may display the target virtual resource that matches the obtained resource customization information. Customizing the target virtual resource based on the obtained resource customization information of the second user can make the target virtual resource received by the second user change according to the preferences of the second user, thereby enhancing the customization of the received virtual resource and the correlation between the second user and the target virtual resource, and also enhancing the flexibility of the terminal device in displaying the target virtual resource.

[0159] See Figure 8 , is a schematic block diagram of the structure of a terminal device provided by an embodiment of the present invention. Figure 8 The terminal device in this embodiment may include one or more processors 801, one or more input devices 802, one or more output devices 803, and a memory 804. The processors 801, input devices 802, output devices 803, and memory 804 are connected via a bus 805. The memory 804 is used to store computer programs, which include program instructions. The processor 801 is used to execute the program instructions stored in the memory 804.

[0160] The memory 804 may include volatile memory, such as random-access memory (RAM); the memory 804 may also include non-volatile memory, such as flash memory, solid-state drive (SSD), etc.; the memory 804 may also include a combination of the above types of memory.

[0161] Processor 801 may be a central processing unit (CPU). Processor 801 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or the like. The PLD may be a field-programmable gate array (FPGA), a generic array logic (GAL), or the like. Processor 801 may also be a combination of the above structures.

[0162] In the embodiment of the present invention, the memory 804 is used to store a computer program, which includes program instructions. The processor 801 is used to execute the program instructions stored in the memory 804 to implement the above-mentioned Figure 2 and Figure 4 Steps of the corresponding method.

[0163] In one embodiment, the processor 801 is configured to call program instructions for executing:

[0164] Displaying a social interface, wherein the social interface includes a link message in which the first user donates a virtual resource to the second user;

[0165] When the second user selects the link message, displaying a resource customization window;

[0166] The resource customization information of the second user is acquired from the resource customization window, and the target virtual resource matching the resource customization information is displayed.

[0167] In one embodiment, the displayed target virtual resource includes a three-dimensional simulated image of the target virtual resource; the processor 801 is configured to call program instructions to execute:

[0168] Displaying a preview interface, wherein the preview interface is used to display a scene image of a real scene, wherein the scene image includes a three-dimensional image of one or more scene objects;

[0169] The three-dimensional simulation image and the scene image are fused, and the fused image of the three-dimensional simulation image and the scene image is displayed in the preview interface.

[0170] In one embodiment, the processor 801 is configured to call program instructions for executing:

[0171] Displaying a three-dimensional simulation image of the target virtual resource at a first position of the preview interface;

[0172] When the scene image includes a three-dimensional image of a target object, obtaining a second position of the three-dimensional image of the target object in the preview interface;

[0173] When the first position and the second position coincide with each other, the step of fusing the three-dimensional simulation image and the scene image is triggered.

[0174] In one embodiment, the preview interface includes an image acquisition component; the processor 801 is configured to call program instructions to execute:

[0175] In response to a triggering operation on the image acquisition component, feedback information is generated and displayed on an editing interface; the feedback information is generated based on the two-dimensional image of the target object and the two-dimensional image of the target virtual resource;

[0176] If there is a sharing operation in the editing interface, the feedback information is shared to the social interface, and the feedback information is displayed on the social interface.

[0177] In one embodiment, the three-dimensional simulated image of the target virtual resource includes N frames of images, where N is a positive integer greater than 1; the processor 801 is configured to call program instructions to execute:

[0178] Displaying the first N-1 frames of the three-dimensional simulation image of the target virtual resource on the preview interface, and playing a target animation associated with the first N-1 frames of the image during the display of the first N-1 frames of the image;

[0179] After the first N-1 frames of images are displayed, the Nth frame of the target three-dimensional image is displayed on the preview interface.

[0180] In one embodiment, if the resource customization window includes one or more preference query information, the processor 801 is configured to call program instructions to execute:

[0181] Obtaining answer information for each preference query information, and displaying a target virtual resource matching each obtained answer information;

[0182] The obtained answer information is the obtained resource customization information of the second user.

[0183] In one embodiment, the preference query information includes abstract query information; the processor 801 is configured to call program instructions to execute:

[0184] determining a user type of the second user according to answer information corresponding to each abstract query information, wherein one user type is associated with one type of virtual resource;

[0185] Acquire virtual resources of a target type associated with the user type of the second user, and display the virtual resources of the target type.

[0186] In one embodiment, the preference query information includes representational query information; the processor 801 is configured to call program instructions to execute:

[0187] Determining resource attributes of a virtual resource to be displayed according to answer information of any concrete inquiry information, wherein the resource attributes include any one or more of the following: color, shape, and brightness;

[0188] Displays target virtual resources that match the resource attributes.

[0189] In one embodiment, if the resource customization window includes an information receiving area, the processor 801 is configured to call program instructions to execute:

[0190] Acquire the input information of the second user from the information receiving area, and display the target virtual resource matching the input information;

[0191] The input information is the acquired resource customization information of the second user, and the input information includes any one of the following: text information, audio information and image information.

[0192] In one embodiment, if the resource customization window includes one or more virtual resources to be selected, the processor 801 is configured to call program instructions to execute:

[0193] In response to a selection trigger operation on a target virtual resource in the resource customization window, displaying the target virtual resource;

[0194] The selection triggering operation for the target virtual resource is the acquired resource customization information of the second user.

[0195] In one embodiment, the link message includes a resource topic of the virtual resource to be donated; the processor 801 is configured to call program instructions to execute:

[0196] The target virtual resource that matches the resource customization information and satisfies the resource theme is displayed.

[0197] In one embodiment, the processor 801 is configured to call program instructions for executing:

[0198] Displaying prompt information for receiving a target virtual resource in the social interface, wherein the prompt information is displayed after generating a target virtual resource matching the resource customization information and before displaying the target virtual resource;

[0199] When the confirmation mark included in the prompt information is triggered, the step of displaying the target virtual resource matching the resource customization information is triggered.

[0200] In one embodiment, the processor 801 is configured to call program instructions to execute:

[0201] When the display duration of the target virtual resource reaches the target duration, stopping displaying the target virtual resource;

[0202] When the link message is triggered again, the target virtual resource is redisplayed in the target session interface.

[0203] In one embodiment, the processor 801 is configured to call program instructions to execute:

[0204] Acquire image information of the three-dimensional image of the target object, where the image information includes one or both of the following: direction information of the target object on the preview interface, and a second position of the target object on the preview interface;

[0205] Fusion parameters are determined according to the image information, and the three-dimensional simulation image and the three-dimensional image of the target object are fused according to the fusion parameters.

[0206] In one embodiment, the fusion parameters include one or both of the following: fusion position and fusion display direction;

[0207] The fusion position is the second position of the target object on the preview interface, and the fusion display direction is the same as the direction information included in the image information.

[0208] In one embodiment, the processor 801 is configured to call program instructions to execute:

[0209] acquiring a two-dimensional image of each scene object from a feature acquisition device;

[0210] An augmented reality algorithm is used to perform feature enhancement processing on the two-dimensional image of each object to obtain a three-dimensional image of each scene object, and the three-dimensional image of each scene object is displayed; the interface displaying the three-dimensional image of each object is a preview interface.

[0211] An embodiment of the present invention provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, so that the computer device performs the above-mentioned Figure 2 or Figure 4The computer-readable storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0212] The above disclosure is only a partial embodiment of the present invention, which certainly cannot be used to limit the scope of the rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiments and equivalent changes made in accordance with the claims of the present invention are still within the scope of the invention.

Claims

1. A resource processing method, characterized in that: include: Displaying a social interface, wherein the social interface includes a link message in which the first user donates a virtual resource to the second user; When the second user selects the link message, displaying a resource customization window; Acquiring resource customization information of the second user from the resource customization window, and displaying target virtual resources matching the resource customization information; The displayed target virtual resource includes a three-dimensional simulation image of the target virtual resource; The displaying of the target virtual resource matching the resource customization information includes: displaying a preview interface, the preview interface being used to display a scene image of a real scene, the scene image including a three-dimensional image of one or more scene objects; The three-dimensional simulation image and the scene image are fused, and the fused image of the three-dimensional simulation image and the scene image is displayed in the preview interface.

2. The method according to claim 1, characterized in that Before fusing the three-dimensional simulation image with the scene image, the method further includes: Displaying a three-dimensional simulation image of the target virtual resource at a first position of the preview interface; When the scene image includes a three-dimensional image of a target object, obtaining a second position of the three-dimensional image of the target object in the preview interface; When the first position and the second position coincide with each other, the step of fusing the three-dimensional simulation image and the scene image is triggered.

3. The method according to claim 1, characterized in that The preview interface includes an image acquisition component; the method further includes: In response to a triggering operation on the image acquisition component, feedback information is generated and displayed on an editing interface; the feedback information is generated based on the two-dimensional image of the target object and the two-dimensional image of the target virtual resource; If there is a sharing operation in the editing interface, the feedback information is shared to the social interface, and the feedback information is displayed on the social interface.

4. The method according to claim 1, wherein The three-dimensional simulation image of the target virtual resource includes N frames of images, where N is a positive integer greater than 1; and displaying the image obtained by merging the three-dimensional simulation image and the scene image in the preview interface includes: Displaying the first N-1 frames of the three-dimensional simulation image of the target virtual resource on the preview interface, and playing a target animation associated with the first N-1 frames of the image during the display of the first N-1 frames of the image; After the first N-1 frames of images are displayed, the Nth frame of the target three-dimensional image is displayed on the preview interface.

5. The method according to claim 1, wherein If the resource customization window includes one or more preference query information; The acquiring the resource customization information of the second user from the resource customization window and displaying the target virtual resource matching the resource customization information includes: Obtaining answer information for each preference query information, and displaying a target virtual resource matching each obtained answer information; The obtained answer information is the obtained resource customization information of the second user.

6. The method according to claim 5, characterized in that The preference query information includes abstract query information; and the displaying of target virtual resources matching each acquired answer information includes: determining a user type of the second user according to answer information corresponding to each abstract query information, wherein one user type is associated with one type of virtual resource; Acquire virtual resources of a target type associated with the user type of the second user, and display the virtual resources of the target type.

7. The method according to claim 5, characterized in that The preference query information includes concrete query information; and the displaying of target virtual resources matching each acquired answer information includes: Determining resource attributes of a virtual resource to be displayed according to answer information of any concrete inquiry information, wherein the resource attributes include any one or more of the following: color, shape, and brightness; Displays target virtual resources that match the resource attributes.

8. The method according to claim 1, characterized in that If the resource customization window includes an information receiving area; obtaining the resource customization information of the second user from the resource customization window and displaying the target virtual resource matching the resource customization information includes: Acquire the input information of the second user from the information receiving area, and display the target virtual resource matching the input information; The input information is the acquired resource customization information of the second user, and the input information includes any one of the following: text information, audio information and image information.

9. The method according to claim 1, characterized in that If the resource customization window includes one or more virtual resources to be selected; The acquiring the resource customization information of the second user from the resource customization window and displaying the target virtual resource matching the resource customization information includes: In response to a selection trigger operation on a target virtual resource in the resource customization window, displaying the target virtual resource; The selection triggering operation for the target virtual resource is the acquired resource customization information of the second user.

10. The method according to claim 1, characterized in that The link message includes the resource subject of the virtual resource to be donated; the display of the target virtual resource matching the resource customization information includes: The target virtual resource that matches the resource customization information and satisfies the resource theme is displayed.

11. The method according to claim 1, wherein Before displaying the target virtual resource matching the resource customization information, the method further includes: Displaying prompt information for receiving a target virtual resource in the social interface, wherein the prompt information is displayed after generating a target virtual resource matching the resource customization information and before displaying the target virtual resource; When the confirmation mark included in the prompt information is triggered, the step of displaying the target virtual resource matching the resource customization information is triggered.

12. The method according to claim 1, characterized in that The method further comprises: When the display duration of the target virtual resource reaches the target duration, stopping displaying the target virtual resource; When the link message is triggered again, the target virtual resource is redisplayed in the target session interface.

13. The method according to claim 2, characterized in that The fusing of the three-dimensional simulation image and the scene image comprises: Acquire image information of the three-dimensional image of the target object, where the image information includes one or both of the following: direction information of the target object on the preview interface, and a second position of the target object on the preview interface; Fusion parameters are determined according to the image information, and the three-dimensional simulation image and the three-dimensional image of the target object are fused according to the fusion parameters.

14. The method according to claim 13, characterized in that The fusion parameters include one or two of the following: fusion position and fusion display direction; The fusion position is the second position of the target object on the preview interface, and the fusion display direction is the same as the direction information included in the image information.

15. The method according to claim 1, wherein The display preview interface includes: acquiring a two-dimensional image of each scene object from a feature acquisition device; An augmented reality algorithm is used to perform feature enhancement processing on the two-dimensional image of each scene object to obtain a three-dimensional image of each scene object, and the three-dimensional image of each scene object is displayed.

16. A resource processing device, characterized in that: include: A display unit, configured to display a social interface, wherein the social interface includes a link message in which a first user donates a virtual resource to a second user; The display unit is further configured to display a resource customization window when the second user selects the link message; an acquiring unit, configured to acquire resource customization information of the second user from the resource customization window; The display unit is further configured to display the target virtual resource matching the resource customization information; The displayed target virtual resource includes a three-dimensional simulation image of the target virtual resource; The displaying of the target virtual resource matching the resource customization information includes: displaying a preview interface, the preview interface being used to display a scene image of a real scene, the scene image including a three-dimensional image of one or more scene objects; The three-dimensional simulation image and the scene image are fused, and the fused image of the three-dimensional simulation image and the scene image is displayed in the preview interface.

17. A terminal device, characterized in that: The method comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 15.

18. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Virtual resource processing method, client and storage medium

    CN109146437A