CN113794835A - Video recording method and device and electronic equipment - Google Patents

Video recording method and device and electronic equipment Download PDF

Info

Publication number
CN113794835A
CN113794835A CN202111017108.8A CN202111017108A CN113794835A CN 113794835 A CN113794835 A CN 113794835A CN 202111017108 A CN202111017108 A CN 202111017108A CN 113794835 A CN113794835 A CN 113794835A
Authority
CN
China
Prior art keywords
video
image
target
recording
preview interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111017108.8A
Other languages
Chinese (zh)
Other versions
CN113794835B (en
Inventor
林君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202111017108.8A priority Critical patent/CN113794835B/en
Publication of CN113794835A publication Critical patent/CN113794835A/en
Application granted granted Critical
Publication of CN113794835B publication Critical patent/CN113794835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/633Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
    • H04N23/635Region indicators; Field of view indicators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application discloses a video recording method, a video recording device and electronic equipment, and belongs to the technical field of video recording. The method comprises the following steps: when the scroll screen is in an unfolded state and a first recording preview interface is displayed in a first screen area, a target background image and a target object image are displayed in a second screen area, and the target object image is an image of a target object in the first recording preview interface; outputting the target video based on target information, the target information including at least one of: displaying content of a first recording preview interface and displaying content in a second screen area; wherein the target video comprises at least one of: a first video, a second video, a third video; the first video is generated according to the display content of the first recording preview interface, the second video is generated according to the display content in the second screen area, and the third video is generated according to the display content in the first recording preview interface and the second screen area.

Description

Video recording method and device and electronic equipment
Technical Field
The application belongs to the technical field of videos, and particularly relates to a video recording method and device and electronic equipment.
Background
At present, the way of recording life by shooting short videos is more and more popular with users, and how to shoot interesting short videos also becomes the focus of attention of users. The user can shoot the short video through the video function in the camera application program, and then the recorded video is correspondingly processed according to the requirement of the user, so that the short video with the display effect required by the user is obtained.
However, in the above method, the user needs to first control the camera of the electronic device to capture a short video, and then perform video post-processing on the short video through the video post-editing software to obtain the required short video, so that the operation of the user is complicated.
Disclosure of Invention
The embodiment of the application aims to provide a video recording method and device and electronic equipment, and can solve the problems of complex operation and time consumption when the electronic equipment edits and processes a shot video.
In a first aspect, an embodiment of the present application provides a video recording method, where the method includes: when the scroll screen is in an unfolded state and a first recording preview interface is displayed in a first screen area, a target background image and a target object image are displayed in a second screen area, and the target object image is an image of a target object in the first recording preview interface; outputting the target video based on target information, the target information including at least one of: displaying content of a first recording preview interface and displaying content in a second screen area; wherein the target video comprises at least one of: a first video, a second video, a third video; the first video is generated according to the display content of the first recording preview interface, the second video is generated according to the display content in the second screen area, and the third video is generated according to the display content in the first recording preview interface and the second screen area.
In a second aspect, an embodiment of the present application provides a video recording apparatus, including: the device comprises a display module and an output module. The display module is used for displaying a target background image and a target object image in the second screen area under the condition that the scroll screen is in an unfolded state and the first recording preview interface is displayed in the first screen area, wherein the target object image is an image of a target object in the first recording preview interface. An output module for outputting a target video based on target information, the target information including at least one of: displaying content of a first recording preview interface and displaying content in a second screen area; wherein the target video comprises at least one of: a first video, a second video, a third video; the first video is generated according to the display content of the first recording preview interface, the second video is generated according to the display content in the second screen area, and the third video is generated according to the display content in the first recording preview interface and the second screen area.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In this embodiment, in a case that a scroll screen of the electronic device is in an unfolded state and a first recording preview interface is displayed in a first screen area, the electronic device may display a target background image and an image of a target object displayed in the first recording preview interface in a second screen area, and output at least one of a first video, a second video, and a third video based on at least one of a display content of the first recording preview interface and a display content in the second screen area. When the scroll screen of the electronic device is in the unfolded state, if the first recording preview interface is displayed in the first screen area, the electronic device may display the target background image and the image of the target object displayed in the first recording preview interface in the second screen area, so that the electronic device may output at least one of the following videos based on the display content of the first recording preview interface and/or the display content in the second screen area: according to the method, the device and the system for recording the videos, the first video is generated according to the display content of the first recording preview interface, the second video is generated according to the display content of the second screen area, the third video is generated according to the display content of the first recording preview interface and the display content of the second screen area, so that in the process of recording the videos of the electronic equipment, not only can the original video be recorded, but also the video which replaces the background image and is edited can be recorded, the problems that when the electronic equipment edits the shot video, the operation is complex and time-consuming can be solved, and the efficiency of shooting the video with the display effect required by a user by the electronic equipment is improved.
Drawings
Fig. 1 is a schematic diagram of a video recording method according to an embodiment of the present application;
fig. 2 is one of schematic diagrams of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 3 is a second schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 4 is a second schematic diagram of a video recording method according to an embodiment of the present application;
fig. 5 is a third schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 6 is a fourth schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present application;
fig. 7 is a third schematic diagram of a video recording method according to an embodiment of the present application;
fig. 8 is a fifth schematic view of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 9 is a sixth schematic view of an example of an interface of a mobile phone according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a video recording apparatus according to an embodiment of the present application;
fig. 11 is a second schematic structural diagram of a video recording apparatus according to an embodiment of the present application;
fig. 12 is a third schematic structural diagram of a video recording apparatus according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 14 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship. Plural in the embodiments of the present application means at least two.
The video recording method provided by the embodiment of the application is applied to a scene of video recording of electronic equipment, the specific application scene can be determined according to actual use requirements, and the application is not specifically limited.
Taking video recording of an electronic device including a scroll screen as an example for explanation, assuming that a user needs to trigger the electronic device including the scroll screen to perform video recording on a target person (or a target animal, a target object, etc.) to obtain a target video, the user can trigger the electronic device to display a video recording preview interface (i.e., a first recording preview interface) in a first screen area by inputting when the scroll screen of the electronic device is in a contracted state, so that the user can perform selection input on the target person (i.e., a target object image) included in the video recording preview interface to trigger the electronic device to acquire an image of the target person, control the scroll screen to be unfolded, and display a plurality of background marks indicating background images (e.g., an original background image, a starry sky background image, a science fiction background image, etc.) in the scroll screen, further, the user can selectively input a background identifier (i.e., a target identifier) for indicating the starry sky background image from among the plurality of background identifiers, so as to trigger the electronic device to display the starry sky background image in the second screen area after the scroll screen is unfolded to the unfolded state, and display an image of a target person in the starry sky background image, so that the electronic device can start video recording, so as to output a first video corresponding to the video recording preview interface in the first screen area and a second video corresponding to the starry sky background image in the second screen area based on the display content in the first screen area and the display content in the second screen area, record a third video (i.e., a synthesized video of the first video and the second video) corresponding to the video preview interface and the starry sky background image in the second screen area in the first screen area, and according to the selection input of the user, and playing and saving the first video, the second video or the third video.
Therefore, in the embodiment of the application, a user can trigger the electronic device to record the original video and the processed video replacing the background image in the process of recording the video by the electronic device. The original video does not need to be edited to obtain the required processed video after the original video is recorded by the electronic equipment. Therefore, the efficiency of shooting the video with the display effect required by the user by the electronic equipment can be improved.
The video recording method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 shows a flowchart of a video recording method provided in an embodiment of the present application, and the method may be applied to a video recording apparatus including a scroll screen. As shown in fig. 1, a video recording method provided in an embodiment of the present application may include steps 201 and 202 described below.
Step 201, when the scroll screen is in an unfolded state and the first recording preview interface is displayed in the first screen area, the video recording device displays a target background image and a target object image in the second screen area.
In this embodiment of the application, the target object image is an image of a target object in a first recording preview interface, and the target object image may be a static image or a dynamic image that is extracted in real time.
The present application is executed when the camera application is run by the electronic device, and the camera application is run in the foreground of the electronic device, and in a scene in which the video preview state (i.e., video recording is not started), the technical solution of the present application may be executed.
Optionally, in this embodiment of the application, when the target object image is a dynamic image that is extracted in real time, the electronic device may extract the target object image included in the first preview image to obtain an individual image when the first preview image is displayed in the first screen region, and display the extracted target object image in the second screen region, where the target object image displayed in the second screen region corresponds to the target object image included in the first preview image displayed in the first screen region in real time, that is, the target object image displayed in the second screen region changes with a change in the target object image displayed in the first screen region.
It can be understood that, in the process of acquiring images by the camera in real time, as time goes by, the first preview image displayed in the first screen area is updated to the second preview image, and then the target object image displayed in the second screen area is updated in real time to the target object image included in the second preview image.
Optionally, in this embodiment of the present application, the scroll screen includes two states: the scroll screen comprises a first screen area and a second screen area under the condition that the scroll screen is in the unfolded state; in the case where the scroll screen is in the contracted state, the scroll screen includes the first screen region and does not include the second screen region (the second screen region is contracted inside the electronic apparatus).
Optionally, in this embodiment of the application, in a case where the scroll screen is in the expanded state and the camera application is running, the electronic device may display a video recording preview interface (i.e., a first recording preview interface) in the first screen area, and display the target background image and the target object image in the second screen area.
Optionally, in this embodiment of the application, the target object is an object included in a first recording preview interface displayed in the first screen area. The target object is an object selected by a user in the first recording preview interface, and the object may be any one of the following objects: humans, animals, objects, etc.
Optionally, in this embodiment of the application, the video recording apparatus may be understood as an electronic device, that is, the video recording apparatus is applied to an electronic device.
Optionally, in this embodiment of the application, the target background image may be a static image (for example, an image of one frame in a video) or a dynamic image, and the target background image may be a pre-stored image or a pre-stored video image of any frame in one video.
Step 202, the video recording device outputs the target video based on the target information.
In an embodiment of the present application, the target information includes at least one of: the display content of the first recording preview interface and the display content of the second screen area.
Wherein the target video comprises at least one of: a first video, a second video, a third video; the first video is generated according to the display content of the first recording preview interface, the second video is generated according to the display content in the second screen area, and the third video is generated according to the display content in the first recording preview interface and the second screen area.
It is to be understood that the third video is a composite video of the first video and the second video, where the composite video is a video obtained by directly compositing the first video and the second video, or the composite video is a video obtained by compositing each frame of image in the first video with a corresponding frame of image in the second video, and finally obtaining a composite video of all the obtained composite images, where the composite video is a video obtained by compositing two videos through a video clipping function.
Optionally, in this embodiment of the application, when the target video includes the first video, the electronic device obtains the first video according to the video image displayed in the first recording preview interface, where the first video includes a video object in the first recording preview interface.
Optionally, in this embodiment of the application, when the target video includes the second video, the electronic device obtains the second video according to the target background image and the target object image displayed in the second screen area, where the second video includes the video object displayed in the second screen area.
Optionally, in this embodiment of the application, when the target video includes a third video, the electronic device obtains the third video according to the video image displayed in the first recording preview interface and the target background image and the target object image displayed in the second screen area, where the third video includes the first recording preview interface and the video object displayed in the second screen area, and each frame of video image in the third video is obtained by synthesizing an image acquired by a camera corresponding to the first recording preview interface, the target background image, and the target object image.
The embodiment of the application provides a video recording method, wherein when a scroll screen of an electronic device is in an unfolded state and a first recording preview interface is displayed in a first screen area, the electronic device can display a target background image and an image of a target object displayed in the first recording preview interface in a second screen area, and output at least one of a first video, a second video and a third video based on at least one of display content of the first recording preview interface and display content of the second screen area. When the scroll screen of the electronic device is in the unfolded state, if the first recording preview interface is displayed in the first screen area, the electronic device may display the target background image and the image of the target object displayed in the first recording preview interface in the second screen area, so that the electronic device may output at least one of the following videos based on the display content of the first recording preview interface and/or the display content in the second screen area: according to the method, the device and the system for recording the videos, the first video is generated according to the display content of the first recording preview interface, the second video is generated according to the display content of the second screen area, the third video is generated according to the display content of the first recording preview interface and the display content of the second screen area, so that in the process of recording the videos of the electronic equipment, not only can the original video be recorded, but also the video which replaces the background image and is edited can be recorded, the problems that when the electronic equipment edits the shot video, the operation is complex and time-consuming can be solved, and the efficiency of shooting the video with the display effect required by a user by the electronic equipment is improved.
Optionally, in this embodiment of the present application, before the "video recording apparatus displays the target background image and the target object image in the second screen area" in step 201, the video recording method provided in this embodiment of the present application may further include steps 301 to 303 described below.
Step 301, the video recording device displays at least one background logo.
Wherein a background indicator indicates an image or video.
Optionally, in this embodiment of the application, the user may save a plurality of images or videos in the electronic device in advance, so as to select a desired one of the images or videos as the target background image displayed in the second screen area.
Step 302, the video recording apparatus receives a second input of the target background identifier from the at least one background identifier from the user.
Optionally, in this embodiment of the application, a plurality of background identifiers are displayed in the scroll screen, one background identifier is used to indicate one background image, the target background identifier is any one of the at least one background identifier, and the target background identifier is used to indicate the target background image. The mark in the present application is a text, a symbol, an image, etc. for indicating information, and a control or other container may be used as a carrier for displaying information, including but not limited to a text mark, a symbol mark, an image mark.
Optionally, in this embodiment of the application, the at least one context identifier may include at least one of: the system comprises a real background mark, a starry sky background mark, a science fiction background mark and the like, wherein the real background mark is used for indicating a video which is currently acquired by the electronic equipment in real time (namely, a video corresponding to a first recording preview interface is displayed in a first screen area), the starry sky background mark is used for indicating a starry sky video which is pre-stored by the electronic equipment, and the science fiction background mark is used for indicating a science fiction video which is pre-stored by the electronic equipment.
Optionally, in this embodiment of the application, the target background identifier is a background identifier arbitrarily selected by a user from a plurality of background identifiers, so that the electronic device may display a target background image indicated by the target background identifier in the second screen area.
Optionally, in this embodiment of the application, in a case that the background identifier indicates one image, the electronic device may display the target image in the second screen area according to an input of the target background identifier (that is, the target image) by the user, so that in a case that the electronic device starts to record a video, each frame of the target object image obtained by the matting may be displayed in the target image with the target image as a background in the second screen area.
Optionally, in this embodiment of the application, in a case that the background identifier indicates one video, the electronic device may start to play the target video in the second screen area when starting to record the video according to an input of the user to the target background identifier (that is, the target video), so that in a process of recording the video by the electronic device, each frame of the target object image obtained by matting may be displayed in each frame of the target image with the target video as a background in the second screen area.
Step 303, the video recording apparatus determines the image indicated by the target background identifier or one frame of video image in the video as the target background image in response to the second input.
Optionally, in this embodiment of the application, when the video recording device does not start to record a video, the target background image displayed in the second screen area by the video recording device is an image indicated by the target background identifier or a frame of video image in the video, and when the video recording is started in the first screen area, the target background image displayed in the second screen area starts to be played from the first frame of image.
Optionally, in this embodiment of the application, the video recording apparatus displays the target object image in the image indicated by the target background identifier or in a frame of video image in the video, so as to obtain a video in which the background image is replaced by the target object.
Optionally, in this embodiment of the application, the electronic device may display, according to a second input of the user, a target background image indicated by the target background identifier in the second screen area, and fuse and display an image of the target object in the target background image.
Optionally, in this embodiment of the application, the target object is an image corresponding to an object selected by a user in a first recording preview interface displayed in a first screen area in advance, so as to trigger the electronic device to acquire the target object image.
Optionally, in this embodiment of the application, the electronic device may perform image fusion on the image of the target object and the target background image through an image processing technology to display the image of the target object in the target background image, where it should be noted that the image fusion or the video fusion referred to in this application refers to synthesizing two videos or images to obtain one video through a video editing function.
Optionally, in this embodiment of the application, the electronic device may start video recording after displaying the target background image in the second screen area and displaying the target object image at the corresponding display position in the target background image.
Optionally, in this embodiment of the application, the target background images displayed on the first recording preview interface and the second screen area are two independent display areas and are respectively displayed in the first screen area and the second screen area, and the electronic device may simultaneously record and acquire a first video corresponding to the first recording preview interface, a second video corresponding to the target background image, and a third video corresponding to the synthesized first video and second video.
The description will be given by taking a video recording device as a mobile phone as an example. As shown in fig. 2 (a), when the scroll screen of the mobile phone is in the unfolded state, the mobile phone may display a video recording preview image (i.e., a first recording preview interface) in the first screen area 10, and display a blank picture in the second screen area 11, and display a plurality of background identifiers for indicating different background images in a preset area of the screen, and the user may perform a selection input on a target identifier 12 of the plurality of background identifiers, as shown in fig. 2 (B), the mobile phone may display a target background image corresponding to the target identifier 12 in the second screen area 11, and display an image of a target object 13 obtained from the video recording preview image displayed in the first screen area 10 in the target background image, so as to start video recording.
In the embodiment of the application, the electronic device may determine, by displaying at least one background identifier used for indicating an image or a video, and according to a second input of a user to a target background identifier in the at least one background identifier, a frame of video image in the image or the video indicated by the target background identifier as a target background image, so as to display the target background image in the second screen area, and display a target object image in the target background image, so that the efficiency of selecting the background image by the electronic device is high.
Optionally, in this embodiment of the application, after the electronic device records and acquires a first video corresponding to the first recording preview interface and a second video corresponding to the second screen area, the electronic device may display a video selection interface, and the user may perform selection input to trigger the electronic device to store the first video, the second video, or a third video obtained by synthesizing the first video and the second video in the electronic device according to the selection input of the user.
It is understood that the electronic device may only store the first video or the second video in the electronic device, may also store two videos, i.e., the first video and the second video, respectively, or may store a third video obtained by synthesizing the first video and the second video.
Optionally, in this embodiment of the application, the user may further select to record the video normally, so that when the scroll screen is in the screen-expanded state, the first screen area and the second screen area are combined into a complete screen area, and the video recording preview image is enlarged in proportion and then displayed in the complete screen area.
For example, referring to fig. 2 (a), as shown in fig. 3, after the user selects and inputs the normal recording identifier, the mobile phone may combine the first screen area 10 and the second screen area 11 into a complete screen area, and display the video recording preview image displayed in the first screen area 10 in the complete screen area after scaling up the video recording preview image.
Optionally, in this embodiment, with reference to fig. 1, as shown in fig. 4, before step 201, the video recording method provided in this embodiment may further include steps 401 to 403 described below.
Step 401, when the scroll screen is in a contracted state and the first recording preview interface is displayed in the first screen area, the video recording apparatus receives a first input of a user to a target object in the first recording preview interface.
Optionally, in this embodiment of the application, when the scroll screen in the electronic device is in the screen-retracted state, the user may trigger the electronic device to run the camera application and be in the video recording mode, so as to display the video recording preview image in the first screen area.
Optionally, in this embodiment of the application, a user may perform selection input on a target object included in the video recording preview image to trigger the electronic device to select the target object in the video recording preview image by displaying the mark frame, and perform image processing on the video recording preview image to obtain an image of the target object.
Optionally, in this embodiment of the application, the target object may be an image corresponding to any object in the video recording preview image, and the target object may be any one of the following objects: a person image, an animal image, an object image, and the like.
The video recording device controls the roll screen to unwind in response to the first input, step 402.
Optionally, in this embodiment of the application, after the user triggers the electronic device to determine the target object in the video recording preview image, the electronic device may acquire an image of the target object from the video recording preview image through an image processing technique.
Optionally, in this embodiment of the application, while the electronic device acquires the image of the target object, the electronic device may control the scroll screen to be unfolded to the unfolded state, so as to unfold and display the second screen area, and display the corresponding background image in the second screen area according to the input of the user.
Optionally, in this embodiment of the application, in a process that the electronic device controls the scroll screen to be unfolded to the unfolded state, the electronic device keeps displaying the video recording preview interface (i.e., the first recording preview interface) in the first screen area.
Illustratively, in conjunction with fig. 2 (a), as shown in fig. 5 (a), the scroll screen on the mobile phone is in a screen-contracted state, and the user triggers the mobile phone to run the camera application, and starts to record video, the mobile phone displays a video recording preview image in the first screen area 10, a target object 13 (e.g., a target person) is included in the video recording preview image, the user can make a selection input for the target object 13, to trigger the mobile phone to select the target object 13, and mark the target object 13 through the mark box, as shown in (B) of fig. 5, when the target object 13 is selected by the mobile phone and the user presses the mark frame of the target object 13, the mobile phone can control the scroll screen to be unfolded from the screen contraction state to the screen unfolding state, and continues to display the video recording preview image in the first screen area 10 during the unwinding of the reel screen.
And 403, under the condition that the scroll screen is unfolded to the preset state, the video recording device acquires a first image of the first recording preview interface, and extracts an image of an area where the target object is located in the first image to acquire a target object image.
Optionally, in this embodiment of the application, the preset state may be understood as that the expansion area of the second screen region is greater than or equal to a preset area.
Optionally, in this embodiment of the application, the electronic device (i.e., the video recording device) may acquire a frame of image corresponding to the currently displayed interface from the first recording preview interface, so as to extract an image of a region where the target object is located from the frame of image through an image processing technique, so as to obtain the target object image.
In the embodiment of the application, the electronic device can be in a contraction state on the scroll screen, and the scroll screen is controlled to be unfolded according to the first input of a user to a target object in the first recording preview interface under the condition that the first screen area displays the first recording preview interface, and a first image of the first recording preview interface is obtained under the condition that the scroll screen is unfolded to a preset state, so that an image of an area where the target object is located is extracted from the first image, the target object image is obtained, and the efficiency of obtaining the target object image by the electronic device is improved.
In the embodiment of the application, when a user records a video, the user selects a target object in the video, an image of the target object corresponding to each frame of image in the video is obtained through an object matting algorithm, then a reel screen of an electronic device is unfolded, virtual background materials (namely a plurality of background images) which can be selected by the user are arranged in an unfolding area (namely a second screen area) of the reel screen, and after the user selects the target background image, the matting image of the target object is fused with the background image in real time through a fusion algorithm, so that the video of the target object in a video recording preview image and the target background image is obtained. The user can select and store the video corresponding to the video recording preview image, the video corresponding to the target background image or the composite video corresponding to the video recording preview image and the target background image according to the needs of the user.
Optionally, in this embodiment of the present application, the video recording apparatus includes a first camera and a second camera, and the first recording preview interface is a recording preview interface of the first camera. The "video recording apparatus displays the target background image and the target object image in the second screen area" in the above step 201 can be specifically realized by the following step 201 a.
Step 201a, the video recording device displays a second recording preview interface and a target object image in a second screen area.
In this embodiment of the application, the second recording preview interface is a recording preview interface of a second camera, and the target background image is a video image acquired by the second camera.
Optionally, in this embodiment of the application, the electronic device displays an extended preview interface (i.e., a second recording preview interface) corresponding to the first recording preview interface in the second screen area, and starts to record a video in the first screen area and the second screen area.
Optionally, in this embodiment of the application, the scene displayed in the extended preview interface is a scene adjacent to the scene displayed in the first recording preview interface.
Optionally, in this embodiment of the application, the first recording preview interface and the second recording preview interface are images obtained through two cameras, and the electronic device displays the first recording preview interface in the first screen area and the second recording preview interface in the second screen area after image processing, where the first recording preview interface and the second recording preview interface may be two independent interfaces.
Optionally, in this embodiment of the application, the first recording preview interface may be an image obtained through a first camera, the second recording preview interface is an image obtained through a second camera, and the electronic device may splice the first recording preview interface and the second recording preview interface to obtain a complete video recording interface through an image processing technology.
Optionally, in this embodiment of the application, the electronic device correspondingly displays the target object image in each frame of image included in the second recording and previewing interface displayed in the second screen area according to the target object in each frame of image included in the first recording and previewing interface in the first screen area, and may cancel displaying the target object image in each frame of image included in the first recording and previewing interface in the first screen area.
Optionally, in this embodiment of the application, when the electronic device starts to record a video, the electronic device may obtain, from the first screen area, a target object image in each frame of image included in the first recording preview interface, so as to correspondingly display the target object image in an extended preview image (i.e., the second recording preview interface) displayed in the second screen area.
Optionally, in this embodiment of the application, the electronic device may keep displaying the target object in the first recording preview interface in the first screen area, or may cancel displaying the target object image in each frame of image included in the first recording preview interface in the first screen area.
Optionally, in this embodiment of the application, the first screen area and the second screen area have the same size, and the recording fields of view of the second camera and the first camera have the same size, so that the video images displayed in the first screen area and the second screen area can be better connected and the whole screen area can be better covered.
Optionally, in this embodiment of the application, the electronic device may start a second camera moving along with the scroll screen to record a video, and fuse each frame of target object image extracted from the first screen region into a second recording preview interface displayed in the second screen region through a fusion algorithm, and perform background splicing transition on videos recorded by the two cameras, and simultaneously eliminate the target object in the first screen region through an object elimination algorithm to obtain a video effect that the target object moves from the first screen region to the second screen region.
It can be understood that, when the target background image is an extended preview image (a second recording preview interface) corresponding to a video recording preview image (a first recording preview interface), the target background image selected by the user is not a pre-stored image, but a real background image recorded by a camera moving along with a scroll screen, the obtained image of the target object and the real background image of the second screen area are subjected to image fusion in real time through a fusion algorithm, the target object image displayed in the first screen area is eliminated through an object elimination algorithm, and the display effect of the target object moving to the second screen area is achieved.
Illustratively, in conjunction with (a) in fig. 2, after the user makes a selection input on a first identifier 14 of the displayed plurality of background identifiers, as shown in (a) in fig. 6, the mobile phone may display a target background image (i.e., an extended preview image) corresponding to the first identifier 14 in the second screen area 11, and display a target object 13 obtained from the video recording preview image displayed in the first screen area 10 in the extended preview image, so as to start video recording, and obtain a first video corresponding to the video recording preview image in the first screen area 10 and a second video corresponding to the preset image in the second screen area 11.
In the embodiment of the application, the electronic device displays the extended preview image corresponding to the video recording preview image in the second screen area, and starts to record the video in the first screen area and the second screen area. And correspondingly displaying the target object in each frame of image included in the extended preview image displayed in the second screen area according to the target object in each frame of image included in the video recorded image in the first screen area, and canceling the display of the target object in each frame of image included in the video recorded image in the first screen area. By utilizing the screen scalability of the scroll screen and the characteristic that the camera is movable, the acquired image of the target object is fused with the real background in real time through a fusion algorithm, a matting algorithm and an object elimination algorithm, so that the video recording effect that the target object moves to the second screen area (namely the scroll screen expansion area) is obtained, the corresponding recorded video can be stored according to the selection of a user, and the video recording efficiency of the electronic equipment is improved.
Optionally, in this embodiment, with reference to fig. 1, as shown in fig. 7, before step 202, the video recording method provided in this embodiment may further include the following steps 501 to 503.
Step 501, the video recording device starts recording video.
Step 502, the video recording device obtains the ith frame of video image displayed in the first recording preview interface.
Optionally, in this embodiment of the application, the electronic device correspondingly displays the target object image in each frame of image included in the target background image displayed in the second screen area according to the target object image in each frame of image included in the first recording preview interface in the first screen area, and acquires the second video corresponding to the target background image.
Optionally, in this embodiment of the application, when the electronic device starts video recording and acquires a first video corresponding to a video recording preview image, the electronic device may acquire a target object image corresponding to each frame of image in the first video, and sequentially display a corresponding frame of target object image in each frame of image in a target background image displayed in the second screen area.
Optionally, in this embodiment of the application, the electronic device obtains a second video corresponding to the target background image while displaying the target object image in the target background image displayed in the second screen area.
Optionally, in this embodiment of the application, after a scroll screen of the electronic device is in an expanded state, a plurality of background identifiers are displayed in the scroll screen, a user may select and input to determine a target background image, and the electronic device may fuse, by using a fusion algorithm, each acquired frame of target object image into each frame of image in the target background image, and display a display effect of each frame of image of the target object in the target background image in a second screen area, so as to obtain a corresponding recorded video of the target object in the target background image, so as to achieve a video effect of the target object in a real background (i.e., a first recorded preview interface) and the target background image at the same time.
For example, as shown in fig. 2 (B), after the user selects and inputs a target identifier 12 of the displayed multiple background identifiers, the mobile phone may display a target background image (e.g., a starry sky background image) corresponding to the target identifier 12 in the second screen area 11, and display a target object 13 obtained from the video recording preview image displayed in the first screen area 10 in the target background image, so as to start video recording, and obtain a first video corresponding to the video recording preview image in the first screen area 10 and a second video corresponding to a preset image in the second screen area 11.
In the embodiment of the application, the electronic device can display the target background image in the second screen area and acquire the first video corresponding to the video recording preview image. And correspondingly displaying the target object image in each frame of image included in the target background image displayed in the second screen area according to the target object image in each frame of image included in the video recording interface in the first screen area, and acquiring a second video corresponding to the target background image. By utilizing the screen scalability characteristic of the scroll screen and the fusion algorithm and the matting algorithm, the acquired target object and the preset image are fused in real time to obtain the real-time video recording effect of the target object in the real background and the target background image, so that the electronic equipment can record videos of a plurality of different background images according to different background images selected by a user, and the video recording efficiency of the electronic equipment is improved.
Step 503, the video recording device extracts the image of the area where the target object is located in the ith frame of video image to obtain the ith target object image, and displays the ith target object image in the second screen area;
the ith frame of video image is any frame of video image displayed in the first recording preview interface, and i is a positive integer.
Optionally, in this embodiment of the application, the electronic device may keep displaying the target object image in the first screen area while displaying the target object image in the second screen area, that is, displaying the target object image in both the first screen area and the second screen area; or the electronic device may display the target object image only in the second screen region.
Optionally, in this embodiment of the application, the electronic device displays, according to the display position of the target object in the first screen region, the target object image at a corresponding display position in the target background image displayed in the second screen region.
Optionally, in this embodiment of the application, after the electronic device displays the target background image in the second screen area, the electronic device may display the target object image at a corresponding display position in the target background image, where the corresponding display position in the target background image may be understood as: the display position of the target object in the target background image is the same as the display position of the target object in the first screen area.
It can be understood that when the electronic device starts to record video, the electronic device performs real-time matting on the target object image in each frame of image from the first screen area to display the target object image in the second screen area in real time.
For example, when the electronic device obtains a target object in a video recording preview image displayed in the first screen area, the target object is displayed in the upper left corner of the first screen area, and then the electronic device displays the target object in the upper left corner of the target background image displayed in the second screen area.
Optionally, in this embodiment of the application, the electronic device displays the target object at the target display position according to a selection input of the target display position in the target background image displayed in the second screen area by the user.
In this embodiment of the present application, the target display position is an arbitrary position in the target background image, and the display position is a display position selected by the user.
Optionally, in this embodiment of the application, after the electronic device displays the target background image in the second screen area, the user may perform a selection input on the target background image, so that the electronic device may determine a target display position according to the selection input of the user, and display the target object image at the target display position.
Optionally, in this embodiment of the present application, after the step 503, the video recording method provided in this embodiment of the present application may further include the step 504 described below.
Step 504, the video recording device deletes the image of the area where the target object is located in the ith frame of video image.
Optionally, in this embodiment of the application, when the electronic device displays the ith target object image in the second screen area, the image of the area where the target object is located, which is displayed in the ith frame of video image displayed in the first recording and previewing interface, may be deleted.
It should be noted that, the deleting the image of the area where the target object is located in the ith frame of video image may be understood as: the electronic device cancels an image of the target object included in each frame of the video image displayed in the first screen region by an image processing technique.
It is understood that the electronic device does not display the target object image in the first screen area while displaying the target object image in the second screen area.
In the embodiment of the application, when the electronic device starts to record a video, the electronic device can obtain an ith target object image by obtaining an ith frame video image displayed in a first recording preview interface and matting an image of a region where a target object is located in the ith frame video image, so that the ith target object image is displayed in a second screen region, and the image of the region where the target object is located in the ith frame video image is deleted, therefore, the electronic device can display the image of the target object displayed in the first screen region in a moving manner in the second screen region in real time, and the flexibility of displaying the target object when the electronic device shoots the video is improved.
In the embodiment of the application, the electronic device may display the target object at a corresponding display position in the target background image displayed in the second screen area according to the display position of the target object in the first screen area; or the electronic device may determine the display position of the target object according to a selection input of the user to the target display position in the target background image displayed in the second screen area, and display the target object at the target display position, so as to improve the diversity of the target object images displayed by the electronic device in the target background image displayed in the second screen area.
Optionally, in this embodiment of the present application, after the step 202, the video recording method provided in this embodiment of the present application may further include the following step 203 or step 204.
Step 203, the video recording device plays the first video or the second video when the scroll screen is in a contracted state and the target video comprises the first video or the second video.
For example, in the case that the video saved by the electronic device includes the first video or the second video (which may also include the third video), when the scroll screen of the electronic device is in the contracted state, the user triggers the electronic device to play the video, and the electronic device may directly play the saved first video or the saved second video.
And 204, playing the third video by the video recording device under the condition that the scroll screen is in an unfolded state and the target video comprises the third video.
For example, in the case that the video saved by the electronic device includes the third video (which may further include at least one of the first video and the second video), when the user triggers the electronic device to play the video while the scroll screen of the electronic device is in the expanded state, the electronic device may directly play the saved third video.
Optionally, in this embodiment of the application, after the video recording is finished, the electronic device may display a video selection saving interface, and receive a selection input of a user for a target video, where the target video includes at least one of the first video and the second video.
Optionally, in this embodiment of the application, after the electronic device obtains a first video corresponding to the first recording preview interface and a second video corresponding to the second screen area, the electronic device may display a video selection saving interface, so as to save the corresponding video according to a selection input of a user.
Optionally, in this embodiment of the application, the electronic device may store the target video selected by the user, and start playing the target video in the scroll screen.
Optionally, in this embodiment of the application, after the target video is saved by the electronic device, the electronic device may directly start to play the target video in the scroll screen, so that the user may view the video recording effect.
It is appreciated that after the video recording is complete, the electronic device may display an album interface and the user may click on an edit button to select to save at least one of the first video and the second video. When the user selects to save only one of the first video and the second video, the user clicks a video playing button or a saving button, and plays the saved one video when the scroll screen is in a contraction state.
Or, when the user selects to save the composite video (i.e. the third video) of the first video and the second video, the saved third video is played when the scroll screen is in the unfolded state after clicking the video playing button or the saving button.
For example, in conjunction with fig. 2 (B), as shown in fig. 8 (a), after the mobile phone acquires the first video corresponding to the video recording preview image and the second video corresponding to the preset image, the mobile phone may display the video selection saving interface 15 to save the corresponding video (e.g., the first video corresponding to the video recording preview image) according to the selection input of the user. Thus, the user can input the save control, as shown in fig. 8 (B), the mobile phone can play the saved video when the scroll screen is in the contracted state.
In the embodiment of the application, the electronic device can flexibly play the video according to the current state of the scroll screen and the stored target video, so that the first video or the second video is played under the condition that the scroll screen is in the contraction state and the first video or the second video is stored; or, the third video is played under the condition that the scroll screen is in the unfolded state and the third video is stored, so that the flexibility of playing the video by the electronic equipment is improved.
In the embodiment of the application, the electronic device can display the video selection storage interface after acquiring the first video and the second video, store the corresponding video according to the selection input of the user to at least one of the first video and the second video, and start to play the stored video in the scroll screen, so that the flexibility of the electronic device for storing the video required by the user is higher.
Optionally, in this embodiment of the application, the electronic device displays a video selection saving interface and a deselection control, and receives a fourth input of the user to the deselection control.
Optionally, in this embodiment of the application, after the electronic device obtains the first video corresponding to the video recording preview image and the second video corresponding to the target background image, the electronic device may display a video selection saving interface, and display a deselection control in the video selection saving interface, so that a user may directly input the deselection control to trigger the electronic device to directly save the composite video of the first video and the second video.
Optionally, in this embodiment of the application, in response to the fourth input, the electronic device saves a composite video of the first video and the second video, and starts playing the composite video in the scroll screen.
Optionally, in this embodiment of the application, the electronic device directly determines the composite video of the first video and the second video as the target video and stores the target video according to the user input to the deselection control.
Optionally, in this embodiment of the application, after the electronic device stores the composite video of the first video and the second video, the electronic device may directly start playing the video in the scroll screen, so that the user can view the video recording effect.
It can be understood that when the video recording of the electronic device is completed and the video selection saving interface is displayed, if the user clicks the deselection control, the electronic device saves the composite video of the first video and the second video by default and triggers the scroll screen of the electronic device to be expanded, so that the composite video of the first video and the second video is played when the scroll screen is in the screen expansion state.
For example, referring to fig. 6 (B), as shown in fig. 9 (a), after the mobile phone acquires the first video corresponding to the video recording preview image and the second video corresponding to the target background image, the mobile phone may display a video selection saving interface 15, and display a deselection control 16 in the selection saving interface 15, and according to an input of the user to the deselection control 16, as shown in fig. 9 (B), the mobile phone may determine a composite video of the first video and the second video as the target video that needs to be saved, and control the scroll screen to be in a screen-expanded state, so as to play the saved video in the scroll screen.
In the embodiment of the application, the electronic device can display the video selection saving interface after acquiring the first video and the second video, and display the deselection control in the video selection saving interface, so that the composite video of the first video and the second video can be saved directly according to the input of the user to the deselection control, and when the scroll screen is in the screen unfolding state, the composite video of the saved first video and the saved second video starts to be played, so that the flexibility of the electronic device for saving the video required by the user is higher.
It should be noted that, in the video recording method provided in the embodiment of the present application, the execution main body may be a video recording apparatus, or a control module in the video recording apparatus for executing the video recording method. In the embodiment of the present application, a video recording apparatus executes a method for loading video recording as an example, and the video recording apparatus provided in the embodiment of the present application is described.
Fig. 10 shows a schematic diagram of a possible structure of a video recording apparatus according to an embodiment of the present application. As shown in fig. 10, video recording apparatus 70 may include: a display module 71 and an output module 72.
The display module 71 is configured to display a target background image and a target object image in the second screen area when the scroll screen is in the expanded state and the first recording preview interface is displayed in the first screen area, where the target object image is an image of a target object in the first recording preview interface. An output module 72, configured to output the target video based on target information, where the target information includes at least one of: the display content of the first recording preview interface and the display content of the second screen area. Wherein the target video comprises at least one of: a first video, a second video, a third video; the first video is generated according to the display content of the first recording preview interface, the second video is generated according to the display content in the second screen area, and the third video is generated according to the display content in the first recording preview interface and the second screen area.
In a possible implementation manner, referring to fig. 10, as shown in fig. 11, a video recording apparatus 70 provided in this embodiment of the present application may further include: a receiving module 73, a control module 74 and an acquisition module 75. Before the target background image and the target object image are displayed in the second screen area, the receiving module 73 is configured to receive a first input of the user to the target object in the first recording preview interface when the scroll screen is in a contracted state and the first recording preview interface is displayed in the first screen area. A control module 74 for controlling the unrolling of the roller screen in response to the first input received by the receiving module 73. The obtaining module 75 is configured to obtain a first image of the first recording preview interface when the scroll screen is unfolded to a preset state, and extract an image of a region where the target object is located in the first image to obtain a target object image.
In a possible implementation, the display module 71 is further configured to display at least one background indicator before the target background image and the target object image are displayed in the second screen area, where one background indicator indicates one image or video. Referring to fig. 10, as shown in fig. 12, the video recording apparatus 70 according to the embodiment of the present application may further include: a receiving module 73 and a determining module 76. The receiving module 73 is configured to receive a second input of the target background identifier from the at least one background identifier from the user. A determining module 76, configured to determine, in response to the second input received by the receiving module 73, an image indicated by the target background identifier or a video image in the video as the target background image.
In a possible implementation manner, the video recording apparatus includes a first camera and a second camera, and the first recording preview interface is a recording preview interface of the first camera. The display module 71 is specifically configured to display a second recording preview interface and a target object image in a second screen area, where the second recording preview interface is a recording preview interface of a second camera, and the target background image is a video image acquired by the second camera.
In a possible implementation manner, the video recording apparatus 70 provided in this embodiment of the present application may further include: a recording module and an acquisition module 75. The recording module is used for starting video recording before outputting the target video based on the target information after the target background image and the target object image are displayed in the second screen area. An obtaining module 75, configured to obtain an ith frame of video image displayed in the first recording preview interface; and the image of the region where the target object is located in the ith frame of video image is scratched to obtain the ith target object image. The display module 71 is further configured to display the ith target object image in the second screen area; the ith frame of video image is any frame of video image displayed in the first recording preview interface, and i is a positive integer.
In a possible implementation manner, the video recording apparatus 70 provided in this embodiment of the present application may further include: and deleting the module. The deleting module is configured to delete the image of the region where the target object is located in the ith frame of video image after the obtaining module 75 scratches the image of the region where the target object is located in the ith frame of video image.
In a possible implementation manner, the output module 72 is specifically configured to, when the target video includes a first video, obtain the first video according to a video image displayed in the first recording preview interface, where the first video includes a video object in the first recording preview interface; or, under the condition that the target video comprises the second video, obtaining the second video according to the target background image and the target object image displayed in the second screen area, wherein the second video comprises the video object displayed in the second screen area; or, under the condition that the target video comprises the third video, obtaining the third video according to the video image displayed in the first recording preview interface and the target background image and the target object image displayed in the second screen area, wherein the third video comprises the first recording preview interface and the video object displayed in the second screen area, and each frame of video image in the third video is obtained by synthesizing the image acquired by the camera corresponding to the first recording preview interface, the target background image and the target object image.
In a possible implementation manner, the video recording apparatus 70 provided in this embodiment of the present application may further include: and a playing module. The playing module is used for playing the first video or the second video under the condition that the scroll screen is in a contraction state and the target video comprises the first video or the second video after the target video is output based on the target information; or, in the case where the reel screen is in the expanded state and the target video includes the third video, the third video is played.
The video recording device provided in the embodiment of the present application can implement each process implemented by the video recording device in the above method embodiments, and for avoiding repetition, detailed description is not repeated here.
The embodiment of the application provides a video recording device, wherein a scroll screen of an electronic device is in a screen unfolding state, and a plurality of background identifiers used for indicating background images can be displayed in the scroll screen under the condition that a video recording preview image is displayed in a first screen area, a user can perform first input on a target identifier in the plurality of background identifiers, so that the electronic device can display the target background image indicated by the target identifier in a second screen area according to the first input of the user, display a target object included in the video recording preview image displayed in the first screen area in the target background image, and then start video recording to acquire a first video corresponding to the video recording preview image and a second video corresponding to the target background image; after the first video and the second video are acquired, the electronic device may store the first video, the second video, or a composite video of the first video and the second video in the electronic device according to a selection input of a user. In the process of recording the video by the electronic equipment, the original video can be recorded, and the processed video replacing the background image can be recorded, so that the efficiency of shooting by the electronic equipment to obtain the short video with the display effect required by the user can be improved.
The video recording device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The video recording apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
Optionally, as shown in fig. 13, an electronic device M00 is further provided in this embodiment of the present application, and includes a processor M01, a memory M02, and a program or an instruction stored in the memory M02 and executable on the processor M01, where the program or the instruction when executed by the processor M01 implements each process of the video recording method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 14 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 14 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The display unit 106 is configured to display a target background image and a target object image in the second screen area when the scroll screen is in the expanded state and the first recording preview interface is displayed in the first screen area, where the target object image is an image of a target object in the first recording preview interface.
A processor 110 for outputting a target video based on target information, the target information including at least one of: displaying content of a first recording preview interface and displaying content in a second screen area; wherein the target video comprises at least one of: a first video, a second video, a third video; the first video is generated according to the display content of the first recording preview interface, the second video is generated according to the display content in the second screen area, and the third video is generated according to the display content in the first recording preview interface and the second screen area.
The embodiment of the application provides an electronic device, when a scroll screen of the electronic device is in an expanded state, if a first recording preview interface is displayed in a first screen area, the electronic device may display a target background image and an image of a target object displayed in the first recording preview interface in a second screen area, so that the electronic device may output at least one of the following videos based on a display content of the first recording preview interface and/or a display content in the second screen area: according to the method, the device and the system for recording the videos, the first video is generated according to the display content of the first recording preview interface, the second video is generated according to the display content of the second screen area, the third video is generated according to the display content of the first recording preview interface and the display content of the second screen area, so that in the process of recording the videos of the electronic equipment, not only can the original video be recorded, but also the video which replaces the background image and is edited can be recorded, the problems that when the electronic equipment edits the shot video, the operation is complex and time-consuming can be solved, and the efficiency of shooting the video with the display effect required by a user by the electronic equipment is improved.
Optionally, the user input unit 107 is configured to receive a first input of the target object in the first recording preview interface from the user when the scroll screen is in the contracted state and the first recording preview interface is displayed in the first screen area before the target background image and the target object image are displayed in the second screen area.
A processor 110 further for controlling the roll screen to unwind in response to a first input; and under the condition that the scroll screen is unfolded to a preset state, acquiring a first image of the first recording preview interface, and matting an image of a region where the target object is located in the first image to obtain a target object image.
In the embodiment of the application, when a user records a video, the user selects a target object in the video, an image of the target object corresponding to each frame of image in the video is obtained through an object matting algorithm, then a reel screen of an electronic device is unfolded, virtual background materials (namely a plurality of background images) which can be selected by the user are arranged in an unfolding area (namely a second screen area) of the reel screen, and after the user selects the target background image, the matting image of the target object is fused with the background image in real time through a fusion algorithm, so that the video of the target object in a video recording preview image and the target background image is obtained. The user can select and store the video corresponding to the video recording preview image, the video corresponding to the target background image or the composite video corresponding to the video recording preview image and the target background image according to the needs of the user.
The display unit 106 is further configured to display at least one background identifier before the target background image and the target object image are displayed in the second screen area, where one background identifier indicates one image or video;
the user input unit 107 is further configured to receive a second input of the target background identifier from the at least one background identifier from the user.
The processor 110 is further configured to determine, in response to a second input, an image indicated by the target background identifier or a video image of one frame in the video as the target background image.
In the embodiment of the application, the electronic device may determine, by displaying at least one background identifier used for indicating an image or a video, and according to a second input of a user to a target background identifier in the at least one background identifier, a frame of video image in the image or the video indicated by the target background identifier as a target background image, so as to display the target background image in the second screen area, and display a target object image in the target background image, so that the efficiency of selecting the background image by the electronic device is high.
The display unit 106 is specifically configured to display a second recording preview interface and a target object image in a second screen area, where the second recording preview interface is a recording preview interface of a second camera, and the target background image is a video image acquired by the second camera.
In the embodiment of the application, the electronic device displays the extended preview image corresponding to the video recording preview image in the second screen area, and starts to record the video in the first screen area and the second screen area. And correspondingly displaying the target object in each frame of image included in the extended preview image displayed in the second screen area according to the target object in each frame of image included in the video recorded image in the first screen area, and canceling the display of the target object in each frame of image included in the video recorded image in the first screen area. By utilizing the screen scalability of the scroll screen and the characteristic that the camera is movable, the acquired image of the target object is fused with the real background in real time through a fusion algorithm, a matting algorithm and an object elimination algorithm, so that the video recording effect that the target object moves to the second screen area (namely the scroll screen expansion area) is obtained, the corresponding recorded video can be stored according to the selection of a user, and the video recording efficiency of the electronic equipment is improved.
A processor 110, further configured to start video recording; acquiring an ith frame of video image displayed in a first recording preview interface; and (4) matting the image of the region where the target object is located in the ith frame of video image to obtain the ith target object image.
A display unit 106, specifically configured to display an ith target object image in the second screen area; the ith frame of video image is any frame of video image displayed in the first recording preview interface, and i is a positive integer.
The display unit 106 is further configured to delete the image of the region where the target object is located in the ith frame of video image after the image of the region where the target object is located in the ith frame of video image is scratched.
In the embodiment of the application, when the electronic device starts to record a video, the electronic device can obtain an ith target object image by obtaining an ith frame video image displayed in a first recording preview interface and matting an image of a region where a target object is located in the ith frame video image, so that the ith target object image is displayed in a second screen region, and the image of the region where the target object is located in the ith frame video image is deleted, therefore, the electronic device can display the image of the target object displayed in the first screen region in a moving manner in the second screen region in real time, and the flexibility of displaying the target object when the electronic device shoots the video is improved.
The processor 110 is specifically configured to, when the target video includes a first video, obtain the first video according to a video image displayed in the first recording preview interface, where the first video includes a video object in the first recording preview interface; or, under the condition that the target video comprises the second video, obtaining the second video according to the target background image and the target object image displayed in the second screen area, wherein the second video comprises the video object displayed in the second screen area; or, under the condition that the target video comprises the third video, obtaining the third video according to the video image displayed in the first recording preview interface and the target background image and the target object image displayed in the second screen area, wherein the third video comprises the first recording preview interface and the video object displayed in the second screen area, and each frame of video image in the third video is obtained by synthesizing the image acquired by the camera corresponding to the first recording preview interface, the target background image and the target object image.
The display unit 106 is further configured to play the first video or the second video when the scroll screen is in a contracted state and the target video includes the first video or the second video after outputting the target video based on the target information; or, in the case where the reel screen is in the expanded state and the target video includes the third video, the third video is played.
In the embodiment of the application, the electronic device can flexibly play the video according to the current state of the scroll screen and the stored target video, so that the first video or the second video is played under the condition that the scroll screen is in the contraction state and the first video or the second video is stored; or, the third video is played under the condition that the scroll screen is in the unfolded state and the third video is stored, so that the flexibility of playing the video by the electronic equipment is improved.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the video recording method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above video recording method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (16)

1. A video recording method applied to a video recording apparatus including a reel screen, the method comprising:
when the scroll screen is in an unfolded state and a first recording preview interface is displayed in a first screen area, displaying a target background image and a target object image in a second screen area, wherein the target object image is an image of a target object in the first recording preview interface;
outputting a target video based on target information, the target information including at least one of: the display content of the first recording preview interface and the display content in the second screen area;
wherein the target video comprises at least one of: a first video, a second video, a third video; the first video is generated according to the display content of the first recording preview interface, the second video is generated according to the display content in the second screen area, and the third video is generated according to the display content in the first recording preview interface and the second screen area.
2. The method of claim 1, wherein prior to displaying the target background image and the target object image in the second screen region, the method further comprises:
receiving a first input of a user to a target object in a first recording preview interface when the scroll screen is in a contraction state and the first screen area displays the first recording preview interface;
controlling the reel screen to unwind in response to the first input;
and under the condition that the scroll screen is unfolded to a preset state, acquiring a first image of the first recording preview interface, and matting an image of an area where the target object is located in the first image to obtain a target object image.
3. The method of claim 1, wherein prior to displaying the target background image and the target object image in the second screen region, the method further comprises:
displaying at least one background indicator, wherein one background indicator indicates one image or video;
receiving a second input of a target background identifier in the at least one background identifier from a user;
in response to the second input, determining an image indicated by the target background identification or a video image of a frame in the video as a target background image.
4. The method of claim 1, wherein the video recording device comprises a first camera and a second camera, and the first recording preview interface is a recording preview interface of the first camera;
the displaying of the target background image and the target object image in the second screen area includes:
and displaying the second recording preview interface and a target object image in the second screen area, wherein the second recording preview interface is a recording preview interface of the second camera, and the target background image is a video image acquired by the second camera.
5. The method of claim 1, wherein after displaying the target background image and the target object image in the second screen region and before outputting the target video based on the target information, further comprising:
starting to record videos;
acquiring an ith frame of video image displayed in the first recording preview interface;
matting an image of a region where the target object is located in the ith frame of video image to obtain an ith target object image, and displaying the ith target object image in the second screen region;
the ith frame of video image is any frame of video image displayed in the first recording preview interface, and i is a positive integer.
6. The method according to claim 5, wherein said matting after the image of the region of the i-th frame video image where the target object is located further comprises:
and deleting the image of the area where the target object is located in the ith frame of video image.
7. The method of claim 1, wherein outputting the target video based on the target information comprises:
under the condition that the target video comprises a first video, obtaining a first video according to a video image displayed in the first recording preview interface, wherein the first video comprises a video object in the first recording preview interface;
under the condition that the target video comprises a second video, obtaining a second video according to the target background image and the target object image displayed in the second screen area, wherein the second video comprises a video object displayed in the second screen area;
and under the condition that the target video comprises a third video, obtaining a third video according to the video image displayed in the first recording preview interface and the target background image and the target object image displayed in the second screen area, wherein the third video comprises the first recording preview interface and the video object displayed in the second screen area, and each frame of video image in the third video is obtained by synthesizing the image acquired by the camera corresponding to the first recording preview interface, the target background image and the target object image.
8. The method of claim 1, wherein after outputting the target video based on the target information, the method further comprises:
playing the first video or the second video when the scroll screen is in a contracted state and the target video comprises the first video or the second video;
and playing the third video under the condition that the scroll screen is in an unfolded state and the target video comprises the third video.
9. A video recording apparatus, characterized in that the video recording apparatus comprises a reel screen, the video recording apparatus further comprising: a display module and an output module;
the display module is used for displaying a target background image and a target object image in a second screen area under the condition that the scroll screen is in an unfolded state and a first recording preview interface is displayed in a first screen area, wherein the target object image is an image of a target object in the first recording preview interface;
the output module is configured to output a target video based on target information, where the target information includes at least one of: the display content of the first recording preview interface and the display content in the second screen area;
wherein the target video comprises at least one of: a first video, a second video, a third video; the first video is generated according to the display content of the first recording preview interface, the second video is generated according to the display content in the second screen area, and the third video is generated according to the display content in the first recording preview interface and the second screen area.
10. The video recording device of claim 9, further comprising: the device comprises a receiving module, a control module and an acquisition module;
the receiving module is used for receiving a first input of a user to a target object in a first recording preview interface when the scroll screen is in a contraction state before a target background image and a target object image are displayed in a second screen area and the first recording preview interface is displayed in a first screen area;
the control module is used for responding to the first input received by the receiving module and controlling the reel screen to be unfolded;
the obtaining module is used for obtaining a first image of the first recording preview interface under the condition that the scroll screen is unfolded to a preset state, and scratching an image of an area where the target object is located in the first image to obtain a target object image.
11. The video recording device of claim 9, wherein the display module is further configured to display at least one background indicator in front of the target background image and the target object image in the second screen area, wherein one background indicator indicates one image or video;
the video recording apparatus further includes: a receiving module and a determining module;
the receiving module is used for receiving a second input of a target background identifier in the at least one background identifier from a user;
the determining module is configured to determine, in response to the second input received by the receiving module, an image indicated by the target background identifier or a video image in a video as a target background image.
12. The video recording device according to claim 9, wherein the video recording device comprises a first camera and a second camera, and the first recording preview interface is a recording preview interface of the first camera;
the display module is specifically configured to display the second recording preview interface and a target object image in the second screen area, where the second recording preview interface is a recording preview interface of the second camera, and the target background image is a video image acquired by the second camera.
13. The video recording device of claim 9, further comprising: the device comprises a recording module and an acquisition module;
the recording module is used for starting video recording after a target background image and a target object image are displayed in a second screen area and before a target video is output based on target information;
the acquisition module is used for acquiring the ith frame of video image displayed in the first recording preview interface; and matting the image of the region where the target object is located in the ith frame of video image to obtain an ith target object image;
the display module is further used for displaying the ith target object image in the second screen area;
the ith frame of video image is any frame of video image displayed in the first recording preview interface, and i is a positive integer.
14. The video recording device of claim 13, wherein the video recording device further comprises: a deletion module;
the deleting module is configured to delete the image of the region where the target object is located in the ith frame of video image after the obtaining module scratches the image of the region where the target object is located in the ith frame of video image.
15. The video recording device according to claim 9, wherein the output module is specifically configured to, when the target video includes a first video, obtain a first video according to a video image displayed in the first recording preview interface, where the first video includes a video object in the first recording preview interface;
or, under the condition that the target video includes a second video, obtaining a second video according to the target background image and the target object image displayed in the second screen area, where the second video includes a video object displayed in the second screen area;
or, when the target video includes a third video, obtaining a third video according to the video image displayed in the first recording preview interface and the target background image and the target object image displayed in the second screen area, where the third video includes the video object displayed in the first recording preview interface and the second screen area, and each frame of video image in the third video is obtained by synthesizing the image acquired by the camera corresponding to the first recording preview interface, the target background image, and the target object image.
16. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the video recording method as claimed in any one of claims 1-8.
CN202111017108.8A 2021-08-31 2021-08-31 Video recording method and device and electronic equipment Active CN113794835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111017108.8A CN113794835B (en) 2021-08-31 2021-08-31 Video recording method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111017108.8A CN113794835B (en) 2021-08-31 2021-08-31 Video recording method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113794835A true CN113794835A (en) 2021-12-14
CN113794835B CN113794835B (en) 2023-07-25

Family

ID=79182502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111017108.8A Active CN113794835B (en) 2021-08-31 2021-08-31 Video recording method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113794835B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245193A (en) * 2021-12-21 2022-03-25 维沃移动通信有限公司 Display control method and device and electronic equipment
CN115334242A (en) * 2022-08-19 2022-11-11 维沃移动通信有限公司 Video recording method, video recording device, electronic equipment and medium
WO2023125313A1 (en) * 2021-12-30 2023-07-06 维沃移动通信有限公司 Video recording method and apparatus and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140365892A1 (en) * 2013-06-08 2014-12-11 Tencent Technology (Shenzhen) Company Limited Method, apparatus and computer readable storage medium for displaying video preview picture
CN109491541A (en) * 2018-10-31 2019-03-19 维沃移动通信有限公司 A kind of control method and mobile terminal
CN110798621A (en) * 2019-11-29 2020-02-14 维沃移动通信有限公司 Image processing method and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140365892A1 (en) * 2013-06-08 2014-12-11 Tencent Technology (Shenzhen) Company Limited Method, apparatus and computer readable storage medium for displaying video preview picture
CN109491541A (en) * 2018-10-31 2019-03-19 维沃移动通信有限公司 A kind of control method and mobile terminal
CN110798621A (en) * 2019-11-29 2020-02-14 维沃移动通信有限公司 Image processing method and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245193A (en) * 2021-12-21 2022-03-25 维沃移动通信有限公司 Display control method and device and electronic equipment
WO2023125313A1 (en) * 2021-12-30 2023-07-06 维沃移动通信有限公司 Video recording method and apparatus and electronic device
CN115334242A (en) * 2022-08-19 2022-11-11 维沃移动通信有限公司 Video recording method, video recording device, electronic equipment and medium
CN115334242B (en) * 2022-08-19 2024-06-18 维沃移动通信有限公司 Video recording method, device, electronic equipment and medium

Also Published As

Publication number Publication date
CN113794835B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
CN113794835B (en) Video recording method and device and electronic equipment
CN113093968B (en) Shooting interface display method and device, electronic equipment and medium
CN112887794B (en) Video editing method and device
CN112672061B (en) Video shooting method and device, electronic equipment and medium
CN111770386A (en) Video processing method, video processing device and electronic equipment
CN111669495B (en) Photographing method, photographing device and electronic equipment
CN113905175A (en) Video generation method and device, electronic equipment and readable storage medium
CN113918522A (en) File generation method and device and electronic equipment
CN113079316A (en) Image processing method, image processing device and electronic equipment
CN116017043A (en) Video generation method, device, electronic equipment and storage medium
CN113207038B (en) Video processing method, video processing device and electronic equipment
CN114302009A (en) Video processing method, video processing device, electronic equipment and medium
CN112822394B (en) Display control method, display control device, electronic equipment and readable storage medium
CN112383709A (en) Picture display method, device and equipment
CN114025237B (en) Video generation method and device and electronic equipment
CN115344159A (en) File processing method and device, electronic equipment and readable storage medium
CN114845171A (en) Video editing method and device and electronic equipment
CN114500844A (en) Shooting method and device and electronic equipment
CN114285922A (en) Screenshot method, screenshot device, electronic equipment and media
CN112261483A (en) Video output method and device
CN115334242B (en) Video recording method, device, electronic equipment and medium
CN112672059B (en) Shooting method and shooting device
CN114390205B (en) Shooting method and device and electronic equipment
CN115278378B (en) Information display method, information display device, electronic apparatus, and storage medium
CN114979482A (en) Shooting method, shooting device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant