CN114745504A - Shooting method and electronic equipment - Google Patents

Shooting method and electronic equipment Download PDF

Info

Publication number
CN114745504A
CN114745504A CN202210462776.XA CN202210462776A CN114745504A CN 114745504 A CN114745504 A CN 114745504A CN 202210462776 A CN202210462776 A CN 202210462776A CN 114745504 A CN114745504 A CN 114745504A
Authority
CN
China
Prior art keywords
target
preview picture
picture
command
preview
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.)
Pending
Application number
CN202210462776.XA
Other languages
Chinese (zh)
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 CN202210462776.XA priority Critical patent/CN114745504A/en
Publication of CN114745504A publication Critical patent/CN114745504A/en
Pending legal-status Critical Current

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/69Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a shooting method and electronic equipment, and belongs to the technical field of communication. The shooting method comprises the following steps: determining a shooting mode and at least one target camera associated with the shooting mode in case of receiving a first command; under the condition of receiving a second command, shooting by using at least one target camera in a shooting mode, and displaying a first preview picture shot by each target camera in a target display area; based on the received third command, switching at least one first preview picture displayed in the target display area by using the candidate preview pictures to obtain a second preview picture; the candidate preview picture is a preview picture shot by a candidate camera, and the candidate camera comprises cameras except the target camera; a target video is generated based on the first preview screen and the second preview screen displayed in the target display area.

Description

