CN112087579B - Video shooting method and device and electronic equipment - Google Patents

Video shooting method and device and electronic equipment Download PDF

Info

Publication number
CN112087579B
CN112087579B CN202010981354.4A CN202010981354A CN112087579B CN 112087579 B CN112087579 B CN 112087579B CN 202010981354 A CN202010981354 A CN 202010981354A CN 112087579 B CN112087579 B CN 112087579B
Authority
CN
China
Prior art keywords
video
shooting
focal length
target
input
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.)
Active
Application number
CN202010981354.4A
Other languages
Chinese (zh)
Other versions
CN112087579A (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 Co Ltd
Original Assignee
Vivo Mobile Communication 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 Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010981354.4A priority Critical patent/CN112087579B/en
Publication of CN112087579A publication Critical patent/CN112087579A/en
Application granted granted Critical
Publication of CN112087579B publication Critical patent/CN112087579B/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/67Focus control based on electronic image sensor signals
    • 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
    • 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
    • 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
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Abstract

The application discloses a video shooting method and device and electronic equipment, and belongs to the technical field of video shooting. Wherein the method comprises the following steps: receiving a first input; in response to the first input, determining a shooting object, a target position of the shooting object in a video picture and a target picture ratio; receiving a second input; determining a focus variation parameter in response to the second input; and focusing and shooting the shot object according to the focal length change parameter, the target position and the target picture ratio, and outputting a target video. According to the embodiment of the application, in the process of shooting the sliding zoom video, a photographer is not required to move the shooting equipment along with the shooting object, the focus is not required to be manually adjusted by the photographer in real time according to the shooting distance, and the shooting process is simple, convenient and safe.

Description

Video shooting method and device and electronic equipment
Technical Field
The application belongs to the technical field of video shooting, and particularly relates to a video shooting method and device and electronic equipment.
Background
Currently, slide zoom photography is applied to more and more shooting scenes because a better visual effect can be obtained.
However, in the conventional sliding zoom photographing, a photographer is required to track a photographing subject and to adjust a focal length according to positions of the photographing subject and photographing equipment, so that a relatively fixed position and a relatively fixed size of the photographing subject in a lens are ensured to obtain a sliding zoom effect, and the photographing process is inconvenient and dangerous; in addition, in the conventional sliding zoom shooting, the sliding zoom shooting video can be obtained only by performing subsequent processing after the material video is obtained, so that the sliding zoom shooting video cannot be used in shooting scenes with strong real-time performance such as live broadcast, video telephony and the like.
Disclosure of Invention
The embodiment of the application aims to provide a video shooting method, which can solve the problem that shooting is inconvenient due to the fact that shooting personnel need to move shooting equipment along with a shooting main body in the existing sliding zooming shooting mode.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a video shooting method, where the method includes:
receiving a first input;
in response to the first input, determining a shooting object, a target position of the shooting object in a video picture and a target picture ratio;
receiving a second input;
determining a focus variation parameter in response to the second input;
and focusing and shooting the shot object according to the focal length change parameter, the target position and the target picture ratio, and outputting a target video.
In a second aspect, an embodiment of the present application provides a video shooting apparatus, where the apparatus includes:
the first receiving module is used for receiving a first input;
the first determination module is used for responding to the first input, and determining a shooting object, a target position of the shooting object in a video picture and a target picture ratio;
a second receiving module for receiving a second input;
a second determination module for determining a focus variation parameter in response to the second input;
and the shooting module is used for focusing and shooting the shot object according to the focal length change parameter, the target position and the target picture ratio and outputting a target video.
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 the embodiment of the application, the target position, the target picture ratio and the focal length change parameter of the shooting object and the shooting object in a video picture are determined, and then the shooting object is focused and shot according to the focal length change parameter, the target position and the target picture ratio, so that a target video with a sliding zooming effect is obtained. The shooting process does not need a photographer to move the shooting equipment along with the shooting object, does not need the photographer to manually adjust the focal length in real time according to the shooting distance, and is simple, convenient and safe.
Drawings
Fig. 1 is a flowchart illustrating steps of a video shooting method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a video shooting device provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
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 is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. 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.
The video shooting 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.
Referring to fig. 1, a flowchart illustrating steps of a video shooting method according to an embodiment of the present application is shown, where the method may include steps S100 to S500.
In the embodiment of the present application, the above video shooting method is applied to a terminal device having a camera with an optical zoom function, and the terminal device can shoot a video with a sliding zoom effect through the camera with the optical zoom function.
And step S100, receiving a first input.
In step S100, the first input is a confirmation input for the object, the target position of the object in the video image, and the target image ratio, and may specifically include a selection operation of the object in the image capturing image by the user, such as a click operation or a selection operation of a cursor lock.
And step S200, responding to the first input, and determining a shooting object, a target position of the shooting object in a video picture and a target picture ratio.
In the step S200, the target position is a position of the object in the video frame, and the target frame ratio refers to an area ratio of the object in the video frame. Since the first input is a confirmation input for the photographic subject, the target position of the photographic subject in the video picture and the target picture ratio, the first input includes information such as instruction information of the photographic subject, the target position and the target picture ratio, and therefore, when the first input of the user is received, it is described that the photographic subject needs to be locked, and therefore, the subject corresponding to the first input is determined to be the photographic subject, and the target position of the photographic subject in the video picture and the target picture ratio can be determined.
In practical application, a user can set a default target position and a target picture ratio in an application program of the shooting terminal device, so that the user can start video shooting without additional setting in real-time video shooting.
And step S300, receiving a second input.
In step S300, the second input is the input of the focal length variation parameter, that is, the third input includes the focal length variation parameter.
And step S400, responding to the second input, and determining a focal length change parameter.
In the above step S400, the corresponding focal length variation parameter is determined according to the input operation of the user on the focal length variation parameter. The focal length change parameters comprise a focal length change direction, a focal length change range and focal length change duration, so that a focal length change process when the sliding zooming shooting is carried out is planned in advance. In practical applications, the focal length variation direction may be a single direction, multiple directions or a combined direction, for example, the focal length varies from a large one to a small one.
Specifically, a user can use a preset slider in a shooting picture to interactively select and set a starting focal length and an ending focal length to form a focal length change range and a focal length change direction; the focal length change duration can also be set by slider interaction or a text box.
In practical application, a user can set a default initial focal length, a default end focal length and a default focal length change duration in an application program of the shooting terminal device, so that the user can start video shooting without additional setting in real-time video shooting.
Step S500, focusing and shooting the shooting object according to the focal length change parameter, the target position and the target picture ratio to generate a target video.
In the step S500, the subject is automatically focused and photographed according to the determined focal length variation parameter, the target position and the target frame ratio, so that the target video with the sliding zoom effect can be photographed. And the sliding zooming effect of the target video corresponds to the information such as the focal length change parameter, the target position, the target picture ratio and the like.
Alternatively, the step S500 may be executed when a fourth input from the user is received again. The fourth input is a confirmation input for triggering shooting of the sliding zoom video, and specifically may be a click operation on a preset control in the video shooting interface, or an execution action of a preset gesture. The preset control is a control for confirming to execute shooting of the sliding zooming video, and the preset gesture is a gesture for confirming to execute shooting of the sliding zooming video.
In practical application, can set up the terminal equipment who shoots and shoot the process at stability equipment such as optics anti-shake, cloud platform to guarantee the stability of formation of image as far as possible, promote the smoothness degree that slides and zoom, prevent that the camera lens from rocking.
According to the video shooting method provided by the embodiment of the application, a shot object, a target position of the shot object in a video picture, a target picture ratio and a focal length change parameter are determined, and then the shot object is focused and shot according to the focal length change parameter, the target position and the target picture ratio, so that a target video with a sliding zooming effect is obtained. The shooting process does not need a photographer to move the shooting equipment along with the shooting object, and does not need the photographer to manually adjust the focal length in real time according to the shooting distance, so that the shooting process is simple, convenient and safe.
Optionally, in an implementation manner of the video capturing method according to an embodiment of the present invention, the step S500 includes steps S501 to S503:
step S501, in the video shooting process, the focal length is adjusted according to the focal length change parameters to carry out focusing shooting on the shot object, and each first video frame is generated.
In the step S501, in the process of starting the camera to perform sliding zoom shooting on the shot object, the focal length of the camera is adjusted in the focal length change range according to the focal length change direction within the focal length change duration, and tracking focus shooting is performed on the shot object, so that each video frame, that is, the first video frame, is obtained through shooting.
Specifically, according to the focal length variation range and the focal length variation direction, determining a corresponding initial focal length and an end focal length, and then adjusting the focal length at a rate (end focal length-initial focal length)/for a focal length variation time; and then, in the video shooting process, adjusting the focal length of the camera from the initial focal length to the end focal length according to the focal length adjusting rate, and ensuring that the shot object is focused and shot, so that the first video frames can be sequentially generated.
And step S502, identifying the actual position of the shooting object in each first video frame.
In step S502, since the shooting object is determined in advance, the shooting object can be identified and determined from each first video frame by combining with the image identification technology, and the actual position of the shooting object in each first video frame is locked.
Step S503, clipping each first video frame according to the actual position of the shooting object in each first video frame, the target position, and the target frame ratio, respectively, to generate a target video.
In the step S503, clipping each first video frame according to the actual position of the object in each first video frame, and combining the target position and the target frame ratio of the previously determined object in the video frame, so that the object is located at the target position in each clipped first video, and the frame ratio of the object in each clipped first video is the target frame ratio; and then, combining the cut first video frames in sequence according to the shooting time to obtain the target video with the sliding zooming effect.
In practical applications, each clipped first video frame needs to be scaled to be processed into a video frame with the same video frame size.
In practical application, after a target video is obtained by shooting, optimization processing needs to be performed on the video, specifically, sharpening, super-resolution processing through adjacent frames, and the like, so as to optimize a video display effect.
In the above embodiment, the focus is adjusted according to the focus variation parameter to perform focus shooting on the shot object, the actual position of the shot object in each first video frame obtained by each focus shooting is identified, the target position and the target frame ratio are determined in advance, and each first video frame is cut out, so that the slide zoom shooting of the shot object can be automatically and quickly realized.
Optionally, in an implementation manner, in the video capturing method provided by the embodiment of the present invention, the first input includes a first sub-input and a second sub-input, and the step S100 specifically includes steps S101 to S104:
and step S101, responding to the first sub-input, and determining a shooting object.
In step S101, the first input is a confirmation input for the object, and may specifically be a selection operation of the object by the user on the image capture screen, for example, a selection operation such as clicking or cursor locking. When the first sub-input of the user is received, the fact that the shooting object needs to be locked is explained, and therefore the object corresponding to the first sub-input is determined to be the shooting object
And step S102, displaying the picture outline of the shooting object.
In the step S102, in the process of determining the target position and the target picture ratio of the shooting object in the video picture to perform video shooting, the determined picture contour of the shooting object is displayed on the shooting interface, so that the user can intuitively determine the shooting picture range matching the shape of the shooting object according to the picture contour.
And step S103, responding to the second sub-input, and determining a shooting picture range, wherein the picture outline is displayed in the shooting picture range.
In step S103, the second sub-input is an input for determining a target position and a target frame ratio of the shooting object in the video frame, specifically, a selection operation of the shooting frame range, so as to determine the shooting frame range through the selection operation, and further define the target position and the target frame ratio of the shooting object in the video frame through the shooting frame range.
Specifically, the second sub-input may be an operation in which the user slides on the shooting interface with a finger, and a sliding track forms a closed loop; the second sub-input may also be a click operation on a preset shooting shape, where the preset shooting shape is a preset shooting picture shape, the size of the preset shooting shape may be adjusted as needed, and the preset shooting shape may be a rectangle, a heart, or a circle.
In step S103, after receiving the second sub-input, the corresponding shooting frame range is determined according to the second sub-input. In order to enable the shooting picture to completely display the shooting object, the picture outline of the shooting object is required to be contained in the shooting picture range determined by the second input.
In practical application, if the picture profile of the shot object is not included in the shot picture range determined by the second sub-input of the user, the user is reminded that the picture range is unreasonable in setting and needs to be determined again by the user until the picture profile of the shot object is included in the shot picture range.
And step S104, determining the target position and the target picture ratio of the shot object in the video picture according to the position and the ratio of the picture outline in the shot picture range.
In the step S104, since the second sub-input already defines the shot picture range, and the shot picture range includes the picture outline of the shot object, the position of the picture outline in the shot picture range and the picture size ratio can be calculated and determined; the shape and size of the object are consistent with the picture outline, so the position and the ratio of the picture outline of the object in the range of the shooting picture can be used as the target position and the target picture ratio of the object in the video picture.
In the above embodiment, the picture profile of the shot object is displayed on the shooting interface, so that the user can conveniently and visually and accurately select the matched shooting picture range according to the picture profile, and further quickly and accurately obtain the target position and the target picture ratio of the shot object in the video picture, which are required by the user.
Optionally, in an implementation manner, after the step S400, the video shooting method according to an embodiment of the present invention further includes steps S401 to S402, and the step S500 specifically includes steps S501 to S502.
Step S401, focusing shooting is carried out on the shot object according to the focal length change parameter, the target position and the target picture ratio, and a preview video is generated.
In step S401, the shooting target is focused and shot according to the set focal length variation parameter, the target position, and the target frame ratio, so as to generate a video segment, i.e., the preview video.
And step S402, playing the preview video.
In the step S402, the preview video obtained by shooting in the step S401 is directly played on the shooting interface, specifically, the preview video can be played in a form of a pop-up window, so that the user can determine whether the shot sliding zoom video meets the shooting effect requirement required by the user according to the currently set focal length change parameter, the target position and the target picture ratio.
If the requirement is not met, the focal length change parameter, the target position or the target picture ratio can be correspondingly adjusted, the preview video is obtained again, and the preview video is played until the obtained preview video meets the shooting effect requirement of the user.
And S501, receiving a third input of the user to a preset control in the preview video.
In the step S501, the preset control is a control for instructing to perform video shooting by using currently set parameters such as a focal length change parameter, a target position, and a target picture ratio; and the third input is an operation of triggering a preset control in the preview video, and specifically may be a click operation on the preview control.
Step S502, responding to the third input, carrying out focusing shooting on the shooting object according to the focal length change parameter, the target position and the target picture ratio, and outputting a target video.
In the step S502, when the third input is received, it is described that the user confirms that the video shooting is performed according to the current parameters, so that the shooting object is subjected to the focus shooting according to the focal length variation parameter, the target position, and the target picture ratio, and a target video is output.
In the above embodiment, the preview video is obtained by playing the focal length change parameter, the target position and the target picture ratio which are currently set on the shooting interface, so that the user determines whether the slide zoom video meeting the required shooting effect can be shot according to the currently set parameters, and the current parameters are adopted to shoot the video under the condition of receiving the third input of the user to the preset control in the preview video, so that the terminal device can shoot the video according to the slide zoom effect required by the user subsequently.
Optionally, in an implementation manner, after step S500, the video capturing manner provided in the embodiment of the present invention further includes steps S601 to S603.
The embodiment is suitable for the scene of real-time video call. In this embodiment, the terminal device for video shooting also has a video call function.
Step S601, determining a time period corresponding to the target video in the recorded real-time call video.
In the step S601, when the terminal device for shooting the video is used to perform the real-time video call, if the user still shoots the target video with the sliding zoom effect, the shooting time period is determined according to the starting time and the receiving time of shooting each video frame in the target video, and then the recording time period identical to the shooting time period is found from the recorded real-time call video.
And step S602, replacing the video segment matched with the time slot in the real-time call video by the target video.
In the step S602, a video segment in the real-time call video between the start time and the receiving time of the target video shooting is determined, and the video segment in the real-time call video is replaced with the target video to show an expression that needs to be expressed dramatically, such as thriller, surprise, and fright, or shoot an object prominently and feature-closely. Specifically, the video clip may be directly replaced with the target video; or adding the corresponding video frame of the target video into each video frame of the video clip, namely displaying the corresponding video frame of the target video in the form of a window in the video frame of the video clip, thereby displaying the sliding zoom video picture while displaying the real-time video call picture.
And S603, sending the real-time call video subjected to the replacement processing to a target terminal for displaying by the target terminal.
In the step S603, the real-time call video after the replacement processing is sent to a target terminal performing a real-time video call with a terminal device that takes video, and the target video frame with a sliding zoom effect may be inserted into a real-time video frame displayed by the target terminal.
In the embodiment, by replacing and processing the corresponding video clip in the real-time video call by using the target video with the sliding zoom effect, the shot object can be highlighted during the real-time video call, and various video interaction effects can be realized.
It should be noted that, in the video shooting method provided in the embodiment of the present application, the execution subject may be a terminal device, or a control module in the terminal device, which is used for executing the loading of the video shooting method. In the embodiment of the present application, a video shooting method implemented by a terminal device is taken as an example to describe the video shooting method provided in the embodiment of the present application.
Referring to fig. 2, a schematic structural diagram of a video capturing apparatus according to an embodiment of the present application is shown, and as shown in fig. 2, the apparatus includes:
a first receiving module 21, configured to receive a first input;
a first determining module 22, configured to determine, in response to the first input, a photographic subject, a target position of the photographic subject in a video picture, and a target picture ratio;
a second receiving module 23, configured to receive a second input;
a second determining module 24 for determining a focus variation parameter in response to the second input;
and the shooting module 25 is configured to perform focusing shooting on the shot object according to the focal length change parameter, the target position, and the target picture ratio, and output a target video.
Optionally, in the apparatus, the shooting module 25 includes:
the shooting unit is used for adjusting the focal length according to the focal length change parameter to carry out focusing shooting on the shot object in the video shooting process so as to generate each first video frame;
an identification unit configured to identify an actual position of the photographic subject in each of the first video frames;
and the generating unit is used for cutting each first video frame according to the actual position of the shooting object in each first video frame, the target position and the target picture ratio to generate a target video.
Optionally, in the apparatus, the first input includes a first sub-input and a second sub-input, and the first determining module 22 includes:
a first determination unit configured to determine a photographic subject in response to the first sub-input;
a display unit for displaying a picture profile of the photographic subject;
a second determination unit configured to determine a shooting picture range in response to the second sub-input, wherein the picture contour is displayed within the shooting picture range;
and the third determining unit is used for determining the target position and the target picture ratio of the shooting object in the video picture according to the position and the ratio of the picture outline in the shooting picture range.
Optionally, the apparatus further comprises:
the preview module is used for focusing and shooting the shot object according to the focal length change parameter, the target position and the target picture ratio after the focal length change parameter is determined in response to the third input, and a preview video is generated;
the playing module is used for playing the preview video;
the photographing module 25 includes:
the receiving unit is used for receiving a third input of the user to a preset control in the preview video;
and the shooting unit is used for responding to the third input, carrying out focusing shooting on the shot object according to the focal length change parameter, the target position and the target picture ratio, and outputting a target video.
Optionally, the apparatus further comprises:
a third determining module, configured to determine a time period corresponding to the target video in the recorded real-time conversation video after the steps of performing focus shooting on the shooting object and outputting the target video according to the focal length change parameter, the target position, and the target picture ratio;
the replacing module is used for replacing and processing the video clips matched with the time periods in the real-time call videos by using the target videos;
and the sending module is used for sending the real-time call video subjected to the replacement processing to a target terminal for display by the target terminal.
The video shooting 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 capture device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The video shooting device provided in the embodiment of the present application can implement each process implemented by the video shooting device in the method embodiment of fig. 1, and is not described herein again to avoid repetition.
In the embodiment of the application, the target position, the target picture ratio and the focal length change parameter of the shot object, the shot object in the video picture are determined firstly, the focal length change parameter comprises the focal length change direction, the focal length change range and the focal length change duration, and then the shot object is focused and shot according to the focal length change parameter, the target position and the target picture ratio, so that the target video with the sliding zooming effect is obtained. The shooting process does not need a photographer to move the shooting equipment along with the shooting object, does not need the photographer to manually adjust the focal length in real time according to the shooting distance, and is simple, convenient and safe.
Optionally, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction is executed by the processor to implement each process of the above-mentioned video shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 3 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 30 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, and processor 310.
Those skilled in the art will appreciate that the electronic device 30 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 310 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. 3 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 omitted here.
The user input unit 307, in the embodiment of the present application, includes a video display interface;
a processor 310 for receiving a first input through the user input unit 307; in response to the first input, determining a shooting object, a target position of the shooting object in a video picture and a target picture ratio; receiving a second input through the user input unit 307; determining a focus variation parameter in response to the second input; and controlling a camera to carry out focusing shooting on the shot object according to the focal length change parameter, the target position and the target picture ratio to generate a target video.
The electronic equipment provided by the embodiment of the application determines a shooting object, a target position of the shooting object in a video picture, a target picture ratio and a focal length change parameter, wherein the focal length change parameter comprises a focal length change direction, a focal length change range and focal length change duration, and then focuses and shoots the shooting object according to the focal length change parameter, the target position and the target picture ratio, so that a target video with a sliding zooming effect is obtained. The shooting process does not need a photographer to move the shooting equipment along with the shooting object, and does not need the photographer to manually adjust the focal length in real time according to the shooting distance, so that the shooting process is simple, convenient and safe.
Optionally, the processor 310 is specifically configured to, in a video shooting process, adjust a focal length according to the focal length change parameter to perform focus shooting on the shooting object, and generate each first video frame; identifying the actual position of the photographic subject in each first video frame; and cutting each first video frame according to the actual position of the shooting object in each first video frame, the target position and the target picture ratio to generate a target video.
Optionally, the first input includes a first sub-input and a second sub-input, and the processor 310 is specifically configured to determine, in response to the first sub-input, a shooting object; controlling the display unit 306 to display the picture outline of the photographic subject; responding to the second sub-input, determining the shooting picture range, wherein the picture outline is contained in the shooting picture range; and determining the target position and the target picture ratio of the shot object in the video picture according to the position and the ratio of the picture outline in the shot picture range.
Optionally, the processor 310 is further configured to perform focus shooting on the shot object according to the focal length variation parameter, the target position, and the target picture ratio, and generate a preview video; playing the preview video on the display unit 306; receiving a third input of the user to a preset control in the preview video through a user input unit 307; responding to the third input, carrying out focusing shooting on the shooting object according to the focal length change parameter, the target position and the target picture ratio, and outputting a target video.
Optionally, the processor 310 is further configured to determine a time period corresponding to the target video in the recorded real-time call video; replacing and processing the video clips matched with the time periods in the real-time call video by using the target video; and sending the real-time call video subjected to the replacement processing to a target terminal for display by the target terminal.
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 shooting 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 execute a program or an instruction to implement each process of the above video shooting method embodiment, and can achieve the same technical effect, and is not described here again 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 apparatuses in 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 recited, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, 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 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, an air conditioner, 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 (10)

1. A method of video capture, the method comprising:
receiving a first input;
in response to the first input, determining a shooting object, a target position of the shooting object in a video picture and a target picture ratio;
receiving a second input;
determining a focus variation parameter in response to the second input;
focusing and shooting the shot object according to the focal length change parameter, the target position and the target picture ratio, and outputting a target video;
the focal length change parameters comprise a focal length change direction, a focal length change range and focal length change duration;
wherein, the focusing and shooting the shooting object according to the focal length variation parameter, the target position and the target picture ratio, and outputting a target video comprises:
determining a corresponding initial focal length and a corresponding end focal length according to the focal length change range and the focal length change direction, wherein the focal length adjustment rate is (end focal length-initial focal length)/the focal length change time, adjusting the focal length of the camera from the initial focal length to the end focal length according to the focal length adjustment rate, and focusing and shooting the shot object; the step of performing focus shooting on the shot object according to the focal length change parameter, the target position and the picture proportion to generate a target video includes:
in the video shooting process, the focal length is adjusted according to the focal length change parameters to carry out focusing shooting on the shot object, and each first video frame is generated;
identifying the actual position of the photographic subject in each first video frame;
and cutting each first video frame according to the actual position of the shooting object in each first video frame, the target position and the target picture ratio to generate a target video.
2. The video capture method of claim 1, wherein the first input comprises a first sub-input and a second sub-input, and wherein determining the subject, the subject position in the video frame, and the subject frame ratio in response to the first input comprises:
determining a photographic subject in response to the first sub-input;
displaying the picture outline of the shooting object;
determining a shooting picture range in response to the second sub-input, wherein the picture outline is displayed in the shooting picture range;
and determining the target position and the target picture ratio of the shot object in the video picture according to the position and the ratio of the picture outline in the shot picture range.
3. The video capture method of claim 1, wherein after the step of determining a focus variation parameter in response to the second input, the method further comprises:
focusing and shooting the shot object according to the focal length change parameter, the target position and the target picture ratio to generate a preview video;
playing the preview video;
the step of focusing and shooting the shot object according to the focal length change parameter, the target position and the target picture ratio and outputting a target video comprises the following steps:
receiving a third input of a user to a preset control in the preview video;
responding to the third input, carrying out focusing shooting on the shooting object according to the focal length change parameter, the target position and the target picture ratio, and outputting a target video.
4. The video shooting method according to claim 1, wherein after the step of performing focus shooting on the shooting object according to the focal length variation parameter, the target position and the target picture ratio to generate a target video, the method further comprises:
determining a time period corresponding to the target video in the recorded real-time call video;
replacing the video clips matched with the time periods in the real-time call videos by the target videos;
and sending the real-time call video subjected to the replacement processing to a target terminal.
5. A video camera, the device comprising:
the first receiving module is used for receiving a first input;
the first determination module is used for responding to the first input, and determining a shooting object, a target position of the shooting object in a video picture and a target picture ratio;
the second receiving module is used for receiving a second input;
a second determination module for determining a focus variation parameter in response to the second input;
the shooting module is used for carrying out focusing shooting on the shot object according to the focal length change parameter, the target position and the target picture ratio and outputting a target video;
the focal length change parameters comprise a focal length change direction, a focal length change range and focal length change duration;
wherein, the focusing and shooting the shooting object according to the focal length variation parameter, the target position and the target picture ratio, and outputting a target video comprises:
according to the focal length change range and the focal length change direction, determining a corresponding initial focal length and a corresponding end focal length, wherein the focal length adjustment rate is (end focal length-initial focal length)/the focal length change duration, adjusting the focal length of the camera from the initial focal length to the end focal length according to the focal length adjustment rate, focusing and shooting the shooting object, and the shooting module comprises:
the shooting unit is used for adjusting the focal length according to the focal length change parameter to carry out focusing shooting on the shot object in the video shooting process so as to generate each first video frame;
an identification unit configured to identify an actual position of the photographic subject in each of the first video frames;
and the generating unit is used for cutting each first video frame according to the actual position of the shooting object in each first video frame, the target position and the target picture ratio to generate a target video.
6. The video camera of claim 5, wherein the first input comprises a first sub-input and a second sub-input, and wherein the first determining module comprises:
a first determination unit configured to determine a photographic subject in response to the first sub-input;
a display unit for displaying a picture contour of the photographic subject;
a second determination unit configured to determine a shooting picture range in response to the second sub-input, wherein the picture contour is displayed within the shooting picture range;
and the third determining unit is used for determining the target position and the target picture ratio of the shooting object in the video picture according to the position and the ratio of the picture outline in the shooting picture range.
7. The video camera of claim 5, wherein said device further comprises:
the preview module is used for focusing and shooting the shot object according to the focal length change parameter, the target position and the target picture ratio after the focal length change parameter is determined in response to the second input, and a preview video is generated;
the playing module is used for playing the preview video;
the photographing module includes:
the receiving unit is used for receiving a third input of a user to a preset control in the preview video;
and the shooting unit is used for responding to the third input, carrying out focusing shooting on the shot object according to the focal length change parameter, the target position and the target picture ratio, and outputting a target video.
8. The video camera of claim 5, wherein said device further comprises:
a third determining module, configured to determine, after the step of performing focus shooting on the shooting object and outputting a target video according to the focal length change parameter, the target position, and the target picture ratio, a time period corresponding to the target video in the recorded real-time call video;
the replacing module is used for replacing and processing the video clips matched with the time periods in the real-time call videos by utilizing the target videos;
and the sending module is used for sending the real-time call video subjected to the replacement processing to a target terminal for display by the target terminal.
9. 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 capture method of any of claims 1-4.
10. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the video shooting method according to any one of claims 1 to 4.
CN202010981354.4A 2020-09-17 2020-09-17 Video shooting method and device and electronic equipment Active CN112087579B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010981354.4A CN112087579B (en) 2020-09-17 2020-09-17 Video shooting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010981354.4A CN112087579B (en) 2020-09-17 2020-09-17 Video shooting method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112087579A CN112087579A (en) 2020-12-15
CN112087579B true CN112087579B (en) 2022-08-12

Family

ID=73737995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010981354.4A Active CN112087579B (en) 2020-09-17 2020-09-17 Video shooting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112087579B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114820296A (en) 2021-01-27 2022-07-29 北京小米移动软件有限公司 Image processing method and device, electronic device and storage medium
CN113923350A (en) * 2021-09-03 2022-01-11 维沃移动通信(杭州)有限公司 Video shooting method and device, electronic equipment and readable storage medium
CN114584709B (en) * 2022-03-03 2024-02-09 北京字跳网络技术有限公司 Method, device, equipment and storage medium for generating zooming special effects

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2674801A1 (en) * 2011-02-07 2013-12-18 FUJIFILM Corporation Lens device
CN107026982A (en) * 2017-05-22 2017-08-08 维沃移动通信有限公司 The photographic method and mobile terminal of a kind of mobile terminal
CN111583273A (en) * 2020-04-29 2020-08-25 京东方科技集团股份有限公司 Readable storage medium, display device and image processing method thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5539045B2 (en) * 2010-06-10 2014-07-02 キヤノン株式会社 Imaging apparatus, control method therefor, and storage medium
CN107707824B (en) * 2017-10-27 2020-07-31 Oppo广东移动通信有限公司 Shooting method, shooting device, storage medium and electronic equipment
CN107786812A (en) * 2017-10-31 2018-03-09 维沃移动通信有限公司 A kind of image pickup method, mobile terminal and computer-readable recording medium
CN110892321B (en) * 2018-07-18 2021-09-03 深圳市大疆创新科技有限公司 Image shooting method and unmanned aerial vehicle
CN109379537A (en) * 2018-12-30 2019-02-22 北京旷视科技有限公司 Slide Zoom effect implementation method, device, electronic equipment and computer readable storage medium
CN111556248B (en) * 2020-05-09 2021-09-03 Tcl移动通信科技(宁波)有限公司 Shooting method, shooting device, storage medium and mobile terminal
CN111756996A (en) * 2020-06-18 2020-10-09 影石创新科技股份有限公司 Video processing method, video processing apparatus, electronic device, and computer-readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2674801A1 (en) * 2011-02-07 2013-12-18 FUJIFILM Corporation Lens device
CN107026982A (en) * 2017-05-22 2017-08-08 维沃移动通信有限公司 The photographic method and mobile terminal of a kind of mobile terminal
CN111583273A (en) * 2020-04-29 2020-08-25 京东方科技集团股份有限公司 Readable storage medium, display device and image processing method thereof

Also Published As

Publication number Publication date
CN112087579A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN112087579B (en) Video shooting method and device and electronic equipment
US20140092272A1 (en) Apparatus and method for capturing multi-focus image using continuous auto focus
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
CN112714255B (en) Shooting method and device, electronic equipment and readable storage medium
CN112887609B (en) Shooting method and device, electronic equipment and storage medium
CN112887617B (en) Shooting method and device and electronic equipment
CN112584043B (en) Auxiliary focusing method and device, electronic equipment and storage medium
WO2022089284A1 (en) Photographing processing method and apparatus, electronic device, and readable storage medium
CN112532808A (en) Image processing method and device and electronic equipment
CN113014798A (en) Image display method and device and electronic equipment
CN112367465B (en) Image output method and device and electronic equipment
CN112839166A (en) Shooting method and device and electronic equipment
CN112887624B (en) Shooting method and device and electronic equipment
CN112136309A (en) System and method for performing rewind operations with a mobile image capture device
CN112887606B (en) Shooting method and device and electronic equipment
CN112653841B (en) Shooting method and device and electronic equipment
CN114245018A (en) Image shooting method and device
CN114125297A (en) Video shooting method and device, electronic equipment and storage medium
CN112367464A (en) Image output method and device and electronic equipment
CN112911148B (en) Image processing method and device and electronic equipment
CN114157810B (en) Shooting method, shooting device, electronic equipment and medium
CN113873160B (en) Image processing method, device, electronic equipment and computer storage medium
CN112887613B (en) Shooting method and device, electronic equipment and storage medium
CN112637468B (en) Shooting method and device and electronic equipment
CN112887612B (en) Shooting method and device and electronic equipment

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