Method, apparatus, electronic device, and storage medium for generating video

The method simplifies video capture by displaying video element information on a shooting screen when scanning codes, reducing the complexity of operations and enhancing user experience.

JP7684439B2Active Publication Date: 2025-05-27BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023571856
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-05-21
Filing Date
2022-05-20
Publication Date
2025-05-27
Estimated Expiration
2042-05-20

AI Technical Summary

Technical Problem

Existing methods for capturing videos by scanning codes require complex operations and are time-consuming, which hinders quick video capture for users.

Method used

A method and device that display a target screen and a shooting screen, identify element identification information on the target screen, and display corresponding video element information, including video templates, on the shooting screen, allowing for simplified video generation operations.

Benefits of technology

This approach simplifies the operations required to identify and use video elements, improving user experience by enabling quicker video capture and generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007684439000001
    Figure 0007684439000001
  • Figure 0007684439000002
    Figure 0007684439000002
  • Figure 0007684439000003
    Figure 0007684439000003
Patent Text Reader

Abstract

The embodiments of the present disclosure provide a method, device, electronic device and storage medium for generating a video, which includes: displaying a target screen captured by a camera to display a shooting screen for shooting a video including the target screen; in response to the presence of element identification information on the target screen, displaying element information of a target video element corresponding to the element identification information, the target video element including at least one of an effect and a video template, on the shooting screen; in response to receiving a use operation for the target video element, displaying a preview of the target video element; in response to receiving a video generation operation, adopting the target video element to generate a video.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] [CROSS REFERENCE TO RELATED APPLICATIONS] This application claims priority to a Chinese patent application bearing application number 202110558793.9, filed with the China Patent Office on May 21, 2021, the entire contents of which are incorporated herein by reference.

[0002] TECHNICAL FIELD The present disclosure relates to the field of computer technology, for example, to a video generation method, device, electronic device, and storage medium. [Background technology]

[0003] Now, users can quickly add contacts, deposit and withdraw funds, and more by scanning a code. Effect For example, a user can scan a code by displaying a scan screen on the terminal device and scanning the code. Effect Instruct the user to identify the Effect Trigger the camera to enter the shooting screen. Effect You can use it to shoot videos.

[0004] However, in related technology, scanning the code Effect However, the method of identifying and capturing a video requires complicated operations and takes time, which is disadvantageous for users in capturing a video quickly. Summary of the Invention

[0005] In the embodiment of the present disclosure, a code is scanned on the shooting screen. Effect Identify and capture the code, scan it Effect The present invention provides a video generating method, device, electronic device, and storage medium that identify a subject and simplify the operations required to shoot a video.

[0006] According to a first aspect, an embodiment of the present disclosure includes: Displaying a target screen captured by a camera and displaying a shooting screen for shooting a video including the target screen; In response to the presence of element identification information on the target screen, element information of a target video element corresponding to the element identification information, which Effect and includes at least one of a video template, is displayed on the shooting screen; In response to receiving a use operation on the target video element, displaying a preview of the target video element; In response to receiving a video generation operation, generating a video by adopting the target video element, and providing a video generation method.

[0007] According to a second aspect, an embodiment of the present disclosure is a screen display module arranged to display a target screen captured by a camera and display a shooting screen for shooting a video including the target screen; When element identification information exists on the target screen, an information display module arranged to display element information of a target video element corresponding to the element identification information, which Effect and / or includes a video template, on the shooting screen; a preview display module arranged to display a preview of the target video element when a use operation on the target video element is received; and a video generation module arranged to generate a video by adopting the target video element when a video generation operation is received, and further provide a video generation device.

[0008] According to a third aspect, an embodiment of the present disclosure is at least one processor; a memory arranged to store at least one program, and when the at least one program is executed by the at least one processor, the at least one processor is caused to implement the video generation method described in the embodiment of the present disclosure, and further provide an electronic device.

[0009] According to a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method for generating a video described in the embodiment of the present disclosure.

Brief Description of the Drawings

[0010] In all the accompanying drawings, the same or similar elements are denoted by the same or similar reference numerals. It should be understood that the accompanying drawings are schematic and that the originals and elements are not necessarily drawn to scale.

[0011]

Figure 1

Figure 2

Figure 3

Figure 4

Figure 5

Figure 6

Figure 7

Modes for Carrying Out the Invention

[0012] The following describes the embodiments of the present disclosure in more detail with reference to the accompanying drawings.

[0013] It should be understood that each step described in the embodiments of the method of the present disclosure may be executed in a different order and / or may be executed in parallel. Furthermore, the method embodiments may include additional steps and / or may omit the execution of the steps shown. The scope of the present disclosure is not limited in this regard.

[0014] As used herein, the term "comprising" and its variations are open-ended and inclusive, i.e., they mean "including but not limited to". The term "based on" means "at least partially based on". The term "an embodiment" means "at least one embodiment", the term "another embodiment" means "at least one other embodiment", and the term "some embodiments" means "at least some embodiments". Related definitions of other terms are given in the following description.

[0015] Note that concepts such as "first", "second", etc. described in the present disclosure are merely for distinguishing different devices, modules, or units, and are not for limiting the order or interdependence of the functions executed by these devices, modules, or units.

[0016] Note that the modifications of "one" and "a plurality" described in the present disclosure are schematic and not restrictive. It is obvious to those skilled in the art that "at least one" should be understood unless otherwise specifically stated.

[0017] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are merely illustrative and do not limit the scope of these messages or information.

[0018] FIG. 1 is a schematic diagram showing the flow of a method for generating a video according to an embodiment of the present disclosure. The method may be executed by a video generation device. Here, the device may be implemented by software and / or hardware, may be disposed in an electronic device, and typically may be disposed in a mobile phone or a tablet. The method for generating a video according to an embodiment of the present disclosure is applicable to a scenario of scanning a code to identify video elements and generating a video using the video elements. As shown in FIG. 1, the method for generating a video according to this embodiment may include the following steps.

[0019] S101: Display a target screen captured by a camera and display a shooting screen for shooting a video including the target screen.

[0020] Here, the shooting screen may be a screen for shooting a video and / or a photo, and may be displayed in response to a corresponding trigger operation for displaying the shooting screen executed by the user. The target screen may be a screen captured by a currently turned-on camera (for example, a front camera or a back camera, etc.).

[0021] Exemplarily, when the electronic device displays a screen other than the shooting screen, if the user wants to take a shot, a corresponding trigger operation for instructing the electronic device to display the shooting screen is executed, for example, the shooting control displayed on the other screen may be triggered. Accordingly, when the electronic device detects a trigger operation for displaying the shooting screen executed by the user, the current display screen is switched from the other screen to the shooting screen, the camera is activated, the target screen captured by the camera is displayed on the shooting screen, and the currently turned-on camera may be switched in response to a trigger operation for switching the camera executed by the user. For example, when a trigger operation for switching the camera is received, the currently turned-on front camera (or back camera) is switched to the back camera (or front camera).

[0022] S102: If there is element identification information in the target screen, a target video element corresponding to the element identification information EffectAnd / or display the element information of the target video element including the video template on the shooting screen.

[0023] In this embodiment, when displaying the shooting screen, identify the element identification information. When the element identification information is identified, directly display the element information of the target video element corresponding to the identified element identification information on the shooting screen, and it is possible to present to the user that the target video element has been identified, without the need to identify the element identification information on another screen (for example, the scan screen) and switch to the shooting screen to use the target video element. Thereby, the operations required to scan the code and identify and use the video element can be simplified, and the user experience can be improved.

[0024] Here, the element identification information may be the identification information of the video element, for example, the identification information of images such as the graphic code of the video element. Accordingly, the target video element may be the video element to which the element identification information on the target screen belongs. The video element may Effect And / or include a video template. Effect Can be used to shoot a video including its video effect. The video template can be used to generate a video including its video effect by adopting the video material (for example, video and / or photo) selected by the user. The element information of the target video element may include information such as the element icon and / or the element name of the target video element.

[0025] Exemplarily, when displaying the shooting screen, the target screen captured by the camera may be acquired in real time or periodically (for example, every 1 second). For example, acquire the target screen displayed on the shooting screen in real time or periodically, and determine whether the target screen includes the element identification information corresponding to any one video element. If the target screen includes the element identification information corresponding to any one video element, acquire the element information of the video element (that is, the target video element), and display the element information on the shooting screen. For example, display the element window 20 of the video element on the shooting screen, and display the element information in the element window 20. As shown in FIG. 2 (in the figure, the target shooting element is EffectTaking the case where it is [as an example], go back and execute the operation of acquiring the target screen captured by the camera in real time or periodically until the current condition satisfies the preset end condition. If the target screen does not contain the element identification information corresponding to any one of the video elements, go back and execute the operation of acquiring the target screen captured by the camera in real time or periodically until the current condition satisfies the preset end condition. Here, the preset end condition can be regarded as a condition for stopping the operation of acquiring the target screen captured by the camera in real time or periodically and determining whether the screen contains the element identification information, and it can be set as needed. For example, the preset end condition may be that the current display screen switches from the captured screen to another screen, the currently turned-on camera switches from the back camera to the front camera, and / or the state of the camera switches from the preview state to the shooting state, etc.

[0026] As can be understood, when there are multiple element identification information in the target screen, the electronic device may present the element information of the target video element corresponding to each element identification information in the target screen to the user and display it in order, or directly display the element information of the target video element corresponding to the multiple element identification information in the target screen on the captured screen. Also, it may present to the user to select a preset number (for example, one or more) of element identification information from the existing multiple element identification information, and after the selection by the user is completed, display the element information of the target video element corresponding to the element identification information selected by the user on the captured screen. It can be set flexibly as needed, and this embodiment does not impose restrictions on this.

[0027] In one embodiment, after displaying the aforementioned captured screen, it further includes determining that the camera is in the preview state and / or determining that the camera is the back camera.

[0028] When the camera is in the shooting state, it is highly likely that the user wants to shoot a video. Considering that when the turned-on camera is the front camera, the user is highly likely to want to take a self-portrait, in the above embodiment, only when the camera is in the preview state and / or the turned-on camera is the back camera, it is determined whether there is element identification information on the target screen. When it is determined that there is element identification information on the target screen, the element information of the target video element corresponding to the element identification information may be displayed on the shooting screen. Thereby, it is possible to avoid giving unnecessary interference to the user when the user does not want to identify the target video element based on the target screen, and improve the user experience.

[0029] Taking as an example the case of determining whether there is element identification information on the target screen only when the camera is in the preview state and the camera is the back camera, when the current conditions meet the condition of determining whether there is element identification information on the target screen, for example, when the current time reaches the time for determining whether there is element identification information on the target screen, it may be determined whether the camera is in the preview state and whether the turned-on camera is the back camera. When the camera is in the preview state and the camera is the back camera, the target screen captured by the camera is obtained, and it is determined whether there is element identification information on the target screen. When the camera is not in the preview state and / or the turned-on camera is not the back camera, this time, the operation of obtaining the target screen captured by the camera and determining whether there is element identification information on the target screen is not executed.

[0030] S103: When receiving a use operation on the target video element, display a preview of the target video element.

[0031] Here, the use operation may be a trigger operation for using the target video element, for example, an operation for triggering a use control within the element window, etc., and this can be used to instruct the electronic device to display a preview of the target video element.

[0032] Taking as an example the case of displaying the element information of the target video element in the element window, as shown in FIG. 2, the electronic device displays the element window 20 of the target video element on the shooting screen and displays the element information of the target video element in the element window 20. When the user wants to check the preview of the target video element, the user may trigger the usage control 21 (i.e., " Effect Usage 21" in FIG. 2). Accordingly, when the electronic device detects that the user has triggered the usage control 21, the electronic device determines that it has received a usage operation on the target video element, and in response to the usage operation, displays the preview of the target video element on the target video element.

[0033] In this embodiment, when receiving a usage operation on the target video element, the electronic device may determine whether it has downloaded the target video element locally. If the electronic device has downloaded the target video element locally, it may display the preview of the target video element on the target video element. If the electronic device has not downloaded the target video element locally, it downloads the target video element, presents a download prompt, and as shown in FIG. 3 (taking the case where the target video element is Effect as an example), it may display the preview of the target video element on the target video element after the download is completed. At this time, optionally, before displaying the preview of the target video element as described above, if the target video element is in an undownloaded state, it further includes downloading the target video element and presenting a download prompt.

[0034] Exemplarily, when the target video element is not locally downloaded, the electronic device may generate a resource packet acquisition request including the target identification information of the target video element and send the resource packet acquisition request to the server. Accordingly, the server receives the resource packet acquisition request sent by the electronic device, analyzes the resource packet acquisition request, obtains the target identification information attached to the resource packet acquisition request, acquires the resource packet corresponding to the target identification information, and may send the resource packet to the electronic device that sent the resource packet acquisition request. Thereby, the electronic device receives the resource packet sent by the server, analyzes the resource packet to obtain the arrangement information of the target video element, and can locally install and arrange the target video element based on the arrangement information.

[0035] S104: When receiving a video generation operation, generate a video by adopting the target video element.

[0036] Here, the video generation operation may be an operation of generating a video, for example, an operation of triggering the shooting control 22 on the shooting screen (shown in FIG. 2), or an operation of triggering a video generation control.

[0037] In this embodiment, the user can generate (for example, shoot or synthesize) a video by adopting the identified target video element.

[0038] Exemplarily, when the target video element is Effect as such, the electronic device displays a preview of the target video element on the shooting screen. When the user wants to shoot a video by adopting the target video element, the user triggers (for example, taps) the shooting control on the shooting screen. Accordingly, when detecting that the user taps the shooting control on the shooting screen, the electronic device determines that a video generation operation has been received, and in response to the video generation operation, shoots a video including the element effect of the target video element, acquires the target screen shot by the camera in real time, and synthesizes the target screen and the element effect of the target video element to generate a target video.

[0039] When the target video element is a video template, the electronic device may display a preview of the target video element on the shooting screen, or switch the shooting screen to a display screen for the preview of the target video element and display the preview of the target video element on the display screen. When the user wants to generate a video by adopting the target video element, the user triggers (for example, taps) the material addition control on the shooting screen or the display screen. When the electronic device detects that the user has triggered the material addition control, the electronic device may display a material selection screen to allow the user to select video materials for generating a video. Thereby, the user can select the video materials for generating the current video on the material selection screen and trigger the video generation control after the selection is completed. Accordingly, when the electronic device detects that the user has triggered the video generation control, the electronic device determines that it has received a video generation operation, and in response to the video generation operation, adopts the video materials selected by the user and the element effect of the target video element (that is, the effect of the video template) to generate a video including the element effect of the target video element.

[0040] In the method for generating a video according to this embodiment, a shooting screen is displayed, a target screen captured by a camera is displayed on the shooting screen, and a video including the target screen is shot. When element identification information exists on the target screen, a target video element corresponding to the element identification information and Effect and / or element information of the target video element including a video template is displayed on the shooting screen. When a use operation on the target video element is received, a preview of the target video element is displayed. When a video generation operation is received, a video is generated by adopting the target video element. By adopting the above technical solution, in the scenario of shooting a video, this embodiment can identify the element identification information of the video element. When the identification is successful, the video element can be directly displayed and used in the video shooting scenario to generate a video, without the need to switch to the shooting screen by identifying the element identification information on another screen and use the target video element, simplifying the operations required for identifying and using the video element by scanning the code, and improving the user experience.

[0041] FIG. 4 is a schematic diagram showing the flow of another method for generating a video according to an embodiment of the present disclosure. The form in this embodiment may be combined with at least one alternative form of the above embodiments. Optionally, the element identification information is a graphic code. After displaying the above-described shooting screen, further, a preset graphic code identification algorithm is adopted to identify whether a graphic code exists on the target screen. When a graphic code exists on the target screen, graphic code presentation information is displayed on the shooting screen, and the graphic code information of the graphic code is obtained. When it is determined from the above-described graphic code information that the target corresponding to the graphic code is a video element, the target corresponding to the graphic code is used as a target video element, and the element information of the target video element corresponding to the element identification information is displayed on the shooting screen, which includes the case where, when element identification information exists on the target screen, element information of the target video element corresponding to the element identification information is displayed on the shooting screen.

[0042] Optionally, before displaying the element information of the target video element corresponding to the above-described element identification information on the shooting screen, further, the target identification information included in the graphic code information is obtained, the target identification information is used as the target identification information of the target video element, an information acquisition request including the target identification information is generated, and the information acquisition request is transmitted to the server, and the element information of the target video element returned by the server based on the information acquisition request is received.

[0043] Accordingly, as shown in FIG. 4, the method for generating a video according to this embodiment includes the following steps.

[0044] S201: Display the target screen captured by the camera and display a shooting screen for shooting a video including the target screen.

[0045] S202: Adopt a preset graphic code identification algorithm to identify whether a graphic code exists on the target screen.

[0046] Here, the graphic code may include identification codes of graphics such as two-dimensional codes and / or barcodes.

[0047] Taking the case where the graphic code is a two-dimensional code as an example, in this embodiment, when displaying the shooting screen, the camera acquires the target screen captured, and adopts a preset two-dimensional code identification algorithm to identify whether there is a two-dimensional code on the target screen.

[0048] S203: When there is a graphic code on the target screen, display graphic code prompt information on the shooting screen and acquire the graphic code information of the graphic code.

[0049] Accordingly, when there is no graphic code on the target screen, at the current time, it can be determined that the video element has not been identified, and then return to execute S202 until the current conditions meet the preset end conditions, for example, until the current display screen switches from the shooting screen to another screen.

[0050] Here, the prompt information may be information for prompting the user that the graphic code has been identified. The graphic code information may be information obtained by analyzing the graphic code, for example, the information address of the graphic code. The graphic code information of a certain graphic code may include the element type identification of the target object corresponding to the graphic code and the target identification information.

[0051] Exemplarily, when there is a graphic code on the target screen, as shown in FIG. 5, display graphic code prompt information on the shooting screen to prompt the user that the graphic code has been identified, and acquire the graphic code information of the graphic code. For example, the graphic code may be analyzed to obtain the information address of the graphic code.

[0052] S204: When it is determined from the graphic code information that the target object corresponding to the graphic code is a video element, acquire the target identification information included in the graphic code information and use the target identification information as the target identification information of the target video element.

[0053] Here, the target object can be regarded as an object corresponding to the graphic code, that is, the object represented by the graphic code, such as a shooting element, an article (including virtual articles), a video, a screen, or an image. The object identification information may be information representing the identity of the target object, such as an object ID. Accordingly, the target identification information may be identification information of characters such as the element ID of the target video element.

[0054] Exemplarily, it may be determined whether the target object corresponding to the graphic code on the target screen is a video element from the acquired graphic code information. That is, it is determined whether the graphic code on the target screen is the graphic code of the video element. When it is determined that the target object corresponding to the graphic code on the target screen is a video element, the target object may be used as the target video element, and the target object identification information may be acquired from the graphic code information as the target identification information of the target video element.

[0055] In this embodiment, the method for determining whether the target object corresponding to the graphic code on the target screen is a video element can be set flexibly. For example, directly acquire the object identification information in the graphic code information of the graphic code, generate an information acquisition request or a resource packet download request with the object identification information attached, and send it to the server of the application software to which the shooting screen belongs, and acquire the object information or the resource packet of the target object from the server. If the acquisition is successful, it is determined that the target object is a video element. If the acquisition is not successful, it is determined that the target object is not a video element. Acquire the object type identification included in the graphic code information of the graphic code, and determine whether the object type identification is an element type identification, or directly determine whether the element type identification is included in the graphic code information of the graphic code. When the object type identification is an element type identification or the element type identification is included in the graphic code information of the graphic code, it is determined that the target object is a video element. When the object type identification is not an element type identification and the element type identification is not included in the graphic code information of the graphic code, it is determined that the target object is not a video element.

[0056] In order to reduce the amount of computation required for the process of scanning the code, for example, it may be directly determined whether element type identification is included in the graphic code information of the graphic code. At this time, optionally, the method for generating a video according to this embodiment further includes determining that the target object corresponding to the graphic code is a video element when the element type identification is included in the graphic code information. Here, the element type identification may be the type identification of the target object of the video element category, and may be used to indicate that the object classification of the target object is a video element.

[0057] S205: Generate an information acquisition request including the target identification information and send the information acquisition request to the server.

[0058] S206: Receive the element information of the target video element returned by the server based on the information acquisition request.

[0059] Here, the information acquisition request may be a request for acquiring the element information of the target video element.

[0060] Exemplarily, after acquiring the target identification information of the target video element, the electronic device may generate an information acquisition request with the target identification information attached, send the information acquisition request to the server, and request the server to acquire the element information of the target video element by the information acquisition request. Accordingly, after receiving the information acquisition request sent by the electronic device, the server analyzes the information acquisition request, obtains the target identification information attached to the information acquisition request, acquires the element information of the target video element corresponding to the target identification information based on the target identification information, and may send the element information to the electronic device that sent the information acquisition request. Thereby, the electronic device can receive the element information sent from the server as the element information of the target video element.

[0061] S207: Display the element information of the target video element corresponding to the element identification information on the shooting screen. The element identification information is a graphic code, and the target video element includes Effect and / or a video template.

[0062] S208: When receiving a usage operation on the target video element, display a preview of the target video element.

[0063] S209: When receiving a video generation operation, generate a video by adopting the target video element.

[0064] In this embodiment, by adopting the above technical solution, it is identified whether a graphic code exists on the target screen. And only when it is identified that a graphic code exists on the target screen, based on the graphic code information of the identified graphic code, it is determined whether the target object corresponding to the graphic code is a video element. Also, when it is determined that the target object corresponding to the graphic code is a video element, based on the target identification information in the graphic code information thereof, the element information of the corresponding video element is acquired and displayed. Thereby, the calculation amount required for the process of scanning the code to identify the video element can be reduced, the timeliness of element information display can be improved, and the user experience can be improved.

[0065] FIG. 6 is a block diagram showing the configuration of a video generation device according to an embodiment of the present disclosure. The device may be implemented by software and / or hardware, and may be arranged in an electronic device, and typically may be arranged in a mobile phone or a tablet. A video can be generated by executing a video generation method. As shown in FIG. 6, the video generation device according to this embodiment may include a screen display module 601, an information display module 602, a preview display module 603, and a video generation module 604. Among them, The screen display module 601 is arranged to display a target screen captured by a camera and display a shooting screen for shooting a video including the target screen. The information display module 602, when there is element identification information on the target screen, is arranged to display the element information of the target video element corresponding to the element identification information, which Effect and / or includes a video template, on the shooting screen. When the preview display module 603 receives a usage operation on the target video element, it is arranged to display a preview of the target video element. When the video generation module 604 receives a video generation operation, it is arranged to generate a video by adopting the target video element.

[0066] The video generation device according to this embodiment uses the screen display module to display a shooting screen, and displays a target screen captured by the camera on the shooting screen. When there is element identification information on the target screen by the information display module, a target video element corresponding to the element identification information, Effect and / or element information of the target video element including a video template is displayed on the shooting screen. When the preview display module receives a usage operation on the target video element, it displays a preview of the target video element. When the video generation module receives a video generation operation, it generates a video by adopting the target video element. By adopting the above technical solution, in the scenario of shooting a video, this embodiment can identify the element identification information of the video element. When the identification is successful, the video element can be directly displayed and used in the video shooting scenario to generate a video, eliminating the need to identify the element identification information on other screens and switch to the shooting screen to use the target video element. This simplifies the operations required to scan the code to identify and use the video element, and can improve the user experience.

[0067] In the above technical solution, the element identification information may be a graphic code. The video generation device according to this embodiment may further include a graphic code identification module arranged to identify whether there is a graphic code on the target screen by adopting a preset graphic code identification algorithm after displaying the shooting screen, and a first information acquisition module arranged to display graphic code prompt information on the shooting screen and acquire the graphic code information of the graphic code when there is a graphic code on the target screen.

[0068] When it is determined based on the graphic code information that the target object corresponding to the graphic code is a video element, the information display module 602 may be provided to display, on the shooting screen, the target object corresponding to the graphic code as a target video element and the element information of the target video element corresponding to the element identification information.

[0069] Optionally, the video generation device according to this embodiment may further include an element determination module arranged to determine that the target object corresponding to the graphic code is a video element when the graphic code information includes an element type identification.

[0070] Optionally, before displaying the element information of the target video element corresponding to the element identification information on the shooting screen as described above, the video generation device according to this embodiment further includes a second information acquisition module arranged to acquire the target identification information included in the graphic code information and use it as the target identification information of the target video element, a request module arranged to generate an information acquisition request including the target identification information and transmit the information acquisition request to the server, and an information reception module arranged to receive the element information of the target video element returned by the server based on the information acquisition request.

[0071] Optionally, the video generation device according to this embodiment may further include a camera determination module arranged to determine that the camera is in a preview state and / or the camera is a rear camera after displaying the shooting screen as described above.

[0072] Optionally, before displaying the preview of the target video element as described above, the video generation device according to this embodiment may further include a download module arranged to download the target video element and perform a download prompt if the target video element is in an undownloaded state.

[0073] The video generation device according to an embodiment of the present disclosure can execute the video generation method according to any embodiment of the present disclosure and has functional modules corresponding to the execution of the video generation method. For the details of the technology not described in detail in this embodiment, reference can be made to the video generation method according to any embodiment of the present disclosure.

[0074] Next, refer to FIG. 7, which is a schematic configuration diagram of an electronic device (for example, a terminal device) 700 that is suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure can include, for example, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), PADs (tablets), portable media players (PMPs), in-vehicle terminals (for example, in-vehicle navigation terminals), and fixed terminals such as digital TVs (Televisions, TVs) and desktop computers, but is not limited thereto. The electronic device shown in FIG. 7 is only an example and does not impose any limitations on the functions and usage ranges of the embodiments of the present disclosure.

