Video generation method, device, equipment and storage medium

JP2025505375AActive Publication Date: 2025-02-26LEMON CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024543197
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-01-20
Filing Date
2023-01-03
Publication Date
2025-02-26
Estimated Expiration
2043-01-03

Smart Images

  • Figure 2025505375000001_ABST
    Figure 2025505375000001_ABST
Patent Text Reader

Abstract

The present disclosure provides a video generating method, apparatus, device, and storage medium, the method including: first, upon receiving an application request for a target effect object, obtaining location information of a current user; then, based on the location information of the current user, determining a target point of interest POI corresponding to the current user, and obtaining an effect resource of the target POI; based on the location information of the current user and the location information of the target POI, determining a directional relationship between the current user and the target POI, and presenting a shooting effect corresponding to the effect resource on a shooting page based on the directional relationship; and further generating a result video corresponding to the target effect object based on the shooting effect corresponding to the effect resource.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application is based on and claims priority from an application having application number CN202210068353.X and filing date on January 20, 2022, the entire disclosure of which is incorporated herein by reference.

[0002] Technical Field The present disclosure relates to the field of data processing technology, and in particular to a video generation method, apparatus, device and storage medium. [Background technology]

[0003] Augmented reality (AR) technology is a technology that fuses virtual information with information from the real world. This technology renders virtual objects in real-time video, loads virtual objects into the real world, and allows interactions to be performed, presenting the real environment and virtual objects in the same interface in real time. Summary of the Invention [Means for solving the problem]

[0004] According to a first aspect, the present disclosure provides a method for producing a method for detecting a pulmonary circulation disorder, comprising: When an application request for a target effect object is received, the current user position information is obtained; determining a target point of interest POI corresponding to the current user based on location information of the current user; Obtaining an effect resource of the target POI, and determining a 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; Present a shooting effect corresponding to the effect resource on a shooting page according to a directional relationship between the current user and the target POI; and generating a result video corresponding to the target effect object based on a shooting effect corresponding to the effect resource.

[0005] In some embodiments, determining a target point of interest corresponding to the current user based on location information of the current user comprises: determining a distance between the current user location information and each POI in a preset POI list; determining a POI having a shortest distance from the location information of the current user as a target POI corresponding to the current user.

[0006] In some embodiments, before obtaining the effect resource for the target POI, determining whether a distance between the current user location information and the target POI is greater than a preset first threshold; Accordingly, obtaining the effect resource of the target POI includes: 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, acquiring a first effect resource of the target POI, and if not, acquiring 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, the first virtual object having presentation target information attached thereto, and presenting the photography effect corresponding to the effect resource on the photography page includes: presenting the at least one first virtual object on a photography page; and and presenting presentation target information attached to the target first virtual object in response to a trigger operation on the target first virtual object on the photographing page.

[0008] In some embodiments, the effect resource of the target POI includes a virtual object generation control, and presenting the photography effect corresponding to the effect resource on the photography page includes: presenting the virtual object generation control on a photography page; generating a virtual object corresponding to the current user as a second virtual object by the virtual object generation control; and presenting the second virtual object on the photography page.

[0009] In some embodiments, after generating a virtual object corresponding to the current user by the virtual object generation control, The method further includes uploading the second virtual object and the target POI to a service side for establishing an association between the second virtual object and the target POI.

[0010] According to a second aspect, the present disclosure provides a method for producing a method for detecting a pulmonary circulation, comprising: When an application request for a target effect object is received, a location acquisition module is provided for acquiring current user location information; a POI determination module for determining a target point of interest POI corresponding to the current user based on the location information of the current user; a resource acquisition module for acquiring effect resources of the target POI; a direction determination module for determining a direction relationship between the current user and the target POI based on position information of the current user and position information of the target POI; a presentation module for presenting a photography effect corresponding to the effect resource on a photography page according to a directional relationship between the current user and the target POI; and a generating module for generating a result video corresponding to the target effect object based on a shooting effect corresponding to the effect resource.

[0011] According to a third aspect, the present disclosure provides a computer-readable storage medium having stored thereon instructions which, when executed on a terminal device, cause the terminal device to implement the above method.

[0012] According to a fourth aspect, the present disclosure provides an apparatus including a memory, a processor, and a computer program stored in the memory and executable by the processor, the apparatus realizing the above method when the processor executes the computer program.