Shooting method and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a shooting method and electronic equipment.
Background
With the development of communication technology, popularization and application in a video form are widely favored by users. Currently, in order to represent a plurality of shooting angles, a plurality of users usually shoot a plurality of different angles, and finally the shooting is presented in the form of video clips. Due to the complex operation and strong specialty of video editing, the problem of high difficulty in shooting videos exists in the prior art.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method and electronic equipment thereof, which can solve the problem that the shooting difficulty of videos is high in the prior art.
In a first aspect, an embodiment of the present application provides a shooting method, where the method includes:
determining a shooting mode and at least one target camera associated with the shooting mode in case of receiving a first command;
under the condition that a second command is received, shooting by using at least one target camera in the shooting mode, and displaying a first preview picture shot by each target camera in a target display area;
based on the received third command, switching at least one first preview picture displayed in the target display area by using a candidate preview picture to obtain a second preview picture; the candidate preview picture is a preview picture shot by a candidate camera, and the candidate camera comprises cameras except the target camera;
and generating a target video based on the first preview picture and the second preview picture displayed in the target display area.
In a second aspect, an embodiment of the present application provides a shooting device, including:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a shooting mode and at least one target camera associated with the shooting mode under the condition of receiving a first command;
the first processing module is used for shooting by using at least one target camera in the shooting mode under the condition of receiving a second command, and displaying a first preview picture shot by each target camera in a target display area;
the second processing module is used for switching at least one first preview picture displayed in the target display area by using a candidate preview picture based on a received third command to obtain a second preview picture; the candidate preview picture is a preview picture shot by a candidate camera, and the candidate camera comprises a camera except the target camera;
and the generating module is used for generating a target video based on the first preview picture and the second preview picture displayed in the target display 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 a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement the method according to the first aspect.
According to the method and the device for shooting the video, before video shooting, a shooting mode and at least one target camera are determined through a first command, and in the process of video shooting, shooting is carried out through the at least one target camera in the shooting mode, so that at least one first preview picture is obtained. And after receiving a third command, switching at least one first preview picture displayed in the target display area by using the candidate preview pictures to obtain a second preview picture, and generating a target video based on the first preview picture and the second preview picture displayed in the target display area. Therefore, pictures shot by different cameras in the same shooting mode can be displayed in the target video, and switching shooting of multiple shooting visual angles is achieved. Therefore, the target video switched by multiple shooting visual angles is obtained without video clipping operation or simple clipping operation, and the shooting difficulty of the video is reduced.
Drawings
Fig. 1 is a flowchart of a shooting method provided in an embodiment of the present application;
fig. 2a is one of application scene diagrams of a first electronic device and a second electronic device in an embodiment of the present application;
fig. 2b is a second application scenario diagram of the first electronic device and the second electronic device in the embodiment of the present application;
FIG. 3a is an application scenario diagram of a first electronic device in an embodiment of the present application;
FIG. 3b is a diagram of an application scenario of a second electronic device in an embodiment of the present application;
fig. 4a is one of application scene diagrams of a shooting method provided in an embodiment of the present application;
fig. 4b is a second application scenario diagram of the shooting method according to the embodiment of the present application;
fig. 4c is a third application scene diagram of the shooting method provided in the embodiment of the present application;
FIG. 5 is a flowchart illustrating an application of a photographing method according to an embodiment of the present disclosure;
fig. 6 is a structural diagram of a photographing device provided in an embodiment of the present application;
fig. 7 is a block diagram of an electronic device provided in an embodiment of the present application;
fig. 8 is a hardware configuration 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.
The 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, fig. 1 is a flowchart of a shooting method according to an embodiment of the present disclosure. The shooting method provided by the embodiment of the application comprises the following steps:
s101, under the condition that a first command is received, determining a shooting mode and at least one target camera associated with the shooting mode.
The shooting method provided by the embodiment of the application can be applied to a shooting device, the shooting device comprises a first electronic device and at least one second electronic device, and the first electronic device can be understood as a main device. The first electronic device and the second electronic device may be any electronic devices having a video shooting function, for example, portable mobile terminals having a shooting function. Optionally, the camera of the first electronic device may include one or more cameras, for example, a front camera and a rear camera, that is, the front camera and the rear camera may be used to perform simultaneous shooting, and each second electronic device includes one camera.
It should be understood that, in an optional application scenario, referring to fig. 2a and fig. 2b, the electronic devices in the camera are communicatively connected to each other, and as shown in fig. 2a, the first electronic device starts a multi-camera mode on a setting page of the camera, searches for a nearby second electronic device, and thereby establishes a communication connection with the second electronic device. As shown in fig. 2b, the second electronic device starts a multi-camera mode on the setting page of the camera, and after receiving the connection request sent by the first electronic device, displays a reminding popup window (the content displayed by the reminding popup window is "person requesting connection: device a" in fig. 2 b), and the user may perform corresponding operations on the reminding popup window displayed by the second electronic device, so as to establish a communication connection with the first electronic device.
After the first electronic device and the second electronic device successfully establish communication connection, a user can view pictures shot by each electronic device (including the first electronic device and each second electronic device) through the first electronic device and view pictures shot by the second electronic device through the second electronic device. It should be understood that the number of the second electronic devices may be 1 or more.
In this step, the first electronic device determines a shooting mode and at least one target camera associated with the shooting mode when receiving the first command. The target camera may be a camera on the first electronic device or a camera on the second electronic device. Wherein, the shooting modes include but are not limited to a single picture mode, a picture-in-picture mode and a dual-screen mode,
and S102, under the condition that a second command is received, shooting by using at least one target camera in the shooting mode, and displaying a first preview picture shot by each target camera in a target display area.
In this step, when the first electronic device and/or the second electronic device receives the second instruction, in the shooting mode, the target camera is used for shooting. Referring to fig. 3a and 3b, in the application scenario shown in fig. 3a, in the single-frame mode, the first electronic device performs shooting according to the received second command; fig. 3b illustrates an application scene in a single-frame mode, where the second electronic device performs shooting according to the received second command.
In this step, each target camera shoots a first preview picture in the target display area, for example, if a shooting mode needs to call two target cameras, after receiving a second command, two first preview pictures are displayed in the target display area, and the first preview pictures are pictures shot by the corresponding target cameras.
For easy understanding, please refer to fig. 4a to 4c, fig. 4a is a schematic diagram illustrating a single-frame mode in which the target display area of the first electronic device displays only one first preview frame, i.e., the number of target cameras is 1.
Fig. 4b is a schematic diagram of a picture-in-picture mode in which the target display area of the first electronic device displays two first preview screens, i.e., the number of target cameras is 2.
Fig. 4c is a schematic diagram illustrating a dual-screen mode in which the target display area of the first electronic device displays two first preview screens, i.e., the number of target cameras is 2.
It should be understood that the region marked by S1 in fig. 4a to 4c is the target display region.
S103, based on the received third command, switching at least one first preview picture displayed in the target display area by using a candidate preview picture to obtain a second preview picture.
In this step, after receiving the third command, the first electronic device or the second electronic device controls the candidate camera to shoot, and switches at least one first preview picture displayed in the target display area to a candidate preview picture, so as to obtain a second preview picture. It should be understood that the user may input the third command by voice, gesture, touch, or the like.
The number of the candidate cameras may be 1 or more, and the candidate cameras may be cameras other than the target camera.
Alternatively, the user may perform one or more times of inputting a third command, and each time the third command may control one first preview screen to be switched to a candidate preview screen, that is, control the target camera to be switched to a candidate camera, so as to obtain the second preview screen. And the candidate preview picture is a preview picture shot by the candidate camera.
And S104, generating a target video based on the first preview picture and the second preview picture displayed in the target display area.
In this step, the final target video may be obtained by integrating the video data recorded on the basis of the first preview picture and the video data recorded on the basis of the second preview picture displayed in the target display area, for example, the target video may be obtained by integrating the video data captured by each camera by each electronic device, or the target video may be obtained by integrating the video data captured by each camera only by the first electronic device.
Optionally, in some embodiments, the video data of all the cameras may be generated in the first electronic device, the video data of all the cameras may also be generated in each electronic device, and the video data shot by each electronic device may also be generated by each electronic device, which is not limited herein.
Further, for the candidate camera, only video data corresponding to a time period after switching of the target preview using the candidate preview screen may be generated. For the target camera, the video data in the whole shooting time period may be generated, or only the video data corresponding to the time period not including the second preview screen may be generated.
According to the method and the device for shooting the video, before video shooting, a shooting mode and at least one target camera are determined through a first command, and in the process of video shooting, shooting is carried out through the at least one target camera in the shooting mode, so that at least one first preview picture is obtained. And after receiving a third command, switching at least one first preview picture displayed in the target display area by using the candidate preview pictures to obtain a second preview picture, and generating a target video based on the first preview picture and the second preview picture displayed in the target display area. Therefore, pictures shot by different cameras in the same shooting mode can be displayed in the target video, and switching shooting of multiple shooting visual angles is achieved. Therefore, the video editing operation or simple editing operation is not needed, the target video with multiple shooting visual angles switched is obtained, and the shooting difficulty of the video is reduced.
Optionally, the determining a shooting mode and at least one target camera associated with the shooting mode in case of receiving the first command includes:
determining a shooting mode based on the received first sub-command;
determining one camera associated with the second sub-command as the target camera in case that the photographing mode is a single-frame mode;
determining at least two cameras associated with the second sub-command as the target camera if the photographing mode is a picture-in-picture mode or a dual-screen mode.
The first command includes a first sub-command and a second sub-command. The user can perform the input of the first sub-command and the second sub-command through a sliding operation, a touch operation, or other types of operations.
Specifically, a device interface of the first electronic device displays a mode list, where the mode list includes a "single-frame mode", a "picture-in-picture mode", and a "dual-screen mode", and if the user clicks the "single-frame mode", it is determined that the shooting mode is the single-frame mode.
As described above, in the case of the single-frame mode, the number of target cameras is 1; in case of the picture-in-picture mode or the dual screen mode, the number of target cameras is 2.
In this embodiment, after the shooting mode is determined, a preview picture obtained by shooting by each camera may be displayed in a preset display area of the first electronic device, and it should be understood that an area marked by S2 in fig. 4a to 4c is the preset display area.
And receiving a second sub-input of the user to the preview picture, and determining the camera corresponding to the preview picture as a target camera. The preset display area is different from the target display area.
Illustratively, the shooting mode is a single-frame mode, and a preview screen 1 and a preview screen 2 are displayed in a preset display area of the first electronic device, where the preview screen 1 is a preview screen shot by the camera B, and the preview screen 2 is a preview screen shot by the camera C. And if the touch input of the user to the preview screen 1 is received, displaying the preview screen 1 in the target display area, and determining the camera B as the target camera.
Optionally, the switching, based on the received third command, at least one of the first preview images displayed in the target display area by using a candidate preview image to obtain a second preview image includes:
and under the condition that the shooting mode is a single-picture mode and a third command is received, switching a first preview picture displayed in the target display area by using a candidate preview picture to obtain a second preview picture.
As described above, in the single-picture mode, the target display area of the first electronic device displays only one first preview screen.
It should be appreciated that the user may enter the third command one or more times, and the user may enter the third command by touch input, slide input, or other types of input. For clarity of illustration of the technical solution, the following embodiments are described by taking the input of the third command once by the user as an example.
And under the condition that the shooting mode is a single-picture mode, a target display area of the first electronic equipment displays a first preview picture, a preset display area of the first electronic equipment displays at least one preview picture, and the preview picture is a preview picture shot by a corresponding camera. Receiving an input of a preview picture displayed in a preset display area by a user, wherein the input can be understood as a third command, determining the preview picture pointed by the input as a candidate preview picture in response to the third command, and switching a first preview picture displayed in a target display area into the candidate preview picture to obtain a second preview picture. And the candidate preview picture is a preview picture shot by the candidate camera associated with the third command.
In this embodiment, in the shooting process, based on the received third command, the cameras are switched to shoot, so that pictures shot by different cameras in the same shooting mode are obtained, and switching shooting of multiple shooting angles is realized.
Optionally, the switching, based on the received third command, at least one of the first preview images displayed in the target display area by using a candidate preview image to obtain a second preview image includes:
determining a first preview picture corresponding to a third command in at least one first preview picture displayed in the target display area as a target preview picture when the shooting mode is a picture-in-picture mode or a double-screen mode and the third command is received;
switching the target preview picture by using the candidate preview picture; the candidate preview picture is a preview picture shot by a candidate camera associated with the third command;
and after the target preview picture is switched, determining the preview picture displayed in the target display area as a second preview picture.
As described above, in the picture-in-picture mode or the dual screen mode, the target display region of the first electronic device displays two first preview screens.
It should be understood that the user may enter the third command one or more times, and the user may enter the third command by touch input, slide input, or other types of input. For clarity of illustration of the technical solution, the following embodiments are described by taking the input of the third command once by the user as an example.
Under the condition that the shooting mode is a picture-in-picture mode or a double-screen mode, a target display area of the first electronic equipment displays two first preview pictures, a preset display area of the first electronic equipment displays at least one preview picture, and the preview pictures are preview pictures shot by corresponding cameras.
In an optional embodiment, the user performs an input on the first preview screen and a preview screen displayed in the preset display area, where the input may be understood as a third command, and in response to the third command, the preview screen to which the input is directed is determined as a candidate preview screen, specifically, the preview screen to which the input is directed is a preview screen displayed in the preset display area; and determining a first preview picture corresponding to the input as a target preview picture, further switching the target preview picture by using the candidate preview picture, and after the target preview picture is switched, determining the candidate preview picture displayed in the target display area and the first preview picture which is not switched as a second preview picture. And the candidate preview picture is a preview picture shot by the candidate camera associated with the third command.
For clarity of illustration of the technical solution, the following embodiments are described by taking the input of the third command by the user twice as an example.
The user performs a first input on the first preview screen and one preview screen displayed in the preset display area, and then performs a second input on the other first preview screen and the other preview screen displayed in the preset display area, that is, the user performs two inputs, which can be understood that the user performs two inputs of the third command.
In this case, the preview screen corresponding to the first input is determined as a first candidate preview screen, and the first preview screen corresponding to the first input displayed in the target display area is switched to the first candidate preview screen; and determining the preview screen corresponding to the second input as a second candidate preview screen, and switching the first preview screen corresponding to the second input displayed in the target display area to the second candidate preview screen. And after the two first preview images are switched, obtaining a second preview image, wherein the second preview image comprises the first preview image corresponding to the first input displayed in the target display area, the first preview image corresponding to the second input, and the first preview image which is not switched.
In this embodiment, in the shooting process, based on the received third command, the cameras are switched to shoot, so that pictures shot by different cameras in the same shooting mode are obtained, and switching shooting of multiple shooting angles is realized.
Optionally, after determining the shooting mode and at least one target camera associated with the shooting mode, the method includes:
and when the shooting mode is a picture-in-picture mode or a double-screen mode, switching the preview picture displayed in the first display area to the preview picture displayed in the second display area and switching the preview picture displayed in the second display area to the preview picture displayed in the first display area based on a received fourth command.
In the case where the photographing mode is the picture-in-picture mode or the dual screen mode, the target display region includes a first display region and a second display region, where S11 marked in fig. 4b to 4c denotes the first display region and S12 denotes the second display region.
In this embodiment, the fourth command may be an input operation performed by a user, and the input operation includes, but is not limited to, a slide input, a touch input, and a press input. When the fourth command is received, the preview screen displayed in the first display area is switched to the preview screen displayed in the second display area, and the preview screen displayed in the second display area is switched to the preview screen displayed in the first display area.
For example, if the first display area displays the preview screen 1 and the second display area displays the preview screen 2, the first display area is set to display the preview screen 2 and the second display area displays the preview screen 1 after receiving the fourth command.
Optionally, the preset display area includes a target control, and the fourth command is considered to be received when a touch input to the target control by the user is received. In this embodiment, when the shooting mode is the picture-in-picture mode or the dual-screen mode and the target command is received, the preview pictures displayed in the first display area and the second display area are exchanged, so that the user can obtain a video with a clipping effect only through one input operation, thereby reducing the clipping operation steps of the user and reducing the clipping difficulty.
To facilitate the overall technical solution, please refer to fig. 5, where fig. 5 is a flowchart illustrating an application when the photographing apparatus includes an apparatus a and an apparatus B, and the apparatus a is a master apparatus. As shown in fig. 5, after the device a and the device B establish a communication connection, a user may select a recording mode and a recording view angle on the device a, where the recording mode includes three modes, i.e., a single picture, a picture-in-picture mode, and a split screen, and the recording view angle includes pictures of all cameras of the device a and a picture of a main camera of the device B, where the main camera of the device B is referred to as a main camera in a case where the device B has only one camera. It should be understood that, in an alternative embodiment, the above-mentioned recording view may also include a picture of a part of cameras in the apparatus a; in the case where the device B includes a plurality of cameras, the recording angle of view may also be a picture of the plurality of cameras in the device B. The picture of the camera refers to a picture shot by the camera.
And further, receiving a second command input by the user, controlling the equipment A and the equipment B to shoot and record the video. In the process of video recording, the switching of the shooting time can be further performed based on the received third command. And after the target video is obtained by recording, storing the target video.
The following describes in detail a photographing apparatus provided in an embodiment of the present application with reference to the accompanying drawings and specific embodiments and application scenarios thereof.
As shown in fig. 6, the photographing apparatus 600 includes a first electronic device 610, and the first electronic device 610 includes:
a determining module 601, configured to determine, in a case where a first command is received, a shooting mode and at least one target camera associated with the shooting mode;
a first processing module 602, configured to, in a case that a second command is received, perform shooting using the at least one target camera in the shooting mode, and display, in a target display area, a first preview picture shot by each target camera;
a second processing module 603, configured to switch, based on the received third command, at least one first preview screen displayed in the target display area using a candidate preview screen, to obtain a second preview screen;
a generating module 604, configured to generate a target video based on the first preview screen and the second preview screen displayed in the target display area.
Optionally, the determining module 601 is specifically configured to:
determining a shooting mode based on the received first sub-command;
determining one camera associated with the second sub-command as the target camera in case that the photographing mode is a single-frame mode;
determining at least two cameras associated with the second sub-command as the target camera if the photographing mode is a picture-in-picture mode or a dual-screen mode.
Optionally, the second processing module 603 is specifically configured to:
and under the condition that the shooting mode is a single picture and a third command mode is received, switching the first preview picture displayed in the target display area by using the candidate preview pictures to obtain a second preview picture.
Optionally, the second processing module 603 is further specifically configured to:
determining a first preview picture corresponding to a third command in at least one first preview picture displayed in the target display area as a target preview picture when the shooting mode is a picture-in-picture mode or a double-screen mode and the third command is received;
switching the target preview picture by using the candidate preview picture;
and after the target preview picture is switched, determining the preview picture displayed in the target display area as a second preview picture.
Optionally, the second processing module 603 is further specifically configured to:
and when the shooting mode is the picture-in-picture mode or the double-screen mode, based on a received fourth command, switching the preview picture displayed in the first display area to the preview picture displayed in the second display area, and switching the preview picture displayed in the second display area to the preview picture displayed in the first display area.
Optionally, the photographing apparatus 600 further includes a second electronic device 620, where the second electronic device 620 includes a camera, and the camera is a target camera or a candidate camera;
the first electronic device 610 sends a connection request to the second electronic device 620 to communicatively connect with the second electronic device 620.
In the block diagram shown in fig. 6, the camera 600 includes only one second electronic device 602, and it is understood that the camera 600 may include two or more electronic devices 602.
The first electronic device 601 actively transmits a connection request to the second electronic device 602, and the second electronic device 602 may communicatively connect with the first electronic device 601 based on the received connection request, in which case the first electronic device 601 is determined as a master device.
Optionally, the first electronic device 610 stores the target video.
In this embodiment, the first electronic device 601 stores a target video.
In other embodiments, the first electronic device 601 further stores video data captured by all cameras in the capturing apparatus 600.
In other embodiments, the second electronic device 602 stores video data captured by its own camera.
Optionally, the pointing object of the second command is the first electronic device 610 or the second electronic device 620.
In this embodiment, the user may execute the second command to the first electronic device 601 to control the camera 600 to shoot, or execute the second command to the second electronic device 602 to control the camera 600 to shoot.
According to the method and the device for shooting the video, before video shooting, a shooting mode and at least one target camera are determined through a first command, and in the process of video shooting, shooting is carried out through the at least one target camera in the shooting mode, so that at least one first preview picture is obtained. And after receiving a third command, switching at least one first preview picture displayed in the target display area by using the candidate preview pictures to obtain a second preview picture, and generating a target video based on the first preview picture and the second preview picture displayed in the target display area. Therefore, pictures shot by different cameras in the same shooting mode can be displayed in the target video, and switching shooting of multiple shooting visual angles is achieved. Therefore, the video editing operation or simple editing operation is not needed, the target video with multiple shooting visual angles switched is obtained, and the shooting difficulty of the video is reduced.
The photographing device in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The photographing apparatus in the embodiment of the present application may be an apparatus 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 shooting device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in an embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the foregoing shooting method embodiment, and can achieve the same technical effect, and no further description is provided 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. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 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.
Wherein, the processor 810 is further configured to determine a shooting mode and at least one target camera associated with the shooting mode if a first command is received;
under the condition that a second command is received, shooting by using at least one target camera in the shooting mode, and displaying a first preview picture shot by each target camera in a target display area;
based on the received third command, switching at least one first preview picture displayed in the target display area by using a candidate preview picture to obtain a second preview picture;
and generating a target video based on the first preview picture and the second preview picture displayed in the target display area.
The processor 810 is further configured to determine a shooting mode based on the received first sub-command;
determining one camera associated with the second subcommand as the target camera under the condition that the shooting mode is a single-frame mode;
determining at least two cameras associated with the second sub-command as the target camera if the photographing mode is a picture-in-picture mode or a dual-screen mode.
The processor 810 is further configured to switch the first preview screen displayed in the target display area by using the candidate preview screen to obtain a second preview screen when the shooting mode is the single-frame mode and a third command is received.
The processor 810 is further configured to determine, as a target preview picture, a first preview picture corresponding to a third command in at least one first preview picture displayed in the target display area when the shooting mode is a picture-in-picture mode or a dual-screen mode and the third command is received;
switching the target preview picture by using the candidate preview picture;
and after the target preview picture is switched, determining the preview picture displayed in the target display area as a second preview picture.
The processor 810 is further configured to, when the shooting mode is the pip mode or the dual-screen mode, switch the preview screen displayed in the first display area to the preview screen displayed in the second display area and switch the preview screen displayed in the second display area to the preview screen displayed in the first display area based on the received fourth command.
According to the method and the device for shooting the video, before video shooting, a shooting mode and at least one target camera are determined through a first command, and in the process of video shooting, shooting is carried out through the at least one target camera in the shooting mode, so that at least one first preview picture is obtained. And after receiving a third command, switching at least one first preview picture displayed in the target display area by using the candidate preview pictures to obtain a second preview picture, and generating a target video based on the first preview picture and the second preview picture displayed in the target display area. Therefore, pictures shot by different cameras in the same shooting mode can be displayed in the target video, and switching shooting of multiple shooting visual angles is achieved. Therefore, the video editing operation or simple editing operation is not needed, the target video with multiple shooting visual angles switched is obtained, and the shooting difficulty of the video is reduced.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics Processing Unit 8041 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 806 may include a display panel 8061, and the display panel 8071 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes at least one of a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 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 809 may be used to store software programs as well as various data. The memory 809 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playing function, an image playing function, and the like), and the like. Further, the memory 809 can include volatile memory or nonvolatile memory, or the memory 809 can include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 809 in the present embodiment includes, but is not limited to, these and any other suitable types of memory.
Processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor, which primarily handles operations related to the operating system, user interface, and applications, and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 810.
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 above 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 computer Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
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 shooting 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.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing shooting method embodiments, and achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
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. Additionally, features described with reference to certain examples may be combined in other examples.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art 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 (which may be a mobile phone, a computer, a server, or a network device, etc.) 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 (15)