[0075] As shown in FIG. 7, the electronic device 700 may include a processing device (for example, a central processing unit, a graphics processor, etc.) 701, which can execute various appropriate operations and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 706 into a random access memory (RAM) 703. Various programs and data necessary for the operation of the electronic device 700 are further stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0076] Generally, an input device 706 including, for example, a touch screen, a touch panel, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyro, etc., an output device 707 including, for example, a liquid crystal display (LCD), a speaker, an oscillator, etc., a storage device 706 including, for example, a magnetic tape, a hard disk, etc., and a communication device 709 may be connected to an I / O interface 705. The communication device 709 enables the electronic device 700 to communicate with other devices wirelessly or wiredly to exchange data. Although an electronic device 700 equipped with various devices is shown in FIG. 7, it should be understood that there is no intention to require the implementation or provision of all the shown devices. It is possible to alternatively implement or provide more or fewer devices.

[0077] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be realized as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program including program code for executing the method shown in the flowchart, carried on a non-transitory computer-readable medium. In such an embodiment, the computer program can be downloaded and installed from a network by the communication device 709, or installed from the storage device 706, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above functions defined by the method of the embodiment of the present disclosure are executed.

[0078] Note that the computer-readable medium in the present disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specifically, the computer-readable storage medium may include, but is not limited to, an electrical connection having at least one wire, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, the computer-readable storage medium may be any tangible medium that includes or stores a program, and the program can be used by or in combination with a command execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or a data signal propagating a part thereof in a carrier wave, in which computer-readable program code is carried. The data signal propagated in this way may adopt various forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium may further be any computer-readable medium other than the computer-readable storage medium, and the computer-readable signal medium can transmit, propagate, or transmit a program used by or in combination with a command execution system, apparatus, or device. The program code included in the computer-readable medium can be transmitted through any suitable medium, including, but not limited to, electric wires, optical cables, radio frequency (RF), etc., or any suitable combination thereof.