[0013] According to a fifth aspect, the present disclosure provides a computer program product comprising computer programs / instructions which, when executed by a processor, cause the implementation of the above method.

[0014] According to a sixth aspect, the present disclosure provides a computer program comprising instructions which, when executed by a processor, cause the processor to perform a video generation method according to any one of the above embodiments. [Brief description of the drawings]

[0015] The drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification serve to explain the principles of the present disclosure.

[0016] In order to more clearly describe the technical solutions in the embodiments or prior art of the present disclosure, the following briefly describes the drawings necessary for describing the embodiments or prior art. Obviously, a person skilled in the art can obtain other drawings based on these drawings without creative efforts.

[0017] [Figure 1] 1 is a flowchart of a video generation method according to an embodiment of the present disclosure. [Diagram 2] 13 is an illustrative diagram of displaying an effect object on a photography page according to an embodiment of the present disclosure. [Diagram 3] FIG. 1 is a schematic diagram of a video generating device according to an embodiment of the present disclosure. [Figure 4] FIG. 1 is a schematic diagram of a video generation device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0018] In order to make the above objects, features and advantages of the present disclosure more clearly understandable, the following further describes the aspects of the present disclosure. It should be noted that, unless contradictory, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0019] In the following description, in order to fully understand the present disclosure, many specific details are described, but the present disclosure may be embodied in other forms different from those described herein. Apparently, the embodiments in the specification are only some embodiments of the present disclosure, but not all embodiments.

[0020] With the development of video technology, the functions supported by the video platform are becoming richer and richer. However, currently there is no video platform that incorporates AR technology. Users cannot add AR effects when shooting videos, which affects the user's shooting experience.

[0021] In order to solve the above problems, the present disclosure provides a video generation method, device, equipment, and storage medium that determine a corresponding target POI and an effect resource associated with the target POI based on the user's current location, determine a directional relationship between the user's current location and the target POI based on the location of the user and the target POI, and present to the user shooting effects that can be displayed by the effect resource based on the determined directional relationship, thereby enabling the shooting effects of the target POI to be incorporated into a video shot by the user and the shooting effects according to the direction between the user and the target POI to be displayed, thereby enhancing video shooting functions.

[0022] In order to enrich video content and improve the user's shooting experience, the embodiment of the present disclosure provides a video generation method, which, upon receiving an application request for a target effect object, obtains the current user's location information, and determines a target point of interest POI corresponding to the current user based on the current user's location information, obtains an effect resource of the target POI, presents a shooting effect corresponding to the effect resource on a shooting page, and generates a result video corresponding to the target effect object based on the shooting effect corresponding to the effect resource. Thus, the embodiment of the present disclosure determines a corresponding target POI and an effect resource associated with the target POI based on the user's current location, determines a directional relationship between the user's current location and the target POI based on the location of the target POI, and presents the shooting effect presented by the effect resource to the user based on the determined directional relationship, thereby blending 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 enriching the video shooting function.

[0023] Based on this, an embodiment of the present disclosure provides a video generation method. Figure 1 is a schematic diagram of a flow chart of a video generation method according to an embodiment of the present disclosure. Referring to Figure 1, the method includes the following steps:

[0024] S101: When an application request for a target effect object is received, current user position information is obtained.

[0025] Here, the target effect object may be any one of a plurality of effect objects presented on the shooting page, and the effect object may be a preset AR effect object.

[0026] In practical application, when a user opens a shooting page, the shooting page displays a plurality of object controls to the user, each of which corresponds to an effect object. The user can select a desired effect object by tapping an object control. For example, as shown in FIG. 2, the shooting page displays control 1, control 2, and control 3, and the effect object corresponding to each control is displayed by a corresponding icon. When a user taps control 1, the effect object corresponding to control 1 is determined as a target effect object, and the shot video platform generates an application request for the target effect object, and the special effect module corresponding to the shot video platform obtains the current user's location information after receiving the application request for the target effect object.

[0027] Here, the current user location information may be obtained by a positioning module of the short video platform.

[0028] In addition, subject to compliance with relevant laws and regulations, if it is determined that the current user intends to use the video generation method of the present disclosure and has granted permission to use the location information, an embodiment of the present disclosure may obtain the current user's location information when accepting an application request for a target effect object.

[0029] S102: Determine a target point of interest POI corresponding to the current user based on location information of the current user.