1. A photographing method, characterized by comprising:
determining a shooting mode and at least one target camera associated with the shooting mode if a first command is received;
under the condition that a second command is received, shooting by using at least one target camera in the shooting mode, and displaying a first preview picture shot by each target camera in a target display area;
based on the received third command, switching at least one first preview picture displayed in the target display area by using a candidate preview picture to obtain a second preview picture; the candidate preview picture is a preview picture shot by a candidate camera, and the candidate camera comprises a camera except the target camera;
and generating a target video based on the first preview picture and the second preview picture displayed in the target display area.
2. The method of claim 1, wherein the first command comprises a first sub-command and a second sub-command, and wherein determining the shooting mode and the at least one target camera associated with the shooting mode if the first command is received comprises:
determining a shooting mode based on the received first sub-command;
determining one camera associated with the second sub-command as the target camera in case that the photographing mode is a single-frame mode;
determining at least two cameras associated with the second sub-command as the target camera if the photographing mode is a picture-in-picture mode or a dual-screen mode.
3. The method according to claim 1 or 2, wherein the switching at least one of the first preview screens displayed in the target display area using the candidate preview screens based on the received third command to obtain a second preview screen comprises:
when the shooting mode is a single-picture mode and a third command is received, switching a first preview picture displayed in the target display area by using a candidate preview picture to obtain a second preview picture; the candidate preview picture is a preview picture shot by a candidate camera associated with the third command.
4. The method according to claim 1 or 2, wherein the switching at least one of the first preview screens displayed in the target display area using the candidate preview screens based on the received third command to obtain a second preview screen comprises:
determining a first preview picture corresponding to a third command in at least one first preview picture displayed in the target display area as a target preview picture under the condition that the shooting mode is a picture-in-picture mode or a double-screen mode and the third command is received;
switching the target preview picture by using the candidate preview picture; the candidate preview picture is a preview picture shot by a candidate camera associated with the third command;
and after the target preview picture is switched, determining the preview picture displayed in the target display area as a second preview picture.
5. The method according to claim 1 or 2, wherein in a case where the photographing mode is a picture-in-picture mode or a dual-screen mode, the target display region includes a first display region and a second display region;
after the determining a shooting mode and at least one target camera associated with the shooting mode, the method includes: and when the shooting mode is a picture-in-picture mode or a double-screen mode, switching the preview picture displayed in the first display area to the preview picture displayed in the second display area and switching the preview picture displayed in the second display area to the preview picture displayed in the first display area based on a received fourth command.
6. A camera, comprising a first electronic device, the first electronic device comprising:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a shooting mode and at least one target camera associated with the shooting mode under the condition of receiving a first command;
the first processing module is used for shooting by using at least one target camera in the shooting mode under the condition of receiving a second command, and displaying a first preview picture shot by each target camera in a target display area;
the second processing module is used for switching at least one first preview picture displayed in the target display area by using a candidate preview picture based on a received third command to obtain a second preview picture; the candidate preview picture is a preview picture shot by a candidate camera, and the candidate camera comprises a camera except the target camera;
and the generating module is used for generating a target video based on the first preview picture and the second preview picture displayed in the target display area.
7. The apparatus of claim 6, wherein the first command comprises a first subcommand and a second subcommand, and the determining module is specifically configured to:
determining a shooting mode based on the received first sub-command;
determining one camera associated with the second subcommand as the target camera under the condition that the shooting mode is a single-frame mode;
determining at least two cameras associated with the second sub-command as the target camera if the photographing mode is a picture-in-picture mode or a dual-screen mode.
8. The apparatus according to claim 6 or 7, wherein the second processing module is specifically configured to:
when the shooting mode is a single-picture mode and a third command is received, switching a first preview picture displayed in the target display area by using a candidate preview picture to obtain a second preview picture; the candidate preview picture is a preview picture shot by a candidate camera associated with the third command.
9. The apparatus according to claim 6 or 7, wherein the second processing module is further specifically configured to:
determining a first preview picture corresponding to a third command in at least one first preview picture displayed in the target display area as a target preview picture when the shooting mode is a picture-in-picture mode or a double-screen mode and the third command is received;
switching the target preview picture by using the candidate preview picture; the candidate preview picture is a preview picture shot by a candidate camera associated with the third command;
and after the target preview picture is switched, determining the preview picture displayed in the target display area as a second preview picture.
10. The apparatus according to claim 6 or 7, wherein in a case where the photographing mode is a picture-in-picture mode or a dual-screen mode, the target display region includes a first display region and a second display region;
the device further comprises:
and a third processing module, configured to, when the shooting mode is a picture-in-picture mode or a dual-screen mode, switch, based on a received fourth command, the preview picture displayed in the first display area to the preview picture displayed in the second display area, and switch the preview picture displayed in the second display area to the preview picture displayed in the first display area.
11. The apparatus of claim 6, further comprising a second electronic device comprising a camera, the camera being a target camera or a candidate camera;
the first electronic device sends a connection request to the second electronic device to be in communication connection with the second electronic device.
12. The apparatus of claim 11, wherein the first electronic device stores the target video.
13. The apparatus of claim 11, wherein the pointing object of the second command is the first electronic device or the second electronic device.
14. An electronic device, characterized in that it comprises a processor, a memory and a program or instructions stored on said memory and executable on said processor, said program or instructions, when executed by said processor, implementing the steps of the shooting method according to any one of claims 1-5.
15. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions which, when executed by a processor, implement the steps of the photographing method according to any one of claims 1-5.
CN202210462776.XA 2022-04-28 2022-04-28 Shooting method and electronic equipment Pending CN114745504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210462776.XA CN114745504A (en) 2022-04-28 2022-04-28 Shooting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210462776.XA CN114745504A (en) 2022-04-28 2022-04-28 Shooting method and electronic equipment