[0079] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), the Internet, and end-to-end networks (e.g., ad hoc end-to-end networks), and any network currently known or future-developed.

[0080] The computer-readable medium may be included in the electronic device or may be a separate one not implemented in the electronic device.

[0081] The computer-readable medium carries at least one program, and when the at least one program is executed by the electronic device, the electronic device is caused to display a target screen captured by a camera and display a shooting screen for shooting a video including the target screen, and when element identification information exists in the target screen, element information of a target video element corresponding to the element identification information and / or including a video template is displayed on the shooting screen, and when a use operation on the target video element is received, a preview of the target video element is displayed, and when a video generation operation is received, a video is generated by adopting the target video element. Effect And / or execute to display the element information of the target video element on the shooting screen, display a preview of the target video element when receiving a use operation on the target video element, and generate a video by adopting the target video element when receiving a video generation operation.

[0082] The computer program code for performing the operations of the present disclosure can be written in one or more programming languages or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and also including, but not limited to, more general procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user computer, partially on the user computer, executed as an independent software package, partially on the user computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user computer by any network including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., connected via the Internet using an Internet service provider).

[0083] The flowcharts and block diagrams in the accompanying drawings illustrate the possible system architectures, functions, and operations of the systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a portion of code, and the module, program segment, or portion of code includes at least one executable instruction for implementing the specified logical function. It should be noted that in some alternative implementations, the functions represented by the blocks may be implemented in a different order than that shown in the drawings. For example, depending on such functions, two consecutively shown blocks may be executed substantially in parallel, or they may sometimes be executed in reverse order. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated system based on hardware that executes the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0084] The units according to the embodiments of the present disclosure may be implemented in software or in hardware. Here, the name of the module may not limit the unit itself.