[0030] In an embodiment of the present disclosure, after obtaining the location information of the current user, a target Point of Interest (abbreviated as POI) corresponding to the current user may be determined based on the location information of the current user.

[0031] In some embodiments, the distance between the current user's location information and each POI in the preset POI list may be determined, and the POI with the shortest distance to the current user's location information may be determined as the target POI corresponding to the current user.

[0032] Here, the preset POI list is created in advance. Each POI in the preset POI list may be a relatively famous tourist spot or a landmark building in the real environment.

[0033] In the embodiment of the present disclosure, the distance between the current user and each POI may be calculated based on the location information of the current user and the location information of each POI in the preset POI list, and the POI with the shortest distance from the current user may be selected from among the POIs based on the calculated distance as the target POI corresponding to the current user. In this way, the POI with the shortest distance from the user is determined as the target POI corresponding to the current user, so that the shooting effect corresponding to the effect resource of the target POI presented on the subsequent shooting page is more consistent with the current location of the user, which helps to improve the user's shooting experience.

[0034] In some other embodiments, a plurality of candidate POIs close to the location information of the current user may be selected from the POI database according to the location information of the current user, and the plurality of candidate POIs may be presented to the current user as selection targets, and one POI selected by the current user from the candidate POIs may be set as the target POI corresponding to the current user, thereby enabling the user to select a desired POI by himself, and improving flexibility and individualization.

[0035] S103: Obtain an effect resource of the target POI, and determine a 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.

[0036] S104: Present a shooting effect corresponding to the effect resource on a shooting page according to a directional relationship between the current user and the target POI.

[0037] Here, the effect resource of the target POI may include a special effect template that matches the target effect object corresponding to the target POI, a special effect 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 to the target POI.

[0038] In addition, in order to allow the user to easily understand the relevant information of the target POI, the name of the target POI may be further obtained, and the name of the target POI may be displayed near the target POI when presenting the shooting effect corresponding to the effect resource.

[0039] In an embodiment of the present disclosure, after determining a target POI corresponding to a current user, an effect resource of the target POI may be obtained, and a directional relationship between the current user and the target POI may be determined based on the position information of the current user and the position information of the target POI. For example, the position information may be expressed in latitude and longitude coordinates. The direction of the current user 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, and the direction of the target POI to the current user may be calculated.

[0040] Furthermore, when generating a shooting effect, a 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 a shooting effect according to the directional relationship between the user and the POI to be generated. Different directions correspond to different shooting effects. This allows the real orientation of the POI to be realized in the special effect, and improves the user's shooting experience.

[0041] For example, if the effect resource is a galaxy, and the target POI is to the left of the current user, a shooting effect may be generated in which the target POI is to the left and the galaxy drifts from the right of the current user to the target POI, and the shooting effect may be presented 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 target POI.

[0042] It should be noted that in the embodiments of the present disclosure, for the same target effect object, the virtual effects corresponding to different POIs may be the same or different, and the present disclosure is not limited thereto.

[0043] In some embodiments, the effect resource of the target POI includes at least one first virtual object associated with the target POI, the first virtual object having presentation target information attached thereto. Presenting the photography effect corresponding to the effect resource on the photography page includes: presenting the at least one first virtual object on a photography page; and and presenting presentation target information attached to the target first virtual object in response to a trigger operation on the target first virtual object on the photographing page.

[0044] Here, the target first virtual object is any one of at least one first virtual objects presented on the shooting page. The target first virtual object may be determined based on a trigger operation of a current user. When the current user executes a trigger operation on any one of the first virtual objects on the shooting page, the first virtual object on which the trigger operation is executed becomes the target first virtual object.

[0045] In practical application, when presenting at least one first virtual object on the shooting page, the at least one first virtual object is dynamically presented, so that the at least one first virtual object is presented on the shooting page with an animation effect. As can be understood, when the target POI is in the left front of the current user, the at least one first virtual object presented on the shooting page may float from the right front to the left front of the current user, thereby realizing the effect of the virtual object floating to the target POI.

[0046] For at least one first virtual object presented on the shooting page, the current user may execute a trigger operation on any one of the first virtual objects, thereby presenting presentation target information attached to the target first virtual object on the shooting page in response to the trigger operation on the target first virtual object on the shooting page.

