CN115278048B - Video shooting method and electronic equipment - Google Patents

Video shooting method and electronic equipment Download PDF

Info

Publication number
CN115278048B
CN115278048B CN202210677485.2A CN202210677485A CN115278048B CN 115278048 B CN115278048 B CN 115278048B CN 202210677485 A CN202210677485 A CN 202210677485A CN 115278048 B CN115278048 B CN 115278048B
Authority
CN
China
Prior art keywords
camera
interface
electronic device
video
cameras
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
CN202210677485.2A
Other languages
Chinese (zh)
Other versions
CN115278048A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202210677485.2A priority Critical patent/CN115278048B/en
Publication of CN115278048A publication Critical patent/CN115278048A/en
Application granted granted Critical
Publication of CN115278048B publication Critical patent/CN115278048B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • 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/69Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming

Landscapes

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

Abstract

A method for shooting video and electronic equipment relate to the technical field of shooting, cameras can be switched in the process of recording video, video files shot at multiple camera view angles can be obtained through one shooting, and shooting experience of users is improved. The electronic device may display a first interface; the first interface is a view finding interface for recording video, and comprises a first preview image acquired by a first camera; receiving a first operation of a user on a first interface; responding to the first operation, and displaying a second interface comprising a second preview image acquired by a second camera; receiving a second operation of the user on the first interface, wherein the second operation is used for triggering the electronic equipment to stop recording the video; a first video file is generated, the first video file comprising a first video stream comprising a plurality of frames of first preview images and a second video stream comprising a plurality of frames of second preview images.

Description

Video shooting method and electronic equipment
The present application claims priority to "a method and electronic device for capturing video" from the national intellectual property office at 30 and 11 months in 2020, the application No. 202011385330.9, the application No. "a shooting control method and electronic device", and the chinese patent application at 30 and 11 months in 2020, the application No. 202011381353.2, the application No. "a method and electronic device for capturing video", which are incorporated herein by reference in their entirety.
Technical Field
The embodiment of the application relates to the technical field of photographing, in particular to a video photographing method and electronic equipment.
Background
Existing mobile phones generally have a photographing function, and more people record live spot drops by photographing pictures and videos through the mobile phones. For example, the process of recording video by the mobile phone comprises the following steps (1) and (2). Step (1): after the mobile phone displays the view finding interface 101 of the recorded video shown in fig. 1A, the recorded video starts to be recorded in response to the clicking operation of the start recording button 102 by the user, and the recorded video interface 103 shown in fig. 1B is displayed. The recording video interface 103 includes a stop recording button 104. Step (2): the mobile phone stops recording video and generates recorded video in response to a user's click operation of the stop recording button 104 shown in fig. 1B.
Currently, most mobile phones are configured with multiple cameras, such as front cameras and rear cameras. Hardware parameters of different cameras are different, and positions of the different cameras on the mobile phone are different. Therefore, when the mobile phone is fixed in a viewing environment, images of the viewing environment acquired by different cameras are different. In order to shoot video with higher interest, in the process of recording a video, different cameras in the mobile phone are required to be switched to acquire images. However, the existing scheme does not support the video recording process to switch cameras.
In some schemes, a segmented recording mode can be adopted, and different cameras in the mobile phone are sequentially used for shooting for multiple times to obtain a plurality of temporary video files; finally, integrating the temporary video files into a completed video file. Thus, video files shot by different cameras can be switched.
Disclosure of Invention
The embodiment of the application provides a video shooting method and electronic equipment, which can switch cameras in the video recording process, can obtain video files shot by multiple camera visual angles through one shooting, and improves shooting experience of users.
In a first aspect, an embodiment of the present application provides a method for capturing video, where the method may be applied to an electronic device including a plurality of cameras. The electronic device may display the first interface. The first interface is a viewfinder interface of a video being recorded by the electronic device, and includes a first preview image acquired by a first camera of the plurality of cameras. The electronic device may then receive a first operation of the first interface by the user. The first operation is for triggering the electronic device to switch to use a second camera of the plurality of cameras. In response to the first operation, the electronic device may display a second interface that is also a viewing interface of the video being recorded by the electronic device. The second interface includes a second preview image captured by a second camera. That is, the electronic device switches the first preview image in the first interface to the second preview image collected by the second camera. Finally, the electronic device may receive a second operation of the second interface by the user, where the second operation is used to trigger the electronic device to stop recording the video. The electronic device may generate a first video file. For example, the first interface also includes a stop recording button. The second operation may be a click operation (e.g., a clicking operation) of the stop recording button by the user.
The first video file may include a first video stream including a plurality of frames of first preview images and a second video stream including a plurality of frames of second preview images. The second camera is different from the first camera
In the application, in the process of recording video by the electronic equipment, the first operation of a user on a view finding interface (such as a first interface) of the video being recorded by the electronic equipment can be received. Then, the electronic device can respond to the first operation to switch the first preview image acquired by the first camera to the second preview image acquired by the second camera, namely, the camera of the electronic device is switched in the process of recording the video. Finally, upon receiving a second operation from the user (e.g., a click operation on a stop recording button), the electronic device may generate a complete video file including the first video stream and the second video stream.
In summary, by adopting the method of the embodiment of the application, the camera can be switched in the video recording process. Moreover, by adopting the method, the multi-view video file can be obtained by one shooting, a plurality of temporary video files are not generated, the temporary video files are not required to be integrated, the mobile phone receives the click operation of a user on the stop recording button, and the multi-view video file can be generated in real time for the user to view at any time. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
Further, by adopting the method of the embodiment of the application, the duration of video recording of the electronic equipment is not limited. That is, the electronic device executes the method of the present application, and can record video files with any duration according to the requirement of the user.
In one possible design manner of the first aspect, the first interface further includes a first control for triggering the electronic device to switch to use the second camera; the first operation is a clicking operation of the first control by a user. The first control used for triggering the electronic equipment to switch the camera is displayed on the first interface, so that a user can conveniently operate the electronic equipment to switch the camera in the video recording process.
In another possible design manner of the first aspect, the first operation may also be a preset gesture, such as an S-gesture or a v-gesture, input by the user on the first interface.
In another possible design manner of the first aspect, the first camera is a front camera of the electronic device, and the second camera is a rear camera of the electronic device. Or, the first camera is a rear camera of the electronic device, and the second camera is a front camera of the electronic device.
That is, by adopting the method of the embodiment of the application, the switching between the front camera and the rear camera can be performed in the process of recording the video by the electronic equipment.
In another possible design manner of the first aspect, the plurality of cameras includes a front camera and a rear camera of a plurality of types; the type of the camera at least comprises: the camera comprises a main camera, a wide-angle camera and a long-focus camera; the first camera and the second camera are any two cameras among the plurality of cameras, and the first camera is different from the second camera.
That is, by adopting the method of the embodiment of the application, the switching of any camera in the electronic equipment can be switched in the process of recording video by the electronic equipment, and the any camera can be a front camera or a rear camera of various types in the electronic equipment.
In another possible design manner of the first aspect, each of the first interface and the second interface may include a plurality of second controls, where each second control corresponds to one of the plurality of cameras, and is configured to trigger the electronic device to switch to use the corresponding camera.
The plurality of second controls comprise a first control, the first control is used for triggering the electronic equipment to switch to use the second camera, and the first operation is click operation of the first control by a user.
For example, take an example in which the electronic device includes a front main camera, a front wide-angle camera, a front tele camera, a rear main camera, a rear wide-angle camera, and a rear tele camera. The plurality of second controls may include a "pre-panning" control, a "pre-tele" control, a "pre-wide" control, a "post-panning" control, a "post-tele" control, and a "post-wide" control. The front-facing main shooting control corresponds to a front-facing main camera of the electronic equipment, the rear-facing main shooting control corresponds to a rear-facing main camera of the electronic equipment, the front-facing long-focus control corresponds to a front-facing long-focus camera of the electronic equipment, the front-facing wide-angle control corresponds to a front-facing wide-angle camera of the electronic equipment, the rear-facing long-focus control corresponds to a rear-facing long-focus camera of the electronic equipment and is used for triggering the electronic equipment to display preview images acquired by the rear-facing long-focus camera, and the rear-facing wide-angle control corresponds to a rear-facing wide-angle camera of the electronic equipment.
In another possible design manner of the first aspect, in the first interface, the second control corresponding to the first camera is in a first display state, and the second controls corresponding to the other cameras are in a second display state. In the second interface, a second control corresponding to the second camera is in a first display state, and second controls corresponding to other cameras are in a second display state.
The camera corresponding to the second control in the first display state is a preview camera of the electronic equipment; the camera corresponding to the second control in the second display state is not the preview camera. Therefore, the user can identify the preview camera of the electronic device according to the display state of each second control.
In another possible design manner of the first aspect, the displaying, by the electronic device, the first interface may include: the electronic equipment displays a third interface; the third interface is a view finding interface of the video being recorded by the electronic equipment, the third interface comprises a first preview image acquired by the first camera, and the third interface also comprises a third control used for triggering the electronic equipment to display a plurality of second controls; in response to a click operation of the third control by the user, the electronic device displays a first interface including a plurality of second controls.
For example, the third control may be a camera switch option. In this design, a viewing interface (e.g., a third interface) of the electronic device that is recording video may display a third control. In response to a click operation of the third control by the user, the electronic device may display a plurality of second controls.
In another possible design manner of the first aspect, the electronic device may not switch the camera during the recording of the video in response to the first operation after the electronic device starts recording the video. Instead, after the video recording is started, the camera can be switched in the video recording process in response to the first operation after a preset function (such as a function of switching the camera in the video recording process) is started by the user.
Specifically, the electronic device may display the fourth interface before the electronic device displays the first interface. The fourth interface is a view finding interface of the electronic device for recording video, and the fourth interface comprises a start recording button for triggering the electronic device to start recording video. In response to a click operation of the start recording button by the user, the electronic device may display a fifth interface including a first preview image captured by the first camera. The fifth interface comprises a preset function switch, wherein the preset function switch is used for triggering the electronic equipment to start or close a preset function, and the preset function is a function of switching the camera in the video recording process. Then, the electronic device may receive a third operation of the preset function switch by the user, where the third operation is used to trigger the electronic device to start the preset function.
The electronic device displaying the first interface may include: and responding to a third operation of a user on a preset function switch, displaying a first interface comprising a first control by the electronic equipment, wherein the first control is used for triggering the electronic equipment to switch to use the second camera.
In this design, the electronic device may instruct the electronic device to turn on/off the preset function by the state of the preset function switch. Thus, the user can judge whether the preset function is on/off by observing the state of the preset function switch. Of course, the user may also determine whether the preset function is turned on/off by observing whether the viewfinder interface of the electronic device that is recording video includes the first control.
In another possible design manner of the first aspect, in response to the third operation of the preset function switch by the user, the electronic device may start other cameras except for the first camera of the plurality of cameras, but the electronic device may not display the other cameras to collect images on the first interface.
Generally, in the process of recording video by an electronic device, only one camera is turned on to collect images. In this way, in the process of recording video, if the electronic device is to switch the preview camera from the first camera to the second camera, a certain time is required for starting the second camera, and a short-time (such as 1 second) black screen or blank may appear on the view finding interface, which affects the user experience.
In order to realize the noninductive switching of the cameras in the process of recording the video by the electronic equipment, the electronic equipment can start the second camera in advance. Specifically, the electronic device may start other cameras except for the first camera among the plurality of cameras in advance.
The electronic equipment starts the other cameras in advance. Thus, no matter which camera is used by the electronic device in a switching way, a short-time (such as 1 second) black screen or blank of the view finding interface can be avoided because a certain time is needed for starting the camera. By adopting the scheme, the noninductive switching of the camera can be realized in the video recording process of the electronic equipment, and the shooting experience of a user can be improved.
In another possible design manner of the first aspect, after the electronic device starts recording the video, if the preset function of the electronic device is turned on, the electronic device may switch the camera in the process of recording the video in response to the first operation. However, after the electronic device starts recording the video, if the preset function of the electronic device is not yet turned on, the electronic device cannot switch the camera during the process of recording the video in response to the first operation.
Specifically, the electronic device may display the fourth interface before the electronic device displays the first interface. The fourth interface is a view finding interface of the electronic device for recording video, and the fifth interface comprises a start recording button and an image collected by the first camera, wherein the start recording button is used for triggering the electronic device to start recording video.
The electronic device displaying the first interface may include: and responding to the click operation of the start recording button by a user, and if the preset function of the electronic equipment is started, displaying the first interface comprising a first control by the electronic equipment, wherein the first control is used for triggering the electronic equipment to switch to use the second camera. The preset function is a function of switching a camera in the video recording process, and the setting interface or the notification bar of the electronic equipment comprises a preset function switch for switching on or off the preset function.
In this design, the electronic device may display the first control on the viewing interface of the recorded video in response to a user operation to start recording the video. Therefore, clicking operation of the user on the first control can be received, and the camera is switched, so that the service of switching the camera in the video recording process is provided for the user.
In another possible design manner of the first aspect, in response to the clicking operation of the start recording button by the user, if the preset function of the electronic device is started, the electronic device may start other cameras except for the first camera of the plurality of cameras, but the first interface does not display the other cameras to collect images. Wherein the other cameras comprise a second camera.
The electronic equipment starts the other cameras in advance. Thus, no matter which camera is used by the electronic device in a switching way, a short-time (such as 1 second) black screen or blank of the view finding interface can be avoided because a certain time is needed for starting the camera. By adopting the scheme, the noninductive switching of the camera can be realized in the video recording process of the electronic equipment, and the shooting experience of a user can be improved.
In another possible design manner of the first aspect, in order to reduce power consumption of the electronic device, the electronic device may not start the plurality of cameras in the electronic device in advance, but start the second camera in response to the first operation of the first interface by the user. Thus, although a short-time (e.g., 1 second) black screen or blank space may appear on the viewfinder interface during the process of switching the cameras, the power consumption of the electronic device can be reduced compared with the scheme of starting a plurality of cameras in advance.
In another possible design manner of the first aspect, after the electronic device switches the first preview image in the first interface to the second preview image acquired by the second camera in response to the first operation, the method of the embodiment of the present application may further include: and responding to a fourth operation of a user on a preset function switch, and closing the first camera by the electronic equipment. In this way, the power consumption of the electronic device can be reduced.
In another possible design manner of the first aspect, the electronic device may switch the camera at least twice during one video capturing process. For example, after the electronic device switches the preview camera from the first camera to the second camera, the electronic device may switch the preview camera from the second camera to the third camera.
Specifically, the method of the embodiment of the application can include: the electronic equipment displays a first interface; the electronic equipment receives a first operation of a user on a first interface, wherein the first operation is used for triggering the electronic equipment to switch to use a second camera in the plurality of cameras; responding to the first operation, the electronic equipment switches a first preview image in the first interface into a second preview image acquired by the second camera; the electronic device receives a first operation (such as clicking operation of a third control corresponding to a third camera in the plurality of second controls) of the first interface by a user again, where the first operation is used to trigger the electronic device to switch to use the third camera in the plurality of cameras; responding to the first operation, the electronic equipment switches the second preview image in the first interface into a third preview image acquired by a third camera; the electronic equipment receives a second operation of the user on the first interface, and the second operation is used for triggering the electronic equipment to stop recording videos. The electronic device can generate a second video file. The second video file includes a first video stream including a plurality of frames of first preview images, a second video stream including a plurality of frames of second preview images, and a third video stream including a plurality of frames of third preview images.
In a second aspect, an embodiment of the present application provides an electronic device that includes a display screen, a plurality of cameras, a memory, and one or more processors. The display screen, the plurality of cameras, the memory, and the processor are coupled. The cameras are used for acquiring images. The display screen is used for displaying images generated by the processor and images acquired by the cameras. The memory is used to store computer program code, which includes computer instructions.
Wherein the computer instructions, when executed by the processor, cause the electronic device to: displaying a first interface; the first interface is a view finding interface of the video being recorded by the electronic equipment, and comprises first preview images collected by a first camera in the plurality of cameras; receiving a first operation of a user on a first interface; the first operation is used for triggering the electronic equipment to switch to use a second camera in the plurality of cameras, and the second camera is different from the first camera; responding to the first operation, displaying a second interface, wherein the second interface is a framing interface of the video being recorded by the electronic equipment, and comprises a second preview image acquired by a second camera; receiving a second operation of a user on a second interface, wherein the second operation is used for triggering the electronic equipment to stop recording video; a first video file is generated, the first video file comprising a first video stream comprising a plurality of frames of first preview images and a second video stream comprising a plurality of frames of second preview images.
In one possible design manner of the second aspect, the first interface includes a first control for triggering the electronic device to switch to use the second camera; the first operation is a click operation of the first control by the user.
In another possible design manner of the second aspect, the first camera is a front camera of the electronic device, and the second camera is a rear camera of the electronic device. Or, the first camera is a rear camera of the electronic device, and the second camera is a front camera of the electronic device.
In another possible design manner of the second aspect, the plurality of cameras include a front camera and a rear camera of a plurality of types; the type of the camera at least comprises: the camera comprises a main camera, a wide-angle camera and a long-focus camera; the first camera and the second camera are any two cameras in the plurality of cameras, and the first camera is different from the second camera.
In another possible design manner of the second aspect, each of the first interface and the second interface includes a plurality of second controls, where each second control corresponds to one of the plurality of cameras, and is configured to trigger the electronic device to switch to use the corresponding camera.
The plurality of second controls comprise a first control, the first control is used for triggering the electronic equipment to switch to use the second camera, and the first operation is click operation of the first control by a user.
In another possible design manner of the second aspect, in the first interface, the second control corresponding to the first camera is in a first display state, and the second controls corresponding to the other cameras are in a second display state; in the second interface, the second control corresponding to the second camera is in the first display state, and the second controls corresponding to the other cameras are in the second display state.
The camera corresponding to the second control in the first display state is a preview camera of the electronic equipment; the camera corresponding to the second control in the second display state is not the preview camera.
In another possible design of the second aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: displaying a third interface; the third interface is a view finding interface of the video being recorded by the electronic equipment, the third interface comprises a first preview image acquired by the first camera, and the third interface also comprises a third control used for triggering the electronic equipment to display a plurality of second controls; and responding to clicking operation of the third control by a user, and displaying a first interface comprising a plurality of second controls.
In another possible design of the second aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: displaying a fourth interface; the fourth interface is a view finding interface for recording video of the electronic equipment, and comprises a start recording button which is used for triggering the electronic equipment to start recording video; responding to clicking operation of a user on a start recording button, starting a first camera, and displaying a fifth interface comprising a first preview image acquired by the first camera; the fifth interface comprises a preset function switch, wherein the preset function switch is used for triggering the electronic equipment to start or close a preset function, and the preset function is a function of switching a camera in the video recording process; receiving a third operation of a user on a preset function switch, wherein the third operation is used for triggering the electronic equipment to start a preset function; and responding to a third operation of a user on a preset function switch, displaying a first interface comprising a first control, wherein the first control is used for triggering the electronic equipment to switch to use the second camera.
In another possible design of the second aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: and responding to a third operation of a user on a preset function switch, starting other cameras except the first camera in the plurality of cameras, wherein the first interface does not display the other cameras to acquire images. Wherein the other cameras comprise a second camera.
In another possible design of the second aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: displaying a fourth interface; the fourth interface is a view finding interface for recording video of the electronic equipment, and comprises a start recording button and an image acquired by the first camera, wherein the start recording button is used for triggering the electronic equipment to start recording video; and responding to clicking operation of a start recording button by a user, and if a preset function of the electronic equipment is started, displaying a first interface comprising a first control, wherein the first control is used for triggering the electronic equipment to switch to use the second camera. The preset function is a function of switching the camera in the video recording process, and the setting interface or the notification bar of the electronic equipment comprises a preset function switch for switching on or switching off the preset function.
In another possible design of the second aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: and responding to the click operation of the start recording button by a user, if the preset function of the electronic equipment is started, starting other cameras except the first camera in the plurality of cameras, wherein the first interface does not display the other cameras to acquire images. Wherein the other cameras comprise a second camera.
In another possible design of the second aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: and responding to the first operation of the user on the first interface, and starting the second camera.
In another possible design of the second aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: and responding to a fourth operation of a user on a preset function switch, and closing the first camera by the electronic equipment.
It may be appreciated that the advantages achieved by the electronic device according to the second aspect and any possible design manner thereof may refer to the advantages as in the first aspect and any possible design manner thereof, and are not described herein.
In a third aspect, an embodiment of the present application provides a method for capturing video, which may be applied to an electronic device including a plurality of cameras. The electronic device may display the first interface. The first interface is a view finding interface of a video being recorded by the electronic equipment, and comprises a first preview image collected by a first camera in the plurality of cameras. The electronic device may then display a second interface in response to a first operation of the user at the first interface. The first operation is used for triggering the electronic equipment to pause recording video, the second interface is an interface for the electronic equipment to pause recording video, the second interface comprises a second preview image acquired by the first camera, the second interface further comprises a first control, the first control is used for triggering the electronic equipment to use a second camera in the plurality of cameras, and the second camera is different from the first camera. And then, the electronic equipment responds to the click operation of the user on the first control, switches the second preview image in the second interface into a third preview image acquired by the second camera, and continues recording the video. Wherein the second interface further comprises a stop recording button. Finally, the electronic equipment responds to the click operation of a user on a record stopping button to stop recording the video; a first video file is generated. The first video file comprises a first video stream and a second video stream, wherein the first video stream comprises a plurality of frames of first preview images, and the second video stream comprises a plurality of frames of third preview images.
By adopting the method provided by the embodiment of the application, the electronic equipment responds to the first operation of the user on the first interface, can pause recording video, but can not generate video files. And, the electronic device can continue recording video at any time in response to the operation of the user. In the process of suspending video recording, the electronic equipment can receive the operation of the user and switch the camera. For example, in response to a first operation of the pause record button by the user, the electronic device may display a second interface including a first control. The first control is used for triggering the electronic device to use a second camera of the plurality of cameras. And then, responding to clicking operation of the user on the first control, switching the second preview image in the second interface into a third preview image acquired by the second camera by the electronic equipment, and continuing recording the video.
In summary, by adopting the method of the embodiment of the application, the electronic device can switch the camera in the process of recording video. Moreover, by adopting the method, the multi-view video file can be obtained by one shooting, a plurality of temporary video files are not generated, the temporary video files are not required to be integrated, and the multi-view video file can be generated in real time for the user to view at any time in response to the click operation of the record stop button by the user. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
Further, by adopting the method of the embodiment of the application, the duration of video recording of the electronic equipment is not limited. That is, the electronic device executes the method of the embodiment of the application, and can record video files with any time length according to the requirement of the user.
In one possible design manner of the third aspect, the first interface includes a pause recording button, and the first operation is a user clicking operation on the pause recording button.
In this design, the electronic device may display a pause recording button at the viewfinder interface (i.e., the first interface) where video is being recorded. Generally, the viewfinder interface in which the electronic device is recording video includes a stop recording button. The pause record button is different from the stop record button. In response to a user clicking an operation of the stop recording button, the electronic device may stop recording video and generate a video file. However, in response to a user's click of a pause recording button, the electronic device may pause recording video, but may not generate a video file.
In one possible design manner of the third aspect, the electronic device may switch the second preview image in the second interface to a third preview image collected by the second camera in response to a click operation of the first control by the user; however, video is not continuously recorded. But continues to record video after receiving a second operation of the pause record button in the second interface by the user.
Specifically, the electronic device, in response to a click operation of the user on the first control, switches the second preview image in the second interface to a third preview image collected by the second camera, and continues to record the video, which may include: the electronic equipment responds to clicking operation of a user on the first control, and the second preview image in the second interface is switched to a fourth preview image acquired by the second camera; and the electronic equipment responds to the second operation of the user on the second interface, displays a third preview image acquired by the second camera on the second interface, and continues to record the video. The second operation is used to trigger the electronic device to continue recording video.
It should be understood that, in the embodiment of the present application, in response to a click operation of a user on a first control, the electronic device may first display a second preview image acquired by a first camera in a second interface and switch the second preview image to a fourth preview image acquired by the second camera, that is, switch the cameras. However, at this point the electronic device does not begin recording video. That is, the electronic device does not cache the fourth preview image captured by the second camera. In this way, a period of time can be set aside for the user to observe and adjust the shooting angle of the second camera, and adjust the gesture (i.e. swing) of the shooting object. After the user adjusts the shooting view angle and the gesture, a second operation can be input to the pause recording button in the second interface. The electronic device may display a third preview image acquired by the second camera on the second interface, and continue recording the video. That is, the electronic device may buffer the third preview image captured by the second camera.
In another possible design of the third aspect, the second interface further includes a pause record button. The second operation is a click operation of the pause recording button by the user.
In another possible design manner of the third aspect, the first camera is a front camera of the electronic device, and the second camera is a rear camera of the electronic device. Or, the first camera is a rear camera of the electronic device, and the second camera is a front camera of the electronic device.
That is, by adopting the method of the embodiment of the application, the switching between the front camera and the rear camera can be performed in the process of recording the video by the electronic equipment.
In another possible design manner of the third aspect, the electronic device may activate the second camera in response to a first operation of the pause recording button by a user.
Wherein, although the electronic device responds to the first operation of the user on the first interface, the second camera is started, and the second camera can acquire images; however, at this time, the electronic device does not display the image acquired by the second camera. At this time, the first camera is used as a preview camera of the electronic device, and the electronic device displays a second preview image collected by the first camera. After the electronic equipment receives the click operation of the user on the first control, the second camera can be used as a preview camera of the electronic equipment, and the electronic equipment can display a fourth preview image or a third preview image acquired by the second camera in response to the click operation of the user on the first control.
It can be understood that, in response to the first operation of the pause recording button by the user, after the electronic device starts the second camera, in response to the click operation of the first control by the user, the electronic device can realize seamless switching from the second preview image collected by the first camera to the third preview image collected by the second camera. By adopting the design mode, seamless switching of the camera can be realized in the video recording process.
In another possible design manner of the third aspect, the electronic device may start the second camera in response to a click operation of the first control by a user. Thus, although seamless switching of the cameras cannot be achieved, the electronic device can switch the cameras when the user clicks the first control, and the electronic device can display preview images acquired by the second camera. The second camera is only activated if the electronic device has a need to display the preview image acquired by the second camera. Therefore, the power consumption caused by the operation of the second camera can be reduced from the time when the user clicks the pause recording button to the time when the user clicks the first control. In this design, power consumption of the electronic device can be reduced.
In another possible design manner of the third aspect, the electronic device may close the first camera in response to a click operation of the first control by a user. In this way, the power consumption of the electronic device can be reduced.
In another possible design manner of the third aspect, the plurality of cameras include a front camera and a rear camera of multiple types; the type of the camera at least comprises: the camera comprises a main camera, a wide-angle camera and a long-focus camera; the first camera and the second camera are any two cameras of the plurality of cameras.
That is, by adopting the method of the application, the switching of any camera in the electronic equipment can be switched in the process of recording video by the electronic equipment, and the any camera can be a front camera or a rear camera of various types in the electronic equipment.
In another possible design manner of the third aspect, the second interface includes a plurality of second controls, where each second control corresponds to one of the plurality of cameras, and is configured to trigger the electronic device to switch to use the corresponding camera.
The first control is any one of a plurality of second controls, and the first control is used for triggering the electronic equipment to use the second camera.
For example, take an example in which the electronic device includes a front main camera, a front wide-angle camera, a front tele camera, a rear main camera, a rear wide-angle camera, and a rear tele camera. The plurality of second controls may include a "pre-panning" control, a "pre-tele" control, a "pre-wide" control, a "post-panning" control, a "post-tele" control, and a "post-wide" control. The front-facing main shooting control corresponds to a front-facing main camera of the electronic equipment, the rear-facing main shooting control corresponds to a rear-facing main camera of the electronic equipment, the front-facing long-focus control corresponds to a front-facing long-focus camera of the electronic equipment, the front-facing wide-angle control corresponds to a front-facing wide-angle camera of the electronic equipment, the rear-facing long-focus control corresponds to a rear-facing long-focus camera of the electronic equipment and is used for triggering the electronic equipment to display preview images acquired by the rear-facing long-focus camera, and the rear-facing wide-angle control corresponds to a rear-facing wide-angle camera of the electronic equipment.
In another possible design manner of the third aspect, the electronic device displays, in response to a first operation of the user on the first interface, a second interface, including: the electronic equipment responds to a first operation of a user on the first interface and displays a third interface; the third interface is a view finding interface for recording video of the electronic equipment, and comprises a second preview image acquired by the first camera and a third control; and the electronic equipment responds to the click operation of the user on the third control, and the electronic equipment displays a second interface comprising a plurality of second controls.
In another possible design manner of the third aspect, the method of the present application may further include: and the electronic equipment responds to the first operation of the user on the first interface, and other cameras except the first camera in the plurality of cameras are started. Alternatively, the method of the present application may further comprise: and the electronic equipment responds to the click operation of the user on the first control, and other cameras except the first camera in the plurality of cameras are started.
In another possible design manner of the third aspect, the method of the present application may further include: and the electronic equipment responds to click operation of the user on the first control, and closes other cameras except the second camera in the cameras. In this way, the power consumption of the electronic device can be reduced.
In another possible design manner of the third aspect, before the electronic device displays the first interface, the method of the present application may further include: the electronic equipment displays a fourth interface; the fourth interface is a view finding interface for recording video of the electronic equipment, and comprises a start recording button and an image collected by the first camera, wherein the start recording button is used for triggering the electronic equipment to start recording video.
The electronic device displaying the first interface may include: and responding to the click operation of the start recording button by a user, and if the preset function of the electronic equipment is started, displaying a first interface comprising a pause recording button by the electronic equipment. The preset function is a function of switching the camera in the video recording process, and the setting interface or the notification bar of the electronic equipment comprises a preset function switch for switching on or switching off the preset function.
In another possible design manner of the third aspect, before the electronic device displays the first interface, the method of the present application may further include: the electronic equipment displays a fifth interface; and responding to clicking operation of a recording start button in the fifth interface by a user, and displaying a sixth interface by the electronic equipment. The fifth interface is a view finding interface for recording video of the electronic equipment, and the fifth interface comprises a start recording button for triggering the electronic equipment to start recording video. The sixth interface comprises a first preview image acquired by the first camera, and further comprises a preset function switch, wherein the preset function switch is used for triggering the electronic equipment to start or close a preset function, and the preset function is a function of switching the camera in the video recording process.
The electronic device displays a first interface, including: in response to a third operation of the preset function switch by the user, the electronic device displays a first interface including a pause recording button.
In a fourth aspect, an embodiment of the present application provides an electronic device that includes a display screen, a plurality of cameras, a memory, and one or more processors. The display screen, the plurality of cameras, the memory, and the processor are coupled. The plurality of cameras are used for acquiring images, the display screen is used for displaying images generated by the processor, and the images acquired by the plurality of cameras, the memory is used for storing computer program codes, and the computer program codes comprise computer instructions.
The computer instructions, when executed by the processor, cause the electronic device to: displaying a first interface; the first interface is a view finding interface of the video being recorded by the electronic equipment, and comprises first preview images collected by a first camera in the plurality of cameras; responding to a first operation of a user on the first interface, and displaying a second interface; the first operation is used for triggering the electronic equipment to pause recording of the video, the second interface is an interface for the electronic equipment to pause recording of the video, the second interface comprises a second preview image acquired by the first camera, the second interface also comprises a first control, the first control is used for triggering the electronic equipment to use a second camera in the plurality of cameras, and the second camera is different from the first camera; responding to clicking operation of a user on the first control, switching a second preview image in the second interface into a third preview image acquired by the second camera, and continuing recording the video; wherein the second interface further comprises a stop recording button; responding to the click operation of a user on a record stopping button, and stopping recording the video; generating a first video file; the first video file comprises a first video stream and a second video stream, wherein the first video stream comprises a plurality of frames of first preview images, and the second video stream comprises a plurality of frames of third preview images.
In one possible design manner of the fourth aspect, the first interface includes a pause recording button, and the first operation is a click operation of the pause recording button by a user.
In one possible design of the fourth aspect, the computer instructions, when executed by the processor, cause the electronic device to further: responding to clicking operation of a user on the first control, and switching a second preview image in the second interface into a fourth preview image acquired by the second camera; wherein the second interface further comprises a pause record button; and responding to the second operation of the user on the second interface, displaying a third preview image acquired by the second camera on the second interface, and continuing to record the video. The second operation is used to trigger the electronic device to continue recording video.
In another possible design manner of the fourth aspect, the second interface further includes a pause recording button, and the second operation is a click operation of the pause recording button by a user.
In another possible design manner of the fourth aspect, the first camera is a front camera of the electronic device, and the second camera is a rear camera of the electronic device; or, the first camera is a rear camera of the electronic device, and the second camera is a front camera of the electronic device.
In another possible design of the fourth aspect, the computer instructions, when executed by the processor, cause the electronic device to further: responding to a first operation of a user on a first interface, and starting a second camera; or, in response to the click operation of the first control by the user, starting the second camera.
In another possible design of the fourth aspect, the computer instructions, when executed by the processor, cause the electronic device to further: and closing the first camera in response to clicking operation of the user on the first control.
In another possible design manner of the fourth aspect, the plurality of cameras include a front camera and a rear camera of a plurality of types; the type of the camera at least comprises: the camera comprises a main camera, a wide-angle camera and a long-focus camera; the first camera and the second camera are any two cameras of the plurality of cameras.
In another possible design manner of the fourth aspect, the second interface includes a plurality of second controls, where each second control corresponds to one of the plurality of cameras, and is configured to trigger the electronic device to switch to use the corresponding camera. The first control is any one of a plurality of second controls, and the first control is used for triggering the electronic equipment to use the second camera.
In another possible design of the fourth aspect, the computer instructions, when executed by the processor, cause the electronic device to further: responding to a first operation of a user on the first interface, and displaying a third interface; the third interface is a view finding interface for recording video of the electronic equipment, and comprises a second preview image acquired by the first camera and a third control; in response to a click operation of the third control by the user, the electronic device displays a second interface including a plurality of second controls.
In another possible design of the fourth aspect, the computer instructions, when executed by the processor, cause the electronic device to further: responding to a first operation of a user on a first interface, and starting other cameras except the first camera in the plurality of cameras; or in response to the click operation of the user on the first control, starting other cameras except the first camera in the plurality of cameras.
In another possible design of the fourth aspect, the computer instructions, when executed by the processor, cause the electronic device to further: and closing other cameras except the second camera in the plurality of cameras in response to clicking operation of the first control by the user.
In another possible design of the fourth aspect, the computer instructions, when executed by the processor, cause the electronic device to further: displaying a fourth interface; the fourth interface is a view finding interface for recording video of the electronic equipment, and comprises a start recording button and an image acquired by the first camera, wherein the start recording button is used for triggering the electronic equipment to start recording video; and responding to the click operation of the user on the start recording button, and if the preset function of the electronic equipment is started, displaying a first interface comprising a pause recording button. The preset function is a function of switching the camera in the video recording process, and the setting interface or the notification bar of the electronic equipment comprises a preset function switch for switching on or switching off the preset function.
In another possible design of the fourth aspect, the computer instructions, when executed by the processor, cause the electronic device to further: displaying a fifth interface; the fifth interface is a view finding interface for recording video of the electronic equipment, and comprises a start recording button for triggering the electronic equipment to start recording video; responding to clicking operation of a start recording button by a user, and displaying a sixth interface; the sixth interface comprises a first preview image acquired by the first camera and a preset function switch, wherein the preset function switch is used for triggering the electronic equipment to start or close a preset function, and the preset function is a function of switching the camera in the video recording process; in response to a third operation of the preset function switch by the user, a first interface including a pause recording button is displayed.
It may be appreciated that the advantages achieved by the electronic device according to the fourth aspect and any possible design manner thereof may refer to the advantages according to the third aspect and any possible design manner thereof, and are not described herein.
In a fifth aspect, an embodiment of the present application provides a photographing control method, which may be applied to an electronic device including a camera of the electronic device.
Wherein the electronic device may display the first interface. The first interface is a view finding interface for photographing or video recording of the electronic equipment. The first interface comprises a first preview image acquired by a first camera in the cameras of the electronic equipment. Then, in response to a first operation of a user on the first interface, the electronic device may display a plurality of first controls on the first interface, where each first control corresponds to one of the cameras of the electronic device and is used to trigger the electronic device to use the corresponding camera. Finally, in response to clicking operation of a user on a second control in the plurality of first controls, the electronic device can switch the first preview image in the first interface into a second preview image acquired by a second camera, wherein the second camera is a camera corresponding to the second control in the cameras of the electronic device.
In the embodiment of the application, when the electronic equipment displays the view finding interface (namely the first interface) for photographing or video recording, the first operation of the user on the first interface can be received. The electronic device may then display a plurality of first controls on the first interface in response to the first operation. Each first control corresponds to one camera in the mobile phone. Thus, the electronic device can receive clicking operation of any one of the first controls (such as the second control) by the user, and switch to use the camera in the electronic device. By adopting the method provided by the embodiment of the application, the camera can be dynamically selected according to the requirements of the user during photographing or video recording, so that the photographing requirements of the user in different scenes can be met, and the photographing experience of the user can be improved.
In a possible design manner of the fifth aspect, the first interface includes a camera switching option, where the camera switching option is used to trigger the electronic device to switch the front camera and the rear camera of the electronic device. The first operation is a click operation of the camera switching option by the user. That is, in response to a click operation of the camera switching option by the user, the electronic device may display a plurality of first controls on the first interface.
In one possible design manner of the fifth aspect, each of the plurality of first controls displays type indication information of a corresponding camera. The type indication information is used for indicating the type of the camera corresponding to the camera and indicating whether the type of the camera corresponding to the camera is a front camera or a rear camera. Wherein, the camera type includes at least: the camera comprises a main camera, a long-focus camera, a wide-angle camera and a super-wide-angle camera.
For example, the type of instruction information, "front main shot", "front tele", "front wide", "rear main shot", "rear tele", "rear wide" is displayed on each of the plurality of first controls, respectively.
In another possible design manner of the fifth aspect, proxy information of the corresponding camera is displayed on each of the first controls; the proxy information is used for indicating that the corresponding camera is a front camera or a rear camera, and also comprises a number corresponding to the camera. The numbers corresponding to the cameras comprise camera identifications corresponding to the cameras.
In another possible design manner of the fifth aspect, each first control is a plurality of preview windows, and each preview window displays a preview image collected by a corresponding camera. It is understood that the preview images collected by the corresponding cameras are displayed on each first control, so that the shooting effect, the shooting view angle and the like of each camera can be intuitively displayed for a user, and the user can select the cameras meeting the user requirements, such as the shooting effect, the shooting view angle and the like, from the cameras. Thus, the shooting experience of the user can be improved.
In another possible design manner of the fifth aspect, the method may further include: and responding to the click operation of the user on the second control, and starting the second camera by the electronic equipment.
The electronic device does not need to display a preview image of the camera in the first control when the first control displays the type indication information or the proxy information of the camera. Therefore, in order to reduce the power consumption of the electronic device, the electronic device may not start other cameras except the first camera in the cameras of the electronic device in response to the click operation of the camera switching option by the user; but rather activates the second camera in response to a user click on the second control. In this way, the power consumption of the electronic device can be reduced.
In another possible design manner of the fifth aspect, the method may further include: in response to the first operation, the electronic device starts other cameras except the first camera in the cameras of the electronic device.
Under the condition that the first control displays the preview image acquired by the camera, the electronic device responds to clicking operation of a user on a camera switching option, and the electronic device can start other cameras except the first camera in the cameras. In this way, the electronic device can display the preview image collected by the corresponding camera in each first control.
In another possible design manner of the fifth aspect, the method may further include: and responding to clicking operation of the user on the second control, and closing other cameras except the second camera in the cameras of the electronic equipment by the electronic equipment.
It should be understood that after the electronic device receives the click operation of the second control by the user, it can be clear that the user wants to use the second camera. At this time, the other cameras except the second camera in the electronic device are turned off, so that the power consumption of the electronic device can be reduced.
In another possible design manner of the fifth aspect, the plurality of first controls may include a first logical control and a second logical control. The first logic control is used for triggering the electronic equipment to use the first logic camera, and the second logic control is used for triggering the electronic equipment to use the second logic camera. The first logical camera and the second logical camera are realized under different zoom magnifications of the same physical camera of the electronic equipment, and the zoom magnifications are optical zoom magnifications or digital zoom magnifications.
It should be noted that, in one case of the embodiment of the present application, each of the plurality of first controls may correspond to one physical camera of the electronic device, such as a front main camera, a front tele camera, a rear main camera, a rear tele camera, and the like.
In another case of the embodiment of the present application, at least two first controls may correspond to the same physical camera in the plurality of first controls, where the at least two first controls correspond to at least two logical cameras of the electronic device, for example, the first logical control corresponds to the first logical camera, and the second logical control corresponds to the second logical camera. The at least two logical cameras (e.g., a first logical camera and a second logical camera) are essentially one physical camera. The difference is that the zoom magnification of the at least two logical cameras is different. For example, the first logical camera may be implemented by a rear-mounted tele camera of the electronic device at a zoom magnification of 1.0x, and the second logical camera may be implemented by a rear-mounted tele camera of the electronic device at a zoom magnification of 2.0 x.
In another possible design manner of the fifth aspect, the first logic control and the second logic control display corresponding zoom magnifications. Therefore, a user can conveniently select the corresponding logic camera according to the zoom multiplying power.
In another possible design manner of the fifth aspect, the displaying, by the electronic device, a plurality of first controls on the first interface may include: and the electronic equipment displays the first controls corresponding to the first cameras (namely the second controls) on the first interface in a first display mode, and displays the first controls corresponding to other cameras except the first cameras in the cameras of the electronic equipment in a second display mode.
Wherein the first display mode is different from the second display mode; displaying a first control corresponding to the first camera in a first display mode, wherein the first control is used for indicating that the first camera is a preview camera of the electronic equipment, and displaying a preview image acquired by the first camera on a first interface; the other cameras except the first camera in the cameras of the electronic equipment comprise a second camera.
It should be understood that the electronic device displays the first control corresponding to the preview camera and the first control corresponding to the non-preview camera in two different display modes, so that a user can conveniently and quickly identify which camera the preview camera of the electronic device is.
In another possible design manner of the fifth aspect, the method of the present application may further include: and responding to clicking operation of a second control in the plurality of first controls by a user, displaying the first controls corresponding to the second cameras (namely the second control) by the electronic equipment in a first display mode, and displaying the first controls corresponding to other cameras except the second cameras in the cameras of the electronic equipment in a second display mode.
The first control corresponding to the second camera is displayed in a first display mode and used for indicating that the second camera is a preview camera of the electronic equipment, and the first interface displays a preview image acquired by the second camera; the other cameras except the second camera in the cameras of the electronic equipment comprise a first camera.
It should be appreciated that, after the electronic device switches the preview camera from the first camera to the second camera, the switched preview camera may be displayed in the first display manner. Therefore, a user can conveniently and quickly identify which camera is the preview camera of the electronic device.
In another possible design manner of the fifth aspect, the displaying, by the electronic device, a plurality of first controls on the first interface may include: the electronic equipment displays a plurality of first controls at positions for displaying camera switching options in a first interface; alternatively, the electronic device displays a plurality of first controls in a viewfinder of the first interface. This design gives two possible positions for displaying the plurality of first controls in the viewing interface of the electronic device.
In another possible design manner of the fifth aspect, after the electronic device displays the plurality of first controls on the first interface in response to the clicking operation of the camera switching option by the user, the method may further include: and responding to clicking operation of the camera switching option by a user, and hiding a plurality of first controls of the first interface by the electronic equipment. That is, the electronic device may display a plurality of first controls on the first interface in response to a one-click operation of the camera switching option by the user. And the electronic equipment responds to the clicking operation of the user on the camera switching option again, and can hide a plurality of first controls in the first interface. The electronic device may display or hide the plurality of first controls on the first interface according to a user's needs.
In another possible implementation manner of the fifth aspect, the displaying, by the electronic device, a plurality of first controls on the first interface in response to a click operation of the camera switching option by the user may include: and responding to clicking operation of the camera switching option by a user, and if the preset function of the electronic equipment is started, displaying a plurality of first controls on a first interface by the electronic equipment.
The preset function is a function of switching multiple cameras on a shooting or video finding interface; the setting interface or notification bar of the electronic device includes a preset function switch for turning on or off a preset function.
In a sixth aspect, an embodiment of the application provides an electronic device comprising a display screen, a camera of the electronic device, a memory, and one or more processors, the display screen, the plurality of cameras, the memory, and the processors coupled. The camera of the electronic equipment is used for collecting images. The display screen is used for displaying images generated by the processor and images acquired by the cameras. The memory is for storing computer program code, the computer program code comprising computer instructions.
Wherein the computer instructions, when executed by the processor, cause the electronic device to: displaying a first interface, wherein the first interface is a view finding interface for photographing or video recording of electronic equipment, and comprises a first preview image acquired by a first camera of the electronic equipment; responding to a first operation of a user on a first interface, displaying a plurality of first controls on the first interface, wherein each first control corresponds to one camera of the electronic equipment and is used for triggering the electronic equipment to use the corresponding camera; and responding to clicking operation of a user on a second control in the plurality of first controls, switching the first preview image in the first interface into a second preview image acquired by a second camera, wherein the second camera is a camera corresponding to the second control.
In a possible design manner of the sixth aspect, the first interface includes a camera switching option, where the camera switching option is used to trigger the electronic device to switch the front camera and the rear camera of the electronic device. The first operation is a click operation of the camera switching option by the user.
In another possible design manner of the sixth aspect, the type indication information of the corresponding camera is displayed on each first control; the type indication information is used for indicating the type of the camera corresponding to the camera and indicating whether the type of the camera corresponding to the camera is a front camera or a rear camera.
Wherein, the camera type includes at least: the camera comprises a main camera, a long-focus camera, a wide-angle camera and a super-wide-angle camera.
In another possible design manner of the sixth aspect, proxy information of the corresponding camera is displayed on each of the first controls; the proxy information is used for indicating that the corresponding camera is a front camera or a rear camera, and also comprises a number corresponding to the camera.
The numbers corresponding to the cameras comprise camera identifications corresponding to the cameras.
In another possible design manner of the sixth aspect, the plurality of first controls are a plurality of preview windows, and each preview window displays a preview image collected by a corresponding camera.
In another possible design of the sixth aspect, the processor, when executing the computer instructions, causes the electronic device to further: and responding to clicking operation of the user on the second control, and starting the second camera.
In another possible design of the sixth aspect, the processor, when executing the computer instructions, causes the electronic device to further: and responding to the first operation, and starting other cameras except the first camera in the cameras of the electronic equipment.
In another possible design of the sixth aspect, the processor, when executing the computer instructions, causes the electronic device to further: and responding to clicking operation of the user on the second control, and closing other cameras except the second camera in the cameras of the electronic equipment.
In another possible design manner of the sixth aspect, the plurality of first controls includes a first logic control and a second logic control, where the first logic control is used to trigger the electronic device to use the first logic camera, and the second logic control is used to trigger the electronic device to use the second logic camera.
The first logical camera and the second logical camera are realized under different zoom multiplying factors by the same physical camera of the electronic equipment. The zoom magnification is an optical zoom magnification or a digital zoom magnification.
In another possible design manner of the sixth aspect, the first logic control and the second logic control display corresponding zoom magnifications.
In another possible design of the sixth aspect, the processor, when executing the computer instructions, causes the electronic device to further: and displaying the first controls corresponding to the first cameras on the first interface in a first display mode, and displaying the first controls corresponding to other cameras except the first cameras in the cameras of the electronic equipment in a second display mode.
Wherein the first display mode is different from the second display mode; displaying a first control corresponding to the first camera in a first display mode, wherein the first control is used for indicating that the first camera is a preview camera of the electronic equipment, and displaying a preview image acquired by the first camera on a first interface; the other cameras except the first camera in the cameras of the electronic equipment comprise a second camera.
In another possible design of the sixth aspect, the processor, when executing the computer instructions, causes the electronic device to further: and responding to clicking operation of a user on a second control in the plurality of first controls, displaying the first control corresponding to the second camera in a first display mode, and displaying the first controls corresponding to other cameras except the second camera in the cameras of the electronic equipment in a second display mode.
The first control corresponding to the second camera is displayed in a first display mode and used for indicating that the second camera is a preview camera of the electronic equipment, and the first interface displays a preview image acquired by the second camera; the other cameras except the second camera in the cameras of the electronic equipment comprise a first camera.
In another possible design of the sixth aspect, the processor, when executing the computer instructions, causes the electronic device to further: displaying a plurality of first controls in the first interface at positions for displaying camera switching options; alternatively, a plurality of first controls are displayed in a viewfinder of the first interface.
In another possible design of the sixth aspect, the processor, when executing the computer instructions, causes the electronic device to further: and hiding the plurality of first controls of the first interface in response to clicking operation of the camera switching option by the user.
In another possible design of the sixth aspect, the processor, when executing the computer instructions, causes the electronic device to further: and responding to clicking operation of the camera switching option by a user, and if the preset function of the electronic equipment is started, displaying a plurality of first controls on a first interface.
The preset function is a function of switching multiple cameras on a shooting or video finding interface; the setting interface or notification bar of the electronic device includes a preset function switch for turning on or off a preset function.
It may be appreciated that the above-mentioned sixth aspect and any possible design manner of the electronic device may achieve the beneficial effects, which are referred to as beneficial effects in the fifth aspect and any possible design manner of the electronic device, and are not described herein.
In a seventh aspect, the present application provides a method of capturing video, the method being applicable to an electronic device comprising a plurality of cameras. In the method, the electronic device may display a first interface. The first interface is a viewing interface of the electronic device being recorded, and includes a first viewing frame and a second viewing frame. The first view finding frame displays a first preview image collected by a first camera in the plurality of cameras, and the second view finding frame displays a second preview image collected by a second camera in the plurality of cameras.
The electronic device may then receive a first operation of the first interface by the user, the first operation being for triggering the electronic device to stop recording video. In response to the first operation, the electronic device may display a second interface for previewing the plurality of first video files. The plurality of first video files includes: a video file comprising a first video stream, a video file comprising a second video stream, and a video file comprising the first video stream and the second video stream. Wherein the first video stream comprises a plurality of frames of first preview images and the second video stream comprises a plurality of frames of second preview images.
Some of the first video files include video streams in only one view box, while others may include video streams in multiple view boxes. The plurality of first video files are temporary video files generated by the electronic device, and the electronic device does not store all video files in the plurality of first video files. The user may select the first video file (i.e., temporary video file) to be saved as desired.
According to the method, the electronic equipment can store the temporary video file selected by the user according to the user demand in the multi-view video mode, and the shooting experience of the user can be improved.
In one possible design manner of the seventh aspect, in the present application, the electronic device may receive a selection operation of a second video file from the plurality of first video files by a user. In response to the selection operation, the electronic device may save the second video file selected by the user.
In another possible design manner of the seventh aspect, the first camera is a front camera of the electronic device, and the second camera is a rear camera of the electronic device. Or, the first camera is a rear camera of the electronic device, and the second camera is a front camera of the electronic device.
In other words, by adopting the method of the application, the front camera and the rear camera can be used for carrying out the multi-view video recording simultaneously in the process of multi-view video recording of the electronic equipment.
In another possible design manner of the seventh aspect, the plurality of cameras includes a front camera and a rear camera of a plurality of types. The type of the camera at least comprises: the camera comprises a main camera, a wide-angle camera and a long-focus camera. The first camera and the second camera are any two cameras in the plurality of cameras, and the first camera is different from the second camera.
That is, by adopting the method of the application, various types of front cameras or rear cameras in the electronic equipment can be used for carrying out the multi-view video recording simultaneously in the process of multi-view video recording of the electronic equipment.
In another possible design manner of the seventh aspect, the electronic device may also switch the camera in any one of the viewfinder frames during the process of the multi-view video recording. For example, a camera that switches the first viewfinder is taken as an example. The electronic device may receive a second operation of the first viewfinder by the user before the electronic device receives the first operation of the first interface by the user. The second operation is used for triggering the electronic device to switch the first camera to a third camera in the plurality of cameras. In response to the second operation, the electronic device may switch the first preview image in the first interface to a third preview image captured by a third camera. The third camera is different from the first camera and the second camera.
Wherein the plurality of first video files further comprises: video files comprising a third video stream, video files comprising a first video stream and a third video stream, video files comprising a first video stream, a third video stream, and a second video stream; the third video stream includes a plurality of frames of a third preview image.
By adopting the method of the design mode, the electronic equipment can switch the camera in the process of multi-view video recording. And, once the camera is switched, the electronic equipment can generate a temporary video file so that a user can select a required video file after stopping recording. Therefore, the temporary video file selected by the user can be saved according to the user requirement, and the shooting experience of the user can be improved.
In another possible design manner of the seventh aspect, the first viewfinder includes a plurality of second controls, where each second control corresponds to one of the plurality of cameras, and is configured to trigger the electronic device to switch to use the corresponding camera.
The plurality of second controls comprise a first control, the first control is used for triggering the electronic equipment to switch to use the third camera, and the second operation is click operation of the first control by a user.
For example, take an example in which the electronic device includes a front main camera, a front wide-angle camera, a front tele camera, a rear main camera, a rear wide-angle camera, and a rear tele camera. The plurality of second controls may include a "pre-panning" control, a "pre-tele" control, a "pre-wide" control, a "post-panning" control, a "post-tele" control, and a "post-wide" control. The front-facing main shooting control corresponds to a front-facing main camera of the electronic equipment, the rear-facing main shooting control corresponds to a rear-facing main camera of the electronic equipment, the front-facing long-focus control corresponds to a front-facing long-focus camera of the electronic equipment, the front-facing wide-angle control corresponds to a front-facing wide-angle camera of the electronic equipment, the rear-facing long-focus control corresponds to a rear-facing long-focus camera of the electronic equipment and is used for triggering the electronic equipment to display preview images acquired by the rear-facing long-focus camera, and the rear-facing wide-angle control corresponds to a rear-facing wide-angle camera of the electronic equipment.
In another possible design manner of the seventh aspect, before the electronic device receives the first operation of the first interface by the user, the electronic device may receive the third operation of the first interface by the user. The third operation is for triggering the electronic device to pause the recording in the first viewfinder. In response to a third operation, the electronic device displays a third interface; the third interface is a view finding interface in which the first view finding frame pauses video recording and the second view finding frame is recording video; and in the third interface, the first view finding frame displays a fourth preview image acquired by the first camera, and the second view finding frame displays a second preview image acquired by the second camera. In response to a third operation of the user at the first interface, the electronic device may pause recording the video but may not generate the video file. And, the electronic device can continue recording video at any time in response to the operation of the user.
Specifically, the electronic device may receive a fourth operation of the user at the third interface. The fourth operation is for triggering the electronic device to continue recording video. In response to the fourth operation, the electronic device displays a fourth interface. The fourth interface is a view finding interface of the electronic equipment in video recording. And in the fourth interface, the first view finding frame displays a fifth preview image acquired by the first camera, and the second view finding frame displays a second preview image acquired by the second camera.
The electronic device receiving a first operation of a user on a first interface may include: the electronic equipment receives a first operation of a user on the fourth interface, wherein the first operation is used for triggering the electronic equipment to stop recording videos.
Wherein the plurality of first video files further comprises: video files comprising a fourth video stream comprising a first video stream and a fourth video stream comprising a first video stream, a fourth video stream and a second video stream, the fourth video stream comprising a plurality of frames of a fifth preview image.
By adopting the method of the design mode, the electronic equipment can pause the video recording process. And, each time the electronic equipment is paused, a temporary video file can be saved, so that a user can select a required video file after stopping recording. Therefore, the temporary video file selected by the user can be saved according to the user requirement, and the shooting experience of the user can be improved.
In another possible design manner of the seventh aspect, the first interface further includes a pause recording button, where the pause recording button is used to trigger the electronic device to pause recording in the first viewfinder. The third operation is a click operation of a pause record button in the first interface by the user. The third interface further includes a pause recording button, and the fourth operation is a click operation of the pause recording button in the third interface by the user.
In a possible design manner of the seventh aspect, the electronic device may further switch the camera during the pause of the video recording.
In a possible design manner of the seventh aspect, the plurality of cameras may include a physical camera and/or a logical camera of the electronic device. The logic camera is realized under different zoom magnifications of a physical camera of the electronic equipment.
For example, the above logical camera may be a rear 1.0x camera, a rear 2.0x camera, a front 3.0x camera, or the like. Wherein, 1.0x, 2.0x and 3.0x are all zoom magnifications. "3.0x" means that the zoom magnification is 3 times. "2.0x" means that the zoom magnification is 2.0 times. "1.0x" means that the zoom magnification is 1.0 times. The zoom magnification in the present application may be an optical zoom magnification or a digital zoom magnification.
In an eighth aspect, the present application provides a method of capturing video, which can be applied to an electronic device including a plurality of cameras. In the method, the electronic device may display a first interface. The first interface is a viewfinder interface of a video being recorded by the electronic device, and includes a first preview image acquired by a first camera of the plurality of cameras. Then, the electronic equipment can receive a second operation of the user on the first interface; the second operation is used for triggering the electronic equipment to switch and use a second camera in the plurality of cameras, and the second camera is different from the first camera. In response to the second operation, the electronic device may switch the first preview image in the first interface to a second preview image captured by the second camera. Finally, the electronic device may receive a first operation of the first interface by the user. The first operation is for triggering the electronic device to stop recording video. In response to the first operation, the electronic device may display a second interface for previewing the plurality of first video files. The plurality of first video files includes: a video file comprising a first video stream, a video file comprising a second video stream, and a video file comprising the first video stream and the second video stream; the first video stream comprises a plurality of frames of first preview images and the second video stream comprises a plurality of frames of second preview images.
According to the application, the electronic equipment can switch the camera in the process of single-scene video recording. And, every time the camera is switched, the electronic equipment can generate a temporary video file. The plurality of first video files are temporary video files generated by the electronic device. Some first video files include video streams in only one viewfinder, while others may include video streams in multiple viewfinder. The user may select the first video file (i.e., temporary video file) to be saved as desired. Therefore, the temporary video file selected by the user can be stored according to the user requirement, and the shooting experience of the user can be improved.
In one possible design manner of the eighth aspect, the electronic device may receive a selection operation of the second video file from the plurality of first video files by a user. In response to the selection operation, the electronic device may save the second video file selected by the user.
In another possible design manner of the eighth aspect, the first interface includes a first control for triggering the electronic device to switch to use the second camera; the second operation is a click operation of the first control by the user.
In another possible design manner of the eighth aspect, the first camera is a front camera of the electronic device, and the second camera is a rear camera of the electronic device. Or, the first camera is a rear camera of the electronic device, and the second camera is a front camera of the electronic device.
In another possible design manner of the eighth aspect, the plurality of cameras includes a front camera and a rear camera of a plurality of types; the type of the camera at least comprises: the camera comprises a main camera, a wide-angle camera and a long-focus camera; the first camera and the second camera are any two cameras in the plurality of cameras, and the first camera is different from the second camera.
In another possible design manner of the eighth aspect, the first interface includes a plurality of second controls, where each second control corresponds to one of the plurality of cameras, and is configured to trigger the electronic device to switch to use the corresponding camera. The plurality of second controls comprise first controls, the first controls are used for triggering the electronic equipment to switch to use the second cameras, and the second operation is clicking operation of the first controls by a user.
In another possible design manner of the eighth aspect, after the electronic device switches the first preview image in the first interface to the second preview image collected by the second camera, before the electronic device receives the first operation of the user on the first interface, the method of the present application further includes: the electronic device may receive a third operation of the user at the first interface. The third operation is used for triggering the electronic equipment to pause video recording. In response to the third operation, the electronic device displays a third interface. The third interface is a view finding interface for the electronic equipment to pause video recording, and comprises a third preview image acquired by the second camera. The electronic equipment receives a fourth operation of the user on the third interface. The fourth operation is used for triggering the electronic equipment to continue recording. In response to the fourth operation, the electronic device displays a fourth interface; the fourth interface is a view finding interface of the electronic equipment, and the fourth interface comprises a fourth preview image acquired by the second camera.
The electronic device receiving a first operation of a user on a first interface may include: and the electronic equipment receives a first operation of the user on the fourth interface, wherein the first operation is used for triggering the electronic equipment to stop recording the video. Wherein the plurality of first video files further comprises: video files comprising a third video stream, video files comprising a second video stream and a third video stream, video files comprising a first video stream, a second video stream, and a third video stream, the third video stream comprising a plurality of frames of fourth preview images.
In another possible design manner of the eighth aspect, the first interface further includes a pause record button, where the pause record button is used to trigger the electronic device to pause video recording, and the third operation is a click operation of the pause record button in the first interface by a user. The third interface further includes a pause recording button, and the fourth operation is a click operation of the pause recording button in the third interface by the user.
In a ninth aspect, the present application provides an electronic device comprising a display screen, a plurality of cameras, a memory, and one or more processors. The display screen, the plurality of cameras, the memory, and the processor are coupled. The cameras are used for collecting images, and the display screen is used for displaying images generated by the processor and images collected by the cameras. The memory is used for storing computer program codes. The above computer program code includes computer instructions; the computer instructions, when executed by the processor, cause the electronic device to:
Displaying a first interface; the first interface is a view finding interface of the electronic equipment, the first interface comprises a first view finding frame and a second view finding frame, the first view finding frame displays a first preview image collected by a first camera in the plurality of cameras, and the second view finding frame displays a second preview image collected by a second camera in the plurality of cameras; receiving a first operation of a user on a first interface, wherein the first operation is used for triggering the electronic equipment to stop recording video; in response to the first operation, displaying a second interface for previewing the plurality of first video files; wherein the plurality of first video files includes: a video file comprising a first video stream, a video file comprising a second video stream, and a video file comprising the first video stream and the second video stream; the first video stream comprises a plurality of frames of first preview images and the second video stream comprises a plurality of frames of second preview images.
In a possible implementation manner of the ninth aspect, when the processor executes the computer instructions, the electronic device is caused to further perform the following steps: receiving selection operation of a user on a second video file in the plurality of first video files in the second interface; and responding to the selection operation of the user on the second video file, and saving the second video file.
In another possible design of the ninth aspect, the first camera is a front camera of the electronic device, and the second camera is a rear camera of the electronic device; or, the first camera is a rear camera of the electronic device, and the second camera is a front camera of the electronic device.
In another possible design manner of the ninth aspect, the plurality of cameras includes a front camera and a rear camera of a plurality of types; the type of the camera at least comprises: the camera comprises a main camera, a wide-angle camera and a long-focus camera.
The first camera and the second camera are any two cameras among the plurality of cameras, and the first camera is different from the second camera.
In another possible design of the ninth aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: receiving a second operation of the first view finding frame by a user; the second operation is used for triggering the electronic equipment to switch the first camera to a third camera in the plurality of cameras; and responding to the second operation, and switching the first preview image in the first interface into a third preview image acquired by a third camera. The third camera is different from the first camera and the second camera.
Wherein the plurality of first video files further comprises: video files comprising a third video stream, video files comprising a first video stream and a third video stream, video files comprising a first video stream, a third video stream, and a second video stream; the third video stream includes a plurality of frames of a third preview image.
In another possible design manner of the ninth aspect, the first viewfinder includes a plurality of second controls, each of the second controls corresponding to one of the plurality of cameras, for triggering the electronic device to switch to use the corresponding camera.
The plurality of second controls comprise a first control, the first control is used for triggering the electronic equipment to switch to use the third camera, and the second operation is click operation of the first control by a user.
In another possible design of the ninth aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: before receiving a first operation of a user on the first interface, responding to a third operation of the user on the first interface, and displaying a third interface; the third operation is used for triggering the electronic equipment to pause video recording in the first view finding frame; the third interface is a view interface in which the first view frame pauses the video recording and the second view frame is recording the video; in the third interface, the first view finding frame displays a fourth preview image collected by the first camera, and the second view finding frame displays a second preview image collected by the second camera; responding to a fourth operation of the user on the third interface, and displaying the fourth interface; the fourth operation is used for triggering the electronic equipment to continue recording; the fourth interface is a view finding interface of the electronic equipment which is recording the video; and in the fourth interface, the first view finding frame displays a fifth preview image acquired by the first camera, and the second view finding frame displays a second preview image acquired by the second camera.
Wherein the computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: and receiving the first operation of the user on the fourth interface. Wherein the plurality of first video files further comprises: video files comprising a fourth video stream comprising a first video stream and a fourth video stream comprising a first video stream, a fourth video stream and a second video stream, the fourth video stream comprising a plurality of frames of a fifth preview image.
In another possible design manner of the ninth aspect, the first interface further includes a record pause button, the record pause button is used to trigger the electronic device to pause the video recording, and the third operation is a click operation of the record pause button in the first interface by the user. The third interface further includes a pause record button, and the fourth operation is a click operation of the pause record button in the third interface by the user.
In a tenth aspect, the present application provides an electronic device comprising a display screen, a plurality of cameras, a memory, and one or more processors. The display screen, the plurality of cameras, the memory, and the processor are coupled. The cameras are used for collecting images, and the display screen is used for displaying images generated by the processor and images collected by the cameras. The memory is used for storing computer program codes. The above computer program code includes computer instructions; the computer instructions, when executed by the processor, cause the electronic device to:
Displaying a first interface; the first interface is a view finding interface of the video being recorded by the electronic equipment, and comprises first preview images collected by a first camera in the plurality of cameras; receiving a second operation of the user on the first interface; the second operation is used for triggering the electronic equipment to switch to use a second camera in the plurality of cameras, and the second camera is different from the first camera; responding to a second operation, and switching the first preview image in the first interface into a second preview image acquired by a second camera; receiving a first operation of a user on a first interface, wherein the first operation is used for triggering the electronic equipment to stop recording video; in response to the first operation, displaying a second interface for previewing the plurality of first video files; wherein the plurality of first video files includes: a video file comprising a first video stream, a video file comprising a second video stream, and a video file comprising the first video stream and the second video stream; the first video stream comprises a plurality of frames of first preview images and the second video stream comprises a plurality of frames of second preview images.
In one possible design of the tenth aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: receiving selection operation of a user on a second video file in the plurality of first video files in the second interface; and responding to the selection operation of the user on the second video file, and saving the second video file.
In another possible design manner of the tenth aspect, the first interface includes a first control for triggering the electronic device to switch to use the second camera; the second operation is a click operation of the first control by the user.
In another possible design manner of the tenth aspect, the first camera is a front camera of the electronic device, and the second camera is a rear camera of the electronic device; or, the first camera is a rear camera of the electronic device, and the second camera is a front camera of the electronic device.
In another possible design manner of the tenth aspect, the plurality of cameras includes a front camera and a rear camera of a plurality of types; the type of the camera at least comprises: the camera comprises a main camera, a wide-angle camera and a long-focus camera; the first camera and the second camera are any two cameras in the plurality of cameras, and the first camera is different from the second camera.
In another possible design manner of the tenth aspect, the first interface includes a plurality of second controls, each of the second controls corresponds to one of the plurality of cameras, and is configured to trigger the electronic device to switch to use the corresponding camera. The plurality of second controls comprise first controls, the first controls are used for triggering the electronic equipment to switch to use the second cameras, and the second operation is clicking operation of the first controls by a user.
In another possible design of the tenth aspect, the processor, when executing the computer instructions, causes the electronic device to further perform the steps of: responding to a third operation of the user on the first interface, and displaying a third interface; the third operation is used for triggering the electronic equipment to pause video recording; the third interface is a view finding interface for the electronic equipment to pause video recording, and comprises a third preview image acquired by the second camera; responding to a fourth operation of the user on the third interface, and displaying the fourth interface; the fourth operation is used for triggering the electronic equipment to continue recording; the fourth interface is a view finding interface of the electronic equipment, and the fourth interface comprises a fourth preview image acquired by the second camera.
The computer instructions, when executed by the processor, cause the electronic device to further perform the steps of: and receiving the first operation of the user on the fourth interface. Wherein the plurality of first video files further comprises: video files comprising a third video stream, video files comprising a second video stream and a third video stream, video files comprising a first video stream, a second video stream, and a third video stream, the third video stream comprising a plurality of frames of fourth preview images.
In another possible design manner of the tenth aspect, the first interface further includes a pause recording button, where the pause recording button is used to trigger the electronic device to pause recording, and the third operation is a click operation of the pause recording button in the first interface by the user. The third interface further includes a pause record button, and the fourth operation is a click operation of the pause record button in the third interface by the user.
It may be appreciated that the above-mentioned eighth aspect and any possible design manner of the electronic device may achieve the beneficial effects, which are referred to as beneficial effects in the seventh aspect and any possible design manner of the electronic device, and are not described herein. The foregoing tenth aspect and any possible design manner of the electronic device may be referred to as the ninth aspect and any possible design manner of the electronic device, which are not described herein.
In an eleventh aspect, an embodiment of the present application provides a chip system applied to an electronic device including a display screen and a plurality of cameras. The system-on-chip includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a wire. The interface circuit is for receiving signals from the memory of the electronic device and transmitting signals to the processor, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device performs the method as described in the first, third, fifth, seventh and ninth aspects and any one of their possible designs.
In a twelfth aspect, embodiments of the present application provide a computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method according to the first, third, fifth, seventh and ninth aspects and any one of their possible designs.
In a thirteenth aspect, embodiments of the present application provide a computer program product, which when run on a computer causes the computer to perform the method according to the first, third, fifth, seventh and ninth aspects and any one of their possible designs. Wherein the computer may be the electronic device described in the first, third, fifth, seventh and ninth aspects and any one of the possible designs thereof.
It will be appreciated that the advantages achieved by the chip system according to the eleventh aspect, the computer storage medium according to the second aspect, and the computer program product according to the thirteenth aspect may refer to the advantages as in any of the first aspect, the third aspect, the fifth aspect, the seventh aspect, and the ninth aspect, and any of the possible designs thereof, which are not repeated here.
Drawings
Fig. 1A-1C are schematic views of a display interface of a mobile phone shooting video in the conventional technology;
fig. 1D-1E are schematic views of a display interface of another conventional mobile phone for capturing video;
fig. 2 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 3A-3C are schematic diagrams of the positions and the numbers of front cameras in a mobile phone according to an embodiment of the present application;
FIG. 3D is a view of the three front cameras shown in FIG. 3C;
fig. 3E to fig. 3G are schematic diagrams of positions and numbers of rear cameras in a mobile phone according to an embodiment of the present application;
FIG. 3H is a view of the three rear cameras shown in FIG. 3G;
fig. 4 is a schematic software architecture diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a flowchart of a method for capturing video according to an embodiment of the present application;
fig. 6A-6B are schematic views of a display interface of an electronic device according to an embodiment of the present application;
fig. 6C is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
fig. 7A is a schematic diagram of an electronic device according to an embodiment of the present application for switching a first preview image of a first interface to a second preview image;
Fig. 7B is a schematic diagram of content composition of a video file according to an embodiment of the present application;
fig. 7C is a schematic diagram of an electronic device generating a video file according to an embodiment of the present application;
fig. 8A-8B are schematic views of a display interface of another electronic device according to an embodiment of the present application;
fig. 8C is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 9A is a schematic diagram illustrating the content composition of another video file according to an embodiment of the present application;
fig. 9B is a schematic diagram of a display interface of an electronic device according to an embodiment of the present application;
FIG. 9C is a flowchart of another method for capturing video according to an embodiment of the present application;
fig. 10A is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
fig. 10B to fig. 10C are schematic views of a display interface of another electronic device according to an embodiment of the present application;
FIG. 10D is a flowchart of another method for capturing video according to an embodiment of the present application;
FIG. 11 is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
fig. 12 is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
fig. 13 is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 14 is a flowchart of another method for capturing video according to an embodiment of the present application;
fig. 15A-15B are schematic views of a display interface of another electronic device according to an embodiment of the present application;
FIG. 15C is a schematic diagram illustrating the content composition of another video file according to an embodiment of the present application;
fig. 16A-16B are schematic views of a display interface of another electronic device according to an embodiment of the present application;
fig. 16C-16D are schematic views of a display interface of another electronic device according to an embodiment of the present application;
fig. 16E-16F are schematic views of a display interface of another electronic device according to an embodiment of the present application;
fig. 16G-16H are schematic views of a display interface of another electronic device according to an embodiment of the present application;
fig. 16I is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 17A is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 17B is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 18 is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 19 is a flowchart of another method for capturing video according to an embodiment of the present application;
Fig. 20 is a schematic structural diagram of a chip system of an electronic device according to an embodiment of the present application;
fig. 21 is a schematic software architecture diagram of an electronic device according to an embodiment of the present application;
fig. 22 is a flowchart of a method for capturing video according to an embodiment of the present application;
23A-23C are schematic views of a display interface of an electronic device according to an embodiment of the present application;
FIG. 23D is a flowchart of another method for capturing video according to an embodiment of the present application;
FIG. 23E is a flowchart of another method for capturing video according to an embodiment of the present application;
fig. 24A is a schematic diagram of a display interface of an electronic device according to an embodiment of the present application;
fig. 24B is a schematic diagram of an electronic device according to an embodiment of the present application for switching a second preview image of a second interface to a third preview image;
fig. 24C is a schematic diagram of content composition of a video file according to an embodiment of the present application;
fig. 24D is a schematic diagram of an electronic device generating a video file according to an embodiment of the present application;
fig. 25A to 25D are schematic views of a display interface of another electronic device according to an embodiment of the present application;
FIG. 26 is a schematic diagram of content composition of another video file according to an embodiment of the present application;
FIG. 27 is a flowchart of another method for capturing video according to an embodiment of the present application;
FIG. 28 is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
fig. 29 is a schematic view of a display interface of another electronic device according to an embodiment of the present application;
FIG. 30A is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 30B is a flowchart of another method for capturing video according to an embodiment of the present application;
fig. 30C-30E are schematic views of a display interface of another electronic device according to an embodiment of the present application;
FIG. 31 is a flowchart of another method for capturing video according to an embodiment of the present application;
fig. 32A-32C are schematic views of a display interface of another electronic device according to an embodiment of the present application;
FIG. 32D is a flowchart of another method for capturing video according to an embodiment of the present application;
fig. 33A-33C are schematic views of a display interface of another electronic device according to an embodiment of the present application;
fig. 33D-33E are schematic views of a display interface of another electronic device according to an embodiment of the present application;
fig. 33F-33G are schematic views of a display interface of another electronic device according to an embodiment of the present application;
FIG. 33H is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
fig. 34A-34C are schematic views of a display interface of another electronic device according to an embodiment of the present application;
fig. 34D-34E are schematic views of a display interface of another electronic device according to an embodiment of the present application;
FIG. 35A is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 35B is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 36 is a flowchart of another method for capturing video according to an embodiment of the present application;
fig. 37A-37D are schematic views of a display interface of a mobile phone shooting video in the conventional technology;
FIG. 37E is a flowchart of a conventional technique for adjusting the focal length of a camera and taking pictures or videos;
fig. 38 is a schematic diagram of a software architecture of an electronic device according to an embodiment of the present application;
fig. 39 is a flowchart of a shooting control method according to an embodiment of the present application;
fig. 40A-40B are schematic views of a display interface of an electronic device according to an embodiment of the present application;
FIGS. 40C-40D are schematic views illustrating a display interface of another electronic device according to an embodiment of the present application;
41A-41B are schematic views of a display interface of another electronic device according to an embodiment of the present application;
FIG. 42A is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
fig. 42B-42C are schematic views of a display interface of another electronic device according to an embodiment of the present application;
FIG. 42D is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 43 is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 44 is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 45 is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
46A-46B are schematic views of a display interface of another electronic device according to an embodiment of the present application;
FIG. 47 is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 48 is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
fig. 49A-49B are schematic views of a display interface of another electronic device according to an embodiment of the present application;
FIG. 50 is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 51A is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIGS. 51B-51C are schematic views illustrating a display interface of another electronic device according to an embodiment of the present application;
FIGS. 51D-51F are schematic views of a display interface of another electronic device according to an embodiment of the present application;
fig. 51G is a schematic diagram of a camera type switching mechanism for an electronic device according to an embodiment of the present application;
fig. 51H is a schematic diagram of switching cameras of an electronic device based on preview images collected by the cameras according to an embodiment of the present application;
fig. 51I is a schematic diagram of a principle of switching cameras based on proxy information of the cameras in an electronic device according to an embodiment of the present application;
fig. 52A-52B are schematic views of a display interface of another electronic device according to an embodiment of the present application;
FIG. 53A is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 53B is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 53C is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 53D is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
FIG. 54 is a schematic diagram of a display interface of another electronic device according to an embodiment of the present application;
fig. 55 is a flowchart of a shooting control method according to an embodiment of the present application;
FIGS. 56A-56D are schematic diagrams of display interfaces of a video recording of a mobile phone in the conventional technology;
FIG. 56E is a block diagram illustrating a method for recording video on a mobile phone according to the conventional art;
fig. 57 is a schematic diagram of a software architecture of an electronic device according to an embodiment of the present application;
fig. 58A is a flowchart of a method for capturing video according to an embodiment of the present application;
fig. 58B is a flowchart of a method for capturing video according to an embodiment of the present application;
fig. 59A to 59D are schematic views of a display interface of a video recording of a mobile phone according to an embodiment of the present application;
FIG. 59E is a schematic diagram illustrating contents of a plurality of first video files according to an embodiment of the present application;
FIG. 60 is a flowchart of another method for capturing video according to an embodiment of the present application;
fig. 61A-61C are schematic views of a display interface of another video recording of a mobile phone according to an embodiment of the present application;
FIG. 61D is a schematic diagram illustrating contents of a plurality of first video files according to an embodiment of the present application;
fig. 62A-fig. 62D are schematic views of a display interface of another video recording of a mobile phone according to an embodiment of the present application;
FIG. 62E is a schematic diagram illustrating contents of another plurality of first video files according to an embodiment of the present application;
FIG. 63A is a flowchart of another method for capturing video according to an embodiment of the present application;
fig. 63B-63E are schematic diagrams of display interfaces of another video recording of a mobile phone according to an embodiment of the present application;
fig. 63F-63H are schematic views of contents of another plurality of first video files according to an embodiment of the present application;
FIG. 64 is a schematic diagram of a display interface of another video recording of a mobile phone according to an embodiment of the present application;
FIG. 65A is a flowchart of another method for capturing video according to an embodiment of the present application;
FIG. 65B is a flowchart of another method for capturing video according to an embodiment of the present application;
66A-66E are schematic diagrams of display interfaces of another video recording of a mobile phone according to an embodiment of the present application;
FIG. 66F is a schematic diagram illustrating contents of another plurality of first video files according to an embodiment of the present application;
fig. 67A-67B are schematic views of a display interface of another video recording of a mobile phone according to an embodiment of the present application;
FIGS. 68A-68B are schematic diagrams illustrating a display interface of another video recording of a mobile phone according to an embodiment of the present application;
FIG. 69A is a flowchart of another method for capturing video according to an embodiment of the present application;
Fig. 69B-69F are schematic views of a display interface of another video recording of a mobile phone according to an embodiment of the present application;
FIGS. 69G-69L are schematic diagrams illustrating contents of another plurality of first video files according to embodiments of the present application;
FIGS. 70A-70B are schematic diagrams illustrating a display interface of another video recording of a mobile phone according to an embodiment of the present application;
FIG. 71 is a schematic diagram of contents of another plurality of first video files according to an embodiment of the present application;
fig. 72 is a flowchart of a shooting control method according to an embodiment of the present application.
Detailed Description
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
For easy understanding, the embodiment of the application describes the video recording process of the mobile phone in detail herein, so as to illustrate that the mobile phone cannot switch the camera in the video recording process by adopting the conventional technology.
In general, the mobile phone may display a view interface for photographing in response to a clicking operation of a "camera" application icon by a user. When the user wants to record the video by using the mobile phone, the mobile phone can be triggered to display a viewing interface of the recorded video. For example, fig. 1A shows a viewfinder interface 101 for taking a picture of a cell phone. The photo viewfinder 101 includes a viewfinder 102 and a "record video" option 103. The viewfinder 102 is used for displaying preview images acquired by a camera (such as a rear camera of a mobile phone). The "record video" option 103 is used to trigger the handset to enter a record video mode.
In response to a user clicking on the "record video" option 103 in the viewfinder interface 101, the handset may display a viewfinder interface 104 of the recorded video as shown in FIG. 1B. The viewing interface 104 for recording video includes a start recording button 108, a view box 105, a timer option 106, an album option 107, and a camera switch option 109.
Wherein the start recording button 108 is used to trigger the mobile phone to start recording video. The viewfinder 105 is used to display a preview image captured by the camera. The timing option 106 is used for timing when the mobile phone starts to record video and the mobile phone ends to record video, and displaying the duration of video recording of the mobile phone. Album option 107 is used to display the most recently taken photograph or video of the handset. For example, assume that a cell phone has recently taken a photograph of two people in hand. As shown in fig. 1B, photos of two hands are displayed on the album option 107. The camera switch option 109 is used to trigger the handset to switch to use either the front camera or the rear camera to capture images.
In response to a user clicking on the start recording button 108 shown in fig. 1B, the cell phone may start recording video. For example, when the duration of video recording by the mobile phone is 8 seconds(s), the mobile phone may display the view interface 110 of the video recording shown in fig. 1C. In the view interface 110 of the recorded video, the time duration of the time option 112 is 00:00:08. The preview image in the viewfinder 111 in the viewfinder interface 110 of the recorded video is different from the preview image in the viewfinder 105 shown in fig. 1B. Included in the viewfinder interface 110 of the recorded video is a stop recording button 113. The stop recording button 113 is used to trigger the mobile phone to stop recording video and generate recorded video.
In response to a user clicking the stop recording button 113 shown in fig. 1C, the mobile phone may display the view interface 114 of the recorded video shown in fig. 1D. Included in the view interface 114 of the recorded video are a start recording button 108, a view finder 115, a timer option 116, an album option 117, and a camera switch option 109. The timing duration of the timing option 116 shown in fig. 1D is 00:00:00, which indicates that the mobile phone has stopped recording video. The album option 117 shown in fig. 1D displays a preview image in the viewfinder 111 in fig. 1C, indicating that the handset has generated a recorded video.
As can be seen by comparing the viewing interfaces of the recorded video shown in fig. 1B, 1C and 1D: the viewfinder interface shown in fig. 1B and 1D includes the camera switching option 109, while the viewfinder interface shown in fig. 1C does not include the camera switching option 109. The camera switch option 109 is used to trigger the mobile phone to switch to use the front camera or the rear camera to collect images. That is, before starting to record video and after stopping to record video, the mobile phone can respond to the operation of the user on the camera switching option 109 in the view finding interface to switch the camera; however, during the recording of video, the camera cannot be switched.
For example, in response to a user clicking on the camera switch option 109 shown in fig. 1D, the handset may display the view interface 118 of the recorded video shown in fig. 1E. The preview image displayed in the viewfinder 119 in the viewfinder interface 118 of the recorded video is an image captured by a front camera of the mobile phone. And the preview image displayed in the viewfinder of fig. 1A, 1B, 1C or 1D is an image captured by a rear camera of the mobile phone.
The embodiment of the application provides a method for shooting video, which can be applied to electronic equipment comprising a plurality of cameras. By adopting the method provided by the embodiment of the application, the camera can be switched in the video recording process. Moreover, by adopting the method, the video files with multiple visual angles can be obtained by one shooting, a plurality of temporary video files can not be generated, and the temporary video files are not required to be integrated. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
The electronic device in the embodiment of the present application may be a mobile phone, a tablet computer, a smart watch, a desktop, a laptop, a handheld computer, a notebook, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) \virtual reality (VR) device, or a device including a plurality of cameras, and the embodiment of the present application is not limited in particular form.
The following describes in detail the implementation of the embodiment of the present application with reference to the drawings. Referring to fig. 2, a schematic structural diagram of an electronic device 200 according to an embodiment of the application is shown. As shown in fig. 2, the electronic device 200 may include: processor 210, external memory interface 220, internal memory 221, universal serial bus (universal serial bus, USB) interface 230, charge management module 240, power management module 241, battery 242, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, headset interface 270D, sensor module 280, keys 290, motor 291, indicator 292, camera 293, display 294, and subscriber identity module (subscriber identification module, SIM) card interface 295, among others.
The sensor module 280 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, acceleration sensors, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, and the like.
It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic apparatus 200. In other embodiments, the electronic device 200 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units such as, for example: the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and command center of the electronic device 200. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 210 is reduced, thereby improving the efficiency of the system.
In some embodiments, processor 210 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only illustrative, and does not limit the structure of the electronic device 200. In other embodiments, the electronic device 200 may also employ different interfaces in the above embodiments, or a combination of interfaces.
The charge management module 240 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 240 may receive a charging input of a wired charger through the USB interface 230. In some wireless charging embodiments, the charge management module 240 may receive wireless charging input through a wireless charging coil of the electronic device 200. The charging management module 240 may also provide power to the electronic device through the power management module 241 while charging the battery 242.
The power management module 241 is used for connecting the battery 242, and the charge management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charge management module 240 and provides power to the processor 210, the internal memory 221, the external memory, the display 294, the camera 293, the wireless communication module 260, and the like. The power management module 241 may also be configured to monitor battery capacity, battery cycle times, battery health (leakage, impedance), and other parameters. In other embodiments, the power management module 241 may also be disposed in the processor 210. In other embodiments, the power management module 241 and the charge management module 240 may be disposed in the same device.
The wireless communication function of the electronic device 200 can be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 200 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 250 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied on the electronic device 200. The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 250 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation.
The wireless communication module 260 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied on the electronic device 200.
The wireless communication module 260 may be one or more devices that integrate at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 260 may also receive a signal to be transmitted from the processor 210, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 250 of electronic device 200 are coupled, and antenna 2 and wireless communication module 260 are coupled, such that electronic device 200 may communicate with a network and other devices via wireless communication techniques.
The electronic device 200 implements display functions through a GPU, a display screen 294, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
The display 294 is used to display images, videos, and the like. The display 294 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like.
The electronic device 200 may implement a photographing function through an ISP, a camera 293, a video codec, a GPU, a display 294, an application processor, and the like.
The ISP is used to process the data fed back by the camera 293. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 293.
The camera 293 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the electronic device 200 may include N cameras 293, N being a positive integer greater than 1.
Illustratively, the N cameras 293 may include: one or more front cameras and one or more rear cameras. For example, the electronic device 200 is a mobile phone. The handset shown in fig. 3A includes a front facing camera, such as front facing camera 301. The handset shown in fig. 3B includes two front cameras, such as front camera 302 and front camera 303. The handset shown in fig. 3C includes three front cameras, such as front cameras a, b, and C. The handset shown in fig. 3E includes two rear cameras, such as rear cameras 304 and 305. The handset shown in fig. 3F includes four rear cameras, such as rear cameras 306, 307, 308, and 309. The handset shown in fig. 3G includes three rear cameras, such as rear cameras 1, 2, and 3.
The above N may be 3, and the mobile phone may include a front camera 301 shown in fig. 3A, a rear camera 304 shown in fig. 3E, and a rear camera 305. Alternatively, N may be 5, and the handset may include front camera 301 shown in fig. 3A, rear camera 306, rear camera 307, rear camera 308, and rear camera 309 shown in fig. 3F. Of course, the number of cameras in the above-described cell phone includes, but is not limited to, the number described in the above-described example. For example, N may also be 6, and the mobile phone includes three front cameras (front camera a, front camera b, and front camera C shown in fig. 3C) and three rear cameras (rear camera 1, rear camera 2, and rear camera 3 shown in fig. 3G).
Wherein, the N cameras 239 may include one or more of the following cameras: the camera comprises a main camera, a long-focus camera, a wide-angle camera, a super-wide-angle camera, a micro-distance camera, a fish-eye camera, an infrared camera, a depth camera and a black-and-white camera.
(1) And a main camera.
The main camera has the characteristics of large light incoming quantity, high resolution and centered visual field range. The primary camera is typically the default camera for an electronic device, such as a cell phone. That is, the electronic device (e.g., a cell phone) may default to the primary camera in response to a user launching the "camera" application, displaying the image captured by the primary camera on the preview interface. The field of view of the camera is determined by the field of view (FOV) of the camera. The larger the FOV of the camera, the larger the field of view of the camera.
(2) A tele camera.
The long-focus camera has longer focal length and can be suitable for shooting objects far away from the mobile phone (namely, far objects). However, the amount of light entering the tele camera is small. Using a tele camera to capture images in a dim light scene may affect image quality due to insufficient light input. In addition, the field of view of the tele camera is small, and the tele camera is not suitable for shooting images of larger scenes, namely is not suitable for shooting larger shooting objects (such as buildings or landscapes).
(3) Wide angle camera.
The wide-angle camera has a larger visual field range and can be suitable for shooting larger shooting objects (such as buildings or landscapes). However, the resolution of the wide-angle camera is low. In addition, the image of the subject is easily distorted, that is, the image of the subject is easily deformed, due to the fact that the image obtained by photographing with the wide-angle camera is used.
(4) Ultra-wide angle camera.
The ultra-wide angle camera and the wide angle camera are the same camera. Alternatively, the ultra-wide angle camera may have a wider field of view than the wide angle camera described above.
(5) And a micro-camera.
The micro camera is a special lens used for micro photography, and is mainly used for shooting very fine objects such as flowers, insects and the like. The micro-range lens is used for shooting fine natural scenes, so that microscopic scenes which cannot be seen by people can be shot.
(6) Fish-eye camera.
The fisheye camera is an auxiliary lens with a focal length of 16mm or less and a field angle of view of approximately 180 deg.. A fisheye camera may be considered an extreme wide angle camera. The front lens of this camera is very short in diameter and projects in a parabolic shape toward the front of the lens, quite similar to the eyes of a fish, and is therefore called a fish-eye camera. The image shot by the fish-eye camera is very different from the real world image in the eyes of people; therefore, the fisheye camera is generally used when a special shooting effect is obtained.
(7) An infrared camera.
The infrared camera has the characteristic of large spectrum range. For example, an infrared camera may sense not only visible light but also infrared light. Under a dim light scene (namely weak light), the characteristic that the infrared camera can sense infrared light is utilized, and the infrared camera is used for shooting images, so that the image quality can be improved.
(8) Depth camera.
A time of flight (ToF) camera or a structured light camera, etc., are depth cameras. Taking a depth camera as an example of a ToF camera. The ToF camera has the characteristic of accurately acquiring depth information of a shooting object. The ToF camera can be suitable for face recognition and other scenes.
(9) Black and white cameras.
Black and white cameras do not have filters. Therefore, the amount of light input to the black-and-white camera is large compared to the color camera. However, images acquired by the black-and-white camera can only show gray scales of different levels, and cannot show the true color of a shooting object. The main camera, the tele camera, the wide camera and the like are all color cameras.
It will be appreciated that the location of the different cameras on the handset is different. Therefore, when the mobile phone is fixed in a viewing environment, the field of view of different cameras may be different, and the images acquired by the mobile phone in the viewing environment may be different.
For example, consider a cell phone that includes three front cameras a, b, and C as shown in fig. 3C. The three front cameras are sequentially arranged from left to right; therefore, the three front cameras have different visual fields, and the images of the same view-finding environment acquired by the front cameras are different. As shown in fig. 3C, the front camera a is disposed at a position far to the left of the mobile phone than the front cameras b and C; therefore, as shown in fig. 3D, the field of view a of the front camera a is left-shifted compared to the field of view B of the front camera B and the field of view C of the front camera C. As shown in fig. 3C, the front camera b is disposed in the middle of the front cameras a and b; therefore, as shown in fig. 3D, the field of view B of the front camera B is offset from the field of view a of the front camera a and the field of view C of the front camera C. As shown in fig. 3C, the front camera C is disposed at a position far to the right of the mobile phone than the front cameras a and b; therefore, as shown in fig. 3D, the field of view C of the front camera C is right-shifted compared to the field of view a of the front camera a and the field of view B of the front camera B.
For example, consider a cell phone that includes three rear cameras 1, 2, and 3 as shown in fig. 3G. The three rear cameras are sequentially arranged from top to bottom; therefore, the three rear cameras have different visual fields, and the images of the same view-finding environment acquired by the three rear cameras are different. As shown in fig. 3G, the rear camera 1 is disposed at a position above the mobile phone compared with the rear cameras 2 and 3; therefore, as shown in fig. 3H, the field of view 1 of the rear camera 1 is shifted upward compared to the field of view II of the rear camera 2 and the field of view III of the rear camera 3. As shown in fig. 3G, the rear camera 2 is disposed in the middle of the rear cameras 1 and 3, and thus the field of view II of the rear camera 2 is offset in the middle compared to the field of view 1 of the rear camera 1 and the field of view III of the rear camera 3. As shown in fig. 3G, the rear camera 3 is disposed at a position lower than the rear cameras 1 and 2 in the mobile phone, and thus the field of view III of the rear camera 3 is lower than the field of view 1 of the rear camera 1 and the field of view II of the rear camera 2.
Of course, factors affecting the field of view of the camera include not only the position of the camera on the electronic device, but also hardware parameters of the camera (e.g., field angle). The position of the camera on the electronic device affects the position of the camera's field of view (e.g., left, right, up or down, etc.), as described above; the hardware parameters of the camera (such as the angle of view) affect the size of the field of view of the camera.
Illustratively, the field of view of the primary camera (e.g., the rear primary camera) may be 1.0X-8.0X; the visual field range of the wide-angle camera (such as a rear-mounted wide-angle camera) is 0.6X-1.0X; the field of view of the tele camera (such as a rear tele camera) is 8.0X. Wherein, 1.0X, 8.0X and 0.6X are all zoom magnifications. "1×" indicates that the zoom magnification is 1. "8.0X" means that the zoom magnification is 8.0 times. "0.6X" means that the zoom magnification is 0.6 times. The zoom magnification in the embodiment of the application can be an optical zoom magnification or a digital zoom magnification.
For example, the field of view a of the front camera a (e.g., a wide-angle camera) shown in fig. 3D is larger than the field of view B of the front camera B (e.g., a main camera). For another example, the field of view III of the rear camera 3 (e.g., a wide-angle camera) shown in fig. 3H is larger than the field of view II of the rear camera 2 (e.g., a main camera).
In the process of recording video by using the electronic device 200 (such as a mobile phone), according to the above characteristics of the various cameras (such as the position of the camera on the mobile phone and the hardware parameters of the camera), at least two cameras may be used in a switching manner based on different shooting purposes. For example, when a user wants to shoot a distant object by using a mobile phone, the user can switch to use the tele camera; when a user wants to photograph a distant large photographic subject using a mobile phone, a wide-angle camera may be used.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 200 is selecting a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 200 may support one or more video codecs. In this way, the electronic device 200 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent cognition of the electronic device 200 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 200. The external memory card communicates with the processor 210 through an external memory interface 220 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
Internal memory 221 may be used to store computer executable program code that includes instructions. The processor 210 executes various functional applications of the electronic device 200 and data processing by executing instructions stored in the internal memory 221. For example, in an embodiment of the present application, the processor 210 may include a memory program area and a memory data area by executing instructions stored in the internal memory 221.
The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 200 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 221 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 200 may implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an ear-headphone interface 270D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 270 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 270 may also be used to encode and decode audio signals. In some embodiments, the audio module 270 may be disposed in the processor 210, or some functional modules of the audio module 270 may be disposed in the processor 210. Speaker 270A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. A receiver 270B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. Microphone 270C, also referred to as a "microphone" or "microphone," is used to convert sound signals into electrical signals.
The earphone interface 270D is for connecting a wired earphone. Earphone interface 270D may be USB interface 230 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor is used for sensing a pressure signal and can convert the pressure signal into an electric signal. In some embodiments, a pressure sensor may be provided at the display 294. The gyroscopic sensor may be used to determine a motion pose of the electronic device 200. The air pressure sensor is used for measuring air pressure. The magnetic sensor includes a hall sensor. The electronic device 200 may detect the opening and closing of the flip cover using a magnetic sensor. The acceleration sensor may detect the magnitude of acceleration of the electronic device 200 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 200 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications. The distance sensor is used to measure distance. The electronic device 200 may measure the distance by infrared or laser. The proximity light sensor may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 200 emits infrared light outward through the light emitting diode. The electronic device 200 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that an object is in the vicinity of the electronic device 200.
The ambient light sensor is used for sensing ambient light brightness. The ambient light sensor may also be used to automatically adjust white balance when taking a photograph. The ambient light sensor may also cooperate with the proximity light sensor to detect whether the electronic device 200 is in a pocket to prevent false touches. The fingerprint sensor is used for collecting fingerprints. The electronic device 200 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint incoming call answering and the like. The temperature sensor is used for detecting temperature. Touch sensors, also known as "touch panels". The touch sensor may be disposed on the display screen 294, and the touch sensor 280K and the display screen 294 form a touch screen, which is also called a "touch screen". The touch sensor is used to detect a touch operation acting on or near it. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type.
Keys 290 include a power on key, a volume key, etc. The keys 290 may be mechanical keys. Or may be a touch key. The electronic device 200 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 200.
The motor 291 may generate a vibration alert. The motor 291 may be used for incoming call vibration alerting or for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 291 may also correspond to different vibration feedback effects by touch operations applied to different areas of the display 294. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 292 may be an indicator light, which may be used to indicate a state of charge, a change in power, a message indicating a missed call, a notification, etc.
The SIM card interface 295 is for interfacing with a SIM card. The SIM card may be inserted into the SIM card interface 295 or removed from the SIM card interface 295 to enable contact and separation from the electronic device 200. The electronic device 200 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 295 may support Nano SIM cards, micro SIM cards, and the like.
The methods in the following embodiments may be implemented in the electronic device 200 having the above-described hardware structure.
The software system of the electronic device 200 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the electronic device 200 is illustrated.
Fig. 4 is a software architecture block diagram of an electronic device 200 according to an embodiment of the present application. The layered architecture may divide the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer (abbreviated as application layer) 410, an application framework layer (abbreviated as framework layer) 420, a hardware abstraction layer (hardware abstract layer, HAL) layer 430, and a Kernel layer (Kernel, also referred to as driver layer) 440.
The Application layer (Application) 410 may include a series of Application packages, among other things. The application layer may include a plurality of application packages. The plurality of application packages may be camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, desktop start (Launcher) applications, etc. For example, as shown in fig. 4, the application layer 410 may include a camera system application (also referred to as a camera application) 411.
As shown in fig. 4, the camera system application 411 may be configured to present the video stream reported by the bottom layer in the view interface of the recorded video in the recorded video mode. The electronic device 200 may include a plurality of cameras, each of which may be configured to capture images, and successive multi-frame images captured by the cameras may form a video stream. That is, each of the cameras described above may be used to capture video streams.
For example, assume that the electronic device 200 includes a front camera and a rear camera; the video stream 1 shown in fig. 4 may be a video stream collected by a front-end camera, referred to as a front-end video stream; the video stream 2 shown in fig. 4 may be a video stream collected by a rear camera, referred to as a rear video stream.
Although multiple cameras of the electronic device 200 may collect video streams; however, in general, only one video stream captured by one camera is shown in the viewing interface of the recorded video. The video stream shown in the view interface of the recorded video may be referred to as a preview video stream. The camera that captures the preview video stream may be referred to as a preview camera. Through the preview video stream presented by the camera system application 411, the user can view the view of the current video stream in real time. The preview video stream may be video stream 1 or video stream 2 described above.
In the embodiment of the application, the user can dynamically switch the camera according to the needs of the user. For example, as shown in fig. 4, the camera system application 411 is also used to provide the following functions: in the video recording mode, if the user selects to switch the camera (i.e. switch the function of the camera in the video recording process), the icon of the switch camera (i.e. the first control in the embodiment of the present application) can be displayed (i.e. appear) on the view finding interface of the video recording. In response to a user clicking on the toggle camera icon (i.e., the first control), the camera system application 411 may toggle the preview camera to refresh the video stream (i.e., refresh the preview video stream). For example, when the preview camera is a front camera, the preview video stream is video stream 1. In response to the user clicking the switch camera icon, the camera system application 411 may switch the preview camera to the rear camera, and the preview video stream is refreshed to video stream 2.
Wherein the Camera identity (Camera ID) of each Camera is different. The application layer 410 may instruct the bottom layer (e.g. the kernel layer 440) to start the corresponding Camera through the Camera ID of the Camera, and instruct the bottom layer (e.g. the frame layer 420) to process the preview video stream collected by the preview Camera according to the Camera ID of the preview Camera. The application layer 410 may also instruct the bottom layer (e.g. the kernel layer 440) to close the corresponding Camera through the Camera ID of the Camera according to the operation of the user.
Further, in the video recording mode, if the user turns off the switch camera (i.e., turns off the function of switching the camera during video recording), the camera system application 411 will not display the switch camera icon (i.e., the first control) on the viewfinder interface of the video recording. Also, the camera system application 411 may also instruct the bottom layer to shut down the idle video stream. The idle video stream may include other video streams except the preview video stream in video streams collected by a plurality of cameras of the electronic device. The camera system application 411 may close the idle video stream by closing the idle camera. The idle camera may include other cameras of the plurality of cameras of the electronic device other than the preview camera. The power consumption of the electronic device can be reduced by closing the idle camera.
The Framework layer (Framework) 420 provides an application programming interface (application programming interface, API) and programming Framework for the application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 4, the framework layer may provide Camera APIs such as a Camera API (API 1|api 2) 421, a video processing (Media Recorder) module 422, a Camera Service (Camera Service) 423, a Camera expansion Service (Camera Service Extra) 425, and a hardware development kit (hardware software development kit, hw SDK) 424.
The Camera API (API 1|api 2) 421 is used as an interface for the bottom layer (such as the hardware abstraction layer 430) to interact with the application layer 410. Specifically, the Camera API (API 1|api 2) 421 may receive a notification from an upper layer (such as the application layer 410) of switching the function of the Camera during the process of starting up the recorded video, and process the notification of switching the function of the Camera during the process of starting up the recorded video through the Camera service 423, the Camera expansion service 425, and the HwSDK 424. Then, the kernel layer 440 is instructed to turn on the idle camera by the HAL layer 430, and the video streams collected by the preview camera and the idle camera are obtained by the HAL layer 430. The Camera API (API 1|api 2) 421 may also receive Camera switch notifications from an upper layer (e.g., application layer 410). The Camera switching notification includes a Camera ID to be switched to a preview Camera.
Typically, the application layer 410 interacts with the user, and after triggering the electronic device 200 to begin recording video, the Media Recorder module 422 can record in real time the preview video stream of the Surface view presented to the user and prepare it for generating a video file at any time.
In the embodiment of the present application, when the application layer 410 interacts with a user to trigger the electronic device 200 to switch the preview camera, the application layer 410 may refresh the Surface view in real time, for example, the video stream collected by the preview camera after the Surface view is updated and then switched. At this time, the Media Recorder module 422 does not need to do any operation (e.g., does not need to generate a video file), as long as the video stream is obtained by going to the Surface view. In this way, the electronic device 200 switches the camera without sensing the Media Recorder module 422, and when the application layer 410 interacts with the user to trigger the electronic device 200 to stop recording video, a complete video file can be generated even if the camera is switched during video recording. The complete video file comprises preview video streams collected by a plurality of cameras before and after switching.
HAL layer 430 is used to connect framework layer 420 and kernel layer 440. For example, HAL layer 430 may transfer data (e.g., transparent) between framework layer 420 and kernel layer 440. Of course, HAL layer 430 may also process data from the underlying layers (i.e., kernel layer 440) and then transmit it to framework layer 420. For example, HAL layer 430 may convert parameters of kernel layer 440 regarding hardware devices into a software programming language recognizable by framework layer 420 and application layer 410. For example, HAL layer 430 may include HAL3.0.
In an embodiment of the present application, the HAL layer 430 may manage video streams collected by multiple cameras according to the notification from the upper layers (such as the framework layer 420 and the application layer 410), for example, instruct the lower layers (such as the kernel layer 440) to turn off/on the video streams of the cameras according to the previous notification.
The kernel layer 440 includes a Camera driver 441, an image signal processor ISP 443, and a Camera device 442. The Camera device 442 may include a plurality of cameras, each including a Camera lens, an image sensor, and the like. The image signal processor ISP 443 may be provided separately from a Camera (e.g., camera device 442). In other embodiments, the image signal processor ISP 443 may be provided in a Camera (e.g., camera device 442).
Among them, the image signal processor ISP 443 and the Camera device 442 are main devices that take videos or pictures. The light signal reflected by the view finding environment is irradiated on the image sensor through the camera lens and can be converted into an electric signal, and the electric signal can be used as an original parameter stream (i.e. video stream) to be transmitted to the upper layer by the camera drive 441 after being processed by the image signal processor ISP 443. Also, the Camera driver 441 may also receive a notification (e.g., a notification indicating to turn on or off a Camera) from an upper layer, and send a stream of functional processing parameters to the Camera device 442 according to the notification to turn on or off the corresponding Camera.
In the following embodiments, the method according to the embodiments of the present application will be described by taking the electronic device 200 as an example of a mobile phone.
The embodiment of the application provides a method for shooting video, which can be applied to a mobile phone comprising a plurality of cameras. In a first application scenario, the plurality of cameras includes a first camera and a second camera. The first camera is a rear camera of the mobile phone, and the second camera is a front camera of the mobile phone; or, the first camera is a front camera of the mobile phone, and the second camera is a rear camera of the mobile phone. In the application scene, the mobile phone can switch the front camera and the rear camera of the mobile phone in the video recording process by adopting the method of the embodiment of the application. For example, as shown in fig. 5, the method of capturing video may include S501 to S505:
S501, the mobile phone displays a first interface. The first interface is a viewing interface where the cell phone is recording video. The first interface includes a first preview image captured by a first camera of the plurality of cameras.
Illustratively, the handset may display a first interface 601 shown in fig. 6A. The first interface 601 may include a stop recording button 603, where the timing duration of the timing option 607 in the first interface 601 is 00:00:08. In the case that the mobile phone is recording video, the view finding interface of the video recording of the mobile phone can comprise a stop recording button, and the time counting option in the view finding interface of the video recording of the mobile phone can count time. It can be seen that the first interface 601 is a viewing interface where a mobile phone is recording video.
In addition, a first preview image 602 acquired by a first camera (such as a rear camera of a mobile phone) is displayed in a viewfinder of the first interface 601.
S502, the mobile phone receives a first operation of a user on a first interface. The first operation is for triggering the electronic device to switch to use a second camera of the plurality of cameras.
In one implementation, the first interface may include a first control. The first control can be used for triggering the mobile phone to switch the camera. For example, a first control 604 is included in the first interface 601 shown in fig. 6A, and the first control 604 is also referred to as an icon for switching cameras. The first operation may be a click operation (e.g., a single click operation) of the first control 604 shown in fig. 6A by the user.
In another implementation manner, the first operation may also be a preset gesture, such as an S-gesture or a v-gesture, which is input by the user on the first interface. The preset gesture may be preconfigured in the handset. And the mobile phone can prompt the user with the preset gesture and the function triggered by the preset gesture (namely, the function of switching the camera in the video recording process) on the video-recording view-finding interface.
Wherein the second camera is different from the first camera. For example, in the case where the first camera is a rear camera of a cellular phone, the second camera is a front camera of the cellular phone.
S503, responding to the first operation, and displaying a second interface by the mobile phone. The second interface is a viewing interface where the cell phone is recording video. The second interface includes a second preview image captured by a second camera of the plurality of cameras.
That is, the mobile phone can switch the first preview image in the first interface to the second preview image collected by the second camera.
For example, the first operation described above is exemplified by a click operation of the first control 604 shown in fig. 6A by the user. In response to a first operation by the user of the first control 604 shown in fig. 6A, the handset may display a view interface (i.e., a second interface) 605 of fig. 6B where the handset is recording video.
Wherein, in response to the first operation of the first control 604 shown in fig. 6A by the user, the mobile phone is recording the preview image in the viewing interface (i.e. the first interface) of the video, the first preview image 602 shown in fig. 6A is switched to the second preview image 606 shown in fig. 6B. The first preview image 602 and the second preview image 606 are images captured by different cameras, and thus, as shown in fig. 6A and 6B, the first preview image 602 and the second preview image 606 are different.
In general, in the process of recording video by a mobile phone, only one camera is turned on to collect images. Therefore, in the process of recording video, if the mobile phone is to switch the preview camera from the first camera to the second camera, a certain time is required for starting the second camera, and a short-time (such as 1 second) black screen or blank can appear on the view finding interface, so that the user experience is affected. For example, in the process of recording video by the mobile phone, if only the first camera is turned on, in response to the first operation of the first control 604 shown in fig. 8A by the user, the mobile phone may display the view interface 901 for recording video shown in fig. 9B (for example, display for 1 second), and then automatically display the view interface 803 for recording video by the mobile phone shown in fig. 8B.
In order to realize the noninductive switching of the cameras in the process of recording the video by the mobile phone, in the embodiment of the application, in the process of executing S501-S502 by the mobile phone, not only the first camera of the mobile phone is used for collecting images, but also the second camera of the mobile phone is used for collecting images. Specifically, by adopting the method provided by the embodiment of the application, the mobile phone can start a plurality of cameras in advance. It should be noted that although both the first camera and the second camera are capturing images; however, when the mobile phone executes S501, the first camera is used as a preview camera, and the mobile phone displays the first preview image acquired by the first camera on the first interface, and does not display the image acquired by the second camera. And when the mobile phone executes S503, the second camera is used as a preview camera, the mobile phone displays a second preview image acquired by the second camera on the second interface, and does not display the image acquired by the first camera.
That is, by adopting the method of the embodiment of the application, the plurality of cameras (such as the first camera and the second camera) all acquire images, and the video stream is ready to be provided for the surface view. For example, as shown in fig. 7A, a first camera provides video stream 1 while a second camera provides video stream 2. When the mobile phone executes S501, the first camera is used as a preview camera, and the surfacview displays the video stream 1 (i.e., the first video stream). The mobile phone executes S503, after the preview camera is switched from the first camera to the second camera, the second camera is used as the preview camera, and the surfacview displays the video stream 2 (i.e. the second video stream).
In an exemplary embodiment of the present application, when the mobile phone enters a video recording mode, the mobile phone may start a plurality of cameras in the mobile phone, so as to realize the noninductive switching of the cameras in the process of recording video by the mobile phone.
Thus, the mobile phone starts the cameras to collect images, so that the cameras are ready for displaying the SurfaceView. Therefore, no matter which camera is used by the mobile phone in a switching way, a short-time (such as 1 second) black screen or blank of a view finding interface can be avoided because a certain time is needed for starting the camera. By adopting the scheme, the noninductive switching of the camera can be realized in the process of recording the video by the mobile phone, and the shooting experience of a user can be improved.
It should be noted that, in the process of executing S501, the mobile phone may cache the video stream including the above-mentioned multi-frame first preview image. However, in response to the first operation, the mobile phone does not pause or stop recording video, nor does the mobile phone generate a video file of a video stream composed of a plurality of frames of the first preview image. And continuing to record the video, caching the video stream comprising a plurality of frames of second preview images, and stopping recording the video and generating a first video file by responding to the second operation by the mobile phone until receiving the second operation of the user. After receiving the second operation, the mobile phone generates the first video file, and the detailed description of the first video file may refer to the content in the following embodiments, which are not described herein.
In some embodiments, to reduce power consumption of the mobile phone, the mobile phone may not activate the plurality of cameras in the mobile phone in advance, but rather activate the second camera in response to a first operation of the first interface by the user. In this way, although a short-time (e.g., 1 second) black screen or blank space may appear on the viewfinder interface during the process of switching the cameras, compared with the scheme of starting a plurality of cameras in advance, the power consumption of the mobile phone can be reduced.
In some embodiments, to reduce power consumption of the mobile phone, the mobile phone may not activate the plurality of cameras in the mobile phone in advance, but rather activate the second camera in response to a first operation of the first interface by the user. In this way, although a short-time (e.g., 1 second) black screen or blank space may appear on the viewfinder interface during the process of switching the cameras, compared with the scheme of starting a plurality of cameras in advance, the power consumption of the mobile phone can be reduced.
S504, the mobile phone receives a second operation of the user on a second interface. The second operation is used for triggering the mobile phone to stop recording the video.
The second interface (i.e. the viewfinder interface of the mobile phone that is recording video) may include a stop recording button. The second operation may be a click operation (e.g., a clicking operation) of the stop recording button by the user. For example, the view interface 601 for recording video shown in fig. 6A, the view interface 605 for recording video shown in fig. 6B, and the view interface 609 for recording video shown in fig. 6C each include a stop recording button 603. The mobile phone can receive the second operation of the stop recording button 603 in the view finding interface of the recorded video by the user at any time during the process of recording the video, stop recording the video and generate the recorded video file.
It should be appreciated that the timing duration of the timing options in the viewing interface of the video recorded by the handset may change over time during the video recorded by the handset. For example, the timing duration of timing option 607 shown in FIG. 6A is 00:00:08, and the timing duration of timing option 608 shown in FIG. 6B is 00:00:09, and the timing duration of timing option 610 shown in FIG. 6C is 00:00:18 over time.
For example, assume that the handset receives a second operation from the user when the duration of recording the video is 00:00:18. For example, as shown in fig. 6C, when the timing duration of the timing option 610 is 00:00:18, the mobile phone receives the second operation of the stop recording button 603 by the user.
S505, the mobile phone generates a first video file. The first video file includes a first video stream including a plurality of frames of first preview images and a second video stream including a plurality of frames of second preview images.
For example, the mobile phone receives the second operation of the stop recording button 603 shown in fig. 6C by the user, and may generate the first video file shown in fig. 7B. As shown in fig. 7B, the first video file includes: a first video stream and a second video stream. The first video stream comprises a plurality of frames of first preview images displayed on a display screen of the mobile phone under the condition that the first camera is used as a preview camera. And the second video stream comprises a plurality of frames of second preview images displayed on a display screen of the mobile phone under the condition that the second camera is used as a preview camera.
It should be noted that, in the process of executing S501 by the mobile phone, the first camera is used as a preview camera of the mobile phone, and the image collected by the first camera (i.e., the first preview image) is displayed in the viewing interface of the video recorded by the mobile phone; after the mobile phone executes S502-S503, the second camera is used as a preview camera of the mobile phone, and the image collected by the second camera (i.e. the second preview image) is displayed in the viewing interface of the video recorded by the mobile phone.
It should be understood that the mobile phone executing the video file generated in S505 includes: and displaying all preview images in a view finding interface of the video recorded by the mobile phone in the video recording process of the mobile phone.
For example, assume that the cell phone is the first camera as the preview camera from 00:00:00 video recording to 00:00:08, without switching cameras.
As can be seen from fig. 6A to 6C: during the period of 00:00:00-00:00:08, the first camera is used as a preview camera; the second camera acts as a preview camera during the period of 00:00:09-00:00:18. Thus, as shown in fig. 7B, the first video file generated by the mobile phone executing S505 may include: 00:00:00-00:00:08, and a first video stream acquired by a first camera; and a second video stream acquired by the second camera for a period of 00:00:09-00:00:18.
Wherein, during the period of 00:00:00-00:00:08, the first video stream collected by the first camera may include: 00:00:00-00:00:08, and acquiring and displaying multiple frames of first preview images on a display screen of the mobile phone by the first camera. 00:00:09-00:00:18, the second video stream acquired by the second camera may include: 00:00:09-00:00:18, and a plurality of frames of second preview images are acquired and displayed on the display screen of the mobile phone by the second camera.
The principle of the mobile phone executing S505 to generate the first video file in the embodiment of the present application is described herein with reference to fig. 4 and fig. 7C.
The preview video stream (including a plurality of frames of preview images) in the surficial view of the mobile phone is collected by a preview camera of the mobile phone and displayed on a display screen. I.e., the preview video stream in the surfmeview is the video stream that the user wants to capture and generate. Thus, as shown in fig. 7C, video recording is started from the handset, and a video processing (Media Recorder) module 422 acquires the preview video stream from the surface view in real time and buffers the acquired video stream. Thus, upon receipt of the second operation (i.e., stopping recording the video), the video processing (Media Recorder) module 422 may generate a video file comprising the buffered video stream.
By adopting the method provided by the embodiment of the application, the mobile phone can switch the camera in the video recording process. As shown in fig. 7C, after the camera is switched, the mobile phone can continue to record video, and the video processing (Media Recorder) module 422 will not be affected to obtain the first video stream from the surface view in real time, and buffer the first video stream.
From the above description, it is clear that: after the preview camera of the mobile phone is switched from the first camera to the second camera, the preview video stream in the surface view is also switched, for example, the preview video stream in the surface view is switched from the first video stream collected by the first camera to the second video stream collected by the second camera. Thus, after the handset switches cameras, the video processing (Media Recorder) module 422 obtains the preview video stream from the surface view, and the first video stream collected by the first camera becomes the second video stream collected by the second camera. In this way, a second video stream may be acquired and buffered by a Media Recorder (422). And receiving a second operation (namely, an operation of stopping recording the video) of the user, and stopping recording the video by the mobile phone. At this time, a video processing (Media Recorder) module 422 may generate a first video file including the buffered first video stream and the second video stream.
It should be noted that, the video file generated in S505 by the mobile phone, such as the first video file shown in fig. 7B, is a complete video file. By the method provided by the embodiment of the application, after the mobile phone finishes recording the video, a complete first video file can be generated and generated. That is, by adopting the method, the video files with multiple visual angles can be obtained by one shooting, a plurality of temporary video files can not be generated, and the temporary video files do not need to be integrated.
In the embodiment of the application, in the process of recording video by the mobile phone, a first operation of a user on a view finding interface (such as a first interface) of recording video by the mobile phone, such as a clicking operation on a first control for triggering the mobile phone to switch the camera, can be received. Then, the mobile phone can respond to the first operation to switch the first preview image acquired by the first camera in the first interface to the second preview image acquired by the second camera, namely, the camera of the mobile phone is switched in the process of recording the video. Finally, the mobile phone receives a second operation (such as clicking the record stop button) from the user, and can generate a complete video file including the first video stream and the second video stream.
In summary, by adopting the method of the embodiment of the application, the camera can be switched in the video recording process. Moreover, by adopting the method, the multi-view video file can be obtained by one shooting, a plurality of temporary video files are not generated, the temporary video files are not required to be integrated, the clicking operation of a user on a stop recording button is received, and the multi-view video file can be generated in real time for the user to view at any time. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
Furthermore, the method of the embodiment of the application does not limit the duration of video recording of the mobile phone. That is, the mobile phone executes the method of the embodiment of the application, and can record video files with any time length according to the requirement of the user.
In other embodiments, the mobile phone may switch the camera at least twice during one video capturing process. For example, assume that the mobile phone does not receive the second operation of the user when the duration of recording the video is 00:00:18, but receives the first operation of the user again when the duration of recording the video is 00:01:09.
For example, over time, the cell phone may display the video recording viewfinder interface 801 shown in fig. 8A, where the time duration of the time option 805 in the video recording viewfinder interface 801 is 00:01:09. The second preview image 802 is included in the viewfinder of the viewfinder interface 801 of the recorded video.
The handset may receive a first operation by the user of a first control (also referred to as toggling an icon of the camera) 604 shown in fig. 8A. In response to a first operation of the first control 604 shown in fig. 8A by the user, the handset can switch the second preview image 802 to a third preview image captured by the first camera. For example, the handset may display the framing interface 803 of fig. 8B where the handset is recording video. The viewfinder of the viewfinder interface 803 of the recorded video includes a third preview image 804. The second preview image 802 and the third preview image 804 are images acquired by different cameras, and thus, as shown in fig. 8A and 8B, the second preview image 802 and the third preview image 804 are different. The third preview image 804 and the first preview image 602 are images collected by the first camera. For example, as can be seen from comparing fig. 8B and 6A, the third preview image 804 is substantially identical to the first preview image 602.
In the process of recording the video by the mobile phone, the timing duration of the timing options in the viewing interface of recording the video by the mobile phone can be changed along with the time. For example, the timing duration of the timing option 805 shown in fig. 8A is 00:01:09, the timing duration of the timing option 806 shown in fig. 8B is 00:01:10, and the timing duration of the timing option 808 shown in fig. 8C is 00:01:20 over time.
Assume that the mobile phone receives a second operation of the user when the duration of video recording is 00:01:20. For example, as shown in fig. 8C, when the timing duration of the timing option 808 is 00:01:20, the mobile phone receives the second operation of the stop recording button 603 shown in fig. 8C by the user. Upon receiving the second operation of the stop recording button 603 shown in fig. 8C by the user, the mobile phone may generate the second video file shown in fig. 9A. As shown in fig. 9A, the second video file includes: a first video stream, a second video stream, and a third video stream. The first video stream comprises a plurality of frames of first preview images displayed on a display screen of the mobile phone under the condition that the first camera is used as a preview camera. The second video stream includes a plurality of frames of second preview images displayed on a display screen of the mobile phone when the second camera is used as the preview camera. The third video stream includes a plurality of frames of third preview images displayed on the display screen of the mobile phone under the condition that the first camera is used as the preview camera.
It should be understood that the second video file generated by the mobile phone includes all preview images displayed in the viewing interface of the video recorded by the mobile phone during the video recording process of the mobile phone.
For example, assume that the cell phone is the first camera as the preview camera from 00:00:00 video recording to 00:00:08, without switching cameras. As can be seen from the above description in connection with fig. 6A-6C and 8A: during the period of 00:00:00-00:00:08, the first camera is used as a preview camera; during the period of 00:00:09-00:01:09, the second camera is used as a preview camera; the first camera is used as a preview camera in the period of 00:01:10-00:01:20. Thus, as shown in fig. 9A, the second video file generated by the mobile phone may include: 00:00:00-00:00:08, and a first video stream acquired by a first camera; 00:00:09-00:01:09, and a second video stream acquired by a second camera; and a third video stream acquired by the first camera during a period of 00:01:10-00:01:20.
Wherein, during the period of 00:00:00-00:00:08, the first video stream collected by the first camera may include: 00:00:00-00:00:08, and acquiring and displaying multiple frames of first preview images on a display screen of the mobile phone by the first camera. 00:00:09-00:01:09, the second video stream acquired by the second camera may include: 00:00:09-00:01:09, and a plurality of frames of second preview images are acquired and displayed on the display screen of the mobile phone by the second camera. 00:01:10-00:01:20, the third video stream collected by the first camera may include: 00:01:10-00:01:20, and acquiring and displaying a plurality of frames of third preview images on a display screen of the mobile phone by the first camera.
It should be noted that the second video file generated by the mobile phone (such as the second video file shown in fig. 9A) is a complete video file. By the method provided by the embodiment of the application, after the mobile phone finishes recording the video, a complete video file can be generated and generated. That is, by adopting the method, the video files with multiple visual angles can be obtained by one shooting, a plurality of temporary video files can not be generated, and the temporary video files do not need to be integrated. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
In some embodiments, after the mobile phone starts recording the video, the camera cannot be switched during the process of recording the video in response to the first operation. Instead, after the video recording is started, the camera can be switched in the video recording process in response to the first operation after a preset function (such as a function of switching the camera in the video recording process) is started by the user. Specifically, as shown in fig. 9C, before S501, the method according to the embodiment of the present application may further include S901-S903. As shown in fig. 9C, S501 shown in fig. 5 may include S904.
S901, displaying a fourth interface by the mobile phone. The fourth interface is a view finding interface for recording video by the mobile phone. The fourth interface includes a start recording button. The start recording button is used for triggering the mobile phone to start recording video.
Wherein, although the fourth interface and the first interface are all view finding interfaces for recording video of the mobile phone; however, the first interface is a viewing interface of the mobile phone recording video, that is, a viewing interface of the mobile phone having started recording video; and the fourth interface is a view finding interface that the mobile phone does not start recording video. For example, the first interface includes a stop recording button and the fourth interface includes a start recording button.
It should be appreciated that when the handset displays the fourth interface, the handset has entered the video mode. In the video recording mode, the mobile phone can start recording video as long as the mobile phone receives the click operation of the start recording button by the user. For example, the handset may display the fourth interface 104 shown in fig. 1B, where the fourth interface 104 is a viewing interface for video recorded by the handset. The fourth interface 104 includes a start recording button 108.
S902, responding to clicking operation of a recording start button in the fourth interface by a user, and displaying a fifth interface by the mobile phone. The fifth interface is a viewing interface where the cell phone is recording video. The fifth interface includes a preset function switch.
The preset function switch is used for triggering the mobile phone to start or close the preset function. The preset function is a function of switching cameras in the video recording process.
For example, in response to a user clicking (e.g., clicking) on the start record button 108 in the fourth interface 104 shown in fig. 1B, the handset may display the fifth interface 1001 shown in fig. 10A. The fifth interface 1001 is a view interface where the mobile phone is recording video, for example, the fifth interface 1001 includes a stop recording button 603. The fifth interface 1001 further includes a preset function switch (e.g., a switch) 1002. The switch 1002 is used to trigger the mobile phone to turn on or off a preset function.
It should be noted that the fifth interface and the first interface are both viewing interfaces where the mobile phone is recording video. The differences are: when the mobile phone displays the first interface, the preset function of the mobile phone is started, and the mobile phone responds to the first operation of the user on the first interface to switch the camera. When the mobile phone displays the fifth interface, the preset function of the mobile phone is not started yet, and the mobile phone responds to the click operation of the preset function switch in the fifth interface by a user to start the preset function.
S903, the mobile phone receives a third operation of the preset function switch by the user, and the third operation is used for triggering the mobile phone to start the preset function.
The preset function is a function of switching cameras in the video recording process.
And S904, responding to a third operation of a preset function switch by a user, and displaying the first interface, such as the first interface comprising the first control, by the mobile phone.
For example, the mobile phone may receive a third operation of the preset function switch (e.g., the switch) 1002 shown in fig. 10A by the user. In response to a third operation of the preset function switch (e.g., a change-over switch) 1002 by the user, the mobile phone may display a first interface 1003 shown in fig. 10B. The first interface 1003 includes a first control 604. The first control 604 is used to trigger the mobile phone to switch the camera. The first interface 1003 further includes a preset function switch 1004.
In some embodiments, the mobile phone may display the preset function switch in the third display state on the fifth interface, and display the preset function switch in the fourth display state on the first interface. The third display state is used for indicating that the mobile phone has not started the preset function, and the fourth display state is used for indicating that the mobile phone has started the preset function. For example, the mobile phone displays a preset function switch 1002 in a third display state, such as a "switch" of black-on-white character, on a fifth interface 1001 shown in fig. 10A; the mobile phone displays a preset function switch 1004 in a fourth display state, such as a "change-over switch" of black-matrix white words, on a first interface 1003 shown in fig. 10B.
In this embodiment, the mobile phone may instruct the mobile phone to turn on/off the preset function through the state of the preset function switch. Thus, the user can judge whether the preset function is on/off by observing the state of the preset function switch. Of course, the user can also judge whether the preset function is on/off by observing whether the view finding interface of the video being recorded by the mobile phone comprises the first control.
In other embodiments, the mobile phone may also close the preset function in response to a user operation during the video recording process. Specifically, after S904, the method according to the embodiment of the present application may further include S905 to S906. S905: the mobile phone receives a fourth operation of the preset function switch by a user, wherein the fourth operation is used for triggering the mobile phone to close the preset function. S906, responding to a fourth operation of a preset function switch by a user, closing the preset function by the mobile phone, and displaying a sixth interface. The sixth interface is a viewfinder interface in which the cell phone is recording video. When the mobile phone displays the sixth interface, the camera cannot be switched in response to the first operation of the user. For example, the sixth interface does not include the first control described above, and thus the camera cannot be switched in response to the first operation by the user.
Note that the cell phone may execute S905 to S906 in the process of the cell phone executing S502 to S503 after S904. That is, before and after the mobile phone switches the camera, the mobile phone can execute S905-S906 to close the preset function.
For example, in response to a fourth operation of the preset function switch 1004 shown in fig. 10B by the user (e.g., a switch), the mobile phone may display a sixth interface 1005 shown in fig. 10C, where the sixth interface 1005 is a viewing interface in which the mobile phone is recording video.
In this embodiment, the mobile phone may turn on/off the preset function according to the user's requirement in response to the third operation of the user. The preset function is turned on/off according to the requirements of the user, so that the shooting experience of the user can be improved; the idle camera can be closed by closing the preset function, so that the power consumption of the mobile phone can be reduced.
In other embodiments, after the mobile phone starts recording the video, if the preset function of the mobile phone is started, the mobile phone may switch the camera in the process of recording the video in response to the first operation. However, after the mobile phone starts to record the video, if the preset function of the mobile phone is not started, the mobile phone cannot switch the camera in the process of recording the video in response to the first operation.
Specifically, as shown in fig. 10D, before S501, the method according to the embodiment of the present application may further include S1001. As shown in fig. 10D, S501 shown in fig. 5 may include S1002.
S1001, the mobile phone displays a fourth interface. The fourth interface is a view finding interface for recording video by the mobile phone. The fourth interface includes a start recording button. The start recording button is used for triggering the mobile phone to start recording video.
The detailed description of the fourth interface may refer to the description of the fourth interface in S901, which is not repeated herein in the embodiments of the present application. For example, the handset may display the fourth interface 104 shown in fig. 1B, where the fourth interface 104 is a viewing interface for video recorded by the handset. The fourth interface 104 includes a start recording button 108.
S1002, responding to clicking operation of a recording start button in a fourth interface by a user, and if a preset function of the mobile phone is started, displaying a first interface, such as a first interface comprising a first control, by the mobile phone.
For example, in response to a user clicking on the start record button 108 in the fourth interface 104 shown in fig. 1B, the handset may display the first interface 1101 shown in fig. 11. The first interface 1101 includes a first control 604. The first interface 1101 also includes a stop video button, a timer option, and the like.
In this embodiment, the mobile phone may start the above-mentioned preset function by any one of the following implementation manners, that is, the function of switching the camera during the video recording process.
Implementation mode (1): and the mobile phone responds to the operation of starting the preset function input by the user on the setting interface, and starts the preset function.
For example, as shown in fig. 12, the setup interface 1201 of the mobile phone includes a preset function switch, such as a "video switch camera" switch 1202. In response to the user's turning on of the "video switch camera" switch 1202, the mobile phone may activate a preset function. After the mobile phone starts the preset function, the mobile phone may display a first interface 1101 shown in fig. 11, that is, a viewing interface for recording video. In response to the user's closing operation of the "video switch camera" switch 1202, the mobile phone may close a preset function. After the mobile phone closes the preset function, the mobile phone may display the viewing interface 110 for recording video shown in fig. 1C.
The setup interface 1201 shown in fig. 12 also includes a "flight mode" switch, a "WLAN" option, a "bluetooth" option, a "mobile network" option, and the like for the handset. For specific functions of these switches and options, reference may be made to the detailed description of each switch and option of the setting interface in the conventional technology, which is not described herein.
Implementation mode (2): the mobile phone responds to the operation of starting the preset function input by the user in the notification bar of the mobile phone, and starts the preset function.
For example, the cell phone may display a notification bar 1301 shown in fig. 13 in response to a user's drop-down operation on top of a display (e.g., touch screen) of the cell phone. The notification bar 1301 includes a preset function switch, such as a "video switch camera" switch 1302. In response to the user's turning on of the "video switch camera" switch 1302, the mobile phone may start a preset function. After the mobile phone starts the preset function, the mobile phone may display a first interface 1101 shown in fig. 11, that is, a viewing interface for recording video. In response to the user closing the "video switch camera" switch 1302, the mobile phone may close the preset function. After the mobile phone closes the preset function, the mobile phone may display the viewing interface 110 for recording video shown in fig. 1C.
The notification bar 1301 shown in fig. 13 also includes a "flight mode" switch, a "WLAN" option, a "bluetooth" option, a "mobile network" option, a "flashlight" switch, etc. of the handset. For specific functions of these switches and options, reference may be made to the detailed description of each switch and option in the notification bar in the conventional technology, which is not described herein.
In this embodiment, the mobile phone may display the first control on the view finding interface of the recorded video in response to the operation of starting to record the video by the user. Therefore, clicking operation of the user on the first control can be received, and the camera is switched, so that the service of switching the camera in the video recording process is provided for the user.
In other embodiments, if the mobile phone starts the preset function and the mobile phone is in the video recording mode, the mobile phone can start a plurality of cameras in the mobile phone to collect images, so that the non-sensing switching of the cameras is realized in the process of recording video by the mobile phone. The principle that the mobile phone starts a plurality of cameras to collect images so as to realize the noninductive switching of the cameras in the process of recording video by the mobile phone can be referred to the detailed description in the above embodiment, and will not be repeated here.
In this embodiment, in order to reduce the power consumption of the mobile phone, after the mobile phone turns off the preset function, the mobile phone may turn off the idle camera (i.e. the non-preview camera), i.e. the video stream of the idle camera (i.e. the non-preview camera).
In a second application scenario, the plurality of cameras may include a plurality of types of front cameras and rear cameras. In the embodiment of the application, the types of cameras can comprise: at least two of a main camera, a long-focus camera, a wide-angle camera, a super-wide-angle camera, a micro-distance camera, a fish-eye camera, an infrared camera, a depth camera and a black-and-white camera. In the application scene, the mobile phone can switch the front camera and the rear camera of the mobile phone in the video recording process by adopting the method of the embodiment of the application.
In the following embodiments, the method of the present embodiment is described by taking a mobile phone including a front main camera, a front wide-angle camera, a front tele camera, a rear main camera, a rear wide-angle camera, and a rear tele camera as an example. As shown in fig. 14, the method of the embodiment of the present application may include S1401-S1405.
S1401, the mobile phone displays a first interface. The first interface is a viewing interface where the cell phone is recording video. The first interface comprises a first preview image acquired by a first camera of the cameras, and a plurality of second controls, wherein each second control corresponds to one camera of the cameras.
Illustratively, the handset may display the first interface 1501 shown in fig. 15A. The first interface 1501 includes a stop record button 1503, and the timing duration of the timing options in the first interface 1501 is 00:00:08. Under the condition that the mobile phone is recording video, a stop recording button is included in a viewing interface of the video recorded by the mobile phone, and a timing option in the viewing interface of the video recorded by the mobile phone is timed. It can be seen that the first interface 1501 is a viewfinder interface where a video is being recorded by the handset.
In addition, a first preview image 1502 acquired by a first camera (such as a rear camera of a mobile phone) is displayed in a viewfinder of the first interface 1501. The first camera may be any one of a plurality of cameras of the cell phone. For example, in the following embodiments, the first camera is a rear-mounted main camera of the mobile phone.
As shown in fig. 15A, the first interface 1501 further includes a plurality of second controls, such as a "front-facing main shot" control, a "front-facing tele" control, a "front-facing wide" control, a "rear-facing main shot" control, a "rear-facing tele" control, and a "rear-facing wide" control.
The "front-end main camera" control shown in fig. 15A corresponds to a front-end main camera of the mobile phone, and is used for triggering the mobile phone to display a preview image acquired by the front-end main camera. The "front-facing tele" control shown in fig. 15A corresponds to a front-facing tele camera of the mobile phone, and is used to trigger the mobile phone to display a preview image acquired by the front-facing tele camera. The "front wide angle" control shown in fig. 15A corresponds to the front wide angle camera of the mobile phone, and is used for triggering the mobile phone to display the preview image acquired by the front wide angle camera.
The "post-master" control shown in fig. 15A corresponds to a post-master camera of the mobile phone, and is used to trigger the mobile phone to display a preview image acquired by the post-master camera. The "rear-mounted tele" control shown in fig. 15A corresponds to a rear-mounted tele camera of the mobile phone, and is used for triggering the mobile phone to display a preview image acquired by the rear-mounted tele camera. The "rear wide angle" control shown in fig. 15A corresponds to the rear wide angle camera of the mobile phone, and is used for triggering the mobile phone to display the preview image collected by the rear wide angle camera.
In some embodiments, in S1401, the handset may display the second control of the first camera on the first interface in a manner that is different from the second controls of the other cameras. For example, the mobile phone may display the second control of the first camera in the first display state on the first interface, and display the second control of the other cameras in the second display state on the first interface.
Illustratively, taking the example that the first camera is a rear-mounted main camera of the mobile phone. As shown in fig. 15A, the mobile phone may display a "post-panning" control in a first display state (e.g., black matrix white) on the first interface. The 'post-master-camera' control in the first display state is used for indicating the mobile phone to currently display the preview image acquired by the post-master camera.
As shown in fig. 15A, the mobile phone may display a "front-facing main shot" control, a "front-facing tele" control, a "front-facing wide" control, a "rear-facing tele" control, and a "rear-facing wide" control in a second display state (e.g., white background black characters) on the first interface. The second control in the second display state is used for indicating that the mobile phone does not display the preview image acquired by the camera corresponding to the second control currently.
The mobile phone displays the second control of the first camera in a mode different from the second control of the other cameras, so that a user can quickly identify the preview camera of the mobile phone.
S1402, the mobile phone receives a first operation of a first control in the plurality of second controls by a user. The first operation is for triggering the electronic device to switch to use a second camera of the plurality of cameras.
Wherein the first control is any one of a plurality of second controls. The second camera is a camera corresponding to the first control. The second camera is different from the first camera. The second camera may be any camera other than the first camera among the plurality of cameras. For example, in the case where the first camera is a rear-mounted main camera of the mobile phone, the second camera may be any one of a front-mounted main camera, a front-mounted wide-angle camera, a front-mounted tele camera, a rear-mounted wide-angle camera, or a rear-mounted tele camera.
In the following embodiments, the first camera is a rear-mounted main camera of the mobile phone, and the second camera is a front-mounted main camera. In this case, the first control is a "front-facing main" control shown in fig. 15A. The first operation may be a click operation (e.g., a single click operation) of the "front-facing main" control shown in fig. 15A by the user.
S1403, responding to the first operation of the first control, and displaying a second interface by the mobile phone. The second interface is a viewing interface where the cell phone is recording video. The second interface includes a second preview image captured by a second camera of the plurality of cameras.
The second interface also comprises a plurality of second controls, and each second control corresponds to one camera of the plurality of cameras. In some embodiments, in S1403, the mobile phone may display the second control of the second camera on the second interface in a manner different from the second controls of the other cameras. For example, the mobile phone may display the second control of the second camera in the first display state on the second interface, and display the second control of the other cameras in the second display state on the second interface.
Illustratively, taking the example that the second camera is a front-facing main camera of the mobile phone. As shown in fig. 15B, the mobile phone may display a "front-facing main" control in a first display state (e.g., black matrix white) on the second interface. The front-end main shooting control in the first display state is used for indicating the mobile phone to currently display the preview image acquired by the front-end main camera. As shown in fig. 15B, the mobile phone may display a "post-main" control, a "pre-tele" control, a "pre-wide" control, a "post-tele" control, and a "post-wide" control in a second display state (e.g., white background black characters) on the second interface. The second control in the second display state is used for indicating that the mobile phone does not display the preview image acquired by the camera corresponding to the second control currently.
That is, the mobile phone can switch the first preview image in the first interface to the second preview image collected by the second camera.
For example, in response to a first operation by the user of the "front-facing main" control shown in fig. 15A, the handset may display the framing interface (i.e., second interface) 1504 of fig. 15B where the handset is recording video. That is, in response to the first operation of the "pre-main" control shown in fig. 15A by the user, the preview image in the framing interface (i.e., the first interface) in which the mobile phone is recording video is switched from the first preview image 1502 shown in fig. 15A to the second preview image 1505 shown in fig. 15B. The first preview image 602 and the second preview image 606 are images captured by different cameras, and thus, as shown in fig. 15A and 15B, the first preview image 1502 and the second preview image 1505 are different.
It should be noted that, in the process of executing S1401, the mobile phone may cache the video stream including the above-mentioned multi-frame first preview image. However, in response to the first operation, the mobile phone does not pause or stop recording video, nor does the mobile phone generate a video file of a video stream composed of a plurality of frames of the first preview image. And continuing to record the video, caching the video stream comprising a plurality of frames of second preview images, and stopping recording the video and generating a first video file by responding to the second operation by the mobile phone until receiving the second operation of the user. The mobile phone generates the first video file, and the detailed description of the first video file may refer to the content in the following embodiments, which are not described herein.
S1404, the mobile phone receives a second operation of the user on a second interface. The second operation is used for triggering the mobile phone to stop recording the video.
The detailed description of S1404 may refer to the description of S504 in the above embodiment, and will not be repeated here.
S1405, the mobile phone generates a first video file. The first video file includes a first video stream including a plurality of frames of first preview images and a second video stream including a plurality of frames of second preview images.
For example, assume that the handset receives a second operation from the user when the duration of recording the video is 00:00:18. The handset may generate the first video file shown in fig. 7B.
In the embodiment of the application, in the process of recording video by the mobile phone, a first operation of a user on a view finding interface (such as a first interface) of recording video by the mobile phone, such as a clicking operation on a first control for triggering the mobile phone to switch the camera, can be received. Then, the mobile phone can respond to the first operation to switch the first preview image acquired by the first camera in the first interface to the second preview image acquired by the second camera, namely, the camera of the mobile phone is switched in the process of recording the video. Finally, in response to a second operation by the user (e.g., a click operation on a stop recording button), the handset may generate a complete video file including the first video stream and the second video stream.
In summary, by adopting the method of the embodiment of the application, the camera can be switched in the video recording process. Moreover, by adopting the method, the multi-view video file can be obtained by one shooting, a plurality of temporary video files are not generated, the temporary video files are not required to be integrated, the clicking operation of a user on a stop recording button is received, and the multi-view video file can be generated in real time for the user to view at any time. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
Furthermore, the method of the embodiment of the application does not limit the duration of video recording of the mobile phone. That is, the mobile phone executes the method of the embodiment of the application, and can record video files with any time length according to the requirement of the user.
In other embodiments, the mobile phone may switch the camera at least twice during one video capturing process. For example, assume that the mobile phone does not receive the second operation of the user when the duration of recording the video is 00:00:18, but receives the first operation of the "front tele" control again when the duration of recording the video is 00:01:09. In response to a first operation of the "front-end tele" control by the user, the cell phone may switch the second preview image 1505 to a third preview image acquired by the front-end tele camera (i.e., the third camera).
If the duration of video recording of the mobile phone is 00:01:20, receiving a second operation of the user; and the mobile phone does not switch the camera in the period of 00:01:10-00:01:20. Upon receiving a second operation of the stop recording button by the user, the mobile phone may generate a second video file as shown in fig. 15C.
As shown in fig. 15C, the second video file includes: a first video stream, a second video stream, and a third video stream. The first video stream comprises a plurality of frames of first preview images displayed on a display screen of the mobile phone under the condition that the rear-mounted main camera is used as a preview camera. The second video stream comprises a plurality of frames of second preview images displayed on a display screen of the mobile phone under the condition that the front main camera is used as a preview camera. The third video stream comprises a plurality of frames of third preview images displayed on a display screen of the mobile phone under the condition that the front-mounted tele camera is used as a preview camera. That is, as shown in fig. 15C, the second video file generated by the mobile phone may include: 00:00:00-00:00:08, and rearing a first video stream acquired by a main camera; 00:00:09-00:01:09, and leading the second video stream acquired by the main camera; and a third video stream acquired by the front-end tele camera in the period of 00:01:10-00:01:20.
Wherein, during the period of 00:00:00-00:00:08, the first video stream acquired by the rear main camera may include: and (3) acquiring and displaying a plurality of frames of first preview images on a display screen of the mobile phone by the rear main camera during the period of 00:00:00-00:00:08. The period of 00:00:09-00:01:09, the second video stream collected by the front-end main camera can comprise: 00:00:09-00:01:09, and acquiring and displaying a plurality of frames of second preview images on a display screen of the mobile phone by the front main camera. The third video stream acquired by the front-end tele camera during the period of 00:01:10-00:01:20 can comprise: and (3) acquiring and displaying a multi-frame third preview image on a display screen of the mobile phone by the front-end tele camera within the period of 00:01:10-00:01:20.
It should be noted that the second video file generated by the mobile phone (the second video file shown in fig. 15C) is a complete video file. By the method provided by the embodiment of the application, after the mobile phone finishes recording the video, a complete video file can be generated and generated. That is, by adopting the method, the video files with multiple visual angles can be obtained by one shooting, a plurality of temporary video files can not be generated, and the temporary video files do not need to be integrated. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
It should be understood that, in the embodiment of the present application, the positions of the plurality of second controls at the first interface or the second interface include, but are not limited to, the positions shown in fig. 15A or fig. 15B.
The handset may also display the plurality of second controls, for example, in a viewfinder frame of a first interface (i.e., a viewfinder interface in which the handset is recording video). For example, the handset may display a first interface 1601 shown in fig. 16A (i.e., a viewfinder interface where the handset is recording video). A first preview image 1602 is displayed in the viewfinder of the first interface 1601. A plurality of second controls, a "front-facing main shot" control, a "front-facing tele" control, a "front-facing wide" control, a "rear-facing main shot" control, a "rear-facing tele" control, and a "rear-facing wide" control are also displayed in the viewfinder of the first interface 1601. In response to a first operation by the user of a first control (e.g., a "pre-master" control) 1603 of the plurality of second controls shown in fig. 16A, the handset can display a second interface 1604 shown in fig. 16B. That is, in response to the first operation of the "pre-main" control shown in fig. 16A by the user, the preview image in the viewing interface (i.e., the first interface) in which the mobile phone is recording video is switched from the first preview image 1602 shown in fig. 16A to the second preview image 1605 shown in fig. 16B.
In other embodiments, in order to avoid that the second controls are displayed on the viewfinder interface of the video recorded by the mobile phone, occupy a display area in a viewfinder in the viewfinder interface, so as to influence the user to view the preview image. In general, the mobile phone will not display the plurality of second controls on the first interface. And responding to the preset operation of the user, the mobile phone can display the plurality of second controls on the first interface. For example, the handset may display the first interface 1606 shown in fig. 16C, which first interface 1606 does not include the plurality of second controls. In response to a preset operation (e.g., a right-to-left sliding operation input by a right frame of the display screen) performed by the user on the first interface 1606, the mobile phone may display the first interface 1601 shown in fig. 16A.
In response to a first operation by the user of a first control (e.g., a "pre-master" control) 1603 of the plurality of second controls shown in fig. 16A, the handset can display a first interface 1607 shown in fig. 16D. The first interface 1607 does not include a plurality of second controls. In response to a preset operation (e.g., a right-to-left sliding operation input by a right frame of the display screen) performed by the user on the first interface 1607, the mobile phone may display the first interface 1605 shown in fig. 16B.
It should be noted that in this embodiment, the mobile phone does not display a plurality of second controls on the first interface, not because the mobile phone does not open a preset function; but rather to avoid the plurality of second controls occupying a display area in a viewfinder in the viewfinder interface, affecting the user's view of the preview image.
In this embodiment, the mobile phone may not display the plurality of second controls during the video recording process. Instead, the plurality of second controls are displayed in response to a user's operation when the user wants to switch the camera, according to the user's needs. Therefore, the mobile phone can be supported to switch the camera in the video recording process, the plurality of second controls can be prevented from occupying the display area in the view-finding frame in the view-finding interface, and the shooting experience of a user can be improved.
In other embodiments, the handset may display a third interface including a third control prior to displaying the first interface including the plurality of second controls. The third control may be a camera toggle option. The third control is used for triggering the mobile phone to display a plurality of second controls. The third interface is a viewing interface for recording video by the mobile phone. The third interface does not include a plurality of second controls. In response to a click operation of the third control by the user, the mobile phone can display a first interface (i.e., a viewing interface for recording video) including a plurality of second controls. For example, the handset may display a third interface 1608 shown in fig. 16E, the third interface 1608 including a third control (e.g., camera switch option) 1609. In response to a user clicking on the third control 1609, the handset can display a first interface 1610 shown in fig. 16F, the first interface 1610 including a plurality of second controls 1611. Alternatively, in response to a click operation of the third control 1609 by the user, the cell phone may display the first interface shown in fig. 16A or fig. 15A.
Optionally, the first interface 1609 shown in fig. 16F further includes a third control (e.g., a camera switch option) 1609. In response to a user clicking on the third control 1609 shown in fig. 16F, the handset can hide the plurality of second controls 1611 in the first interface 1609, displaying the viewing interface 1608 of the recorded video shown in fig. 16E.
In the embodiment of the application, the plurality of second controls displayed on the viewing interface of the video recording by the mobile phone at least can comprise the following three implementation modes.
Implementation (a):
as shown in any one of fig. 15A, 15B, 16A, 16B, or 16F, the type indication information of the corresponding camera is displayed on each of the plurality of second controls. In the embodiment of the application, the type indication information of one camera is used for indicating the type of the camera, and can also indicate that the camera is a front camera or a rear camera.
For example, in response to a user clicking on the camera switch option 1609 shown in fig. 16E, the handset can display the first interface 1610 shown in fig. 16F. As shown in fig. 16F, the type of instruction information, "front main shot", "front tele", "front wide", "rear main shot", "rear tele", "rear wide" is displayed on each of the plurality of second controls 1611. The type indication information is used for indicating that the second control corresponds to the front-mounted main camera. The type indication information is used for indicating that the second control corresponds to the front tele camera. The type indication information "front wide angle" is used for indicating that the second control corresponds to the front wide angle camera. The type indication information is used for indicating that the second control corresponds to the rear-mounted main camera. The type indication information is used for indicating that the second control corresponds to the rear-mounted tele camera. The type indication information "rear wide angle" is used for indicating that the second control corresponds to the rear wide angle camera.
Implementation (b):
and each of the plurality of second controls is displayed with a preview image acquired by the corresponding camera. For example, as shown in fig. 16G, the first interface 1612 includes a plurality of second controls, such as second control 1613, second control 1614, second control 1615, second control 1616, second control 1617, and second control 1618.
The second control 1613 displays a preview image acquired by the rear-mounted main camera. A preview image acquired by the rear-mounted wide-angle camera is displayed in the second control 1614. The second control 1615 displays a preview image acquired by the rear-mounted tele camera. The second control 1616 displays a preview image captured by the front-facing main camera. A preview image acquired by the front wide-angle camera is displayed in the second control 1617. The second control 1618 displays a preview image acquired by the front-facing tele camera.
Therefore, the second control 1613 may also be referred to as a "post-panning" control, the second control 1614 may also be referred to as a "post-wide" control, and the second control 1615 may also be referred to as a "post-tele" control; the second control 1616 may also be referred to as a "front-facing main" control, the second control 1617 may also be referred to as a "front-facing wide" control, and the second control 1618 may also be referred to as a "front-facing tele" control. The handset may also display a first interface 1619 shown in fig. 16H.
The first interface 1612 shown in fig. 16G and the first interface 1619 shown in fig. 16H further include a camera switching option. In response to a click operation of the camera switching option shown in fig. 16G or 16H by the user, the mobile phone may hide the plurality of second controls, and display the first interface 1608 shown in fig. 16E.
It is understood that the preview images collected by the corresponding cameras are displayed on each first control, so that the shooting effect, the shooting view angle and the like of each camera can be intuitively displayed for a user, and the user can select the cameras meeting the user requirements, such as the shooting effect, the shooting view angle and the like, from the cameras. Thus, the shooting experience of the user can be improved.
Implementation (c):
and proxy information of the corresponding camera is displayed on each of the plurality of second controls. In the embodiment of the application, the proxy information of one camera can indicate that the camera is a front camera or a rear camera, and can also comprise the serial number of the camera.
In one case, the number of the camera may be assigned to the camera by the handset. For example, the number of the Camera may be the Camera ID of the Camera. Camera IDs of different cameras are different. In another case, the number of the camera may be assigned to the camera by the user in the cell phone. The numbers of different front cameras are different, and the numbers of different rear cameras are different.
Illustratively, in response to a user clicking on the camera switch option 1609 shown in fig. 16E, the handset can display the view interface (i.e., first interface) 1620 of the photograph shown in fig. 16I. As shown in fig. 16I, the first interface 1620 includes a plurality of second controls 1621. For example, the numbers of cameras are 1, 2, and 3. The plurality of second controls 1621 may include a "front camera 1" control, a "front camera 2" control, a "front camera 3" control, a "rear camera 1" control, a "rear camera 2" control, and a "rear camera 3" control.
The proxy information "front camera 1" is used to indicate that the second control (e.g. "front camera 1" control) corresponds to a front camera, and the number of the front camera is 1. For example, the number 1 is that the front camera is the front main camera. The proxy information "front camera 2" is used to indicate that the second control (e.g., "front camera 2" control) corresponds to a front camera, where the number of the front camera is 2. For example, the reference numeral 2 is a front camera and a front wide-angle camera. The proxy information "front camera 3" is used to indicate that the second control (e.g., "front camera 3" control) corresponds to a front camera, and the number of the front camera is 3. For example, the number 3 is that the front camera is a front tele camera.
The proxy information "rear camera 1" is used for indicating that the second control (such as "rear camera 1" control) corresponds to one rear camera, and the number of the rear camera is 1. For example, the number 1 is that the rear camera is the rear main camera. The proxy information "rear camera 2" is used to indicate that the second control (e.g. "rear camera 2" control) corresponds to a rear camera, and the number of the rear camera is 2. For example, the reference numeral 2 is a rear camera and a rear wide-angle camera. The proxy information "rear camera 3" is used to indicate that the second control (e.g., "rear camera 3" control) corresponds to a rear camera, and the number of the rear camera is 3. For example, the number 3 is a rear camera and the rear tele camera.
In other embodiments, the mobile phone may display a plurality of second controls on the first interface using at least one of implementations (a) - (c) above. The specific implementation manner of displaying the plurality of second controls on the first interface by the mobile phone can be preconfigured in the mobile phone or set in the mobile phone by a user. The specific method for receiving and displaying the plurality of second controls by the mobile phone according to the user setting may be described in the conventional technology without further description.
In other embodiments, the method of the embodiment of the present application may further include S901-S903 before S1401 described above. S1401 described above may include S904'. S904': and responding to a third operation of the preset function switch by the user, and displaying a first interface comprising a plurality of second controls by the mobile phone. The detailed descriptions of S901-S903 and S904' may refer to the related descriptions of the above embodiments, and are not repeated here.
In other embodiments, the method of the embodiment of the present application may further include S1001 before S1401 described above. S1401 described above may include S1002'. S1002': and responding to clicking operation of a recording start button in the fourth interface by a user, and displaying a first interface comprising a plurality of second controls by the mobile phone. The detailed descriptions of S1001 and S1002' may refer to the related descriptions of the above embodiments, and are not repeated here.
In other embodiments, the method of the first application scenario or the second application scenario may also be applied to a multi-scene shooting scenario of a mobile phone. The mobile phone can display a plurality of view-finding frames in a multi-view shooting scene, and each view-finding frame can display a preview image acquired by a camera. For example, the mobile phone may display the viewing interface of the recorded video shown in fig. 17A or fig. 18 in a multi-view shooting scene.
In a first application scenario, as shown in fig. 17A, the mobile phone may display two frames, where the frame 1701 displays a first preview image 1702 collected by a front camera, and the frame 1703 displays a first preview image 1704 collected by a rear camera. Included in the viewfinder 1701 are a stop video button 1706 and a first control 1705. Included in the view box 1702 are a stop video button 1707 and a first control 1708.
The mobile phone may perform the method in the first application scenario described above for the viewfinder 1701 and the viewfinder 1703, respectively, and switch the camera during the video recording process. For example, the handset may display the view interface of the recorded video shown in fig. 17B in response to a first operation by the user of the first control 1705 in the view box 1701 shown in fig. 17A.
The view interface of the recorded video shown in fig. 17B includes a view frame 1701 and a view frame 1703. The preview image in the viewfinder 1701 is switched from the first preview image 1702 collected by the front camera to the second preview image 1709 collected by the rear camera.
It should be noted that, the mobile phone executes the method in the first application scenario described above with respect to the viewfinder 1701, and does not affect the recording of the video in the viewfinder 1703. In addition, the mobile phone executes the method in the first application scenario described above with respect to the viewfinder 1703, and does not affect the recording of the video in the viewfinder 1701. For example, in response to a first operation of the first control 1705 shown in fig. 17A by the user, the preview image in the view frame 1701 shown in fig. 17B is switched to the second preview image 1709 acquired by the rear camera, compared to the view frame 1701 shown in fig. 17A; however, as shown in fig. 17B, the first preview image acquired by the rear camera is still displayed in the viewfinder 1702.
For a specific method of the mobile phone for switching the camera during the video recording process of the viewfinder 1701 and/or the viewfinder 1703, reference may be made to the detailed description of S501-S505 in the above embodiment, which is not repeated herein.
In a second application scenario, as shown in fig. 18, the handset may display two frames, such as frame 1801 and frame 1802. The viewfinder 1801 displays a first preview image acquired by the front camera, and the viewfinder 1802 displays a first preview image acquired by the rear camera. The viewfinder 1801 includes a stop video button and a plurality of second controls. The viewfinder 1802 includes a stop video button and a plurality of second controls.
The mobile phone may perform the method in the second application scenario described above for the viewfinder 1801 and the viewfinder 1802, respectively, and switch the camera during the video recording process. It should be noted that, the mobile phone executes the method in the second application scenario described above with respect to the viewfinder 1801, and does not affect the recording of the video in the viewfinder 1802. In addition, the mobile phone executes the method in the second application scenario described above with respect to the viewfinder 1802, and does not affect the recording of video in the viewfinder 1801.
For a specific method of the mobile phone for switching the camera during the video recording process of the viewfinder 1801 and/or the viewfinder 1802, reference may be made to the detailed description of S1401-S1405 in the above embodiment, which is not repeated herein.
In an exemplary embodiment of the present application, the mobile phone includes the camera 1 (i.e., the first camera) and the camera 2 (i.e., the second camera), and the method steps described in fig. 4 and the foregoing embodiment are combined to describe a method flow of capturing video by the mobile phone in the embodiment of the present application.
After the mobile phone enters the photographing mode, the system camera application 411 of the application layer 410 may trigger 1901 the bottom layer to start the main camera 1 of the mobile phone by default. The main camera 1 is a default camera of the mobile phone, such as a rear main camera. For example, the system Camera application 411 may send a notification carrying the Camera ID-1 of the Camera 1 to the hardware abstraction layer HAL 430 through the framework layer 420, the notification being for instructing the hardware abstraction layer HAL 430 to execute 1902, starting the video stream 1 of the Camera 1 according to the Camera ID-1. The hardware abstraction layer HAL 430 may instruct the Kernel layer (Kernel) to start the Camera 1 identified as Camera ID-1, so that the video stream 1 of the Camera 1 may be obtained from the Kernel layer (Kernel) 440. The Camera driver 441 of the Kernel layer (Kernel) 440 may activate the Camera 1 in the Camera device 442 according to the Camera ID-1.
The principle of capturing video streams by the Camera device 442 of the Kernel layer (Kernel) 440 is as follows: the Camera device 442 may convert an optical signal reflected in a viewing environment into an electrical signal, and the electrical signal is processed by the image signal processor ISP 443 to obtain a video stream.
The hardware abstraction layer HAL 430 may then process data (e.g., video stream 1) from the underlying layer (e.g., kernel layer 440) and then transfer it to the framework layer 420. For example, HAL layer 430 may convert parameters of kernel layer 440 regarding hardware devices into a software programming language recognizable by framework layer 420 and application layer 410.
The framework layer 420 may receive video stream 1 from the underlying layer (e.g., kernel layer 440) transmitted by the hardware abstraction layer HAL 430. The camera service 423 of the framework layer 420 may transfer the video stream 1 to an upper layer (e.g., the application layer 410) through an API 1 sub-API 2 interface 421. After the system camera application 411 of the application layer 410 receives the video stream 1, the video stream 1 may be presented at the viewfinder interface, e.g., the video stream 1 is refreshed at surfmeview at 1907.
Thereafter, the handset may execute 1904 to enter a video recording mode and then begin recording video. For example, the mobile phone may perform S901 to display a fourth interface including a start recording button, and then perform S902 to display a fifth interface including a preset function switch (i.e., a switch for turning on/off a preset function) and start recording video in response to a user' S click operation of the start recording button. At this time, the camera 1 serves as a preview camera of the mobile phone.
The handset may then execute 1905 the user dynamically selects to switch cameras (i.e., turn on preset functions). For example, the mobile phone may perform S903 to receive a third operation of the preset function switch by the user, that is, an operation for turning on the preset function. After the mobile phone performs 1905 the preset function, the application layer 410 may send a notification to the hardware abstraction layer HAL430 to instruct the hardware abstraction layer HAL430 to perform 1903, and start the video stream of the Camera 2 (i.e. the idle Camera) according to the Camera ID-2. At this time, the camera 1 and the camera 2 of the mobile phone are both started.
Thereafter, the handset may execute 1906, and a camera switch icon (i.e., a first control) may appear on the viewing interface of the handset. For example, the mobile phone may execute S904 to display a first interface including a first control in response to a third operation of the preset function switch by the user. After the user clicks the camera switch icon at 1906, the application layer 410 may execute 1907 to refresh the video stream in the surfmeview, e.g., switch the video stream in the surfmeview from video stream 1 to video stream 2. At this time, the camera 2 serves as a preview camera of the mobile phone.
Wherein, as shown in fig. 19, the application layer 410 may receive two video streams, such as video stream 1 and video stream 2, from the bottom layer. The application layer 410 may execute 1908 to refresh the video stream in the surfmeview in real time. And displaying the video stream acquired by the preview camera of the mobile phone in real time in the surface view.
Displaying the video stream acquired by the preview camera of the mobile phone in real time in the surface view; thus, the video processing module 422 of the framework layer 420 obtains and buffers the video streams from the surfacview in real time, so that all video streams presented in the viewing interface of the recorded video of the mobile phone can be buffered. Thus, in response to a user ending the recording of video 1910, video processing module 422 may perform 1911 an immediate generation and generation of a video file comprising a video stream cached by video processing module 422.
Further, before the mobile phone executes 1906, after the mobile phone starts the preset function, the mobile phone may execute 1905 again, and the user dynamically selects to switch the camera, so as to close the preset function. After the mobile phone performs 1905 the preset function, the application layer 410 may send a notification to the hardware abstraction layer HAL 430 to instruct the hardware abstraction layer HAL 430 to perform 1909, and close the video stream of the Camera 2 (i.e. the idle Camera) according to the Camera ID-2.
Other embodiments of the present application provide an electronic device that may include: the display screen (e.g., touch screen), memory, and one or more processors. The display, memory, and processor are coupled. The memory is for storing computer program code, the computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device may perform the functions or steps performed by the mobile phone in the above-described method embodiments. The structure of the electronic device may refer to the structure of the electronic device 200 shown in fig. 2.
The present application also provides a chip system, as shown in FIG. 20, the chip system 2000 includes at least one processor 2001 and at least one interface circuit 2002. The processor 2001 and interface circuit 2002 may be interconnected by wires. For example, the interface circuit 2002 may be used to receive signals from other devices (e.g., a memory of an electronic apparatus). For another example, the interface circuit 2002 may be used to send signals to other devices (e.g., the processor 2001). Illustratively, the interface circuit 2002 may read instructions stored in the memory and send the instructions to the processor 2001. The instructions, when executed by the processor 2001, may cause the electronic device to perform the various steps of any embodiment of the application. Of course, the system-on-chip may also include other discrete devices, which are not particularly limited in accordance with embodiments of the present application.
The embodiment of the application also provides a computer storage medium, which comprises computer instructions, when the computer instructions run on the electronic equipment, the electronic equipment is caused to execute the functions or steps executed by the mobile phone in any method embodiment of the application.
Embodiments of the present application also provide a computer program product which, when run on a computer, causes the computer to perform the functions or steps performed by the handset in any of the method embodiments of the application.
The methods in the following embodiments may be implemented in the electronic device 200 having the above-described hardware structure.
The software system of the electronic device 200 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the electronic device 200 is illustrated.
Fig. 21 is a software block diagram of an electronic device 200 according to an embodiment of the present application. The layered architecture may divide the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer (abbreviated as application layer) 2110, an application framework layer (abbreviated as framework layer) 2120, a hardware abstraction layer (hardware abstract layer, HAL) layer 2130, and a Kernel layer (Kernel, also referred to as driver layer) 2140, respectively.
The Application layer (Application) 2110 may include a series of Application packages, among other things. The application layer may include a plurality of application packages. The plurality of application packages may be camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, desktop start (Launcher) applications, etc. For example, as shown in fig. 21, the application layer 2110 may include a camera system application (also referred to as a camera application) 2111.
As shown in fig. 21, the camera system application 2111 may be used to present the video stream reported by the bottom layer in a viewing interface of the recorded video in a recorded video mode (i.e., a video recording mode). The electronic device 200 may include a plurality of cameras, each of which may be configured to capture images, and successive multi-frame images captured by the cameras may form a video stream. That is, each of the cameras described above may be used to capture video streams.
For example, assume that the electronic device 200 includes a front camera and a rear camera; the video stream 1 shown in fig. 21 may be a video stream collected by a front-end camera, referred to as a front-end video stream; the video stream 2 shown in fig. 21 may be a video stream collected by a rear camera, referred to as a rear video stream. Although multiple cameras of the electronic device 200 may collect video streams; however, in general, only one video stream captured by one camera is shown in the viewing interface of the recorded video. The video stream shown in the view interface of the recorded video may be referred to as a preview video stream. The camera that captures the preview video stream may be referred to as a preview camera. Through the preview video stream presented by the camera system application 2111, the user can view the view of the current video stream in real time. The preview video stream may be video stream 1 or video stream 2 described above.
In the embodiment of the application, the user can dynamically switch the camera according to the needs of the user. For example, as shown in fig. 21, the camera system application 2111 is also used to provide the following functions: in the record video mode (i.e., record video mode), after the camera system application 2111 initiates shooting (i.e., the cell phone starts recording video), shooting may be paused (i.e., video is paused) in response to a pause operation by the user. After shooting is started, the view finding interface of the electronic device which is recording video can comprise a pause recording button, and the pause operation can be a click operation of the pause recording button by a user. In response to a pause operation by the user, the camera system application 2111 pauses shooting, and the framing interface for the recorded video may appear to switch camera icons (i.e., first controls). The camera switching icon is used for triggering the mobile phone to switch the camera. In response to a user clicking on the toggle camera icon (i.e., the first control), the camera system application 2111 may toggle the preview camera to refresh the video stream (i.e., refresh the preview video stream). For example, when the preview camera is a front camera, the preview video stream is video stream 1. In response to the user clicking the switch camera icon, the camera system application 2111 may switch the preview camera to the rear camera, refreshing the preview video stream to video stream 2.
Wherein the Camera identity (Camera ID) of each Camera is different. The application layer 2110 may instruct the bottom layer (e.g. kernel layer 2140) to start the corresponding Camera through the Camera ID of the Camera, and instruct the bottom layer (e.g. frame layer 2120) to process the preview video stream collected by the preview Camera according to the Camera ID of the preview Camera. The application layer 2110 may also instruct the bottom layer (e.g. the kernel layer 2140) to close the corresponding Camera through the Camera ID of the Camera according to the operation of the user.
Further, in the video recording mode, if the user clicks the pause recording button again, the switch camera may be turned off (i.e., the function of switching the camera during the video recording is turned off), and the camera system application 2111 will not display the switch camera icon (i.e., the first control) on the viewfinder interface of the video recording. Also, the camera system application 2111 may also instruct the bottom layer to shut down the idle video stream. The idle video stream comprises other video streams except the preview video stream in the video streams collected by the cameras of the electronic equipment. The camera system application 2111 may close the idle video stream by closing the idle camera. The idle camera comprises other cameras except the preview camera in a plurality of cameras of the electronic equipment. The power consumption of the electronic device can be reduced by closing the idle camera.
The Framework layer (Framework) 2120 provides the application programming interfaces (application programming interface, APIs) and programming frameworks for the application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 21, the framework layer may provide Camera APIs such as a Camera API (API 1|api 2) 2121, a video processing (Media Recorder) module 2122, a Camera Service 2123, a Camera expansion Service (Camera Service Extra) 2125, and a hardware development kit (hardware software development kit, hw SDK) 2124.
The Camera API (API 1|api 2) 2121 serves as an interface for the underlying layers (e.g., hardware abstraction layer 2130) to interact with the application layer 2110. Specifically, the Camera API (API 1|api 2) 2121 may receive a notification from an upper layer (such as the application layer 2110) that the function of the Camera is switched during the process of starting the video recording, and process the notification that the function of the Camera is switched during the process of starting the video recording through the Camera service 2123, the Camera expansion service 2125, and the HwSDK 2124. Then, the kernel layer 2140 is instructed to turn on the idle camera by the HAL layer 2130, and the video streams collected by the preview camera and the idle camera are obtained by the HAL layer 2130. Camera API (API 1. Sub. API 2) 2121 may also receive Camera switch notifications from an upper layer (e.g., application layer 2110). The Camera switching notification includes a Camera ID to be switched to a preview Camera.
Typically, the application layer 2110 interacts with the user, and after triggering the electronic device 200 to begin recording video, the Media Recorder module 2122 can record the preview video stream of the Surface view presented to the user in real time and prepare to generate a video file at any time.
In the embodiment of the present application, when the application layer 2110 interacts with a user to trigger the electronic device 200 to switch the preview camera, the application layer 2110 may refresh the Surface view in real time, for example, the video stream collected by the preview camera after the Surface view is updated and then switched. At this point, the Media Recorder module 2122 does not need to do any operation (e.g., does not need to generate a video file), as long as it gets the video stream to the Surface view. In this way, the electronic device 200 switches the camera without sensing the Media Recorder module 2122, and when the application layer 2110 interacts with the user to trigger the electronic device 200 to stop recording video, a complete video file can be generated even if the camera is switched during video recording. The complete video file comprises preview video streams collected by a plurality of cameras before and after switching.
HAL layer 2130 is used to connect framework layer 2120 and kernel layer 2140. For example, HAL layer 2130 may be transparent to data between framework layer 2120 and kernel layer 2140. Of course, the HAL layer 2130 may also process data from the underlying layer (i.e., kernel layer 2140) and then transmit it to the framework layer 2120. For example, HAL layer 2130 may convert parameters of kernel layer 2140 regarding hardware devices into a software programming language recognizable by framework layer 2120 and application layer 2110. For example, HAL layer 2130 may include HAL3.0.
In an embodiment of the present application, the HAL layer 2130 may manage video streams collected by multiple cameras according to notifications from upper layers (such as the framework layer 2120 and the application layer 2110), for example, instruct the bottom layer (such as the kernel layer 2140) to turn off/on the video streams of the cameras according to the previous notification.
The core layer 2140 includes a Camera driver 2141, an image signal processor ISP 2143, and a Camera device 2142. The Camera device 2142 may include a plurality of cameras each including a Camera lens, an image sensor, and the like. The image signal processor ISP 2143 may be provided separately from a Camera (e.g., camera device 2142). In other embodiments, the image signal processor ISP 2143 may be disposed in a Camera (e.g., camera device 2142).
Among them, the image signal processor ISP 2143 and the Camera device 2142 are main apparatuses that take videos or pictures. The light signal reflected by the view finding environment is irradiated on the image sensor through the camera lens and can be converted into an electric signal, and the electric signal can be used as an original parameter stream (i.e. video stream) to be transmitted to the upper layer by the camera driver 2141 after being processed by the image signal processor ISP 2143. Also, the Camera driver 2141 may also receive a notification (e.g., a notification indicating to turn on or off the Camera) from an upper layer, and send a stream of functional processing parameters to the Camera device 2142 according to the notification to turn on or off the corresponding Camera.
In the following embodiments, the method according to the embodiments of the present application will be described by taking the electronic device 200 as an example of a mobile phone.
The embodiment of the application provides a method for shooting video, which can be applied to a mobile phone comprising a plurality of cameras. In a first application scenario, the plurality of cameras includes a first camera and a second camera. The first camera is a rear camera of the mobile phone, and the second camera is a front camera of the mobile phone; or, the first camera is a front camera of the mobile phone, and the second camera is a rear camera of the mobile phone. In the application scene, the mobile phone can switch the front camera and the rear camera of the mobile phone in the video recording process by adopting the method of the embodiment of the application. For example, as shown in fig. 22, the method of photographing video may include S2201 to S2207.
S2201, the mobile phone displays a first interface. The first interface is a viewing interface where the cell phone is recording video. The first interface includes a first preview image captured by a first camera of the plurality of cameras.
For example, the handset may display the first interface 2301 shown in fig. 23A. The first interface 2301 includes a stop recording button 2303, and the timing duration of the timing options 2307 in the first interface 2301 is 00:00:08. Under the condition that the mobile phone is recording video, a stop recording button is included in a viewing interface of the video recorded by the mobile phone, and a timing option in the viewing interface of the video recorded by the mobile phone is timed. It can be seen that the first interface 2301 is a viewfinder interface where the cell phone is recording video.
In addition, a first preview image 2302 acquired by a first camera (such as a rear camera of a mobile phone) is displayed in a viewfinder of the first interface 2301. The first interface 2301 also includes a pause recording button 2304. The pause record button 2304 is used to trigger the handset to pause recording video.
In the process of displaying the video recorded on the first interface, the mobile phone can cache the first preview image displayed on the first interface. Thus, the mobile phone can generate the video file comprising a plurality of frames of first preview images in response to the click operation of the record stop button by the user.
S2202, the mobile phone receives a first operation of a user on a first interface. The first operation is used for triggering the mobile phone to pause recording video.
In one implementation, the first interface may include a pause record button. The first operation may be a user click operation of a pause record button in the first interface. For example, as shown in fig. 23A, the first interface 2301 includes a pause recording button 2304. The first operation may be a click operation of the pause recording button 2304 by the user. The user clicks a pause recording button 2304 shown in fig. 23A to trigger the handset to pause recording video.
In another implementation manner, the first operation may also be a preset gesture, such as an S-gesture or a v-gesture, which is input by the user on the first interface. The preset gesture may be preconfigured in the handset. And the mobile phone can prompt the user with the preset gesture and the function triggered by the preset gesture (namely, the function of switching the camera in the video recording process) on the video-recording view-finding interface.
S2203, responding to the first operation, and displaying a second interface by the mobile phone. The second interface is a view finding interface for suspending recording of video by the mobile phone, and comprises a second preview image acquired by the first camera and a first control.
For example, in response to a first operation of the pause recording button 2304 shown in fig. 23A by a user, the handset may display a second interface 2307 shown in fig. 23B. The second interface 2307 is a viewfinder interface for the cell phone to pause recording video. For example, the timing duration of the timing option 2306 in the second interface 2307 is not changed, as compared to the timing duration of the timing option 2306 in the first interface 2301 shown in fig. 23A, which are all 00:00:08. That is, at the second interface 2307, the handset has paused recording video.
However, the viewfinder of the second interface 2307 may display a second preview image 2308 captured by the first camera. In other words, the mobile phone does not buffer the second preview image during the process of suspending the recording of the video. In this way, the mobile phone responds to the click operation of the record stopping button by the user, and the generated video file does not comprise the second preview image.
It should be noted that the second interface described above also includes a first control. The first control is used for triggering the mobile phone to use a second camera of the plurality of cameras. For example, the second interface 2307 shown in fig. 23B includes a first control 2310. In the case where the first camera is a rear camera, the first control 2310 may be used to trigger the mobile phone to use the front camera (i.e., the second camera). For example, in this embodiment, the first control may be a camera switch option.
Note that the pause recording button 2304 is different from the stop recording button 2303. In response to the user clicking the stop recording button 2303, the mobile phone may stop recording video and generate a video file. For example, in response to a user clicking the stop recording button 113 shown in fig. 1C, the mobile phone may stop recording video, and generate a video file corresponding to the album option 117 shown in fig. 1D. I.e., the latest photo/video file created in the phone, the photo corresponding to album option 107 shown in fig. 1C becomes the video file corresponding to album option 117 shown in fig. 1D.
However, in response to the user's click of the pause recording button 2304 shown in fig. 23A, the mobile phone may pause recording video but may not generate a video file. For example, in response to a click operation of the pause recording button 2304 shown in fig. 23A by the user, as shown in fig. 23B, the photo corresponding to the album option 2305 in the second interface 2307 displayed by the mobile phone is the same as the photo corresponding to the album option 2305 in 2307 shown in fig. 23A. That is, in response to the user's click operation of the pause recording button 2304 shown in fig. 23A, the mobile phone does not generate a video file. In response to the clicking operation of the pause recording button 2304 by the user, the mobile phone does not generate a video file, and reference may be made to the following detailed description of fig. 24D for the following embodiments, which are not repeated herein.
It should be noted that, in the embodiment of the present application, the suspension of the recording of the video by the mobile phone does not indicate that the preview image of the viewfinder interface of the mobile phone will not be updated. The mobile phone also displays a preview image (such as a second preview image) acquired by the first camera in real time. However, after the mobile phone pauses recording the video, the second preview image acquired by the first camera in real time is displayed on the view finding interface of the mobile phone; but the handset will not cache the second preview image displayed on the viewfinder interface.
S2204, the mobile phone receives clicking operation of the first control in the second interface by the user.
S2205, responding to the clicking operation of the user on the first control, the mobile phone switches the second preview image in the second interface into a third preview image collected by the second camera, and the video is continuously recorded.
For example, in response to a user clicking on the first control 2310 shown in fig. 23B, the handset may display a framing interface 2312 (i.e., a second interface) in which the handset shown in fig. 23C is recording video.
In response to the user clicking the first control 2310 shown in fig. 23B, the mobile phone pauses the preview image in the framing interface (i.e., the second interface) for recording the video, the second preview image 2308 shown in fig. 23B is switched to the third preview image 2313 shown in fig. 23C, and the mobile phone can continue to record the video. For example, in the view interface 2312 of fig. 23C where the cell phone is recording video, the timing option 2311 starts timing, and the timing duration changes from 00:00:08 of fig. 23B to 00:00:09 of fig. 23C. Here, the second preview image 2308 and the third preview image 2313 are images captured by different cameras, and thus, as shown in fig. 23B and 23C, the second preview image 2308 and the third preview image 2313 are different.
In other embodiments, the mobile phone responds to the click operation of the user on the first control, and the second preview image in the second interface can be switched to a third preview image acquired by the second camera; however, video is not continuously recorded. But will continue recording video after receiving a second operation from the user at the second interface. Specifically, as shown in fig. 23D, S2205 may include S2205a-S2205c.
S2205a, responding to the click operation of the user on the first control, and switching the second preview image in the second interface into a fourth preview image acquired by the second camera by the mobile phone.
For example, in response to a user clicking on the first control 2310 shown in fig. 23B, the handset may display a second interface 2314 shown in fig. 23E. In response to the clicking operation of the first control 2310 shown in fig. 23B, the mobile phone pauses the preview image in the framing interface (i.e., the second interface) for recording the video, and the second preview image 2308 shown in fig. 23B is switched to the fourth preview image 2315 shown in fig. 23E. Unlike the solution of the above embodiment, in response to the clicking operation of the first control by the user, the mobile phone does not continue recording video. For example, the timing duration of the timing option 2306 in the second interface 2314 is unchanged from the timing duration of the timing option 2306 in the second interface 2308 shown in FIG. 23B, both being 00:00:08.
S2205b, the mobile phone receives a second operation of the user on the second interface, and the second operation is used for triggering the mobile phone to continue recording the video.
For example, a pause recording button is included in the second interface. The second operation may be a user click operation of a pause record button in the second interface.
S2205c, responding to the second operation, displaying a third preview image acquired by the second camera on the second interface by the mobile phone, and continuing to record the video.
For example, in response to a second operation of the pause record button 2309 by the user in the second interface 2314 shown in fig. 23E, the handset may display the view interface 2312 shown in fig. 23C where the handset is recording video. The viewfinder interface 2312 includes a third preview image 2313 captured by the second camera.
The detailed description of the view interface 2312 of the mobile phone in fig. 23C for recording video may refer to the related description in the above embodiment, which is not repeated here.
It should be understood that, in the embodiment of the present application, the mobile phone executes S2205a, and in response to the click operation of the user on the first control, the second preview image acquired by the first camera in the second interface may be displayed first and switched to the fourth preview image acquired by the second camera, that is, the switching of the cameras is performed. However, at this point the handset did not begin recording video. That is, the mobile phone does not cache the fourth preview image acquired by the second camera. In this way, a period of time can be set aside for the user to observe and adjust the shooting angle of the second camera, and adjust the gesture (i.e. swing) of the shooting object. After the user adjusts the shooting view angle and the gesture, a second operation can be input to the pause recording button in the second interface. The mobile phone executes S2205b-S2205c, and may display the third preview image acquired by the second camera on the second interface, and continue recording the video. That is, the mobile phone may cache the third preview image collected by the second camera.
The pause recording button in the embodiment of the present application may include two states, such as a first state and a second state. The first state is used for indicating that the mobile phone is recording video, and the second state is used for indicating that the mobile phone pauses recording video. For example, as shown in fig. 23A or 23C, the mobile phone displays a pause recording button 2304 in a first state; at this point, the cell phone is recording video. As another example, as shown in fig. 23B or 23E, the handset displays a pause recording button 2309 in a second state; at this point, the cell phone pauses recording the video.
It should be noted that, in the embodiment of the present application, the mobile phone continues to record the video, which means that the mobile phone can buffer the third preview image collected by the second camera in real time and displayed on the viewfinder interface of the mobile phone. The third preview image and the fourth preview image are preview images acquired by the second camera and displayed in a view finding interface of the mobile phone after the mobile phone switches the cameras. However, the handset does not cache the fourth preview image, but only the third preview image.
In some embodiments, after the handset performs S2202, the second camera may be activated in response to the first operation of the pause record button by the user. In this way, in the period of time when the mobile phone executes S2202 "the first operation of the pause recording button by the user" the mobile phone executes S2204 "the click operation of the first control in the second interface by the user" the mobile phone executes, the mobile phone can complete the starting process of the second camera, and the second camera can collect the image.
Therefore, after executing S2204 to receive the click operation of the user on the first control in the second interface, the mobile phone responds to the click operation of the user on the first control, so that the second preview image in the second interface can be directly switched to the third preview image collected by the second camera. Rather than activating the second camera in response to a user clicking on the first control. Therefore, seamless switching between the second preview image and the third preview image or the fourth preview image in the second interface can be realized, and visual experience of a user in the video shooting process can be improved.
It should be noted that although the mobile phone responds to the first operation of the pause recording button by the user, the second camera is started, and the second camera can acquire images; however, the mobile phone does not display the image acquired by the second camera at this time. At this time, the first camera is used as a preview camera of the mobile phone, and the mobile phone displays a second preview image collected by the first camera. After the mobile phone receives the click operation of the user on the first control, the second camera can be used as the preview camera of the mobile phone in response to the click operation of the user on the first control, and the mobile phone can display a fourth preview image or a third preview image acquired by the second camera.
For example, in the process of executing S2201, as shown in fig. 24B, the first camera provides the video stream 1 as a preview camera, and the surfacview displays the video stream 1 (i.e., the first video stream including the plurality of frames of the first preview image). At this time, the second camera is not started, and the second camera does not collect images. The mobile phone executes S2202-S2203 to suspend shooting (i.e., suspend recording video). When the mobile phone pauses shooting, the second camera can be started. At this time, the second camera may capture an image. However, in the process of suspending video recording, the first camera still serves as a preview camera, and the surfacview displays a plurality of frames of second preview images acquired by the first camera, and does not display images acquired by the second camera. After the mobile phone executes S2205 to switch the preview camera from the first camera to the second camera, as shown in fig. 24B, the second camera is used as the preview camera, and the surfacview displays the video stream 2 (i.e. the second video stream including the multiple frames of the third preview image).
In some embodiments, in order to reduce the power consumption of the mobile phone, the mobile phone may not activate the plurality of cameras in the mobile phone in advance, but rather activate the second camera in response to a click operation of the first control in the second interface by the user. In this way, although a short-time (e.g., 1 second) black screen or blank space may appear on the viewfinder interface during the process of switching the cameras, compared with the scheme of starting a plurality of cameras in advance, the power consumption of the mobile phone can be reduced.
In other embodiments, after the mobile phone switches the second preview image in the second interface to the third preview image or the fourth preview image collected by the second camera, the first camera may be turned off. In this way, the power consumption of the mobile phone can be reduced.
It should be noted that, in the process of executing S2201, the mobile phone may cache the video stream including the above-mentioned multi-frame first preview image. However, in response to a first operation of the pause recording button by the user, the handset does not stop recording video nor does the handset generate a video file comprising a video stream consisting of multiple frames of the first preview image. But pausing the recording of the video until receiving a click operation of the first control in the second interface by the user or a second operation of the pause recording button by the user, the video stream comprising a plurality of frames of the third preview image is started to be cached. And then, responding to the click operation of the user on the record stopping button by the mobile phone, stopping recording the video, and generating a first video file. The mobile phone generates the first video file in response to the clicking operation of the stop recording button by the user, and the detailed description of the first video file may refer to the following contents in the following embodiments, which are not described herein.
S2206, the mobile phone receives the click operation of stopping the recording button in the second interface by the user.
The second interface (i.e. the viewfinder interface of the mobile phone that is recording video) may include a stop recording button. For example, the view interface 2307 for recording video shown in fig. 23B, the view interface 2312 for recording video shown in fig. 23C, and the view interface 2314 for recording video shown in fig. 23E each include a stop recording button 2303. The mobile phone can receive the click operation of the stop recording button 2303 in the view finding interface of the recorded video by the user at any time in the process of recording the video, and can stop recording the video by responding to the click operation of the stop recording button 2303 by the user, so as to generate a recorded video file.
It should be appreciated that the timing duration of the timing options in the viewing interface of the video recorded by the handset may change over time during the video recorded by the handset. For example, the timing duration of timing option 2306 shown in fig. 23A, 23B, and 23E is 00:00:08, and over time timing duration of timing option 2311 shown in fig. 23C is 00:00:09, and timing duration of timing option 2402 shown in fig. 24A is 00:00:18.
For example, assume that the handset receives a second operation from the user when the duration of recording the video is 00:00:18. For example, as shown in fig. 24A, when the time duration of the time option 2402 is 00:00:18, the mobile phone receives a click operation of the stop recording button 2303 in the second interface 2401 from the user.
S2207, responding to the click operation of the user on the record stopping button, stopping recording the video by the mobile phone, and generating a first video file. The first video file includes a first video stream including a plurality of frames of first preview images and a second video stream including a plurality of frames of third preview images.
For example, in response to a second operation of the stop recording button 2303 shown in fig. 24A by the user, the cell phone may stop recording video, generating a first video file shown in fig. 24C. As shown in fig. 24C, the first video file includes: a first video stream and a second video stream. The first video stream comprises a plurality of frames of first preview images displayed on a display screen of the mobile phone under the condition that the first camera is used as a preview camera. And the second video stream comprises a plurality of frames of third preview images displayed on a display screen of the mobile phone under the condition that the second camera is used as a preview camera.
It should be noted that, in the process of S2201 executed by the mobile phone, the first camera is used as a preview camera of the mobile phone, and the image collected by the first camera (i.e. the first preview image) is displayed in the viewing interface of the video recorded by the mobile phone. For example, as shown in fig. 24D, after the mobile phone starts shooting (i.e., recording video), a first video stream including a plurality of frames of first preview images is displayed in the SurfaceView before the shooting is paused (i.e., recording video is paused).
In the process of executing S2202-S2204, the first camera still serves as a preview camera of the mobile phone, and the image collected by the first camera (i.e., the second preview image) is displayed in the viewing interface of the video recorded by the mobile phone. For example, as shown in fig. 24D, after the mobile phone pauses shooting (i.e., pauses recording video), before continuing shooting (i.e., continuing shooting video), a video stream including a plurality of frames of second preview images is displayed in the surfacview.
In the process of executing S2205-S2207, the second camera is used as a preview camera of the mobile phone, and the image collected by the second camera (i.e. the third preview image) is displayed in the viewing interface of the video recorded by the mobile phone. For example, as shown in fig. 24D, after the handset continues to capture (i.e., continues to record video), a second video stream comprising multiple frames of the third preview image is displayed in the SurfaceView.
It should be appreciated that the video file generated by the handset includes: in the process of recording the video by the mobile phone, displaying preview images (such as a plurality of frames of first preview images and a plurality of frames of third preview images) in a view finding interface of the video recorded by the mobile phone; but does not include the preview image (such as the multi-frame second preview image) displayed in the viewing interface of the recorded video of the mobile phone during the suspension of the recorded video of the mobile phone.
For example, assume that the cell phone is the first camera as the preview camera from 00:00:00 video recording to 00:00:08, without switching cameras. As can be seen from fig. 23A to 23C: during the period of 00:00:00-00:00:08, the first camera is used as a preview camera; the second camera acts as a preview camera during the period of 00:00:09-00:00:18. Thus, as shown in fig. 24C, the mobile phone executing the first video file generated in S2207 may include: 00:00:00-00:00:08, and a first video stream acquired by a first camera; and a second video stream acquired by the second camera for a period of 00:00:09-00:00:18.
Wherein, during the period of 00:00:00-00:00:08, the first video stream collected by the first camera may include: 00:00:00-00:00:08, and acquiring and displaying multiple frames of first preview images on a display screen of the mobile phone by the first camera. 00:00:09-00:00:18, the second video stream acquired by the second camera may include: 00:00:09-00:00:18, and acquiring and displaying a plurality of frames of third preview images on a display screen of the mobile phone by the second camera.
The principle of the mobile phone executing S2207 to generate the first video file in the embodiment of the present application is described herein with reference to fig. 21 and 24D.
For example, as shown in fig. 24D, after the handset continues to capture (i.e., continues to record video), a second video stream comprising multiple frames of the third preview image is displayed in the SurfaceView.
It should be understood that, during the video recording process of the mobile phone, the preview video stream displayed in the surfmeview is the video stream that the user wants to capture and generate. Thus, as shown in fig. 24D, after the handset starts shooting (i.e., recording video), a video processing (Media Recorder) module 2122 may obtain and buffer the first video stream from the SurfaceView before pausing shooting (i.e., pausing recording video).
However, during the time that the handset pauses shooting (i.e., recording video), the preview video stream displayed in the surfeview is not the video stream that the user wants to shoot. Thus, as shown in fig. 24D, after the handset pauses shooting (i.e., pauses recording video), the video processing (Media Recorder) module 2122 does not acquire the video stream from the SurfaceView and does not buffer the video stream comprising the multiple frames of the second preview image before continuing shooting (i.e., continuing shooting video).
After the mobile phone continues shooting (i.e. video recording), the preview video stream displayed in the SurfaceView is the video stream that the user wants to shoot. Thus, as shown in fig. 24D, after the handset continues to capture (i.e., continues to record video), the video processing (Media Recorder) module 2122 does not acquire and buffer the second video stream from the surfacview.
In this manner, in response to a user clicking on the stop record button, a video processing (Media Recorder) module 2122 may generate a first video file comprising the buffered first video stream and the second video stream.
It should be noted that, the video file (the first video file shown in fig. 24C) generated in S2207 executed by the mobile phone is a complete video file. By the method provided by the embodiment of the application, after the mobile phone finishes recording the video, a complete first video file can be generated. That is, by adopting the method, the video files with multiple visual angles can be obtained by one shooting, a plurality of temporary video files can not be generated, and the temporary video files do not need to be integrated.
By adopting the method provided by the embodiment of the application, the camera can be switched in the video recording process. Moreover, by adopting the method, the multi-view video file can be obtained by one shooting, a plurality of temporary video files are not generated, the temporary video files are not required to be integrated, and the multi-view video file can be generated in real time for the user to view at any time in response to the click operation of the record stop button by the user. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
Furthermore, the method of the embodiment of the application does not limit the duration of video recording of the mobile phone. That is, the mobile phone executes the method of the embodiment of the application, and can record video files with any time length according to the requirement of the user.
In other embodiments, the mobile phone may not perform S2204-S2205 to switch cameras after performing S2202-S2203 to pause recording video. For example, after the mobile phone performs S2202-S2203 to suspend recording of video, the user may simply want to adjust the shooting angle of the camera and the gesture of the shooting object (i.e., swing) during the time when the mobile phone suspends recording of video. When the user adjusts the gesture, a second operation can be input to the pause record button in the second interface. In this embodiment, after S2202-S2203, the method of embodiments of the application further includes S2208-S2211. S2208: and the mobile phone receives a second operation of the pause recording button in the second interface by the user, wherein the second operation is used for triggering the mobile phone to continue recording the video. S2209: and responding to the second operation, displaying a seventh preview image acquired by the first camera on a second interface by the mobile phone, and continuing to record the video. S2210: and the mobile phone receives click operation of stopping the recording button in the second interface by the user. S2211: and responding to the click operation of the user on the record stopping button, stopping recording the video by the mobile phone, and generating a third video file. The third video file includes a first video stream including a plurality of frames of first preview images and a fourth video stream including a plurality of frames of seventh preview images.
In this embodiment, the mobile phone pauses recording video, and a period of time can be set for the user to adjust the shooting angle of the camera and the gesture (i.e. swing) of the shooting object. After the gesture is adjusted by the user, a second operation can be input to the pause recording button in the second interface, and the video recording is continued. Therefore, the shooting effect of video recorded by the mobile phone can be improved, and the shooting satisfaction of the user is improved.
In other embodiments, the mobile phone may switch the camera at least twice during one video capturing process. For example, assume that the mobile phone does not receive the click operation of the stop shooting button by the user when the duration of recording the video is 00:00:18, but receives the click operation of the stop shooting button by the user again when the duration of recording the video is 00:01:09. For example, over time, the handset can display the video recording viewfinder 2501 of fig. 25A, with the timing option 2503 in the video recording viewfinder 2501 having a timing duration of 00:01:09. The view box of the view interface 2501 of the recorded video includes a third preview image 2502 therein.
The handset may receive a first operation of the pause recording button 2304 shown in fig. 25A by the user. The pause recording button 2304 shown in fig. 25A is in a first state. In response to a first operation of the pause recording button 2304 shown in fig. 25A by the user, the handset may display a seventh interface 2504 shown in fig. 25B. The seventh interface 2504 is a view interface for suspending recording of video, and a view frame of the seventh interface 2504 displays a fifth preview image 2505 captured by the second camera. The seventh interface includes a pause record button 2309 in a second state. The seventh interface also includes a first control 2310.
The handset may receive a click operation of a first control (also referred to as an icon to switch cameras) 2310 shown in fig. 25B by the user. In response to the user clicking on the first control 2310 shown in fig. 25B, the handset can switch the fifth preview image 2505 in the seventh interface 2504 to a sixth preview image 2507 captured by the first camera as shown in fig. 25C. For example, the handset may display a viewfinder interface (i.e., seventh interface) 2506 of fig. 25C where the handset is recording video. The viewfinder of the viewfinder interface 2506 of the recorded video includes a sixth preview image 2507. Wherein the sixth preview image 2507 and the fifth preview image 2505 are images captured by different cameras; accordingly, as shown in fig. 25C and 25B, the sixth preview image 2507 and the fifth preview image 2505 are different. The first preview image 2302, the second preview image 2308 and the sixth preview image 2507 are all images acquired by the first camera. For example, as can be seen from comparing fig. 25C and 23A, the sixth preview image 2507 is substantially the same as the first preview image 2302.
In the process of recording the video by the mobile phone, the timing duration of the timing options in the viewing interface of recording the video by the mobile phone can be changed along with the time. For example, the timing duration of timing option 2503 shown in fig. 25A is 00:01:09, the timing duration of timing option 2508 shown in fig. 25C is 00:01:10, and the timing duration of timing option 2511 shown in fig. 25D is 00:01:20 as time passes. Viewfinder interface 2509 of FIG. 25D includes preview image 2510.
Assume that the mobile phone receives a second operation of the user when the duration of video recording is 00:01:20. For example, as shown in fig. 25D, when the time duration of the time option 2511 is 00:01:20, the mobile phone receives a click operation of the stop recording button 2303 shown in fig. 25D by the user. In response to the user's click on the stop recording button 2303 shown in fig. 25C, the mobile phone may stop recording video, generating a second video file as shown in fig. 26. As shown in fig. 26, the second video file includes: a first video stream, a second video stream, and a third video stream. The first video stream comprises a plurality of frames of first preview images displayed on a display screen of the mobile phone under the condition that the first camera is used as a preview camera. The second video stream includes a plurality of frames of third preview images displayed on a display screen of the mobile phone under the condition that the second camera is used as a preview camera. The third video stream includes a plurality of frames of sixth preview images displayed on the display screen of the mobile phone when the first camera is used as the preview camera.
It should be appreciated that in response to the user clicking the stop recording button 2303 shown in fig. 25D, the second video file generated by the mobile phone includes all preview images displayed in the viewing interface of the video recorded by the mobile phone during the video recording by the mobile phone.
For example, assume that the cell phone is the first camera as the preview camera from 00:00:00 video recording to 00:00:08, without switching cameras. As can be seen from the above description in conjunction with fig. 23A to 23C and fig. 25C to 25D: during the period of 00:00:00-00:00:08, the first camera is used as a preview camera; during the period of 00:00:09-00:01:09, the second camera is used as a preview camera; the first camera is used as a preview camera in the period of 00:01:10-00:01:20. Thus, as shown in fig. 26, in response to a user's click operation of the stop recording button 2303 shown in fig. 25D, the second video file generated by the mobile phone may include: 00:00:00-00:00:08, and a first video stream acquired by a first camera; 00:00:09-00:01:09, and a second video stream acquired by a second camera; and a third video stream acquired by the first camera during a period of 00:01:10-00:01:20.
Wherein, during the period of 00:00:00-00:00:08, the first video stream collected by the first camera may include: 00:00:00-00:00:08, and acquiring and displaying multiple frames of first preview images on a display screen of the mobile phone by the first camera. 00:00:09-00:01:09, the second video stream acquired by the second camera may include: 00:00:09-00:01:09, and a plurality of frames of third preview images are acquired and displayed on the display screen of the mobile phone by the second camera. 00:01:10-00:01:20, the third video stream collected by the first camera may include: 00:01:10-00:01:20, and acquiring and displaying a plurality of frames of sixth preview images on a display screen of the mobile phone by the first camera.
It should be noted that the second video file generated by the mobile phone (the second video file shown in fig. 26) is a complete video file. By the method provided by the embodiment of the application, after the mobile phone finishes recording the video, a complete video file can be generated. That is, by adopting the method, the video files with multiple visual angles can be obtained by one shooting, a plurality of temporary video files can not be generated, and the temporary video files do not need to be integrated. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
In some embodiments, the first camera may be activated by the handset in response to a first operation of a pause record button in the second interface by the user. Therefore, when the mobile phone receives the first operation of the pause recording button from the user to the mobile phone receives the click operation of the first control in the seventh interface from the user, the mobile phone can complete the starting process of the first camera, and the first camera can collect images.
Therefore, after the mobile phone receives the click operation of the user on the first control in the seventh interface, the mobile phone responds to the click operation of the user on the first control, and the fifth preview image in the seventh interface can be directly switched into the sixth preview image collected by the first camera. Rather than activating the first camera in response to a user clicking on the first control. Therefore, seamless switching between the fifth preview image and the sixth preview image in the seventh interface can be realized, and visual experience of a user in the video shooting process can be improved.
Of course, in other embodiments, in order to reduce the power consumption of the mobile phone, the mobile phone may not start the plurality of cameras in the mobile phone in advance, but start the first camera only in response to the clicking operation of the first control in the seventh interface by the user. In this way, although a short-time (e.g., 1 second) black screen or blank space may appear on the viewfinder interface during the process of switching the cameras, compared with the scheme of starting a plurality of cameras in advance, the power consumption of the mobile phone can be reduced.
It should be noted that although the mobile phone responds to the first operation of the pause record button in the second interface by the user, the first camera is started, and the first camera can collect images; however, the mobile phone does not display the image acquired by the first camera at this time. At this time, the second camera is used as a preview camera of the mobile phone, and the mobile phone still displays a fifth preview image collected by the second camera. After the mobile phone receives the click operation of the user on the first control, the first camera can be used as a preview camera of the mobile phone and the mobile phone can display a sixth preview image acquired by the first camera in response to the click operation of the user on the first control.
And after the fifth preview image in the seventh interface is switched to the sixth preview image acquired by the first camera, the mobile phone can close the second camera. In this way, the power consumption of the mobile phone can be reduced.
In some embodiments, after the mobile phone starts recording the video, if the preset function of the mobile phone is started, the mobile phone may display a first interface including the pause recording button. If the preset function of the mobile phone is not started, the view finding interface of the recorded video displayed by the mobile phone does not comprise the pause recording button.
Specifically, as shown in fig. 27, before S2201, the method according to the embodiment of the present application may further include S2701. As shown in fig. 27, S2201 shown in fig. 22 may include S2702.
S2701, the mobile phone displays a fourth interface. The fourth interface is a view finding interface for recording video by the mobile phone. The fourth interface includes a start recording button. The start recording button is used for triggering the mobile phone to start recording video.
Wherein, although the fourth interface and the first interface are all view finding interfaces for recording video of the mobile phone; however, the first interface is a viewing interface of the mobile phone recording video, that is, a viewing interface of the mobile phone having started recording video; and the fourth interface is a view finding interface that the mobile phone does not start recording video. For example, the first interface includes a stop recording button and the fourth interface includes a start recording button.
It should be appreciated that when the handset displays the fourth interface, the handset has entered a video recording mode (i.e., recorded video mode). In the video recording mode, the mobile phone can start recording video as long as the mobile phone receives the click operation of the start recording button by the user. For example, the handset may display the fourth interface 104 shown in fig. 1B, where the fourth interface 104 is a viewing interface for video recorded by the handset. The fourth interface 104 includes a start recording button 108.
S2702, responding to the click operation of the recording start button in the fourth interface by the user, and if the preset function of the mobile phone is started, displaying the first interface by the mobile phone.
The preset function is a function of switching cameras in the process of recording video.
For example, in response to the user clicking the start record button 108 in the fourth interface 104 shown in fig. 1B, if the preset function of the mobile phone is turned on, the mobile phone may display the first interface 2801 shown in fig. 28. The first interface 2801 includes a pause recording button 2304. The first interface 2801 also includes a stop recording button, a timing option, and the like. In response to the user clicking the start record button 108 on the fourth interface 104 shown in fig. 1B, if the preset function of the mobile phone is not yet started, the mobile phone may display the view interface 110 for recording video shown in fig. 1C. The viewfinder interface 110 does not include a pause record button.
In this embodiment, the mobile phone may start the above-mentioned preset function by any one of the following implementation manners, that is, the function of switching the camera during the video recording process.
Implementation mode (1): and the mobile phone responds to the operation of starting the preset function input by the user on the setting interface, and starts the preset function.
For example, as shown in fig. 29, the setup interface 2901 of the mobile phone includes a preset function switch, such as a "video switch camera" switch 2902. In response to the user's turning on of the "video switch camera" switch 2902, the mobile phone may activate a preset function. After the mobile phone starts the preset function, the mobile phone may display a first interface 2801 shown in fig. 28, that is, a viewing interface for recording video. In response to the user's turning off operation of the "video camera switch" switch 2902, the mobile phone may turn off a preset function. After the mobile phone closes the preset function, the mobile phone may display the viewing interface 110 for recording video shown in fig. 1C.
The setup interface 2901 shown in fig. 29 also includes a "flight mode" switch, a "WLAN" option, a "bluetooth" option, a "mobile network" option, and the like for the handset. For specific functions of these switches and options, reference may be made to the detailed description of each switch and option of the setting interface in the conventional technology, which is not described herein.
Implementation mode (2): the mobile phone responds to the operation of starting the preset function input by the user in the notification bar of the mobile phone, and starts the preset function.
For example, the cell phone may display a notification bar 3001 shown in fig. 30A in response to a user's pull-down operation on top of a display (e.g., touch screen) of the cell phone. The notification bar 3001 includes a preset function switch, such as a "video switch camera" switch 3002. In response to the user's turning on operation of the "video switch camera" switch 3002, the mobile phone may start a preset function. After the mobile phone starts the preset function, the mobile phone may display a first interface 2801 shown in fig. 28, that is, a viewing interface for recording video. In response to the user closing the "video switch camera" switch 3002, the mobile phone may close the preset function. After the mobile phone closes the preset function, the mobile phone may display the viewing interface 110 for recording video shown in fig. 1C.
The notification bar 3001 shown in fig. 30A also includes a "flight mode" switch, a "WLAN" option, a "bluetooth" option, a "mobile network" option, a "flashlight" switch, and the like for the cell phone. For specific functions of these switches and options, reference may be made to the detailed description of each switch and option in the notification bar in the conventional technology, which is not described herein.
In this embodiment, the mobile phone may display a pause recording button on a viewfinder interface of the recorded video in response to a user operation to start recording the video. In this way, the mobile phone can respond to the first operation of the pause recording button by the user to display the first control on the view finding interface. Then, the mobile phone can receive clicking operation of the first control by the user to switch the camera, and provide the service of switching the camera in the video recording process for the user.
In other embodiments, the mobile phone cannot switch the camera during the video recording process after the video recording is started. After the video recording is started, a first interface including a pause recording button can be displayed after a preset function (such as a function of switching the camera in the video recording process) is started by a user, and then the method of the embodiment of the application can be executed, so that the camera is switched in the video recording process. Specifically, as shown in fig. 30B, before S2201, the method according to the embodiment of the present application may further include S3001 to S3003. As shown in fig. 30B, S2201 shown in fig. 22 may include S3004.
S3001, displaying a fifth interface by the mobile phone. The fifth interface is a viewing interface for recording video by the mobile phone. The fifth interface includes a start recording button. The start recording button is used for triggering the mobile phone to start recording video.
Wherein, although the fifth interface and the first interface are all view finding interfaces for recording video of the mobile phone; however, the first interface is a viewing interface of the mobile phone recording video, that is, a viewing interface of the mobile phone having started recording video; the fifth interface is a view finding interface that the mobile phone has not started recording video. For example, the first interface includes a stop recording button and the fifth interface includes a start recording button.
It should be appreciated that when the handset displays the fifth interface, the handset has entered the video recording mode. In the video recording mode, the mobile phone can start recording video as long as the mobile phone receives the click operation of the start recording button by the user. For example, the handset may display the fifth interface 104 shown in fig. 1B, where the fifth interface 104 is a viewing interface for video recorded by the handset. The fifth interface 104 includes a start recording button 108.
S3002, responding to clicking operation of the recording start button in the fifth interface by the user, and displaying a sixth interface by the mobile phone. The sixth interface is a viewfinder interface in which the cell phone is recording video. The sixth interface includes a preset function switch.
The preset function switch is used for triggering the mobile phone to start or close the preset function. The preset function is a function of switching cameras in the video recording process.
For example, in response to a user clicking (e.g., clicking) the start record button 108 in the fifth interface 104 shown in fig. 1B, the handset may display a sixth interface 3003 shown in fig. 30C. The sixth interface 3003 is a viewfinder interface that the phone is recording video, e.g., the sixth interface 3003 includes a stop recording button. The sixth interface 3003 also includes a preset function switch (e.g., a toggle switch) 3004. The switch 3004 is used for triggering the mobile phone to turn on or off a preset function.
It should be noted that the sixth interface and the first interface are both viewing interfaces where the mobile phone is recording video. The differences are: when the mobile phone displays the first interface, the preset function of the mobile phone is started, and the first interface comprises a pause recording button. When the mobile phone displays the sixth interface, the preset function of the mobile phone is not started, and the sixth interface does not include a pause recording button. And responding to the click operation of a preset function switch in the sixth interface by the user, the mobile phone can start the preset function and display a first interface comprising a pause recording button.
S3003, the mobile phone receives a third operation of the preset function switch by the user, and the third operation is used for triggering the mobile phone to start the preset function.
The preset function is a function of switching cameras in the video recording process.
S3004, responding to a third operation of a preset function switch by a user, and displaying the first interface by the mobile phone.
For example, the mobile phone may receive a third operation of the preset function switch (e.g., the switch) 3004 shown in fig. 30C by the user. In response to a third operation of the preset function switch (e.g., toggle switch) 3004 by the user, the mobile phone may display the first interface 3005 shown in fig. 30D. A pause recording button 2304 is included in the first interface 3005. The pause record button 2304 is used to trigger the handset to pause recording video. The first interface 3005 also includes a preset function switch 3006.
In some embodiments, the mobile phone may display the preset function switch in the first state on the sixth interface, and display the preset function switch in the second state on the first interface. The first state is used for indicating that the mobile phone has not started the preset function, and the second state is used for indicating that the mobile phone has started the preset function. For example, the mobile phone displays a preset function switch 3004 in a first state, such as a "switch" with white background and black characters, on a sixth interface 3003 shown in fig. 30C; the mobile phone displays a preset function switch 3006, such as a "change-over switch" of black-matrix white words, in a second state on a first interface 3005 shown in fig. 30D.
In this embodiment, the mobile phone may instruct the mobile phone to turn on/off the preset function through the state of the preset function switch. Thus, the user can judge whether the preset function is on/off by observing the state of the preset function switch. Of course, the user can also determine whether the preset function is on/off by observing whether the viewing interface of the video being recorded by the mobile phone includes the pause recording button 2304.
In other embodiments, the mobile phone may also close the preset function in response to a user operation during the video recording process. Specifically, after S3004, the method according to the embodiment of the present application may further include S3005 to S3006. S3005: the mobile phone receives a fifth operation of the preset function switch by a user, wherein the fifth operation is used for triggering the mobile phone to close the preset function. S3006, responding to the fifth operation of the preset function switch by the user, the mobile phone can close the preset function and display an eighth interface. The eighth interface is a viewfinder interface in which the mobile phone is recording video. This eighth interface does not include the pause recording button 2304, and therefore cannot switch cameras during recording of video.
Note that the mobile phone may execute S3005 to S3006 in the process of executing S2202 to S2203 by the mobile phone after S3004. That is, before and after the mobile phone switches the camera, the mobile phone can execute S3005-S3006 to close the preset function.
For example, in response to a fifth operation of the preset function switch (e.g., toggle switch) 3006 shown in fig. 30D, the handset may display an eighth interface 3007 shown in fig. 30E. The eighth interface 3007 is a viewfinder interface where the handset is recording video. The eighth interface 3007 does not include a pause recording button 2304. Optionally, the eighth interface 3007 also includes a preset function switch 3008 in a first state, such as a "toggle switch" for black and white words.
In this embodiment, the mobile phone may turn on/off the preset function according to the user's requirement in response to the third operation of the user. The preset function is turned on/off according to the requirements of the user, so that the shooting experience of the user can be improved; the idle camera can be closed by closing the preset function, so that the power consumption of the mobile phone can be reduced.
In a second application scenario, the plurality of cameras may include a plurality of types of front cameras and rear cameras. In the embodiment of the application, the types of cameras can comprise: at least two of a main camera, a long-focus camera, a wide-angle camera, a super-wide-angle camera, a micro-distance camera, a fish-eye camera, an infrared camera, a depth camera and a black-and-white camera. In the application scene, by adopting the method of the embodiment of the application, the mobile phone can switch any two cameras of the mobile phone in the process of recording video.
In the following embodiments, the method of the present embodiment is described by taking a mobile phone including a front main camera, a front wide-angle camera, a front tele camera, a rear main camera, a rear wide-angle camera, and a rear tele camera as an example. As shown in FIG. 31, the method of an embodiment of the present application may include S3101-S3107.
S3101, the mobile phone displays a first interface. The first interface is a viewing interface where the cell phone is recording video. The first interface includes a first preview image captured by a first camera of the plurality of cameras.
For example, the handset may display a first interface 2301 shown in fig. 23A, the first interface 2301 including a pause recording button 2304. The detailed description of the first interface may refer to the description of S2201 in the above embodiment, and the embodiment of the present application is not repeated here.
S3102, the mobile phone receives a first operation of a user on the first interface. The first operation is used for triggering the mobile phone to pause recording video.
The detailed description of the first operation may refer to the description of the first operation in S2202 in the above embodiment, which is not repeated herein.
S3103, responding to the first operation, and displaying a second interface by the mobile phone. The second interface is a framing interface for suspending recording video by the mobile phone. The second interface comprises a second preview image acquired by the first camera and a plurality of second controls.
Illustratively, in response to a first operation of pause record button 2304 shown in fig. 23A by a user, the handset may display second interface 3201 shown in fig. 32A. The second interface 3201 is a viewfinder interface for suspending recording of video by the mobile phone. For example, the timing duration of the timing option 2306 in the second interface 2307 is not changed, as compared to the timing duration of the timing option 2306 in the first interface 2301 shown in fig. 23A, which are all 00:00:08. That is, at the second interface 3201, the handset has paused recording video.
However, the viewfinder of the second interface 3201 may display the second preview image 3202 captured by the first camera. In contrast, after the mobile phone stops recording the video, the video file (such as the first video file) generated by the mobile phone does not include the second video file.
The first camera may be any one of a plurality of cameras of the mobile phone. For example, in the following embodiments, the first camera is a rear-mounted main camera of the mobile phone.
The second interface further comprises a plurality of second controls, and each second control corresponds to one camera of the plurality of cameras. For example, as shown in fig. 32A, the second interface 3201 further includes a plurality of second controls, such as a "front-facing main shot" control, a "front-facing tele" control, a "front-facing wide" control, a "rear-facing main shot" control, a "rear-facing tele" control, and a "rear-facing wide" control.
The "front-end main camera" control shown in fig. 32A corresponds to a front-end main camera of the mobile phone, and is used for triggering the mobile phone to display a preview image acquired by the front-end main camera. The "front-end tele" control shown in fig. 32A corresponds to a front-end tele camera of the mobile phone, and is used for triggering the mobile phone to display a preview image acquired by the front-end tele camera. The "front wide angle" control shown in fig. 32A corresponds to the front wide angle camera of the mobile phone, and is used for triggering the mobile phone to display the preview image acquired by the front wide angle camera.
The "post-master" control shown in fig. 32A corresponds to a post-master camera of the mobile phone, and is used to trigger the mobile phone to display a preview image acquired by the post-master camera. The "rear-mounted tele" control shown in fig. 32A corresponds to a rear-mounted tele camera of the mobile phone, and is used for triggering the mobile phone to display a preview image acquired by the rear-mounted tele camera. The "rear wide angle" control shown in fig. 32A corresponds to the rear wide angle camera of the mobile phone, and is used for triggering the mobile phone to display the preview image acquired by the rear wide angle camera.
The first control is any one of a plurality of second controls. The second camera is a camera corresponding to the first control. The second camera is different from the first camera. The second camera may be any camera other than the first camera among the plurality of cameras. For example, in the case where the first camera is a rear-mounted main camera of the mobile phone, the second camera may be any one of a front-mounted main camera, a front-mounted wide-angle camera, a front-mounted tele camera, a rear-mounted wide-angle camera, or a rear-mounted tele camera.
In the following embodiments, the first camera is a rear-mounted main camera of the mobile phone, and the second camera is a front-mounted main camera. In this case, the first control is a "front-facing main" control shown in fig. 32A. The "front-facing main" control shown in fig. 32A is used to trigger the handset to use the front-facing main camera of the plurality of cameras.
For other detailed descriptions of the second interface (for example, the second interface is a view finding interface for suspending recording of video by the mobile phone, and the second interface includes the second preview image collected by the first camera), reference may be made to the description of S2203 in the above embodiment, which is not repeated herein.
S3104, the mobile phone receives clicking operation of a first control in the plurality of second controls by a user.
For example, the handset may receive a user click on a first control, such as a "front-facing main" control, as shown in fig. 32A.
S3105, responding to clicking operation of the first control by the user, switching the second preview image in the second interface into a third preview image acquired by the second camera by the mobile phone, and continuing recording the video.
For example, in response to a user clicking on the "pre-panning" control (i.e., the first control) shown in fig. 32A, the handset may display a viewing interface 3205 of the video being recorded by the handset shown in fig. 32C.
In response to the user clicking the "pre-shot" control (i.e., the first control) shown in fig. 32A, the mobile phone pauses the preview image in the viewing interface (i.e., the second interface) for recording the video, the second preview image 3202 shown in fig. 32A is switched to the third preview image 3206 shown in fig. 32C, and the mobile phone can continue to record the video.
For example, in view interface 3206 of fig. 32C where the cell phone is recording video, timing option 2311 starts timing, and the timing duration changes from 00:00:08 of fig. 32A to 00:00:09 of fig. 32C. Here, the second preview image 3202 and the third preview image 3206 are images captured by different cameras, and thus, as shown in fig. 32A and 32C, the second preview image 3202 and the third preview image 3202 are different.
In other embodiments, the mobile phone responds to the click operation of the user on the first control, and the second preview image in the second interface can be switched to a third preview image acquired by the second camera; however, video is not continuously recorded. But continues to record video after receiving a second operation of the pause record button in the second interface by the user. Specifically, as shown in fig. 32D, S3105 may include S3105a-S3105c.
S3105a, responding to clicking operation of the first control by the user, and switching the second preview image in the second interface into a fourth preview image acquired by the second camera by the mobile phone.
For example, in response to a user clicking on the "front-facing main" control (i.e., the first control) shown in fig. 32A, the handset may display a second interface 3203 shown in fig. 32B. In response to the clicking operation of the "pre-main shooting" control shown in fig. 32A, the mobile phone pauses the preview image in the view-finding interface (i.e., the second interface) of the recorded video, and switches from the second preview image 3202 shown in fig. 32A to the fourth preview image 3204 shown in fig. 32B. Unlike the solution of the above embodiment, in response to the clicking operation of the first control by the user, the mobile phone does not continue recording video. For example, the timing duration of the timing option 2306 in the second interface 3203 is not changed, as compared to the timing duration of the timing option 2306 in the second interface 3201 shown in fig. 32A, and is 00:00:08.
S3105b, the mobile phone receives a second operation of the user on the second interface. The second operation is used for triggering the mobile phone to continue recording the video.
Illustratively, the second interface includes a pause record button. The second operation may be a click operation of a pause record button in the second interface by the user. For example, the handset may receive a second operation of pause record button 2309 by the user in second interface 3203 shown in fig. 32B.
And S3105c, responding to the second operation, displaying a third preview image acquired by the second camera on a second interface by the mobile phone, and continuing to record the video.
For example, in response to a second operation of the pause recording button 2309 shown in fig. 32B by the user, the handset may display a view interface 3205 of fig. 32C where the handset is recording video. The detailed description of the view interface 3205 of the mobile phone in fig. 32C, which is recording video, may refer to the related description in the above embodiment, and will not be repeated here.
The pause recording button in the embodiment of the present application may include two states, such as a first state and a second state. The first state is used for indicating that the mobile phone is recording video, and the second state is used for indicating that the mobile phone pauses recording video. For example, as shown in fig. 23A or 32C, the mobile phone displays a pause recording button 2304 in a first state; at this point, the cell phone is recording video. As another example, as shown in fig. 32A or 32B, the mobile phone displays a pause recording button 2309 in a second state; at this point, the cell phone pauses recording the video.
In some embodiments, after the mobile phone performs S3102, in response to the first operation of the pause record button by the user, the other cameras of the plurality of cameras except the first camera (such as the front main camera) may be started. The other cameras include a second camera (e.g., a front-facing main camera). In this way, when the mobile phone executes S3102 "the first operation of the pause recording button by the user" the mobile phone executes S3104 "the click operation of the first control by the user" the mobile phone executes, the mobile phone can complete the start-up procedure of the second camera, and the second camera can collect the image.
Therefore, after executing S3204 to receive the click operation of the user on the first control in the second interface, the mobile phone responds to the click operation of the user on the first control, so that the second preview image in the second interface can be directly switched to the third preview image or the fourth preview image collected by the second camera. Rather than activating the second camera in response to a user clicking on the first control. Therefore, seamless switching between the second preview image and the third preview image or the fourth preview image in the second interface can be realized, and visual experience of a user in the video shooting process can be improved.
Of course, in other embodiments, in order to reduce the power consumption of the mobile phone, the mobile phone may not start the multiple cameras in the mobile phone in advance, but start the second camera in response to the clicking operation of the first control in the second interface by the user. In this way, although a short-time (e.g., 1 second) black screen or blank space may appear on the viewfinder interface during the process of switching the cameras, compared with the scheme of starting a plurality of cameras in advance, the power consumption of the mobile phone can be reduced.
In other embodiments, the handset may activate a second camera (e.g., a front-facing main camera) in response to a user clicking on a first control (e.g., a "front-facing main camera" control).
In other embodiments, the mobile phone may close the first camera in response to a click operation of a first control (e.g., a "front-facing main" control) by a user. In this way, the power consumption of the mobile phone can be reduced. Specifically, the mobile phone may close other cameras except the second camera among the plurality of cameras, where the other cameras include the first camera.
S3106, the mobile phone receives clicking operation of stopping recording buttons in the second interface by the user.
The second interface (i.e. the viewfinder interface of the mobile phone that is recording video) may include a stop recording button. For example, the video-recording viewfinder interface 3205 shown in fig. 32C, the video-recording viewfinder interface 3201 shown in fig. 32A, and the video-recording viewfinder interface 3203 shown in fig. 32B each include the stop recording button 2303. The mobile phone can receive the click operation of the stop recording button 2303 in the view finding interface of the recorded video by the user at any time in the process of recording the video, and respond to the click operation of the stop recording button 2303 by the user, the mobile phone can stop recording the video and generate a recorded video file.
It should be appreciated that the timing duration of the timing options in the viewing interface of the video recorded by the handset may change over time during the video recorded by the handset. For example, the timing duration of timing option 2306 shown in fig. 23A, 32A, and 32B is 00:00:08, and over time timing duration of timing option 2311 shown in fig. 32C is 00:00:09, and timing duration of timing option 2402 shown in fig. 24A is 00:00:18.
For example, assume that the mobile phone receives a click operation of a stop recording button from a user when the duration of recording video is 00:00:18. For example, as shown in fig. 24A, when the time duration of the time option 2402 is 00:00:18, the mobile phone receives a click operation of the stop recording button 2303 in the second interface 2401 from the user.
S3107, responding to the click operation of a user on a record stop button, stopping recording the video by the mobile phone, and generating a first video file. The first video file includes a first video stream including a plurality of frames of first preview images and a second video stream including a plurality of frames of third preview images.
For example, in response to a second operation of the stop recording button 2303 shown in fig. 24A by the user, the cell phone may stop recording video, generating a first video file shown in fig. 24C. As shown in fig. 24C, the first video file includes: a first video stream and a second video stream. The first video stream comprises a plurality of frames of first preview images displayed on a display screen of the mobile phone under the condition that the first camera is used as a preview camera. And the second video stream comprises a plurality of frames of third preview images displayed on a display screen of the mobile phone under the condition that the second camera is used as a preview camera.
The detailed description of the first video file may refer to the detailed description of the first video file in the first application scenario, which is not described herein.
By adopting the method provided by the embodiment of the application, the camera can be switched in the video recording process. Moreover, by adopting the method, the video files with multiple visual angles can be obtained by one shooting, a plurality of temporary video files can not be generated, and the temporary video files are not required to be integrated. Compared with the scheme of segmented recording, the video recording process can be simplified, the video shooting efficiency is improved, and the shooting experience of a user is improved.
In the second application scenario, the mobile phone may switch the camera at least twice during one video capturing process. The method for switching the camera at least twice in the process of capturing the video once by the mobile phone can refer to the detailed description in the first application scenario, and will not be repeated here.
It should be appreciated that in the embodiment of the present application, the positions of the plurality of second controls at the first interface include, but are not limited to, the positions shown in fig. 32A or 32B. The handset may also display the plurality of second controls, for example, in a viewfinder of a second interface (i.e., a viewfinder interface in which the handset is recording video). For example, the handset may display a second interface 3301 shown in fig. 33A (i.e., a viewfinder interface where the handset is recording video). The first preview image 3302 is displayed in the viewfinder of the second interface 3301. A plurality of second controls, a "front-facing main shot" control, a "front-facing tele" control, a "front-facing wide" control, a "rear-facing main shot" control, a "rear-facing tele" control and a "rear-facing wide" control are also displayed in the viewfinder of the second interface 3301. In response to a user clicking on a first control (e.g., a "pre-panning" control) of the plurality of second controls shown in fig. 33A, the handset may display a second interface 3303 shown in fig. 33B. That is, in response to the user's click operation of the "front-end main shot" control shown in fig. 33A, the preview image in the framing interface (i.e., the second interface) in which the mobile phone is recording video is switched from the second preview image 3302 shown in fig. 33A to the third preview image 3304 shown in fig. 33B.
In other embodiments, in order to avoid that the second controls are displayed on the viewfinder interface of the video recorded by the mobile phone, occupy a display area in a viewfinder in the viewfinder interface, so as to influence the user to view the preview image. In general, the mobile phone will not display the plurality of second controls on the second interface. And responding to the preset operation of the user, and displaying the plurality of second controls on the second interface by the mobile phone. For example, the handset executing S2203 or S3103 may display the second interface 3305 shown in fig. 33C, the second interface 3305 not including the plurality of second controls. In response to a preset operation (e.g., a right-to-left sliding operation input by a right frame of the display screen) performed by the user on the second interface 3305, the mobile phone may display the second interface 3301 shown in fig. 33A.
It should be noted that in this embodiment, the mobile phone does not display a plurality of second controls on the second interface, not because the mobile phone does not open the preset function; but rather to avoid the plurality of second controls occupying a display area in a viewfinder in the viewfinder interface, affecting the user's view of the preview image.
In this embodiment, the mobile phone may not display the plurality of second controls during the video recording process. Instead, the plurality of second controls are displayed in response to a user's operation when the user wants to switch the camera, according to the user's needs. Therefore, the mobile phone can be supported to switch the camera in the video recording process, the plurality of second controls can be prevented from occupying the display area in the view-finding frame in the view-finding interface, and the shooting experience of a user can be improved.
In other embodiments, the mobile phone displaying the second interface (i.e., S3103) may include S3103a-S3103c in response to the first operation of the pause record button by the user.
S3103a, in response to the first operation of the pause recording button by the user, the mobile phone displays a third interface. The third interface is a view finding interface for suspending recording of video by the mobile phone, and comprises a second preview image acquired by the first camera and a third control.
For example, in response to a first operation of the pause recording button 2304 shown in fig. 23A by the user, the handset may display a third interface 3306 shown in fig. 33D. The third interface 3306 is a viewfinder interface for the cell phone to pause recording video. As shown in fig. 33D, the third interface 3306 includes not only the second preview image acquired by the first camera (e.g., the rear main camera), but also a third control 3307. For example, in this embodiment, the third control may be a camera switch option. The third control is used for triggering the mobile phone to display a plurality of second controls.
S3103b, the mobile phone receives a fourth operation (such as clicking operation) of the third control in the third interface by the user.
S3103c, in response to a fourth operation of the third control by the user, the mobile phone displays a second interface including a plurality of second controls.
For example, the handset may receive a fourth operation of the third control 3307 shown in fig. 33D by the user. In response to a fourth operation of the third control 3307 by the user, the handset may display a second interface 3308 shown in fig. 33E. The second interface 3308 includes a plurality of second controls 3309. Optionally, the second interface 3308 shown in fig. 33E further includes a third control (e.g., a camera switch option) 3307. In response to the sixth operation of the third control 3307 shown in fig. 33E by the user, the handset may hide the plurality of second controls 3309 in the second interface 3308, displaying the third interface 3306 shown in fig. 33D.
In this embodiment, after receiving the first operation of the pause recording button by the user, the mobile phone may receive the second operation of the pause recording button by the user at any time. In response to a second operation of the pause record button by the user, the handset can continue recording video.
In the embodiment of the application, the plurality of second controls displayed on the second interface by the mobile phone at least can comprise the following three implementation modes.
Implementation (a):
as shown in any one of fig. 32A, 32B, 33A, 33B, or 33E, the type indication information of the corresponding camera is displayed on each of the plurality of second controls. In the embodiment of the application, the type indication information of one camera is used for indicating the type of the camera, and can also indicate that the camera is a front camera or a rear camera.
For example, in response to a user clicking on a third control (e.g., camera toggle option) 3307 shown in fig. 33D, the handset may display a second interface 3308 shown in fig. 33E. As shown in fig. 33E, the type of instruction information, "front main shot", "front tele", "front wide", "rear main shot", "rear tele", "rear wide" is displayed on each of the plurality of second controls 3309, respectively. The type indication information is used for indicating that the second control corresponds to the front-mounted main camera. The type indication information is used for indicating that the second control corresponds to the front tele camera. The type indication information "front wide angle" is used for indicating that the second control corresponds to the front wide angle camera. The type indication information is used for indicating that the second control corresponds to the rear-mounted main camera. The type indication information is used for indicating that the second control corresponds to the rear-mounted tele camera. The type indication information "rear wide angle" is used for indicating that the second control corresponds to the rear wide angle camera.
Implementation (b):
and each of the plurality of second controls is displayed with a preview image acquired by the corresponding camera. For example, as shown in fig. 33F, the first interface 3310 includes a plurality of second controls, such as a second control 3311, a second control 3312, a second control 3313, a second control 3314, a second control 3315, and a second control 3316.
Wherein, the second control 3311 displays the preview image collected by the rear main camera. The second control 3312 displays therein a preview image captured by the rear wide angle camera. The second control 3313 displays a preview image captured by the rear-mounted tele camera. The second control 3314 displays therein a preview image captured by the front main camera. A preview image captured by the front wide-angle camera is displayed in the second control 3315. The second control 3316 displays a preview image captured by the front tele camera.
Thus, the second control 3311 may also be referred to as a "post-panning" control, the second control 3312 may also be referred to as a "post-wide" control, and the second control 3313 may also be referred to as a "post-tele" control; the second control 3314 may also be referred to as a "front-facing main" control, the second control 3315 may also be referred to as a "front-facing wide" control, and the second control 3316 may also be referred to as a "front-facing tele" control. The handset may also display a second interface 3317 shown in fig. 33G.
The first interface 3312 shown in fig. 33F and the first interface 3319 shown in fig. 33G further include a camera switching option. In response to a click operation of the camera switching option shown in fig. 33F or 33G by the user, the mobile phone may hide the plurality of second controls, and display the first interface 3308 shown in fig. 33D.
It is understood that the preview images collected by the corresponding cameras are displayed on each first control, so that the shooting effect, the shooting view angle and the like of each camera can be intuitively displayed for a user, and the user can select the cameras meeting the user requirements, such as the shooting effect, the shooting view angle and the like, from the cameras. Thus, the shooting experience of the user can be improved.
Implementation (c):
and proxy information of the corresponding camera is displayed on each of the plurality of second controls. In the embodiment of the application, the proxy information of one camera can indicate that the camera is a front camera or a rear camera, and can also comprise the serial number of the camera.
In one case, the number of the camera may be assigned to the camera by the handset. For example, the number of the Camera may be the Camera ID of the Camera. Camera IDs of different cameras are different. In another case, the number of the camera may be assigned to the camera by the user in the cell phone. The numbers of different front cameras are different, and the numbers of different rear cameras are different.
Illustratively, in response to a user clicking on a third control (e.g., camera toggle option) 3307 shown in fig. 33D, the handset may display a view interface (i.e., first interface) 3318 of the photograph shown in fig. 33H. As shown in fig. 33H, the first interface 3318 includes a plurality of second controls 3319. For example, the numbers of cameras are 1, 2, and 3. The plurality of second controls 3318 may include a "front camera 1" control, a "front camera 2" control, a "front camera 3" control, a "rear camera 1" control, a "rear camera 2" control, a "rear camera 3" control.
The proxy information "front camera 1" is used to indicate that the second control (e.g. "front camera 1" control) corresponds to a front camera, and the number of the front camera is 1. For example, the number 1 is that the front camera is the front main camera. The proxy information "front camera 2" is used to indicate that the second control (e.g., "front camera 2" control) corresponds to a front camera, where the number of the front camera is 2. For example, the reference numeral 2 is a front camera and a front wide-angle camera. The proxy information "front camera 3" is used to indicate that the second control (e.g., "front camera 3" control) corresponds to a front camera, and the number of the front camera is 3. For example, the number 3 is that the front camera is a front tele camera.
The proxy information "rear camera 1" is used for indicating that the second control (such as "rear camera 1" control) corresponds to one rear camera, and the number of the rear camera is 1. For example, the number 1 is that the rear camera is the rear main camera. The proxy information "rear camera 2" is used to indicate that the second control (e.g. "rear camera 2" control) corresponds to a rear camera, and the number of the rear camera is 2. For example, the reference numeral 2 is a rear camera and a rear wide-angle camera. The proxy information "rear camera 3" is used to indicate that the second control (e.g., "rear camera 3" control) corresponds to a rear camera, and the number of the rear camera is 3. For example, the number 3 is a rear camera and the rear tele camera.
In other embodiments, the mobile phone may display a plurality of second controls on the second interface using at least one of implementations (a) - (c) above. The specific implementation manner of displaying the plurality of second controls on the second interface by the mobile phone can be preconfigured in the mobile phone or set in the mobile phone by a user. The specific method for receiving and displaying the plurality of second controls by the mobile phone according to the user setting may be described in the conventional technology without further description.
In other embodiments, the method of embodiments of the present application may further include S2701-S2702 prior to S3101 described above. The detailed descriptions of S2701-S2702 may refer to the related descriptions of the above embodiments, and are not repeated here.
In other embodiments, the method of embodiments of the present application may further include S3001-S3003 prior to S3101 described above. S3101 may include S3004. The detailed descriptions of S3001-S3004 may refer to the related descriptions of the above embodiments, and are not repeated here.
In other embodiments, the method of the first application scenario or the second application scenario may also be applied to a multi-scene shooting scenario of a mobile phone. The mobile phone can display a plurality of view-finding frames in a multi-view shooting scene, and each view-finding frame can display a preview image acquired by a camera. For example, the mobile phone may display a view interface of the mobile phone shown in fig. 34A when the mobile phone is recording video in a multi-view shooting scene.
In a first application scenario, as shown in fig. 34A, the mobile phone may display two frames, where the frame 3401 displays a first preview image 3402 acquired by the front camera, and the frame 3403 displays a first preview image 3404 acquired by the rear camera. A pause recording button 3405 is included in the viewfinder 3401. The pause recording button 3405 is used for triggering the mobile phone to stop recording the first preview image 3402 acquired by the front camera. A pause recording button 3407 is included in the viewfinder 3402. The pause recording button 3407 is used for triggering the mobile phone to stop recording the first preview image 3404 acquired by the rear camera. The viewfinder interface shown in fig. 34A also includes a stop recording button 3406. The stop recording button 3406 is used to trigger the mobile phone to stop recording video and generate a video file including video streams played in the view frames 3401 and 3403.
The mobile phone may perform the method in the first application scenario for the viewfinder 3401 and the viewfinder 3403, respectively, and switch the camera during the video recording process. For example, the mobile phone may execute S2203 to display a second interface shown in fig. 34B, that is, a framing interface in which the mobile phone pauses recording of video, in response to a click operation of the pause recording button 3405 in the framing box 3401 shown in fig. 34A by the user. The second interface shown in fig. 34B includes two frames, a frame 3401 and a frame 3403. The view-finder 3401 shown in fig. 34B displays a second preview image 3408 acquired by the front camera, and the view-finder 3403 displays a first preview image 3404 acquired by the rear camera.
Also included in the view box 3401 shown in fig. 34B is a first control 3410, and a pause recording button 3409. The details of the first control 3410 and the pause recording button 3409 may be referred to the related descriptions in the above embodiments, and will not be repeated here.
In response to the clicking operation of the first control 3410 shown in fig. 34B, as shown in fig. 34C, the mobile phone may display the third preview image 3411 acquired by the rear camera in the viewfinder 3401, and the viewfinder 3403 still displays the first preview image 3404 acquired by the rear camera.
It should be noted that, the mobile phone executes the method in the first application scenario described above with respect to the viewfinder 3401, and does not affect the recording of the video in the viewfinder 3403. In addition, the mobile phone executes the method in the first application scenario for the viewfinder 3403, and does not affect the recording of the video in the viewfinder 3401. For example, in response to a click operation of the pause recording button 3405 shown in fig. 34B by the user, as shown in fig. 34C, the viewfinder 3403 still displays the first preview image 3404 captured by the rear camera.
For a specific method of switching the camera of the viewfinder 3401 and/or the viewfinder 3403 during the video recording process, reference may be made to the detailed description of S2201-S2207 in the above embodiment, which is not repeated herein.
In a second application scenario, as shown in fig. 35A, the mobile phone may display two frames, the frame 3501 displays the first preview image collected by the front camera, and the frame 3502 displays the first preview image collected by the rear camera. A pause recording button 3504 and a plurality of second controls are included in the viewfinder 3501. The pause recording button 3504 is used for triggering the mobile phone to stop recording the first preview image acquired by the front camera displayed in the viewfinder 3501. Included in the viewfinder 3502 are a pause recording button 3505 and a plurality of second controls. The viewfinder interface shown in fig. 35A also includes a stop record button 3503. The pause record button 3505 is used for triggering the mobile phone to stop recording the first preview image collected by the rear camera displayed in the viewfinder 3502. The stop recording button 3503 is used to trigger the mobile phone to stop recording video, and generate a video file including the video stream played in the viewfinder 3501 and the viewfinder 3502.
The mobile phone may perform the method in the second application scenario described above for the viewfinder 3501 and the viewfinder 3502, respectively, and switch the camera during the video recording process. It should be noted that, the mobile phone executes the method in the second application scenario described above with respect to the viewfinder 3501, and does not affect the recording of the video in the viewfinder 3502. In addition, the mobile phone performs the method in the second application scenario described above with respect to the viewfinder 3502, and does not affect the recording of the video in the viewfinder 3501.
For a specific method of switching the camera of the viewfinder 3501 and/or the viewfinder 3502 during the video recording process, reference may be made to the detailed description of S3101-S3107 in the above embodiment, which is not repeated herein.
In the above-mentioned multi-view shooting scene, the mobile phone may display a pause recording button on each view finding frame. A pause record button in each viewfinder is used to control the handset to pause or continue recording video in the corresponding viewfinder. In this case, as described in the above embodiment, each of the viewfinder frames can be individually controlled. Thus, the timing of recording video in multiple viewfmders may be unsynchronized. For example, as shown in fig. 34B or 34C, the time durations in the view frames 3401 and 3403 are not synchronized. In this case, in response to the user clicking the stop recording button, the duration of the video stream in different viewfinder frames is different in the video file generated by the mobile phone. For example, assume that the mobile phone receives a click operation of the stop recording button 3406 in the user's view interface for recording video shown in fig. 34C. In response to the user's click of the stop record button 3406 shown in fig. 34C, the duration of the video stream of one view finder (e.g., view finder 3401) is 00:00:09 and the duration of the video stream of the other view finder (e.g., view finder 3403) is 00:00:10 in the video file generated by the mobile phone. In the process of playing the video file by the mobile phone, when the video file is played to 00:00:09-00:00:10, the video stream in the view-finding frame 3401 can stay in the last frame image, and the view-finding frame 3403 can play the video stream in real time.
In other embodiments, in the above-mentioned multi-view shooting scenario, the viewing interface of the video recorded by the mobile phone includes only one pause recording button and one stop recording button. For example, as shown in fig. 34D, the viewfinder interface for video recording by the mobile phone includes only one pause recording button 3412 and one stop recording button 3406. The pause recording button 3412 is used for triggering the mobile phone to stop recording the first preview image 3402 acquired by the front camera displayed in the viewfinder 3401 and stop recording the first preview image 3404 acquired by the rear camera displayed in the viewfinder 3403. The stop recording button 3406 is used to trigger the mobile phone to stop recording video and generate a video file including video streams played in the view frames 3401 and 3403. In response to a click operation of the pause recording button 3412 shown in fig. 34D, the cellular phone may display a framing interface for pausing recording of video shown in fig. 34E. As shown in fig. 34E, a first control 3413 is included in the view frame 3401, and a first control 3414 is included in the view frame 3403. The first control 3413 is used for triggering the mobile phone to switch the camera of the view-finding frame 3401, and the first control 3414 is used for triggering the mobile phone to switch the camera of the view-finding frame 3403.
As another example, as shown in fig. 35B, the viewing interface for video recording by the mobile phone includes only one pause recording button 3506 and stop recording button 3503. The pause recording button 3506 is used for triggering the mobile phone to stop recording the first preview image collected by the front camera displayed in the viewfinder 3501 and stop recording the first preview image collected by the rear camera displayed in the viewfinder 3502. The stop recording button 3503 is used to trigger the mobile phone to stop recording video, and generate a video file including the video stream played in the viewfinder 3501 and the viewfinder 3502.
In this embodiment, multiple viewfmders in the viewfmder interface of the mobile phone recording video may be controlled in a unified manner. Thus, the timing durations of video recorded in the plurality of viewfinder frames are synchronized.
In an exemplary embodiment of the present application, the mobile phone includes the main camera 1 (i.e. the first camera) and the camera 2 (i.e. the second camera), and the method steps described in fig. 21 and the above embodiment are combined to describe the method flow of shooting video by the mobile phone in the embodiment of the present application.
After the mobile phone enters a photographing mode, the system camera application 2111 of the application layer 2110 may trigger the bottom layer execution 2601 to start the main camera 1 of the mobile phone by default. The main camera 1 is a default camera of the mobile phone, such as a rear main camera. For example, the system Camera application 2111 may send a notification carrying the Camera identification Camera ID-1 of the Camera 1 to the hardware abstraction layer HAL 2130 through the framework layer 2120, the notification being for instructing the hardware abstraction layer HAL 2130 to execute 2602, starting the video stream 1 of the Camera 1 according to the Camera ID-1. The hardware abstraction layer HAL 2130 may instruct the Kernel layer (Kernel) to start the Camera 1 identified as Camera ID-1, so that the video stream 1 of the Camera 1 may be obtained from the Kernel layer (Kernel) 2140. The Camera driver 2141 of the Kernel layer (Kernel) 2140 may activate the Camera 1 in the Camera device 2142 according to the Camera ID-1.
The principle of the Camera device 2142 of the Kernel layer (Kernel) 2140 for capturing video streams is as follows: the Camera device 2142 may convert an optical signal reflected in a viewing environment into an electrical signal, and the electrical signal is processed by the image signal processor ISP 2143 to obtain a video stream.
The hardware abstraction layer HAL 2130 may then process data (e.g., video stream 1) from the underlying layer (e.g., kernel layer 2140) and then pass to the framework layer 2120. For example, HAL layer 2130 may convert parameters of kernel layer 2140 regarding hardware devices into a software programming language recognizable by framework layer 2120 and application layer 2110.
The framework layer 2120 may receive the video stream 1 from the underlying layer (e.g., kernel layer 2140) transmitted by the hardware abstraction layer HAL 2130. The camera service 2123 of the framework layer 2120 may transport the video stream 1 to an upper layer (e.g., application layer 2110) through an API 1|api 2 interface 2121. After the system camera application 2111 of the application layer 2110 receives the video stream 1, the video stream 1 may be presented at the viewfinder interface, e.g., the video stream 1 is refreshed at SurfaceView at 2607.
Thereafter, the cell phone may execute 2603 to enter a video mode, displaying a view interface including a start recording button. The cell phone may then execute 2604 to begin shooting (i.e., begin recording video), e.g., in response to a user clicking on a start recording button, the cell phone may display a first interface including a pause recording button and begin recording video. At this time, the camera 1 serves as a preview camera of the mobile phone. The phone may then perform 2605 a pause of the shooting, e.g., the phone may pause the recording of the video in response to a user clicking a pause record button in the first interface. And, the mobile phone executes 2605, the application layer 2110 may send a notification to the hardware abstraction layer HAL 2130 to instruct the hardware abstraction layer HAL 2130 to execute 2602 to start the video stream of the Camera 2 (i.e. the idle Camera) according to the Camera ID-2. At this time, the cameras 2 of the mobile phone are all started.
Thereafter, the mobile phone may execute 2606 the viewfinder interface of the mobile phone, and a camera-switch icon (i.e., a first control) may appear. For example, in response to a user clicking on a pause record button, a second interface including a first control (i.e., a camera toggle icon) may be displayed. After the user clicks the camera switch icon at 2606, the application layer 2110 may execute 2607 to refresh the video stream in the surfmeview, e.g., switch the video stream in the surfmeview from video stream 1 to video stream 2. At this time, the camera 2 serves as a preview camera of the mobile phone. For example, in response to a click operation of the first control by the user, the mobile phone may switch the second preview image in the second interface to a third preview image collected by a second camera (such as the camera 2).
Wherein, as shown in fig. 36, the application layer 2110 may receive the video stream 1 or the video stream 2 from the bottom layer. The application layer 2110 may perform 2608 real-time refreshing of the video stream in the surfmeview. And displaying the video stream acquired by the preview camera of the mobile phone in real time in the surface view.
Displaying the video stream acquired by the preview camera of the mobile phone in real time in the surface view; thus, the video processing module 2122 of the framework layer 2120 obtains and buffers the video stream from the surfacview in real time, so that all video streams presented on the viewing interface of the recorded video of the mobile phone can be buffered. Thus, in response to a user ending recording video 2609, video processing module 2122 may execute 3610 an immediate generation of a video file comprising a video stream buffered by video processing module 2122.
In order to facilitate understanding, the embodiment of the application describes the process of shooting pictures or recording videos by the mobile phone in detail, so as to solve the problem that the mobile phone only supports the switching of the front camera and the rear camera and cannot dynamically select the cameras according to the requirements of users in the process of shooting pictures or before recording videos by adopting the conventional technology.
In general, the mobile phone may display a view interface for photographing in response to a clicking operation of a "camera" application icon by a user. When the user wants to record the video by using the mobile phone, the mobile phone can be triggered to display a viewing interface of the recorded video, as shown in fig. 37A, and the viewing interface 3701 of the mobile phone for photographing. The viewfinder of the photographed viewfinder interface 3701 displays a preview image 3702 collected by a default camera (such as a rear camera) of the mobile phone. The view interface 3701 of the photograph also includes a camera switch option 3705 and a "record" option 3706. The camera switching option 3705 is used for triggering the mobile phone to switch to use the front camera or the rear camera to collect images. The "record" option 3706 is used to trigger the handset to enter a record video mode (i.e., record mode).
Assume that preview image 3702 shown in fig. 37A is an image acquired by a rear camera. In response to a click operation of the camera switching option 3705 by the user, the cellular phone may display the photographing viewfinder interface 3703 shown in fig. 37B. The preview image 3704 collected by the front camera of the mobile phone is displayed in the viewfinder of the photographed viewfinder interface 3703. The view interface 3703 of the photograph also includes a camera switch option 3705 and a "record" option 3706. In response to a click operation of the camera switching option 3705 shown in fig. 37B by the user, the cellular phone can display the view interface 3701 of the photograph shown in fig. 37A.
It can be seen that, with the conventional technology, in response to the click operation of the camera switching option 3705 by the user, the mobile phone only supports the switching of the front camera and the rear camera in the photographing mode.
In response to a user clicking on the "record" option 3706 shown in fig. 37A, the cell phone may enter a record mode, displaying the view interface 3707 of the record shown in fig. 37C. The viewfinder of the video viewfinder interface 3707 includes a preview image 3708 captured by a rear camera. The video viewfinder interface 3707 also includes a camera switch option 3705 and a timer option 3709. In response to a click operation of the camera switching option 3705 shown in fig. 37C by the user, the cellular phone may display the view interface 1370 of the video shown in fig. 37D. The preview image 3711 collected by the front camera of the mobile phone is displayed in the viewfinder of the viewfinder interface 1370 of the video. The viewfinder interface 1370 of the video also includes a camera switch option 3705 and a timer option 3709. In response to a click operation of the camera switching option 3705 shown in fig. 37D by the user, the cellular phone may display the view interface 3707 of the video shown in fig. 37C.
It can be seen that, with conventional technology, in response to the click operation of the camera switching option 3705 by the user, the mobile phone only supports the switching of the front camera and the rear camera in the video mode.
In summary, with conventional technologies, in the photographing mode or the video mode, the mobile phone only supports the switching between the front camera and the rear camera in response to the click operation of the camera switching option 3705 by the user. The mobile phone not only comprises a front camera and a rear camera.
For example, as shown in fig. 3C, the handset may include three front cameras, such as front camera a, front camera b, and front camera C; as shown in fig. 3G, the handset may include three rear cameras, such as rear camera 1, rear camera 2, and rear camera 3. The three front cameras and the three rear cameras may include at least two types of cameras as follows: main camera (such as front main camera and rear main camera), long-focus camera, wide-angle camera, ultra-wide-angle camera, infrared camera, depth camera, black-and-white camera, etc.
In some conventional schemes, shooting requirements of users in different scenes can be met by adjusting the focal length Zoom value of the camera. For example, as shown in fig. 37E, after the mobile phone enters the camera APP, the front-back camera may be switched (i.e., the front-back camera is switched) to select a suitable camera to collect an image; then, the focal length Zoom value is adjusted to meet shooting requirements of users; finally, the mobile phone can respond to shooting operation of the user to generate a picture or a video file.
By adopting the scheme, although the focal length Zoom value of the camera can be adjusted on the basis of switching the front camera and the rear camera; however, the adjusting focus Zoom value is only limited when the front main camera or the rear main camera is used, and the adjusting range is limited, so that the shooting requirements of the user in a plurality of different scenes cannot be met.
In summary, by adopting the conventional technology, in the photographing mode or the video mode, the mobile phone can only support the switching between the front-end main camera and the rear-end rear camera in response to the click operation of the user on the camera switching option 3705, and cannot dynamically select different types of cameras according to the user's requirements, so that the photographing requirements of the user in different scenes cannot be met.
The embodiment of the application provides a shooting control method which can be applied to electronic equipment comprising a camera of the electronic equipment. For example, the camera of the electronic device includes a front camera and a rear camera. By adopting the method provided by the embodiment of the application, dynamic switching can be performed between cameras of the electronic equipment according to the user requirements in a photographing mode or a video mode, and the photographing experience of the user can be improved.
The methods in the following embodiments may be implemented in the electronic device 200 having the above-described hardware structure.
The software system of the electronic device 200 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the electronic device 200 is illustrated.
Fig. 38 is a software block diagram of an electronic device 200 according to an embodiment of the present application. The layered architecture may divide the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer (abbreviated application layer) 3810, an application framework layer (abbreviated framework layer) 3820, a hardware abstraction layer (hardware abstract layer, HAL) layer 3830, and a Kernel layer (Kernel, also referred to as driver layer) 3840.
The Application layer (Application) 410 may include a series of Application packages, among other things. The application layer may include a plurality of application packages. The plurality of application packages may be camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, desktop start (Launcher) applications, etc. For example, as shown in fig. 38, the application layer 3810 may include a camera system application (also referred to as a camera application) 3811.
As shown in fig. 38, after the camera system application 3811 enters the photographing mode or the video recording mode, the video stream reported by the bottom layer may be displayed on the photographing view interface or the video view interface. The electronic device 200 may include a plurality of cameras, each of which may be configured to capture images, and successive multi-frame images captured by the cameras may form a video stream. That is, each of the cameras described above may be used to capture video streams.
For example, assume that the electronic device 200 (e.g., a cell phone) includes a front-facing main camera, a front-facing wide-angle camera, a front-facing tele camera, a rear-facing main camera, a rear-facing wide-angle camera, and a rear-facing tele camera, the rear-facing main camera being the default camera of the electronic device 200. Therefore, after the mobile phone enters a photographing mode or a video recording mode, the rear camera is used as a preview camera, and the mobile phone can display video streams acquired by the rear main camera (namely a default camera).
Wherein the Camera identity (Camera ID) of each Camera is different. The application layer 3810 may instruct the bottom layer (e.g., the kernel layer 3840) to start the corresponding Camera through the Camera ID of the Camera, and instruct the bottom layer (e.g., the frame layer 3820) to process the preview video stream collected by the preview Camera according to the Camera ID of the preview Camera. The application layer 3810 may also instruct the bottom layer (e.g. the kernel layer 3840) to close the corresponding Camera through the Camera ID of the Camera according to the operation of the user.
In the embodiment of the application, the user can dynamically switch the camera according to the needs of the user. For example, as shown in fig. 38, the camera system application 3811 is also used to provide the following functions: in the photographing mode or the video mode, if the user selects to switch the camera (i.e. clicks to switch the camera option), the function of selecting the camera can be provided for the user on the view finding interface of photographing or video, for example, a plurality of first controls are displayed, and each first control corresponds to one camera. In response to a user selection of a second control of the plurality of first controls, the camera system application 3811 may switch the preview camera (e.g., the post-primary camera) to a camera corresponding to the second control selected by the user (e.g., the post-tele camera), and present a result of the camera selection (i.e., refresh the video stream). For example, when the preview camera is a rear-mounted main camera, the preview video stream is a video stream collected by the rear-mounted main camera. In response to the clicking operation of the second control by the user, the camera system application 3811 may switch the preview camera to a camera corresponding to the second control (e.g., a rear-mounted tele camera), and the preview video stream is refreshed to a video stream collected by a camera corresponding to the second control (e.g., a rear-mounted tele camera).
For example, the application layer 3810 may instruct the bottom layer (e.g. the kernel layer 3840) to start the corresponding Camera through the Camera ID of the Camera corresponding to the second control, and instruct the bottom layer (e.g. the frame layer 3820) to process the preview video stream collected by the preview Camera according to the Camera ID of the preview Camera.
The Framework layer (Framework) 3820 provides application programming interfaces (application programming interface, APIs) and programming frameworks for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 38, the framework layer may provide Camera APIs such as a Camera API (API 1|api 2) 3821, a Camera Service (Camera Service) 423, a Camera extension Service (Camera Service Extra) 422, and a hardware development kit (hardware software development kit, hw SDK) 3824.
The Camera API (API 1|api 2) 3821 serves as an interface for the underlying layer (e.g., the hardware abstraction layer 3830) to interact with the application layer 3810. Specifically, the Camera API (API 1|api 2) 3821 may receive notifications from upper layers (e.g., the application layer 3810) and process the notifications through the Camera service 423, the Camera expansion service 422, and the HwSDK 3824. Then, the kernel layer 3830 is instructed to turn on the idle camera by the HAL layer 3830, and the video stream of the preview camera is obtained by the HAL layer 3830. Camera API (API 1. Sub. API 2) 3821 may also receive Camera switch notifications from an upper layer (e.g., application layer 3810). The Camera switching notification includes a Camera ID to be switched to a preview Camera.
HAL layer 3830 is used to connect the frame layer 3820 and the core layer 3840. For example, HAL layer 3830 may be data transparent between framework layer 3820 and kernel layer 3840. Of course, the HAL layer 3830 may also process data from the underlying layer (i.e., the kernel layer 3840) and then transmit it to the framework layer 3820. For example, HAL layer 3830 may convert parameters of kernel layer 3840 regarding hardware devices into a software programming language recognizable by framework layer 3820 and application layer 3810. For example, HAL layer 3830 may include HAL3.0.
In the embodiment of the present application, the HAL layer 3830 may manage video streams collected by multiple cameras according to the notification from the upper layers (such as the framework layer 3820 and the application layer 3810), for example, instruct the bottom layer (such as the kernel layer 3840) to turn off/on the video streams of the cameras according to the previous notification.
The kernel layer 3840 includes a Camera driver 3841, an image signal processor ISP 3843, and a Camera device 3842. The Camera device 3842 may include a plurality of cameras, each including a Camera lens, an image sensor, and the like. The image signal processor ISP 3843 may be provided separately from the Camera (e.g., camera device 3842). In other embodiments, the image signal processor ISP 3843 may be disposed in a Camera (e.g., camera device 3842).
Among them, the image signal processor ISP 3843 and the Camera device 3842 are main apparatuses that take videos or pictures. The light signal reflected by the view finding environment is irradiated on the image sensor through the camera lens and can be converted into an electric signal, and the electric signal can be used as an original parameter stream (i.e. video stream) to be transmitted to the upper layer by the camera driver 3841 after being processed by the image signal processor ISP 3843. Also, the Camera driver 3841 may also receive a notification (e.g., a notification indicating to turn on or off the Camera) from an upper layer, and send a stream of functional processing parameters to the Camera device 3842 according to the notification to turn on or off the corresponding Camera.
In the following embodiments, the method according to the embodiments of the present application will be described by taking the electronic device 200 as an example of a mobile phone.
The embodiment of the application provides a shooting control method which can be applied to a mobile phone comprising a camera. The types of the camera in the embodiment of the application can comprise: one or more of a main camera, a long-focus camera, a wide-angle camera, a super-wide-angle camera, a micro-distance camera, a fish-eye camera, an infrared camera, a depth camera and a black-and-white camera. In the application scene, by adopting the method of the embodiment of the application, the mobile phone can switch any two cameras of the mobile phone under a photographing mode or a video mode.
In the following embodiments, the method of the present embodiment is described by taking a mobile phone including a front main camera, a front wide-angle camera, a front tele camera, a rear main camera, a rear wide-angle camera, and a rear tele camera as an example. As shown in fig. 39, the photographing control method may include S3901 to S3903:
s3901, displaying a first interface by the mobile phone. The first interface is a view finding interface for photographing or video recording of the mobile phone, and comprises a first preview image collected by the first camera.
Illustratively, the first interface is a viewfinder interface for taking a photograph of the mobile phone. The handset may display the view interface (i.e., first interface) 601 of the photograph shown in fig. 40A. The first interface 4001 includes a first preview image 4002 captured by a first camera (e.g., a rear main camera).
S3902, responding to a first operation of a user on a first interface, displaying a plurality of first controls on the first interface by the mobile phone, wherein each first control corresponds to one camera in the mobile phone and is used for triggering the mobile phone to use the corresponding camera.
In one implementation, the first interface may include a camera switching option. The camera switching option is used for triggering the mobile phone to switch the camera. For example, the first interface 4001 shown in fig. 40A further includes a camera switching option 4003, where the camera switching option 4003 is used to trigger the mobile phone to switch cameras. The first operation described above may be a click operation (e.g., a click operation) of the camera switching option 4003 shown in fig. 40A by the user.
In another implementation manner, the first operation may also be a preset gesture, such as an S-gesture or a v-gesture, which is input by the user on the first interface. The preset gesture may be preconfigured in the handset. And the mobile phone can prompt the user with the preset gesture and the function triggered by the preset gesture on the video viewing interface.
For example, the cell phone may receive a click operation of the camera switching option 4003 shown in fig. 40A by the user. Generally, in response to the user clicking the camera switching option 4003 shown in fig. 40A, the mobile phone may switch the preview camera from the rear camera (e.g., rear main camera) to the front camera (e.g., front main camera), or may switch the preview camera from the front camera (e.g., front main camera) to the rear camera (e.g., rear main camera). That is, the conventional technology only supports switching of the front camera and the rear camera.
In the embodiment of the present application, in response to the clicking operation of the camera switching option 4003 shown in fig. 40A, the mobile phone may display the view interface (i.e., the first interface) 4004 of the photographing shown in fig. 40B. As shown in fig. 40B, the first interface 4004 includes not only the first preview image 4006 captured by the first camera, but also a plurality of first controls 4005. For example, the plurality of first controls 4005 can include: a "front-facing main shot" control, a "front-facing tele" control, a "front-facing wide" control, a "rear-facing main shot" control, a "rear-facing tele" control, and a "rear-facing wide" control.
The front-end main shooting control in the embodiment of the application corresponds to a front-end main camera of the mobile phone and is used for triggering the mobile phone to display a preview image acquired by the front-end main camera. The front-mounted tele control corresponds to a front-mounted tele camera of the mobile phone and is used for triggering the mobile phone to display a preview image acquired by the front-mounted tele camera. The front wide-angle control part corresponds to a front wide-angle camera of the mobile phone and is used for triggering the mobile phone to display a preview image acquired by the front wide-angle camera.
The 'post-main shooting' control corresponds to a post-main camera of the mobile phone and is used for triggering the mobile phone to display a preview image acquired by the post-main camera. The 'rear-mounted tele' control corresponds to a rear-mounted tele camera of the mobile phone and is used for triggering the mobile phone to display a preview image acquired by the rear-mounted tele camera. The 'rear wide angle' control part corresponds to a rear wide angle camera of the mobile phone and is used for triggering the mobile phone to display a preview image acquired by the rear wide angle camera.
As shown in fig. 40B, the mobile phone may display the plurality of first controls 4005 at positions on the viewfinder interface of the photographing of the mobile phone, which are originally used for displaying the camera switching options. Of course, the display positions and display manners of the plurality of first controls include, but are not limited to, the display positions and display manners shown in fig. 40B.
For example, in response to a click operation of the camera switching option 4003 shown in fig. 40A by the user, the cellular phone may display a view interface (i.e., a first interface) 607 of photographing shown in fig. 40C. As shown in fig. 40C, the first interface 4007 includes not only the first preview image 4009 captured by the first camera, but also a plurality of first controls 4008. For example, the plurality of first controls 4008 can include: a "front-facing main shot" control, a "front-facing tele" control, a "front-facing wide" control, a "rear-facing main shot" control, a "rear-facing tele" control, and a "rear-facing wide" control.
For another example, in response to a click operation of the camera switching option 4003 shown in fig. 40A by the user, the mobile phone may display the view interface (i.e., the first interface) 610 of the photograph shown in fig. 40D. As shown in fig. 40D, the first interface 4010 includes not only the first preview image 4011 collected by the first camera, but also a plurality of first controls 4012. For example, the plurality of first controls 4012 can include: a "front-facing main shot" control, a "front-facing tele" control, a "front-facing wide" control, a "rear-facing main shot" control, a "rear-facing tele" control, and a "rear-facing wide" control.
Here, unlike the first interface 4005 shown in fig. 40B, the first interface 4007 shown in fig. 40C and the first interface 4010 shown in fig. 40D further include a camera switching option 4003. In response to a user clicking on the camera switch option 4003 shown in fig. 40C or 40D, the mobile phone may hide the plurality of first controls (e.g., the plurality of first controls 4008 or the plurality of first controls 4012) and display the first interface 4001 shown in fig. 40A.
In the embodiment of the application, the plurality of first controls displayed on the shooting view interface of the mobile phone at least can comprise the following three implementation modes.
Implementation mode (1):
as shown in any one of fig. 40B, 40C, or 40D, type indication information of a corresponding camera is displayed on each of the plurality of first controls. In the embodiment of the application, the type indication information of one camera is used for indicating the type of the camera, and can also indicate that the camera is a front camera or a rear camera.
For example, as shown in fig. 40B, the type instruction information, "front main shot", "front tele", "front wide", "rear main shot", "rear tele", "rear wide" is displayed on each of the plurality of first controls 4005. The type indication information is used for indicating that the first control corresponds to the front-mounted main camera. The type indication information is used for indicating that the first control corresponds to the front tele camera. The type indication information "front wide angle" is used for indicating that the first control corresponds to the front wide angle camera. The type indication information is used for indicating that the first control corresponds to the rear-mounted main camera. The type indication information is used for indicating that the first control corresponds to the rear-mounted tele camera. The type indication information "rear wide angle" is used for indicating that the first control corresponds to the rear wide angle camera.
Implementation mode (2):
the plurality of first controls are a plurality of preview windows, and preview images acquired by the corresponding cameras are displayed on each preview window. For example, in response to a click operation of the camera switching option 4003 shown in fig. 40A by the user, the cellular phone may display a view interface (i.e., a first interface) 701 of photographing shown in fig. 41A. As shown in fig. 41A, the first interface 4101 includes not only the first preview image 708 collected by the first camera, but also a plurality of first controls. For example, fig. 41A may include a first control 4102, a first control 4103, a first control 4104, a first control 4105, a first control 4106, and a first control 4107. The first control 4102, first control 4103, first control 4104, first control 4105, first control 4106, and first control 4107 are all preview windows.
The first control 4102 displays therein a preview image acquired by the rear main camera. The first control 4103 displays therein preview images collected by the rear wide-angle camera. The first control 4104 displays therein a preview image acquired by the rear-mounted tele camera. The first control 4105 displays therein a preview image captured by the front main camera. The first control 4106 displays therein a preview image acquired by the front wide-angle camera. The first control 4107 displays a preview image acquired by the front-facing tele camera.
Therefore, the first control 4102 may also be referred to as a "post-panning" control, the first control 4103 may also be referred to as a "post-wide" control, and the first control 4104 may also be referred to as a "post-tele" control; the first control 4105 may also be referred to as a "front-facing main" control, the first control 4106 may also be referred to as a "front-facing wide" control, and the first control 4107 may also be referred to as a "front-facing tele" control. The handset execution S3902 may display a first interface 4109 shown in fig. 41B.
The first interface 4101 shown in fig. 41A and the first interface 4109 shown in fig. 41B further include a camera switching option 4003. In response to a click operation of the camera switching option 4003 shown in fig. 41A or 41B by the user, the mobile phone may hide the plurality of first controls, and display the first interface 4001 shown in fig. 40A.
It is understood that the preview images collected by the corresponding cameras are displayed on each first control, so that the shooting effect, the shooting view angle and the like of each camera can be intuitively displayed for a user, and the user can select the cameras meeting the user requirements, such as the shooting effect, the shooting view angle and the like, from the cameras. Thus, the shooting experience of the user can be improved.
Implementation mode (3):
and proxy information of the corresponding camera is displayed on each of the plurality of first controls. In the embodiment of the application, the proxy information of one camera can indicate that the camera is a front camera or a rear camera, and can also comprise the serial number of the camera.
In one case, the number of the camera may be assigned to the camera by the handset. For example, the number of the Camera may be the Camera ID of the Camera. Camera IDs of different cameras are different. In another case, the number of the camera may be assigned to the camera by the user in the cell phone. The numbers of different front cameras are different, and the numbers of different rear cameras are different.
Illustratively, in response to a user clicking on the camera switch option 4003 shown in fig. 40A, the handset may display a view interface (i.e., a first interface) 4201 of the photograph shown in fig. 42A. As shown in fig. 42A, the first interface 4201 includes not only a first preview image 4202 captured by a first camera, but also a plurality of first controls 4203. For example, the numbers of cameras are 1, 2, and 3. The plurality of first controls 4203 may include a "front camera 1" control, a "front camera 2" control, a "front camera 3" control, a "rear camera 1" control, a "rear camera 2" control, and a "rear camera 3" control.
The proxy information "front camera 1" is used to indicate that the first control (e.g. "front camera 1" control) corresponds to a front camera, and the number of the front camera is 1. For example, the number 1 is that the front camera is the front main camera. The proxy information "front camera 2" is used to indicate that the first control (e.g., "front camera 2" control) corresponds to a front camera, and the number of the front camera is 2. For example, the reference numeral 2 is a front camera and a front wide-angle camera. The proxy information "front camera 3" is used to indicate that the first control (e.g., "front camera 3" control) corresponds to a front camera, and the number of the front camera is 3. For example, the number 3 is that the front camera is a front tele camera.
The proxy information "rear camera 1" is used for indicating that the first control (such as "rear camera 1" control) corresponds to one rear camera, and the number of the rear camera is 1. For example, the number 1 is that the rear camera is the rear main camera. The proxy information "rear camera 2" is used to indicate that the first control (e.g. "rear camera 2" control) corresponds to a rear camera, and the number of the rear camera is 2. For example, the reference numeral 2 is a rear camera and a rear wide-angle camera. The proxy information "rear camera 3" is used to indicate that the first control (e.g., "rear camera 3" control) corresponds to a rear camera, and the number of the rear camera is 3. For example, the number 3 is a rear camera and the rear tele camera.
The first interface 4201 shown in fig. 42A further includes a camera switching option 4003. In response to a user clicking on the camera switch option 4003 shown in fig. 42A, the mobile phone may hide the plurality of first controls (e.g., the plurality of first controls 4203) and display the first interface 4001 shown in fig. 40A.
In the above embodiment, each of the plurality of first controls may correspond to one camera in the mobile phone. For example, in the case of a front main camera, a front wide-angle camera, a front tele camera, a rear main camera, a rear wide-angle camera, and a rear tele camera, each of the plurality of first controls as shown in fig. 40B, 40C, 40D, 41A, 41B, or 42A corresponds to one of the cellular phones.
In other embodiments, there may be at least two first controls in the plurality of first controls corresponding to the same camera in the mobile phone. The at least two first controls are used for triggering the mobile phone to switch the camera to use, and the preview images acquired by the camera are processed and displayed with different zoom magnifications.
For example, the mobile phone displays a plurality of first controls by using the implementation (1) above. The handset execution S3902 may display a first interface 4205 shown in fig. 42B. Included in the first interface 4205 are a plurality of first controls 4206. The plurality of first controls 4206 includes: the control of the rear tele 1.0x, the control of the rear tele 2.0x, the control of the rear tele 3.0x, the control of the front main shooting, the control of the front wide angle, the control of the rear main shooting, the control of the front tele and the control of the rear wide angle.
For another example, the mobile phone displays a plurality of first controls using the implementation (2) above. The handset execution S3902 may display a first interface 4207 shown in fig. 42C. A plurality of first controls are included in the first interface 4207. The first interface 4207 shown in fig. 42C includes a "post-tele 1.0x" control, a "post-tele 2.0x" control, a "post-tele 3.0x" control, a "pre-main" control, a "pre-wide" control, a "post-main" control, a "pre-tele" control, and a "post-wide" control.
Wherein, 1.0x, 2.0x and 3.0x are all zoom magnifications. "3.0x" means that the zoom magnification is 3 times. "2.0x" means that the zoom magnification is 2.0 times. "1.0x" means that the zoom magnification is 1.0 times. The zoom magnification in the embodiment of the application can be optical zoom magnification or digital zoom magnification. In response to the clicking operation of the "rear-end tele 2.X" control (i.e., the first logic control) shown in fig. 42B or 42C, the mobile phone may switch the rear-end tele camera of the mobile phone, and process and display the preview image acquired by the rear-end tele camera with an optical magnification of 2.0 times. In response to the clicking operation of the "rear-mounted tele 3.0x" control (i.e., the second logic control) shown in fig. 42B or 42C, the mobile phone may switch to use the rear-mounted tele camera of the mobile phone, and process and display the preview image acquired by the rear-mounted tele camera with a zoom magnification of 3.0 times.
The mobile phone can display at least two first controls under different zoom magnifications aiming at part or all cameras in the mobile phone. The zoom magnification corresponding to the first control of the same camera can be preconfigured in the mobile phone or can be set in the mobile phone by a user.
It should be noted that, the mobile phone (i.e., the electronic device) according to the embodiment of the present application may include a camera (i.e., a physical camera). In this case, the plurality of first controls displayed by the mobile phone at the first interface may correspond to a plurality of logical cameras of the physical camera. Each logical camera is implemented with a different zoom magnification of the physical camera.
For example, the plurality of first controls includes a first logical control (a "post tele 2.x" control as shown in fig. 42B or 42C) and a second logical control (a "post tele 3.0x" control as shown in fig. 42B or 42C). The first logic control is used for triggering the electronic equipment to use the first logic camera, and the second logic control is used for triggering the electronic equipment to use the second logic camera. The first logical camera and the second logical camera are realized under different zoom magnifications by the same physical camera (such as a rear-mounted tele camera) of the electronic equipment.
In some embodiments, in order to distinguish the current preview camera (such as the first camera) of the mobile phone from other cameras in the mobile phone, the mobile phone may display the first control corresponding to the preview camera of the mobile phone in a manner different from the first control corresponding to the other cameras.
Wherein, in the process of executing S3901-S3902, the preview camera of the mobile phone is the first camera. Therefore, when the mobile phone executes S3902 to display the plurality of first controls on the first interface, the first controls corresponding to the first camera may be displayed in the first display mode, and the first controls corresponding to the other cameras except for the first camera may be displayed in the second display mode. Wherein the first display mode is different from the second display mode. Through the first display mode and the second display mode, a user can identify which camera in the mobile phone is the current preview camera of the mobile phone.
For example, take the example that the first camera (i.e., the preview camera) is a rear-mounted main camera of the mobile phone. As shown in any one of fig. 40B, 40C or 40D, the mobile phone may display a first control corresponding to the rear-mounted main camera in a first display manner (such as a black matrix and white character display manner), such as a "rear-mounted main camera" control; the mobile phone can display the first control corresponding to other cameras in a second display mode (such as a white background and black character display mode), such as a rear-mounted long-focus control, a rear-mounted wide-angle control, a front-mounted main shooting control, a front-mounted long-focus control and a front-mounted wide-angle control.
As shown in fig. 41A or fig. 41B, the mobile phone may display a first control corresponding to the rear-mounted main camera in a first display manner (such as a display manner with a bold black frame), for example, a "rear-mounted main camera" control; the mobile phone can display the first control corresponding to other cameras in a second display mode (such as a display mode without thickening black frames), such as a rear-mounted long-focus control, a rear-mounted wide-angle control, a front-mounted main shooting control, a front-mounted long-focus control and a front-mounted wide-angle control.
The first display mode and the second display mode include, but are not limited to, the display modes listed in the above examples, and specific forms of the first display mode and the second display mode in the embodiment of the present application are not limited. The user can identify the current preview camera of the mobile phone by two different display modes.
In other embodiments, the mobile phone may also recommend the camera to the user according to the image collected by the preview camera and/or scene information of the mobile phone. For example, if the image captured by the preview camera is an image of a building or a landscape, etc., the mobile phone may recommend the user to use the rear-mounted wide-angle camera. The scene information may include location information, time information, and the like. For another example, if the location information of the mobile phone indicates that the mobile phone is located in a scenic spot, the mobile phone may recommend that the user use a rear-mounted wide-angle camera. For another example, in the case where the mobile phone uses a front-facing camera as the preview camera, if the image collected by the preview camera includes a face image, the hand may recommend the user to use the front-facing wide-angle camera. For another example, if the size of the shooting object in the image acquired by the preview camera is smaller, the mobile phone may recommend the user to use the rear-mounted tele camera. And the mobile phone can recommend the zoom magnification of the camera to the user according to the size of the shooting object in the image acquired by the preview camera. For example, when the image collected by the preview camera includes a face image, and the size of the face image is 1/2 of the size of the whole preview image, the mobile phone may recommend that the user use the zoom magnification of 4.0x.
Taking a mobile phone as an example, a user is recommended to use a rear-mounted tele camera. As shown in fig. 42D, the mobile phone may send a recommendation prompt 4204, such as "recommend switch use post-tele camera-! ". It should be noted that, the specific method of recommending the camera to the user by the mobile phone according to the image collected by the preview camera and/or the scene information of the mobile phone, etc. may refer to the related description in the conventional technology, and the embodiments of the present application are not repeated here.
S3903, responding to clicking operation of a user on a second control in the plurality of first controls, and switching a first preview image acquired by a first camera in a first interface into a second preview image acquired by a second camera by the mobile phone.
The second control is a first control corresponding to the second camera among the plurality of first controls. The second camera is different from the first camera. The second camera may be any camera other than the first camera among the cameras of the electronic device. For example, in the case where the first camera is a rear-mounted main camera of the mobile phone, the second camera may be any one of a front-mounted main camera, a front-mounted wide-angle camera, a front-mounted tele camera, a rear-mounted wide-angle camera, or a rear-mounted tele camera.
In the following embodiments, the first camera is a rear-mounted main camera of the mobile phone, and the second camera is a front-mounted wide-angle camera. In this case, the second control may be a "front wide angle" control shown in any one of fig. 40B, 40C, 40D, 41A, or 41B, or the second control may be a "front camera 2" control shown in fig. 42A.
For example, in response to a user clicking on the "front wide angle" control (i.e., the second control) shown in fig. 40B, the cell phone may display the first interface 4301 shown in fig. 43. The first interface 4301 includes a second preview image 4302 captured by a second camera (e.g., a front wide-angle camera). That is, in response to a click operation of the "front wide angle" control shown in fig. 40B by the user, the mobile phone switches the first preview image 4002 in the first interface to the second preview image 4302.
For another example, in response to a user clicking on the "front wide angle" control (i.e., the second control) shown in fig. 41A, the cell phone may display the first interface 4401 shown in fig. 44. The first interface 4401 includes a second preview image 4402 captured by a second camera (e.g., a front wide-angle camera). That is, in response to the user's click operation of the "front wide angle" control shown in fig. 41A, the mobile phone switches the first preview image 702 in the first interface to the second preview image 4402.
The first interface 4401 shown in fig. 44 further includes a camera switching option 4003. In response to the clicking operation of the camera switching option 4003 shown in fig. 44 by the user, the mobile phone may hide the plurality of first controls (e.g., the plurality of first controls 4403), and display the first interface 4501 shown in fig. 45. The first interface 4501 includes a second preview image 4502 captured by a second camera, excluding the plurality of first controls.
It should be noted that, as shown in fig. 43 or fig. 44, in response to the clicking operation of the second control by the user, the mobile phone may display the first control (i.e., the second control) corresponding to the second camera in the first display mode (such as the display mode of the black matrix white word), such as the "front wide-angle" control; the mobile phone can display the first controls corresponding to other cameras in a second display mode (such as a white background and black character display mode), such as a rear-mounted main shooting control, a rear-mounted long focus control, a rear wide angle control, a front-mounted main shooting control and a front-mounted long focus control.
In other embodiments, the handset may display the first interface 4501 shown in fig. 45 in response to a user clicking on the "front wide angle" control shown in any of fig. 40B, 40C, 40D, 41A, or 41B, or the "front camera 2" control (i.e., the second control) shown in fig. 42A. The first interface 4501 includes a second preview image 4502 captured by a second camera. That is, in response to a click operation of the second control by the user, the mobile phone switches the first preview image in the first interface to the second preview image 4502. Note that the first interface 4501 shown in fig. 45 does not include a plurality of first controls.
In the embodiment of the application, in the process of photographing by the mobile phone, clicking operation of a user on a camera switching option in the first interface can be received. Then, the mobile phone can respond to clicking operation of the camera switching option by a user, and a plurality of first controls can be displayed on the first interface. Each first control corresponds to one camera in the mobile phone. Thus, the mobile phone can receive clicking operation of any one of the first controls (such as the second control) by the user, and the camera in the mobile phone is switched to be used. By adopting the method provided by the embodiment of the application, the camera can be dynamically selected according to the requirements of the user in the photographing process, so that the photographing requirements of the user in different scenes can be met, and the photographing experience of the user can be improved.
In other embodiments, the first interface is a viewing interface of a video recording of a mobile phone. The mobile phone executes S3901 to display the view interface 1201 (i.e., the first interface) of the video shown in fig. 46A of fig. 12. The first interface 120 interface 4601 includes a first preview image 120 image 4602 captured by a first camera (e.g., a rear host camera). The first interface 120 interface 4601 further includes a camera switch option 4603, where the camera switch option 4603 is used to trigger the mobile phone to switch cameras. It should be noted that the first interface is a viewfinder interface where the mobile phone has not started recording.
The handset may then receive a click operation of the camera switch option 4603 shown in fig. 46A by the user. Generally, in response to the user clicking the camera switching option 4003 shown in fig. 46A, the mobile phone may switch the preview camera from the rear camera (e.g., rear main camera) to the front camera (e.g., front main camera), or may switch the preview camera from the front camera (e.g., front main camera) to the rear camera (e.g., rear main camera). That is, the conventional technology only supports switching of the front camera and the rear camera.
In the embodiment of the present application, the mobile phone executes S3902, and in response to the user clicking the camera switching option 4603 shown in fig. 46A, the mobile phone may display the view interface 1204 (i.e., the first interface) of the video shown in fig. 46B. As shown in fig. 46B, the first interface 4604 includes not only the first preview image 4605 captured by the first camera, but also a plurality of first controls 4605. For example, the plurality of first controls 4606 may include: a "front-facing main shot" control, a "front-facing tele" control, a "front-facing wide" control, a "rear-facing main shot" control, a "rear-facing tele" control, and a "rear-facing wide" control.
As shown in fig. 46B, the handset may display a plurality of first controls 4606 in a viewfinder of a viewfinder interface of a video of the handset. Of course, the display positions and display manners of the plurality of first controls include, but are not limited to, the display positions and display manners shown in fig. 46B. For example, the mobile phone may display the plurality of first controls 4606 at positions on the viewing interface of the video recording of the mobile phone, which are originally used for displaying the camera switching options, which are not shown in the drawings.
In the embodiment of the present application, the plurality of first controls displayed on the viewfinder interface of the video by the mobile phone may at least include the above implementation (1) -implementation (3).
For example, in the above implementation (1), as shown in fig. 46B, the type indication information of the corresponding camera is displayed on each of the plurality of first controls. In the embodiment of the application, the type indication information of one camera is used for indicating the type of the camera, and can also indicate that the camera is a front camera or a rear camera.
For example, as shown in fig. 46B, the type instruction information, "front main shot", "front tele", "front wide", "rear main shot", "rear tele", "rear wide" is displayed on each of the plurality of first controls 4606, respectively. The type indication information is used for indicating that the first control corresponds to the front-mounted main camera. The type indication information is used for indicating that the first control corresponds to the front tele camera. The type indication information "front wide angle" is used for indicating that the first control corresponds to the front wide angle camera. The type indication information is used for indicating that the first control corresponds to the rear-mounted main camera. The type indication information is used for indicating that the first control corresponds to the rear-mounted tele camera. The type indication information "rear wide angle" is used for indicating that the first control corresponds to the rear wide angle camera.
For another example, in the above-described implementation (2), in response to the user's click operation of the camera switching option 4603 shown in fig. 46A, the mobile phone may display the view interface (i.e., the first interface) 4701 of the photograph shown in fig. 47. As shown in fig. 47, the first interface 4701 includes not only the first preview image 4708 acquired by the first camera, but also a plurality of first controls. For example, fig. 46A may include a first control 4702, a first control 4703, a first control 4704, a first control 4705, a first control 4706, and a first control 4707. The first control 4702 may also be referred to as a "post-panning" control, the first control 4703 may also be referred to as a "post-wide" control, and the first control 4704 may also be referred to as a "post-tele" control; the first control 4705 may also be referred to as a "front-facing main" control, the first control 4706 may also be referred to as a "front-facing wide" control, and the first control 4707 may also be referred to as a "front-facing tele" control.
It is understood that the preview images collected by the corresponding cameras are displayed on each first control, so that the shooting effect, the shooting view angle and the like of each camera can be intuitively displayed for a user, and the user can select the cameras meeting the user requirements, such as the shooting effect, the shooting view angle and the like, from the cameras. Thus, the shooting experience of the user can be improved.
For another example, in implementation (3), in response to the user's click operation of the camera switching option 4603 shown in fig. 46A, the mobile phone may display a view interface (i.e., a first interface) 4801 of the photograph shown in fig. 48. As shown in fig. 48, the first interface 4801 includes not only the first preview image 4802 captured by the first camera, but also a plurality of first controls 4803. For example, the numbers of cameras are 1, 2, and 3. The plurality of first controls 4803 can include a "front camera 1" control, a "front camera 2" control, a "front camera 3" control, a "rear camera 1" control, a "rear camera 2" control, and a "rear camera 3" control. The detailed description of the "front camera 1" control, the "front camera 2" control, the "front camera 3" control, the "rear camera 1" control, the "rear camera 2" control, and the "rear camera 3" control may refer to the relevant content in the above embodiment, and this embodiment is not repeated here.
The first interface 4604 shown in fig. 46B, the first interface 4701 shown in fig. 47, and the first interface 4801 shown in fig. 48 further include a camera switching option 4603. In response to the clicking operation of the camera switching option 4603 shown in fig. 46B, 47 or 48, the mobile phone may hide the plurality of first controls, and display the first interface 4601 shown in fig. 46A.
In some embodiments, in the view finding interface of the video recording of the mobile phone, when the mobile phone executes S3902 to display a plurality of first controls on the first interface, the first controls corresponding to the first camera may be displayed in a first display manner, and the first controls corresponding to the other cameras except for the first camera may be displayed in a second display manner.
For example, take the example that the first camera (i.e., the preview camera) is a rear-mounted main camera of the mobile phone. As shown in fig. 46B, the mobile phone may display a first control corresponding to the rear-mounted main camera in a first display mode (such as a black matrix and white character display mode), for example, a "rear-mounted main camera" control; the mobile phone can display the first control corresponding to other cameras in a second display mode (such as a white background and black character display mode), such as a rear-mounted long-focus control, a rear-mounted wide-angle control, a front-mounted main shooting control, a front-mounted long-focus control and a front-mounted wide-angle control.
As shown in fig. 47, the mobile phone may display a first control corresponding to the rear-mounted main camera in a first display mode (such as a display mode with a bold black frame), for example, a "rear-mounted main camera" control; the mobile phone can display the first control corresponding to other cameras in a second display mode (such as a display mode without thickening black frames), such as a rear-mounted long-focus control, a rear-mounted wide-angle control, a front-mounted main shooting control, a front-mounted long-focus control and a front-mounted wide-angle control.
The first display mode and the second display mode include, but are not limited to, the display modes listed in the above examples, and specific forms of the first display mode and the second display mode in the embodiment of the present application are not limited. The user can identify the current preview camera of the mobile phone by two different display modes.
Thereafter, the mobile phone may receive and respond to a click operation of a second control (such as the "front wide angle" control shown in fig. 46B, the "front wide angle" control 4706 shown in fig. 47, or the "front camera 2" control shown in fig. 48) from the plurality of first controls by the user.
For example, the mobile phone executes S3903, and in response to the user clicking the "front wide angle" control shown in fig. 46B, the first interface 4901 shown in fig. 49A may be displayed. The first interface 4901 includes a second preview image 4902 acquired by a second camera (e.g., a front-facing wide-angle camera). That is, in response to the click operation of the "front wide angle" control shown in fig. 46B by the user, the mobile phone switches the first preview image 4605 in the first interface to the second preview image 4902.
The first interface 4901 shown in fig. 49A further includes a camera switching option 4603. In response to the user clicking the camera switching option 4603 shown in fig. 49A, the mobile phone may hide the plurality of first controls (e.g., the plurality of first controls 4403) and display the first interface 4904 shown in fig. 49B. The first interface 4904 includes a second preview image 4905 captured by a second camera, excluding the plurality of first controls.
It should be noted that, as shown in fig. 49A, in response to the clicking operation of the second control by the user, the mobile phone may display the first control (i.e., the second control) corresponding to the second camera in a first display manner (such as a display manner of a black matrix and a white word), such as a "front wide-angle" control; the mobile phone can display the first controls corresponding to other cameras in a second display mode (such as a white background and black character display mode), such as a rear-mounted main shooting control, a rear-mounted long focus control, a rear wide angle control, a front-mounted main shooting control and a front-mounted long focus control.
In other embodiments, the handset may display the first interface 4904 shown in fig. 49B in response to a user clicking on the "front wide" control shown in fig. 46B, the "front wide" control 4706 shown in fig. 47, or the "front camera 2" control (i.e., the second control) shown in fig. 48. The first interface 4904 includes a second preview image 4905 captured by a second camera. That is, in response to a click operation of the second control by the user, the mobile phone switches the first preview image in the first interface to the second preview image 4905. Note that the first interface 4905 shown in fig. 49B does not include a plurality of first controls.
In the embodiment of the application, when the mobile phone displays the view finding interface (namely the first interface) of the video, the clicking operation of the user on the camera switching option in the first interface can be received. Then, the mobile phone can respond to clicking operation of the camera switching option by a user, and a plurality of first controls can be displayed on the first interface. Each first control corresponds to one camera in the mobile phone. Thus, the mobile phone can receive clicking operation of any one of the first controls (such as the second control) by the user, and the camera in the mobile phone is switched to be used. By adopting the method provided by the embodiment of the application, the camera can be dynamically selected according to the requirements of the user during video recording so as to meet the shooting requirements of the user in different scenes and improve the shooting experience of the user.
In other embodiments, the mobile phone executes S3902, and in response to a click operation of the camera switching option by the user, if a preset function of the mobile phone is started, the mobile phone may display a plurality of first controls on the first interface. However, if the preset function of the mobile phone is not yet started, the mobile phone can directly switch the preview camera from the rear camera (such as the rear main camera) to the front camera (such as the front main camera), or switch the preview camera from the front camera (such as the front main camera) to the rear camera (such as the rear main camera). The front camera and the rear camera are directly switched.
Specifically, the step S3902 may include: and responding to clicking operation of the camera switching option by a user, and if a preset function of the mobile phone is started, displaying a plurality of first controls on a first interface by the mobile phone. The preset function is a function of switching multiple cameras on a shooting or video finding interface of the mobile phone.
In the embodiment of the application, the mobile phone can start the preset function, namely the function of switching the camera in the video recording process, through any one of the following implementation modes.
Implementation (a): the mobile phone responds to the operation of starting the preset function input by the user in the notification bar of the mobile phone, and starts the preset function.
Illustratively, the handset may display a notification bar 5001 shown in fig. 50 in response to a user's drop-down operation on top of a display (e.g., touch-screen) of the handset. The notification bar 5001 includes preset function switches, such as a "multiple camera switch" switch 5002. In response to the user's operation of the "multi-camera switch" switch 5002, the mobile phone may activate a preset function. In response to the user closing the "multi-camera switch" switch 5002, the mobile phone may close the preset function.
The notification bar 5001 shown in fig. 50 also includes a "flight mode" switch, a "WLAN" option, a "bluetooth" option, a "mobile network" option, a "flashlight" switch, etc. of the handset. For specific functions of these switches and options, reference may be made to the detailed description of each switch and option in the notification bar in the conventional technology, which is not described herein.
Implementation (b): and the mobile phone responds to the operation of starting the preset function input by the user on the setting interface, and starts the preset function.
For example, as shown in fig. 51A, the setup interface 5101 of the mobile phone includes a preset function switch, such as a "multiple camera switch" switch 5102. In response to the user's operation of the "multiple camera switch" switch 5102, the mobile phone may activate a preset function. In response to the user closing the "multiple camera switch" switch 5102, the mobile phone may close the preset function.
The setup interface 5101 shown in fig. 51A also includes a "flight mode" switch, a "WLAN" option, a "bluetooth" option, a "mobile network" option, and the like of the handset. For specific functions of these switches and options, reference may be made to the detailed description of each switch and option of the setting interface in the conventional technology, which is not described herein.
In this implementation (B), as shown in fig. 51B, the setup interface 5103 of the mobile phone further includes preset options, such as a "multiple camera switch" option 5104. In response to a click operation of the "multiple camera switching" option 5104 by the user, the mobile phone may display a multiple camera switching interface 5105 shown in fig. 51C. The multi-camera switching interface 5105 includes preset function switches, such as a "multi-camera switching" switch 5106. In response to the user's operation of the "multiple camera switch" switch 5106, the mobile phone can activate a preset function. In response to the user closing the "multiple camera switch" switch 5106, the mobile phone may close the preset function.
For example, after the mobile phone starts the preset function, in response to the clicking operation of the camera switching option 4003 in the first interface 4001 shown in fig. 40A by the user, the mobile phone may display the first interface shown in fig. 40B, 40C, 40D, 41A, 41B, or 42A. After the mobile phone closes the preset function, in response to the clicking operation of the camera switching option 4003 in the first interface 4001 shown in fig. 40A by the user, the mobile phone may display the photographing viewfinder interface 3703 shown in fig. 37B.
For another example, after the mobile phone starts the preset function, the mobile phone may display the first interface shown in fig. 46B, 47 or 48 in response to the user clicking the camera switching option 4603 in the first interface 4601 shown in fig. 46A. After the mobile phone closes the preset function, in response to the clicking operation of the camera switching option 4603 in the first interface 4601 shown in fig. 46A, the mobile phone may display the viewfinder interface 3703 of the photograph shown in fig. 37B.
In this embodiment, the mobile phone responds to the click operation of the user on the camera switching option, and only when the preset function of the mobile phone is started, a plurality of first controls can be displayed on the first interface. Therefore, clicking operation of a user on any one of the plurality of first controls can be received, and the camera is switched, so that the service of switching the camera in the process of photographing or video recording is provided for the user.
In some embodiments, the implementation manner of the plurality of first controls displayed by the mobile phone on the first interface (such as the viewfinder interface of photographing or video recording of the mobile phone) may be preconfigured in the mobile phone in implementation manner (1), implementation manner (2) or implementation manner (3). For example, the method may be configured in a mobile phone in advance, and the type indication information of the corresponding camera is displayed on the first control by adopting the implementation (1). For another example, the method may be configured in the mobile phone in advance, and the preview image acquired by the corresponding camera may be displayed on the first control by adopting the implementation (2). For another example, the proxy information corresponding to the camera may be configured in the mobile phone in advance, and the proxy information corresponding to the camera may be displayed on the first control by using the implementation (3).
In other embodiments, the implementation of the plurality of first controls displayed on the first interface of the handset may be selected by the user. In one design, the mobile phone may receive a selection operation of the implementation (1), implementation (2), or implementation (3) in the "setup" application by the user, and determine the display content of the first control. For example, the handset may display the setup interface 5103 shown in fig. 51B; in response to a user clicking on the "multiple camera switch" option 5104 in the setup interface 5103, the handset may display a multiple camera switch interface 5105 shown in fig. 51C. The multi-camera switching interface 5105 includes a first option (e.g., a "display camera proxy" option) 5108, a second option (e.g., a "display camera type" option) 5109, and a third option (e.g., a "display camera preview screen" option) 5110. The handset may then receive a user selection of at least one of the first option 5108, the second option 5109, or the third option 5110 in the multiple camera switching interface 5105.
In other embodiments, in response to a user clicking on a camera switch option, the implementation of the plurality of first controls displayed on the first interface by the handset may be selected by the user. For example, in response to a click operation by the user on the click operation 603 of the camera switching option shown in fig. 40A, the mobile phone may first display the multi-camera switching interface 5105 shown in fig. 51C. The handset may then receive a user selection of at least one of the first option 5108, the second option 5109, or the third option 5110 in the multiple camera switching interface 5105. In response to a user selecting at least one of the first option 5108, the second option 5109, or the third option 5110 in the multi-camera switching interface 5105, the mobile phone may display a plurality of first controls on the first interface, and display proxy information, type indication information, or preview images of the cameras on the first controls according to a user selection.
If the mobile phone receives the selection operation of the first option (for example, the "display camera proxy" option) 5108 from the user, the mobile phone may display proxy information of the camera on the first control by using the implementation (3) above. If the mobile phone receives the selection operation of the second option (such as "display camera type" option) 5109 from the user, the mobile phone may display the type indication information of the camera on the first control by adopting the implementation (1) above. If the mobile phone receives the selection operation of the third option 5110 (for example, the option of displaying the preview screen of the camera) from the user, the mobile phone may display the preview image collected by the camera on the first control by adopting the implementation (2) above.
It should be noted that, the mobile phone may receive a click operation of a user on any one of the first option 5108, the second option 5109, or the third option 5120 in the multi-camera switching interface 5105, and may also receive a click operation of a user on at least two of the first option 5108, the second option 5109, or the third option 5120. For example, assume that the user selects either the second option 5109 or the third option 5120; then the handset may display the first interface shown in fig. 41B, 42C or 47.
In other embodiments, in response to a click operation of the camera switching option by the user, the user may select whether the mobile phone displays the first controls corresponding to the physical cameras on the first interface mobile phone, and select whether the mobile phone displays the first controls corresponding to different zoom magnifications of the same physical camera.
For example, in response to a click operation of the click operation 603 of the camera switching option shown in fig. 40A by the user, the mobile phone may first display the multi-camera switching interface 5111 shown in fig. 51D. In contrast to the multi-camera switching interface 5105 described above, the multi-camera switching interface 5111 also includes a "select camera" option 5112. The handset may then receive a click operation from the user on the "select camera" option 5112. In response to a click operation of the "select camera" option 5112 by the user, the cellular phone may display a camera setting interface 5113 shown in fig. 51E. The camera settings interface 5113 includes a prompt 5114. The prompt information 5114 is used for prompting the user to set the first controls corresponding to which physical cameras are displayed by the mobile phone on the camera setting interface 5113, and to set the first controls corresponding to the logical cameras with different zoom magnifications displayed by the mobile phone. For example, the prompt 5114 may be "please select a physical camera to be used, and set a zoom magnification of the physical camera".
The camera setting interface 5113 further includes setting options of a plurality of physical cameras in the mobile phone, such as setting option 5115 of a rear main camera, setting option 5116 of a rear tele camera, setting option 5117 of a rear wide camera, setting option 5118 of a front main camera, and the like. The mobile phone can receive the selection operation of the setting options of one or more physical cameras by a user, and display a first control corresponding to the physical camera selected by the user on the first interface.
The mobile phone can also receive setting operation (such as single click operation, double click operation or long press operation) of setting options of any physical camera by a user; responding to the setting operation of the setting options of any physical camera by the user, the mobile phone can also display a zoom magnification setting interface of the physical camera. The zoom magnification setting interface of the physical camera may include one or more zoom magnification setting items preset in the mobile phone.
For example, the mobile phone may display a zoom magnification setting interface 5119 of the rear main camera shown in fig. 51F in response to a setting operation of the setting option 5115 of the rear main camera shown in fig. 51E by the user. The zoom magnification setting interface 5119 prompts information 5120, such as "please set the zoom magnification of the rear camera". The zoom magnification setting interface 5119 includes a 5X setting item 5121, a 3X setting item 5122, a 2X setting item 5123, and the like. Optionally, the zoom magnification setting interface 5119 may also customize the zoom magnification setting item 5124. In response to the user setting the "custom zoom magnification" item 5124, the mobile phone may receive a user-custom set zoom magnification.
In summary, through the above scheme, the mobile phone may display, on the first interface, the first controls corresponding to some or all of the physical cameras in the mobile phone according to the user setting; and/or one or more first controls corresponding to different zoom magnifications of the physical cameras. Of course, the mobile phone may further display, on the first interface, one or more first controls corresponding to the logical cameras according to the setting of the user, which is not limited in the embodiment of the present application.
After the logic camera (zoom magnification) switch 5114 is turned on, the logic camera setting interface 5113 may further set zoom magnification options of each camera in the mobile phone, such as a zoom magnification setting option 5115 of the rear-mounted main camera, a zoom magnification setting option 5116 of the rear-mounted tele camera, a zoom magnification setting option 5117 of the rear-mounted wide camera, and the like. The mobile phone may receive a setting operation of a user on a zoom magnification setting option of each camera in the logical camera setting interface 5113, and set a zoom magnification of a logical camera corresponding to each physical camera.
In some embodiments, in combination with the implementation (1), the mobile phone displays the type indication information of the camera in the first control. That is, in the implementation (1), the preview image of the camera does not need to be displayed in the first control. Therefore, the mobile phone performs S3902, and in response to the click operation of the camera switching option by the user, the other cameras except the first camera among the plurality of cameras may not be started. Specifically, the mobile phone may respond to the click operation of the user on the second control, and may start the second camera corresponding to the second control.
In this embodiment, a specific flow of the shooting control method provided by the present application is implemented by the mobile phone in implementation (1) in conjunction with fig. 38.
After receiving the click operation of the second control by the user, in a case where "the user selects the Camera type" shown in 5121 in fig. 51G (e.g., the user selects the "display Camera type" option 5109 shown in fig. 51C), the mobile phone may execute 5122 "the application control system shown in fig. 51G determines the Camera ID of the second Camera corresponding to the second control selected by the user. The application control system may include, among other things, an application layer 410 and an application framework layer 3821 shown in fig. 38.
Then, the application control system notifies the underlying control system of the Camera ID of the second Camera. For example, the underlying control system may be the kernel layer 3840 shown in fig. 38. The application control system may notify the underlying control system of the Camera ID of the second Camera through the hardware abstraction layer HAL 3830.
Thereafter, the mobile phone may execute 5123 "the underlying control system determines whether the Camera ID of the preview Camera is identical to the Camera ID of the Camera corresponding to the second control" shown in fig. 51G. If so, the handset may perform 5126 "do not switch cameras" shown in FIG. 51G. If not, the handset may perform 5124 of FIG. 51G, switch the preview camera to the second camera by the underlying control system "and close the original preview camera (i.e., the first camera)".
Finally, the handset may execute 5125 of fig. 51G, with the underlying control system "notifying the application control system to display the video stream of the second camera.
In some embodiments, in combination with the implementation (2), the mobile phone displays the preview image acquired by the camera in the first control. Therefore, in this real manner, the mobile phone executes S3902, and in response to the click operation of the camera switching option by the user, other cameras other than the first camera among the plurality of cameras can be started.
In this embodiment, a specific flow of the shooting control method provided by the present application is implemented by the mobile phone in implementation (2) in conjunction with fig. 38.
After the mobile phone receives the click operation of the second control by the user, in a case where "the user selects the Camera preview" shown in 5131 in fig. 51H (e.g., the user selects the "display Camera preview screen" option 5110 shown in fig. 51C), the mobile phone may execute 5132 "the application control system shown in fig. 51H to determine the Camera IDs of all the cameras. The application control system may notify the underlying control system of Camera IDs of all cameras.
The handset may then execute 5133 "the underlying control system turns on all cameras (i.e., turns on the video streams of all cameras)" shown in fig. 51H. The underlying control system may display the video streams of all cameras, and the handset executes 5134 "application control system displays the video streams of all cameras" shown in fig. 51H. In this way, the user may select the video stream according to the requirement, as shown in 5135 in fig. 51H, "the user selects the video stream of the camera corresponding to the second control according to the requirement". Thereafter, the mobile phone may execute 5136 "the application control system determines the Camera ID of the second Camera corresponding to the second control selected by the user.
Finally, the application control system may notify the underlying control system of the Camera ID of the second Camera. In this way, the mobile phone may execute 5137 "the bottom control system uses the second camera as the preview camera, displays the video stream collected by the second camera at the viewfinder interface", and 5138 "all other cameras (i.e., close the video streams of all other cameras) before the bottom control system closes the second camera".
In some embodiments, in combination with the implementation (3), the mobile phone displays proxy information of the camera in the first control. That is, in the implementation (2), the preview image of the camera does not need to be displayed in the first control. Therefore, the mobile phone performs S3902, and in response to the click operation of the camera switching option by the user, the other cameras except the first camera among the plurality of cameras may not be started. Specifically, the mobile phone may respond to the click operation of the user on the second control, and may start the second camera corresponding to the second control.
In this embodiment, a specific flow of the shooting control method provided by the present application is implemented by the mobile phone in implementation mode (3) with reference to fig. 38.
After the mobile phone receives the click operation of the second control by the user, in a case where "the user selects the Camera agent" shown in 5141 in fig. 51I (e.g., the user selects the "display Camera agent" option 5108 shown in fig. 51C), the mobile phone may execute 5142 "the application control system shown in fig. 51I to determine the Camera ID of the second Camera corresponding to the second control selected by the user. Then, the application control system notifies the underlying control system of the Camera ID of the second Camera.
Then, the mobile phone may execute 5143 "the underlying control system determines whether the Camera ID of the preview Camera matches the Camera ID of the Camera corresponding to the second control" shown in fig. 51I. If so, the handset may perform 5146 "do not switch cameras" shown in FIG. 51I. If not, the handset may perform 5144 shown in fig. 51I, switch the preview camera to the second camera by the underlying control system "and close the original preview camera (i.e., the first camera)".
Finally, the handset may execute 5145 of fig. 51I, informing the application control system to display the video stream of the second camera by the underlying control system.
In general, only one camera is turned on to collect images during photographing or video recording of a mobile phone. Therefore, in the process of photographing or video recording, if the mobile phone is to switch the preview camera from the first camera to the second camera, a certain time is required for starting the second camera, and a short-time (such as 1 second) black screen or blank can appear on the view finding interface, so that the user experience is affected. For example, in the process of photographing the mobile phone, if only the first camera is turned on, the mobile phone may display the photographing viewfinder 5201 shown in fig. 52A (for example, for 1 second) in response to the clicking operation of the second control by the user, and then automatically display the photographing viewfinder of the mobile phone shown in fig. 45. For another example, in the process of recording a video by using the mobile phone, if only the first camera is turned on, the mobile phone may display the view interface 5202 of the video shown in fig. 52B (for example, for 1 second) in response to the clicking operation of the second control by the user, and then automatically display the view interface of the video by using the mobile phone shown in fig. 49B.
In order to realize the noninductive switching of the camera when the mobile phone photographs or records a video, in the above-mentioned implementation (1) -implementation (3), the mobile phone may start the second camera in advance, instead of starting the second camera to collect an image in response to the clicking operation of the second control by the user.
Specifically, the mobile phone responds to the click operation of the user on the camera switching option in the first interface in S3901, so that all cameras in the mobile phone can be started. When the mobile phone executes S3901 to display a first interface, a first camera in the mobile phone is started; thus, in response to the user clicking the camera switching option in the first interface described in S3901, the mobile phone may activate all cameras except the first camera in the mobile phone.
It should be understood that if the mobile phone receives the click operation of the user on the camera switching option in the first interface described in S3901, it indicates that the user wants to switch the camera of the mobile phone. However, after the mobile phone receives the click operation of the camera switching option from the user, it is not clear which camera the user wants to switch to use the mobile phone. In this case, in order to achieve seamless switching of preview images in the first interface when switching camera views, the mobile phone may activate all cameras. Thus, after the mobile phone receives the click operation of the user on the second control, seamless switching of the preview image in the first interface can be realized. For example, in response to a click operation of the above-described second control by the user, the mobile phone may directly display the first interface 4501 including the second preview image 4502 shown in fig. 45 or the first interface 4904 including the second preview image 4905 shown in fig. 49B.
Therefore, no matter which camera is used by the mobile phone in a switching way, a short-time (such as 1 second) black screen or blank of a view finding interface can be avoided because a certain time is needed for starting the camera. By adopting the scheme, the noninductive switching of the camera can be realized in the process of photographing or video recording of the mobile phone, and the photographing experience of a user can be improved.
In other embodiments, in order to reduce the power consumption of the mobile phone, in response to the clicking operation of the second control by the user, the mobile phone may turn off the other cameras except the second camera in the cameras of the electronic device.
It should be understood that after the mobile phone receives the click operation of the second control by the user, it can be clear that the user wants to use the second camera. At this time, the other cameras except the second camera in the mobile phone are closed, so that the power consumption of the mobile phone can be reduced.
In other embodiments, the method of the embodiment of the application can be applied to a multi-scene shooting scene of a mobile phone. The mobile phone can display a plurality of view-finding frames in a multi-view shooting scene, and each view-finding frame can display a preview image acquired by a camera. For example, the mobile phone may display the view interface of the photograph or video shown in fig. 53A in a multi-view photographing scene.
As shown in fig. 53A, the mobile phone may display two frames, the frame 5301 displays a first preview image 5302 collected by the front wide-angle camera, and the frame 5303 displays a first preview image 5304 collected by the rear wide-angle camera. The view-finder 5301 includes a photographing button 5306 (e.g., a photographing button or a recording start button) and a camera switching option 5305. The view-finder 5302 includes a photographing button 5307 (e.g., a photographing button or a recording start button) and a camera switching option 5308.
The mobile phone may perform the above methods for the viewfinder 5301 and the viewfinder 5303, respectively, and switch the camera according to the requirements of the user. For example, the cellular phone may display the view interface shown in fig. 53B in response to a click operation of the camera switching option 5305 in the view frame 5301 shown in fig. 53A by the user.
The view interface shown in fig. 53B includes a view frame 5301 and a view frame 5303. The viewfinder 5301 still displays the first preview image 5302 captured by the front wide-angle camera. The viewfinder 5303 still displays a first preview image 5304 captured by the rear wide-angle camera.
Unlike fig. 53A, the viewfinder 5301 illustrated in fig. 53B further includes a plurality of first controls 5309, such as a "post-main" control, a "post-wide" control, a "post-tele" control, a "pre-main" control, a "pre-wide" control, and a "pre-tele" control. As shown in fig. 53B, the mobile phone displays the "front wide" control 1913 in the display mode 1 (i.e., the first display mode, such as the mode of specially thickening the black frame), displays the "rear main" control, "rear tele" control, "front main" control, and "front tele" control in the display mode 2 (i.e., the second display mode, such as the mode of not thickening the black frame), and displays the "rear wide" control 1912 in the display mode 3 (such as the mode of generally thickening the black frame). In this embodiment of the present application, a first control (e.g., a "front wide-angle" control 1913 shown in fig. 53B) is displayed in display mode 1, so as to indicate that the first control is a camera (e.g., a front wide-angle camera) corresponding to a preview image displayed by a corresponding viewfinder (e.g., viewfinder 5301). Displaying a first control (e.g., a "rear wide angle" control 1912 shown in fig. 53B) in display mode 3 is used to indicate that the first control is a camera (e.g., a rear wide angle camera) corresponding to a preview image displayed by a corresponding viewfinder (e.g., viewfinder 5303).
The preview images acquired by the cameras corresponding to the first control displayed in the display mode 1 and the display mode 3 are already displayed in the view finding interface of the mobile phone. Therefore, in general, the camera corresponding to the first control displayed in display mode 1 and display mode 3 is a camera that is not switchable in the viewfinder. In other cases, the camera corresponding to the first control displayed in display mode 1 in one view-finding frame is a non-switchable camera in the view-finding frame; and the camera corresponding to the first control displayed in the display mode 3 is aimed at the camera which can be switched in the view-finding frame.
Note that, the mobile phone performs the above method for the viewfinder 5301, and does not affect the display content in the viewfinder 5303. The mobile phone executes the above method for the viewfinder 5303, and does not affect the display content in the viewfinder 5301. For example, in response to a click operation of the camera switching option 5308 shown in fig. 53B by the user, the view interface shown in fig. 53C may be displayed.
The view interface shown in fig. 53C includes a view frame 5301 and a view frame 5303. In contrast to the view-finder 5301 shown in fig. 53B, the view-finder 5301 shown in fig. 53C still displays the first preview image 5302 captured by the front wide-angle camera and the plurality of first controls 5309. Compared to the view-finder 5303 shown in fig. 53B, the view-finder 5303 shown in fig. 53C still displays the first preview image 5304 captured by the rear wide-angle camera.
Unlike fig. 53B, the viewfinder 5303 shown in fig. 53C further includes a plurality of first controls 1910, such as a "rear main shot" control, a "rear wide-angle" control, a "rear tele" control, a "front main shot" control, a "front wide-angle" control, and a "front tele" control. As shown in fig. 53C, in the viewfinder 5303, the mobile phone displays a "rear wide" control in display mode 1, displays a "rear main" control, a "rear tele" control, a "front main" control, and a "front tele" control in display mode 2 (e.g., without thickening the black frame), and displays a "front wide" control in display mode 3.
In response to a user clicking on the "front tele" control (i.e., the second control) of the plurality of first controls 5309 shown in fig. 53C, the handset may display the viewfinder interface shown in fig. 53D. The view interface shown in fig. 53D includes a view frame 5301 and a view frame 5303. The viewfinder 5301 shown in fig. 53D displays a second preview image 1911 captured by the front telephoto camera.
It should be noted that, in the scene of multi-view shooting, the mobile phone may display the preview image acquired by the camera on the first control by adopting the display mode of the implementation mode (2). Alternatively, in a scene of multi-view shooting, the mobile phone may display the type indication information of the camera on the first control by adopting the display manner of the above implementation (1), such as displaying the viewfinder interface shown in fig. 54. Alternatively, in a scene of multi-view shooting, the mobile phone may display proxy information of the camera (not shown in the drawing) on the first control by adopting the display manner of the above implementation (3).
The display mode 1 includes, but is not limited to, a mode of particularly thickening a black frame. For example, the display mode 1 may also include a display mode of a black matrix white word shown in fig. 54. The display mode 3 includes, but is not limited to, a mode of generally thickening a black frame. For example, the display mode 3 may also include a display mode of black characters with gray scale as shown in fig. 54.
Exemplary, the embodiment of the present application describes a mobile phone shooting control method flow in the embodiment of the present application in conjunction with fig. 38 and the method steps described in the foregoing embodiment.
After the mobile phone enters the photographing mode, the system camera application 3811 of the application layer 3810 may trigger the bottom layer execution 5501 to start the main camera 1 of the mobile phone by default. The main camera 1 is a default camera of the mobile phone, such as a rear main camera. For example, the system Camera application 3811 may send a notification carrying the Camera identification Camera ID of the rear-end host Camera to the hardware abstraction layer HAL 3830 through the framework layer 3820, where the notification is used to instruct the hardware abstraction layer HAL 3830 to execute 5502, and start the video stream of the rear-end host Camera according to the Camera ID of the rear-end host Camera. The hardware abstraction layer HAL 3830 may instruct the Kernel layer (Kernel) to start the post-host Camera identified as the Camera ID, so that the video stream of the post-host Camera may be obtained from the Kernel layer (Kernel) 3840. The Camera driver 3841 of the Kernel layer (Kernel) 3840 may activate the rear main Camera in the Camera device 3842 according to the Camera ID.
The principle of capturing video streams by the Camera device 3842 of the Kernel layer (Kernel) 3840 is as follows: the Camera device 3842 may convert an optical signal reflected in a viewing environment into an electrical signal, and the electrical signal is processed by the image signal processor ISP 3843 to obtain a video stream.
The hardware abstraction layer HAL 3830 may then process data (e.g., video stream 1) from the underlying layer (e.g., kernel layer 3840) and then pass it to the framework layer 3820. For example, HAL layer 3830 may convert parameters of kernel layer 3840 regarding hardware devices into a software programming language recognizable by framework layer 3820 and application layer 3810.
The framework layer 3820 may receive video streams from the underlying layers (e.g., the kernel layer 3840) transmitted by the hardware abstraction layer HAL 3830. The camera service 423 of the framework layer 3820 may transfer the video stream to an upper layer (e.g., the application layer 3810) through the API 1 sub-API 2 interface 3821. After the system camera application 3811 of the application layer 3810 receives the video stream, the video stream may be presented at the viewfinder interface, e.g., the video stream is refreshed at SurfaceView by execution 5506.
Thereafter, the mobile phone may receive a click operation of the camera switching option from the user, such as the user switching the camera 5504. After receiving the click operation of the user on the camera switching option, the mobile phone can identify the user selection scheme 5505. For example, the handset may receive a user selection operation of the first option 5108, the second option 5109, or the third option 5110 shown in fig. 51C to determine a user selection scheme. The user selection scheme may include the following three types: camera agent 550A, camera type 550A, and camera preview 5501-I.
If the user selects the camera agent 550a, the mobile phone may display a plurality of first controls on the first interface, and display agent information of the corresponding camera on each first control, such as the selectable agent 550b shown in fig. 55. If the user selects the camera proxy 550A, the mobile phone may display a plurality of first controls on the first interface, and display type indication information of the corresponding camera on each first control, such as the selectable type 550B shown in fig. 55. If the user selects the camera preview 5501-I, the mobile phone may display a plurality of first controls on the first interface, and display a preview image collected by the corresponding camera on each first control, such as selectable preview 550-II shown in fig. 55.
In some embodiments, if the user selects the scheme to be camera preview 5501-I, the hardware abstraction layer HAL3830 may be notified to execute 5503, and all idle cameras in the handset may be started to display preview images acquired by the respective cameras.
Finally, the handset may execute 5507, determining the Camera ID of the Camera that the user selected to switch according to the selected proxy/type/preview. Then, the hardware abstraction layer HAL3830 can be notified to execute 5503, and the Camera selected by the user to be switched is started according to the Camera ID of the Camera selected by the user to be switched; the hardware abstraction layer HAL3830 is notified to execute 5508, turning off the other cameras.
In order to facilitate understanding, the embodiment of the present application describes in detail a process of performing multi-view video recording by using a mobile phone, so as to illustrate that the mobile phone can only save one video file of all video streams including the multi-view video recording process in response to a click operation of a stop shooting button by a user in a scene of multi-view video recording by using a conventional technology.
In general, the mobile phone may display a view interface for photographing in response to a clicking operation of a "camera" application icon by a user. When the user wants to record the video by using the mobile phone, the mobile phone can be triggered to display the video viewing interface. For example, fig. 56A shows a view interface 5601 for taking a picture of a cell phone. The view interface 5601 for this photograph includes a view box 5602, a "video" option, and a "multi-view video" option 5603. The viewfinder 5602 is used to display a preview image acquired by a camera (such as a rear camera of a mobile phone). The record option is used to trigger the handset to enter a record mode. The "Multi-view video" option 5603 is used to trigger the handset to enter the Multi-view video mode.
In response to a user clicking on the "multi-view video" option 103 in the view interface 5601, the handset may display a view interface 5600 of the multi-view video as shown in fig. 56B. The viewing interface 5600 for the recorded video includes a viewing frame 5610 and a viewing frame 5620. A preview image 5611 acquired by one camera (e.g., a front camera) of the mobile phone is displayed in the viewfinder 5600, and a preview image 5621 acquired by the other camera (e.g., a rear camera) of the mobile phone is displayed in the viewfinder 5620. The viewfinder interface 5600 for recording video also includes a start recording button 5612.
Wherein, the start recording button 5612 is used to trigger the mobile phone to start recording video. In response to a user clicking the start recording button 112 shown in fig. 56B, the mobile phone can start recording video. For example, when the duration of video recording by the mobile phone is 8 seconds(s), the mobile phone may display the view interface 5630 of the video recording shown in fig. 56C. In the view interface 5630 of the recorded video, the time duration of the time option is 00:00:08. As shown in fig. 56C, in the view-finding interface 5630 of the recorded video, a preview image 5631 is displayed in the view-finding frame 5610, and a preview image 5632 is displayed in the view-finding frame 5620. The view interface 660 of the recorded video includes a stop recording button 5633. The stop recording button 5633 is used to trigger the mobile phone to stop recording video and save the recorded video.
In response to the user's click operation of the stop recording button 5633 shown in fig. 56C, the mobile phone can save the video file a including the video stream 1 and the video stream 2. The video stream 1 includes a plurality of frames of preview images 5631 and the video stream 2 includes a plurality of frames of preview images 5632.
For example, as shown in fig. 56D, the cell phone may display a play interface 5640 for the video file. In response to the user's click operation of the play button 5641 shown in fig. 56D, the cellular phone can play a video file including video stream 1 and video stream 2, the video stream 1 including the preview image 5631 shown in fig. 56C, and the video stream 2 including the preview image 5632 shown in fig. 56D. However, the mobile phone cannot provide the user with a video file (also referred to as a dual-view video file) that includes only one video stream (such as video stream 1 or video stream 2 described above) recorded in a viewfinder during the multi-view recording process.
In summary, as shown in fig. 56E, after the mobile phone enters the camera APP, it can enter the dual-view video mode; then, responding to clicking operation of a recording start button by a user, and shooting a double-scene video; finally, shooting is completed in response to the click operation of the user on the stop recording button, and a single double-scene video file is generated.
The embodiment of the application provides a method for shooting video, which can be applied to electronic equipment comprising a plurality of cameras. By adopting the method of the embodiment of the application, in the process of multi-view video recording, a plurality of temporary video files, such as a temporary video file 1 comprising a video stream 1, a temporary video file 2 comprising a video stream 2 and a temporary video file 3 comprising the video stream 1 and the video stream 2, can be generated in response to the click operation of a record stop button by a user; then, the temporary video file selected by the user is saved according to the user requirement, so that the shooting experience of the user can be improved.
The methods in the following embodiments may be implemented in the electronic device 200 having the above-described hardware structure.
The software system of the electronic device 200 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the electronic device 200 is illustrated.
Fig. 57 is a software block diagram of the electronic device 200 according to the embodiment of the present application. The layered architecture may divide the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer (abbreviated as application layer) 5710, an application framework layer (abbreviated as framework layer) 5720, a hardware abstraction layer (hardware abstract layer, HAL) layer 5730, and a Kernel layer (Kernel, also referred to as driver layer) 5740.
Among other things, the Application layer (Application) 5710 may include a series of Application packages. The application layer may include a plurality of application packages. The plurality of application packages may be camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, desktop start (Launcher) applications, etc. For example, as shown in fig. 57, the application layer 5710 may include a camera system application (also referred to as a camera application) 5711.
The camera system application 5711 may be configured to display the video stream reported by the bottom layer on the view interface of the video in a video recording mode (such as a single-view video recording mode or a multi-view video recording mode). The electronic device 200 may include a plurality of cameras, each of which may be configured to capture images, and successive multi-frame images captured by the cameras may form a video stream. That is, each of the cameras described above may be used to capture video streams. For example, as shown in fig. 57, a multi-view video mode is taken as an example. In the multi-view video mode, the electronic device 200 may display a plurality of frames on a video view interface, each frame being configured to display a video stream captured by one of the cameras.
For example, assume that the electronic device 200 includes a front camera and a rear camera, and the plurality of recording modes are a dual-view recording mode. In the dual view video mode, the electronic device 200 may display two frames, such as frame 1 and frame 2, at the video's view interface. The view frame 1 is used for displaying a video stream a formed by continuous multi-frame images acquired by the front camera, and the view frame 2 is used for displaying a video stream b formed by continuous multi-frame images acquired by the rear camera.
In the embodiment of the present application, after the electronic device 200 starts recording in the multi-view recording mode, a plurality of temporary video files may be generated in response to the clicking operation of the pause recording button by the user. Each temporary video file may include video streams captured by one or more cameras. For example, after the electronic device 200 starts recording in the dual-view recording mode, three temporary video files, such as a temporary video file 1, a temporary video file 2, and a temporary video file 3, may be generated in response to a user's click operation of a pause recording button. The temporary video file 1 includes the above-mentioned video stream a, the temporary video file 2 includes the above-mentioned video stream b, and the temporary video file 3 includes the above-mentioned video stream a and video stream b.
In the embodiment of the application, the user can select and store one or more video files in the temporary video files according to the needs of the user. By the embodiment of the application, the video file can be stored according to the user requirement in the process of multi-scene video recording, and the shooting experience of the user can be improved.
Illustratively, as shown in FIG. 57, the camera system application 5711 is also used to provide the following functions: in the multi-view video recording mode, after the electronic device 200 starts recording (i.e., shooting) the video, receiving a click operation of a stop recording button by a user; in response to a user's click operation of the stop recording button, the electronic device 200 stops shooting, previewing a plurality of temporary video files; the electronic device 200 receives a user selection operation of one or more of the plurality of temporary video files, and selects to save the video files as needed.
Further, the camera system application 5711 is also used to provide the following functions: in a multi-view video mode, before recording is started, supporting a user to select and switch cameras; in the multi-view video recording mode, the camera is switched to record during shooting (namely, during video recording). Each time the electronic device 200 switches cameras, a temporary video file may be stored. The temporary video file may include a video stream that was captured prior to the electronic device 200 switching cameras.
Wherein the Camera identity (Camera ID) of each Camera is different. The application layer 5710 may instruct the bottom layer (e.g. the kernel layer 5740) to start the corresponding Camera through the Camera ID of the Camera, and instruct the bottom layer (e.g. the frame layer 5720) to process the preview video stream collected by the preview Camera according to the Camera ID of the preview Camera. The application layer 5710 may also instruct the bottom layer (e.g. the kernel layer 5740) to close the corresponding Camera through the Camera ID of the Camera according to the operation of the user.
The Framework layer (Framework) 5720 provides an application programming interface (application programming interface, API) and programming Framework for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 57, the framework layer may provide Camera APIs such as a Camera API (API 1|api 2) 5721, a video processing (Media Recorder) module 5722, a Camera Service 5723, a Camera expansion Service (Camera Service Extra) 5725, and a hardware development kit (hardware software development kit, hw SDK) 5724.
The Camera API (API 1|api 2) 5721 is used as an interface for the bottom layer (e.g., the hardware abstraction layer 5730) to interact with the application layer 5710. Specifically, the Camera API (API 1|api 2) 5721 may receive a notification from an upper layer (such as the application layer 5710) of switching the function of the Camera during the process of starting up the recorded video, and process the notification of switching the function of the Camera during the process of starting up the recorded video through the Camera service 5723, the Camera expansion service 5725, and the HwSDK 5724. Then, the kernel layer 5740 is instructed to turn on the idle camera by the HAL layer 5730, and video streams collected by the preview camera and the idle camera are obtained by the HAL layer 5730. Camera API (API 1. Sub. API 2) 5721 may also receive Camera switch notifications from an upper layer (e.g., application layer 5710). The Camera switching notification includes a Camera ID to be switched to a preview Camera.
Typically, the application layer 5710 interacts with the user, and after triggering the electronic device 200 to start recording video, the Media Recorder module 5722 can record the preview video stream of the Surface view presented to the user in real time and prepare to generate a video file at any time.
In the embodiment of the present application, the Surface view may include a Surface view corresponding to each view finder, and the Media Recorder module 5722 may record in real time a preview video stream of the Surface view corresponding to each view finder and prepare for generating a video file at any time. The Media Recorder module 5722 may generate a temporary video file for the preview video stream of the Surface view corresponding to each viewfinder. The Media Recorder module 5722 may also generate a temporary video file for the preview video streams of the Surface views corresponding to all the viewfinder frames.
Also, the Media Recorder module 5722 may generate a temporary video file for the video stream acquired by the camera before the switch every time the electronic device 200 switches the camera. In the embodiment of the present application, when the application layer 5710 interacts with a user to trigger the electronic device 200 to switch the preview camera, the application layer 5710 may refresh the Surface view in real time, for example, update the Surface view to a video stream collected by the switched preview camera. At this point, media Recorder module 5722 may generate a temporary video file that includes the video stream captured by the preview camera prior to the switch. After the application layer 5710 interacts with the user to trigger the electronic device 200 to stop recording video, a complete video file can be generated even if the camera is switched during the video recording process. The complete video file comprises preview video streams collected by a plurality of cameras before and after switching.
HAL layer 5730 is used to connect the framework layer 5720 and the kernel layer 5740. For example, HAL layer 5730 may be capable of data transfer (e.g., transparent transfer) between framework layer 5720 and kernel layer 5740. Of course, HAL layer 5730 may also process data from the underlying layer (i.e., kernel layer 5740) and then transmit it to framework layer 5720. For example, HAL layer 5730 may convert parameters of kernel layer 5740 regarding hardware devices into a software programming language recognizable by framework layer 5720 and application layer 5710. For example, HAL layer 5730 may include HAL3.0.
In an embodiment of the present application, the HAL layer 5730 may manage video streams collected by multiple cameras according to notifications from upper layers (such as the framework layer 5720 and the application layer 5710), for example, instruct the bottom layer (such as the kernel layer 5740) to turn off/on the video streams of the cameras according to the previous notification.
The kernel layer 5740 includes a Camera driver 5741, an image signal processor ISP 5743, and a Camera device 5742. The Camera device 5742 may include a plurality of cameras, each including a Camera lens, an image sensor, and the like. The image signal processor ISP 5743 may be provided separately from a Camera (e.g., camera device 5742). In other embodiments, the image signal processor ISP 5743 may be disposed in a Camera (e.g., camera device 5742).
Among them, the image signal processor ISP 5743 and the Camera device 5742 are main apparatuses that take videos or pictures. The light signal reflected by the view finding environment is irradiated on the image sensor through the camera lens and can be converted into an electric signal, and the electric signal can be used as an original parameter stream (namely, a video stream) to be transmitted to the upper layer by the camera driver 5741 after being processed by the image signal processor ISP 5743. And, the Camera driver 5741 may also receive a notification from an upper layer (such as a notification indicating to turn on or off the Camera), and send a stream of functional processing parameters to the Camera device 5742 according to the notification, so as to turn on or off the corresponding Camera.
In the following embodiments, the method according to the embodiments of the present application will be described by taking the electronic device 200 as an example of a mobile phone.
The embodiment of the application provides a method for shooting video, which can be applied to a mobile phone comprising a plurality of cameras. In particular, the method can be applied to a multi-scene shooting scene or a single-scene shooting scene.
In a multi-scene shooting scene, the mobile phone is in a multi-scene video recording mode. In the multi-view video mode, the view finding interface of the mobile phone video comprises a plurality of view finding frames, and preview images acquired by different cameras can be displayed by different view finding frames. In the multi-view video recording mode, the mobile phone can shoot videos at the view angles of multiple cameras at the same time. In an exemplary embodiment of the present application, the multi-view video mode is herein referred to as a dual-view video mode, and the plurality of view frames includes a first view frame and a second view frame. As shown in fig. 58A, the method of capturing video may include S5801 to S5803:
S5801, the mobile phone displays a first interface. The first interface is a viewing interface of a video being recorded by the mobile phone, and comprises a first viewing frame and a second viewing frame. The first view finding frame displays a first preview image collected by a first camera in the plurality of cameras, and the second view finding frame displays a second preview image collected by a second camera.
For example, the handset may display a first interface 5900 shown in fig. 59A. Wherein the first interface 5900 may include a stop recording button 5905, and the timing duration of the timing option 5906 in the first interface 5900 is 00:00:08. In the case that the mobile phone is recording video (i.e. video), the view finding interface of the video of the mobile phone can include a stop recording button, and the time counting option in the view finding interface of the video of the mobile phone can be counted. It can be seen that the first interface 5900 is a viewing interface where a video is being recorded by the mobile phone.
As shown in fig. 59A, the first interface 5900 may include a first viewfinder 5901 and a second viewfinder 5902, that is, the first interface 5900 is a viewfinder interface on which the mobile phone is recording in a multi-view shooting scene. The first viewfinder 5901 displays a first preview image 5903 captured by a first camera of the plurality of cameras. The second viewfinder 5902 displays a second preview image 5904 captured by a second camera of the plurality of cameras.
In one implementation of the first case, the plurality of cameras may include a front camera (i.e., a physical camera) and a rear camera (i.e., a physical camera) of the mobile phone. The first camera is a front camera, and the second camera is a rear camera. Or, the first camera is a rear camera, and the second camera is a front camera. In this implementation, the plurality of cameras are physical cameras.
In another implementation of the first case, the plurality of cameras may include a physical camera (e.g., a front camera or a rear camera) and a logical camera (e.g., a logical camera of the front camera and/or a logical camera of the rear camera) of the mobile phone.
In another implementation of the first case, the plurality of cameras may include a plurality of logical cameras (e.g., a front-facing camera's logical camera and/or a rear-facing camera's logical camera).
The logic camera is realized under different zoom multiplying factors by the physical camera of the mobile phone. For example, the above logical camera may be a rear 1.0x camera, a rear 2.0x camera, a front 3.0x camera, or the like.
Wherein, 1.0x, 2.0x and 3.0x are all zoom magnifications. "3.0x" means that the zoom magnification is 3 times. "2.0x" means that the zoom magnification is 2.0 times. "1.0x" means that the zoom magnification is 1.0 times. The zoom magnification in the embodiment of the application can be optical zoom magnification or digital zoom magnification.
In one implementation of the second case, the plurality of cameras may include a plurality of types of front cameras and rear cameras. In the embodiment of the application, the types of cameras can comprise: at least two of a main camera, a long-focus camera, a wide-angle camera, a super-wide-angle camera, a micro-distance camera, a fish-eye camera, an infrared camera, a depth camera and a black-and-white camera. The first camera and the second camera may be any two cameras among a plurality of cameras. In this implementation, the plurality of cameras are physical cameras.
In another implementation of the second case, the plurality of cameras may include physical cameras (e.g., front-facing main camera, rear-facing main camera, front-facing wide-angle camera, front-facing tele camera, rear-facing wide-angle camera, etc.) and logical cameras (e.g., logical cameras of the front-facing main camera and/or logical cameras of the rear-facing main camera, etc.) of the mobile phone.
In another implementation of the first case, the plurality of cameras may include a plurality of logical cameras (e.g., one or more logical cameras of a front-facing host camera and/or one or more logical cameras of a rear-facing host camera, etc.).
For example, in fig. 59A, in the first case described above, the plurality of cameras are each physical cameras. The first camera is a front camera of the mobile phone, and the second camera is a rear camera of the mobile phone. The first preview image 5903 shown in fig. 59A is an image captured by a front camera, and the second preview image 5904 is an image captured by a rear camera.
S5802, the mobile phone receives a first operation of a user on a first interface. The first operation is used for triggering the mobile phone to stop recording video.
The first interface (i.e. the viewfinder interface of the mobile phone that is recording) may include a stop recording button. The first operation may be a click operation (e.g., a clicking operation) of the stop recording button by a user. For example, the view interface 5900 for video recording shown in fig. 59A includes a stop recording button 5905. The mobile phone can receive the first operation of the stop recording button 5905 in the view finding interface of the video by the user at any time in the video recording process, and stop recording video and store the recorded video file in response to the first operation.
S5803, responding to the first operation, and displaying a second interface for previewing a plurality of first video files by the mobile phone. The plurality of first video files includes: a video file comprising a first video stream, a video file comprising a second video stream, and a video file comprising the first video stream and the second video stream. The first video stream comprises a plurality of frames of first preview images and the second video stream comprises a plurality of frames of second preview images.
For example, in response to a first operation of the stop recording button 5905 shown in fig. 59A by the user, the handset may display a second interface 5910 shown in fig. 59B. The second interface 5910 is used to preview a plurality of first video files (e.g., first video file 5911, first video file 5912, and first video file 5913). The first video file 5911, the first video file 5912, and the first video file 5913 are temporary video files generated by the handset in response to the first operation described above.
For example, the second interface 5910 includes a plurality of preview windows of video, such as a preview window of the first video file 5911, a preview window of the first video file 5912, and a preview window of the first video file 5913. And responding to the preview operation of the user on each first video file in the second interface, and playing the first video file in the corresponding preview window by the mobile phone. For example, the preview window of the first video file 5911 includes a play button 5915. The preview operation may be a click operation of the play button 5915 by the user.
The mobile phone can receive the selection operation of one or more first video files in the second interface by a user. The second interface 5910 may also include a "save" button 5914. The "save" button 5914 is used to trigger the handset to save the first video file (i.e., the second video file) selected by the user.
Embodiments of the present application are described herein in detail with respect to the first video file 5911, the first video file 5912, and the first video file 5913 described above.
Wherein, as shown in fig. 59E, the first video file 5911 includes a first video stream including a plurality of frames of a first preview image 5903. As shown in fig. 59E, the first video file 5912 includes a second video stream including a plurality of frames of a second preview image 5904. As shown in fig. 59E, the first video file 5913 includes a first video stream and a second video stream.
As shown in fig. 59A, when the time duration of the time option 5906 in the first interface 5900 is 00:00:08, the handset receives a click operation (i.e., a first operation) of the stop recording button 5905 by the user. Thus, as shown in fig. 59E, the first video stream includes: during the period of 00:00:00-00:00:08, a plurality of frames of first preview images 5903 are acquired and displayed on the display screen by the first camera. As shown in fig. 59E, the second video stream includes: during the period of 00:00:00-00:00:08, a plurality of frames of second preview images 5904 are acquired and displayed on the display screen by the second camera.
As shown in fig. 58B, after S5803, the method according to the embodiment of the present application further includes S5804.
S5804, responding to the selection operation of the user on the second video file in the plurality of first video files, and storing the second video file by the mobile phone.
The selection operation may include any one of a single click operation, a double click operation, and a long press operation of the first video file in the second interface. For example, the mobile phone may receive a user selection operation of the first video file 5911 and the first video file 5913 in the second interface 5910 shown in fig. 59B, and display the second interface 5915 shown in fig. 59C. In the second interface 5915, the first video file 5911 and the first video file 5913 are in a selected state. Wherein the first video file 5911 and the first video file 5913 selected by the user are the above-described second video file. Then, the mobile phone may receive a click operation of the "save" button 5915 in the second interface 5915 by the user; in response to a user clicking on the "save" button 5915, the handset may save the second video file (e.g., first video file 5911 and first video file 5913).
In other embodiments, the second interface of S5803 may further include a preview image captured by a preview camera (e.g., a first camera) of the first viewfinder, and a preview image captured by a preview camera (e.g., a second camera) of the second viewfinder. For example, the handset may display a second interface 5916 shown in fig. 59D. The second interface 5916 is used to preview a plurality of first video files (e.g., first video file 5911, first video file 5912, and first video file 5913). The second interface 5916 also includes a preview image 5917 displayed in the first viewfinder 5901 and a preview image 5918 displayed in the second viewfinder 5902.
Wherein, the preview image 5917 displayed on the first viewfinder 5901 is collected by a preview camera (e.g., a first camera) of the first viewfinder 5901, and the preview image 5918 displayed on the second viewfinder 5902 is collected by a preview camera (e.g., a second camera) of the second viewfinder 5902.
In the embodiment of the application, in the process of recording in the multi-view video mode, the mobile phone responds to the first operation (such as clicking operation of stopping recording button) of the user, and a second interface for previewing a plurality of first video files can be displayed. The plurality of first video files are temporary video files generated by the mobile phone. Some of the first video files include video streams in only one view box, while others may include video streams in multiple view boxes. Thus, the user can select the first video file (i.e., temporary video file) to be saved according to the requirement. Specifically, the mobile phone can respond to the selection operation of the user on the second video files in the plurality of first video files, and save the second video files selected by the user. According to the method, the mobile phone can store the temporary video file selected by the user according to the user demand in the multi-view video mode, and the shooting experience of the user can be improved.
In some embodiments, in the multi-view video mode, the cell phone may switch cameras during the video recording process. Specifically, in the multi-view video mode, the mobile phone can switch the preview camera of any view-finding frame in the video recording process. Taking the example that the mobile phone responds to the operation of the user, the preview camera of the first view-finding frame is switched. As shown in fig. 60, after S5801 and before S5802, the method according to the embodiment of the present application may further include S6001-S6002.
S6001, the mobile phone receives a second operation of the first view-finding frame by the user. The second operation is used for triggering the mobile phone to switch the first camera to a third camera in the plurality of cameras.
S6002, responding to the second operation, and switching the first preview image in the first interface into a third preview image acquired by a third camera by the mobile phone.
In the first case, the first camera is a front camera, and the second camera is a rear camera; or, the first camera is a rear camera, and the second camera is a front camera. In this case, the third camera is different from the first camera, e.g., the third camera and the second camera may be the same camera.
Taking the first camera as a front camera, the second camera as a rear camera and the third camera as a rear camera as an example. The handset may display a first interface 6100 shown in fig. 61A. In the first interface 6100, a first preview image 5903 collected by a front camera (i.e., a first camera) is displayed in a first viewfinder 5901, and a second preview image 5904 collected by a rear camera (i.e., a second camera) is displayed in a second viewfinder 5902. The first viewfinder 5901 also includes a camera switch option 6101, i.e., a first control 6101. The first control 6101 is used to trigger the mobile phone to switch the preview camera of the first viewfinder 5901 from a front camera to a rear camera. The second viewfinder 5902 also includes a camera switch option 6102, i.e., a first control 6102. The first control 6102 is used to trigger the mobile phone to switch the preview camera of the second viewfinder 5902 from a rear camera to a front camera.
The second operation described in S6001 and S6002 may be a click operation of the first control 6101 shown in fig. 61A by the user. In response to a click operation of the first control 6101 shown in fig. 61A by the user, the mobile phone may display a view interface 6103 of the video recording shown in fig. 61B. In the video view interface 6103, the preview image in the first view frame 5901 is switched from the first preview image 5903 captured by the front camera (i.e., the first camera) shown in fig. 61A to the third preview image 6104 captured by the rear camera (i.e., the third camera) shown in fig. 61B.
After S6002, the handset may perform S5802-S5803. In this embodiment, the mobile phone executes S5803, and the plurality of first video files may include: the video file including the first video stream, the video file including the second video stream, and the video file including the first video stream and the second video stream; the plurality of first video files may further include: video files comprising the third video stream, video files comprising the third video stream and the first video stream and/or the second video stream. The third video stream includes a plurality of frames of a third preview image. Specifically, as shown in fig. 60, S5803 may be replaced with S6003.
S6003, in response to the first operation, the mobile phone displays a second interface for previewing the plurality of first video files. The plurality of first video files includes: video files comprising a first video stream, video files comprising a third video stream, video files comprising a first video stream and a third video stream, video files comprising a second video stream, video files comprising a first video stream, a third video stream and a second video stream. The first video stream comprises a plurality of frames of first preview images, the second video stream comprises a plurality of frames of second preview images, and the third video stream comprises a plurality of frames of third preview images.
For example, in response to a click operation of the stop recording button 5905 shown in fig. 61B by the user, the mobile phone may display the second interface 6110 shown in fig. 61C. The second interface 6110 is used to preview a plurality of first video files (e.g., first video file 6111, first video file 6112, first video file 6113, first video file 6114, and first video file 6115). The first video file 6111, the first video file 6112, the first video file 6113, the first video file 6114, and the first video file 6115 are temporary video files generated by the mobile phone in response to the first operation described above.
For example, the second interface 6110 includes a plurality of preview windows of video, such as a preview window of the first video file 6111, a preview window of the first video file 6112, a preview window of the first video file 6113, a preview window of the first video file 6114, and a preview window of the first video file 6115. And responding to the preview operation of the user on each first video file in the second interface, and playing the first video file in the corresponding preview window by the mobile phone.
The embodiments of the present application are described herein in detail with respect to the preview window of the first video file 6111, the preview window of the first video file 6112, the preview window of the first video file 6113, the preview window of the first video file 6114, and the first video file 6115.
Therein, as shown in fig. 61D, the first video file 6111 includes a first video stream including a plurality of frames of the first preview image 5903. As shown in fig. 61D, the first video file 6112 includes a third video stream including a plurality of frames of a third preview image 6104. As shown in fig. 61D, the first video file 6114 includes a first video stream and a third video stream. As shown in fig. 61D, the first video file 6113 includes a second video stream including a plurality of frames of the second preview image 5904. As shown in fig. 61D, the first video file 6115 includes a first video stream, a second video stream, and a third video stream.
As shown in fig. 61A, when the time duration of the time option 5906 in the first interface 6100 is 00:00:08, the handset receives a click operation (i.e., a second operation) of the first control 6101 by the user. Thus, as shown in fig. 61D, the first video stream includes a period of 00:00:00-00:00:08, and a plurality of frames of first preview images 5903 are captured by the first camera and displayed on the display screen. As shown in fig. 61B, when the time duration of the time counting option 5906 in the first interface 6103 is 00:00:10, the mobile phone receives a click operation (i.e., a first operation) of the stop recording button 5905 by the user. Thus, as shown in FIG. 61D, the third video stream includes a period of 00:00:09-00:00:10, a plurality of frames of third preview images 6104 captured by the third camera and displayed on the display screen; the second video stream includes a plurality of frames of second preview images 5904 captured by the second camera and displayed on the display screen for a period of time ranging from 00:00:00 to 00:00:10.
Embodiments of the present application the principles of the handset generating the first video file 6111, the first video file 6112, the first video file 6113, the first video file 6114, and the first video file 6115 described above in the embodiment including S6001-S6002 are described herein.
The preview video stream (including a plurality of frames of preview images) in the surficial view of the mobile phone is collected by a preview camera of the mobile phone and displayed on a display screen. I.e. the preview video stream in the surfmeview is the video stream that the user wants to capture and save. Thus, starting video recording from the cell phone, the video processing (Media Recorder) module 5722 acquires the preview video stream from the surface view in real time and buffers the acquired video stream.
In the embodiment of the application, the surface view can be divided into the surface view of the first view frame and the surface view of the second view frame. A video processing (Media Recorder) module 5722 may acquire a preview video stream in real time from the surface view of the first viewfinder and the surface view of the second viewfinder, respectively, and buffer the acquired video streams.
Specifically, in response to a second operation of the first viewfinder by the user, a video processing (Media Recorder) module 5722 may generate a first video file 6111 that includes a first video stream (including multiple frames of first preview images captured by the first camera). In response to the first operation, the preview video stream in the surface view of the first viewfinder is switched to a video stream composed of the second preview image acquired by the third camera, and the video processing (Media Recorder) module 5722 may acquire and buffer, in real time, the video stream composed of the third preview image acquired by the third camera from the surface view of the first viewfinder.
It should be noted that, in the process of executing S6001-S6002, the video processing (Media Recorder) module 5722 may not affect the video stream composed of the second preview image acquired by the second camera and acquired from the surface view of the second viewfinder in real time.
Finally, in response to a user clicking on the stop record button (i.e., a first operation), the video processing (Media Recorder) module 5722 may generate a first video file 6113 comprising a second video stream (comprising multiple frames of second preview images captured by a second camera) and generate a first video file 6112 comprising a third video stream (comprising multiple frames of third preview images captured by a third camera). Also, the video processing (Media Recorder) module 5722 may also generate a first video file 6114 including the first video stream and the third video stream described above, and generate a first video file 6115 including the first video stream, the second video stream, and the third video stream.
In the second case, the plurality of cameras may include a front camera and a rear camera of various types. In the embodiment of the application, the types of cameras can comprise: at least two of a main camera, a long-focus camera, a wide-angle camera, a super-wide-angle camera, a micro-distance camera, a fish-eye camera, an infrared camera, a depth camera and a black-and-white camera.
In the second case, the first viewfinder of the first interface may include a plurality of second controls, where each second control corresponds to one of the plurality of cameras and is configured to trigger the mobile phone to switch to use the corresponding camera. For example, in the first interface 6205 illustrated in fig. 62C, a plurality of second controls 6201, such as a "front-main" control, a "front-tele" control, a "front-wide" control, a "rear-main" control, a "rear-tele" control, and a "rear-wide" control, are included in the first viewfinder 5901.
The "front-end main camera" control shown in fig. 62C corresponds to a front-end main camera of the mobile phone, and is used for triggering the mobile phone to display a preview image acquired by the front-end main camera. The "front-facing tele" control shown in fig. 62C corresponds to the front-facing tele camera of the mobile phone, and is used to trigger the mobile phone to display the preview image acquired by the front-facing tele camera. The "front wide angle" control shown in fig. 62C corresponds to the front wide angle camera of the mobile phone, and is used to trigger the mobile phone to display the preview image acquired by the front wide angle camera.
The "post-master" control shown in fig. 62C corresponds to the post-master camera of the mobile phone, and is used to trigger the mobile phone to display the preview image acquired by the post-master camera. The "rear-mounted tele" control shown in fig. 62C corresponds to the rear-mounted tele camera of the mobile phone, and is used for triggering the mobile phone to display the preview image acquired by the rear-mounted tele camera. The "rear wide angle" control shown in fig. 62C corresponds to the rear wide angle camera of the mobile phone, and is used to trigger the mobile phone to display the preview image acquired by the rear wide angle camera.
Of course, a plurality of second controls may be included in the second viewfinder of the first interface. For example, in the first interface 6205 illustrated in fig. 62C, a plurality of second controls 6202 are included in the second viewfinder 5902. The detailed description of the plurality of second controls 6202 may refer to the description of the plurality of second controls 6201 in the above embodiments, which is not repeated herein.
In some embodiments of the second case, the handset may display the second control of the preview camera of the first viewfinder and the second control of the preview camera of the second viewfinder in a manner that is distinct from the second controls of the other cameras.
For example, the mobile phone may display the second control of the preview camera (e.g., the first camera) of the first viewfinder in the first display mode, display the second control of the preview camera (e.g., the second camera) of the second viewfinder in the second display mode, and display the second control of the other cameras in the third display mode. The mobile phone can display the second control of the preview camera (such as the first camera) of the first view frame in the second view frame in a second display mode, display the second control of the preview camera (such as the second camera) of the second view frame in the first display mode, and display the second control of the other cameras in a third display mode.
The camera corresponding to the second control displayed in the first display mode is a preview camera of the current view-finding frame. The camera corresponding to the second control displayed in the second display mode is a preview camera of other view frames in the view finding interface of the video. And the camera corresponding to the second control displayed in the third display mode is not a preview camera of the current video viewing interface.
For example, the first display mode is a display mode of black characters, the second display mode is a display mode of gray characters, and the third display mode is a display mode of white characters. Assume that the preview camera of the first viewfinder 5901 shown in fig. 62A (i.e., the first camera) is a front wide-angle camera, and the preview camera of the second viewfinder 5902 (i.e., the second camera) is a rear wide-angle camera. As shown in fig. 62A, in the first viewfinder 5901, the mobile phone displays a "front wide angle" control in a black-matrix white display mode (i.e., a first display mode), displays a "rear wide angle" control in a gray-matrix black display mode (i.e., a second display mode), and displays other second controls in a white-matrix black display mode (i.e., a third display mode), such as a "rear main shot" control, a "front main shot" control, a "rear tele" control, and a "front tele" control. As shown in fig. 62A, in the first viewfinder 5902, the mobile phone displays a "rear wide angle" control in a black-matrix white display mode (i.e., a first display mode), displays a "front wide angle" control in a gray-matrix black display mode (i.e., a second display mode), and displays other second controls in a white-matrix black display mode (i.e., a third display mode), such as a "rear main shot" control, a "front main shot" control, a "rear tele" control, and a "front tele" control.
In other embodiments of the second case, a third control is included in the first viewfinder 5901 of the first interface. The third control is used for triggering the mobile phone to display or hide the plurality of second controls. For example, as shown in fig. 61A, a third control 6101 is included in the first viewfinder 5901, and the third control 6101 may be a switch camera option. In response to a click operation of the third control 6101 shown in fig. 61A by the user, a first interface 6204 shown in fig. 62B may be displayed. The first viewfinder 5901 of the first interface 6204 includes a plurality of second options 6201. In response to a clicking operation of the user on the second viewfinder 5902 of the first interface 6204 to switch the camera option 6102 (i.e., the third control 6102), the mobile phone may also display a plurality of second controls (not shown in the drawing) in the second viewfinder 5902. In other embodiments, in response to a user clicking on the first interface 6204 shown in fig. 62B to switch the camera option 6101 (i.e., the third control 6101), the mobile phone may hide the plurality of second options 6201 and display the first interface 6100 shown in fig. 61A.
In the above-described embodiment of the second case, the second operation described in S6001 and S6002 may be a click operation of the first control among the plurality of second controls 6201 illustrated in fig. 62A by the user. For example, the handset may receive a user click operation on a first control (e.g., a "front tele" control) of the plurality of second controls 6201 shown in fig. 62A or 62B.
For example, in response to a user clicking on the "front tele" control in the plurality of second controls 6201 shown in fig. 62B, the cell phone may display the viewing interface 6205 of the video shown in fig. 62C. In the view-finding interface 6205 of the video, the preview image in the first view-finding frame 5901 is switched from the first preview image 5903 collected by the front wide-angle camera (i.e., the first camera) shown in fig. 62B to the third preview image 907 collected by the front tele camera (i.e., the third camera) shown in fig. 62C.
In response to a user clicking on the stop recording button 5905 shown in fig. 62C, the handset may display a second interface 6210 shown in fig. 62D. The second interface 6210 is configured to preview a plurality of first video files (e.g., first video file 6211, first video file 6212, first video file 6213, first video file 6214, and first video file 6215). The first video file 6211, the first video file 6212, the first video file 6213, the first video file 6214, and the first video file 6215 are temporary video files generated by the cellular phone in response to the first operation described above.
For example, the second interface 6210 includes a plurality of preview windows of video, such as a preview window of the first video file 6211, a preview window of the first video file 6212, a preview window of the first video file 6213, a preview window of the first video file 6214, and a preview window of the first video file 6215. And responding to the preview operation of the user on each first video file in the second interface, and playing the first video file in the corresponding preview window by the mobile phone.
Embodiments of the present application are described herein in detail with respect to the preview window of the first video file 6211, the preview window of the first video file 6212, the preview window of the first video file 6213, the preview window of the first video file 6214, and the first video file 6215.
Therein, as shown in fig. 62E, the first video file 6211 comprises a first video stream comprising a plurality of frames of a first preview image 5903. As shown in fig. 62E, the first video file 6212 comprises a third video stream comprising a plurality of frames of a third preview image 907. As shown in fig. 62E, the first video file 6214 includes a first video stream and a third video stream. As shown in fig. 62E, the first video file 6213 comprises a second video stream comprising a plurality of frames of a second preview image 5904. As shown in fig. 62E, the first video file 6215 includes a first video stream, a second video stream, and a third video stream.
As shown in fig. 62B, when the timing duration of the timing option 5903 in the first interface 6204 is 00:00:09, the handset receives a click operation (i.e., a second operation) of the "front tele" control by the user. Thus, as shown in fig. 62E, the first video stream includes a period of 00:00:00-00:00:09, and a plurality of frames of first preview images 5903 are captured by the first camera and displayed on the display screen. As shown in fig. 62B, when the time duration of the time counting option 6206 in the first interface 6205 is 00:00:10, the handset receives a click operation (i.e., a first operation) of the stop recording button 5905 by the user. Thus, as shown in FIG. 62E, the third video stream includes a period of 00:00:09-00:00:10, a plurality of frames of a third preview image 907 captured by the third camera and displayed on the display screen; the second video stream includes a plurality of frames of second preview images 5904 captured by the second camera and displayed on the display screen for a period of time ranging from 00:00:00 to 00:00:10.
In the embodiment including S6001-S6002, the mobile phone executes the principle of generating the first video file 6211, the first video file 6212, the first video file 6213, the first video file 6214 and the first video file 6215, and reference may be made to the principle of generating the first video file 6111, the first video file 6112, the first video file 6113, the first video file 6114 and the first video file 6115 by the mobile phone in the foregoing embodiment, which is not repeated herein.
By adopting the method provided by the embodiment of the application, the camera can be switched in the video recording process. And, once the camera is switched, the mobile phone can generate a temporary video file so that a user can select a required video file after stopping video recording. Therefore, the temporary video file selected by the user can be saved according to the user requirement, and the shooting experience of the user can be improved.
In other embodiments, in the multi-view video mode, the handset may also pause video recording, and each time the handset is paused, a temporary video file may be saved. Specifically, the mobile phone may receive a third operation of the user on the first interface. The third operation is used for triggering the mobile phone to pause video recording in the first view-finding frame. In response to the third operation, the handset may pause the recording in the first viewfinder.
As shown in fig. 63A, after S5801, before S5802, the method according to the embodiment of the present application may further include S6301-S6304. As shown in fig. 63A, S5802 described above may include S6305, and S5803 may include S6306.
S6301, the mobile phone receives a third operation of the user on the first interface.
In one implementation, the first interface may include a pause record button for triggering the handset to pause recording in the first viewfinder. For example, in the first interface 6300 shown in fig. 63B, a pause recording button 1003 is included in the first view finder 5901, and a pause recording button 1004 is included in the first view finder 5902. The third operation may be a click operation of the pause recording button 1004 by the user. For example, the cellular phone may receive a third operation (such as a click operation) by the user to pause the recording button 1003 in the first viewfinder 5901 shown in fig. 63B.
In another implementation, the third operation may be a preset gesture 1 input by the user at the first interface. The preset gesture 1 may be preconfigured in the mobile phone or may be set by the user in the mobile phone. For example, the preset gesture 1 may be an L-shaped gesture.
S6302, responding to the third operation, and displaying a third interface by the mobile phone. The third interface is a view finding interface in which the first view finding frame pauses video recording and the second view finding frame is recording video; and in the third interface, the first view finding frame displays a fourth preview image acquired by the first camera, and the second view finding frame displays a second preview image acquired by the second camera.
For example, in response to a third operation of the pause recording button 1003 shown in fig. 63B by the user, the handset may display a third interface 6310 shown in fig. 63C. The first viewfinder 5901 of the third interface 6310 displays a fourth preview image 6311 collected by the first camera, and the second viewfinder 5902 displays a second preview image 6302 collected by the second camera; the third interface 6310 also includes a pause recording button 6312. Wherein the pause record button 1003 is in a first state and the pause record button 6312 is in a second state.
After the mobile phone performs S6301-S6302 to pause the video recording, the user may just want to adjust the shooting angle of the camera and the gesture of the shooting object (i.e. swing shooting) during the process of the mobile phone to pause the video recording. After the gesture is adjusted by the user, a fourth operation can be input to the pause recording button in the third interface, and recording is continued. Therefore, the shooting effect of the mobile phone video can be improved, and the shooting satisfaction of the user is improved.
S6303, the mobile phone receives a fourth operation of the user on the third interface.
In one implementation, the third interface may include a pause record button for triggering the handset to continue recording. The fourth operation may be a click operation of a pause recording button in the third interface by the user.
In another implementation, the fourth operation may be a preset gesture 2 input by the user at the first interface. The preset gesture 2 may be preconfigured in the mobile phone or may be set by the user in the mobile phone. For example, the preset gesture 2 may be a ∈gesture.
S6304, responding to the fourth operation, and displaying a fourth interface by the mobile phone. The fourth interface is a view finding interface of the mobile phone which is recording the video; and in the fourth interface, the first view finding frame displays a fifth preview image acquired by the first camera, and the second view finding frame displays the second preview image acquired by the second camera.
For example, the handset may receive a fourth operation (e.g., a click operation) by the user on the pause record button 6312 in the third interface 6310. In response to a fourth operation of the pause recording button 6312 by the user, the cell phone may continue recording and display a fourth interface 6320 shown in fig. 63D. At the fourth interface 6320, the first viewfinder 5901 displays a fifth preview image 6321 captured by the first camera and the second viewfinder 5902 displays the second preview image 6302 captured by the second camera.
The first preview image 6301 shown in fig. 63B, the fourth preview image 6311 shown in fig. 63C, and the fifth preview image 6321 shown in fig. 63D are preview images captured by the first camera. However, the first preview image 6301 is a preview image collected by the mobile phone during the recording process in the first viewfinder 5901, the fourth preview image 6311 is a preview image collected by the mobile phone during the suspension of the recording process in the first viewfinder 5901, and the fifth preview image 6321 is a preview image collected by the mobile phone during the continuing recording process in the first viewfinder 5901. Thus, the video processing (Media Recorder) module 5722 of the handset may buffer a video stream comprising a plurality of frames of the first preview image 6301 (i.e., the first video stream) and a video stream comprising a plurality of frames of the fifth preview image 6321 (i.e., the fourth video stream) without buffering a video stream comprising a plurality of frames of the fourth preview image 6311.
S6305, the mobile phone receives a first operation of the user on the fourth interface. The first operation is used for triggering the mobile phone to stop recording video.
For example, the first operation may be a click operation of the stop recording button 5905 in the fourth interface 6320 by the user. The mobile phone may receive a click operation of the stop recording button 5905 shown in fig. 63D by the user.
S6306, responding to the first operation, and displaying a second interface for previewing the plurality of first video files by the mobile phone. The plurality of first video files includes: video files comprising a first video stream, video files comprising a fourth video stream, video files comprising a first video stream and a fourth video stream, video files comprising a second video stream, video files comprising a first video stream, a fourth video stream and a second video stream.
For example, in response to a user clicking on the stop recording button 5905 shown in fig. 63D, the mobile phone may display the second interface 1030 shown in fig. 63E. The second interface 1030 is used to preview a plurality of first video files (e.g., first video file 6331, first video file 6332, first video file 6333, first video file 6334, and first video file 6335). The first video file 6331, the first video file 6332, the first video file 6333, the first video file 6334, and the first video file 6335 are temporary video files generated by the mobile phone in response to the first operation described above.
For example, the second interface 1030 includes a plurality of preview windows of videos, such as a preview window of the first video file 6331, a preview window of the first video file 6332, a preview window of the first video file 6333, a preview window of the first video file 6334, and a preview window of the first video file 6335. And responding to the preview operation of the user on each first video file in the second interface, and playing the first video file in the corresponding preview window by the mobile phone.
Embodiments of the present application are described herein in detail with respect to the first video file 6331, the first video file 6332, the first video file 6333, the first video file 6334, and the first video file 6335.
As shown in fig. 63F, the first video file 6331 includes a first video stream including a plurality of frames of a first preview image 6301. As shown in fig. 63F, the first video file 6332 includes a fourth video stream including a plurality of frames of a fifth preview image 6321. As shown in fig. 63G or 63H, the first video file 6333 includes a first video stream and a fourth video stream. As shown in fig. 63F, the first video file 6334 includes a second video stream including a plurality of frames of a second preview image 6302. As shown in fig. 63F, the first video file 6335 includes a first video stream, a fourth video stream, and a second video stream.
As shown in fig. 63G, in one implementation, the first video file 6333 includes a first video stream and a fourth video stream. The duration of the first video file 6333 shown in fig. 63G is 10 seconds(s). In the process of playing the first video file 6333, the mobile phone may play each frame image of the first video stream first, and then play each frame image of the fourth video stream.
In another implementation, as shown in fig. 63H, the first video file 6333 includes a first video stream and a fourth video stream. The duration of the first video file 6333 shown in fig. 63G is 12 seconds(s). In the process of playing the first video file 6333, the mobile phone may play each frame image of the first video stream first; within 2s (i.e. 00:00:08-00:00:10) after playing the last frame image of the first video stream, the last frame image or a preset image of the first video stream can be played; then, each frame of image of the fourth video stream is played back starting from 00:00:10. The preset image may be a blank image. The last frame image or the preset image of the first video stream is played by the mobile phone within 2s, so that the effect of video suspension can be shown for the user.
Likewise, in the process of playing the first video file 6335, the mobile phone may play the first video stream and the fourth video stream in the first viewfinder 5901 according to the manner of playing the first video file 6333; meanwhile, the mobile phone can play the second video stream in the second view-finding frame.
As shown in fig. 63B, when the time duration of the time option 1005 in the first interface 6300 is 00:00:08, the handset receives a click operation (i.e., a third operation) of the pause recording button 1003 by the user. Thus, as shown in fig. 63F or 63G, the first video stream includes a period of 00:00:00-00:00:08, and a plurality of frames of first preview images 6301 are captured by the first camera and displayed on the display screen. As shown in fig. 63C, when the time duration of the time option 1013 in the third interface 6310 is 00:00:10, the handset receives a click operation (i.e., a fourth operation) of the pause recording button 6312 by the user; as shown in fig. 63D, when the time duration of the time option 1022 in the fourth interface 6320 is 00:00:12, the handset receives a click operation (i.e., a first operation) of the stop recording button 5905 by the user. Thus, as shown in FIG. 63G, the fourth video stream includes a period of 00:00:10-00:00:12, and a plurality of frames of fifth preview images 6321 are captured by the first camera and displayed on the display screen. As shown in fig. 63F, the second video stream includes a plurality of frames of second preview images 6302 captured by the second camera and displayed on the display screen for a period of time of 00:00:00-00:00:12.
After S6306, the mobile phone may perform S5804. After S6306, the mobile phone executes S5804 to describe the embodiment of the present application in detail, which is not described here again.
Embodiments of the present application the principles of the handset generating the first video file 6331, the first video file 6332, the first video file 6333, the first video file 6334 and the first video file 6335 described above in embodiments comprising S6301-S6304 are described herein.
Wherein, in response to a third operation of the pause record button in the first viewfinder by the user, a video processing (Media Recorder) module 5722 may generate a first video file 6331 that includes a first video stream (including multiple frames of first preview images captured by the first camera). In response to a fourth operation of the pause record button by the user, a video processing (Media Recorder) module 5722 may acquire and buffer in real time a video stream composed of the fifth preview image 6321 acquired by the first camera from the surface view of the first viewfinder.
It should be noted that, in the process of executing S6301-S6304, the video processing (Media Recorder) module 5722 may not affect the video stream composed of the second preview image acquired by the second camera and acquired from the surface view of the second viewfinder in real time.
Finally, in response to a user clicking on the stop record button (i.e., a first operation), the video processing (Media Recorder) module 5722 may generate a first video file 6334 comprising a second video stream (comprising multiple frames of second preview images captured by the second camera) and generate a first video file 6332 comprising a fourth video stream (comprising multiple frames of fifth preview images captured by the first camera). Also, the video processing (Media Recorder) module 5722 may also generate a first video file 6333 including a first video stream and a fourth video stream, and generate a first video file 6335 including the first video stream, the fourth video stream, and a second video stream.
In other embodiments, the cell phone may switch cameras during a pause in video recording. For example, the mobile phone may receive a click operation of the "rear-mounted tele" control of the first viewfinder 5901 in the third interface 6310 shown in fig. 63C by the user, and switch the preview camera of the first viewfinder 5901 to the rear-mounted tele camera. The specific method for switching the camera during the process of suspending the video recording by the mobile phone is not described herein.
In some embodiments, in the process of double-view video recording, the mobile phone may further add a third view-finding frame on the first interface in response to the operation of the user, so as to implement triple-view video recording. Specifically, the method of the embodiment of the application can comprise S5801, S6201a-S6201b and S5802-S5804. S6201a: and the mobile phone receives a fifth operation of the user on the first interface, wherein the fifth operation is used for triggering the mobile phone to add a third view-finding frame on the first interface. S6201b: in response to the fifth operation, the handset displays a first interface including a first viewfinder, a second viewfinder, and a third viewfinder. The first view finding frame is used for displaying a first preview image collected by the first camera, the second view finding frame is used for displaying a second preview image collected by the second camera, and the third view finding frame is used for displaying a sixth preview image collected by the fourth camera.
In this embodiment, the mobile phone executes the plurality of first video files previewable by the second interface displayed in S5802-S5803, which may not only include: a video file comprising a first video stream, a video file comprising a second video stream, a video file comprising a first video stream and a second video stream; may further include: video files comprising a fifth video stream, video files comprising the fifth video stream and the first video stream and/or the second video stream.
Wherein the fifth video stream comprises a plurality of frames of sixth preview images. The first video stream comprises a plurality of frames of first preview images and the second video stream comprises a plurality of frames of second preview images.
The specific implementation of S6201a-S6201b may be described in detail in the conventional technology, and the embodiments of the present application are not described herein.
In other embodiments, in the process of the dual-view video recording, the mobile phone may also close the first view-finding frame or the second view-finding frame of the first interface in response to the operation of the user, so as to implement the single-view video recording. Specifically, the method of the embodiment of the application can comprise S5801, S6202a-S6202b and S5802-S5804. S6202a: and the mobile phone receives a sixth operation of the user on the first interface, wherein the sixth operation is used for triggering the mobile phone to close the first view-finding frame of the first interface. S6202b: in response to the sixth operation, the mobile phone displays a first interface including a second viewfinder and closes the first camera.
In this embodiment, the mobile phone executes the plurality of first video files previewable by the second interface displayed in S5802-S5803, which may include: video files comprising a first video stream, video files comprising a second video stream, video files comprising the first video stream and the second video stream. The first video stream comprises a plurality of frames of first preview images collected by the first camera, and the second video stream comprises a plurality of frames of second preview images collected by the second camera.
The specific implementation of S6202a-S6202b may refer to the detailed description in the conventional technology, and the embodiments of the present application are not described herein.
It should be noted that, because the mobile phone closes the first view-finding frame in the process of double-view video recording; thus, the timing duration of the first video stream is less than the timing duration of the second video stream. For example, assume that the mobile phone closes the first viewfinder when the time duration of the video recording is 00:00:08, and the mobile phone stops the video recording when the time duration of the video recording is 00:00:12. In this case, during the process of playing the first video file including the first video stream and the second video stream, the mobile phone may sequentially play each frame of image in the first video stream and sequentially play each frame of image in the second video stream during the period of 00:00:00-00:00:08; the last frame image or the preset image of the first video stream may be displayed for a period of time from 00:00:09 to 00:00:12, and each frame image in the second video stream may be continuously played in sequence.
In other embodiments, the first and second frames may be clocked separately. For example, the handset may display the first interface 6400 shown in fig. 64. The first interface 6400 includes a first view finder frame 5901 and a second view finder frame 5902. The first viewfinder 5901 includes a timing option 6401 and the second viewfinder 5902 includes a timing option 6402.
And, the first view-finding frame and the second view-finding frame may include buttons for triggering the mobile phone to start recording and stop recording, such as a start recording button and a stop recording button, respectively. For example, the first view frame 5901 includes a stop recording button 6403, and the second view frame 5902 includes a stop recording button 6404. The stop recording button 6403 is used to trigger the mobile phone to stop recording the video stream in the first viewfinder 5901, and the stop recording button 6404 is used to trigger the mobile phone to stop recording the video stream in the second viewfinder 5902.
Assume that when the time duration of the time option 6401 is 00:00:08, the mobile phone receives a click operation of the stop recording button 6403 from the user. In response to a user's click of the stop recording button 6403, the cell phone may save a second video file including the first video stream. The first video stream includes a plurality of frames of the first preview image 6405, and the duration of the first video stream is 00:00:08. Then, when the time duration of the time option 6402 is 00:00:10, the mobile phone receives the click operation of the record stop button 6404 from the user, and the mobile phone can display a second interface for previewing the plurality of first video files. The plurality of first video files may include: video files comprising the second video stream, video files comprising the first video stream and the second video stream. The second video stream includes multiple frames of second preview images 6406, the second video stream having a duration of 00:00:10.
It should be noted that, because the mobile phone stops recording the video stream in the first viewfinder during the process of double-view video recording; thus, the timing duration of the first video stream is less than the timing duration of the second video stream. For example, the duration of the first video stream is 00:00:08 and the duration of the second video stream is 00:00:10. In this case, during the process of playing the first video file including the first video stream and the second video stream, the mobile phone may sequentially play each frame of image in the first video stream and sequentially play each frame of image in the second video stream during the period of 00:00:00-00:00:08; the last frame image or the preset image of the first video stream may be displayed for a period of time from 00:00:09 to 00:00:10, and each frame image in the second video stream may be continuously played in sequence. The preset image may be a blank image. The last frame image or the preset image of the first video stream is played in the range of 00:00:09-00:00:10 by the mobile phone, so that the effect of stopping the video can be shown for the user.
In a single-scene shooting scene, the mobile phone is in a single-scene video recording mode. In the single-view video mode, the view finding interface of the mobile phone video comprises a view finding frame. The camera can be switched in the process of video recording of the mobile phone, so that preview images acquired by different cameras can be displayed in a switching mode in the view finding frame. As shown in fig. 65A, the method of capturing video may include S6501 to S6505:
S6501, the mobile phone displays a first interface. The first interface is a viewing interface of a video of the mobile phone, and comprises a first preview image acquired by a first camera.
For example, the handset may display a first interface 6601 shown in fig. 66A. Wherein, the first interface 6601 can include a stop recording button 6603, and the timing duration of the timing option 6607 in the first interface 6601 is 00:00:08. Under the condition that the mobile phone is recording, a recording stop button can be included in a viewing interface of the mobile phone recording, and a timing option can be timed in the viewing interface of the mobile phone recording. It can be seen that the first interface 6601 is a viewing interface where the mobile phone is recording.
In addition, a first preview image 6602 collected by a first camera (such as a rear camera of a mobile phone) is displayed in a viewfinder of the first interface 6601.
S6502, the mobile phone receives a second operation of the first interface by the user. The second operation is used for triggering the mobile phone to switch and use a second camera in the plurality of cameras, and the second camera is different from the first camera.
In one implementation of the first case, the first interface may include a first control. The first control can be used for triggering the mobile phone to switch the camera. For example, a first control 6604 is included in the first interface 5901 shown in fig. 66A, and the first control 104 is also referred to as a camera switch option or an icon for switching cameras. The second operation may be a click operation (e.g., a click operation) of the first control 6604 shown in fig. 66A by the user.
In another implementation manner of the first case, the second operation may also be a preset gesture, such as an S-gesture or a v-gesture, input by the user on the first interface. The preset gesture may be preconfigured in the handset. And the mobile phone can prompt the user with the preset gesture and the function triggered by the preset gesture (namely, the function of switching the camera in the video recording process) on the video-recording view-finding interface.
Wherein the second camera is different from the first camera. For example, in the case where the first camera is a rear camera of a cellular phone, the second camera is a front camera of the cellular phone.
S6503, responding to the second operation, and switching the first preview image in the first interface into a second preview image acquired by the second camera by the mobile phone.
For example, the above-described second operation is exemplified by a click operation of the first control 6604 shown in fig. 66A by the user. In response to a second operation of the first control 6604 by the user, the handset can display a first interface 6605 shown in fig. 66B.
Wherein, in response to the second operation of the first control 6604 shown in fig. 66A by the user, the preview image in the first interface of the mobile phone is switched from the first preview image 6602 shown in fig. 66A to the second preview image 6606 shown in fig. 66B. The first preview image 6602 and the second preview image 6606 are images captured by different cameras, and therefore, as shown in fig. 66A and 66B, the first preview image 6602 and the second preview image 6606 are different.
S6504, the mobile phone receives a first operation of the user on the first interface. The first operation is used for triggering the mobile phone to stop recording video.
The first interface (i.e. the viewfinder interface of the mobile phone that is recording video) may include a stop recording button. The first operation may be a click operation (e.g., a clicking operation) of the stop recording button by a user. For example, the view interface 6601 for recording video shown in fig. 66A and the view interface 6605 for recording video shown in fig. 66B each include a stop recording button 6603. The mobile phone can receive the first operation of the stop recording button 6603 in the view finding interface of the recorded video by the user at any time in the process of recording the video, and stop recording the video and store the recorded video file in response to the first operation.
It should be appreciated that the timing duration of the timing options in the viewing interface of the video recorded by the handset may change over time during the video recorded by the handset. For example, the timing duration of the timing option 6607 shown in fig. 66A is 00:00:08, and the timing duration of the timing option 6608 shown in fig. 66B is 00:00:09 as time goes by. For example, assume that the mobile phone receives a first operation from a user when the duration of video recording is 00:00:09.
S6505, in response to the first operation, the mobile phone displays a second interface for previewing the plurality of first video files. The plurality of first video files includes: a video file comprising a first video stream, a video file comprising a second video stream, and a video file comprising the first video stream and the second video stream. The first video stream comprises a plurality of frames of first preview images and the second video stream comprises a plurality of frames of second preview images.
For example, in response to a first operation of the stop recording button 66103 shown in fig. 66B by the user, the mobile phone may display the second interface 6610 shown in fig. 66C or the second interface 6615 shown in fig. 66D. The second interface 6610 shown in fig. 66C includes prompt 6609, such as "please select video desired to save-! ". The second interface 6610 is used to preview a plurality of first video files (e.g., the first video file 6611, the first video file 6612, and the first video file 6613). The first video file 6611, the first video file 6612, and the first video file 6613 are temporary video files generated by the mobile phone in response to the first operation described above.
For example, the second interface 6610 or the second interface 6615 includes a plurality of preview windows of the video, such as a preview window of the first video file 6611, a preview window of the first video file 6612, and a preview window of the first video file 6613. And responding to the preview operation of the user on each first video file in the second interface, and playing the first video file in the corresponding preview window by the mobile phone. For example, the preview window of the first video file 6611 includes a play button. The preview operation may be a click operation of a play button by a user.
The mobile phone can receive the selection operation of one or more first video files in the second interface by a user. The second interface 6610 described above can also include a "save" button 6614. The "save" button 6614 is used to trigger the handset to save the first video file (i.e., the second video file) selected by the user.
Embodiments of the present application are described herein in detail with respect to the first video file 6611, the first video file 6612, and the first video file 6613.
Wherein, as shown in fig. 66F, the first video file 6611 comprises a first video stream comprising a plurality of frames of the first preview image 6602. As shown in fig. 66F, the first video file 6612 includes a second video stream including a plurality of frames of the second preview image 6606. As shown in fig. 66F, the first video file 6613 includes a first video stream and a second video stream.
As shown in fig. 66A, when the time duration of the time option 6607 in the first interface 6601 is 00:00:08, the mobile phone receives the click operation (i.e., the second operation) of the first control 6604 by the user. As shown in fig. 66B, when the time duration of the time option 6608 in the first interface 6605 is 00:00:10, the mobile phone receives the click operation (i.e., the first operation) of the stop recording button 6605 by the user. Thus, as shown in fig. 66F, the first video stream includes: during the period of 00:00:00-00:00:08, a plurality of frames of first preview images 6602 are acquired and displayed on the display screen by the first camera. As shown in fig. 66F, the second video stream includes: during the period of 00:00:09-00:00:10, a plurality of frames of second preview images 6606 are acquired and displayed on the display screen by the second camera.
As shown in fig. 65B, after S6505, the method of the embodiment of the present application further includes S6506.
S6506, responding to the selection operation of the user on the second video files in the plurality of first video files, and storing the second video files by the mobile phone.
For example, it is assumed that the mobile phone receives any one of a single click operation, a double click operation, and a long press operation of the first video file 6611 and the first video file 6613 in the second interface 6610 shown in fig. 66C by the user, and displays the second interface 6616 shown in fig. 66E. Then, in response to the user's click on the "save" button 6614 in fig. 66E, the cell phone can save the second video file (e.g., the first video file 6611 and the first video file 6613).
In the embodiment of the application, the mobile phone can switch the camera in the video recording process in the single-scene video recording mode. And, once the camera is switched, the mobile phone can generate a temporary video file so that a user can select a required video file after stopping video recording. Therefore, the temporary video file selected by the user can be saved according to the user requirement, and the shooting experience of the user can be improved.
In the single shot scene, for the second case, the first interface may include a plurality of second controls. The first control is one of a plurality of second controls. Each second control corresponds to one camera of the cameras and is used for triggering the mobile phone to switch to use the corresponding camera. For example, the first interface 6701 shown in fig. 67A includes a plurality of second controls 6702, such as a "front-facing main" control, a "front-facing tele" control, a "front-facing wide" control, a "rear-facing main" control, a "rear-facing tele" control, and a "rear-facing wide" control.
The detailed description of the "front-end main shot" control, the "front-end tele" control, the "front-end wide" control, the "rear-end main shot" control, the "rear-end tele" control, and the "rear-end wide" control shown in fig. 67A may refer to the description of the related control in fig. 62C in the above embodiment, and the embodiments of the present application are not repeated herein.
In some embodiments of the second case, the handset may display the second control of the preview camera of the first interface in a manner that is distinct from the second controls of the other cameras. For example, the mobile phone may display the second control of the preview camera of the first interface in the first display mode, and display the second control of the other cameras in the third display mode. For example, as shown in fig. 67A, the mobile phone displays a "post-main" control in a display mode of black-matrix white words (i.e., a first display mode), and displays other second controls in a display mode of white-matrix black words (i.e., a third display mode), such as a "pre-main" control, a "pre-tele" control, a "pre-wide" control, a "post-tele" control, and a "post-wide" control.
In the above embodiment of the second case, the second operation described in S6502 may be a click operation of the first control among the plurality of second controls 6702 shown in fig. 67A by the user. For example, the handset may receive a user click on a first control (e.g., a "pre-master" control) of the plurality of second controls 6702 shown in fig. 67A.
For example, in response to a user clicking on a "pre-master" control of the plurality of second controls 6702 shown in fig. 67A, the cell phone may display the view interface 6704 of the video shown in fig. 67B. In the view-finding interface 6704 of the video, the preview image is switched from a first preview image 6703 acquired by the rear main camera (i.e., the first camera) shown in fig. 67A to a second preview image 6705 acquired by the front main camera (i.e., the second camera) shown in fig. 67B.
In response to a click operation of the stop recording button 6706 shown in fig. 67B by the user, the mobile phone may display a second interface 6610 shown in fig. 66C. The second interface 6610 is used to preview a plurality of first video files (e.g., the first video file 6611, the first video file 6612, and the first video file 6613). The first video file 6611, the first video file 6612, and the first video file 6613 are temporary video files generated by the mobile phone in response to the first operation described above.
By adopting the method provided by the embodiment of the application, the mobile phone can switch the camera in the video recording process in the single-scene video recording mode. And, once the camera is switched, the mobile phone can generate a temporary video file so that a user can select a required video file after stopping video recording. Therefore, the temporary video file selected by the user can be saved according to the user requirement, and the shooting experience of the user can be improved.
In other embodiments, as shown in fig. 66A, the first interface 6601 further includes a third control (e.g., a camera switch option) 6604. In response to a click operation of the third control 6604 shown in fig. 66A by the user, the first interface 6701 shown in fig. 67A or the first interface 6801 shown in fig. 68A is displayed. In response to a user clicking on the third control 6807 in the first interface 6801 shown in fig. 68A, the handset can hide the plurality of second controls 6803 in the first interface 6801, displaying the first interface 6601 shown in fig. 66A.
It should be understood that, in the embodiment of the present application, the positions of the plurality of second controls at the first interface include, but are not limited to, the positions shown in fig. 62A and 67A.
In the single view shooting mode, the mobile phone can also display the plurality of second controls in a view-finding frame of the first interface (namely, the view-finding interface of the mobile phone which is recording video). For example, the handset may display a first interface 6801 shown in fig. 68A (i.e., a viewfinder interface in which the handset is recording video). A first preview image 6802 is displayed in the viewfinder of the first interface 6801. A plurality of second controls 6803, a "front-facing main shot" control, a "front-facing tele" control, a "front-facing wide" control, a "rear-facing main shot" control, a "rear-facing tele" control, and a "rear-facing wide" control are also displayed in the viewfinder of the first interface 6801.
In the multi-view photographing mode, the mobile phone may also display a first interface 6804 shown in fig. 68B. In this first interface 6804, a plurality of second controls 6805 are included in the first view frame 5901, and a plurality of second controls 6806 are included in the second view frame 5902.
In other embodiments, in the single view video mode, the handset may also pause video recording, and each pause the handset may save a temporary video file. As shown in FIG. 69A, after S6503, before S6504, the method of the embodiment of the present application may further include S6901-S6904. As shown in fig. 69A, S6504 may include S6905, and S6505 may include S6906. After S6906, the handset may perform S6506.
S6901, the mobile phone receives a third operation of the user on the first interface.
The first interface may include a pause recording button, where the pause recording button is used to trigger the mobile phone to pause recording. For example, the first interface 6901 shown in fig. 69B includes a pause recording button 6903. The third operation may be a click operation of a pause recording button in the first interface by the user. Alternatively, the third operation may also be a preset gesture 1 input by the user at the first interface.
For example, handset execution S6501 may display first interface 6901 shown in fig. 69B. The first interface 6901 includes a first preview image 6902 captured by a first camera, the first interface 6901 further including a first control 6604 and a pause recording button 6903. The handset performs S6502, which may receive a second operation of the first control 6604 shown in fig. 69B by the user. The mobile phone executes S6503, and in response to the second operation of the first control 6604 shown in fig. 69B by the user, the mobile phone can switch the preview camera from the first camera to the second camera, and display the first interface 6904 shown in fig. 69C. The first interface 6904 includes a pause recording button 6903. The pause record button 6903 is used to trigger the cell phone to pause video recording. The handset may receive a third operation (e.g., a single click operation) of pause record button 6903 in first interface 6904 by the user. The first interface 6904 also includes a second preview image 6905 captured by the second camera.
Of course, the handset may also receive a third operation (e.g., a single click operation) of the pause record button 6903 shown in fig. 69B, and in response to the user's pause record button 6903 shown in fig. 69B, the handset may pause video recording.
S6902, responding to the third operation, and displaying a third interface by the mobile phone. The third interface is a view finding interface for suspending video recording of the mobile phone, and comprises a third preview image collected by the second camera.
For example, in response to a third operation of pause record button 6903 shown in fig. 69C by the user, the handset may display a third interface 6907 shown in fig. 69D. The third interface 6907 includes a third preview image 6908 captured by the second camera; third interface 6907 also includes pause record button 6909. Wherein pause record button 6903 is in a first state and pause record button 6909 is in a second state.
After the mobile phone performs S6901-S6902 to pause video recording, the user may just want to adjust the shooting angle of the camera and the gesture of the shooting object (i.e. swing shooting) during the process of the mobile phone to pause video recording. After the gesture is adjusted by the user, a fourth operation can be input to the pause recording button in the third interface, and recording is continued. Therefore, the shooting effect of the mobile phone video can be improved, and the shooting satisfaction of the user is improved.
S6903, the mobile phone receives a fourth operation of the user on the third interface.
The third interface may include a pause recording button, where the pause recording button is used to trigger the mobile phone to continue recording. The fourth operation may be a click operation of a pause recording button in the third interface by the user. Alternatively, the fourth operation may also be a preset gesture 2 input by the user at the third interface.
S6904, responding to the fourth operation, and displaying a fourth interface by the mobile phone. The fourth interface is a viewing interface of the mobile phone in video recording, and comprises a fourth preview image acquired by the second camera.
For example, the handset may receive a fourth operation (e.g., a click operation) by the user on pause record button 6909 in third interface 6907. In response to a fourth operation of pause recording button 6909 by the user, the handset can continue recording and display a fourth interface 6911 shown in FIG. 69E. The fourth interface 6911 includes a fifth preview image 6912 captured by the second camera.
The second preview image 6905 shown in fig. 69C, the third preview image 6908 shown in fig. 69D, and the fourth preview image 6912 shown in fig. 69E are preview images captured by the second camera. However, the second preview image 6905 is a preview image collected during the recording process of the mobile phone, the third preview image 6908 is a preview image collected during the suspension process of the mobile phone, and the fourth preview image 6912 is a preview image collected during the continuous recording process of the mobile phone. Thus, the video processing (Media Recorder) module 5722 of the handset may buffer a video stream comprising a plurality of frames of the second preview image 6905 (i.e., the first video stream) and a video stream comprising a plurality of frames of the fourth preview image 6912 (i.e., the third video stream) without buffering a video stream comprising a plurality of frames of the third preview image 6908.
S6905, the mobile phone receives a first operation of the user on the fourth interface, and the first operation is used for triggering the mobile phone to stop recording the video.
For example, the first operation may be a click operation of the stop recording button 6603 in the fourth interface 6911 by the user. The handset may receive a click operation of the stop recording button 6603 shown in fig. 69E from the user.
S6906, in response to the first operation, the handset displays a second interface for previewing the plurality of first video files. The plurality of first video files includes: video files comprising a first video stream, video files comprising a second video stream, video files comprising a first video stream and a second video stream, video files comprising a third video stream, video files comprising a second video stream and a third video stream, video files comprising a first video stream, a second video stream and a third video stream. The first video file includes a plurality of frames of first preview images, the second video file includes a plurality of frames of second preview images, and the third video stream includes a plurality of frames of fourth preview images.
For example, in response to a user clicking on the stop recording button 6603 shown in fig. 69E, the cell phone may display the second interface 1620 shown in fig. 69F. The second interface 1620 is used to preview a plurality of first video files (e.g., a first video file 6921, a first video file 6922, a first video file 6923, a first video file 6924, a first video file 6925, and a first video file 6926). The first video file 6921, the first video file 6922, the first video file 6923, the first video file 6924, the first video file 6925, and the first video file 6926 are temporary video files generated by the mobile phone in response to the first operation described above.
For example, the second interface 1620 includes a plurality of preview windows of videos, such as a preview window of the first video file 6921, a preview window of the first video file 6922, a preview window of the first video file 6923, a preview window of the first video file 6924, a preview window of the first video file 6925, and a preview window of the first video file 6926. And responding to the preview operation of the user on each first video file in the second interface, and playing the first video file in the corresponding preview window by the mobile phone.
Embodiments of the present application will now be described in detail with respect to the first video file 6921, the first video file 6922, the first video file 6923, the first video file 6924, the first video file 6925, and the first video file 6926.
Therein, as shown in FIG. 69G, the first video file 6921 includes a first video stream including a plurality of frames of first preview images 6902. As shown in fig. 69G, the first video file 6922 includes a second video stream including a plurality of frames of a second preview image 6905. As shown in fig. 69G, the first video file 6923 includes a first video stream and a second video stream. As shown in fig. 69H, the first video file 6924 includes a third video stream including a plurality of frames of a fourth preview image 6912. As shown in fig. 69I, the first video file 6925 includes a second video stream and a third video stream. As shown in fig. 69K, the first video file 6926 includes a first video stream, a second video stream, and a third video stream.
As shown in fig. 69B, when the time duration of the time option 6607 in the first interface 6901 is 00:00:08, the mobile phone receives the click operation (i.e., the second operation) of the first control 6604 by the user. Thus, as shown in fig. 69G, 69I, or 69K, the first video stream includes a plurality of frames of first preview images 6902 acquired by the first camera and displayed on the display screen for a period of time ranging from 00:00:00 to 00:00:08. And, as shown in fig. 69C, when the timing duration of the timing option 6608 in the first interface 6904 is 00:00:10, the handset receives the click operation (i.e. the third operation) of the pause recording button 6903 by the user. Thus, as shown in FIG. 69G, FIG. 69I, or FIG. 69K, the second video stream includes a plurality of frames of second preview images 6905 acquired by the second camera and displayed on the display screen for a period of time ranging from 00:00:09 to 00:00:10.
As shown in fig. 69D, when the time duration of the time-counting option 6906 in the third interface 6907 is 00:00:12, the handset receives the click operation (i.e., the fourth operation) of the pause recording button 6909 by the user; as shown in fig. 69E, when the time duration of the time counting option 6910 in the fourth interface 6911 is 00:00:14, the handset receives the click operation (i.e., the first operation) of the stop recording button 6603 by the user. Thus, as shown in fig. 69H, 69I, 69J, 69K, 69L, the third video stream includes 00:00:13-00:00:14 for a period of time, a plurality of frames of fourth preview images 6912 captured by the second camera and displayed on the display screen.
As shown in fig. 69I, in one implementation, the first video file 6925 includes a second video stream and a third video stream. The duration of the first video file 6925 shown in fig. 69I is 4 seconds(s). In the process of playing the first video file 16I, the mobile phone may play each frame image of the second video stream first, and then play each frame image of the third video stream.
In another implementation, as shown in fig. 69J, the first video file 6925 includes a second video stream and a fourth video stream. The first video file 6925 shown in fig. 69J has a duration of 6 seconds(s). In the process of playing the first video file 6925, the mobile phone may play each frame of image of the second video stream first; within 2s (i.e. 00:00:11-00:00:12) after playing the last frame image of the second video stream, the last frame image or the preset image of the second video stream can be played; then, each frame of image of the third video stream is played back starting from 00:00:13. The preset image may be a blank image. The mobile phone plays the last frame image or the preset image of the second video stream within the 2s, so that the effect of video pause can be shown for the user.
As shown in fig. 69K, in one implementation, the first video file 6926 includes a first video stream, a second video stream, and a third video stream. The first video file 6926 shown in fig. 69K has a duration of 12 seconds(s). In the process of playing the first video file 16K, the mobile phone may play each frame image of the first video stream first, then play each frame image of the second video stream, and finally play each frame image of the third video stream.
In another implementation, as shown in fig. 69L, the first video file 6926 includes a first video stream, a second video stream, and a third video stream. The first video file 6926 shown in fig. 69L has a duration of 14 seconds(s). In the process of playing the first video file 6926, the mobile phone may play each frame of image of the first video stream first; then playing each frame of image of the second video stream; within 2s (i.e. 00:00:11-00:00:12) after playing the last frame image of the second video stream, the last frame image or the preset image of the second video stream can be played; then, each frame of image of the third video stream is played back starting from 00:00:13. The preset image may be a blank image. The mobile phone plays the last frame image or the preset image of the second video stream within the 2s, so that the effect of video pause can be shown for the user.
Wherein, after S6906, the handset may perform S6506. After S6906, the mobile phone executes S6506 to describe the embodiment of the present application in detail, which will not be described herein.
In the embodiment of the present application, the principles of generating the first video file 6921, the first video file 6922, the first video file 6923, the first video file 6924, the first video file 6925 and the first video file 6926 may refer to the description of the principles of generating the first video file 6331, the first video file 6332, the first video file 6333, the first video file 6334 and the first video file 6335 by using the mobile phone according to the above embodiment, which will not be repeated herein.
In other embodiments, the cell phone may switch cameras during a pause in video recording. For example, the mobile phone may receive a click operation of the "rear-mounted tele" control in the third interface 6907 shown in 16D by the user, and switch the preview camera to the rear-mounted tele camera. The specific method for switching the camera during the process of suspending the video recording by the mobile phone is not described herein.
In general, only one camera is turned on to collect images during a single-view video recording process of a mobile phone. Therefore, in the video recording process of the mobile phone, if the mobile phone is to switch the preview camera from the first camera to the second camera, a certain time is required for starting the second camera, and a short-time (such as 1 second) black screen or blank can appear on the view finding interface, so that the user experience is affected.
In order to realize the noninductive switching of the cameras in the process of video recording of the mobile phone, in the embodiment of the application, not only the first camera of the mobile phone is used for collecting images, but also the second camera of the mobile phone is used for collecting images in the process of displaying the first interface of the mobile phone. Specifically, by adopting the method provided by the embodiment of the application, the mobile phone can start a plurality of cameras in advance. It should be noted that although both the first camera and the second camera are capturing images; however, when the mobile phone executes S6501, the first camera is used as a preview camera, and the mobile phone displays the first preview image acquired by the first camera on the first interface, and does not display the image acquired by the second camera. And when the mobile phone executes S6503, the second camera is used as a preview camera, the mobile phone displays a second preview image acquired by the second camera on the first interface, and does not display the image acquired by the first camera.
That is, by adopting the method of the embodiment of the application, the plurality of cameras (such as the first camera and the second camera) all acquire images, and the video stream is ready to be provided for the surface view. When the handset executes S6501, the first camera serves as a preview camera, and the surfacview displays video stream 1 (i.e., the first video stream). The mobile phone executes S6503, after the preview camera is switched from the first camera to the second camera, the second camera is used as the preview camera, and the surfacview displays the video stream 2 (i.e. the second video stream).
In an exemplary embodiment of the present application, when the mobile phone enters a single-view video recording mode, the mobile phone may start a plurality of cameras in the mobile phone, so as to realize the noninductive switching of the cameras in the process of video recording of the mobile phone.
Thus, the mobile phone starts the cameras to collect images, so that the cameras are ready for displaying the SurfaceView. Therefore, no matter which camera is used by the mobile phone in a switching way, a short-time (such as 1 second) black screen or blank of a view finding interface can be avoided because a certain time is needed for starting the camera. By adopting the scheme, the noninductive switching of the camera can be realized in the process of recording the video by the mobile phone, and the shooting experience of a user can be improved.
It should be noted that, in the process of executing S6501, the mobile phone may cache a video stream including the above-mentioned multi-frame first preview image. However, in response to the second operation, the mobile phone does not pause or stop recording video, nor does the mobile phone store a video file of a video stream composed of a plurality of frames of the first preview image. And continuing to record the video, caching the video stream comprising the plurality of frames of the second preview images, stopping recording the video by responding to the first operation by the mobile phone until the first operation of the user is received, and storing a plurality of first video files. The mobile phone stores a plurality of first video files in response to the first operation, and the detailed description of the first video files may refer to the following contents in the following embodiments, which are not described herein.
In some embodiments, in order to reduce the power consumption of the mobile phone, in the single-view video mode, the mobile phone may not start the plurality of cameras in the mobile phone in advance, but start the second camera in response to the second operation of the first interface by the user. In this way, although a short-time (e.g., 1 second) black screen or blank space may appear on the viewfinder interface during the process of switching the cameras, compared with the scheme of starting a plurality of cameras in advance, the power consumption of the mobile phone can be reduced.
In some embodiments, when the mobile phone enters a multi-view video recording mode, the mobile phone can start a plurality of cameras in the mobile phone so as to realize the noninductive switching of the cameras in the video recording process of the mobile phone.
In other embodiments, in order to reduce the power consumption of the mobile phone, in the multi-view video mode, the mobile phone may not start the plurality of cameras in the mobile phone in advance, but start the third camera in response to the second operation of the first interface by the user. In this way, although a short-time (e.g., 1 second) black screen or blank space may appear on the viewfinder interface during the process of switching the cameras, compared with the scheme of starting a plurality of cameras in advance, the power consumption of the mobile phone can be reduced.
In the embodiment of the present application, the plurality of second controls displayed on the view finding interface of the single-view video or the view finding interface of the multi-view video may at least include the following three implementation manners.
Implementation (a):
as shown in any one of fig. 62A, 67A, or 68A, the type indication information of the corresponding camera is displayed on each of the plurality of second controls. In the embodiment of the application, the type indication information of one camera is used for indicating the type of the camera, and can also indicate that the camera is a front camera or a rear camera.
For example, a viewfinder interface for a multi-view video is taken as an example. As shown in fig. 68A, the type of instruction information, "front main shot", "front tele", "front wide", "rear main shot", "rear tele", "rear wide" is displayed on each of the plurality of second controls 6805, respectively. The type indication information is used for indicating that the second control corresponds to the front-mounted main camera. The type indication information is used for indicating that the second control corresponds to the front tele camera. The type indication information "front wide angle" is used for indicating that the second control corresponds to the front wide angle camera. The type indication information is used for indicating that the second control corresponds to the rear-mounted main camera. The type indication information is used for indicating that the second control corresponds to the rear-mounted tele camera. The type indication information "rear wide angle" is used for indicating that the second control corresponds to the rear wide angle camera.
Implementation (b):
and each of the plurality of second controls is displayed with a preview image acquired by the corresponding camera. For example, a view interface for a single shot video is taken as an example. As shown in fig. 70A, the first interface 7000 includes a plurality of second controls, such as a second control 7001, a second control 7002, a second control 7003, a second control 7004, a second control 7005, and a second control 7006.
The second control 7001 displays a preview image collected by the rear main camera. And a preview image acquired by the rear wide-angle camera is displayed in the second control 7002. And a preview image acquired by a rear-mounted tele camera is displayed in the second control 7003. The second control 7004 displays a preview image acquired by the front main camera. And a preview image acquired by the front wide-angle camera is displayed in the second control 7005. The second control 7006 displays a preview image acquired by the front-mounted tele camera.
Therefore, the second control 7001 may also be referred to as a "post-telephoto" control, the second control 7002 may also be referred to as a "post-wide" control, and the second control 7003 may also be referred to as a "post-tele" control; the second control 7004 may also be referred to as a "front-facing main" control, the second control 7005 may also be referred to as a "front-facing wide" control, and the second control 7006 may also be referred to as a "front-facing tele" control. The handset may also display a first interface 7007 shown in fig. 70B.
The first interface 7000 shown in fig. 70A and the first interface 7007 shown in fig. 70B further include a camera switching option. In response to the clicking operation of the camera switching option shown in fig. 70A or fig. 70B, the mobile phone may hide the plurality of second controls, and display the first interface 6601 shown in fig. 66A.
It is understood that the preview images collected by the corresponding cameras are displayed on each first control, so that the shooting effect, the shooting view angle and the like of each camera can be intuitively displayed for a user, and the user can select the cameras meeting the user requirements, such as the shooting effect, the shooting view angle and the like, from the cameras. Thus, the shooting experience of the user can be improved.
Implementation (c):
and proxy information of the corresponding camera is displayed on each of the plurality of second controls. In the embodiment of the application, the proxy information of one camera can indicate that the camera is a front camera or a rear camera, and can also comprise the serial number of the camera.
In one case, the number of the camera may be assigned to the camera by the handset. For example, the number of the Camera may be the Camera ID of the Camera. Camera IDs of different cameras are different. In another case, the number of the camera may be assigned to the camera by the user in the cell phone. The numbers of different front cameras are different, and the numbers of different rear cameras are different.
For example, a view interface for a single shot video is taken as an example. As shown in fig. 71, the first interface 7100 includes a plurality of second controls 7101. For example, the numbers of cameras are 1, 2, and 3. The plurality of second controls 7101 may include a "front camera 1" control, a "front camera 2" control, a "front camera 3" control, a "rear camera 1" control, a "rear camera 2" control, and a "rear camera 3" control.
The proxy information "front camera 1" is used to indicate that the second control (e.g. "front camera 1" control) corresponds to a front camera, and the number of the front camera is 1. For example, the number 1 is that the front camera is the front main camera. The proxy information "front camera 2" is used to indicate that the second control (e.g., "front camera 2" control) corresponds to a front camera, where the number of the front camera is 2. For example, the reference numeral 2 is a front camera and a front wide-angle camera. The proxy information "front camera 3" is used to indicate that the second control (e.g., "front camera 3" control) corresponds to a front camera, and the number of the front camera is 3. For example, the number 3 is that the front camera is a front tele camera.
The proxy information "rear camera 1" is used for indicating that the second control (such as "rear camera 1" control) corresponds to one rear camera, and the number of the rear camera is 1. For example, the number 1 is that the rear camera is the rear main camera. The proxy information "rear camera 2" is used to indicate that the second control (e.g. "rear camera 2" control) corresponds to a rear camera, and the number of the rear camera is 2. For example, the reference numeral 2 is a rear camera and a rear wide-angle camera. The proxy information "rear camera 3" is used to indicate that the second control (e.g., "rear camera 3" control) corresponds to a rear camera, and the number of the rear camera is 3. For example, the number 3 is a rear camera and the rear tele camera.
In other embodiments, the mobile phone may display a plurality of second controls on the first interface using at least one of implementations (a) - (c) above. The specific implementation manner of displaying the plurality of second controls on the first interface by the mobile phone can be preconfigured in the mobile phone or set in the mobile phone by a user. The specific method for receiving and displaying the plurality of second controls by the mobile phone according to the user setting may be described in the conventional technology without further description.
In an exemplary embodiment of the present application, the mobile phone is in a multi-view video recording mode, and the method steps described in fig. 57 and the above embodiment are combined to describe the method flow of shooting video by the mobile phone in the embodiment of the present application.
After the mobile phone enters the multi-video mode, the system Camera application 5711 of the application layer 5710 may trigger the bottom layer execution 7201 to start the video stream of the Camera according to the Camera ID. For example, the system Camera application 5711 may send a notification carrying the Camera ID-1 of the preview Camera for each of the multiple views to the hardware abstraction layer HAL 5730 via the framework layer 5720, the notification instructing the hardware abstraction layer HAL 5730 to execute 7202, starting the video stream of the Camera according to the Camera ID. The hardware abstraction layer HAL 5730 may instruct the Kernel layer (Kernel) to start a Camera identified as a Camera ID, so that a video stream of the Camera may be obtained from the Kernel layer (Kernel) 5740. The Camera driver 5741 of the Kernel layer (Kernel) 5740 can activate the Camera in the Camera device 5742 according to the Camera ID. The hardware abstraction layer HAL 5730 may perform 7202, managing various switching of video streams in a multi-view video mode.
The principle of capturing video streams by the Camera device 5742 of the Kernel layer (Kernel) 5740 is as follows: the Camera device 5742 may convert an optical signal reflected in the framing environment into an electrical signal, and the electrical signal is processed by the image signal processor ISP 5743 to obtain a video stream.
The hardware abstraction layer HAL 5730 may then process data (e.g., video stream 1) from the underlying layer (e.g., kernel layer 5740) and then transfer it to the framework layer 5720. For example, HAL layer 5730 may convert parameters of kernel layer 5740 regarding hardware devices into a software programming language recognizable by framework layer 5720 and application layer 5710.
The framework layer 5720 may receive video streams (e.g., multi-view video streams) from the underlying layers (e.g., kernel layer 5740) transmitted by the hardware abstraction layer HAL 5730. The camera service 5723 of the framework layer 5720 may transfer the video stream to an upper layer (e.g., the application layer 5710) through the API 1 sub-API 2 interface 5721. After the system camera application 5711 of the application layer 5710 receives the video stream, the video stream with multiple scenes may be presented on the view interface, such as the video stream with multiple scenes one and the video stream with multiple scenes two shown in fig. 72.
Thereafter, the cell phone may perform 7203 to begin shooting (i.e., video recording). For example, the mobile phone may execute S5801 to display a first interface, that is, a viewfinder interface of the mobile phone for multi-view video. Then, the cell phone may execute 7204 to switch the camera in shooting, pause video recording, and the like. The application layer 5710 may refresh the video stream in the surfmeview in real time. And displaying the video stream acquired by the preview camera of the mobile phone in real time in the surface view. Displaying the video stream acquired by the preview camera of the mobile phone in real time in the surface view; thus, the video processing module 5722 of the framework layer 5720 obtains and buffers the video stream from the surfacview in real time, so that the video stream presented on the viewing interface of the recorded video of the mobile phone can be buffered. In the embodiment of the present application, the video processing module 5722 may execute 7205 to generate a temporary video file for each operation of the mobile phone, such as camera switching, video recording suspension, etc. After the mobile phone performs 7206 shooting (i.e. the mobile phone receives the click operation of the pause recording button from the user), the preview saving module 7207 of the application layer may perform 7208 to preview the plurality of temporary video files (i.e. the plurality of first video files). Wherein the plurality of temporary video files may include at least four types of video files shown in fig. 72.
(1) All views combined video file, first video file 5913 shown in fig. 59E, first video file 6115 shown in fig. 61D, first video file 6215 shown in fig. 62E, first video file 6335 shown in fig. 63F.
(2) Each scene-integrated video file, such as a first video file 5911 and a first video file 5912 shown in fig. 59E, a first video file 6114 shown in fig. 61D, a first video file 6214 shown in fig. 62E, and a first video file 6333 shown in fig. 63G.
(3) The segmented video files before and after each scene change, such as the first video file 6111 and the first video file 6112 shown in fig. 61D, and the first video file 6211 and the first video file 6212 shown in fig. 62E.
(4) Segmented video files before and after each scene pause, such as the first video file 6331 and the first video file 6332 shown in fig. 63F. The first video file 6333 shown in fig. 63G is an entire video file before and after suspension.
Finally, the handset may execute 7209 saving video files on demand. In particular, the handset may display a second interface for previewing the plurality of temporary video files (i.e., the first video file). Then, the mobile phone can receive the selection operation of the user on the second video file in the temporary video files, and save the second video file selected by the user. The mobile phone can store one or more second video files selected by the user.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (23)

1. A photographing control method, characterized by being applied to an electronic apparatus, the method comprising:
the electronic equipment displays a first interface, wherein the first interface is a view finding interface for photographing or video recording of the electronic equipment, and comprises a first preview image acquired by a first camera of the electronic equipment;
in response to a first operation, the electronic device displays a plurality of first controls; the first controls are in the form of a plurality of preview windows, and preview images acquired by corresponding cameras are displayed on each preview window; the plurality of first controls comprise a first logic control and a second logic control, the first logic control corresponds to a first logic camera, the second logic control corresponds to a second logic camera, the first logic control is used for triggering the electronic device to use the first logic camera, the second logic control is used for triggering the electronic device to use the second logic camera, and the first logic camera and the second logic camera are realized by the same physical camera of the electronic device under different zoom magnifications.
2. The method according to claim 1, wherein the method further comprises:
and responding to clicking operation acted on the first logic control, and switching the first preview image in the first interface into a second preview image acquired by the first logic camera of the electronic device by the electronic device.
3. The method of claim 1, wherein the first interface includes a camera switching option for triggering the electronic device to switch front-facing and rear-facing cameras of the electronic device.
4. A method according to any one of claims 1-3, wherein the zoom magnification is an optical zoom magnification or a digital zoom magnification.
5. The method of claim 4, wherein the first logical control and the second logical control have corresponding zoom magnifications displayed thereon.
6. The method of claim 1, wherein the electronic device displays a plurality of first controls, comprising:
the electronic equipment displays first controls corresponding to the first cameras on the first interface in a first display mode, and displays first controls corresponding to other cameras except the first cameras in the cameras of the electronic equipment in a second display mode;
Wherein the first display mode is different from the second display mode; and displaying a first control corresponding to the first camera in the first display mode, wherein the first control is used for indicating that the first camera is a preview camera of the electronic equipment, and the first interface displays a preview image acquired by the first camera.
7. The method of claim 6, wherein the method further comprises:
responding to clicking operation acted on the first logic control, displaying the first logic control by the electronic equipment in the first display mode, and displaying first controls corresponding to other cameras except the first logic camera in the cameras of the electronic equipment in the second display mode;
and displaying the first logic control in the first display mode, wherein the first logic control is used for indicating that the first logic camera is a preview camera of the electronic equipment, and the first interface displays a preview image acquired by the first logic camera.
8. The method of claim 6 or 7, wherein the first display mode comprises a bolded frame display mode and the second display mode comprises an un-bolded frame display mode.
9. The method of claim 1, wherein the electronic device displays a plurality of first controls, comprising:
the electronic equipment displays the plurality of first controls at positions used for displaying camera switching options in the first interface; or alternatively, the process may be performed,
the electronic device displays the plurality of first controls in a viewfinder of the first interface.
10. The method of claim 1, wherein after the electronic device displays the plurality of first controls, the method further comprises:
in response to a click operation on the third control, the electronic device hides the plurality of first controls.
11. The method of claim 1, wherein the electronic device displays a plurality of first controls, comprising:
responding to clicking operation on a camera switching option, and if a preset function of the electronic equipment is started, displaying the plurality of first controls on the first interface by the electronic equipment;
the preset function is a function of performing multi-camera switching on a view finding interface of photographing or video recording.
12. An electronic device comprising a display screen, a plurality of cameras, a memory, and one or more processors; the display screen, the plurality of cameras, the memory and the processor are coupled; the plurality of cameras are used for acquiring images, the display screen is used for displaying the images generated by the processor and the images acquired by the plurality of cameras, and the memory is used for storing computer program codes, and the computer program codes comprise computer instructions; the computer instructions, when executed by the processor, cause the electronic device to perform:
Displaying a first interface, wherein the first interface is a view finding interface for photographing or video recording of electronic equipment, and comprises a first preview image acquired by a first camera of the electronic equipment;
in response to a first operation, displaying a plurality of first controls; the first controls are in the form of a plurality of preview windows, and preview images acquired by corresponding cameras are displayed on each preview window; the plurality of first controls comprise a first logic control and a second logic control, the first logic control corresponds to a first logic camera, the second logic control corresponds to a second logic camera, the first logic control is used for triggering the electronic device to use the first logic camera, the second logic control is used for triggering the electronic device to use the second logic camera, and the first logic camera and the second logic camera are realized by the same physical camera of the electronic device under different zoom magnifications.
13. The electronic device of claim 12, wherein the computer instructions, when executed by the processor, further cause the electronic device to perform:
and responding to clicking operation acted on the first logic control, and switching the first preview image in the first interface into a second preview image acquired by the first logic camera of the electronic equipment.
14. The electronic device of claim 12, wherein the first interface includes a camera switching option for triggering the electronic device to switch front-facing and rear-facing cameras of the electronic device.
15. The electronic device of any of claims 12-14, wherein the zoom magnification is an optical zoom magnification or a digital zoom magnification.
16. The electronic device of claim 15, wherein the first logical control and the second logical control have corresponding zoom magnifications displayed thereon.
17. The electronic device of claim 12, wherein the displaying the plurality of first controls comprises:
displaying first controls corresponding to the first cameras on the first interface in a first display mode, and displaying first controls corresponding to other cameras except the first cameras in the cameras of the electronic equipment in a second display mode;
wherein the first display mode is different from the second display mode; and displaying a first control corresponding to the first camera in the first display mode, wherein the first control is used for indicating that the first camera is a preview camera of the electronic equipment, and the first interface displays a preview image acquired by the first camera.
18. The electronic device of claim 17, wherein the computer instructions, when executed by the processor, further cause the electronic device to perform:
responding to clicking operation acted on the first logic control, displaying the first logic control in the first display mode, and displaying first controls corresponding to other cameras except the first logic camera in the cameras of the electronic equipment in the second display mode;
and displaying the first logic control in the first display mode, wherein the first logic control is used for indicating that the first logic camera is a preview camera of the electronic equipment, and the first interface displays a preview image acquired by the first logic camera.
19. The electronic device of claim 17 or 18, wherein the first display mode comprises a bolded frame display mode and the second display mode comprises an un-bolded frame display mode.
20. The electronic device of claim 12, wherein the displaying the plurality of first controls comprises:
displaying the plurality of first controls at positions in the first interface for displaying camera switching options; or alternatively, the process may be performed,
And displaying the plurality of first controls in a view-finding frame of the first interface.
21. The electronic device of claim 12, wherein the computer instructions, when executed by the processor, further cause the electronic device to perform:
in response to a click operation on the third control, the electronic device hides the plurality of first controls.
22. The electronic device of claim 12, wherein the displaying the plurality of first controls comprises:
responding to clicking operation on a camera switching option, and if a preset function of the electronic equipment is started, displaying the plurality of first controls on the first interface;
the preset function is a function of performing multi-camera switching on a view finding interface of photographing or video recording.
23. A computer storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-11.
CN202210677485.2A 2020-11-30 2020-12-02 Video shooting method and electronic equipment Active CN115278048B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210677485.2A CN115278048B (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment

Applications Claiming Priority (8)

Application Number Priority Date Filing Date Title
CN2020113853309 2020-11-30
CN202011381353 2020-11-30
CN202011385330 2020-11-30
CN2020113813532 2020-11-30
CN2020113775600 2020-11-30
CN202011377560 2020-11-30
CN202210677485.2A CN115278048B (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment
CN202011410110.7A CN114584686B (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202011410110.7A Division CN114584686B (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment

Publications (2)

Publication Number Publication Date
CN115278048A CN115278048A (en) 2022-11-01
CN115278048B true CN115278048B (en) 2023-08-22

Family

ID=81770711

Family Applications (4)

Application Number Title Priority Date Filing Date
CN202210677485.2A Active CN115278048B (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment
CN202011410110.7A Active CN114584686B (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment
CN202311469990.9A Pending CN118075615A (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment
CN202311469452.XA Pending CN117880634A (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment

Family Applications After (3)

Application Number Title Priority Date Filing Date
CN202011410110.7A Active CN114584686B (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment
CN202311469990.9A Pending CN118075615A (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment
CN202311469452.XA Pending CN117880634A (en) 2020-11-30 2020-12-02 Video shooting method and electronic equipment

Country Status (1)

Country Link
CN (4) CN115278048B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841326A (en) * 2014-02-26 2014-06-04 宇龙计算机通信科技(深圳)有限公司 Video recording method and device
CN105554386A (en) * 2015-12-23 2016-05-04 努比亚技术有限公司 Mobile terminal and camera shooting control method thereof
CN109040582A (en) * 2018-07-24 2018-12-18 珠海格力电器股份有限公司 Video capture method, apparatus, storage medium and the touch screen terminal of touch screen terminal
CN110248081A (en) * 2018-10-12 2019-09-17 华为技术有限公司 Image capture method and electronic equipment
CN111031248A (en) * 2019-12-25 2020-04-17 维沃移动通信(杭州)有限公司 Shooting method and electronic equipment
CN111586286A (en) * 2019-02-19 2020-08-25 三星电子株式会社 Electronic device and method for changing image magnification by using multiple cameras

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110007205A1 (en) * 2009-07-08 2011-01-13 Dechnia, LLC Rear to forward facing camera adapter
US9860490B2 (en) * 2010-11-05 2018-01-02 Tom Galvin Network video recorder system
CN105391965B (en) * 2015-11-05 2018-09-07 广东欧珀移动通信有限公司 Video recording method based on multi-cam and device
CN106657774A (en) * 2016-11-25 2017-05-10 杭州联络互动信息科技股份有限公司 Method and device for recording video
CN107360400B (en) * 2017-07-27 2021-05-28 上海传英信息技术有限公司 Video recording method and video recording device for intelligent equipment camera
CN110072070B (en) * 2019-03-18 2021-03-23 华为技术有限公司 Multi-channel video recording method, equipment and medium
CN111654629B (en) * 2020-06-11 2022-06-24 展讯通信(上海)有限公司 Camera switching method and device, electronic equipment and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841326A (en) * 2014-02-26 2014-06-04 宇龙计算机通信科技(深圳)有限公司 Video recording method and device
CN105554386A (en) * 2015-12-23 2016-05-04 努比亚技术有限公司 Mobile terminal and camera shooting control method thereof
CN109040582A (en) * 2018-07-24 2018-12-18 珠海格力电器股份有限公司 Video capture method, apparatus, storage medium and the touch screen terminal of touch screen terminal
CN110248081A (en) * 2018-10-12 2019-09-17 华为技术有限公司 Image capture method and electronic equipment
CN111586286A (en) * 2019-02-19 2020-08-25 三星电子株式会社 Electronic device and method for changing image magnification by using multiple cameras
CN111031248A (en) * 2019-12-25 2020-04-17 维沃移动通信(杭州)有限公司 Shooting method and electronic equipment

Also Published As

Publication number Publication date
CN114584686A (en) 2022-06-03
CN114584686B (en) 2023-11-14
CN115278048A (en) 2022-11-01
CN118075615A (en) 2024-05-24
CN117880634A (en) 2024-04-12

Similar Documents

Publication Publication Date Title
CN110072070B (en) Multi-channel video recording method, equipment and medium
US20220394190A1 (en) Photographing method and electronic device
US11832022B2 (en) Framing method for multi-channel video recording, graphical user interface, and electronic device
CN109951633B (en) Method for shooting moon and electronic equipment
WO2020073959A1 (en) Image capturing method, and electronic device
CN113473005B (en) Shooting transfer live-action insertion method, equipment and storage medium
CN114205522A (en) Long-focus shooting method and electronic equipment
US11750926B2 (en) Video image stabilization processing method and electronic device
WO2021219141A1 (en) Photographing method, graphic user interface, and electronic device
CN113556466B (en) Focusing method and electronic equipment
CN115526787B (en) Video processing method and device
CN113596319A (en) Picture-in-picture based image processing method, apparatus, storage medium, and program product
US11750915B2 (en) Mobile terminal
WO2023142830A1 (en) Camera switching method, and electronic device
CN114185503A (en) Multi-screen interaction system, method, device and medium
CN114866860A (en) Video playing method and electronic equipment
CN113596321A (en) Transition dynamic effect generation method, apparatus, storage medium, and program product
CN116055857A (en) Photographing method and electronic equipment
CN113364975A (en) Image fusion method and electronic equipment
CN115278048B (en) Video shooting method and electronic equipment
CN110662113B (en) Video playing method and device and computer readable storage medium
CN117135452A (en) Shooting method and electronic equipment
CN115379039A (en) Video 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