[0085] The functions described above in this specification can be executed, at least in part, by at least one hardware logic component. For example, exemplary hardware logic components that can be used include, but are not limited to, Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Parts (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), and the like.

[0086] In the present disclosure, the machine-readable medium may be a tangible medium, and includes, or can store, a program used by, or in combination with, a command execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the above. More specific examples of the machine-readable storage medium include at least one electrical connection based on wiring, a portable computer disk, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM or flash memory), an optical fiber, a Compact Disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0087] According to at least one embodiment of the present disclosure, Example 1 includes displaying a target screen captured by a camera and displaying a shooting screen for shooting a moving image including the target screen; when there is element identification information in the target screen, a target video element corresponding to the element identification informationEffect displaying element information of a target video element including a video template on the shooting screen; when receiving a usage operation on the target video element, displaying a preview of the target video element; when receiving a video generation operation, generating a video by adopting the target video element, and providing a method for generating a video including the above.

[0088] According to at least one embodiment of the present disclosure, in Example 2, the element identification information is a graphic code. After displaying the shooting screen as described above, further, adopting a preset graphic code identification algorithm to identify whether there is a graphic code on the target screen; when there is a graphic code on the target screen, displaying graphic code prompt information on the shooting screen and obtaining graphic code information of the graphic code, including: when there is element identification information on the target screen as described above, displaying element information of a target video element corresponding to the element identification information on the shooting screen is: when it is determined based on the graphic code information that the target object corresponding to the graphic code is a video element, taking the target object corresponding to the graphic code as a target video element, and displaying element information of the target video element corresponding to the element identification information on the shooting screen, the method according to Example 1.

