A virtual gift interaction method based on augmented reality and related device
By using augmented reality technology at the virtual gift receiving end to integrate virtual gifts with real scenes and generate and play augmented reality animations, the problem of a single method of receiving virtual gifts is solved and the user interaction experience is improved.
Patent Information
- Application Number
- CN202010129769.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-28
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-02-28
AI Technical Summary
The existing virtual gift receiving methods are relatively simple and lack interactivity, which limits the interactive experience between users.
Based on augmented reality technology, the virtual gift is integrated with the real scene. The image acquisition device is started through object scanning instructions, prompt messages and images to be recognized are displayed, and after successful matching, an augmented reality animation corresponding to the virtual gift is generated and played.
It improves the interaction between the gift giver and the gift recipient, increases the fun and flexibility of gift interaction, and combines virtual gifts with real scenes through augmented reality animation to enhance the interactive experience.
Smart Images

Figure CN113325946B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a virtual gift interaction method based on augmented reality and related devices. Background Art
[0002] Augmented Reality (AR) technology is a technology that calculates the position and angle of camera images in real time and adds corresponding image and video 3D models. With the improvement of the computing power of the central processing unit (CPU) of terminal devices, the application of AR technology is becoming more and more extensive.
[0003] Currently, in instant messaging applications, users can give virtual gifts to friends. For example, user A enters the gift giving interface, and then selects the virtual gift to be given (such as gift A) and the user who receives the virtual gift (such as user B). After receiving the prompt message, user B clicks on the prompt message to receive gift A.
[0004] However, the current method of receiving virtual gifts is relatively simple. For the gift recipient, the virtual gift can only be obtained by interacting with the terminal interface, which is not conducive to improving the interactivity between users. Summary of the invention
[0005] The embodiments of the present application provide a virtual gift interaction method and related devices based on augmented reality, which can integrate virtual gifts with real scenes, increase the fun and flexibility of gift interaction, and also integrate the media information to be played set by the gift giver with the real scene to generate an augmented reality animation, and play the augmented reality animation on the client used by the gift recipient, thereby improving the interactivity between the gift giver and the gift recipient.
[0006] In view of this, an embodiment of the present application provides a virtual gift interaction method based on augmented reality, comprising:
[0007] The first client receives an object scanning instruction, wherein the object scanning instruction is used to start an image acquisition device;
[0008] The first client displays a prompt message and an image to be identified on the object recognition interface according to the object scanning instruction, wherein the prompt message is a message generated based on the virtual gift, and the image to be identified is an image captured by the image acquisition device;
[0009] If the image to be identified matches the prompt message successfully, the first client generates an augmented reality animation corresponding to the virtual gift according to the image to be identified and the animation playback effect;
[0010] The first client plays an augmented reality animation corresponding to the virtual gift on the image to be recognized.
[0011] The embodiment of the present application provides another virtual gift interaction method based on augmented reality, including:
[0012] The second client receives an object selection instruction, wherein the object selection instruction carries an identifier of a virtual gift;
[0013] The second client displays the virtual gift on the object setting interface according to the object selection instruction;
[0014] The second client receives an object selection instruction through an object selection interface provided by the object setting interface, wherein the object selection instruction carries an identifier of a recipient of the virtual gift;
[0015] The second client receives the object transfer instruction and sends the virtual gift to the first client according to the object transfer instruction, wherein the object transfer instruction carries at least the identifier of the virtual gift and the identifier of the recipient of the virtual gift, and the identifier of the recipient of the virtual gift corresponds to the first client.
[0016] The embodiment of the present application provides a virtual gift interaction device based on augmented reality, including:
[0017] A receiving module, used for receiving an object scanning instruction, wherein the object scanning instruction is used for starting an image acquisition device;
[0018] A display module, used to display a prompt message and an image to be recognized on the object recognition interface according to the object scanning instruction, wherein the prompt message is a message generated based on the virtual gift, and the image to be recognized is an image collected by the image acquisition device;
[0019] A generation module, configured to generate an augmented reality animation corresponding to the virtual gift according to the image to be identified and the animation playback effect if the image to be identified matches the prompt message successfully;
[0020] The playing module is used to play the augmented reality animation corresponding to the virtual gift on the image to be recognized.
[0021] In a possible design, the embodiment of the present application further includes:
[0022] A receiving module, specifically used to display a conversation prompt interface, wherein the conversation prompt interface is used to provide a scanning interface;
[0023] The object scanning instruction is received through the scanning interface.
[0024] In a possible design, the embodiment of the present application further includes:
[0025] The display module is specifically used to display the prompt message and the recognition area on the object recognition interface according to the object scanning instruction;
[0026] According to the object scanning instruction, the target image is displayed on the object recognition interface, and the image to be recognized is highlighted in the recognition area, wherein the image to be recognized is a part of the target image.
[0027] In a possible design, the client in the embodiment of the present application further includes a sending module, a determining module and a shooting module;
[0028] A sending module, used for sending the image to be identified to the server, so that the server identifies the image to be identified based on the stored image set to obtain a recognition result, wherein the stored image set includes at least one stored image;
[0029] A determination module, configured to determine, if the recognition result is that the virtual gift has been recognized, that the first client successfully matches the image to be recognized with the prompt message;
[0030] The shooting module is used to, if the recognition result is that the virtual gift is not recognized, the first client continues to shoot the real-time image through the image acquisition device and sends the real-time image to the server so that the server can recognize the real-time image.
[0031] In a possible design, the embodiment of the present application further includes:
[0032] A generating module, specifically used to obtain the to-be-played media information, wherein the to-be-played media information is set by the second client;
[0033] Generate an augmented reality animation based on the image to be recognized, the animation playback effect, and the media information to be played.
[0034] In a possible design, the embodiment of the present application further includes:
[0035] The receiving module is also used to receive interface return instructions;
[0036] The display module is further used to display the conversation prompt interface according to the interface return instruction, wherein the conversation prompt interface is used to provide an information viewing interface and an animation reproduction interface;
[0037] The display module is also used to display the image corresponding to the virtual gift on the conversation prompt interface.
[0038] In a possible design, the embodiment of the present application further includes:
[0039] The receiving module is further used to receive an information viewing instruction through an information viewing interface;
[0040] The display module is also used to display a gift details interface according to the information viewing instruction, wherein the gift details interface is used to display at least one of the sender information, recipient information and blessing information of the virtual gift.
[0041] In a possible design, the embodiment of the present application further includes:
[0042] The receiving module is further used to receive the animation reproduction instruction through the animation reproduction interface;
[0043] The display module is also used to display the object recognition interface according to the animation reproduction instruction;
[0044] The display module is also used to display prompt messages and real-time images taken by the image acquisition device on the object recognition interface.
[0045] The embodiment of the present application provides another virtual gift interaction device based on augmented reality, including:
[0046] A receiving module, used for receiving an object selection instruction, wherein the object selection instruction carries an identifier of a virtual gift;
[0047] A display module, used to display virtual gifts on the object setting interface according to the object selection instruction;
[0048] The receiving module is further used to receive an object selection instruction through an object selection interface provided by the object setting interface, wherein the object selection instruction carries a recipient identifier of the virtual gift;
[0049] The receiving module is also used to receive an object transmission instruction and send the virtual gift to the first client according to the object transmission instruction, wherein the object transmission instruction carries at least an identifier of the virtual gift and an identifier of a recipient of the virtual gift, and the identifier of the recipient of the virtual gift has a corresponding relationship with the first client.
[0050] In a possible design, the client in the embodiment of the present application further includes an acquisition module;
[0051] The object setting interface includes a date setting interface. When the object transmission instruction carries the target date information,
[0052] An acquisition module, used to acquire target date information through a date setting interface, wherein the target date information is a date when the first client receives the virtual gift;
[0053] Or the object setting interface includes a blessing filling area, and the object transmission instruction carries the blessing information.
[0054] The acquisition module is further used to acquire the blessing information through the blessing filling area, wherein the blessing information is the information displayed by the first client on the gift details interface;
[0055] Or the object setting interface includes a package selection interface, and the object transmission instruction carries the identification of the target package,
[0056] The receiving module is further used to receive a packaging selection instruction through a packaging selection interface, wherein the packaging selection instruction carries an identifier of a target packaging, the identifier of the target packaging has a unique corresponding relationship with the target packaging, and the target packaging is a packaging image displayed by the first client when receiving the virtual gift;
[0057] Or when the object setting interface also includes an effect selection interface, and the object transmission instruction also carries the identifier of the animation playback effect,
[0058] The receiving module is also used to receive an effect selection instruction through an effect selection interface, wherein the effect selection instruction carries an identifier of an animation playback effect, the identifier of the animation playback effect corresponds to the animation playback effect, and the animation playback effect is used by the first client to generate an augmented reality animation.
[0059] In a possible design, the client in the embodiment of the present application further includes a determination module and a sending module;
[0060] The object setting interface also includes an interface for adding media information;
[0061] The receiving module is further used to receive a media adding instruction through a media information adding interface;
[0062] The display module is further used to display a media information selection interface according to the media adding instruction, wherein the media information selection interface displays at least one media information;
[0063] The receiving module is also used to receive media upload instructions;
[0064] A determination module, configured to determine the media information to be played from at least one piece of media information according to the media upload instruction;
[0065] The sending module is used to send the to-be-played media information to the server when the second client sends an object transmission instruction to the server, so that the server stores the to-be-played media information, and the to-be-played media information is used by the first client to generate an augmented reality animation.
[0066] An embodiment of the present application provides a terminal device, including: a memory, a transceiver, a processor, and a bus system;
[0067] Wherein, the memory is used to store programs;
[0068] The processor is used to execute the program in the memory, and the processor is used to execute the above-mentioned methods according to the instructions in the program code;
[0069] The bus system is used to connect the memory and the processor so that the memory and the processor can communicate with each other.
[0070] The present application provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer is enabled to execute the above-mentioned methods.
[0071] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0072] In an embodiment of the present application, a virtual gift interaction method based on augmented reality is provided, wherein a first client can receive an object scanning instruction, which is used to start an image acquisition device, and then the first client can display a prompt message and an image to be identified on the object recognition interface according to the object scanning instruction, wherein the prompt message is a message generated based on the virtual gift, and the image to be identified is an image acquired by the image acquisition device, and when the image to be identified successfully matches the prompt message, the first client generates an augmented reality animation corresponding to the virtual gift according to the image to be identified and the animation playback effect, and finally the first client plays the augmented reality animation corresponding to the virtual gift on the image to be identified. In the above manner, the virtual gift is integrated with the real scene, which increases the fun and flexibility of the gift interaction, and at the same time, the media information to be played set by the gift giver is integrated with the real scene to generate an augmented reality animation, and the augmented reality animation is played on the client used by the gift recipient, thereby improving the interactivity between the gift giver and the gift recipient. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 A schematic diagram of the architecture of a virtual gift interaction system in an embodiment of the present application;
[0074] Figure 2 A schematic diagram of an embodiment of a virtual gift interaction method based on augmented reality in an embodiment of the present application;
[0075] Figure 3 This is a schematic diagram of an interface for virtual gift notification information in an embodiment of the present application;
[0076] Figure 4 A schematic diagram of an object recognition interface in an embodiment of the present application;
[0077] Figure 5 A schematic diagram of displaying an AR animation through an object recognition interface in an embodiment of the present application;
[0078] Figure 6 A schematic diagram of a conversation prompt interface in an embodiment of the present application;
[0079] Figure 7A schematic diagram showing a recognition area and a prompt message through an object recognition interface in an embodiment of the present application;
[0080] Figure 8 A flowchart of a virtual gift interaction method based on augmented reality in an embodiment of the present application;
[0081] Fig. 9 A schematic diagram of an interface for generating an AR animation for media information to be played in an embodiment of the present application;
[0082] Fig.10 This is another schematic diagram of the conversation prompt interface in the embodiment of the present application;
[0083] Fig.11 A schematic diagram of a gift details interface in an embodiment of the present application;
[0084] Fig.12 Another flowchart of the virtual gift interaction method based on augmented reality in an embodiment of the present application is shown;
[0085] Fig.13 A schematic diagram of an object recognition interface in an embodiment of the present application;
[0086] Fig.14 Schematic diagram of another embodiment of the virtual gift interaction method based on augmented reality in the embodiment of the present application;
[0087] Fig.15 A schematic diagram of an interface for selecting a virtual gift in an embodiment of the present application;
[0088] Fig.16 A schematic diagram of an interface for selecting a virtual gift recipient in an embodiment of the present application;
[0089] Fig.17 Another flowchart of the virtual gift interaction method based on augmented reality in an embodiment of the present application is shown;
[0090] Fig.18 This is a schematic diagram of an interface after triggering an object transmission instruction in an embodiment of the present application;
[0091] Fig.19 A schematic diagram of an object setting interface in an embodiment of the present application;
[0092] Fig. 20 A schematic diagram of an interface for adding media information to be played in an embodiment of the present application;
[0093] Fig.21 A schematic diagram of an embodiment of a virtual gift interaction device based on augmented reality in an embodiment of the present application;
[0094] Fig. 22This is a schematic diagram of another embodiment of a virtual gift interaction device based on augmented reality in an embodiment of the present application;
[0095] Fig.23 A schematic diagram of the structure of a terminal device in an embodiment of the present application. DETAILED DESCRIPTION
[0096] The embodiments of the present application provide a virtual gift interaction method and related devices based on augmented reality, which are used to integrate virtual gifts with real scenes, increase the fun and flexibility of gift interaction, and also integrate the media information to be played set by the gift giver with the real scene to generate an augmented reality animation, and play the augmented reality animation on the client used by the gift recipient, thereby improving the interactivity between the gift giver and the gift recipient.
[0097] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "corresponding to" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0098] It should be understood that the present application can be applied to scenarios of virtual gift interaction based on augmented reality (AR) technology. AR technology refers to the use of a variety of technical means such as multimedia, three-dimensional modeling, real-time traceability and registration, intelligent interaction, sensing, etc. to simulate computer-generated virtual information such as text, images, three-dimensional models, music, and videos, and then apply them to the real world, so that the two types of information complement each other, thereby achieving "enhancement" of the real world. That is, AR technology is a technology that allows the virtual world on the screen to be combined and interacted with real-world scenes. With the improvement of the CPU computing power of terminal devices, the use of AR technology is becoming more and more extensive.
[0099] Specifically, taking the application in instant messaging applications as an example, the client of the virtual gift sender in the instant messaging application can enter the virtual gift mall to select the AR gift to be sent, and select the prompt, scan object and add additional user generated content (UGC), UGC represents the original content selected or generated by the virtual gift sender, such as the picture, video and text of the virtual gift sender. After the virtual gift receiver receives the notification of the virtual gift through the client, it can collect images through the image acquisition device, and after identifying the corresponding object, play the preset animation in the scene in real time in combination with the scanned object, and display UGC. For the virtual gift receiver, the virtual gift can be integrated with the real scene, which increases the fun and flexibility of the interaction between the virtual gift sender and the virtual gift receiver, and the UGC set by the virtual gift sender is integrated with the real scene to generate an augmented reality animation, which can also be played on the client used by the gift receiver, thereby further improving the interactivity between the gift giver and the gift receiver.
[0100] In order to improve the interactivity between the gift giver and the gift receiver, this application proposes a virtual gift interaction method based on augmented reality. Figure 1 The virtual gift interaction system shown in Figure 1 , Figure 1This is a schematic diagram of the architecture of the virtual gift interaction system in the embodiment of the present application. As shown in the figure, the virtual gift interaction system includes a server, a first client and a second client, wherein the first client is a client used by the virtual gift recipient, and the second client is a client used by the virtual gift sender. Specifically, user A clicks on the AR gift in the mall list through the second client, and the second client generates and renders the details page according to the information transmitted from the mall details page. User A clicks on "receive gift friends", thereby requesting a friend list from the second client, the second client requests data from the server, the server searches the database, and returns the "friend list" data to the second client, and the second client generates and renders the friend list. Then user A selects the corresponding gift-receiving friend through the second client, the second client destroys the friend list page, and updates the details page data. User A continues to add media information such as pictures or videos through the second client, the second client calls the camera and album functions in the native system, user A selects pictures, videos, takes photos or takes videos, and the second client stores the multimedia information selected by user A in the file object. In addition, user A can also enter relevant text information, and the second client updates the details page. Finally, user A clicks the "Give" button through the second client, and the second client sends the relevant information and files uploaded and entered by user A to the server. The server receives the data and enters it into the database. The server sends an instruction on successful data transmission to the second client, and the second client automatically jumps and renders the success prompt page.
[0101] Correspondingly, user B is the recipient of the virtual gift. User B clicks on the notification information in the chat dialog box through the first client, so the second client wakes up the camera and transmits the image stream to the server in real time. The server receives the real-time image stream, analyzes the image, and divides the detection object. The server recognizes the image of the detection object according to the image recognition library to obtain the recognition result. The server feeds back the recognition result to the first client, and the first client draws and renders the prompt information in the camera screen according to the recognition result, and plays the corresponding AR animation. User B exits the camera interface, the first client closes the camera interface, and returns to the chat dialog box interface. When user B clicks on the notification information again, the first client opens the gift page and requests the page data. The first client sends the request data to the server, the server receives the request data, and returns the data related to the details page to the first client. The first client renders the page according to the data sent by the server.
[0102] in, Figure 1The server in the example may be a server cluster or a cloud computing center composed of one server or multiple servers, etc., which are not limited here. The first client and the second client may be deployed on different terminal devices respectively, or may be deployed on the same terminal device. The terminal device includes but is not limited to a tablet computer, a laptop computer, a PDA, a mobile phone, a personal computer (PC) and a voice interaction device, which are not limited here.
[0103] In combination with the above introduction, the virtual gift interaction method based on augmented reality in this application will be introduced from the perspective of the first client used by the virtual gift recipient. Figure 2 , Figure 2 The following is a schematic diagram of an embodiment of a virtual gift interaction method based on augmented reality in an embodiment of the present application. As shown in the figure, an embodiment of a virtual gift interaction method based on augmented reality in an embodiment of the present application includes:
[0104] 101. A first client receives an object scanning instruction, wherein the object scanning instruction is used to start an image acquisition device;
[0105] In this embodiment, the first client receives an object scanning instruction, and according to the object scanning instruction, starts an image acquisition device, and the first client may be a client used by the recipient of the virtual gift. It should be noted that the first client is deployed on the terminal device, and the image acquisition device may be a built-in camera of the terminal device, or the image acquisition device may be an external camera connected to the terminal device corresponding to the first client, such as an external wide-angle lens, an external telephoto lens, an external teleconverter lens, and an external fisheye lens. However, it should be understood that in actual applications, the image acquisition device can enable the terminal device to complete the image acquisition, and the specific image acquisition device should be flexibly determined in combination with the actual situation, and no limitation is made at this time.
[0106] For easier understanding, see Figure 3 , Figure 3 This is a schematic diagram of an interface for virtual gift notification information in an embodiment of the present application. As shown in the figure, the first client can receive an object scanning instruction triggered by the virtual gift recipient, that is, the virtual gift recipient can scan the object by clicking Figure 3The "Start Scanning" module shown in A1 triggers the object scanning instruction, and then the image acquisition device can be started to acquire the image through the object scanning instruction. It should be understood that this embodiment uses the "Start Scanning" shown in A1 as an example for explanation. In actual applications, the text content shown in A1 includes but is not limited to "Click to Scan", "Please Scan" and "Click Here to Scan". In addition, the virtual gift notification information displayed by the first client also includes the name and avatar of the sender of the virtual gift, such as "Xiao Ming" and the avatar, and displays relevant prompts, that is, Xiao Ming "sends you a gift, find and scan the corresponding item according to the prompts", thereby prompting the virtual gift recipient to trigger the object scanning instruction.
[0107] 102. The first client displays a prompt message and an image to be recognized on the object recognition interface according to the object scanning instruction, wherein the prompt message is a message generated based on the virtual gift, and the image to be recognized is an image collected by the image acquisition device;
[0108] In this embodiment, after the first client receives the object scanning instruction through step 101, the first client may jump to the object recognition interface according to the object scanning instruction, and display a prompt message and an image to be recognized on the object recognition interface, wherein the prompt message is a message generated based on the virtual gift, and the image to be recognized is an image collected by the image acquisition device activated according to the object scanning instruction. Among them, the prompt message may include but is not limited to "find the favorite fat house water", "find my favorite fat house happy chicken" and "find the fat house happy biscuits I often eat". For example, when the virtual gift is cola, the prompt message "find the favorite fat house water" can be generated according to cola. When the virtual gift is fried chicken, the prompt message "find my favorite fat house happy chicken" can be generated according to fried chicken. When the virtual gift is pizza, the prompt message "find the fat house happy biscuits I often eat" can be generated according to pizza. It can be understood that the prompt copy content here is only a schematic and should not be understood as a limitation of this application.
[0109] For ease of understanding, the prompt message "Found your favorite fat house water" is used as an example for explanation. Figure 4 , Figure 4 This is a schematic diagram of an object recognition interface in an embodiment of the present application, as shown in the figure, Figure 4 (A) shows that the recipient of the virtual gift clicks Figure 4 The "start scanning" module shown in B1 in (A) triggers an object scanning instruction. The first client receives the object scanning instruction and starts the image acquisition device, thereby jumping to Figure 4The object recognition interface B2 shown in (B) can display a prompt message B3 and an image to be recognized B4. The prompt message B3 is "Found my favorite fat house water", and the image to be recognized B4 is a real-time image captured by the image acquisition device activated by the object scanning instruction.
[0110] 103. If the image to be identified matches the prompt message successfully, the first client generates an augmented reality animation corresponding to the virtual gift according to the image to be identified and the animation playback effect;
[0111] In this embodiment, after the first client displays the image to be identified and the prompt message through step 102, the recognition result of the image to be identified and the prompt message can also be obtained through the server. If the image to be identified matches the prompt message successfully, the first client can generate an augmented reality animation corresponding to the virtual gift based on the image to be identified and the animation playback effect. Specifically, assuming that the prompt message is "Found my favorite fat house water", and the image to be identified includes the identified cola image, then the prompt message successfully matches the image to be identified, and then the AR animation corresponding to the cola can be generated based on the image to be identified and the animation playback effect. For another example, if the prompt message is "Found the fat house happy cake that I often eat", and the image to be identified includes the identified pizza image, then the prompt message successfully matches the image to be identified, and then the augmented reality animation corresponding to the pizza can be generated based on the pizza in the image to be identified and the animation playback effect.
[0112] For ease of understanding, the following example is used to illustrate the prompt message "Found the favorite fat house water" and the image to be recognized includes a cola image. Figure 5 , Figure 5 This is a schematic diagram of displaying AR animation through an object recognition interface in an embodiment of the present application, as shown in the figure, Figure 5 (A) shows that the prompt message C2 and the image to be recognized C3 are displayed through the object recognition interface C1, wherein the prompt message C2 is "Found the favorite fat house water", and the image to be recognized C3 includes a cola image, that is, the prompt message and the image to be recognized are matched successfully. Figure 5 The object recognition interface C1 shown in (B) displays a matching success message C4 and an image to be recognized C3, and then generates the following image according to the image to be recognized C3 and the animation playback effect: Figure 5 The AR animation shown in (C) is as follows. Figure 5 The matching success message shown is "Successfully found: Coke". In actual applications, the text content of the matching success message includes but is not limited to "Coke, successfully found" and "Congratulations on finding: Coke". Figure 5The examples in the example are only used to understand this solution. The image to be recognized, the prompt message, the animation playback effect, and the matching success message should be flexibly determined based on the actual situation.
[0113] 104. The first client plays an augmented reality animation corresponding to the virtual gift on the image to be recognized.
[0114] In this embodiment, after the first client generates an AR animation according to the image to be recognized and the animation playback effect in step 103, the first client can play the AR animation on the image to be recognized. For ease of understanding, the image to be recognized includes a Coke image as an example for explanation. Please refer to Figure 5 , as shown in the figure, when generating Figure 5 After the AR animation shown in (C) is played, the first client can play the AR animation on the image to be recognized.
[0115] In an embodiment of the present application, a virtual gift interaction method based on augmented reality is provided. Through the above-mentioned method, the virtual gift is integrated with the real scene, which increases the fun and flexibility of the gift interaction. The media information to be played set by the gift giver is also integrated with the real scene to generate an augmented reality animation, and the augmented reality animation is played on the client used by the gift recipient, thereby improving the interactivity between the gift giver and the gift recipient.
[0116] Optionally, in the above Figure 2 On the basis of the corresponding embodiments, in an optional embodiment of the virtual gift interaction method based on augmented reality provided by the embodiments of the present application, the first client receives an object scanning instruction, which may include:
[0117] The first client displays a session prompt interface, wherein the session prompt interface is used to provide a scanning interface;
[0118] The first client receives an object scanning instruction through a scanning interface.
[0119] In this embodiment, a method for receiving an object scanning instruction is introduced. The first client may also display a conversation prompt interface, which provides a scanning interface. The first client then receives the object scanning instruction triggered by the virtual gift recipient through the scanning interface.
[0120] Specifically, for ease of understanding, see Figure 6 , Figure 6This is a schematic diagram of the conversation prompt interface in the embodiment of the present application. As shown in the figure, the first client displays the conversation prompt interface D1, and the conversation prompt interface D1 provides a scanning interface D2. As described in the above embodiment, the text content of the scanning interface D2 can be "Start scanning". The first client receives the object scanning instruction triggered by the virtual gift recipient through the scanning interface D2. It should be understood that Figure 6 The examples are only used to understand this solution. The location, shape and size of the specific scanning interface should be flexibly determined based on actual conditions.
[0121] Secondly, in an embodiment of the present application, a method for receiving an object scanning instruction is provided. Through the above method, based on the scanning interface provided by the conversation prompt interface, an object scanning instruction can be received through the scanning interface, thereby improving the feasibility and operability of the solution.
[0122] Optionally, in the above Figure 2 On the basis of the corresponding embodiments, in an optional embodiment of the virtual gift interaction method based on augmented reality provided by the embodiments of the present application, the first client displays a prompt message and an image to be identified on the object recognition interface according to the object scanning instruction, which may include:
[0123] The first client displays a prompt message and a recognition area on the object recognition interface according to the object scanning instruction;
[0124] The first client displays the target image on the object recognition interface according to the object scanning instruction, and highlights the image to be recognized in the recognition area, wherein the image to be recognized is a part of the target image.
[0125] In this embodiment, a method for displaying a prompt message and an image to be recognized is introduced. The first client can also display a prompt message and a recognition area on the object recognition interface at the same time according to the object scanning instruction. The recognition area can highlight the image captured in real time by the image acquisition device. Further, the first client displays the target image on the object recognition interface according to the object scanning instruction, and highlights the image to be recognized in the recognition area. Among them, the target image refers to the captured panoramic image, and the image presented in the recognition area is a part of the panoramic image. It should be noted that the recognition area can be located at different positions of the object recognition interface, such as at the center of the object recognition interface, directly below the object recognition interface, or directly below the object recognition interface, etc., which is not limited here. It should be noted that the recognition area can also be of different shapes, such as the recognition area is circular, elliptical, square, triangular or pentagram, etc.
[0126] For ease of understanding, take the prompt message "Found the favorite fat house water" and the image to be recognized includes cola as an example. Figure 7, Figure 7 This is a schematic diagram of displaying the recognition area and prompt message through the object recognition interface in the embodiment of the present application. As shown in the figure, the prompt message E2 and the recognition area E3 can be displayed on the object recognition interface E1, wherein the recognition area E3 can highlight the image captured in real time by the image acquisition device, such as highlighting the image in the recognition area E3. The first client displays the target image E4 on the object recognition interface E1 according to the object scanning instruction, and highlights (such as highlighting) the image to be recognized E5 in the recognition area E3, and it can be seen that the image to be recognized E5 is part of the target image E4. It can be understood that Figure 7 The examples are only used to understand this solution. The specific location, shape and size of the recognition area should be flexibly determined based on actual conditions.
[0127] Secondly, in an embodiment of the present application, a method for displaying a prompt message and an image to be identified is provided. Through the above method, the first client displays the recognition area on the object recognition interface, and highlights the image to be identified according to the recognition area. Displaying the image to be identified and the prompt message at the same time can enable the recipient of the virtual gift to see the matching status of the captured image in real time, thereby improving the intuitiveness of the matching.
[0128] Optionally, in the above Figure 2 On the basis of the corresponding embodiments, in an optional embodiment of the virtual gift interaction method based on augmented reality provided by the embodiments of the present application, after the first client displays a prompt message and an image to be identified on the object recognition interface according to the object scanning instruction, the virtual gift interaction method may further include:
[0129] The first client sends an image to be identified to the server, so that the server identifies the image to be identified based on a stored image set to obtain an identification result, wherein the stored image set includes at least one stored image;
[0130] If the recognition result is that the virtual gift has been recognized, the first client determines that the image to be recognized matches the prompt message successfully;
[0131] If the recognition result is that the virtual gift is not recognized, the first client continues to capture the real-time image through the image acquisition device and sends the real-time image to the server so that the server can recognize the real-time image.
[0132] In this embodiment, a method for identifying an image to be identified is introduced. After the first client displays a prompt message and an image to be identified on the object recognition interface according to the object scanning instruction, it can also send the image to be identified to the server. The server can extract a set of stored images from the image database, and identify the image to be identified based on the stored image set to obtain a recognition result. The stored image set includes at least one stored image. If the recognition result is that the virtual gift has been identified, the first client can determine that the image to be identified successfully matches the prompt message. On the contrary, if the recognition result is that the virtual gift has not been identified, the first client continues to capture real-time images through the image acquisition device, and sends the real-time images to the server, so that the server can identify the real-time images, thereby realizing the recognition of the image stream.
[0133] For easier understanding, see Figure 8 , Figure 8 The following is a flow chart of a virtual gift interaction method based on augmented reality in an embodiment of the present application, as shown in the figure, specifically:
[0134] In step F1, the sender of the virtual gift (eg, user A) triggers an object scanning instruction through the first client used.
[0135] In step F2, the first client starts the image acquisition device based on the object scanning instruction, and displays a prompt message and an image to be identified.
[0136] In step F3, the first client may send the image to be identified collected by the image acquisition device to the server, and then the server identifies the image to be identified based on the stored image set. The identification method may be that the server has a stored image set locally, so the server performs local identification. Optionally, the server may call a stored image set in other databases for identification.
[0137] In step F4, the server determines whether the virtual gift is recognized, that is, whether the image to be recognized matches the stored image successfully. If so, step F5 is executed. If not, the server jumps to F3 and continues to recognize.
[0138] In step F5, the first client may determine that the image to be identified matches the prompt message successfully.
[0139] In step F6, the first client generates an AR animation according to the image to be recognized and the animation playback effect.
[0140] In step F7, the first client plays an augmented reality animation on the image to be recognized.
[0141] For ease of understanding, taking the prompt message as "Found your favorite fat house water" and the image to be identified including a cola image as an example, the recognition result in this embodiment may be "The virtual gift has been identified". It can be understood that in actual applications, the recognition results may also include but are not limited to "The image to be identified is cola", "The image to be identified includes cola" and "The image to be identified is a virtual gift". The server can determine that the virtual gift is identified through the recognition result, and the specific recognition result should be flexibly determined based on the actual situation.
[0142] In step F4, if the server determines that the recognition result is that the virtual gift is not recognized based on the recognition result, the first client continues to capture the real-time image through the image acquisition device and sends the real-time image to the server, so that the server jumps to step F3 and continues to recognize the real-time image. It can be understood that the image acquisition device will capture the image in real time, so for an image to be recognized or a real-time image, the server recognizes it separately, but because the first client transmits the real-time image captured by the image acquisition device to the server in real time, the server needs to recognize each image in the image stream.
[0143] Secondly, in an embodiment of the present application, a method for identifying an image to be identified is provided. Through the above method, the server can identify the image to be identified based on the stored image set to obtain an identification result, and determine based on the identification result that the image to be identified successfully matches the prompt message, so that the first client can improve the efficiency of generating augmented reality animation, thereby improving the efficiency of augmented reality animation playback. In addition, because the server can identify the image stream composed of real-time images, so that the first client can generate augmented reality animation based on the real-time image, thereby improving the real-time performance of augmented reality animation playback.
[0144] Optionally, in the above Figure 2 On the basis of the corresponding embodiments, in an optional embodiment of the virtual gift interaction method based on augmented reality provided by the embodiments of the present application, the first client generates an augmented reality animation according to the image to be recognized and the animation playback effect, which may include:
[0145] The first client obtains the to-be-played media information, wherein the to-be-played media information is set by the second client;
[0146] The first client generates an augmented reality animation according to the image to be recognized, the animation playback effect, and the media information to be played.
[0147] In this embodiment, a method for generating an augmented reality animation is introduced, in which a first client can obtain the media information to be played set by a second client, where the second client can be the client used by the sender of the virtual gift, and then the first client generates an AR animation based on the image to be identified, the animation playback effect, and the media information to be played.
[0148] It should be noted that the media information to be played may include but is not limited to images, videos and audios. It should be noted that images include but are not limited to bitmap (BMP) format, personal computer exchange (PCX) format, tag image file format (TIFF), graphics interchange format (GIF) and joint photographic expert group (JPEG) format. It should be noted that videos include but are not limited to moving picture experts group (MPEG) format, audio video interleaved (AVI) format, advanced streaming format (ASF) and windows media video (WMV) format. It should be noted that audio includes but is not limited to compact disc (CD) format, audio interchange file format (AIFF), moving pictures experts group (MPEG) format and moving picture experts group audio layer III (MP3) format.
[0149] For ease of understanding, the prompt message is "Found the favorite fat house water", the image to be recognized includes a cola image, and the media information to be played is an image as an example for explanation. Fig. 9 , Fig. 9 This is a schematic diagram of an interface for generating AR animation for media information to be played in an embodiment of the present application, as shown in the figure. Fig. 9 The object recognition interface G1 shown in (A) shows the image G2 to be recognized, and Fig. 9In (B), the media information to be played (such as a picture of a kitten) can be shown. The media information to be played and the image to be recognized G2 are combined, and the animation playback effect is combined to generate the following Fig. 9 The AR animation G3 shown in (C) is shown in FIG. Fig. 9 The examples are only used to understand this solution. The specific images to be recognized, animation playback effects, and media information to be played should be flexibly determined based on actual conditions.
[0150] Secondly, in the embodiment of the present application, a method for generating an augmented reality animation is provided. Through the above method, the media information to be played set by the gift giver can be integrated with the real scene, and an augmented reality animation can be generated, and then the augmented reality animation can be played on the client used by the gift recipient, thereby improving the interactivity between the gift giver and the gift recipient. In addition, the virtual gift can be integrated with the real scene, thereby increasing the diversity and flexibility of gift interaction.
[0151] Optionally, in the above Figure 2 On the basis of the corresponding embodiments, in an optional embodiment of the virtual gift interaction method based on augmented reality provided in the embodiments of the present application, the virtual gift interaction method may further include:
[0152] The first client receives an interface return instruction;
[0153] The first client displays a session prompt interface according to the interface return instruction, wherein the session prompt interface is used to provide an information viewing interface and an animation reproduction interface;
[0154] The first client displays an image corresponding to the virtual gift on the session prompt interface.
[0155] In this embodiment, a method for displaying a virtual gift again on a conversation prompt interface is introduced. The first client can also receive an interface return instruction triggered by the recipient of the virtual gift. The first client can display a conversation prompt interface according to the received interface return instruction, and the conversation prompt interface can provide an information viewing interface and an animation reproduction interface. In addition, the first client can also display an image corresponding to the virtual gift on the conversation prompt interface. Specifically, after the first client plays the AR animation on the image to be identified, it can also return to the conversation prompt interface. At this time, the conversation prompt interface can display the specific image of the virtual gift. In addition, the blessing information corresponding to the virtual gift can also be displayed on the conversation prompt interface. For example, taking the virtual gift of cola as an example, the first client can display the conversation prompt interface through a return instruction after playing the AR animation on the image to be identified including the cola image, and display the cola image corresponding to the virtual gift on the conversation prompt interface, and can also display the blessing information corresponding to the virtual gift cola, such as "I give you a bottle of fat house water and you will be in heaven immediately, and you will be happy to fly." Optionally, taking the virtual gift of pizza as an example, the first client can display the conversation prompt interface through the return instruction after playing the AR animation on the image to be identified including the pizza, and display the pizza image corresponding to the virtual gift on the conversation prompt interface, and can also display the blessing information corresponding to the virtual gift pizza, such as "I give you a fat house happy cake, the cake will make you feel satisfied."
[0156] For ease of understanding, let's take a virtual gift like Coke as an example. Fig.10 , Fig.10 This is another schematic diagram of the conversation prompt interface in the embodiment of the present application, as shown in the figure, Fig.10 In (A), a session prompt interface may be displayed on the first client, and the displayed session prompt interface may provide a scanning interface, such as Fig.10 (A) shows the "Start Scanning" interface. The display session prompt interface can also display the virtual gift image H1 before the virtual gift is opened, that is, before the virtual gift recipient starts the image acquisition device, the virtual gift recipient cannot know from the virtual gift image H1 what the virtual gift sender has given. After the first client receives the object scanning instruction through the scanning interface, it generates and plays the AR animation. The steps of generating the AR animation are similar to those in the previous embodiment and will not be repeated here. Further, after playing the AR animation, Fig.10 In (B), the interface return interface H2 may also be shown in the first client. When the first client receives the interface return instruction through the interface return interface H2, the first client may display the following information according to the interface return instruction: Fig.10The conversation prompt interface H3 shown in (C) can provide an information viewing interface H4 and an animation reproduction interface H5. In addition, the first client can also display an image H6 of the virtual gift after it is opened on the conversation prompt interface H3. It can be seen that after playing the AR animation, Fig.10 The image H6 of the virtual gift after opening shown on the conversation prompt interface H3 shown in (C) is Fig.10 Compared with the virtual gift image H1 displayed on the conversation prompt interface H3 shown in (A), Fig.10 In the conversation prompt interface shown in (C), the image H6 after the virtual gift is opened shows that the virtual gift is Coke. It can be understood that Fig.10 The examples in the example are only used to understand this solution. The specific information viewing interface, animation reproduction interface and virtual gifts should be flexibly determined based on the actual situation.
[0157] Again, in an embodiment of the present application, a method for displaying a virtual gift on the conversation prompt interface again is provided. Through the above method, after generating and playing the augmented reality animation, it is also possible to return to the conversation prompt interface through the interface return instruction and display the virtual gift, so that the virtual gift recipient and the virtual gift sender can also see the received virtual gift when interacting in the conversation, thereby improving the interactivity between the gift giver and the gift recipient.
[0158] Optionally, in the above Figure 2 On the basis of the corresponding embodiment, in an optional embodiment of the virtual gift interaction method based on augmented reality provided by the embodiment of the present application, after the first client displays the conversation prompt interface according to the interface return instruction, the virtual gift interaction method further includes:
[0159] The first client receives an information viewing instruction through an information viewing interface;
[0160] The first client displays a gift details interface according to the information viewing instruction, wherein the gift details interface is used to display at least one of the sender information, the receiver information and the blessing information of the virtual gift.
[0161] In this embodiment, a method for displaying a gift details interface is provided. After the first client displays the conversation prompt interface according to the interface return instruction, it can also receive the information viewing instruction through the information viewing interface. Then, the first client can display the gift details interface according to the received information viewing instruction. The gift details interface can display at least one of the sender information of the virtual gift, the receiver information of the virtual gift, and the blessing information. Specifically, the sender information of the virtual gift can include but is not limited to the virtual name, virtual account, and virtual avatar of the sender of the virtual gift, and the receiver information of the virtual gift can include but is not limited to the virtual name, virtual account, and virtual avatar of the receiver of the virtual gift, and the blessing information can include but is not limited to "Send you a bottle of fat house water to instantly go to heaven and be happy to fly", "Send you a fat house happy cake, the cake makes you enjoy and satisfy" and "Send you a fat house happy chicken, let's eat chicken together tonight".
[0162] For ease of understanding, a virtual gift is taken as Coke, and the gift details interface can display the sender information, receiver information, and blessing information of the virtual gift as an example for explanation. Fig.11 , Fig.11 This is a schematic diagram of the gift details interface in the embodiment of the present application, as shown in the figure, Fig.11 In (A), a conversation prompt interface I1 is displayed on the first client, and the conversation prompt interface I1 can provide an information viewing interface I2 and a gift return interface I3. The first client can also display an image I4 after the virtual gift is opened on the conversation prompt interface I1. The first client can receive an information viewing instruction through the information viewing interface I2, and the first client can display the information according to the information viewing instruction. Fig.11 In the gift details interface I5 shown in (B), it can be seen that the gift details interface I5 can display the sender information I6 of the virtual gift, the receiver information I7 of the virtual gift, and the blessing information I8. Specifically, Fig.11 In (B), the sender information I6 of the virtual gift includes the virtual name "Little Cutie" and the virtual avatar, and the receiver information I7 of the virtual gift includes the virtual name of the receiver of the virtual gift "Big Cutie", and the blessing information I8 is the blessing information corresponding to the virtual gift Coke "Giving you a bottle of fat house water will make you feel happy and fly". It can be understood that Fig.11 The examples are only used to understand this solution. The specific sender information, receiver information and greeting information should be determined flexibly based on the actual situation.
[0163] Please continue reading Fig.11, the gift details interface I5 shown in (B) in 11 can also display a gift sharing interface I9 and a gift return interface I10. The recipient of the virtual gift can perform corresponding operations on the gift sharing interface I9, so that the first client can share the virtual gift details with other people, other people do not include the recipient of the virtual gift. Secondly, the gift return interface I10 can also be operated accordingly, so that the first client can return the gift to the giver of the virtual gift according to the operation.
[0164] For easier understanding, see Fig.12 , Fig.12 Another flowchart of the virtual gift interaction method based on augmented reality in the embodiment of the present application is shown in the figure, specifically:
[0165] In step J1, the virtual gift recipient sends an information viewing instruction to the first client.
[0166] In step J2, the gift details interface is displayed through the first client. Specifically, the first client can open a web view and then start to create a gift details interface. The web view can request information related to the gift details interface from the server. After the server obtains information related to the gift details interface, the page is rendered according to the information related to the gift details interface. After the page rendering is completed, the first client can display the gift details interface. The web view is a control that can be used to display the page and perform functions similar to a browser in the client. Optionally, the gift details interface can also display a gift sharing interface and a gift return interface, and the virtual gift recipient operates the gift sharing interface.
[0167] In step J3, the virtual gift recipient triggers a gift sharing instruction to the server through the first client.
[0168] In step J4, the server can assemble relevant information of the gift details interface through the gift sharing instruction.
[0169] In step J5, the first client displays a gift details interface including interface-related information, which is at least one of the sender information, receiver information, and blessing information of the virtual gift. Specifically, the first client can open the web view through the gift sharing instruction, and the web view can actively call up the relevant software development kit (SDK), so the SDK will open the relevant client, so that the virtual gift recipient can share the virtual gift. When the virtual gift recipient returns to the first client, the first client can obtain the shared information and feedback it to the web view through js Bridge (JS calls the Android and IOS native system interface), and the web view can draw and render the relevant prompts.
[0170] In step J6, after the gift details interface displays the gift return interface, the virtual gift recipient operates the gift return interface, that is, the virtual gift recipient causes the first client to send a gift return instruction to the service through this operation.
[0171] In step J7, the server can assemble relevant information of the gift details interface through the gift return instruction.
[0172] In step J8, the first client displays the gift return page. Specifically, the virtual gift recipient can click on the gift return interface, and the first client opens the web view and starts to create the gift details interface. The web view requests the server for information related to the gift details interface. After the server obtains the information related to the gift details interface, it assembles the information related to the gift details interface and starts to render the page, and then the first client can display the gift return page. It is understandable that Fig.12 The examples are only used to understand this solution. The specific interface display and process should be flexibly determined based on the actual situation.
[0173] Furthermore, in an embodiment of the present application, a method for displaying a gift details interface is provided. Through the above method, any one of the sender information, receiver information and blessing information in the gift details interface can be displayed according to the information viewing instruction, so that the virtual gift recipient can know the specific information of the sender of the virtual gift, thereby improving the accuracy of virtual interaction. Secondly, by displaying the blessing information, the interactivity and flexibility between the virtual gift sender and the virtual gift recipient are improved.
[0174] Optionally, in the above Figure 2On the basis of the corresponding embodiment, in an optional embodiment of the virtual gift interaction method based on augmented reality provided by the embodiment of the present application, after the first client displays the conversation prompt interface according to the interface return instruction, the virtual gift interaction method further includes:
[0175] The first client receives an animation reproduction instruction through an animation reproduction interface;
[0176] The first client displays the object recognition interface according to the animation reproduction instruction;
[0177] The first client displays a prompt message and a real-time image captured by the image acquisition device on the object recognition interface.
[0178] In this embodiment, a method for re-displaying an object recognition interface is introduced. After the first client displays the conversation prompt interface according to the interface return instruction, it can also receive an animation reproduction instruction through the animation reproduction interface, and then the first client displays the object recognition interface according to the received animation reproduction instruction. That is, the virtual gift recipient can recognize the virtual gift multiple times through the image acquisition device. Similarly, the first client displays the prompt message and the real-time image captured by the image acquisition device on the object recognition interface.
[0179] For ease of understanding, let's take a virtual gift like Coke as an example. Fig.13 , Fig.13 This is a schematic diagram of an object recognition interface in an embodiment of the present application, as shown in the figure. Fig.13 In (A), a conversation prompt interface K1 can be shown on the first client, and the conversation prompt interface K1 provides an information viewing interface K2 and a gift return interface K3. In addition, the first client can also display an image K4 after the virtual gift is opened and an animation reproduction interface K5 on the conversation prompt interface K1. After the virtual gift recipient triggers the animation reproduction instruction through the animation reproduction interface K5, the first client displays the following according to the animation reproduction instruction: Fig.13 The object recognition interface K6 shown in (B) displays a prompt message K7 and a real-time image K8 captured by the image acquisition device. Assuming that the virtual gift is cola, the prompt message corresponding to the virtual gift may be "Found the favorite fat house water". It can be understood that Fig.13 The examples in the description are only used to understand this solution. The text of the specific animation reproduction interface, the content of the object recognition interface, the text of the prompt message, and the real-time image captured by the image acquisition device should all be flexibly determined based on actual conditions.
[0180] Furthermore, in an embodiment of the present application, a method for re-displaying an object recognition interface is provided. In the above manner, a prompt message and a real-time image captured by an image acquisition device can be displayed on the display object recognition interface according to an animation reproduction instruction. This allows the virtual gift recipient to repeatedly play the augmented reality animation and display the prompt message and the real-time image in real time, thereby improving the real-time nature of virtual interaction and the flexibility of the virtual gift recipient in playing the augmented reality animation.
[0181] In combination with the above introduction, the following will introduce another virtual gift interaction method based on augmented reality in this application from the perspective of the second client used by the virtual gift sender. Fig.14 , Fig.14 This is a schematic diagram of another embodiment of the virtual gift interaction method based on augmented reality in an embodiment of the present application. As shown in the figure, the embodiment provided by the embodiment of the present application includes:
[0182] 201. The second client receives an object selection instruction, wherein the object selection instruction carries an identifier of a virtual gift;
[0183] In this embodiment, before the virtual gift interaction is performed, the second client can receive an object selection instruction triggered by the virtual gift sender, and the object selection instruction carries the virtual gift ID. For example, the ID corresponding to the virtual gift "Coke" is 1. If the object selection instruction carries the ID 1 of the virtual gift "Coke", the virtual gift "Coke" can be selected through the ID. For another example, the ID corresponding to the virtual gift "Rice" is 2, and the object selection instruction carries the ID 2 of the virtual gift "Rice", the virtual gift "Rice" can be given through the ID.
[0184] 202. The second client displays the virtual gift on the object setting interface according to the object selection instruction;
[0185] In this embodiment, after receiving the object selection instruction through step 201, the second client can display the virtual gift on the object setting interface according to the object selection instruction, and can also display the prompt message corresponding to the virtual gift on the object setting interface. The object setting interface is used to provide an object selection interface, and the prompt message is a message generated based on the virtual gift. For example, if the virtual gift is cola, cola can be displayed on the object setting interface, and a prompt message "Favorite Fat House Water" generated based on cola can also be displayed. If the virtual gift is fried chicken, fried chicken can be displayed on the object setting interface, and a prompt message "My Favorite Fat House Happy Chicken" generated based on fried chicken can also be displayed. If the virtual gift is pizza, pizza can be displayed on the object setting interface, and a prompt message "My Favorite Fat House Happy Pie" generated based on pizza can also be displayed.
[0186] For ease of understanding, the object selection instruction carrying the virtual gift Coke logo is used as an example for explanation. Fig.15 , Fig.15 This is a schematic diagram of an interface for selecting a virtual gift in an embodiment of the present application, as shown in the figure. Fig.15 (A) shows an interface for the first client to receive an object selection instruction. The virtual gift sender operates the object selection interface L1, for example, clicks on the object selection interface L1, and then Fig.15 In (B), the virtual gift L3 and the prompt message L4 corresponding to the virtual gift are displayed on the object setting interface L2. That is, when the virtual gift L3 is cola, the prompt message L4 corresponding to the cola is the favorite fat house water. Furthermore, the sender of the virtual gift can also operate the prompt message interface corresponding to the location of the prompt message L4, such as clicking the prompt message interface (i.e., the location shown by the prompt message L4 in the figure), and through this operation, the virtual gift L3 is displayed on the first client. Fig.15 The virtual gift replacement interface shown in (C) is shown in the figure. For example, if the virtual gift L3 is cola, the replacement interface L5 corresponding to cola can be selected. The interface shown in the L5 interface includes the icon of the virtual gift cola, the prompt message corresponding to the virtual gift cola "Favorite Fat House Water", and the text message "Coke". For example, if the virtual gift L3 is rice, the replacement interface L6 corresponding to cola can be selected. The interface shown in the L6 interface includes the virtual gift rice, the prompt message corresponding to rice "Must-have for every meal", and the text message "Rice". It should be understood that Fig.15 The examples are only used to understand this solution. The specific virtual gifts and the prompt messages corresponding to the virtual gifts should be flexibly determined based on the actual situation.
[0187] 203. The second client receives an object selection instruction through an object selection interface provided by the object setting interface, wherein the object selection instruction carries an identifier of a recipient of the virtual gift;
[0188] In this embodiment, the second client can receive an object selection instruction through the object selection interface provided by the object setting interface, and the object selection instruction carries the identification of the recipient of the virtual gift. For example, the identification corresponding to the recipient user A is 11. If the object selection instruction carries the identification 11 of the virtual gift recipient, then based on the identification, the virtual gift sender can be instructed to select user A as the virtual gift recipient to give the virtual gift. For another example, the identification corresponding to the recipient user B is 12. If the object selection instruction carries the identification 12 of the virtual gift recipient, then based on the identification, the virtual gift sender can be instructed to select user B as the virtual gift recipient to give the virtual gift.
[0189] For easier understanding, see Fig.16 , Fig.16 This is a schematic diagram of an interface for selecting a virtual gift recipient in an embodiment of the present application. As shown in the figure, the list opening instruction triggered by the virtual gift sender can be received through the object selection interface M1. For example, after clicking the object selection interface M1, the friend list can be displayed, and a friend can be selected as the virtual gift recipient in the friend list, thereby generating an object selection instruction, that is, the object selection instruction carries the virtual gift recipient identifier. It should be understood that Fig.16 The examples in the figure are only used to understand this solution. The shape, position and size of the specific object selection interface should be flexibly determined based on the actual situation.
[0190] 204. The second client receives the object transmission instruction, and sends the virtual gift to the first client according to the object transmission instruction, wherein the object transmission instruction carries at least an identifier of the virtual gift and an identifier of a recipient of the virtual gift, and the identifier of the recipient of the virtual gift corresponds to the first client.
[0191] In this embodiment, after the second client receives the object selection instruction through the object selection interface according to step 203, the second client may also receive an object transmission instruction, which carries at least the identifier of the virtual gift and the identifier of the recipient of the virtual gift, and the identifier of the recipient of the virtual gift has a corresponding relationship with the first client. The second client may also send the virtual gift to the first client according to the object transmission instruction. For example, the identifier corresponding to the virtual gift Coke is 1, and the identifier corresponding to the receiving object user A is 11. When the second client receives the object transmission instruction carrying the identifier 1 of the virtual gift Coke and the identifier 11 of the recipient of the virtual gift, the virtual gift Coke can be sent to user A. Under normal circumstances, the identifier 11 of the recipient of the virtual gift has a corresponding relationship with the first client used by user A. For another example, the identifier corresponding to the virtual gift rice is 2, and the identifier corresponding to the receiving object user B is 12. When the second client receives the object transmission instruction carrying the identifier 2 of the virtual gift rice and the identifier 12 of the recipient user B of the virtual gift, the virtual gift rice can be sent to user B. Under normal circumstances, the identifier 12 of the recipient of the virtual gift has a corresponding relationship with the first client used by user B. It should be understood that the aforementioned examples are only used to understand the present embodiment, and the identification of the specific virtual gift and the identification of the recipient of the virtual gift should be flexibly determined in light of the actual situation.
[0192] To further understand this embodiment, an object selection instruction carrying the identifier of a virtual gift, Coke, is used as an example for explanation. Fig.17 , Fig.17 Another flowchart of the virtual gift interaction method based on augmented reality in the embodiment of the present application is shown in the figure, specifically:
[0193] In step N1, the sender of the virtual gift triggers an object selection instruction through the second client, and the object selection instruction carries the identifier of the virtual gift.
[0194] In step N2, the second client displays the virtual gift and the prompt message corresponding to the virtual gift on the object setting interface according to the object selection instruction. The object setting interface can provide an object selection interface. The prompt message is a message generated based on the virtual gift, that is, after the sender of the virtual gift selects the virtual gift, the uniform resource locator (URL) parameter is used so that the first client can generate and draw an object setting interface with default information according to the identifier of the virtual gift. This process does not require a request to the server, and the default information can be obtained from the list page and then passed to the object setting interface in the form of URL parameters.
[0195] In step N3, the second client displays an object selection interface on the object setting interface, and receives an object selection instruction triggered by the virtual gift sender through the object selection interface. The object selection instruction carries the identifier of the recipient of the virtual gift. Specifically, when selecting the recipient of the virtual gift, the virtual gift sender can first open the friend list page of the second client. At this time, the web view will request the friend list data of the virtual gift sender from the server. When the server returns the friend list data of the virtual gift sender, the web view will render the friend list page of the virtual gift sender. After the page is rendered, other interactive operations such as clicking or sliding can be performed.
[0196] In step N4, the second client may also receive an object transfer instruction triggered by the virtual gift sender, the object transfer instruction carries at least the virtual gift identifier and the virtual gift recipient identifier, and the virtual gift recipient identifier corresponds to the first client.
[0197] In step N5, the second client sends the object transfer instruction to the server, and the server receives the object transfer instruction sent by the second client, so that the server sends the virtual gift to the first client according to the object transfer instruction. After the server performs database entry processing and informs the web view that the data transmission is successful, the web view can automatically jump and render a success prompt page. Based on the above embodiment, the method for the server to send a virtual gift to the first client according to the object transfer instruction has been introduced, which will not be repeated here.
[0198] For easier understanding, see Fig.18 , Fig.18 This is a schematic diagram of an interface after triggering an object transmission instruction in an embodiment of the present application, as shown in the figure, Fig.18(A) may show an object setting interface, which may also include a confirmation interface O1. It should be noted that the text content on the confirmation interface O1 may be a prompt such as "Gift" or "Please send". This is only an illustration and should not be construed as a limitation on this application. The second client receives the object transmission instruction through the confirmation interface O1, and then the second client can display the object transmission instruction as shown in FIG. Fig.18 The gift delivery interface shown in (B) in the figure. It should be noted that the text content on the gift delivery interface can be "The space courier has received the order. We will deliver the gift on time regardless of wind or rain", or other types of text, which are not limited here.
[0199] In an embodiment of the present application, a virtual gift interaction method based on augmented reality is provided. Through the above-mentioned method, a designated virtual gift can be given to a designated object through object selection instructions and object selection instructions, which can improve the accuracy of the virtual gift recipient receiving the virtual gift and can also improve the interactivity between the gift giver and the gift recipient.
[0200] Optionally, in the above Fig.14 Based on the corresponding embodiment, in an optional embodiment of the virtual gift interaction method based on augmented reality provided in the embodiment of the present application,
[0201] The object setting interface includes a date setting interface. When the object transmission instruction carries the target date information,
[0202] Virtual gift interaction methods also include:
[0203] The second client obtains target date information through the date setting interface, wherein the target date information is the date when the first client receives the virtual gift;
[0204] Or the object setting interface includes a blessing filling area, and the object transmission instruction carries the blessing information.
[0205] Virtual gift interaction methods also include:
[0206] The second client obtains the blessing information through the blessing filling area, wherein the blessing information is the information displayed on the gift details interface by the first client;
[0207] Or the object setting interface includes a package selection interface, and the object transmission instruction carries the identification of the target package,
[0208] The virtual gift interaction method may also include:
[0209] The second client receives a packaging selection instruction through a packaging selection interface, wherein the packaging selection instruction carries an identifier of a target packaging, the identifier of the target packaging has a unique corresponding relationship with the target packaging, and the target packaging is a packaging image displayed by the first client when receiving a virtual gift;
[0210] Or when the object setting interface also includes an effect selection interface, and the object transmission instruction also carries the identifier of the animation playback effect,
[0211] Virtual gift interaction methods also include:
[0212] The second client receives an effect selection instruction through an effect selection interface, wherein the effect selection instruction carries an identifier of an animation playback effect, the identifier of the animation playback effect corresponds to the animation playback effect, and the animation playback effect is used by the first client to generate an augmented reality animation.
[0213] In this embodiment, a method of setting multiple related contents on the object setting interface is introduced. The object setting interface displayed by the second client may also include a date setting interface. The object transmission instruction also carries the target date information. Therefore, after the object setting interface is displayed according to the object selection instruction, the second client may also obtain the target date information through the date setting interface. The target date information is the date when the first client receives the link message virtual gift. Optionally, the object setting interface displayed by the second client may also include a blessing filling area. The object transmission instruction also carries the blessing information. Therefore, after the second client displays the object setting interface according to the object selection instruction, the second client may also obtain the blessing information through the blessing filling area. The blessing information is the information displayed by the first client on the gift details interface. Optionally, the object setting interface displayed by the second client may also include a packaging selection interface. The object transmission instruction also carries the identification of the target packaging. Therefore, after the second client displays the object setting interface according to the object selection instruction, the second client may also receive the packaging selection instruction through the packaging selection interface. The packaging selection instruction carries the identification of the target packaging. The identification of the target packaging has a unique corresponding relationship with the target packaging. The target packaging is the packaging image displayed by the first client when receiving the link message virtual gift. Optionally, the object setting interface displayed by the second client may also include an effect selection interface, and the object transmission instruction also carries an identifier of the animation playback effect. Therefore, the second client receives the effect selection instruction through the effect selection interface, and the effect selection instruction carries the identifier of the animation playback effect. The identifier of the animation playback effect has a unique corresponding relationship with the animation playback effect, and the animation playback effect is used by the first client to generate and display AR animation.
[0214] For easier understanding, see Fig.19 , Fig.19This is a schematic diagram of the object setting interface in the embodiment of the present application. As shown in the figure, the object setting interface P1 displayed by the second client may also include a date setting interface P2, through which the target date information set by the sender of the virtual gift may be received. The target date information is the date on which the first client receives the link message virtual gift. For example, the date on which the first client receives the link message virtual gift may be obtained as 2020.1.1 through the date setting interface P2.
[0215] Optionally, the object setting interface P1 displayed by the second client may also include a blessing filling area P3, and the sender of the virtual gift may enter blessing information in the blessing filling area P3, and the blessing information is the information displayed by the first client on the gift details interface. For example, taking the virtual gift of Coke as an example, the default blessing information "One bottle will instantly take you to heaven, and you will be so happy that you will fly" can be displayed in the blessing filling area P3. Taking the virtual gift of pizza as an example, the default blessing information "I will give you a fat house happy cake, and the cake will make you enjoy and satisfy" can be displayed in the blessing filling area P3. It is understandable that in actual applications, the sender of the virtual gift can also fill in the blessing information, such as filling in "Fat house happy water, let's get fat together", etc., which improves the interactivity between the gift giver and the gift recipient, so the blessing information should not be understood as a limitation of this application.
[0216] Optionally, the object setting interface P1 displayed by the second client may also include a packaging selection interface P4, through which a packaging selection instruction may be received, the packaging selection instruction carries the identifier of the target packaging, the identifier of the target packaging has a unique corresponding relationship with the target packaging, and the target packaging is the packaging image displayed by the first client when receiving the link message virtual gift. Optionally, the object setting interface P1 displayed by the second client may also include an effect selection interface P5, through which an effect selection instruction may be received, the effect selection instruction carries the identifier of the animation playback effect, and since the identifier of the animation playback effect has a unique corresponding relationship with the animation playback effect, the animation playback effect can be used by the first client to generate an AR animation. The aforementioned embodiment has introduced the method for the first client to generate an augmented reality animation, which will not be repeated here.
[0217] In an embodiment of the present application, a method for setting a variety of related content on the object setting interface is provided. Through the above method, through the date setting interface, the greeting filling area, the packaging selection interface, and the effect selection interface of the object setting interface, a variety of options for dates, greetings, packaging, and effects can be provided, thereby increasing the diversity and flexibility of the interaction of virtual gifts.
[0218] Optionally, in the above Fig.14On the basis of the corresponding embodiments, in an optional embodiment of the virtual gift interaction method based on augmented reality provided by the embodiments of the present application, the object setting interface further includes a media information adding interface;
[0219] The virtual gift interaction method may also include:
[0220] The second client receives a media adding instruction through a media information adding interface;
[0221] The second client displays a media information selection interface according to the media adding instruction, wherein the media information selection interface displays at least one media information;
[0222] The second client receives the media upload instruction;
[0223] The second client determines the to-be-played media information from at least one piece of media information according to the media upload instruction;
[0224] The virtual gift interaction method may also include:
[0225] When the second client sends an object transmission instruction to the server, the media information to be played is sent to the server so that the server stores the media information to be played. The media information to be played is used by the first client to generate an augmented reality animation.
[0226] In this embodiment, a method for uploading media information to be played is introduced. The object setting interface displayed by the second client also includes a media information adding interface. Therefore, the second client can also receive a media adding instruction through the media information adding interface, and then the second client displays a media information selection interface according to the media adding instruction. The media information selection interface displays at least one media information that can be added. Then, the second client receives a media upload instruction triggered by the sender of the virtual gift, and then the second client determines the media information to be played from at least one media information that can be added according to the media upload instruction. And when the second client sends an object transmission instruction to the server, the second client can also send the media information to be played to the server so that the server stores the media information to be played, and the media information to be played can be used by the first client to generate AR animation.
[0227] For easier understanding, see Fig. 20 , Fig. 20 A schematic diagram of an interface for adding media information to be played in an embodiment of the present application is shown in the figure. Fig. 20 The object setting interface Q1 displayed by the second client shown in (A) also includes a media information adding interface Q2. The virtual gift sender can trigger the media adding instruction through the media information adding interface Q2, and then the second client displays the media information adding interface Q2. Fig. 20The media information selection interface Q3 shown in (B) includes at least one media information to be added. The virtual gift sender triggers the media upload instruction through the media information selection interface Q3, and the second client determines the to-be-played media information Q4 from at least one media information to be added according to the media upload instruction. Fig. 20 The object setting interface Q1 shown in (C) also includes a thumbnail Q5 of the added media information in the object setting interface Q1, and the thumbnail Q5 of the added media information indicates that the media information has been added. In addition, when the second client sends an object transmission instruction to the server, the second client can also send the media information to be played to the server so that the server stores the media information to be played, and the media information to be played can be used by the first client to generate AR animation. It should be noted that the media information to be played may include but is not limited to images, videos and audio.
[0228] In an embodiment of the present application, a method for uploading media information to be played is provided. Through the above method, the media information to be played is determined from at least one addable media information through the media information adding interface. That is to say, the sender of the virtual gift can freely add the media information to be played according to his or her preferences, so that the recipient of the virtual gift can see the added media information to be played, thereby improving the diversity and flexibility of information interaction.
[0229] The following is a detailed description of the client in this application. Fig.21 , Fig.21 This is a schematic diagram of an embodiment of a virtual gift interaction device based on augmented reality in an embodiment of the present application. As shown in the figure, the virtual gift interaction device 30 based on augmented reality includes:
[0230] A receiving module 301 is used to receive an object scanning instruction, wherein the object scanning instruction is used to start an image acquisition device;
[0231] The display module 302 is used to display a prompt message and an image to be recognized on the object recognition interface according to the object scanning instruction, wherein the prompt message is a message generated based on the virtual gift, and the image to be recognized is an image collected by the image acquisition device;
[0232] A generation module 303 is used to generate an augmented reality animation corresponding to the virtual gift according to the image to be identified and the animation playback effect if the image to be identified matches the prompt message successfully;
[0233] The playing module 304 is used to play the augmented reality animation corresponding to the virtual gift on the image to be recognized.
[0234] Optionally, in the above Fig.21On the basis of the corresponding embodiment, in another embodiment of the virtual gift interaction device 30 based on augmented reality provided in the embodiment of the present application,
[0235] The receiving module 301 is specifically used to display a conversation prompt interface, wherein the conversation prompt interface is used to provide a scanning interface;
[0236] The object scanning instruction is received through the scanning interface.
[0237] In an embodiment of the present application, a method for receiving an object scanning instruction is provided. Through the above method, the virtual gift recipient can receive the object scanning instruction according to the scanning interface provided by the displayed conversation prompt interface through the scanning interface, thereby improving the efficiency of receiving the object scanning instruction, thereby reducing the latency of the virtual gift interaction and improving the interactivity between the gift giver and the gift recipient.
[0238] Optionally, in the above Fig.21 On the basis of the corresponding embodiment, in another embodiment of the virtual gift interaction device 30 based on augmented reality provided in the embodiment of the present application,
[0239] The display module 302 is specifically used to display a prompt message and a recognition area on the object recognition interface according to the object scanning instruction;
[0240] According to the object scanning instruction, the target image is displayed on the object recognition interface, and the image to be recognized is highlighted in the recognition area, wherein the image to be recognized is a part of the target image.
[0241] In an embodiment of the present application, another virtual gift interaction method based on augmented reality is provided. Through the above method, in the recognition area displayed on the object recognition interface, the image to be recognized is highlighted and displayed according to the recognition area, which can improve the matching speed of the image to be recognized and the prompt message, thereby improving the speed of generating augmented reality animation, so that the client used by the gift recipient can play the augmented reality animation faster, thereby improving the real-time and feasibility of virtual gift interaction.
[0242] Optionally, in the above Fig.21 On the basis of the corresponding embodiment, in another embodiment of the virtual gift interaction device 30 based on augmented reality provided by the embodiment of the present application, the virtual gift interaction device 30 based on augmented reality further includes a sending module 305, a determining module 306 and a shooting module 307;
[0243] A sending module 305 is used to send the image to be identified to the server, so that the server identifies the image to be identified based on the stored image set to obtain a recognition result, wherein the stored image set includes at least one stored image;
[0244] The determination module 306 is used for, if the recognition result is that the virtual gift has been recognized, the first client determines that the image to be recognized and the prompt message match successfully;
[0245] The shooting module 307 is used to, if the recognition result is that the virtual gift is not recognized, the first client continues to shoot the real-time image through the image acquisition device and sends the real-time image to the server so that the server can recognize the real-time image.
[0246] In an embodiment of the present application, another virtual gift interaction method based on augmented reality is provided. Through the above method, the server can identify the image to be identified based on the stored image set to obtain a recognition result, and determine based on the recognition result that the image to be identified successfully matches the prompt message, so as to improve the efficiency of generating augmented reality animation, thereby improving the efficiency of augmented reality animation playback. Secondly, because the server can identify the image stream composed of real-time images, it can generate augmented reality animation based on the real-time image, thereby improving the real-time performance of augmented reality animation playback.
[0247] Optionally, in the above Fig.21 On the basis of the corresponding embodiment, in another embodiment of the virtual gift interaction device 30 based on augmented reality provided in the embodiment of the present application,
[0248] The generating module 303 is specifically used to obtain the to-be-played media information, wherein the to-be-played media information is set by the second client;
[0249] Generate an augmented reality animation based on the image to be recognized, the animation playback effect, and the media information to be played.
[0250] In the embodiment of the present application, a method for generating an augmented reality animation is provided. Through the above method, the media information to be played set by the gift giver can be integrated with the real scene, and an augmented reality animation can be generated, and then the augmented reality animation can be played on the client used by the gift receiver, thereby improving the interactivity between the gift giver and the gift receiver. In addition, the virtual gift can be integrated with the real scene, thereby increasing the fun and flexibility of gift interaction.
[0251] Optionally, in the above Fig.21 On the basis of the corresponding embodiment, in another embodiment of the virtual gift interaction device 30 based on augmented reality provided in the embodiment of the present application,
[0252] The receiving module 301 is also used to receive an interface return instruction;
[0253] The display module 302 is further used to display a conversation prompt interface according to the interface return instruction, wherein the conversation prompt interface is used to provide an information viewing interface and an animation reproduction interface;
[0254] The display module 302 is further used to display the image corresponding to the virtual gift on the conversation prompt interface.
[0255] In an embodiment of the present application, another virtual gift interaction method based on augmented reality is provided. Through the above method, after generating and playing the augmented reality animation, it is also possible to return to the conversation prompt interface through the interface return instruction and display the virtual gift, so that the virtual gift recipient and the virtual gift sender can also see the received virtual gift when interacting with the conversation, thereby improving the interactivity between the gift giver and the gift recipient.
[0256] Optionally, in the above Fig.21 On the basis of the corresponding embodiment, in another embodiment of the virtual gift interaction device 30 based on augmented reality provided in the embodiment of the present application,
[0257] The receiving module 301 is further used to receive an information viewing instruction through an information viewing interface;
[0258] The display module 302 is also used to display a gift details interface according to the information viewing instruction, wherein the gift details interface is used to display at least one of the sender information, the receiver information and the blessing information of the virtual gift.
[0259] Optionally, in the above Fig.21 On the basis of the corresponding embodiment, in another embodiment of the virtual gift interaction device 30 based on augmented reality provided in the embodiment of the present application,
[0260] The receiving module 301 is further used to receive an animation reproduction instruction through an animation reproduction interface;
[0261] The display module 302 is further used to display the object recognition interface according to the animation reproduction instruction;
[0262] The display module 302 is also used to display prompt messages and real-time images taken by the image acquisition device on the object recognition interface.
[0263] The following is a detailed description of another client in this application, see Fig. 22 , Fig. 22 This is a schematic diagram of another embodiment of a virtual gift interaction device based on augmented reality in an embodiment of the present application. As shown in the figure, the virtual gift interaction device 40 based on augmented reality includes:
[0264] The receiving module 401 is used to receive an object selection instruction, wherein the object selection instruction carries an identifier of a virtual gift;
[0265] A display module 402, for displaying a virtual gift on an object setting interface according to an object selection instruction;
[0266] The receiving module 401 is further used to receive an object selection instruction through an object selection interface provided by the object setting interface, wherein the object selection instruction carries a recipient identifier of the virtual gift;
[0267] The receiving module 401 is also used to receive an object transfer instruction and send the virtual gift to the first client according to the object transfer instruction, wherein the object transfer instruction carries at least an identifier of the virtual gift and an identifier of a recipient of the virtual gift, and the identifier of the recipient of the virtual gift corresponds to the first client.
[0268] Optionally, in the above Fig. 22 On the basis of the corresponding embodiment, in another embodiment of the virtual gift interaction device 40 based on augmented reality provided by the embodiment of the present application, the virtual gift interaction device 40 based on augmented reality further includes an acquisition module 403;
[0269] The object setting interface includes a date setting interface. When the object transmission instruction carries the target date information,
[0270] The acquisition module 403 is used to acquire target date information through a date setting interface, wherein the target date information is the date when the first client receives the virtual gift;
[0271] Or the object setting interface includes a blessing filling area, and the object transmission instruction carries the blessing information.
[0272] The acquisition module 403 is further used to acquire the blessing information through the blessing filling area, wherein the blessing information is the information displayed by the first client on the gift details interface;
[0273] Or the object setting interface includes a package selection interface, and the object transmission instruction carries the identification of the target package,
[0274] The receiving module 401 is further configured to receive a packaging selection instruction through a packaging selection interface, wherein the packaging selection instruction carries an identifier of a target packaging, the identifier of the target packaging has a unique corresponding relationship with the target packaging, and the target packaging is a packaging image displayed when the first client receives the virtual gift;
[0275] Or when the object setting interface also includes an effect selection interface, and the object transmission instruction also carries the identifier of the animation playback effect,
[0276] The receiving module 401 is also used to receive an effect selection instruction through an effect selection interface, wherein the effect selection instruction carries an identifier of an animation playback effect, the identifier of the animation playback effect corresponds to the animation playback effect, and the animation playback effect is used by the first client to generate an augmented reality animation.
[0277] Optionally, in the above Fig. 22 On the basis of the corresponding embodiment, in another embodiment of the virtual gift interaction device 40 based on augmented reality provided by the embodiment of the present application, the virtual gift interaction device 40 based on augmented reality further includes a determination module 404 and a sending module 405;
[0278] The object setting interface also includes an interface for adding media information;
[0279] The receiving module 401 is further used to receive a media adding instruction through a media information adding interface;
[0280] The display module 402 is further used to display a media information selection interface according to the media adding instruction, wherein the media information selection interface displays at least one media information;
[0281] The receiving module 401 is also used to receive a media upload instruction;
[0282] The determination module 404 is used to determine the media information to be played from at least one media information according to the media upload instruction; the sending module 405 is used to send the media information to be played to the server when the second client sends an object transmission instruction to the server, so that the server stores the media information to be played, and the media information to be played is used by the first client to generate an augmented reality animation.
[0283] The present application also provides another virtual gift interaction device based on augmented reality, see Fig.23 As shown in the figure, for the sake of convenience, only the part related to the embodiment of the present application is shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The client is deployed on a terminal device, and the terminal device can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a car computer, etc. In this embodiment, the terminal is taken as an example of a mobile phone:
[0284] Fig.23 FIG. 1 is a block diagram showing a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application. Fig.23The mobile phone includes: a radio frequency (RF) circuit 1110, a memory 1120, an input unit 1130, a display unit 1140, a sensor 1150, an audio circuit 1160, a wireless fidelity (WiFi) module 1170, a processor 1180, and a power supply 1190. Those skilled in the art will understand that Fig.23 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0285] Combine the following Fig.23 A detailed introduction to the various components of the mobile phone:
[0286] The RF circuit 1110 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 1180 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 1110 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the RF circuit 1110 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.
[0287] The memory 1120 can be used to store software programs and modules. The processor 1180 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1120. The memory 1120 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1120 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0288] The input unit 1130 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. The touch panel 1131, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1131 or near the touch panel 1131 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 1131 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 1180, and can receive and execute the command sent by the processor 1180. In addition, the touch panel 1131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1131, the input unit 1130 may also include other input devices 1132. Specifically, other input devices 1132 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.
[0289] The display unit 1140 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1140 may include a display panel 1141. Optionally, the display panel 1141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 1131 may cover the display panel 1141. When the touch panel 1131 detects a touch operation on or near it, it is transmitted to the processor 1180 to determine the type of touch event. Subsequently, the processor 1180 provides a corresponding visual output on the display panel 1141 according to the type of touch event. Although in Fig.23 In the embodiment, the touch panel 1131 and the display panel 1141 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 1131 and the display panel 1141 can be integrated to realize the input and output functions of the mobile phone.
[0290] The mobile phone may also include at least one sensor 1150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1141 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0291] The audio circuit 1160, the speaker 1161, and the microphone 1162 can provide an audio interface between the user and the mobile phone. The audio circuit 1160 can transmit the received audio data to the speaker 1161 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 1162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1160 and converted into audio data, and then the audio data is output to the processor 1180 for processing, and then sent to another mobile phone through the RF circuit 1110, or the audio data is output to the memory 1120 for further processing.
[0292] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 1170. It provides users with wireless broadband Internet access. Fig.23 A WiFi module 1170 is shown, but it is understandable that it is not an essential component of the mobile phone.
[0293] The processor 1180 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of the mobile phone and processes data by running or executing software programs and / or modules stored in the memory 1120, and calling data stored in the memory 1120. Optionally, the processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1180.
[0294] The mobile phone also includes a power supply 1190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 1180 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption management.
[0295] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0296] In the embodiment of the present application, the processor 1180 included in the terminal may execute the aforementioned Figure 2 The function of the first client in the embodiment shown may be to execute the aforementioned Fig.14 The functions of the second client in the illustrated embodiment will not be described in detail here.
[0297] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0298] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0299] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0300] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0301] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., and other media that can store program codes.
[0302] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A virtual gift interaction method based on augmented reality, characterized in that: include: The first client receives an object scanning instruction, wherein the object scanning instruction is used to start an image acquisition device; The first client displays a prompt message and an image to be recognized on an object recognition interface according to the object scanning instruction, wherein the prompt message is a message generated based on a virtual gift, and the image to be recognized is an image captured by the image acquisition device; If the image to be identified matches the prompt message successfully, the first client obtains the media information to be played, wherein the media information to be played is freely added by the sender of the virtual gift through the second client; The first client combines the media information to be played and the image to be recognized, and generates an augmented reality animation corresponding to the virtual gift in combination with an animation playback effect; The first client plays an augmented reality animation corresponding to the virtual gift on the image to be identified.
2. The method according to claim 1, characterized in that The first client receives an object scanning instruction, including: The first client displays a session prompt interface, wherein the session prompt interface is used to provide a scanning interface; The first client receives the object scanning instruction through the scanning interface.
3. The method according to claim 1, characterized in that: The first client displays a prompt message and an image to be recognized on an object recognition interface according to the object scanning instruction, including: The first client displays the prompt message and the recognition area on the object recognition interface according to the object scanning instruction; The first client displays the target image on the object recognition interface according to the object scanning instruction, and highlights the image to be recognized in the recognition area, wherein the image to be recognized is a part of the target image.
4. The method according to claim 1, characterized in that The method further comprises: The first client sends the image to be recognized to the server, so that the server recognizes the image to be recognized based on a stored image set to obtain a recognition result, wherein the stored image set includes at least one stored image; If the recognition result is that the virtual gift has been recognized, the first client determines that the image to be recognized matches the prompt message successfully; If the recognition result is that the virtual gift is not recognized, the first client continues to capture real-time images through the image acquisition device and sends the real-time images to the server so that the server recognizes the real-time images.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The first client receives an interface return instruction; The first client displays a session prompt interface according to the interface return instruction, wherein the session prompt interface is used to provide an information viewing interface and an animation reproduction interface; The first client displays an image corresponding to the virtual gift on the session prompt interface.
6. The method according to claim 5, characterized in that After the first client displays the session prompt interface according to the interface return instruction, the method further includes: The first client receives an information viewing instruction through the information viewing interface; The first client displays a gift details interface according to the information viewing instruction, wherein the gift details interface is used to display at least one of the sender information, the receiver information and the blessing information of the virtual gift.
7. The method according to claim 5, characterized in that After the first client displays the session prompt interface according to the interface return instruction, the method further includes: The first client receives an animation reproduction instruction through the animation reproduction interface; The first client displays the object recognition interface according to the animation reproduction instruction; The first client displays the prompt message and the real-time image captured by the image acquisition device on the object recognition interface.
8. A virtual gift interaction method based on augmented reality, characterized in that: include: The second client receives an object selection instruction, wherein the object selection instruction carries an identifier of the virtual gift; The second client displays the virtual gift on the object setting interface according to the object selection instruction; The second client receives an object selection instruction through an object selection interface provided by the object setting interface, wherein the object selection instruction carries an identifier of a recipient of the virtual gift; The second client receives the object transmission instruction, and sends the object transmission instruction to the server, so that the server sends the virtual gift to the first client according to the object transmission instruction, wherein the object transmission instruction carries at least the identifier of the virtual gift and the identifier of the recipient of the virtual gift, and the identifier of the recipient of the virtual gift has a corresponding relationship with the first client; When the second client sends the object transfer instruction to the server, it also sends the media information to be played to the server, so that the server stores the media information to be played; the media information to be played is freely added by the sender of the virtual gift through the second client; wherein, the media information to be played is used to be combined with the image to be recognized collected by the first client of the recipient of the virtual gift, and combined with the animation playback effect, to generate an augmented reality animation corresponding to the virtual gift on the first client; the image to be recognized matches the prompt information of the virtual gift.
9. The method according to claim 8, characterized in that The object setting interface includes a date setting interface, and when the object transmission instruction carries target date information, the method further includes: The second client obtains the target date information through the date setting interface, wherein the target date information is the date when the first client receives the virtual gift; Or when the object setting interface includes a blessing filling area, and the object transmission instruction carries blessing information, the method further includes: The second client obtains the blessing information through the blessing filling area, wherein the blessing information is the information displayed by the first client on the gift details interface; Or when the object setting interface includes a package selection interface, and the object transmission instruction carries an identifier of a target package, the method further includes: The second client receives a packaging selection instruction through the packaging selection interface, wherein the packaging selection instruction carries an identifier of the target packaging, the identifier of the target packaging has a unique corresponding relationship with the target packaging, and the target packaging is a packaging image displayed by the first client when receiving the virtual gift; Or when the object setting interface further includes an effect selection interface, and the object transmission instruction further carries the identifier of the animation playback effect, the method further includes: The second client receives an effect selection instruction through the effect selection interface, wherein the effect selection instruction carries an identifier of the animation playback effect, the identifier of the animation playback effect corresponds to the animation playback effect, and the animation playback effect is used by the first client to generate the augmented reality animation.
10. The method according to claim 8 or 9, characterized in that: The object setting interface also includes a media information adding interface; The method further comprises: The second client receives a media adding instruction through a media information adding interface; The second client displays a media information selection interface according to the media adding instruction, wherein the media information selection interface displays at least one media information; The second client receives a media upload instruction; The second client determines the to-be-played media information from the at least one media information according to the media upload instruction.
11. A virtual gift interaction device based on augmented reality, characterized in that: Applied to a first client, the device comprises: A receiving module, used for receiving an object scanning instruction, wherein the object scanning instruction is used for starting an image acquisition device; A display module, configured to display a prompt message and an image to be recognized on an object recognition interface according to the object scanning instruction, wherein the prompt message is a message generated based on a virtual gift, and the image to be recognized is an image captured by the image acquisition device; A generation module, configured to obtain the media information to be played if the image to be identified successfully matches the prompt message, combine the media information to be played and the image to be identified, and generate an augmented reality animation corresponding to the virtual gift in combination with an animation playback effect, wherein the media information to be played is freely added by the sender of the virtual gift through the second client; A playing module is used to play the augmented reality animation corresponding to the virtual gift on the image to be identified.
12. A virtual gift interaction device based on augmented reality, characterized in that: Applied to a second client, the device comprises: A receiving module, configured to receive an object selection instruction, wherein the object selection instruction carries an identifier of a virtual gift; A display module, used for displaying the virtual gift on the object setting interface according to the object selection instruction; The receiving module is further configured to receive an object selection instruction through an object selection interface provided by the object setting interface, wherein the object selection instruction carries an identifier of a recipient of the virtual gift; The receiving module is further used to receive an object transmission instruction and send the object transmission instruction to the server, so that the server sends the virtual gift to the first client according to the object transmission instruction, wherein the object transmission instruction carries at least an identifier of the virtual gift and an identifier of a recipient of the virtual gift, and the identifier of the recipient of the virtual gift has a corresponding relationship with the first client; A sending module, used for sending media information to be played to the server when the second client sends the object transfer instruction to the server, so that the server stores the media information to be played; the media information to be played is freely added by the sender of the virtual gift through the second client; wherein the media information to be played is used to be combined with the image to be recognized collected by the first client of the recipient of the virtual gift, and combined with the animation playback effect, to generate an augmented reality animation corresponding to the virtual gift on the first client; the image to be recognized matches the prompt information of the virtual gift.
13. A terminal device, characterized in that: include: Memory and processor; Wherein, the memory is used to store program code; The processor is used to execute the program code in the memory, and the processor is used to execute the method of any one of claims 1 to 7 according to the instructions in the program code, or execute the method of any one of claims 8 to 10.
14. A computer-readable storage medium comprising instructions, which, when executed on a computer, enables the computer to execute the method according to any one of claims 1 to 7, or the method according to any one of claims 8 to 10.