[0047] Here, the presentation target information attached to the target first virtual object may be information input by the user who posted the target first virtual object when posting the target first virtual object. For example, when the first virtual object is a wishing light, the presentation target information may be the wish input by the user.

[0048] In the embodiment of the present disclosure, the current user may perform a trigger operation on the first virtual object presented on the shooting page on the preview screen of the shooting page, i.e., before starting shooting. The current user may also perform a trigger operation on the first virtual object presented on the shooting page while shooting a video. At this time, the content of the execution of the trigger operation and the presentation of the presentation target information attached to the target first virtual object are also recorded in the video.

[0049] In an embodiment of the present disclosure, at least one first virtual object associated with a target POI is presented on a photography page, and in response to a trigger operation on the target first virtual object on the photography page, presentation target information attached to the target first virtual object is presented, allowing a user to view virtual objects posted and information entered by others, which makes the content of the target POI viewable by users more diverse and helps to increase 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 photography effect corresponding to the effect resource on the photography page includes: presenting the virtual object generation control on a photography page; generating a virtual object corresponding to the current user as a second virtual object by the virtual object generation control; and presenting the second virtual object on the photography page.

[0051] Here, the virtual object generation control is associated with a target effect object. For example, if the target effect object is a sky lantern, the virtual object generation control is a control for generating the sky lantern. Also, for example, if the target effect object is a balloon, the virtual object generation control is a control for generating the balloon.

[0052] In an embodiment of the present disclosure, after determining a target POI corresponding to the current user, a virtual object generation control that matches a target effect object corresponding to the target POI may be obtained, and the virtual object generation control may be presented on the shooting page. Then, a virtual object corresponding to the current user is generated by 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 a trigger operation on a virtual object generation control by a current user is accepted, a virtual object corresponding to the current user may be generated by the virtual object generation control. For example, 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 presented on a photography page.

[0054] For example, when a trigger operation on a virtual object generation control by a current user is accepted, an information input window is presented on a photography page, information input by the current user through the information input window is received, and after the input is completed, a virtual object with the information input by the current user attached thereto may be generated as a second virtual object by the information input by the current user and the virtual object generation control. The generated second virtual object is presented on the photography page. When presenting the second virtual object, the attached information may be presented or hidden, and the present disclosure does not limit this.

[0055] In an embodiment of the present disclosure, when the virtual object generation control and the virtual object corresponding to the current user are presented 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 in front of the current user to the left, when the virtual object generation control is presented on the shooting page, a presentation effect is generated in which the virtual object generation control drifts from the upper right of the current user to the center position of the shooting page, and when the second virtual object, which is a virtual object corresponding to the current user, is presented, a presentation effect is generated in which the second virtual object drifts from the current position to the front left of the current user, thereby presenting a visual effect in which the virtual object corresponding to the current user drifts to the target POI.

[0056] In the embodiment of the present disclosure, a virtual object corresponding to the current user may be generated and presented on a preset screen on the preview screen of the shooting page, i.e., before shooting starts. A virtual object corresponding to the current user may also be generated and presented on the video screen during video shooting.

[0057] In the embodiment of the present disclosure, a virtual object generation control associated with a target POI is presented on the photography page, and a virtual object corresponding to the current user is generated through the virtual object generation control and presented on the photography page, thereby realizing the generation of the user's own virtual object, which is helpful in enhancing the user's sense of participation and ritual, and improving the user's photography experience.

[0058] In some embodiments, after a virtual object generation control generates a virtual object corresponding to a current user, the second virtual object and the target POI may be uploaded to a service side for establishing an association between the second virtual object and the target POI.

[0059] In an embodiment of the present disclosure, a virtual object (i.e., a second virtual object) corresponding to the current user is uploaded to the service side, and an association between the virtual object corresponding to the current user and the target POI is established on the service side, so that the server associates the target POI with the virtual object, thereby providing data support for presenting a shooting effect corresponding to the effect resource of the target POI on the shooting page, and when presenting a shooting effect corresponding to the effect resource of the target POI on the shooting page of other users, a virtual object corresponding to the current user can be presented, which realizes the effect that each user can view the virtual objects uploaded by other users, and is helpful in enhancing the sense of participation of users.

[0060] It should be noted that the embodiment of the present disclosure may upload the virtual object and the target POI corresponding to the current user to the service side if approved by the current user.