[0089] According to at least one embodiment of the present disclosure, in Example 3, determining that the target object corresponding to the graphic code is a video element based on the graphic code information as described above is: when the graphic code information includes element type identification, determining that the target object corresponding to the graphic code is a video element, the method according to Example 2.

[0090] According to at least one embodiment of the present disclosure, in Example 4, before displaying element information of a target video element corresponding to the element identification information on the shooting screen, further, Obtaining the target identification information included in the graphic code information and using it as the target identification information of the target video element; Generating an information acquisition request including the target identification information and sending the information acquisition request to the server; Receiving the element information of the target video element returned by the server based on the information acquisition request, the method according to Example 2.

[0091] According to at least one embodiment of the present disclosure, Example 5 further includes, after displaying the shooting screen as described above, Determining that the camera is in the preview state and / or Further including determining that the camera is the rear camera, the method according to any one of Examples 1 to 4.

[0092] According to at least one embodiment of the present disclosure, Example 6 further includes, before displaying the preview of the target video element as described above, If the target video element is in the undownloaded state, downloading the target video element and performing a download prompt, the method according to any one of Examples 1 to 4.

[0093] According to at least one embodiment of the present disclosure, Example 7 A screen display module arranged to display a shooting screen for shooting a video including the target screen by displaying the target screen captured by the camera; When there is element identification information on the target screen, an information display module arranged to display the element information of the target video element corresponding to the element identification information and / or including a video template on the shooting screen; Effect A preview display module arranged to display a preview of the target video element when a use operation on the target video element is received; A video generation module arranged to generate a video by adopting the target video element when a video generation operation is received, providing a video generation device.

