The present application is based on and claims the priority to the Chinese Patent Application No. 202210067195.6 filed on Jan. 20, 2022, the disclosure of which is incorporated by reference herein in its entirety.
The present disclosure relates to the field of data processing, and in particular, to a video generation method, apparatus and device, and a storage medium.
Augmented reality (AR in short) technology is a kind of technology for fusing virtual information and real world information. This technology loads a virtual object into the real world and interacted with the virtual objects by rendering the virtual object in real-time images, so that the real environment and the virtual object are presented on the same interface in real time.
In a first aspect, the present disclosure provides a video generation method, comprising:
In some embodiments, the generating, based on the virtual object generation control, a virtual object corresponding to the first user as a second virtual object, comprises:
In some embodiments, the method further comprises, before the generating a resulting video based on the shooting page:
In some embodiments, the method further comprises, after the presenting, on the shooting page, input information bounded to the target virtual object:
In some embodiments, the in response to a trigger operation on a preset effect entry, displaying, on a shooting page, a preset effect resource for a target place of interest (POI) corresponding to a first user, comprises:
In some embodiments, the method further comprises, after the displaying a preset first effect resource on the shooting page: additionally displaying a third virtual object on the shooting page, in response to determining that the distance between the first user and the target POI is less than the preset distance threshold, the third virtual object belonging to the preset second effect resource.
In some embodiments, the preset first effect resource comprises the at least one first virtual object; and the preset second effect resource comprises the at least one first virtual object or a fourth virtual object.
In a second aspect, the present disclosure further provides a video generation apparatus, comprising:
In a third aspect, the present disclosure provides a computer-readable storage medium having therein stored instructions that, when run on a terminal device, cause the terminal device to implement the method described above.
In a fourth aspect, the present disclosure provides a device, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor, when executing the computer program, implementing the method described above.
In a fifth aspect, the present disclosure provides a computer program product, comprising computer programs/instructions which, when executed by a processor, implement the method described above.
In a sixth aspect, the present disclosure provides a computer program, comprising: instructions which, when executed by a processor, cause the processor to perform the video generation method according to any of the embodiments described above.
The accompanying drawings herein, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
In order to more clearly illustrate technical solutions in the embodiments of the present disclosure or the related art, the drawings required for use in the description of the embodiments or the related art will be briefly described below, and it is obvious that for one of ordinary skill in the art, other drawings can be obtained without paying creative labor.
In order that the above objectives, features and advantages of the present disclosure may be more clearly understood, solutions of the present disclosure will be further described below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be implemented in other ways different from those described herein; and it is obvious that the embodiments in the description are only part of the embodiments of the present disclosure, rather than all of them.
As described above, with the continuous development of short video technology, requirements of users for video shooting functions are increasingly diversified, and therefore, how to support an AR effect while shooting a video is a technical problem to be solved urgently at present.
In order to solve the above technical problem, the present disclosure provides a video generation method, capable of presenting on a shooting page a preset effect resource corresponding to a target POI, and providing a virtual object generation function for a user, and generating a resulting video based on a shooting effect presented on the shooting page, so that the video shooting functions are enriched.
In order to meet diversified shooting function requirements of people, the present disclosure provides a video generation method, comprising: in response to receiving a trigger operation on a preset effect entry, displaying on a shooting page, a preset effect resource for a target POI corresponding to a first user, wherein the preset effect resource comprises at least one first virtual object, and the at least one first virtual object is displayed on the shooting page in a manner of moving towards the target POI; then, based on a virtual object generation control on the shooting page, generating a virtual object corresponding to the first user as a second virtual object, and in response to receiving a trigger operation on the second virtual object, presenting on the shooting page that, the second virtual object is displayed in a manner of moving towards the target POI, and then generating a resulting video based on the shooting page. It can be seen that, the embodiments of the present disclosure are capable of, presenting on a shooting page a preset effect resource for a target POI corresponding to a first user, and generating a second virtual object for the user, and generating a resulting video based on a shooting effect presented on the shooting page, so that the video shooting functions are enriched.
Based on this, some embodiments of the present disclosure provides a video generation method, by referring to
S101: in response to a trigger operation on a preset effect entry, displaying, on a shooting page, a preset effect resource for a target place of interest (POI) corresponding to a first user.
The preset effect resource comprises at least one first virtual object, the at least one first virtual object is displayed on the shooting page in a manner of moving towards the target POI, and the shooting page is provided with a virtual object generation control.
In some embodiments, the preset effect entry may be provided on the shooting page as one of effect resource entries presented on the shooting page. In response to receiving the trigger operation on the preset effect entry on the shooting page, the preset effect resource of the target POI corresponding to the first user is displayed on the shooting page. The preset effect resource may comprise an augmented reality (AR) effect resource and the like.
In some embodiments, the preset effect entry may also be an anchor point provided on a video playing page, and by clicking on the preset effect entry on the video playing page by the user, the shooting page is jumped to, and the preset effect resource for the target POI corresponding to the first user is displayed on the shooting page.
It should be noted that the preset effect entry in some embodiments of the present disclosure may be provided on any page, which is not limited in the embodiments of the present disclosure.
In some embodiments of the present disclosure, the target POI corresponding to the first user may comprise a target scenic spot, a target restaurant, a target playground, a target shopping mall, and the like corresponding to the first user. The target POI corresponding to the first user may refer to a closest POI to the first user, or a POI selected by the first user, and so on.
In some embodiments, in response to receiving a trigger operation on a preset effect entry, position information (e.g., GPS positioning information) of a first user (also referred to as a current user) is first determined, and based on the position information of the first user, a closest POI to the first user is determined as a target POI. Then, a preset effect resource corresponding to the target POI is obtained, for example, the preset effect resource corresponding to the target POI may be obtained from a content resource server, wherein the preset effect resource may comprise at least one first virtual object, the first virtual object may, for example, be a wishing lantern object, and the preset effect resource may further comprise a Milky Way effect resource, a name icon of the target POI, and the like. The preset effect resource for the target POI is an effect resource pre-configured based on a feature of the target POI, based on which, the user is enabled to be personally on the scene, so that the user immerses into the environmental atmosphere of the target POI in the process of shooting a video.
It should be noted that, on the premise of meeting the relevant laws and regulations, if it is determined that the current user is willing to use the video generation method according to the present disclosure and authorizes the use of the current user's position information, the embodiments of the present disclosure can obtain the position information of the user.
In the embodiments of the present disclosure, in response to receiving a trigger operation on a preset effect entry, a preset effect resource is displayed on a shooting page, for example, at least one first virtual object corresponding to a target POI is displayed on the shooting page, and based on position information of the target POI and position information of a first user, it is controlled that each first virtual object on the shooting page is displayed in a manner of moving towards the target POI.
In the embodiments of the present disclosure, the shooting page may further be provided with a virtual object generation control, for triggering, in response to the user clicking on the virtual object generation control, generating a virtual object corresponding to the first user, as a second virtual object.
Referring to
In some embodiments of the present disclosure, the effect of the target POI presented on the shooting page shown in
In some embodiments, in order to enrich the video shooting functions, the effect resource may also differently displayed for the first user on the shooting page, based on the distance between the first user and the target POI.
In a practical application, in response to the first user being in a far distance from the target POI, a preset first effect resource may be displayed for the first user, and in response to the first user being in a near distance from the target POI, a preset second effect resource can be displayed. The preset first effect resource and the preset second effect resource are different, for example, display effects of the preset first AR effect resource and the preset second AR effect resource may be set based on a specific situation.
For example, in response to a trigger operation on a preset effect entry, a target POI is determined for a first user from at least one POI, wherein a distance between the target POI and the first user is the closest; then, it is determined whether the distance between the first user and the target POI is less than a preset distance threshold. In response to determining that the distance between the first user and the target POI is not less than the preset distance threshold, a preset first effect resource is displayed on a shooting page; otherwise, a preset second effect resource is displayed on the shooting page. The preset first effect resource and the preset second effect resource are different preset effect resources.
In some embodiments, the preset first effect resource may comprise the at least one first virtual object; and the preset second or resource may comprise the at least one first virtual object and a fourth virtual object. The fourth virtual object may be a virtual object only displayed at a position closer to the target POI, such as a central big wishing lantern object.
In some embodiments, after displaying the preset first effect resource on the shooting page, in response to determining that the distance between the first user and the target POI is less than the preset distance threshold, a third virtual object may be additionally displayed based on the first effect resource already displayed on the shooting page. For example, based on the display of the first effect resource, the central big wishing lantern effect object is additionally displayed on the shooting page, so as to present a process of approaching the target POI.
In a practical application, in response to the first user going from a position where the distance from the target POI is greater than the preset distance threshold to a position where the distance from the target POI is less than the preset distance threshold, the dynamic effect of the third virtual object is additionally displayed on the shooting page based on the display of the preset first effect resource. The third virtual object and the fourth virtual object may be the same or different.
S102: generating, based on the virtual object generation control, a virtual object corresponding to the first user as a second virtual object.
In the embodiments of the present disclosure, in response to receiving a trigger operation on the virtual object generation control on the shooting page, a virtual object template may be presented on the shooting page, wherein the virtual object template comprises an information input area. As shown in
In a practical application, a user can call an input keyboard by clicking on an information input area in a virtual object template, and after information is input within the information input area by the input keyboard, based on the input information within the information input area, a virtual object is generated for the first user as a second virtual object, that is, a binding relationship is established between the second virtual object carrying the input information and the first user.
S103: in response to a trigger operation on the second virtual object, presenting, on the shooting page, that the second virtual object is displayed in a manner of moving towards the target POI.
In some embodiments, after the second virtual object has been generated based on the input information, in response to receiving a trigger operation on the second virtual object, an effect that the second virtual object is displayed on the shooting page in a manner of moving towards the target POI may be controlled. For example, assuming that the second virtual object is a wishing lantern object customized by the first user, the wishing lantern object customized by the first user may be controlled to be displayed in a manner of moving upward on the shooting page, so as to present an effect that the wishing lantern floats towards the target POI in a shooting image.
In some embodiments, the virtual object template presented on the shooting page also comprises a movement display trigger control, as shown in
In some embodiments, in response to receiving a trigger operation on a target first virtual object in the at least one first virtual object displayed on the shooting page, input information bound to the target first virtual object may be presented on the shooting page, wherein the target first virtual object has a correspondence with a second user, and the second user has a correspondence with the target POI.
As shown in
In some embodiments, after the input information bound to the target first virtual object is presented on the shooting page, movement display of the target virtual object towards the target POI may be controlled on the shooting page. For example, timekeeping may be started in response to presentation of the input information bound to the target first virtual object being started on the shooting page, and in response to the timekeeping reaching a preset duration, movement display of the target first virtual object towards the target POI on the shooting page is controlled. Assuming that the target first virtual object is a wishing lantern object flown by the second user, in response to the first user viewing the wishing lantern object flown by the second user, an effect that the wishing lantern object of the second user floats back to sky is displayed.
S104: generating a resulting video based on the shooting page.
Compared with the related art, the technical solution according to the embodiments of the present disclosure has at least the following advantages.
The embodiments of the present disclosure provides a video generation method, comprising: in response to receiving a trigger operation on a preset effect entry, displaying on a shooting page, a preset effect resource for a target POI corresponding to a first user, wherein the preset effect resource comprises at least one first virtual object, and the at least one first virtual object is displayed on the shooting page in a manner of moving towards the target POI; then, based on a virtual object generation control on the shooting page, generating a virtual object corresponding to the first user as a second virtual object, and in response to receiving a trigger operation on the second virtual object, presenting on the shooting page that, the second virtual object is displayed in a manner of moving towards the target POI, and then generating a resulting video based on the shooting page. It can be seen that, the embodiments of the present disclosure is capable of, presenting on a shooting page a preset effect resource for a target POI corresponding to a first user, and generating a virtual object for the user, and generating a resulting video based on a shooting effect presented on the shooting page, so that the video shooting functions are enriched.
In some embodiments, the preset effect resource for the target POI corresponding to the first user may be displayed in a shooting preview image of the shooting page, or in a shooting image of the shooting page.
In a practical application, in response to receiving a trigger operation on a shooting control on a shooting page, a video shooting is started, and in the process of the shooting, a first user may, based on a preset effect resource displayed on the shooting page, trigger generation of a second virtual object, an effect that the second virtual object generated for the first user is displayed on the shooting page in a manner of moving towards a target POI, and the like.
In response to receiving a re-trigger operation on the shooting control on the shooting page, the shooting of the video is finished, and a resulting video may be obtained. The resulting video not only comprises the shooting effect displayed on the shooting page, but also comprises an interaction process of the first user on the shooting page. For example, the resulting video not only has therein displayed the wishing lantern displayed on the shooting page, but also comprises the process that the first user customizes and fly the wishing lantern, and in addition, the resulting video may also comprise the process that the first user views the wish in the wishing lantern flown by the other user, and the like.
In the video generation method according to the embodiments of the present disclosure, in response to receiving a trigger operation on a preset effect entry, a preset effect resource for a target POI corresponding to a first user is displayed on a shooting page, wherein the preset effect resource comprises at least one first virtual object. Then, based on a virtual object generation control on the shooting page, a virtual object corresponding to the first user is generated as a second virtual object, and in response to receiving a trigger operation on the second virtual object, the second virtual object is displayed on the shooting page in a manner of moving towards the target POI, and then a resulting video is generated based on the shooting page. It can be seen that, the embodiments of the present disclosure is capable of, presenting on a shooting page a preset effect resource for a target POI corresponding to a first user, and generating a second virtual object for the user, and generating a resulting video based on an AR effect presented on the shooting page, so that the video shooting functions are enriched.
Based on the same inventive concept as the above embodiment, some embodiments of the present disclosure further provides a video generation apparatus, referring to
In some embodiments, the first generation module comprises: a first presentation sub-module configured to, in response to a trigger operation on the virtual object generation control, present a virtual object template on the shooting page, wherein the virtual object template comprises an information input area; and
In some embodiments, the apparatus further comprises:
In some embodiments, the apparatus further comprises:
In some embodiments, the preset effect resource comprises a preset first effect resource and a preset second effect resource; and the first display module comprises:
In some embodiments, the apparatus further comprises:
In some embodiments, the preset first effect resource comprises the at least one first virtual object; and the preset second effect resource comprises the at least one first virtual object or a fourth virtual object.
In the video generation apparatus provided by the embodiments of the present disclosure, when a trigger operation on a preset effect entry has been received, a preset effect resource for a target POI corresponding to a first user is displayed on a shooting page, wherein the preset effect resource comprises at least one first virtual object, and the at least one first virtual object is displayed on the shooting page in a manner of moving towards the target POI. Then, on the bases of a virtual object generation control on the shooting page, a virtual object corresponding to the first user is generated as a second virtual object, and when a trigger operation on the second virtual object has been received, it is presented on the shooting page that the second virtual object is displayed in a manner of moving towards the target POI, and then a resulting video is generated based on the shooting page. It can be seen that, the embodiments of the present disclosure is capable of, presenting on a shooting page a preset effect resource for a target POI corresponding to a first user, and generating a second virtual object for the user, generating a resulting video based on the shooting effect presented on the shooting page, so that the video shooting functions are enriched.
In addition to the above method and apparatus, some embodiments of the present disclosure further provides a computer-readable storage medium having therein stored instructions which, when run on a terminal device, cause the terminal device to implement the video generation method according to the embodiments of the present disclosure.
Some embodiments of the present disclosure further provides a computer program product, comprising a computer program/instructions which, when executed by a processor, implement the video generation method according to the embodiments of the present disclosure.
In addition, some embodiments of the present disclosure further provides a video generation device, which may, as shown in
a processor 601, a memory 602, an input device 603, and an output device 604. The number of the processor 601 in the video generation device may be one or more, and one processor is taken as an example in
The memory 602 may be configured to store software programs and modules, and the processor 601 may perform various functional applications and data processing of the video generation device by running the software programs and modules stored in the memory 602. The memory 602 may mainly comprise a program storage area and a data storage area, wherein the program storage area may have therein stored an operating system, an application required for at least one function, and the like. Furthermore, the memory 602 may comprise a high speed random access memory, and may also comprise a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. The input device 603 may be configured to receive input numeric or character information and generate signal inputs related to user settings and function controls of the video generation device.
In this embodiment, the processor 601 can load an executable file corresponding to a process of one or more applications into the memory 602 according to the following instructions, and the applications stored in the memory 602 is run by the processor 601, thereby implementing various functions of the above video generation device.
It should be noted that, relational terms such as “first” and “second”, herein, are only used for distinguishing one entity or operation from another entity or operation without necessarily requiring or implying any such actual relation or order between these entities or operations. Moreover, the term “comprise”, “comprise”, or any other variation thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a list of elements not only comprises those elements but also comprises other elements not expressly listed, or also comprises elements inherent to such a process, method, article, or device. Without more limitations, an element defined by a statement “comprising a . . . ” does not exclude the presence of another identical element in a process, method, article, or device that comprises the element.
The above only describes the specific implementations of the present disclosure, which enable those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be apparent 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 will not be limited to these embodiments described herein, but conform to the widest scope consistent with the principles and novel features disclosed herein.
Number | Date | Country | Kind |
---|---|---|---|
202210067195.6 | Jan 2022 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/SG2023/050002 | 1/3/2023 | WO |