Information processing method and apparatus, electronic device, storage medium, and computer program product
By generating augmented reality scenarios corresponding to the real environment on the client and recording media content, the problem of low user experience of existing AR functions is solved, and richer interaction methods and higher user experience are achieved.
Patent Information
- Application Number
- PCT/CN2025/073986
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-23
- Filing Date
- 2025-01-22
- Publication Date
- 2025-07-31
AI Technical Summary
The augmented reality features provided by existing applications are not very user-experienced and lack rich ways of interacting.
The client responds to user operations, acquires the real environment image, generates augmented reality scene corresponding to the real elements, displays mobile guidance information, and records media content based on the AR scene to generate target media content.
It enriches the interaction between users and AR and improves the user experience.
Smart Images

Figure CN2025073986_31072025_PF_FP_ABST
Abstract
Description
Information processing method and device, electronic device, storage medium and computer program product
[0001] This application claims priority to Chinese Patent Application No. 202410095851.2 filed on January 23, 2024, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field
[0002] Embodiments of the present disclosure relate to an information processing method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product. Background Art
[0003] With the development of computer technology, augmented reality (AR) technology has emerged, which can integrate virtual information and the real world.
[0004] Currently, some applications have AR functions, and users can use the AR functions provided by the applications. However, the AR functions provided by the current applications do not provide a good user experience. Summary of the Invention
[0005] Embodiments of the present disclosure provide an information processing method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
[0006] In a first aspect, an embodiment of the present disclosure provides an information processing method, the method comprising:
[0007] In response to a setting operation on a target dressing resource, dressing a preset virtual object based on the target dressing resource to obtain a target virtual object;
[0008] In response to a usage operation that triggers a target function, obtaining an image captured by a client, wherein the image includes an image of a real environment in which the client is located;
[0009] Displaying an augmented reality scene corresponding to the image, wherein the augmented reality scene includes a target virtual element generated based on a real element in the real environment;
[0010] Displaying movement guidance information based on the target virtual element, and recording media content based on the augmented reality scene;
[0011] Target media content is generated based on the target virtual object and the recorded media content.
[0012] Optionally, the method further includes at least one of the following:
[0013] In response to a publishing operation, publishing the target media content;
[0014] In response to a sending operation, the target media content is sent.
[0015] Optionally, the target virtual element is a virtual traveling area, and the real element includes: a walkable area.
[0016] Optionally, recording media content based on the augmented reality scene includes:
[0017] Obtaining a first motion trajectory of the client in the walkable area;
[0018] determining a second motion trajectory corresponding to the first motion trajectory in the virtual traveling area;
[0019] The augmented reality scene is recorded according to the second motion trajectory.
[0020] Optionally, generating target media content based on the target virtual object and the recorded media content includes:
[0021] The target virtual object is added to the media content to obtain the target media content, wherein the target virtual object moves along the second motion trajectory in the virtual traveling area.
[0022] Optionally, recording the augmented reality scene according to the second motion trajectory includes:
[0023] According to the second motion trajectory, the augmented reality scene is recorded from the perspective of the target virtual object.
[0024] Optionally, the target media content is generated from a perspective of viewing the target virtual object.
[0025] Optionally, before dressing up the preset virtual object based on the target dressing resource to obtain the target virtual object, the method further includes:
[0026] Obtain facial images;
[0027] Based on the facial image, the preset virtual object is generated, where the preset virtual object includes the face in the facial image.
[0028] Optionally, generating target media content based on the target virtual object and the recorded media content includes:
[0029] In response to a media content generation operation triggered in a page displaying the augmented reality scene, target media content is generated based on the target virtual object and the recorded media content.
[0030] Optionally, the media content generation operation includes:
[0031] End the operation using the target function.
[0032] Optionally, generating target media content based on the target virtual object and the recorded media content includes:
[0033] In response to the client moving to a first specific position in the walkable area, target media content is generated based on the target virtual object and the recorded media content, where the first specific position corresponds to an end point of the virtual travel area.
[0034] Optionally, the method further includes:
[0035] In response to the client moving to a second specific position in the walkable area, interaction guidance information is output, where the interaction guidance information is used to prompt the user to perform a preset interaction action.
[0036] In a second aspect, an embodiment of the present disclosure provides an information processing device, the device comprising:
[0037] a first acquiring unit configured to, in response to a setting operation on a target dressing resource, dress up a preset virtual object based on the target dressing resource to obtain a target virtual object;
[0038] A second acquisition unit is configured to acquire an image captured by a client in response to a usage operation that triggers a target function, wherein the image includes an image of a real environment in which the client is located;
[0039] a first display unit configured to display an augmented reality scene corresponding to the image, wherein the augmented reality scene includes a target virtual element generated based on a real element in the real environment;
[0040] a second display unit, configured to display movement guidance information based on the target virtual element;
[0041] a recording unit, configured to record media content based on the augmented reality scene;
[0042] The first generating unit is configured to generate target media content based on the target virtual object and the recorded media content.
[0043] Optionally, the device further includes at least one of the following:
[0044] a publishing unit, configured to publish the target media content in response to a publishing operation;
[0045] The sending unit is configured to send the target media content in response to a sending operation.
[0046] Optionally, the target virtual element is a virtual traveling area, and the real element includes: a walkable area.
[0047] Optionally, the recording unit is specifically configured to:
[0048] Obtaining a first motion trajectory of the client in the walkable area;
[0049] determining a second motion trajectory corresponding to the first motion trajectory in the virtual traveling area;
[0050] The augmented reality scene is recorded according to the second motion trajectory.
[0051] Optionally, the first generating unit is configured to:
[0052] The target virtual object is added to the media content to obtain the target media content, wherein the target virtual object moves along the second motion trajectory in the virtual traveling area.
[0053] Optionally, recording the augmented reality scene according to the second motion trajectory includes:
[0054] According to the second motion trajectory, the augmented reality scene is recorded from the perspective of the target virtual object.
[0055] Optionally, the target media content is generated from a perspective of viewing the target virtual object.
[0056] Optionally, the device further includes: a third acquiring unit and a second generating unit;
[0057] The third acquisition unit is configured to acquire a facial image before dressing up the preset virtual object based on the target dressing resource to obtain the target virtual object;
[0058] The second generating unit generates the preset virtual object based on the facial image, where the preset virtual object includes the face in the facial image.
[0059] Optionally, the first generating unit is configured to:
[0060] In response to a media content generation operation triggered in a page displaying the augmented reality scene, target media content is generated based on the target virtual object and the recorded media content.
[0061] Optionally, the media content generation operation includes:
[0062] End the operation using the target function.
[0063] Optionally, the first generating unit is configured to:
[0064] In response to the client moving to a first specific position in the walkable area, target media content is generated based on the target virtual object and the recorded media content, where the first specific position corresponds to an end point of the virtual travel area.
[0065] Optionally, the device further includes:
[0066] The output unit is configured to output interaction guidance information in response to the client moving to a second specific position in the walkable area, where the interaction guidance information is used to prompt the user to perform a preset interaction action.
[0067] In a third aspect, an embodiment of the present disclosure provides an electronic device, the device including a processor and a memory;
[0068] The processor is configured to execute instructions stored in the memory, so that the electronic device performs the method as described in any one of the first aspects above.
[0069] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium comprising instructions, wherein the instructions instruct a device to execute a method as described in any one of the above first aspects.
[0070] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0072] FIG1 is a flow chart of an information processing method provided by an embodiment of the present disclosure;
[0073] FIG2 is a flow chart of a method for recording media content provided by an embodiment of the present disclosure;
[0074] FIG3 is a flow chart of another information processing method provided by an embodiment of the present disclosure;
[0075] FIG4a is a schematic diagram of a first page provided by an embodiment of the present disclosure;
[0076] FIG4 b is a schematic diagram of another first page provided by an embodiment of the present disclosure;
[0077] FIG4c is a schematic diagram of an image provided by an embodiment of the present disclosure;
[0078] FIG4 d is a schematic diagram of an AR scene provided by an embodiment of the present disclosure;
[0079] FIG4e is a schematic diagram of a page provided by an embodiment of the present disclosure; and
[0080] FIG5 is a schematic structural diagram of an information processing device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0081] In order to enable those skilled in the art to better understand the solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the embodiments described are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0082] The inventors of the present disclosure have discovered through research that the AR functions currently provided by applications simply overlay virtual information on the real world to create a corresponding AR scene. Users can perform simple interactive operations in this AR scene, resulting in a poor user experience.
[0083] In order to solve the above problems, the embodiments of the present disclosure provide an information processing method and device, an electronic device, a computer-readable storage medium, and a computer program product. The information processing method can be applied to a client, for example. A user can trigger a setting operation of a target dressing resource on the client. Accordingly, the client can respond to the setting operation of the target dressing resource and dress up a preset virtual object based on the set target dressing resource, thereby obtaining a dressed target virtual object. Furthermore, the user can trigger a target function use operation on the client. After the user triggers the target function enable operation, the client can respond to the use operation of the target function and obtain an image captured by the client, which is an image of the real environment in which the client is located. After obtaining the image, the client can display an AR scene corresponding to the aforementioned image, and the AR scene includes a target virtual element generated based on the real elements in the real environment. Furthermore, the client can display movement guidance information based on the target virtual element and record media content based on the AR scene. In addition, target media content is generated based on the target virtual object and the recorded media content. This solution provides a new AR-based interaction method, through which users can obtain target media content synthesized based on target virtual objects and recorded media content, enriching the interaction method and, accordingly, improving the user experience of using AR functions.
[0084] Various non-limiting embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0085] Referring to Figure 1, which is a flow chart of an information processing method provided by an embodiment of the present disclosure, the information processing method provided by the embodiment of the present disclosure can be applied to a client, which can be run on a device, such as a mobile terminal device such as a mobile phone, a laptop computer, or a tablet computer.
[0086] In this embodiment, the information processing method may include the following steps: S101-S105.
[0087] S101: In response to a setting operation on a target dressing resource, dressing a preset virtual object based on the target dressing resource to obtain a target virtual object.
[0088] In an embodiment of the present disclosure, a user can trigger a costume resource setting operation on a client. Accordingly, the client can display corresponding candidate costume resources in response to the costume resource setting operation. The user can select a target costume resource from the candidate costume resources to set the target costume resource. After the user sets the target costume resource, the client can obtain the target costume resource set by the user and further dress up a preset virtual object based on the target costume resource, thereby obtaining the target virtual object dressed up using the target costume resource.
[0089] The virtual objects mentioned in the embodiments of the present disclosure (such as preset virtual objects, target virtual objects, and the initial virtual objects and default virtual objects mentioned below) can be any type of objects. For example, the virtual objects can be virtual characters, or virtual animals, etc., which are not listed here one by one.
[0090] The dressing resources (such as candidate dressing resources and target dressing resources) mentioned in the embodiments of the present disclosure are used to dress up virtual objects, and the dressing resources include but are not limited to resources such as clothing and accessories.
[0091] In one example, to further enhance the user experience, when the virtual object is a person, the face of the preset virtual object can be user-defined. In this case, before executing S101, the following steps A1-A2 can be performed to obtain the preset virtual object.
[0092] A1: Obtain a facial image.
[0093] In one example, when a user triggers a first operation, the client can obtain a facial image in response to receiving the first operation. The present disclosure does not specifically limit the first operation; for example, the first operation can be triggered by an interactive control related to a target function. For example, the first operation can be triggered by an interactive control that prompts the user to experience the target function.
[0094] As a specific example, the client may, in response to receiving the first operation, call an image acquisition device to acquire a facial image of the user. As another example, the client may acquire a facial image selected by the user from a gallery.
[0095] A2: Based on the facial image, a preset virtual object is generated, where the preset virtual object includes the face in the facial image.
[0096] After acquiring the facial image, a preset virtual object can be generated using the facial image. In one example, the preset virtual object can be generated based on the facial image and an initial virtual object. Specifically, the face in the facial image can be used as the face of the preset virtual object. The initial virtual object mentioned here can be, for example, a default virtual object determined by the client.
[0097] S102: In response to the use operation that triggers the target function, an image captured by the client is obtained, where the image includes the real environment where the client is located.
[0098] After obtaining the target virtual object, the user can trigger the target function usage operation on the client. In one example, the user can trigger the target function usage operation on the first page displayed on the client. The first page can include a target function usage control, and the user can trigger the target function usage operation through the target function usage control. For example, the user can trigger the target function usage operation by clicking the target function usage control.
[0099] The present disclosure does not specifically limit the target function, and the target function may be an AR-related function. For example, the target function may be an online fashion show function. In another example, the target function may be a path retracing function (for example, retracing a classic path).
[0100] After the user triggers the target function operation, the client can obtain the image captured by itself. The image captured by the client can be, for example, an image taken by an image capture device on the device running the client. In a specific example, the device may include an image capture device, and after the user triggers the target function operation, the client can request to call the image capture device to take a photo of the real environment in which it is located, thereby obtaining an image. Therefore, the obtained image is an image that includes the real environment in which the device is located. In other words, the image content of the image includes the real environment in which the device is located. Specifically, the image content of the image includes multiple real elements in the real environment.
[0101] The embodiments of the present disclosure do not specifically limit the real environment, and the real environment can be determined according to the actual environment of the client.
[0102] S103: Displaying an AR scene corresponding to the image, where the AR scene includes target virtual elements generated based on real elements in the real environment.
[0103] As previously mentioned, the image content of the image includes multiple real elements included in the real environment. In one example, the target virtual element may be a virtual element necessary to achieve the target function. In this case, the aforementioned multiple real elements include at least a real element corresponding to the target virtual element. In one example, the target virtual element may be a virtual travel area, and accordingly, the real element corresponding to the target virtual element may be a walkable area.
[0104] The so-called virtual travel area refers to an area that can be used for travel. For example: in the scenario where the above target function is the online fashion show function, the virtual travel area can be, for example, the stage corresponding to the online fashion show. The stage for the online fashion show can also be called a "T" stage. Correspondingly, in the case where the above target function is the path retracing function, the virtual travel area can be the path to be retraced.
[0105] The so-called walkable area refers to an area that can be used for walking. For example, the walkable area can be a road, or it can be an area other than a road where users can walk, such as an aisle between desks in an office area.
[0106] In one example, after acquiring the aforementioned image, the image may be processed using AR technology to obtain an AR scene corresponding to the image for realizing the target function.
[0107] Specifically, the target virtual element in the AR scene can be generated based on the real element corresponding to the target virtual element in the image. In addition, other virtual elements of other content in the AR scene can be generated based on other content in the image other than the real element corresponding to the target virtual element. Based on the target virtual element and other virtual elements, an AR scene corresponding to the image for realizing the target function can be obtained. It is not difficult to understand that the AR scene includes the target virtual element and other virtual elements.
[0108] In the solution provided by the embodiments of the present disclosure, the target virtual elements in the AR scene are generated based on real elements in the real environment, rather than pre-generated general elements that are unrelated to the real environment. Therefore, the target virtual elements in the resulting AR scene can better match the real environment in which the client is located. The real environment in which the client is located is the real environment in which the user is located. Therefore, the AR scene is more compatible with the user's real environment, and accordingly, the user experience obtained by completing the target function based on the AR scene is higher.
[0109] After obtaining the AR scene, the client can display the AR scene.
[0110] S104: Displaying movement guidance information based on the target virtual element, and recording media content based on the AR scene.
[0111] After acquiring the AR scene, the client can display movement guidance information based on the target virtual element. This movement guidance information can be used to instruct the user to move with the aforementioned device within a walkable area in the real environment. In one example, the movement guidance information can be displayed on a second page displaying the AR scene, for example, displaying "Pick up your phone and walk forward to start your fashion show."
[0112] Based on the movement guidance information, users can move in the walkable area in the real environment. Correspondingly, the client can record media content based on the AR scene.
[0113] In one example, the client may record the content in the AR scene to obtain media content. The media content mentioned here may be, for example, a video.
[0114] In a specific example, when the client records the content in the AR scene, the specific implementation may include S201-S203 shown in Figure 2. Figure 2 is a flowchart of a method for recording media content provided by an embodiment of the present disclosure.
[0115] S201: Obtain a first motion trajectory of the client in a walkable area.
[0116] In one example, the client may request a device location permission, and upon obtaining user consent, use the device's location function to locate the device, thereby obtaining a first motion trajectory. The first motion trajectory may include multiple first trajectory points.
[0117] S202: Determine a second motion trajectory corresponding to the first motion trajectory in the virtual travel area.
[0118] After obtaining the first motion trajectory, the second trajectory points corresponding to the aforementioned multiple first trajectory points in the AR scene can be determined based on the correspondence between the real environment and the AR scene, for example, based on the correspondence between the first coordinate system corresponding to the real environment and the second coordinate system corresponding to the AR scene. Furthermore, based on the multiple second trajectory points, a second motion trajectory including multiple second trajectory points can be obtained.
[0119] S203: Recording the AR scene according to the second motion trajectory.
[0120] After obtaining the second motion trajectory, the AR scene can be recorded according to the second motion trajectory. In a specific example, content can be recorded separately for each second trajectory point in the second motion trajectory. Further, the recorded content corresponding to each second trajectory point is merged to obtain media content.
[0121] S105: Generate target media content based on the target virtual object and the recorded media content.
[0122] In one example, a target virtual object may be added to the media content to obtain target media content. The target media content mentioned here may be, for example, a target video.
[0123] The disclosed embodiments do not specifically limit the method of adding a target virtual object to the media content. In a specific example, a target virtual object can be added to the media content, and the target virtual object moves along a second trajectory in the AR scene. In other words, the target media content is: the target virtual object moves in the virtual traveling area with the second motion trajectory as the traveling trajectory. For this case, if the user walks in the real environment, the client can automatically obtain the walking route (i.e., the second motion trajectory) in the AR scene based on the user's walking route (i.e., the first motion trajectory), and generate target media content in which the target virtual object uses the second motion trajectory as the walking trajectory in the virtual traveling area, thereby realizing the linkage between the real environment and the AR scene.
[0124] In one example, in order to make the target media content more vivid, S203 can be implemented to record the AR scene from the perspective of the target virtual object according to the second motion trajectory. As a specific example, for each second trajectory point in the second motion trajectory, the content within the perspective of the target virtual object can be recorded from the perspective of the target virtual object at the second trajectory point to obtain the recorded content corresponding to the second trajectory point. Of course, the AR scene can also be recorded from other perspectives, which is not specifically limited in the present embodiment.
[0125] In one example, although the recorded video is from the perspective of the currently walking user, in order to make the target media content consistent with the perspective of other users watching the target virtual object moving in the virtual travel area, the target media content can be generated from the perspective of the target virtual object. This approach can enhance the viewing experience of the target media content.
[0126] The present disclosure does not specifically limit the timing of executing S105. In a specific example, after receiving a user-triggered media content generation operation, the client may execute S105 in response to the media content generation operation. For example, the second page displaying the AR scene may include a media content generation control, and the user may trigger the media content generation operation. For example, the user may click the media content generation control to trigger the media content generation operation.
[0127] In one example, the media content generation operation may be an operation for ending the use of the target function. Accordingly, the media content generation control may be a control for ending the use of the target function. For example, in the case where the target function is an online catwalk function, the operation for ending the use of the target function may be an end catwalk operation, and accordingly, the control for ending the use of the target function may be an end catwalk control. In this case, the client may generate the target media content when the user actively ends the use of the target function. Of course, the media content video generation operation may also be an operation that is only used to trigger the generation of the target media content, which does not have the function of ending the use of the target function.
[0128] In another example, the client may also execute S105 upon detecting completion of the target function. Specifically, the client may determine that the target function is completed when the target virtual object reaches the end of the aforementioned virtual travel area. The end of the virtual travel area may correspond to the first specific location in the aforementioned walkable area. Therefore, the client may execute S105 upon moving to the aforementioned first specific location.
[0129] From the above description, it can be seen that this solution provides a new AR-based interaction method, through which users can obtain target media content synthesized based on target virtual objects and recorded media content, enriching the interaction method and, accordingly, improving the user experience of users using AR functions.
[0130] In one example, after the client generates the target media content, it may output the target media content, and the user may trigger a viewing operation for the target media content.
[0131] In one example, after the client outputs the target media content, the user can also trigger a publishing operation for the target media content. For example, the user can trigger the publishing operation through a publishing control. Accordingly, the client can publish the target media content in response to the publishing operation. In this way, other users can view the target media content.
[0132] In one example, after the client outputs the target media content, the user may also trigger a send operation for the target media content. For example, the user may trigger the send operation using a send control. Accordingly, the client may send the target media content to a predetermined recipient in response to the send operation. The predetermined recipient mentioned herein may be, for example, a client of another user selected by the user.
[0133] In another example, to facilitate users in obtaining detailed information about target costume resources for a target virtual object and improve information acquisition efficiency, users can also trigger a costume resource viewing operation. For example, users can trigger this costume resource viewing operation using a costume resource viewing control. As a specific example, when a client outputs target media content, it can also display a costume resource viewing control on the target media content's display page.
[0134] If the user triggers a costume resource viewing operation, the client can respond to the costume resource viewing operation by jumping to the page corresponding to the costume resource, for example, jumping to the store corresponding to the costume resource, or jumping to the store details page corresponding to the costume resource. In this way, the user can obtain detailed information about the costume resource through the corresponding page of the costume resource, which is highly efficient.
[0135] In one example, to further enhance the user experience, the client can prompt the user to perform a preset interactive action when the user moves with the device in a walkable area. As a specific example, the client can output interactive guidance information when the client moves to a second specific location in the walkable area, and the interactive guidance information is used to prompt the user to perform a preset interactive action.
[0136] The embodiment of the present disclosure does not specifically limit the second specific position, and the second specific position can be any position in the walkable area. For example, the second specific area can correspond to the middle position of the aforementioned virtual travel area.
[0137] The embodiments of the present disclosure do not specifically limit the preset interactive operations. The preset interactive operations can be any operations that can be performed by the user when walking (such as a fashion show), such as waving or bowing to the audience, etc., which are not listed here one by one.
[0138] In one example, the output of the interactive guidance information may be implemented by displaying the interactive guidance information on a second page displaying the AR scene, for example, displaying "Wave to the audience." In another example, the output of the interactive guidance information may be implemented by playing the interactive guidance information by voice.
[0139] The above introduces the information processing method provided by the embodiment of the present disclosure. Next, taking the target function as the online fashion show function as an example, the process of users using the target function is introduced in combination with the accompanying drawings.
[0140] Referring to Figure 3, which is a flow chart of another information processing method provided by an embodiment of the present disclosure, the method shown in Figure 3 may include the following steps S301-S312.
[0141] S301: The user triggers the online fashion show experience operation on the first page.
[0142] The first page may be, for example, as shown in Figure 4a, which shows a schematic diagram of the first page. For example, a user may trigger an online fashion show experience operation through the online fashion show experience control 401 on the first page 400 shown in Figure 4a.
[0143] S302: The client prompts the user to perform facial recognition in response to the online fashion show experience operation.
[0144] S303: After the user agrees to facial recognition, the camera is turned on to capture the user's face, and the client obtains the facial image.
[0145] S304: The client obtains the virtual character 1 including the face included in the facial image based on the facial image.
[0146] The virtual character 1 may correspond to the preset virtual object in the above method embodiment.
[0147] S305: The client displays a costume resource setting page, and the user sets a target costume resource on the costume resource setting page.
[0148] S306: The client dresses up the virtual character 1 based on the target dressing resource to obtain the virtual character 2.
[0149] The virtual character 2 may correspond to the target virtual object in the above method embodiment.
[0150] For further understanding, please refer to Figure 4b, which shows another schematic diagram of the first page. As shown in Figure 4b, the first page 400 displays an avatar 402 (corresponding to avatar 2) and a start control 403. The start online fashion show control mentioned here can correspond to the target function usage control in the above embodiment.
[0151] It should be noted that the virtual character 402 in Figure 4b is shown only for ease of understanding and does not constitute a limitation on the embodiments of the present disclosure. In actual applications, the target costume resources worn by the target virtual character can be of various types.
[0152] S307: The user triggers the start of the online fashion show operation through the start control 403.
[0153] In one example, if the user is not satisfied with the dress of the virtual character 402, the user may trigger the "re-dress" control shown in FIG4b to re-set the corresponding target dress resources for the virtual character.
[0154] S308: In response to starting the online fashion show operation, the client prompts the user to shoot the real environment and obtains the shot image.
[0155] This image can be understood with reference to FIG4c, which is a schematic diagram of an image provided by an embodiment of the present disclosure. FIG4c shows an image including a road 404 and other elements 405. In FIG4c, other elements are represented by "XXX".
[0156] S309: The client generates an AR scene based on the image and displays the AR scene.
[0157] The AR scene can be understood by referring to FIG4 d , which is a schematic diagram of an AR scene provided by an embodiment of the present disclosure. As shown in FIG4 d , the AR scene includes a stage 406 generated using a road 404 and other virtual elements 407 corresponding to other elements 405 .
[0158] S310: The user walks on the road 404 with the device. The client obtains a first motion trajectory of the user, and obtains a second motion trajectory based on the first motion trajectory. Further, according to the second motion trajectory, the augmented reality scene is recorded from the perspective of the target virtual object.
[0159] S311: After detecting the end of the fashion show, the client adds a target virtual object to the recorded video to obtain a target video, wherein the target virtual object moves along a second motion trajectory on the stage.
[0160] S312: The client outputs the target video.
[0161] For further understanding, please refer to Figure 4e, which is a schematic diagram of a page provided in an embodiment of the present disclosure. As shown in Figure 4e, the page includes a target video identifier 408. The target video identifier 408 may include, for example, a video cover for the target video, which may include a virtual object (as shown) and a catwalk stage (not shown).
[0162] In addition, the page also displays a publishing control 409, a dressing resource viewing control 410, a play control 411 and a send control 412. The user can trigger the publishing control 409 to publish the target video, the user can trigger the dressing resource viewing control 410 to view the page corresponding to the dressing resource, the user can trigger the play control 411 to play the target video, and the user can trigger the send control 412 to send the target video.
[0163] For the specific implementation of each step S301-S312, please refer to the relevant description part above, and no repeated description is given here.
[0164] Based on the methods provided in the above embodiments, an embodiment of the present disclosure further provides a device, which is described below in conjunction with the accompanying drawings.
[0165] Referring to Figure 5, which is a schematic diagram of the structure of an information processing device provided by an embodiment of the present disclosure, the information processing device 500 shown in Figure 5 can be used to execute the information processing method provided by the above method embodiment.
[0166] As shown in FIG5 , the information processing device 500 includes: a first acquiring unit 501 , a second acquiring unit 502 , a first display unit 503 , a second display unit 504 , a recording unit 505 and a first generating unit 506 .
[0167] A first acquiring unit 501 is configured to, in response to a setting operation on a target dressing resource, dress up a preset virtual object based on the target dressing resource to obtain a target virtual object;
[0168] The second acquisition unit 502 is configured to acquire an image captured by the client in response to the use operation that triggers the target function, where the image includes the real environment where the client is located;
[0169] A first display unit 503 is configured to display an augmented reality scene corresponding to the image, where the augmented reality scene includes a target virtual element generated based on a real element in the real environment;
[0170] The second display unit 504 is configured to display movement guidance information based on the target virtual element;
[0171] The recording unit 505 is configured to record media content based on the augmented reality scene;
[0172] The first generating unit 506 is configured to generate target media content based on the target virtual object and the recorded media content.
[0173] Optionally, the device further includes at least one of the following:
[0174] a publishing unit, configured to publish the target media content in response to a publishing operation;
[0175] The sending unit is configured to send the target media content in response to a sending operation.
[0176] Optionally, the target virtual element is a virtual traveling area, and the real element includes: a walkable area.
[0177] Optionally, the recording unit 505 is specifically configured to:
[0178] Obtain the first motion trajectory of the client in the walkable area;
[0179] determining a second motion trajectory corresponding to the first motion trajectory in the virtual travel area;
[0180] The augmented reality scene is recorded according to the second motion trajectory.
[0181] Optionally, the first generating unit 506 is configured to:
[0182] A target virtual object is added to the media content to obtain target media content, wherein the target virtual object moves along a second motion trajectory in the virtual traveling area.
[0183] Optionally, recording the augmented reality scene according to the second motion trajectory includes:
[0184] According to the second motion trajectory, the augmented reality scene is recorded from the perspective of the target virtual object.
[0185] Optionally, the target media content is generated from a perspective of viewing the target virtual object.
[0186] Optionally, the apparatus further includes: a third acquiring unit and a second generating unit;
[0187] A third acquisition unit is configured to acquire a facial image before dressing up the preset virtual object based on the target dressing resource to obtain the target virtual object;
[0188] The second generating unit generates a preset virtual object based on the facial image, where the preset virtual object includes the face in the facial image.
[0189] Optionally, the first generating unit 506 is configured to:
[0190] In response to a media content generation operation triggered in a page displaying an augmented reality scene, target media content is generated based on a target virtual object and recorded media content.
[0191] Optional media content generation operations include:
[0192] End the operation using the target function.
[0193] Optionally, the first generating unit 506 is configured to:
[0194] In response to the client moving to a first specific position in the walkable area, target media content is generated based on the target virtual object and the recorded media content, where the first specific position corresponds to an end point of the virtual travel area.
[0195] Optionally, the device further comprises:
[0196] The output unit is configured to output interaction guidance information in response to the client moving to the second specific position in the walkable area, where the interaction guidance information is used to prompt the user to perform a preset interaction action.
[0197] Since the device 500 is a device corresponding to the information processing method provided by the above method embodiment, the specific implementation of each unit of the device 500 is based on the same concept as the above method embodiment. Therefore, regarding the specific implementation of each unit of the device 500, you can refer to the relevant description part of the above method embodiment, and will not repeat it here.
[0198] An embodiment of the present disclosure further provides an electronic device, the electronic device including a processor and a memory;
[0199] The processor is configured to execute instructions stored in the memory so that the electronic device executes the information processing method provided by the above method embodiment.
[0200] An embodiment of the present disclosure provides a computer-readable storage medium including instructions, wherein the instructions instruct a device to execute the information processing method provided in the above method embodiment.
[0201] The embodiments of the present disclosure further provide a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the information processing method provided by the above method embodiments.
[0202] This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0203] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
[0204] The above are only preferred embodiments of the present disclosure and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure should be included in the scope of protection of the present disclosure.
Claims
1. An information processing method, comprising: In response to a setting operation on a target dressing resource, dressing a preset virtual object based on the target dressing resource to obtain a target virtual object; In response to a use operation for triggering a target function, acquiring an image collected by a client, where the image is an image including the real environment where the client is located; Displaying an augmented reality scene corresponding to the image, where the augmented reality scene includes target virtual elements generated based on real elements in the real environment; Displaying movement guidance information based on the target virtual elements, and recording media content based on the augmented reality scene; Generating target media content based on the target virtual object and the recorded media content.
2. The method according to claim 1, further comprising at least one of the following: In response to a publishing operation, publishing the target media content; In response to a sending operation, sending the target media content.
3. The method according to claim 1, wherein, The target virtual element is a virtual travel area, and the real elements include: a walkable area.
4. The method according to claim 3, wherein, The recording media content based on the augmented reality scene includes: Acquiring a first movement trajectory of the client in the walkable area; Determining a second movement trajectory corresponding to the first movement trajectory in the virtual travel area; Recording the augmented reality scene according to the second movement trajectory.
5. The method according to claim 4, wherein The generating target media content based on the target virtual object and the recorded media content includes: Adding the target virtual object to the media content to obtain the target media content, where the target virtual object moves in the virtual travel area according to the second movement trajectory.
6. The method according to claim 5, wherein, The recording the augmented reality scene according to the second movement trajectory includes: Recording the augmented reality scene from the perspective of the target virtual object according to the second movement trajectory.
7. The method according to claim 5, wherein The target media content is generated from the perspective of viewing the target virtual object.
8. The method according to claim 1, wherein, Before dressing the preset virtual object based on the target dressing resource to obtain the target virtual object, the method further includes: Acquiring a facial image; Generating the preset virtual object based on the facial image, where the preset virtual object includes the face in the facial image.
9. The method according to claim 1, wherein The generating target media content based on the target virtual object and the recorded media content includes: In response to a media content generation operation triggered on a page for displaying the augmented reality scene, generating target media content based on the target virtual object and the recorded media content.
10. The method according to claim 9, wherein, The media content generation operation includes: Ending the operation of using the target function.
11. The method according to any one of claims 3 - 7, wherein, The generating target media content based on the target virtual object and the recorded media content includes: In response to the client moving to a first specific position in the walkable area, generating target media content based on the target virtual object and the recorded media content, where the first specific position corresponds to the end point of the virtual travel area.
12. The method according to any one of claims 3-7, wherein, The method further includes: In response to the client moving to a second specific position in the walkable area, output interaction guidance information, where the interaction guidance information is used to prompt the user to perform a preset interaction action.
13. An information processing apparatus, comprising: A first acquisition unit configured to, in response to a setting operation on a target dressing resource, dress a preset virtual object based on the target dressing resource to obtain a target virtual object; A second acquisition unit configured to, in response to a use operation for triggering a target function, acquire an image collected by a client, where the image is an image including the real environment where the client is located; A first display unit configured to display an augmented reality scene corresponding to the image, where the augmented reality scene includes target virtual elements generated based on real elements in the real environment; A second display unit configured to display movement guidance information based on the target virtual elements; A recording unit configured to record media content based on the augmented reality scene; and A first generation unit configured to generate target media content based on the target virtual object and the recorded media content.
14. An electronic device, comprising a processor and a memory; Among them, The processor is configured to execute instructions stored in the memory so that the electronic device executes the method according to any one of claims 1-12 above.
15. A computer-readable storage medium, comprising instructions, where the instructions direct a device to execute the method according to any one of claims 1-12 above.
16. A computer program product, wherein, When the computer program product runs on a computer, the computer is caused to execute the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Figure image generation method and device
CN111694431A
Video generation method and device, equipment and storage medium
CN114390214A
Recording processing method and device based on virtual reality and electronic equipment
CN117135393A
Information processing method and device
CN117931348A
Display control device, display control method, and recording medium
US20140292645A1