[0061] S105: Generate a result video corresponding to the target effect object based on a shooting effect corresponding to the effect resource.

[0062] The technical solutions according to the embodiments of the present disclosure have at least the following advantages over the prior art:

[0063] The embodiment of the present disclosure provides a video generating method, and when an application request for a target effect object is received, first, the location information of a current user is obtained, then, based on the location information of the current user, a target point of interest POI corresponding to the current user is determined, and an effect resource of the target POI is obtained, and based on the location information of the current user and the location information of the target POI, a direction relationship between the current user and the target POI is determined, and based on the determined direction relationship, a shooting effect corresponding to the effect resource is presented on the shooting page, and further, a result video corresponding to the target effect object is generated based on the shooting effect corresponding to the effect resource. Thus, the embodiment of the present disclosure determines a corresponding target POI and an effect resource associated with the target POI based on the current location of the user, determines a direction relationship between the two based on the current location of the user and the location of the target POI, and further presents the shooting effect presented by the effect resource to the user based on the determined direction relationship, so that the shooting effect of the target POI can be integrated into the video shot by the user, and a shooting effect according to the direction between the user and the target POI can be presented, thereby enhancing the video shooting function.

[0064] As can be understood, the result video corresponding to the target effect object is a video captured by the current user that contains the virtual effect corresponding to the target effect object, and 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 the embodiment of the present disclosure, after a user starts shooting, a result video including the shooting effect may be generated based on the shooting effect corresponding to the effect resource of the target POI, and the result video corresponds to the target effect object. For example, if the target effect object is a sky lantern, the result video includes a virtual sky lantern, and if the target effect object is a balloon, the result 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 result video obtained by the current user completing the shooting includes the AR effect of the target POI. For example, if the target effect object is a sky lantern, the result video obtained by shooting includes the target POI and a number of virtual sky lanterns. These virtual sky lanterns may be uploaded by other users or may be uploaded by the current user. These virtual sky lanterns may be present in the result video in the form of animation, for example, floating near the target POI.

[0067] In the video generating method according to the embodiment of the present disclosure, first, when an application request for a target effect object is received, the method obtains the current user's location information, and then 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, and 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 the present 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 two based on the user's current location and the target POI's location, and further presents the shooting effect presented by the effect resource to the user based on the determined directional relationship, thereby blending the shooting effect of the target POI into the video shot by the user, and presenting the shooting effect according to the direction between the user and the target POI, thereby enhancing the video shooting function.

[0068] In some embodiments, before obtaining the effect resource for the target POI, The method may further include determining whether a distance between the current user location information and the target POI is greater than a preset first threshold; Accordingly, obtaining the effect resource of the target POI includes: 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, acquiring a first effect resource of the target POI, and if not, acquiring a second effect resource of the target POI.

[0069] Here, the preset first threshold may be set in advance, for example, the preset first threshold may be set to 3 kilometers.

[0070] In the embodiment of the present disclosure, after determining the target POI corresponding to the current user, the distance between the current user's location information 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 information and the target POI is greater than the preset first threshold, obtain a first effect resource of the target POI, and if the distance between the current user's location information and the target POI is equal to or less than the preset first threshold, obtain a second effect resource of the target POI.

[0071] Here, the first effect resource and the second effect resource are different.

[0072] For example, the second effect resource is an effect resource corresponding to the distance between the current user and the target POI being within a preset first threshold range, so that the second effect resource can be richer than the first effect resource. Take the target effect object as an example of a sky lantern, the first effect resource can be a galaxy, and the second effect resource can be a combination of the galaxy and the large sky lantern. In this way, a user who is far from the target POI can only see the galaxy but cannot see the effect of the large sky lantern. Meanwhile, a user who is close to the target POI can not only see the galaxy but also see the effect of the large sky lantern.

[0073] In the embodiment of the present disclosure, when the distance between the current user and the target POI is greater than the preset first threshold, the first effect resource of the target POI is obtained, and when the distance between the current user and the target POI is equal to or less than the preset first threshold, the second effect resource of the target POI is obtained. This helps to provide different shooting effects and visual experiences to users at the target POI point and users not at the target POI point, so that users not at the target POI point can also have a complete effect experience. Furthermore, it helps to make users interested in the effects of the target POI point, and to induce users to go to the target POI point to interact.

