Video generation method, apparatus, device, and storage medium
The method determines a target POI and integrates AR effects into videos based on user location, addressing the lack of AR integration in short video platforms and enhancing user experience.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- LEMON CO LTD
- Filing Date
- 2023-01-03
- Publication Date
- 2026-06-26
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure 0007880971000001 
Figure 0007880971000002 
Figure 0007880971000003
Abstract
Description
Technical Field
[0001] Cross-reference to Related Applications This application is based on an application with application number CN202210068353.X and a filing date of January 20, 2022, claims its priority, and all disclosure contents of the Chinese application are incorporated herein by reference.
[0002] Technical Field The present disclosure relates to the field of data processing technology, and particularly to a video generation method, apparatus, device, and storage medium.
Background Art
[0003] Augmented Reality (AR for short) technology is a technology that combines virtual information and real-world information. By rendering virtual objects in real-time video, loading virtual objects into the real world for interaction, this technology realizes presenting the real environment and virtual objects on the same interface in real-time.
Summary of the Invention
Means for Solving the Problems
[0004] According to a first aspect, the present disclosure when receiving an application request for a target effect object, obtains the position information of the current user, and determines a target point of interest (POI) corresponding to the current user based on the position information of the current user, and obtains the effect resource of the target POI, and determines the directional relationship between the current user and the target POI based on the position information of the current user and the position information of the target POI, and presents a shooting effect corresponding to the effect resource on a shooting page based on the directional relationship between the current user and the target POI, and The present invention provides a video generation method that includes generating a result video corresponding to a target effect object based on a shooting effect corresponding to the effect resource.
[0005] In some embodiments, determining a target point of interest (POI) corresponding to the current user based on the current user's location information is: The current user's location information is used to determine the distance between that location and each POI in the preset POI list. This includes determining the POI with the shortest distance from the current user's location information as the target POI corresponding to the current user.
[0006] In some embodiments, before acquiring the effect resource of the target POI, The method further includes determining whether the distance between the current user's location information and the target POI is greater than a preset first threshold. Accordingly, obtaining the effect resources of the target POI as described above is: If it is determined that the distance between the current user's location and the target POI is greater than the preset first threshold, the first effect resource of the target POI is acquired. to do , Alternatively, it is determined that the distance between the current user's location information and the target POI is less than or equal to the preset first threshold. This includes obtaining a second effect resource of the target POI.
[0007] In some embodiments, the effect resource of the target POI includes at least one first virtual object associated with the target POI, which has information to be presented, and presenting the shooting effect corresponding to the effect resource on the shooting page is: Presenting the aforementioned at least one first virtual object on the shooting page, This includes presenting information attached to the target first virtual object in response to a trigger operation on the target first virtual object in the aforementioned shooting page.
[0008] In some embodiments, the effect resource of the target POI includes a virtual object generation control, and presenting the corresponding shooting effect on the shooting page is: The virtual object generation control is presented on the shooting page, The virtual object generation control generates a virtual object corresponding to the current user and makes it a second virtual object. This includes presenting the second virtual object on the shooting page.
[0009] In some embodiments, after generating a virtual object corresponding to the current user using the virtual object generation control, The process further includes uploading the second virtual object and the target POI to the service side to establish an association between the second virtual object and the target POI.
[0010] According to the second aspect, this disclosure is: Upon receiving an application request for a target effect object, a location acquisition module is used to obtain the current user's location information, A POI determination module for determining a target point of interest (POI) corresponding to the current user based on the current user's location information, A resource acquisition module for obtaining the effect resources of the target POI, A direction determination module for determining the directional relationship between the current user and the target POI based on the current user's location information and the target POI's location information, A presentation module for presenting the shooting effect corresponding to the effect resource on the shooting page, based on the directional relationship between the current user and the target POI, The present invention provides a video generation apparatus comprising a generation module for generating a result video corresponding to a target effect object based on a shooting effect corresponding to the effect resource.
[0011] In a third aspect, the disclosure provides a computer-readable storage medium that stores instructions in a terminal device that, when executed on the terminal device, enable the above-described method.
[0012] In a fourth aspect, the present disclosure provides a device that enables the above method, comprising memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor executes the computer program.
[0013] According to a fifth aspect, the disclosure provides a computer program product that, when executed by a processor, includes a computer program / instruction that accomplishes the above-described method.
[0014] According to the sixth aspect, the disclosure provides a computer program that, when executed by a processor, includes instructions causing the processor to perform a video generation method according to any one of the embodiments described above. [Brief explanation of the drawing]
[0015] The drawings herein are incorporated into the specification, constitute part of this specification, illustrate embodiments conforming to the present disclosure, and are used together with the specification to illustrate the principles of the present disclosure.
[0016] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following briefly describes the drawings necessary for the description of the embodiments or the prior art. Obviously, those skilled in the art can also obtain other drawings based on these drawings without creative efforts.
[0017] [Figure 1] It is a flowchart of a video generation method according to an embodiment of the present disclosure. [Figure 2] It is an exemplary diagram of displaying an effect object on a shooting page according to an embodiment of the present disclosure. [Figure 3] It is a schematic configuration diagram of a video generation device according to an embodiment of the present disclosure. [Figure 4] It is a schematic configuration diagram of a video generation device according to an embodiment of the present disclosure.
Embodiments for Carrying Out the Invention
[0018] To more clearly understand the above objects, features, and advantages of the present disclosure, the following further describes the aspects of the present disclosure. Unless there is a contradiction, the embodiments of the present disclosure and the features in the embodiments can be combined with each other.
[0019] To fully understand the present disclosure, many specific details are described in the following description. However, the present disclosure may also be implemented in other forms different from those described herein. Obviously, the embodiments in the specification are only some embodiments of the present disclosure, not all embodiments.
[0020] With the development of short video technology, the functions supported by short video platforms are becoming increasingly rich. However, currently, there is still no short video platform integrating AR technology. When shooting a video, users cannot add AR effects, which affects the shooting experience of users.
[0021] To solve the above problems, this disclosure provides a video generation method, apparatus, device, and storage medium that enhances video recording capabilities by determining a corresponding target POI and an effect resource associated with the target POI based on the user's current location, determining the directional relationship between the user's current location and the target POI based on the location of the user and the target POI, and further presenting the user with the shooting effects that the effect resource can present based on the determined directional relationship, thereby enabling the user to fuse the shooting effects of the target POI into the video they have captured, and presenting shooting effects according to the direction between the user and the target POI.
[0022] To enrich video content and improve the user's shooting experience, an embodiment of this disclosure provides a video generation method that, upon receiving a request to apply to a target effect object, acquires the current user's location information, determines a target point of interest (POI) corresponding to the current user based on the current user's location information, acquires the effect resource of the target POI, presents the shooting effect corresponding to the effect resource on the shooting page, and further generates a result video corresponding to the target effect object based on the shooting effect corresponding to the effect resource. Thus, an embodiment of this disclosure determines the corresponding target POI and the effect resource associated with the target POI based on the user's current location, determines the directional relationship between the user's current location and the location of the target POI based on the location of the user and the target POI, and further presents the shooting effect presented by the effect resource to the user based on the determined directional relationship, thereby integrating the shooting effect of the target POI into the video shot by the user and presenting a shooting effect according to the direction between the user and the target POI, thereby enhancing the video shooting function.
[0023] Based on this, embodiments of the present disclosure provide a video generation method. Figure 1 is a schematic flowchart of the video generation method according to embodiments of the present disclosure. Referring to Figure 1, the method includes the following steps.
[0024] S101: When an application request is received for a target effect object, the current user's location information is obtained.
[0025] Here, the target effect object may be any one of the multiple effect objects presented on the shooting page, and the effect object may be a pre-configured AR effect object.
[0026] In actual applications, when a user opens the shooting page, the shooting page displays multiple object controls, each corresponding to one effect object. The user can select the desired effect object by tapping the object controls. For example, as shown in Figure 2, the shooting page displays Control 1, Control 2, and Control 3, and the effect object corresponding to each control is displayed by its corresponding icon. When the user taps Control 1, the effect object corresponding to Control 1 is determined as the target effect object, the Shot Video Platform generates an application request for the target effect object, and the special effects module corresponding to the Shot Video Platform, upon receiving the application request for the target effect object, obtains the current user's location information.
[0027] Here, the current user's location information may be obtained by the positioning module of the short video platform.
[0028] Furthermore, provided that it complies with applicable laws and regulations, if it is determined that the current user intends to use the video generation method provided in this disclosure and has authorized the use of their location information, an embodiment of this disclosure may obtain the current user's location information upon receiving an application request to a target effect object.
[0029] S102: Based on the current user's location information, a target point of interest (POI) corresponding to the current user is determined.
[0030] In embodiments of this disclosure, after obtaining the current user's location information, a target point of interest (POI) corresponding to the current user may be determined based on the current user's location information.
[0031] In some embodiments, the distance between the current user's location and each POI in the preset POI list may be determined, and the POI with the shortest distance to the current user's location may be determined as the target POI corresponding to the current user.
[0032] Here, the preset POI list is a pre-created list. Each POI in the preset POI list may be a relatively well-known tourist destination or a landmark building in a real-world environment.
[0033] In embodiments of this disclosure, the distance between the current user and each POI may be calculated based on the current user's location information and the location information of each POI in the preset POI list. Furthermore, based on the calculated distance, the POI with the shortest distance to the current user may be selected from among the POIs and designated as the target POI corresponding to the current user. By determining the POI with the shortest distance to the user as the target POI corresponding to the current user, the shooting effects corresponding to the effect resources of the target POI presented on the subsequent shooting page will better match the user's current location, thereby helping to improve the user's shooting experience.
[0034] In some other embodiments, based on the current user's location information, several candidate POIs close to the user's location may be selected from the POI database, and these candidate POIs may be presented to the user as options. The POI selected by the user from the candidate POIs may then be designated as the target POI corresponding to the user. This allows the user to select their desired POI, improving flexibility and personalization.
[0035] S103: Obtain the effect resource of the target POI and determine the directional relationship between the current user and the target POI based on the current user's location information and the target POI's location information.
[0036] S104: Based on the directional relationship between the current user and the target POI, the shooting effect corresponding to the effect resource is presented on the shooting page.
[0037] Here, the effect resource of the target POI may include special effect templates that match the target effect object corresponding to the target POI, special effects associated with the target POI posted by other users, etc. The shooting effect corresponding to the effect resource may be an animation generated based on the effect resource of the target POI. For example, if the effect resource of the target POI is a virtual balloon, the shooting effect may be an animation of the virtual balloon floating towards the target POI.
[0038] Furthermore, to help users easily understand the information associated with the target POI, the name of the target POI may be retrieved and displayed near the target POI when presenting the shooting effect corresponding to the effect resource.
[0039] In embodiments of this disclosure, after determining the target POI corresponding to the current user, the effect resource of the target POI may be obtained, and the directional relationship between the current user and the target POI may be determined based on the current user's location information and the target POI's location information. For example, the location information may be represented in latitude and longitude coordinates. The direction of the current user relative to the target POI may be calculated from the latitude and longitude coordinates of the current user and the latitude and longitude coordinates of the target POI, or the direction of the target POI relative to the current user may be calculated.
[0040] Furthermore, when generating a shooting effect, the shooting effect corresponding to the effect resource may be presented on the shooting page based on the directional relationship between the current user and the target POI. This allows for the generation of shooting effects that correspond to the directional relationship between the user and the POI. Different directions correspond to different shooting effects. This realizes the actual orientation of the POI in special effects and improves the user's shooting experience.
[0041] As an example, if the effect resource is a galaxy, and the target POI is to the left and in front of the current user, a shooting effect may be generated in which the target POI is to the left and in front of the current user and the galaxy drifts from to the right and in front of the current user to the position of the target POI, and this shooting effect may be displayed on the shooting page. If the target POI is directly in front of the current user, a shooting effect may be generated in which the target POI is directly in front and the galaxy drifts from both sides of the target POI to the position of the target POI.
[0042] In the embodiments of this disclosure, the virtual effects corresponding to different POIs for the same target effect object may be the same or different, and this disclosure is not limited thereto.
[0043] In some embodiments, the effect resource for a target POI includes at least one first virtual object associated with the target POI, which has information to be presented. Presenting the shooting effect corresponding to the effect resource on the shooting page is: Presenting the aforementioned at least one first virtual object on the shooting page, This includes presenting information attached to the target first virtual object in response to a trigger operation on the target first virtual object in the aforementioned shooting page.
[0044] Here, the target first virtual object is one of the at least one first virtual object presented on the shooting page. The target first virtual object may be determined based on the current user's trigger operation. If the current user performs a trigger operation on one of the first virtual objects on the shooting page, that first virtual object becomes the target first virtual object.
[0045] In practical applications, when presenting at least one first virtual object on the shooting page, the at least one first virtual object is presented dynamically so that it is presented on the shooting page with an animation effect. To understand this, if the target POI is to the left and in front of the current user, the at least one first virtual object presented on the shooting page may drift from the right and in front of the current user to the left and in front of the user. This creates the effect of the virtual object drifting towards the target POI.
[0046] For at least one first virtual object presented on the shooting page, the current user may perform a trigger operation on any of the first virtual objects. In response to the trigger operation on the target first virtual object on the shooting page, the information to be presented attached to the target first virtual object is displayed on the shooting page.
[0047] Here, the information to be presented attached to the first virtual object may be the information entered by the user who posted the first virtual object when posting it. For example, if the first virtual object is a wish lamp, the information to be presented may be the wish entered by the user.
[0048] In the embodiments of this disclosure, the current user may perform a trigger operation on the preview screen of the shooting page, i.e., before starting to shoot, on the first virtual object presented on the shooting page. The current user may also perform a trigger operation on the first virtual object presented on the shooting page while the video is being shot. In this case, the content of the execution of the trigger operation and the presentation of the information to be presented attached to the target first virtual object are also recorded in the video.
[0049] In the embodiments of this disclosure, at least one first virtual object associated with a target POI is presented on the shooting page, and in response to a trigger operation on the target first virtual object on the shooting page, the information attached to the target first virtual object is presented, allowing users to view virtual objects posted and information entered by others. This diversifies the content of the target POI that users can view and helps to enhance the user's sense of participation.
[0050] In some embodiments, the effect resource of the target POI includes a virtual object generation control, and presenting the corresponding shooting effect on the shooting page is: The virtual object generation control is presented on the shooting page, The virtual object generation control generates a virtual object corresponding to the current user and makes it a second virtual object. This includes presenting the second virtual object on the shooting page.
[0051] Here, the virtual object creation control is associated with the target effect object. For example, if the target effect object is a sky lantern, the virtual object creation control is the control for creating the sky lantern. Also, for example, if the target effect object is a balloon, the virtual object creation control is the control for creating the balloon.
[0052] In the embodiments of this disclosure, after determining the target POI corresponding to the current user, a virtual object generation control matching the target effect object corresponding to the target POI may be obtained and presented on the shooting page. Subsequently, a virtual object corresponding to the current user is generated using the virtual object generation control, and the virtual object corresponding to the current user is presented on the shooting page as a second virtual object.
[0053] For example, when the current user triggers a virtual object generation control, the virtual object generation control may generate a virtual object corresponding to the current user. For instance, the virtual object generation control is a control for generating a sky lantern. When the current user taps the virtual object generation control, a sky lantern corresponding to the current user is generated, and the generated sky lantern is displayed on the shooting page.
[0054] As an example, when the current user triggers a virtual object generation control, an information input window may be presented on the shooting page, the information entered by the current user through the information input window may be received, and after the input is complete, a virtual object with the information entered by the current user attached may be generated using the information entered by the current user and the virtual object generation control, and this may be made a second virtual object. The generated second virtual object is presented on the shooting page. When presenting the second virtual object, the attached information may be displayed or hidden, and this disclosure is not limited thereto.
[0055] In the embodiments of this disclosure, when presenting the virtual object generation control and the virtual object corresponding to the current user on the shooting page, the presentation is performed based on the directional relationship between the target POI and the current user. For example, if the target POI is to the left and in front of the current user, when presenting the virtual object generation control on the shooting page, a presentation effect may be generated in which the virtual object generation control appears to float from the upper right of the current user to the center of the shooting page. Additionally, when presenting a second virtual object, which is the virtual object corresponding to the current user, a presentation effect may be generated in which the second virtual object appears to float from its current position to the left and in front of the current user, thereby presenting a visual effect in which the virtual object corresponding to the current user appears to float towards the target POI.
[0056] In the embodiments of this disclosure, a virtual object corresponding to the current user may be generated on the preview screen of the shooting page, that is, before shooting begins, and displayed on a pre-configured screen. A virtual object corresponding to the current user may also be generated and displayed on the video screen during video recording.
[0057] In the embodiments of this disclosure, a virtual object generation control associated with a target POI is presented on the shooting page, and a virtual object corresponding to the current user is generated by the virtual object generation control and presented on the shooting page, thereby enabling the user to generate their own virtual object, which helps to enhance the user's sense of participation and ritual, and improves the user's shooting experience.
[0058] In some embodiments, after generating a virtual object corresponding to the current user using a virtual object generation control, the second virtual object and the target POI may be uploaded to the service side for establishing an association between the second virtual object and the target POI.
[0059] In the embodiments of this disclosure, a virtual object corresponding to the current user (i.e., a second virtual object) is uploaded to the service side, and an association between the virtual object corresponding to the current user and the target POI is established with the service side. By causing the server to associate the target POI with the virtual object, data support is provided to display the shooting effect corresponding to the effect resource of the target POI on the shooting page. When displaying the shooting effect corresponding to the effect resource of the target POI on other users' shooting pages, the virtual object corresponding to the current user can be displayed, enabling each user to view virtual objects uploaded by other users, which helps to enhance the sense of user participation.
[0060] Furthermore, in the embodiments described herein, if the current user's approval is obtained, the virtual object and target POI corresponding to the current user may be uploaded to the service side.
[0061] S105: Based on the shooting effect corresponding to the effect resource, a result video corresponding to the target effect object is generated.
[0062] The technical proposals according to the embodiments of this disclosure have at least the following advantages compared to the prior art.
[0063] An embodiment of this disclosure provides a video generation method that first receives an application request to a target effect object, obtains the current user's location information, determines a target point of interest (POI) corresponding to the current user based on the current user's location information, obtains the effect resource of the target POI, determines the directional relationship between the current user and the target POI based on the current user's location information and the target POI's location information, presents a shooting effect corresponding to the effect resource on the shooting page based on the determined directional relationship, and further generates a result video corresponding to the target effect object based on the shooting effect corresponding to the effect resource. Thus, the embodiment of this disclosure enhances the video shooting function by determining the corresponding target POI and the effect resource associated with the target POI based on the user's current location, determining the directional relationship between the user and the target POI based on the user's current location and the location of the target POI, and further presenting the shooting effect presented by the effect resource to the user based on the determined directional relationship. This allows the shooting effect of the target POI to be integrated into the video shot by the user, and by presenting a shooting effect according to the direction between the user and the target POI.
[0064] To make it clear, the resulting video corresponding to the target effect object is a video captured by the current user that includes a virtual effect corresponding to the target effect object. The virtual effect corresponding to the target effect object is presented by the captured effect corresponding to the effect resource of the target POI.
[0065] In embodiments of this disclosure, after the user starts shooting, a resulting video including the shooting effect may be generated based on the shooting effect corresponding to the effect resource of the target POI. The resulting video corresponds to the target effect object. For example, if the target effect object is a sky lantern, the resulting video includes a virtual sky lantern, and if the target effect object is a balloon, the resulting video includes a virtual balloon.
[0066] If the target effect object is an AR effect object, the shooting effect corresponding to the effect resource of the target POI is an AR effect, and the AR effect of the target POI is presented on the shooting page. The resulting video obtained when the current user completes the shooting includes the AR effect of the target POI. For example, if the target effect object is a sky lantern, the resulting video obtained from shooting will include the target POI and numerous virtual sky lanterns. These virtual sky lanterns may have been uploaded by other users, or possibly by the current user. These virtual sky lanterns may exist in the resulting video in the form of animation and may, for example, float near the target POI.
[0067] In the video generation method according to the embodiment of this disclosure, first, upon receiving a request to apply to a target effect object, the current user's location information is acquired, and based on the current user's location information, the target point of interest (POI) corresponding to the current user is determined, the effect resource of the target POI is acquired, and based on the current user's location information and the location information of the target POI, the directional relationship between the current user and the target POI is determined, and based on the determined directional relationship, the shooting effect corresponding to the effect resource is presented on the shooting page, and further, based on the shooting effect corresponding to the effect resource, a result video corresponding to the target effect object is generated. Thus, the embodiment of this disclosure enhances the video shooting function by determining the corresponding target POI and the effect resource associated with the target POI based on the user's current location, determining the directional relationship between the user and the target POI based on the user's current location and the location of the target POI, and further presenting the shooting effect presented by the effect resource to the user based on the determined directional relationship.
[0068] In some embodiments, before acquiring the effect resource of the target POI, This may further include determining whether the distance between the current user's location information and the target POI is greater than a preset first threshold. Accordingly, obtaining the effect resources of the target POI as described above is: The process includes obtaining the first effect resource of the target POI if it is determined that the distance between the current user's location and the target POI is greater than the preset first threshold, and obtaining the second effect resource of the target POI otherwise.
[0069] Here, the first preset threshold may be set in advance. For example, the first preset threshold may be set to 3 kilometers.
[0070] In embodiments of this disclosure, after determining the target POI corresponding to the current user, the distance between the current user's location and the target POI may be further calculated to determine whether the distance is greater than a preset first threshold. If the distance between the current user's location and the target POI is greater than the preset first threshold, the first effect resource of the target POI is obtained; if the distance between the current user's location and the target POI is less than or equal to the preset first threshold, the second effect resource of the target POI is obtained.
[0071] Here, the first effect resource and the second effect resource are different.
[0072] As an example, the second effect resource corresponds to the distance between the current user and the target POI being within the preset first threshold range, so the second effect resource can be richer than the first effect resource. Taking the case where the target effect object is a sky lantern as an example, the first effect resource may be a galaxy, and the second effect resource may be a combination of a galaxy and a large sky lantern. In this case, a user far from the target POI will only see the galaxy but not the large sky lantern effect. On the other hand, a user close to the target POI will be able to see not only the galaxy but also the large sky lantern effect.
[0073] In the embodiments of this disclosure, if the distance between the current user and the target POI is greater than a preset first threshold, the first effect resource of the target POI is acquired, and if the distance between the current user and the target POI is less than or equal to the preset first threshold, the second effect resource of the target POI is acquired. This enables the provision of different shooting effects and visual experiences for users who are at the target POI point and users who are not at the target POI point, and helps ensure that users who are not at the target POI point can also have a full effect experience. Furthermore, it helps to pique the user's interest in the effects of the target POI point and encourage them to go to the target POI point and interact with it.
[0074] In some embodiments, the first effect resource includes at least one first virtual object associated with the target POI, and the second effect resource includes at least one first virtual object and a third virtual object associated with the target POI. The first virtual object may be, for example, a sky lantern launched by another user toward the target POI, and the third virtual object may be a large sky lantern that can only be presented near the target POI.
[0075] Based on the same concept of the invention as in the above embodiments, embodiments of the present disclosure further provide a video generation device. Figure 3 is a schematic diagram of the configuration of a video generation device according to embodiments of the present disclosure. Referring to Figure 3, the device is Upon receiving an application request to a target effect object, a location acquisition module 301 is used to obtain the current user's location information, A POI determination module 302 for determining a target point of interest (POI) corresponding to the current user based on the current user's location information, A resource acquisition module 303 for acquiring the effect resources of the target POI, A direction determination module 304 for determining the directional relationship between the current user and the target POI based on the current user's location information and the target POI's location information, Based on the directional relationship between the current user and the target POI, a presentation module 305 is provided to present the shooting effect corresponding to the effect resource on the shooting page. The system includes a generation module 306 for generating a result video corresponding to the target effect object based on the shooting effect corresponding to the effect resource.
[0076] In some embodiments, the POI determination module 302 is A distance calculation unit for determining the distance between the current user's location information and each POI in the preset POI list, The system includes a POI determination unit for determining the POI with the shortest distance from the current user's location information as the target POI corresponding to the current user.
[0077] In some embodiments, the apparatus is The system further comprises a second determination module for determining whether the distance between the current user's location information and the target POI is greater than a preset first threshold. Accordingly, the resource acquisition module 303 further: If the distance between the current user's location information and the target POI is determined to be greater than the preset first threshold, the first effect resource of the target POI is acquired; otherwise, the second effect resource of the target POI is acquired.
[0078] In some embodiments, the effect resource of the target POI includes at least one first virtual object associated with the target POI, which has presentation information attached, and the presentation module 305 further includes Presenting the aforementioned at least one first virtual object on the shooting page, It is used to display information attached to the target first virtual object in response to a trigger operation on the target first virtual object in the aforementioned shooting page.
[0079] In some embodiments, the effect resource of the target POI includes a virtual object generation control, and the presentation module 305 further includes, The virtual object generation control is presented on the shooting page, The virtual object generation control generates a virtual object corresponding to the current user and makes it a second virtual object. This is used to present the second virtual object on the image page.
[0080] In some embodiments, the first effect resource includes at least one first virtual object associated with the target POI, and the second effect resource includes at least one first virtual object and a third virtual object associated with the target POI.
[0081] In the video generation device according to the embodiment of this disclosure, upon receiving a request to apply to a target effect object, the device first acquires the current user's location information, then determines a target point of interest (POI) corresponding to the current user based on the current user's location information, acquires the effect resource of the target POI, determines the directional relationship between the current user and the target POI based on the current user's location information and the target POI's location information, presents the shooting effect corresponding to the effect resource on the shooting page based on the determined directional relationship, and further generates a result video corresponding to the target effect object based on the shooting effect corresponding to the effect resource. Thus, the embodiment of this disclosure enhances the video shooting function by determining the corresponding target POI and the effect resource associated with the target POI based on the user's current location, determining the directional relationship between the user and the target POI based on the user's current location and the location of the target POI, and further presenting the shooting effect presented by the effect resource to the user based on the determined directional relationship. This allows the shooting effect of the target POI to be integrated into the video shot by the user, and also allows the presentation of a shooting effect corresponding to the direction between the user and the target POI.
[0082] In addition to the methods and apparatus described above, embodiments of the present disclosure further provide a computer-readable storage medium in which, when executed on a terminal device, instructions are stored causing the terminal device to implement the video generation method according to embodiments of the present disclosure.
[0083] The embodiments of the present disclosure further provide a computer program product that, when executed by a processor, includes a computer program / instruction that implements the video generation method according to the embodiments of the present disclosure.
[0084] Furthermore, embodiments of this disclosure provide video generation equipment. As shown in Figure 4, the equipment may include a processor 901, a memory 902, an input device 903, and an output device 904. The number of processors 901 in a page presentation device for a live streaming room may be one or more, and Figure 4 shows an example of one processor. In some embodiments of this disclosure, the processor 901, memory 902, input device 903, and output device 904 may be connected via a bus or other means, and Figure 4 shows an example of connection via a bus.
[0085] Memory 902 may be used to store software programs and modules. Processor 901 executes various functional applications and data processing of the page presentation device in the live streaming room by executing the software programs and modules stored in memory 902. Memory 902 may mainly include a program storage area and a data storage area. Of these, the program storage area can store the operating system, applications necessary for at least one function, etc. Memory 902 may also include high-speed random access memory and may further include non-volatile memory, such as at least one magnetic disk memory device, flash memory device, or other volatile solid-state memory device. Input device 903 may be used to receive application requests to target effect objects and to accept trigger operations on virtual objects in the shooting page by the user.
[0086] In this embodiment, the processor 901 loads executable files corresponding to the processes of one or more applications into memory 902 according to the following instructions, and the processor 901 executes the applications stored in memory 902, thereby realizing each of the functions of the video generation device described above.
[0087] Here, relational terms such as “first” and “second” are used solely for the purpose of distinguishing one entity or operation from another, and do not require or imply that such an actual relationship or order exists between these entities or operations. Furthermore, the terms “encompassing,” “including,” or any other variant thereof, by indicating non-exclusive inclusion, mean that a process, method, article, or apparatus containing a series of elements includes not only those elements but also other elements not explicitly stated, or elements specific to such a process, method, article, or apparatus. Unless further restrictions are imposed, an element limited by “including one…” does not exclude other identical elements from being included in a process, method, article, or apparatus containing the aforementioned element.
[0088] The above are merely specific embodiments of the Disclosure and are used to enable those skilled in the art to understand or implement the Disclosure. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the Disclosure. Accordingly, the Disclosure is not limited to these embodiments herein and has the broadest scope to be compatible with the principles and novel features disclosed herein.
Claims
1. When an application request is received for a target effect object, the system obtains the current user's location information, Based on the current user's location information, the target POI corresponding to the current user is determined, The process involves obtaining the effect resource of the target POI and determining the directional relationship between the current user and the target POI based on the current user's location information and the target POI's location information, wherein the directional relationship includes the direction of the current user relative to the target POI, or the direction of the target POI relative to the current user. Based on the directional relationship between the current user and the target POI, the shooting effect corresponding to the effect resource is presented on the shooting page, wherein different directional relationships correspond to different shooting effects. A video generation method comprising generating a result video corresponding to a target effect object based on a shooting effect corresponding to the effect resource.
2. Determining a target POI corresponding to the current user based on the current user's location information is: The distance between the current user's location information and each POI in the preset POI list is determined. The video generation method according to claim 1, comprising determining the POI with the shortest distance from the current user's location information as the target POI corresponding to the current user.
3. Before acquiring the effect resource of the target POI, The method further includes determining whether the distance between the current user's location information and the target POI is greater than a preset first threshold. Obtaining the effect resources of the target POI as described above is: If it is determined that the distance between the current user's location information and the target POI is greater than the preset first threshold, the first effect resource of the target POI is acquired, or The video generation method according to claim 1, further comprising obtaining a second effect resource of the target POI if it is determined that the distance between the current user's location information and the target POI is less than or equal to the preset first threshold.
4. The effect resource of the target POI includes at least one first virtual object associated with the target POI, which has presentation information attached to it. Presenting the aforementioned shooting effects corresponding to the aforementioned effect resources on the shooting page is, Presenting the aforementioned at least one first virtual object on the shooting page, A video generation method according to claim 1, comprising presenting information attached to the target first virtual object in response to a trigger operation on the target first virtual object in the shooting page, wherein the at least one first virtual object includes the target first virtual object.
5. The effect resource of the target POI includes a virtual object generation control. Presenting the aforementioned shooting effects corresponding to the aforementioned effect resources on the shooting page is, The virtual object generation control is presented on the shooting page, The virtual object generation control generates a virtual object corresponding to the current user and makes it a second virtual object. The video generation method according to claim 1, further comprising presenting the second virtual object on the shooting page.
6. The video generation method according to claim 3, wherein the first effect resource includes at least one first virtual object associated with the target POI, and the second effect resource includes at least one first virtual object and a third virtual object associated with the target POI.
7. Upon receiving an application request for a target effect object, a location acquisition module is used to obtain the current user's location information, A point of interest (POI) determination module for determining a target POI corresponding to the current user based on the current user's location information, A resource acquisition module for obtaining the effect resources of the target POI, A direction determination module for determining the directional relationship between the current user and the target POI based on the current user's location information and the target POI's location information, wherein the directional relationship includes the direction of the current user relative to the target POI, or the direction of the target POI relative to the current user. A presentation module for presenting the shooting effect corresponding to the effect resource on the shooting page based on the directional relationship between the current user and the target POI, wherein the presentation module corresponds to different shooting effects with different directional relationships, A video generation apparatus comprising a generation module for generating a result video corresponding to a target effect object based on a shooting effect corresponding to the effect resource.
8. A computer-readable storage medium that stores an instruction, when executed on a terminal device, causing the terminal device to implement the video generation method described in any one of claims 1 to 6.
9. An electronic device comprising memory, a processor, and a computer program stored in the memory and executable by the processor, wherein when the processor executes the computer program, it realizes the video generation method described in any one of claims 1 to 6.
10. A computer program, when executed by a processor, includes instructions that cause the processor to execute the video generation method described in any one of claims 1 to 6.