Publications (1)

Publication Number Publication Date
CN114745504A true CN114745504A (en) 2022-07-12

Family

ID=82284833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210462776.XA Pending CN114745504A (en) 2022-04-28 2022-04-28 Shooting method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114745504A (en)

Similar Documents

Publication Publication Date Title
CN112911147B (en) Display control method, display control device and electronic equipment
EP4329285A1 (en) Video photographing method and apparatus, electronic device, and storage medium
CN112954212A (en) Video generation method, device and equipment
WO2023174297A1 (en) Screen control method and apparatus, and electronic device
CN114125297B (en) Video shooting method, device, electronic equipment and storage medium
CN115866314A (en) Video playing method and device
CN114025237B (en) Video generation method and device and electronic equipment
CN115499589A (en) Shooting method, shooting device, electronic equipment and medium
CN115941869A (en) Audio processing method and device and electronic equipment
CN112202958B (en) Screenshot method and device and electronic equipment
CN114390206A (en) Shooting method and device and electronic equipment
CN114745504A (en) Shooting method and electronic equipment
CN114615426A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114390197A (en) Shooting method and device, electronic equipment and readable storage medium
CN114245017A (en) Shooting method and device and electronic equipment
CN114357554A (en) Model rendering method, rendering device, terminal, server and storage medium
CN115052107B (en) Shooting method, shooting device, electronic equipment and medium
CN114745506A (en) Video processing method and electronic equipment
CN115665458A (en) Video playing method and device, electronic equipment and storage medium
CN115631109A (en) Image processing method, image processing device and electronic equipment
CN116389665A (en) Video recording method and device, electronic equipment and readable storage medium
CN117294888A (en) Video playing method and terminal
CN117729382A (en) Video playing method and device, electronic equipment and storage medium
CN115052107A (en) Shooting method, shooting device, electronic equipment and medium
CN117676256A (en) Video playing method and device, electronic equipment and readable storage 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