[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, where the first virtual object may be, for example, a lantern that another user has hoisted up toward the target POI, and the third virtual object may be, for example, a large lantern that is presentable only near the target POI, etc.

[0075] Based on the same inventive concept as the above embodiment, the embodiment of the present disclosure further provides a video generation device. Figure 3 is a schematic diagram of a configuration of a video generation device according to an embodiment of the present disclosure. Referring to Figure 3, the device includes: a location acquisition module 301 for acquiring current user location information when an application request for a target effect object is received; a POI determination module 302 for determining a target point of interest POI corresponding to the current user based on the location information of the current user; a resource acquisition module 303 for acquiring effect resources of the target POI; a direction determination module 304 for determining a direction 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; a presentation module 305 for presenting a shooting effect corresponding to the effect resource on a shooting page according to a directional relationship between the current user and the target POI; and a generating module 306 for generating a result video corresponding to the target effect object based on a shooting effect corresponding to the effect resource.

[0076] In some embodiments, the POI determination module 302 comprises: a distance calculation unit for determining a distance between the current user location information and each POI in a preset POI list; and a POI determination unit for determining a POI having a shortest distance from the position information of the current user as a target POI corresponding to the current user.

[0077] In some embodiments, the apparatus further comprises: Further comprising a second judgment module for judging whether a distance between the current user's location information and the target POI is greater than a preset first threshold; In response, the resource acquisition module 303 further: 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, a first effect resource of the target POI is obtained; otherwise, a second effect resource of the target POI is obtained.

[0078] In some embodiments, the effect resource of the target POI includes at least one first virtual object associated with the target POI having presentation target information attached thereto, and the presentation module 305 further comprises: presenting the at least one first virtual object on a photography page; and In response to a trigger operation on a target first virtual object on the photographing page, presentation target information attached to the target first virtual object is presented.

[0079] In some embodiments, the effect resources of the target POI include a virtual object generation control, and the presentation module 305 further comprises: presenting the virtual object generation control on a photography page; generating a virtual object corresponding to the current user as a second virtual object by the virtual object generation control; and presenting the second virtual object on the photography 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 generating device according to the embodiment of the present disclosure, when an application request for a target effect object is received, first, the location information of the current user is obtained, and then, based on the location information of the current user, a target point of interest POI corresponding to the current user is determined, and an effect resource of the target POI is obtained, and based on the location information of the current user and the location information of the target POI, a direction relationship between the current user and the target POI is determined, and based on the determined direction relationship, a shooting effect corresponding to the effect resource is presented on the shooting page, and further, a result video corresponding to the target effect object is generated based on the shooting effect corresponding to the effect resource. Thus, the embodiment of the present disclosure determines the corresponding target POI and the effect resource associated with the target POI based on the current location of the user, determines the direction relationship between the two based on the current location of the user and the location of the target POI, and further presents the shooting effect presented by the effect resource to the user based on the determined direction relationship, thereby blending the shooting effect of the target POI into the video shot by the user, and presenting the shooting effect according to the direction between the user and the target POI, thereby enhancing the video shooting function.

[0082] In addition to the above methods and apparatus, embodiments of the present disclosure further provide a computer-readable storage medium having stored thereon instructions that, when executed on a terminal device, cause the terminal device to implement a video generation method according to embodiments of the present disclosure.

[0083] An embodiment of the present disclosure further provides a computer program product including computer programs / instructions which, when executed by a processor, cause the computer program / instructions to implement a video generation method according to an embodiment of the present disclosure.

[0084] In addition, the embodiment of the present disclosure further provides a video generation device. As shown in Fig. 4, the video generation device may include a processor 901, a memory 902, an input device 903, and an output device 904. The number of processors 901 in the page presentation device of the live streaming room may be one or more, and Fig. 4 takes one processor as an example. In some embodiments of the present disclosure, the processor 901, the memory 902, the input device 903, and the output device 904 may be connected via a bus or other methods, and Fig. 4 takes the case of being connected via a bus as an example.

[0085] The memory 902 may be used to store software programs and modules. The processor 901 executes various functional applications and data processing of the live streaming room page presentation device by executing the software programs and modules stored in the memory 902. The memory 902 may mainly include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function, and the like. In addition, the memory 902 may include a high-speed random access memory, and may further include a non-volatile memory, for example, at least one magnetic disk memory device, a flash memory device, or other volatile solid-state memory device. The input device 903 may be used to receive an application request for a target effect object and accept a trigger operation for a virtual object on a shooting page by a user.

[0086] In this embodiment, the processor 901 loads executable files corresponding to one or more application processes into the memory 902 in accordance with the following instructions, and the processor 901 executes the applications stored in the memory 902, thereby realizing each of the functions of the video generation device described above.

[0087] It should be noted that relational terms such as "first," "second," etc. are used solely for the purpose of distinguishing one entity or operation from another entity or operation and do not require or imply that any such actual relationship or sequence exists between those entities or operations. Furthermore, the terms "comprise," "include," or any other variation thereof, indicate a non-exclusive inclusion such that a process, method, article, or device that includes a series of elements includes not only those elements but also other elements not expressly stated or elements inherent in such process, method, article, or device. Absent more limitations, an element limited by "including a..." does not exclude the inclusion of other identical elements in the process, method, article, or device that includes the element.

[0088] The above are merely specific embodiments of the present disclosure, and are used to enable those skilled in the art to understand or realize the present 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 present disclosure. Therefore, the present disclosure is not limited to these embodiments herein, but has the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. When an application request for a target effect object is received, obtaining current user position information; determining a target point of interest (POI) corresponding to the current user based on location information of the current user; Obtaining an effect resource of the target POI, and determining a directional relationship between the current user and the target POI according to position information of the current user and position information of the target POI; Present a shooting effect corresponding to the effect resource on a shooting page according to a directional relationship between the current user and the target POI; generating a resultant video corresponding to the target effect object based on a shooting effect corresponding to the effect resource.

2. Determining a target point of interest POI corresponding to the current user based on location information of the current user includes: determining a distance between the current user's location information and each POI in a preset POI list; and determining a POI having a shortest distance to location information of the current user as a target POI corresponding to the current user.

3. Before obtaining the effect resource of the target POI, determining whether a distance between the current user location information and the target POI is greater than a preset first threshold; The obtaining of the effect resource of the target POI includes: 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, obtain a first effect resource of the target POI; The video generating method of claim 1 , further comprising: otherwise obtaining a second effect resource of the target POI.

4. The effect resource of the target POI includes at least one first virtual object associated with the target POI, the first virtual object having presentation target information attached thereto; Presenting the photography effect corresponding to the effect resource on the photography page, presenting the at least one first virtual object on a photography page; The video generating method according to claim 1 , further comprising: presenting presentation target information attached to a target first virtual object in response to a trigger operation on the target first virtual object on the shooting page.

5. The effect resource of the target POI includes a virtual object generation control; Presenting the photography effect corresponding to the effect resource on the photography page, presenting the virtual object generation control on a photography page; generating a virtual object corresponding to the current user as a second virtual object by the virtual object generation control; and presenting the second virtual object on the photography page.

6. 4. The video generation method of 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. a location acquisition module for acquiring current user location information when an application request for a target effect object is received; a point of interest POI determination module for determining a target POI corresponding to the current user based on the location information of the current user; a resource acquisition module for acquiring effect resources of the target POI; a direction determining module for determining a direction relationship between the current user and the target POI based on position information of the current user and position information of the target POI; a presentation module for presenting a photography effect corresponding to the effect resource on a photography page according to a directional relationship between the current user and the target POI; a generating module for generating a result video corresponding to the target effect object based on a shooting effect corresponding to the effect resource.

8. A computer readable storage medium storing instructions which, when executed on a terminal device, cause the terminal device to implement the video generation method according to any one of claims 1 to 6.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, the electronic device realizing the video generation method according to any one of claims 1 to 6 when the processor executes the computer program.

10. A computer program product comprising computer programs / instructions which, when executed by a processor, cause the video generation method of any one of claims 1 to 6 to be implemented.

11. A computer program comprising instructions which, when executed by a processor, cause the processor to carry out the video generation method of any one of claims 1 to 6.

Citation Information

Patent Citations

  • Information display system and method, program and information display terminal device for making computer perform information display method

    JP2006091390A

  • Method and device for augmenting reality

    JP2020009447A

  • Method, system and recording medium for providing augmented reality service and file distribution system

    US20170069122A1

  • Information processing device, information processing method, and program

    WO2016017254A1

  • Information processing device, information processing method and program thereof

    WO2018139117A1