Video setting method, electronic equipment and computer readable storage medium
Patent Information
- Application Number
- CN202380065078.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-12-13
- Filing Date
- 2023-09-08
- Publication Date
- 2025-04-18
AI Technical Summary
The existing technology can only perform beautification processing on one video frame during the video shooting process, resulting in poor user experience.
Provides a recording setting method that collects and displays multiple video images in real time on an electronic device including a front camera and a rear camera, and performs beautification processing on the multiple video images according to user operations, including the front camera and the rear camera. Apply different beauty effects to the video footage of the camera.
It realizes beautification processing of multi-channel video images in multi-channel shooting mode, improves user experience, avoids lagging and frame loss problems caused by high system load, and makes the system run more stable.
Smart Images

Figure CN119856502A_ABST
Abstract
Description
Video recording setting method, electronic device and computer-readable storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on December 13, 2022, with application number 202211596283.1 and invention name “Video Setting Method, Device and Computer-readable Storage Medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of photographing technology, and in particular to a video recording setting method, device, and computer-readable storage medium. Background Art
[0003] To enhance the user experience, electronic devices such as mobile phones and tablets are often equipped with multiple cameras. For example, many current mobile phones are equipped with multiple front-facing and multiple rear-facing cameras. To address this, some mobile phones, in addition to providing users with camera functions such as photo and video recording, also offer multi-lens recording (also known as dual-view recording, multi-view recording, or dual-field recording). The various shooting modes offered by multi-lens recording can be captured using one or more cameras, such as front-rear dual-camera mode, picture-in-picture mode, front-facing single-camera mode, rear-facing single-camera mode, and rear-rear dual-camera mode. Users can select the appropriate camera function based on their needs. To simplify video processing, electronic devices may display a beauty icon in the pre-shooting interface, allowing users to trigger and select a beauty level. Subsequently, during video recording, the electronic device can process the live video according to the user's pre-shooting settings. However, existing technologies typically only perform beauty processing on one video stream. For example, in front-rear dual-camera mode, beauty processing is performed only on the video captured by the front camera, resulting in a poor user experience.
[0004] Summary of the Invention
[0005] The embodiments of the present application provide a video recording setting method, device, and computer-readable storage medium to help solve the problem in the prior art that only one video image can be beautified during video shooting.
[0006] In a first aspect, an embodiment of the present application provides a method for setting up video recording, characterized in that it is applied to an electronic device including a front camera and a rear camera, and the method includes:
[0007] The electronic device displays a first video screen, a second video screen, and a first control, wherein the first video screen is a video screen captured in real time by the front camera, and the second video screen is a video screen captured in real time by the rear camera, wherein the first video screen has a first beauty effect, and the second video screen has a second beauty effect;
[0008] In response to a first user operation on the first control, the electronic device displays a second control, a third control, and a fourth control, wherein the second control is displayed in a selected state and the third control is displayed in an unselected state;
[0009] In response to a second user operation on the fourth control, the first video image has a third beautification effect;
[0010] In response to a third user operation, the electronic device stops displaying the first video image;
[0011] In response to a fourth user operation acting on the first control, the electronic device displays the second control, the third control, and a fifth control, wherein the second control is displayed in an unselected state and the third control is displayed in a selected state;
[0012] In response to a fifth user operation acting on the fifth control, the second video picture has a fourth beauty effect.
[0013] In a possible implementation, the third user operation is an operation of the user selecting the multi-camera recording mode. Before performing the third user operation, an operation of calling up the multi-camera recording mode may also be included, which is not specifically limited here.
[0014] In one possible embodiment, in response to a second user operation on the fourth control, the electronic device adjusts the frame rate of the first video image; in response to a fifth user operation on the fifth control, the electronic device adjusts the frame rate of the second video image.
[0015] In a possible implementation, after the electronic device stops displaying the first video image in response to the third user operation, the method further includes: the electronic device adjusting the display ratio of the second video image.
[0016] In one possible embodiment, before the electronic device receives the third user operation, the method further includes: in response to a sixth user operation acting on the third control, the electronic device stops displaying the fourth control, displays the fifth control, displays the second control as an unselected state, and displays the third control as a selected state; in response to a seventh user operation acting on the fifth control, the second video screen has a fifth beauty effect.
[0017] In one possible embodiment, before the electronic device receives the fifth user operation, the method further includes: in response to an eighth user operation acting on the second control, the electronic device stops displaying the fifth control, displays the fourth control, displays the second control as selected, and displays the third control as unselected; in response to a ninth user operation acting on the fourth control, the electronic device stores the sixth beauty effect set by the user.
[0018] In one possible embodiment, after responding to the ninth user operation acting on the fourth control, the method also includes: in response to the tenth user operation, the electronic device displays a third video screen, the third video screen is a video screen captured in real time by the front camera, and the third video screen has a sixth beauty effect.
[0019] In a possible implementation, the tenth user operation is an operation of the user selecting the multi-camera recording mode. Before performing the tenth user operation, an operation of calling up the multi-camera recording mode may also be included, which is not specifically limited here.
[0020] In a possible implementation, after the electronic device displays the third video image in response to the tenth user operation, the method further includes: the electronic device stopping displaying the second video image.
[0021] In one possible implementation, the first, second, third, fourth, fifth, and sixth beautification effects are beautification effects of the video corresponding to different beautification parameter values. The beautification parameter values may be in the range of 0-10 or 0-100, and are not specifically limited herein.
[0022] In one possible implementation, the first beautification effect, the second beautification effect, the third beautification effect, the fourth beautification effect, the fifth beautification effect, and the sixth beautification effect are beautification processing effects of the video corresponding to different beautification modes, wherein the beautification modes may be classic mode, skin smoothing mode, skin color mode, whitening mode, and the like.
[0023] In a second aspect, an embodiment of the present application provides a method for setting up video recording, characterized in that it is applied to an electronic device including a front camera and a rear camera, and the method includes:
[0024] The electronic device displays a first video screen, a second video screen, a second control, and a third control, wherein the first video screen is a video screen captured in real time by the front camera, and the second video screen is a video screen captured in real time by the rear camera, wherein the first video screen has a first beauty effect, and the second video screen has a second beauty effect;
[0025] In response to an eleventh user operation on the second control, the electronic device stops displaying the second control and displays a fourth control;
[0026] In response to a twelfth user operation on the fourth control, the first video image has a third beautification effect;
[0027] In response to a thirteenth user operation on the third control, the electronic device stops displaying the third control and displays the second control and the fifth control;
[0028] In response to a fourteenth user operation on the fifth control, the second video screen has a fourth beautification effect.
[0029] In one possible embodiment, in response to a twelfth user operation on the fourth control, the electronic device adjusts the frame rate of the first video image; in response to a fourteenth user operation on the fifth control, the electronic device adjusts the frame rate of the second video image.
[0030] In a possible implementation, before the electronic device receives the eleventh user operation, the method further includes: in response to a fifteenth user operation, the electronic device stops displaying the first video image and the second control;
[0031] In response to a sixteenth user operation on the third control, the electronic device stops displaying the third control and displays the fifth control;
[0032] In response to a seventeenth user operation on the fifth control, the second video screen has a fifth beautification effect.
[0033] In a third aspect, an embodiment of the present application provides an electronic device comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the electronic device, enable the electronic device to perform any one of the methods described in the first or second aspect above.
[0034] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes any one of the methods described in the first or second aspect above.
[0035] By adopting the technical solution provided in the embodiment of the present application, in the multi-channel shooting mode, multi-channel video images can be beautified to improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] FIG1a is a schematic diagram of a mobile phone video recording interface provided in an embodiment of the present application;
[0037] FIG1b is a schematic diagram of a mobile phone video recording interface provided in an embodiment of the present application;
[0038] FIG1c is a schematic diagram of a mobile phone video recording interface provided in an embodiment of the present application;
[0039] FIG1d is a schematic diagram of a mobile phone multi-lens recording interface provided by an embodiment of the present application;
[0040] FIG1e is a schematic diagram of a mobile phone multi-lens recording interface provided by an embodiment of the present application;
[0041] FIG1f is a schematic diagram of a mobile phone multi-lens video recording interface provided by an embodiment of the present application;
[0042] FIG2a is a schematic diagram of a mobile phone multi-lens recording interface provided by an embodiment of the present application;
[0043] FIG2 b is a schematic diagram of a mobile phone multi-lens recording interface provided by an embodiment of the present application;
[0044] FIG3a is a schematic diagram of a front-rear dual-camera mode interface for a mobile phone multi-lens video recording according to an embodiment of the present application;
[0045] FIG3 b is a schematic diagram of a front-rear dual-camera mode interface for a mobile phone multi-lens video recording according to an embodiment of the present application;
[0046] FIG4a is a schematic diagram of a mobile phone multi-lens video recording picture-in-picture mode interface provided by an embodiment of the present application;
[0047] FIG4 b is a schematic diagram of a mobile phone multi-lens video recording picture-in-picture mode interface provided by an embodiment of the present application;
[0048] FIG5a is a schematic diagram of a front-facing single-camera mode interface for a mobile phone with multiple cameras and recording provided by an embodiment of the present application;
[0049] FIG5 b is a schematic diagram of a mobile phone multi-lens recording front-facing single-camera mode interface provided by an embodiment of the present application;
[0050] FIG6 a is a schematic diagram of a mobile phone multi-lens recording and rear-mounted single-camera mode interface provided by an embodiment of the present application;
[0051] FIG6 b is a schematic diagram of a mobile phone multi-lens recording and rear-mounted single-camera mode interface provided by an embodiment of the present application;
[0052] FIG7 a is a schematic diagram of a mobile phone multi-lens video recording rear-rear dual-camera mode interface provided by an embodiment of the present application;
[0053] FIG7 b is a schematic diagram of a mobile phone multi-lens video recording rear-rear dual-camera mode interface provided by an embodiment of the present application;
[0054] FIG8 a is a schematic diagram of a recording interface of a mobile phone rear camera provided in an embodiment of the present application;
[0055] FIG8 b is a schematic diagram of a recording interface of a mobile phone rear camera provided in an embodiment of the present application;
[0056] FIG8c is a schematic diagram of a video recording interface of a mobile phone rear camera provided in an embodiment of the present application;
[0057] FIG9 a is a schematic diagram of a recording interface of a front camera of a mobile phone provided in an embodiment of the present application;
[0058] FIG9 b is a schematic diagram of a recording interface of a front camera of a mobile phone provided in an embodiment of the present application;
[0059] FIG9c is a schematic diagram of a recording interface of a front camera of a mobile phone provided in an embodiment of the present application;
[0060] FIG10a is a schematic diagram of a front-rear dual-camera mode interface for a mobile phone multi-lens video recording according to an embodiment of the present application;
[0061] FIG10 b is a schematic diagram of a front-rear dual-camera mode interface for a mobile phone multi-lens video recording according to an embodiment of the present application;
[0062] FIG10c is a schematic diagram of a front-rear dual-camera mode interface for multi-lens video recording on a mobile phone provided by an embodiment of the present application;
[0063] FIG10 d is a schematic diagram of a front-rear dual-camera mode interface for a mobile phone multi-lens video recording according to an embodiment of the present application;
[0064] FIG10e is a schematic diagram of a front-rear dual-camera mode interface for a mobile phone multi-lens video recording according to an embodiment of the present application;
[0065] FIG10f is a schematic diagram of a front-rear dual-camera mode interface for multi-lens video recording on a mobile phone provided by an embodiment of the present application;
[0066] FIG11a is a schematic diagram of a mobile phone multi-lens recording mode switching interface provided by an embodiment of the present application;
[0067] FIG11 b is a schematic diagram of a mobile phone multi-lens recording mode switching interface provided by an embodiment of the present application;
[0068] FIG11c is a schematic diagram of a mobile phone multi-lens video recording picture-in-picture mode interface provided by an embodiment of the present application;
[0069] FIG11d is a schematic diagram of a mobile phone multi-lens video recording picture-in-picture mode interface provided by an embodiment of the present application;
[0070] FIG11e is a schematic diagram of a mobile phone multi-lens video recording picture-in-picture mode interface provided by an embodiment of the present application;
[0071] FIG12a is a schematic diagram of a mobile phone multi-lens recording mode switching interface provided by an embodiment of the present application;
[0072] FIG12b is a schematic diagram of a mobile phone multi-lens recording mode switching interface provided by an embodiment of the present application;
[0073] FIG12c is a schematic diagram of a front-facing single-camera mode interface for a mobile phone with multi-lens recording provided by an embodiment of the present application;
[0074] FIG12d is a schematic diagram of a front-facing single-camera mode interface for a mobile phone with multi-lens recording provided by an embodiment of the present application;
[0075] FIG12e is a schematic diagram of a front-facing single-camera mode interface for a mobile phone with multi-lens recording provided by an embodiment of the present application;
[0076] FIG13a is a schematic diagram of a mobile phone multi-lens recording mode switching interface provided by an embodiment of the present application;
[0077] FIG13b is a schematic diagram of a mobile phone multi-lens recording mode switching interface provided by an embodiment of the present application;
[0078] FIG13c is a schematic diagram of a mobile phone multi-lens recording and rear-mounted single-camera mode interface provided by an embodiment of the present application;
[0079] FIG13d is a schematic diagram of a mobile phone multi-lens recording and rear-mounted single-camera mode interface provided by an embodiment of the present application;
[0080] FIG13e is a schematic diagram of a mobile phone multi-lens recording and rear-mounted single-camera mode interface provided by an embodiment of the present application;
[0081] FIG13f is a schematic diagram of a mobile phone multi-lens recording and rear-mounted single-camera mode interface provided by an embodiment of the present application;
[0082] FIG13g is a schematic diagram of a mobile phone multi-lens recording mode switching interface provided by an embodiment of the present application;
[0083] FIG13h is a schematic diagram of a mobile phone multi-lens recording mode switching interface provided by an embodiment of the present application;
[0084] FIG13i is a schematic diagram of a mobile phone multi-lens recording front-facing single-camera mode interface provided by an embodiment of the present application;
[0085] FIG14a is a schematic diagram of a mobile phone multi-lens recording mode switching interface provided by an embodiment of the present application;
[0086] FIG14b is a schematic diagram of a mobile phone multi-lens recording mode switching interface provided by an embodiment of the present application;
[0087] FIG14c is a schematic diagram of a mobile phone multi-lens video recording rear-rear dual-camera mode interface provided by an embodiment of the present application;
[0088] FIG14d is a schematic diagram of a mobile phone multi-lens video recording rear-rear dual-camera mode interface provided by an embodiment of the present application;
[0089] FIG14e is a schematic diagram of a mobile phone multi-lens video recording rear-rear dual-camera mode interface provided by an embodiment of the present application;
[0090] FIG15a is a schematic diagram of another mobile phone multi-lens recording front-rear dual-camera mode interface provided by an embodiment of the present application;
[0091] FIG15 b is a schematic diagram of another mobile phone multi-lens recording front-rear dual-camera mode interface provided by an embodiment of the present application;
[0092] FIG15c is a schematic diagram of another mobile phone multi-lens recording front-rear dual-camera mode interface provided by an embodiment of the present application;
[0093] FIG15d is a schematic diagram of another mobile phone multi-lens video recording picture-in-picture mode interface provided by an embodiment of the present application;
[0094] FIG15e is a schematic diagram of another mobile phone multi-lens recording front-facing single-camera mode interface provided by an embodiment of the present application;
[0095] FIG15f is a schematic diagram of another mobile phone multi-lens recording and rear-mounted single-camera mode interface provided by an embodiment of the present application;
[0096] FIG15g is a schematic diagram of another mobile phone multi-lens recording rear-rear dual-camera mode interface provided by an embodiment of the present application;
[0097] FIG16a is a schematic diagram of another mobile phone multi-lens recording front-rear dual-camera mode interface provided by an embodiment of the present application;
[0098] FIG16 b is a schematic diagram of another mobile phone multi-lens recording front-rear dual-camera mode interface provided by an embodiment of the present application;
[0099] FIG16c is a schematic diagram of another mobile phone multi-lens recording front-rear dual-camera mode interface provided by an embodiment of the present application;
[0100] FIG16 d is a schematic diagram of another mobile phone multi-lens recording front-rear dual-camera mode interface provided by an embodiment of the present application;
[0101] FIG17 is a software structure block diagram of an electronic device provided in an embodiment of the present application;
[0102] FIG18 is a schematic diagram of the hardware structure of the mobile phone 100 involved in an embodiment of the present application. DETAILED DESCRIPTION
[0103] The terms "first", "second" and "third" in the specification, claims and drawings of this application are used to distinguish different objects rather than to limit a specific order.
[0104] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0105] To facilitate understanding of the present application, various recording modes involved in the recording setting method of the present application are first introduced below.
[0106] Figures 1a-1f illustrate schematic diagrams of a mobile phone video recording / multi-lens video recording interface according to an embodiment of the present application. For example, when a user selects the video recording function on the camera application running on mobile phone 100, mobile phone 100 may display camera interface 101 shown in Figure 1a or camera interface 102 shown in Figure 1b, wherein camera interface 101 displays a real-time image of the background captured by the rear camera, and camera interface 102 displays a real-time image of the foreground captured by the front camera. Camera interface 101 and camera interface 102 include a video recording mode switching control 11, and the mobile phone can receive a user trigger operation (such as a click operation) on the video recording mode switching control 11. In response to the user triggering operation on the video recording mode switching control 11, the mobile phone switches between camera interface 101 and camera interface 102. Camera interface 101 and camera interface 102 also include a beauty control 12, and the mobile phone can receive a user trigger operation (such as a click operation) on the beauty control 12. In response to the user's triggering operation on the beauty control 12, the mobile phone can display the camera interface 103 shown in Figure 1c (the example in Figure 1c is the camera interface after the user clicks the beauty control 12 in the camera interface 102), and the mobile phone calls out the configuration control 14 of the beauty function. An example of the configuration control of the beauty function is the skin beauty control. In response to the user's triggering operation on the configuration control 14 (such as a sliding operation or a clicking operation), the mobile phone can select the corresponding beauty level to implement the parameter configuration of the beauty function.
[0107] After the user clicks on the beauty control 12 in the camera interface 101 or the camera interface 102 and configures the beauty parameters, if the multi-lens recording function 13 is selected, the mobile phone 100 can display the camera interface 104 shown in Figure 1d. The camera interface 104 includes a real-time foreground image 104-1 captured by the front camera and a real-time background image 104-2 captured by the rear camera. The camera interface 104 includes a beauty control 15, wherein the beauty control 15 is in the on state, which is used to indicate that the beauty parameter value is not 0. An example of the on state is that the control is highlighted. For example, in the camera interface 104 shown in Figure 1d, the front beauty parameter value is 1 and the rear beauty parameter value is 2. At this time, the beauty control 15 is in the on state. In addition, in the camera interface 104, if the pre-beautification parameter value is 1 and the post-beautification parameter value is 0, or the pre-beautification parameter value is 0 and the post-beautification parameter value is 2, the beauty control 15 is also in the on state, that is, the beauty control 15 is in the on state, which can be used to indicate that the beauty parameter value is non-0.
[0108] To facilitate understanding of the embodiments of the present application, a user sets the beauty parameters of the front camera or the rear camera in one mode. When switching to a different mode, the beauty parameters of the front camera or the rear camera inherit the parameter values set previously. The figure shows that the front beautyLv represents the front beauty parameter value, and the rear beautyLv represents the rear beauty parameter value. In other words, after the user sets the camera beauty parameters each time, the phone will record and save the set beauty parameters. Before the next setting, regardless of which mode the user turns on in video recording or multi-lens recording, the phone will process the real-time captured image according to the saved beauty parameters. However, the front beautyLv and rear beautyLv may not be displayed in the camera interface of the actual product. The image in the camera interface of the actual product is the image processed according to the previously set beauty parameters. If beautyLv is 0, the phone does not perform beauty processing on the corresponding video screen. If beautyLv is not 0, the phone performs beauty processing on the corresponding video screen at the corresponding level. In some other embodiments, the beautification control 15 is in an on state, and can also be used to indicate that the mobile phone is performing beautification processing on the video image.
[0109] If the user clicks on the beauty control 15, the mobile phone 100 can display the camera interface 105 shown in Figure 1e. The beauty control 15 is expanded into the front beauty control 16, the rear beauty control 17, and the configuration control 18 of the front beauty function (hereinafter referred to as the front configuration control). Among them, the front beauty control 16 is in a selected state, used to indicate that the front beauty parameter adjustment state is currently in progress, and the rear beauty control 17 is in an unselected state. An example of the selected state is that the control is highlighted, and an example of the unselected state is that the control is dimmed. The user can configure the front beauty parameters by adjusting the front configuration control 18. The example in Figure 1e shows that after the user clicks on the beauty control 12 on the camera interface 102 and configures the front beauty parameter value to 1, the front beauty parameter value is displayed as 1 in the camera interface 105. That is, after the user configures the front beauty parameters, the mobile phone 100 can save the front beauty parameter values.
[0110] If the user clicks the rear-mounted beauty control 17, the mobile phone 100 may display the camera interface 106 shown in FIG1f. The camera interface 106 includes the front-mounted beauty control 16, the rear-mounted beauty control 17, and a configuration control 19 for the rear-mounted beauty function (hereinafter referred to as the rear-mounted configuration control). The front-mounted beauty control 16 is unselected, and the rear-mounted beauty control 17 is selected. The user can configure the rear-mounted beauty parameters by adjusting the rear-mounted configuration control 19. FIG1f shows an example in which a user clicks the beauty control 12 on the camera interface 101 and configures the rear-mounted beauty parameter value to 2. The camera interface 105 then displays the rear-mounted beauty parameter value as 2, indicating that after the user configures the rear-mounted beauty parameter, the mobile phone 100 can save the rear-mounted beauty parameter value.
[0111] Figures 2a and 2b illustrate schematic diagrams of a mobile phone multi-camera recording interface according to an embodiment of the present application. For example, when a user selects the multi-camera recording function in the camera app running on the mobile phone 100, the mobile phone 100 may display the camera interface 201 shown in Figure 2a. The camera interface 201 includes a multi-camera recording mode switch control 21. In response to the user clicking the switch control 21, the mobile phone 100 can switch between the multi-camera recording modes. The multi-camera recording modes include: front-rear dual-camera mode, rear-rear dual-camera mode, picture-in-picture mode, rear single-camera mode, and front single-camera mode. As shown in Figure 2a, if the user clicks the switch control 21, the mobile phone 100 may display the camera interface 202 shown in Figure 2b. The camera interface 202 includes multi-camera recording mode controls 22, 23, 24, 25, and 26. The mode controls 22, 23, 24, 25, and 26 indicate the multi-camera recording front-rear dual-camera mode, rear-rear dual-camera mode, picture-in-picture mode, rear single-camera mode, and front single-camera mode, respectively. Users can click on different mode controls to select different multi-camera recording modes. Among them, the default mode of multi-camera recording is front-rear dual-camera mode.
[0112] In some other embodiments, the multi-camera recording mode can be switched in other ways. For example, in response to a user gesture operation in the camera interface 201 (e.g., swiping up at a preset position in the camera interface 201), the mobile phone 100 can also display the camera interface 202 shown in FIG. 2 b.
[0113] It will be understood that in some embodiments, the front-rear dual-camera mode, the rear-rear dual-camera mode, and the picture-in-picture mode may be referred to as multi-camera modes, and the rear-mounted single-camera mode and the front-mounted single-camera mode may be referred to as single-camera modes. Specifically, in the front-rear dual-camera mode, the mobile phone 100 uses one front camera and one rear camera for video capture. In the rear-rear dual-camera mode, the mobile phone uses two rear cameras for video capture. In the rear-mounted single-camera mode, the mobile phone uses one rear camera for video capture. In the front-mounted single-camera mode, the mobile phone uses one front camera for video capture. In some embodiments, the picture-in-picture mode may include a front picture-in-picture mode, a rear picture-in-picture mode, and a front-rear picture-in-picture mode. Taking the front-rear picture-in-picture mode as an example, the mobile phone 100 may use one front camera and one rear camera for video capture, and place the image captured by the front camera or the rear camera within the image captured by the rear camera or the front camera. The picture-in-picture mode involved in this application is specifically the front-rear picture-in-picture mode, which places the image captured by the front camera within the image captured by the rear camera.
[0114] Figures 3a and 3b show the camera interfaces 301 and 302 in the dual-camera mode for multi-lens recording. Camera interface 301 includes a beauty control 31, which is disabled. If a user taps beauty control 31, it expands into a front beauty control 32, a rear beauty control 33, and a front configuration control 34. Front beauty control 32 is selected, rear beauty control 33 is unselected, and the front beauty parameter value is 0. Users can configure the front beauty parameters by adjusting front configuration control 34.
[0115] Figures 4a and 4b show camera interfaces 401 and 402 in multi-camera video picture-in-picture mode. Camera interface 401 includes a beauty control 41, which is turned off. If a user clicks on beauty control 41, it expands into a front beauty control 42, a rear beauty control 43, and a front configuration control 44. Front beauty control 42 is selected, rear beauty control 43 is unselected, and the front beauty parameter value is 0. Users can configure the front beauty parameters by adjusting front configuration control 44.
[0116] Figures 5a and 5b show the camera interfaces 501 and 502 in the multi-lens recording front-facing single-camera mode. Camera interface 501 includes a beauty control 51, which is turned off. If the user clicks on beauty control 51, it expands into a front beauty control 52, a rear beauty control 53, and a front configuration control 54. The front beauty control 52 is selected, the rear beauty control 53 is unselected, and the front beauty parameter value is 0. The user can configure the front beauty parameters by adjusting the front configuration control 54.
[0117] It is understandable that in the multi-lens recording front-rear dual-camera mode, picture-in-picture mode and front single-camera mode, if the user clicks on the beauty control, the phone will enter the front beauty parameter adjustment state and display the front configuration control for the user to configure the front beauty function. It should be noted that in the front single-camera mode, although the user can also configure the rear beauty parameters, there is no video picture of the rear camera in the front single-camera mode. At this time, the phone will only store the configured rear beauty parameter value and will not execute the rear beauty processing flow. For example, if the user sets the front beauty parameter value to 2 and the rear beauty parameter value to 5 in the front single-camera mode, the phone can beautify the video picture of the front camera according to the beauty parameter value 2. Afterwards, if the phone switches to the rear single-camera mode or the front-rear dual-camera mode, picture-in-picture mode, the phone can beautify the video picture of the rear camera according to the beauty parameter value 5.
[0118] Figures 6a and 6b show the camera interfaces 601 and 602 in multi-lens recording and rear-mounted single-camera mode. Camera interface 601 includes a beauty control 61, which is disabled. If a user taps beauty control 61, it expands into a front beauty control 62, a rear beauty control 63, and a rear configuration control 64. Front beauty control 62 is unselected, rear beauty control 63 is selected, and the rear beauty parameter value is 0. Users can configure the rear beauty parameters by adjusting rear configuration control 64.
[0119] Figures 7a and 7b show the camera interfaces 701 and 702 in the multi-lens recording rear-rear dual-camera mode. Camera interface 701 includes a beauty control 71, which is turned off. If the user clicks on beauty control 71, it expands into a front beauty control 72, a rear beauty control 73, and a rear configuration control 74. Front beauty control 72 is unselected, rear beauty control 73 is selected, and the rear beauty parameter value is 0. The user can configure the rear beauty parameters by adjusting the rear configuration control 74.
[0120] It is understandable that in the multi-lens recording rear single camera mode or rear-rear dual camera mode, if the user clicks on the beauty control, the phone will enter the rear beauty parameter adjustment state and display the rear configuration control for the user to configure the rear beauty function. It should be noted that in the rear single camera mode or rear-rear dual camera mode, although the user can also configure the front camera beauty parameters, there is no front camera video in the rear single camera mode or rear-rear dual camera mode. At this time, the phone will only store the configured front camera beauty parameter value and will not execute the front camera beauty processing process. For example, if the user sets the front camera beauty parameter value to 2 and the rear camera beauty parameter value to 5 in the rear single camera mode, the phone can beautify the rear camera video according to the beauty parameter value 5. Afterwards, if the phone switches to the front camera single camera mode or the front-rear dual camera mode or the picture-in-picture mode, the phone can beautify the front camera video according to the beauty parameter value 2.
[0121] In addition, the rear-rear dual-camera mode includes video images from two rear cameras. After configuring the rear beauty parameters, the phone can beautify the video images from the two rear cameras according to the rear beauty parameters.
[0122] The following will explain the recording setting method provided by the embodiment of the present application respectively for the scenes of recording and multi-lens recording.
[0123] Scene 1: The scene where the rear camera records the video.
[0124] Figures 8a-8c show schematic diagrams of a recording interface for a rear camera of a mobile phone according to an embodiment of the present application. For example, when a user selects the recording function on the camera application running on the mobile phone 100, the mobile phone 100 may display the camera interface 801 shown in Figure 8a, wherein the camera interface 801 displays a real-time image of the background captured by the rear camera. The camera interface 801 includes a beauty control 81. If the user clicks the beauty control 81, the mobile phone 100 may display the camera interface 802 shown in Figure 8b. The beauty control 81 expands to a configuration control 82. The user can configure the beauty parameters by adjusting the configuration control. If the user configures the beauty parameter value to 1, the mobile phone 100 may display the camera interface 803 shown in Figure 8c.
[0125] Scene 2: The scene where the front camera records the video.
[0126] Figures 9a-9c show schematic diagrams of a mobile phone front camera recording interface according to an embodiment of the present application. For example, when a user clicks the recording mode switch control 83 in the camera interface 803, the mobile phone 100 can display the camera interface 901 shown in Figure 9a, wherein the camera interface 901 displays the real-time foreground image captured by the front camera. The camera interface 901 includes a beauty control 91. If the user clicks the beauty control 91, the mobile phone 100 can display the camera interface 902 shown in Figure 9b. The beauty control 91 is expanded into a configuration control 92. The user can configure the beauty parameters by adjusting the configuration control. If the user configures the beauty parameter value to 2, the mobile phone 100 can display the camera interface 903 shown in Figure 9c.
[0127] Scene 3: Multi-lens recording in front-rear dual-camera mode.
[0128] Figures 10a to 10f show schematic diagrams of a front-rear dual-camera mode interface for multi-lens recording on a mobile phone according to an embodiment of the present application. For example, when a user selects the multi-lens recording function 93 in the camera interface 903, the mobile phone 100 can display the camera interface 1001 shown in Figure 10a. The camera interface 1001 includes a beauty control 10-1, wherein the beauty control 10-1 is in the on state. Because the user previously configured the rear beauty parameter value to be 1 in the camera interface 803 and the front beauty parameter value to be 2 in the camera interface 903, at this time, the camera interface 903 inherits the previously configured beauty parameters, and the mobile phone performs beauty processing on the video image of the front camera according to the beauty parameter value 2, and performs beauty processing on the video image of the rear camera according to the beauty parameter value 1. If the user clicks on the beauty control 10-1, the mobile phone 100 may display the camera interface 1002 shown in Figure 10b. The beauty control 10-1 is expanded into the front beauty control 10-2, the rear beauty control 10-3, and the front configuration control 10-4. Among them, the front beauty control 10-2 is selected, the rear beauty control 10-3 is unselected, and the front beauty parameter value is 2. The user can configure the front beauty parameter by adjusting the front configuration control 10-4. If the user configures the front beauty parameter value to 4, the mobile phone 100 may display the camera interface 1003 shown in Figure 10c. Further, if the user clicks on the rear beauty control 10-3, the mobile phone 100 may display the camera interface 1004 shown in Figure 10d. The camera interface 1004 shown in FIG10d includes a front beautification control 10-2, a rear beautification control 10-3, and a rear configuration control 10-5. The front beautification control 10-2 is unselected, the rear beautification control 10-3 is selected, and the rear beautification parameter value is 1. The user can configure the rear beautification parameters by adjusting the rear configuration control 10-5. If the user configures the rear beautification parameter value to 3, the mobile phone 100 may display the camera interface 1005 shown in FIG10e.
[0129] Furthermore, if the user clicks a blank area on camera interface 1005 or waits for a preset time, mobile phone 100 may display camera interface 1006 shown in FIG10f , where the preset time can be set according to actual needs. Camera interface 1006 includes switching control 10-6. At this time, the mobile phone performs beauty processing on the video image of the front camera according to the beauty parameter value 4, and on the video image of the rear camera according to the beauty parameter value 3.
[0130] Scene 4: Multi-camera video recording in picture-in-picture mode.
[0131] Figures 11a-11b show schematic diagrams of a mobile phone multi-lens recording mode switching interface according to an embodiment of the present application. For example, when a user clicks the switch control 10-6 on the camera interface 1006, the mobile phone 100 can display the camera interface 1101 shown in Figure 11a. The camera interface 1101 includes mode controls 11-1, 11-2, 11-3, 11-4, and 11-5. The mode control 11-1 is in a selected state, indicating that the multi-lens recording front-rear dual-camera mode is currently in progress. An example of a selected state is a bold or highlighted state at the edge of the control. If the user clicks the mode control 11-3, the mobile phone 100 can display the camera interface 1102 shown in Figure 11b. In the camera interface 1102, the mode control 11-3 is in a selected state, indicating that the multi-lens recording picture-in-picture mode is currently in progress. Since the user previously configured the front beauty parameter value to 4 in the camera interface 1003 and the rear beauty parameter value to 3 in the camera interface 1005, at this time, the camera interface 1102 inherits the previously configured beauty parameters, and the mobile phone beautifies the video image of the front camera according to the beauty parameter value 4, and beautifies the video image of the rear camera according to the beauty parameter value 3.
[0132] In some other embodiments, the camera interface 1101 may be displayed in other ways. For example, in the camera interface 1005, in response to a user gesture operation (such as sliding up at a preset position of the camera interface 1005), the mobile phone 100 may also display the camera interface 1101 shown in FIG. 11a.
[0133] Figures 11c-11e illustrate a schematic diagram of a mobile phone multi-camera video recording picture-in-picture mode interface according to an embodiment of the present application. For example, after a user taps a blank area on camera interface 1102 or waits for a preset time, mobile phone 100 may display camera interface 1103 shown in Figure 11c , where the preset time can be set according to actual needs. Camera interface 1103 includes beauty control 11-6, which is turned on.
[0134] If the user clicks on the beauty control 11-6, the mobile phone 100 may display the camera interface 1104 shown in FIG11d. The beauty control 11-6 is expanded into the front beauty control 11-7, the rear beauty control 11-8, and the front configuration control 11-9. Among them, the front beauty control 11-7 is selected, the rear beauty control 11-8 is unselected, and the front beauty parameter value is 4. The user can configure the front beauty parameter by adjusting the front configuration control 11-9. If the user clicks on the rear beauty control 11-8, the mobile phone 100 may display the camera interface 1105 shown in FIG11e. Camera interface 1105 includes front-facing beauty control 11-7, rear-facing beauty control 11-8, and rear-facing configuration control 11-10. Front-facing beauty control 11-7 is unselected, rear-facing beauty control 11-8 is selected, and the rear-facing beauty parameter value is 3. The user can configure the rear-facing beauty parameter by adjusting rear-facing configuration control 11-10. In this case, the phone performs beauty processing on the front-facing camera video according to the beauty parameter value 4, and on the rear-facing camera video according to the beauty parameter value 3.
[0135] Scene 5: Multi-lens recording in front-facing single-camera mode.
[0136] Figures 12a and 12b illustrate schematic diagrams of a mobile phone multi-lens recording mode switching interface according to an embodiment of the present application. For example, when a user clicks the switch control 10-6 on the camera interface 1006, the mobile phone 100 may display the camera interface 1201 shown in Figure 12a. The camera interface 1201 includes mode controls 12-1, 12-2, 12-3, 12-4, and 12-5. Mode control 12-1 is selected, indicating that the multi-lens recording front-rear dual-camera mode is currently in operation. If the user clicks mode control 12-5, the mobile phone 100 may display the camera interface 1202 shown in Figure 12b. In the camera interface 1202, mode control 12-5 is selected, indicating that the multi-lens recording front-single-camera mode is currently in operation.
[0137] Figures 12c-12e show schematic diagrams of a front-facing single-camera mode interface according to an embodiment of the present application. For example, after a user clicks on a blank area of the camera interface 1202 or waits for a preset time, the mobile phone 100 can display the camera interface 1203 shown in Figure 12c, where the preset time can be set according to actual needs. The camera interface 1203 includes a beauty control 12-6, where the beauty control 12-6 is turned on. If the user clicks on the beauty control 12-6, the mobile phone 100 can display the camera interface 1204 shown in Figure 12d, where the beauty control 12-6 is expanded into a front beauty control 12-7, a rear beauty control 12-8, and a front configuration control 12-9, where the front beauty control 12-7 is selected, the rear beauty control 12-8 is unselected, and the front beauty parameter value is 4. The user can configure the front beauty parameters by adjusting the front configuration control 12-9. If the user clicks the rear-mounted beauty control 12-8, the phone 100 may display the camera interface 1205 shown in Figure 12e. Camera interface 1205 includes the front-mounted beauty control 12-7, the rear-mounted beauty control 12-8, and the rear-mounted configuration control 12-10. The front-mounted beauty control 12-7 is unselected, the rear-mounted beauty control 12-8 is selected, and the rear-mounted beauty parameter value is 3. The user can configure the rear-mounted beauty parameters by adjusting the rear-mounted beauty control 12-10. At this point, the phone can beautify the video image from the front camera according to the beauty parameter value 4.
[0138] Scene 6: Multi-lens recording with single rear camera mode.
[0139] Figures 13a and 13b illustrate schematic diagrams of a mobile phone multi-lens recording mode switching interface according to an embodiment of the present application. For example, when a user clicks the switch control 10-6 on the camera interface 1006, the mobile phone 100 may display the camera interface 1301 shown in Figure 13a. The camera interface 1301 includes multi-lens recording mode controls 13-1, 13-2, 13-3, 13-4, and 13-5. Mode control 13-1 is selected, indicating that the multi-lens recording front-rear dual-camera mode is currently in operation. If the user clicks mode control 13-4, the mobile phone 100 may display the camera interface 1302 shown in Figure 13b. In the camera interface 1302, mode control 13-4 is selected, indicating that the multi-lens recording rear-single-camera mode is currently in operation.
[0140] Figures 13c-13f show a schematic diagram of a rear-mounted single-camera mode interface according to an embodiment of the present application. For example, after a user clicks on a blank position on the camera interface 1302 or waits for a preset time, the mobile phone 100 can display the camera interface 1303 shown in Figure 13c, where the preset time can be set according to actual needs. The camera interface 1303 includes a beauty control 13-6, where the beauty control 13-6 is turned on. If the user clicks on the beauty control 13-6, the mobile phone 100 can display the camera interface 1304 shown in Figure 13d, where the beauty control 13-6 is expanded into a front beauty control 13-7, a rear beauty control 13-8, and a rear configuration control 13-9, where the front beauty control 13-7 is unselected, the rear beauty control 13-8 is selected, and the rear beauty parameter value is 3. The user can configure the rear beauty parameters by adjusting the rear configuration control 13-9. If the user clicks the front-facing beauty control 13-7, the mobile phone 100 may display the camera interface 1305 shown in FIG13e. The camera interface 1305 includes the front-facing beauty control 13-7, the rear-facing beauty control 13-8, and the front-facing configuration control 13-10. The front-facing beauty control 13-7 is selected, the rear-facing beauty control 13-8 is unselected, and the front-facing beauty parameter value is 4. The user can configure the front-facing beauty parameter by adjusting the front-facing configuration control 13-10. At this point, the mobile phone can beautify the video image of the rear camera according to the beauty parameter value 3. Furthermore, if the user configures the front-facing beauty parameter value to 6, the mobile phone 100 may display the camera interface 1306 shown in FIG13f.
[0141] Figures 13g-13h illustrate a schematic diagram of a mobile phone multi-lens recording mode switching interface according to an embodiment of the present application. For example, if a user swipes up from a preset position on the camera interface 1306, the mobile phone 100 may display the camera interface 1307 shown in Figure 13g. The camera interface 1307 includes multi-lens recording mode controls 13-4 and 13-5. The mode control 13-4 is in the selected state, indicating that the camera is currently in the multi-lens recording rear-facing single-camera mode. If the user clicks the mode control 13-5, the mobile phone 100 may display the camera interface 1308 shown in Figure 13h. In the camera interface 1308, the mode control 13-5 is in the selected state, indicating that the camera is currently in the multi-lens recording front-facing single-camera mode.
[0142] Figure 13i shows a schematic diagram of a front-facing single-camera mode interface according to an embodiment of the present application. For example, after a user taps a blank area on camera interface 1308 or waits for a preset time, mobile phone 100 may display camera interface 1309 shown in Figure 13i. The preset time can be set according to actual needs. At this time, the mobile phone can beautify the video image of the front camera according to the beauty parameter value 6.
[0143] Scene 7, multi-lens recording - rear dual-camera mode scene.
[0144] Figures 14a and 14b illustrate schematic diagrams of a mobile phone multi-lens recording mode switching interface according to an embodiment of the present application. For example, when a user clicks the switch control 10-6 on the camera interface 1006, the mobile phone 100 may display the camera interface 1401 shown in Figure 14a. The camera interface 1401 includes multi-lens recording mode controls 14-1, 14-2, 14-3, 14-4, and 14-5. Mode control 14-1 is selected, indicating that the multi-lens recording front-rear dual-camera mode is currently in operation. If the user clicks mode control 14-2, the mobile phone 100 may display the camera interface 1402 shown in Figure 14b. In the camera interface 1402, mode control 14-2 is selected, indicating that the multi-lens recording rear-rear dual-camera mode is currently in operation.
[0145] Figures 14c-14e illustrate a schematic diagram of a rear-rear dual-camera mode interface according to an embodiment of the present application. For example, after a user clicks a blank area on the camera interface 1402 or waits for a preset time, the mobile phone 100 may display the camera interface 1403 shown in Figure 14c, where the preset time can be set according to actual needs. The camera interface 1403 includes a beauty control 14-6, where the beauty control 14-6 is turned on. If the user clicks the beauty control 14-6, the mobile phone 100 may display the camera interface 1404 shown in Figure 14d, where the beauty control 14-6 expands into a front beauty control 14-7, a rear beauty control 14-8, and a rear configuration control 14-9. The front beauty control 14-7 is unselected, the rear beauty control 14-8 is selected, and the rear beauty parameter value is 3. The user can configure the rear beauty parameters by adjusting the rear configuration control 14-9. If the user clicks the front-facing beauty control 14-7, the phone 100 may display the camera interface 1405 shown in FIG14e. Camera interface 1405 includes the front-facing beauty control 14-7, the rear-facing beauty control 14-8, and the front-facing configuration control 14-10. The front-facing beauty control 14-7 is selected, the rear-facing beauty control 14-8 is unselected, and the front-facing beauty parameter value is 4. The user can configure the front-facing beauty parameter by adjusting the front-facing configuration control 14-10. At this point, the phone can beautify both rear-facing camera video feeds according to the beauty parameter value 3.
[0146] Figures 15a-15c show schematic diagrams of another interface for a front-rear dual-camera mode of multi-lens recording on a mobile phone according to an embodiment of the present application. For example, when a user selects the multi-lens recording function 22 in the camera interface 202, the mobile phone 100 may display the camera interface 1501 shown in Figure 15a. The camera interface 1501 includes a front beauty control 15-1 and a rear beauty control 15-2, wherein the front beauty control 15-1 is in the off state and the rear beauty control 15-2 is in the off state. If the user clicks on the front beauty control 15-1, the mobile phone 100 may display the camera interface 1502 shown in Figure 15b, where the front beauty control 15-1 is expanded to the front configuration control 15-3. The user can configure the front beauty parameters by adjusting the front configuration control 15-3. Furthermore, if the user clicks on the rear beauty control 15-2, the mobile phone 100 can display the camera interface 1503 shown in Figure 15c, and the rear beauty control 15-2 is expanded to the rear configuration control 15-4. The user can configure the rear beauty parameters by adjusting the rear configuration control 15-4.
[0147] Figure 15d shows a schematic diagram of another mobile phone multi-lens video picture-in-picture mode interface according to an embodiment of the present application. For example, when the user selects the multi-lens video function 24 in the camera interface 202, the mobile phone 100 can display the camera interface 1504 shown in Figure 15d. The camera interface 1504 includes a front beauty control 15-5 and a rear beauty control 15-6, wherein the front beauty control 15-5 is in the off state and the rear beauty control 15-6 is in the off state. If the user clicks on the front beauty control 15-5, the front configuration control can be called up, and the user can configure the front beauty parameters by adjusting the front configuration control. If the user clicks on the rear beauty control 15-6, the rear configuration control can be called up, and the user can configure the rear beauty parameters by adjusting the rear configuration control.
[0148] Figure 15e shows another schematic diagram of a mobile phone multi-lens recording front-facing single-camera mode interface according to an embodiment of the present application. For example, when a user selects the multi-lens recording function 26 in the camera interface 202, the mobile phone 100 may display the camera interface 1505 shown in Figure 15e. The camera interface 1505 includes a front-facing beauty control 15-7, which is turned off. If the user clicks the front-facing beauty control 15-7, the front-facing configuration controls can be called up, and the user can configure the front-facing beauty parameters by adjusting the front-facing configuration controls.
[0149] Figure 15f shows another schematic diagram of a mobile phone multi-lens recording and rear-mounted single-camera mode interface according to an embodiment of the present application. For example, when a user selects the multi-lens recording function 25 in the camera interface 202, the mobile phone 100 may display the camera interface 1506 shown in Figure 15f. The camera interface 1506 includes a rear-mounted beauty control 15-8, wherein the rear-mounted beauty control 15-8 is in the off state. If the user clicks the rear-mounted beauty control 15-8, the rear-mounted configuration control can be called up, and the user can configure the rear-mounted beauty parameters by adjusting the rear-mounted configuration control.
[0150] Figure 15g shows another schematic diagram of a mobile phone multi-lens recording rear-rear dual-camera mode interface according to an embodiment of the present application. For example, when a user selects the multi-lens recording function 23 in the camera interface 202, the mobile phone 100 may display the camera interface 1507 shown in Figure 15g. The camera interface 1507 includes a rear-mounted beauty control 15-9, wherein the rear-mounted beauty control 15-9 is in the off state. If the user clicks the rear-mounted beauty control 15-9, the rear-mounted configuration control can be called up, and the user can configure the rear-mounted beauty parameters by adjusting the rear-mounted configuration control.
[0151] According to an embodiment of the present application, after the user configures the beauty parameters, whether the mobile phone 100 switches between the video recording mode and the multi-lens recording mode, or switches between different modes of multi-lens recording, the switched mode will inherit the beauty parameters configured in the previous mode. Figures 16a-16d show another schematic diagram of the front-rear dual-camera mode interface of a mobile phone multi-lens recording according to an embodiment of the present application. For example, when the user selects the multi-lens recording function 93 in the camera interface 903, the mobile phone 100 can display the camera interface 1601 shown in Figure 16a. The camera interface 1601 includes a beauty control 16-1, wherein the beauty control 16-1 is in the off state. If the user taps on the beauty control 16-1, the phone 100 may display the camera interface 1602 shown in FIG16b. The beauty control 16-1 expands into the beauty switch control 16-2, the front beauty control 16-3, and the rear beauty control 16-4. The beauty switch control 16-2 is off, the front beauty control 16-3 is unselected, and the rear beauty control 16-4 is unselected. The beauty switch control 16-2 is used to turn the beauty function on and off. If the user taps on the beauty switch control 16-2, the phone 100 may display the camera interface 1603 shown in FIG16c. The camera interface 1603 includes a beauty switch control 16-2, a front beauty control 16-3, a rear beauty control 16-4, and a front configuration control 16-5. The beauty switch control 16-2 is on, the front beauty control 16-3 is selected, the rear beauty control 16-4 is unselected, and the front beauty parameter value is 2. The user can configure the front beauty parameter by adjusting the front configuration control 16-5. Furthermore, if the user clicks on a blank area of the camera interface 1603 or waits for a preset time, the mobile phone 100 can display the camera interface 1604 shown in FIG16d, where the preset time can be set according to actual needs. The camera interface 1604 includes a beauty control 16-1, where the beauty control 16-1 is on. Thereafter, if the user clicks on the beauty control 16-1, the mobile phone can display the camera screen 1603 shown in FIG16d.
[0152] Figure 17 shows a software structure diagram of an electronic device according to an embodiment of the present application. The software system of the electronic device can adopt a layered architecture. This embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the mobile phone 100.
[0153] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: from top to bottom: the application layer (referred to as the application layer), the application framework layer (referred to as the framework layer), the hardware abstraction layer (HAL), and the hardware layer.
[0154] The application layer (Application, App) can include a series of application packages. For example, this application package may include a camera application. The application layer can be further divided into the display interface (UI) and application logic.
[0155] The display interface of the camera application includes shooting functions and shooting plug-ins. The shooting functions include front-facing video mode, rear-facing video mode, multi-lens video front-rear dual-camera mode, multi-lens video picture-in-picture mode, multi-lens video front-single-camera mode, multi-lens video rear-single-camera mode, multi-lens video rear-rear dual-camera mode, etc. The shooting plug-ins include beauty plug-in, dual-recording beauty plug-in, flash plug-in, etc.
[0156] The application logic of the camera application includes camera management, which includes the device management module, session management module, and surface management module.
[0157] The Framework layer (FWK) provides application programming interfaces (APIs) and programming frameworks for applications in the application layer, including some predefined functions. The framework layer includes the Camera2API, which is a set of interfaces launched by Android to access camera devices. It uses a pipeline design to allow data to flow from the camera to the Surface. Camera2API includes camera management (CameraManager), camera devices (CameraDevice), session control (Session), and output interface (Output). CameraManager is the management class for camera devices. Through this class object, you can query the device's camera device information and obtain a CameraDevice object. CameraDevice provides a series of fixed parameters related to the camera device, such as basic settings and output format.
[0158] The Hardware Abstraction Layer (HAL) is an interface layer between the operating system kernel and the hardware circuitry. Its purpose is to abstract the hardware. It hides the platform-specific hardware interface details and provides the operating system with a virtual hardware platform, making it hardware-independent and portable across multiple platforms. In Figure 17, the HAL includes the Camera Hardware Abstraction Layer (Camera HAL), which deploys CamX and CHI. CamX represents a collection of code implementations for common functional interfaces, while CHI represents a collection of code implementations for customizable requirements.
[0159] The hardware layer (HW) is the hardware at the lowest level of the operating system. In Figure 17, HW includes CameraDevice 1, CameraDevice 2, and CameraDevice 3. CameraDevice 1, CameraDevice 2, and CameraDevice 3 correspond to multiple cameras on an electronic device.
[0160] Through the software architecture shown in Figure 17, users can select the camera application through the application layer's display interface, and then select the multi-camera recording function and the dual-recording beauty plug-in. Taking the user selecting the multi-camera recording front-rear dual-camera mode as an example, after selecting the dual-recording beauty plug-in, the user can configure the front-camera beauty parameter beautyLv1 and the rear-camera beauty parameter beautyLv2. The session management module of the application layer creates session1 and session2. BeautyLv1 and beautyLv2 are respectively sent down to CamX and CHI of the hardware abstraction layer through session1 and session2 via the framework layer.
[0161] CamX's faceAIgo algorithm module applies beauty processing to each frame of the corresponding video according to beautyLv1 and beautyLv2. Simultaneously, CHI's usecase1 and usecase2 determine the currently supported frame rates based on beautyLv1 and beautyLv2, respectively, and send these real-time frame rates to CamX's sensornode1 and sensornode2. Sensornode1 and sensornode2 then perform exposure based on these real-time frame rates. Accordingly, the frame rates of the videos corresponding to beautyLv1 and beautyLv2 are dynamically adjusted in real time.
[0162] The above embodiment illustrates how a mobile phone performs beauty processing on multiple videos (the front camera and the rear camera) in multi-camera recording mode. A similar process is also used for beauty processing in multi-camera picture-in-picture mode and rear-rear dual-camera mode.
[0163] In multi-camera recording modes, only the front-facing camera beauty parameter (beautyLv1) or the rear-facing camera beauty parameter (beautyLv2) takes effect. Therefore, the application layer's session management module creates a session and delivers beautyLv1 or beautyLv2. Consequently, in the hardware abstraction layer, CamX only has one sensornode, and CHI only has one usecase involving video beauty processing.
[0164] Compared with the existing technology, this application dynamically adjusts the frame rate of multiple videos in the multi-channel video beautification scenario, thereby avoiding problems such as system freeze, frame loss or device overheating caused by high system load during multi-channel video beautification processing, and making the system operation more stable.
[0165] A hardware structure diagram of the mobile phone 100 for implementing the above method is introduced below in conjunction with FIG18 .
[0166] As shown in FIG18 , the mobile phone 100 may include a processor 1810, an external memory interface 1820, an internal memory 1821, a universal serial bus (USB) interface 1830, a charging management module 1840, a power management module 1841, a battery 1842, antenna 1, antenna 2, a mobile communication module 1850, a wireless communication module 1860, an audio module 1870, a speaker 1870A, a receiver 1870B, a microphone 1870C, an earphone interface 1870D, a sensor module 1880, a button 1890, a motor 1891, an indicator 1892, a camera 1893, a display screen 1894, etc. The sensor module 1880 may include a pressure sensor 1880A, a gyroscope sensor 1880B, a distance sensor 1880C, a proximity light sensor 1880D, a fingerprint sensor 1880E, a temperature sensor 1880F, a touch sensor 1880G, etc.
[0167] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may include more or fewer components than shown, or may combine or separate certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0168] The processor 1810 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1810 is a cache memory. This memory can store instructions or data that the processor 1810 has just used or is reusing. If the processor 1810 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 1810, and thus improves the efficiency of the system. In some embodiments of the present application, the processor 1810 can be used to implement beauty processing of the multi-channel video images of the mobile phone.
[0169] In some embodiments, the processor 1810 may include one or more interfaces. The external memory interface 1820 may be used to connect to an external memory, such as a Micro SD card, to expand the storage capacity of the mobile phone 100. The external memory communicates with the processor 1810 via the external memory interface 1820 to implement data storage. For example, the external memory 1820 may store a shot before the user clicks the photo or record button, or store a video after the user clicks the photo or record button and stops recording.
[0170] The internal memory 1821 can be used to store computer-executable program code, which includes instructions. The internal memory 1821 can include a program storage area and a data storage area. The program storage area can store the program code corresponding to the video recording setting method of the present application, so that when the program code is executed, the mobile phone 100 can execute the video recording setting method of the present application, and the data storage area can store the captured images involved in the video recording setting method of the present application. In some embodiments, the data storage area can be divided into several logical partitions to store the above-mentioned image or video data involved in the video recording setting method of the present application.
[0171] The wireless communication function of the mobile phone 100 can be implemented through antenna 1, antenna 2, mobile communication module 1850, wireless communication module 1860, modem processor and baseband processor.
[0172] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 1850 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied on the mobile phone 100. The wireless communication module 1860 can provide solutions for wireless communications including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc. applied on the mobile phone 100.
[0173] The touch sensor 1880G can be set on the display screen 1894. The touch sensor 1880G and the display screen 1894 form a touch screen, also known as a "touch screen." The touch sensor 1880G is used to detect touch operations acting on or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. In some embodiments, a visual output related to the touch operation can be provided through the display screen 1894. In other embodiments, the touch sensor 1880G can also be set on the surface of the mobile phone 100, at a different location from the display screen 1894. This application is not limited to this.
[0174] An embodiment of the present application also provides an electronic device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the computer program.
[0175] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various method embodiments can be implemented.
[0176] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0177] The present application implements all or part of the processes in the above-mentioned method embodiments by instructing the relevant hardware through a computer program. The computer program may be stored in a computer-readable storage medium. When executed by a processor, the computer program may implement the steps of each of the above-mentioned method embodiments. The computer program includes computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include at least: any entity or device capable of carrying the computer program code to a camera / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunications signal, and a software distribution medium. Examples include a USB flash drive, a mobile hard drive, a magnetic disk, or an optical disk. In some jurisdictions, based on legislation and patent practice, computer-readable media cannot be electric carrier signals or telecommunications signals.
[0178] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0179] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0180] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0181] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A video recording setting method, characterized in that: Applied to an electronic device including a front camera and a rear camera, the method includes: The electronic device displays a first video screen, a second video screen, and a first control, wherein the first video screen is a video screen captured in real time by the front camera, and the second video screen is a video screen captured in real time by the rear camera, wherein the first video screen has a first beauty effect, and the second video screen has a second beauty effect; In response to a first user operation on the first control, the electronic device displays a second control, a third control, and a fourth control, wherein the second control is displayed in a selected state and the third control is displayed in an unselected state; In response to a second user operation on the fourth control, the first video image has a third beautification effect; In response to a third user operation, the electronic device stops displaying the first video image; In response to a fourth user operation acting on the first control, the electronic device displays the second control, the third control, and a fifth control, wherein the second control is displayed in an unselected state and the third control is displayed in a selected state; In response to a fifth user operation acting on the fifth control, the second video picture has a fourth beautification effect.
2. The method according to claim 1, wherein The method further comprises: In response to a second user operation on the fourth control, the electronic device adjusts the frame rate of the first video image; In response to a fifth user operation on the fifth control, the electronic device adjusts the frame rate of the second video picture.
3. The method according to claim 1 or 2, characterized in that After the electronic device stops displaying the first video image in response to the third user operation, the method further includes: The electronic device adjusts the display ratio of the second video picture.
4. The method according to claim 1 or 2, characterized in that Before the electronic device receives the third user operation, the method further includes: In response to a sixth user operation on the third control, the electronic device stops displaying the fourth control, displays the fifth control, displays the second control in an unselected state, and displays the third control in a selected state; In response to a seventh user operation acting on the fifth control, the second video picture has a fifth beautification effect.
5. The method according to claim 1 or 2, characterized in that Before the electronic device receives the fifth user operation, the method further includes: In response to an eighth user operation acting on the second control, the electronic device stops displaying the fifth control, displays the fourth control, displays the second control in a selected state, and displays the third control in an unselected state; In response to a ninth user operation on the fourth control, the electronic device stores a sixth beauty effect set by the user.
6. The method according to claim 5, characterized in that After responding to a ninth user operation on the fourth control, the method further includes: In response to the tenth user operation, the electronic device displays a third video screen, where the third video screen is a video screen captured in real time by the front camera, and the third video screen has a sixth beauty effect.
7. The method according to claim 6, characterized in that After the electronic device displays the third video image in response to the tenth user operation, the method further includes: The electronic device stops displaying the second video picture.
8. A video recording setting method, characterized in that: Applied to an electronic device including a front camera and a rear camera, the method includes: The electronic device displays a first video screen, a second video screen, a second control, and a third control, wherein the first video screen is a video screen captured in real time by the front camera, and the second video screen is a video screen captured in real time by the rear camera, wherein the first video screen has a first beauty effect, and the second video screen has a second beauty effect; In response to an eleventh user operation on the second control, the electronic device stops displaying the second control and displays a fourth control; In response to a twelfth user operation on the fourth control, the first video image has a third beautification effect; In response to a thirteenth user operation on the third control, the electronic device stops displaying the third control and displays the second control and the fifth control; In response to a fourteenth user operation on the fifth control, the second video screen has a fourth beautification effect.
9. The method according to claim 8, characterized in that The method further comprises: In response to a twelfth user operation on the fourth control, the electronic device adjusts the frame rate of the first video image; In response to a fourteenth user operation on the fifth control, the electronic device adjusts the frame rate of the second video picture.
10. The method according to claim 8 or 9, characterized in that Before the electronic device receives the eleventh user operation, the method further includes: In response to a fifteenth user operation, the electronic device stops displaying the first video image and the second control; In response to a sixteenth user operation on the third control, the electronic device stops displaying the third control and displays the fifth control; In response to a seventeenth user operation acting on the fifth control, the second video picture has a fifth beautification effect.
11. An electronic device, characterized in that: include: one or more processors; Memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the electronic device, enable the electronic device to execute the recording setting method as described in any one of claims 1-10.
12. A computer-readable storage medium, characterized in that The method comprises computer instructions, which, when executed on an electronic device, enable the electronic device to execute the recording setting method according to any one of claims 1 to 10.