[0094] ​ According to at least one embodiment of the present disclosure, Example 8 is the device according to Example 7, further comprising a camera determination module arranged to determine that the camera is in a preview state after displaying the shooting screen and / or to determine that the camera is a rear camera as described above.

[0095] According to at least one embodiment of the present disclosure, Example 9 is including at least one processor and a memory arranged to store at least one program, wherein when the at least one program is executed by the at least one processor, the at least one processor is caused to implement the method for generating a video according to any one of Examples 1 to 6, providing an electronic device.

[0096] According to at least one embodiment of the present disclosure, Example 10 provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method for generating a video according to any one of Examples 1 to 6.

[0097] Also, although each operation is described in a specific order, this should not be construed as requiring that such operations be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above description, they should not be construed as limiting the scope of the present disclosure. Specific features described in relation to a single embodiment may be implemented in combination with a single embodiment. Conversely, the various features described in relation to a single embodiment may be implemented separately in multiple embodiments or in any suitable sub-combination.

[0098] While the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely exemplary forms of implementing the claims.

Claims

1. Displaying a shooting screen for shooting a moving image including a target screen by displaying the target screen photographed by a camera; In response to the presence of element identification information in the target screen, displaying element information of a target moving image element corresponding to the element identification information, the target moving image element including at least one of an effect and a video template, on the shooting screen; In response to receiving a use operation on the target moving image element, displaying a preview of the target moving image element; A method for generating a moving image, comprising generating a moving image by adopting the target moving image element in response to receiving a moving image generation operation.

2. The element identification information is a graphic code. After displaying the shooting screen, further: Identifying whether a graphic code exists on the target screen by adopting a preset graphic code identification algorithm; In response to the presence of a graphic code on the target screen, displaying graphic code prompt information on the shooting screen and acquiring graphic code information of the graphic code, wherein, in response to the presence of element identification information in the target screen, displaying element information of a target moving image element corresponding to the element identification information on the shooting screen is: In response to determining that a target object corresponding to the graphic code is a moving image element based on the graphic code information, displaying, on the shooting screen, the element information of the target moving image element corresponding to the element identification information, with the target object corresponding to the graphic code as the target moving image element. The method according to claim 1.

3. The method according to claim 2, further comprising determining that a target object corresponding to the graphic code is a moving image element in response to the graphic code information including an element type identification.

4. Before displaying the element information of the target moving image element corresponding to the element identification information on the shooting screen, further: Acquiring target identification information included in the graphic code information and using the target identification information as the target identification information of the target moving image element; Generating an information acquisition request including the target identification information and transmitting the information acquisition request to a server; Receiving the element information of the target moving image element returned by the server based on the information acquisition request. The method according to claim 2.

5. After displaying the shooting screen, further: An operation of determining that the camera is in a preview state; The method according to claim 1, comprising at least one of the operations of determining that the camera is a back camera.

6. Before displaying the preview of the target video element, further The method according to claim 1, comprising downloading the target video element in response to the target video element being in an undownloaded state and performing a download prompt.

7. A screen display module arranged to display a target screen captured by a camera and to display a shooting screen for shooting a video including the target screen; An information display module arranged to display, on the shooting screen, element information of a target video element corresponding to the element identification information, the target video element including at least one of an effect and a video template, when the element identification information exists on the target screen; A preview display module arranged to display a preview of the target video element when a use operation on the target video element is received; A video generation device including a video generation module arranged to generate a video by adopting the target video element when a video generation operation is received.

8. The apparatus according to claim 7, further comprising a camera determination module arranged to execute at least one of an operation of determining that the camera is in a preview state and an operation of determining that the camera is a back camera after displaying the shooting screen.

9. At least one processor; A memory arranged to store at least one program; and An electronic device, wherein when the at least one program is executed by the at least one processor, the at least one processor realizes the method for generating a video according to any one of claims 1 to 6.

10. A computer-readable storage medium storing a computer program which, when executed by a processor, realizes the method for generating a video according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method for displaying corresponding materials in two-dimension code area on screen of mobile terminal

    CN103761062A

  • Video shooting method and device, electronic device and readable medium

    CN109495684A

  • Virtual image generation method and device, terminal and storage medium

    CN110827378A

  • Projector, projection system, program and information storage medium

    JP2010098645A