Beauty level adjusting method and electronic equipment

By providing beauty level adjustment controls in video call scenarios of electronic devices, users can dynamically adjust beauty level, solving the user experience problems caused by the fixed beauty level in the existing technology, and achieving higher personalization and flexibility .

CN119248159APending Publication Date: 2025-01-03HONOR DEVICE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410035638.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-09
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

When existing electronic devices are talking on video, the beauty level cannot be adjusted according to user needs, resulting in poor user experience.

Method used

Provide a beauty level adjustment method. By displaying the beauty level dynamic notification in the video call scene, users can adjust the beauty level adjustment controls to the image data obtained by the camera according to the user's adjusted beauty level and beauty algorithm. Perform beauty treatment.

Benefits of technology

Meet the needs of different users for beauty levels, improve user experience, and enhance the flexibility and personalization of beauty treatment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248159A_ABST
    Figure CN119248159A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a facial beautification level adjusting method and electronic equipment, relates to the field of electronic equipment, and aims to enable a user to adjust a facial beautification level when the user uses the electronic equipment to perform a video call, thereby meeting different requirements of the user on the facial beautification level and improving the use experience of the user. According to the specific scheme, in a video call scene, a first interface is displayed, the first interface comprises a facial beautification level dynamic notification, and the facial beautification level dynamic notification comprises a facial beautification level adjustment control; receiving a first operation of a user on the beauty level adjustment control; in response to the first operation, determining a first beauty level corresponding to the first operation; and according to the first facial beautification level and a facial beautification algorithm, performing facial beautification processing on image data acquired by a camera of the electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic devices, and in particular to a beauty level adjustment method and electronic device. Background Art

[0002] With the development of electronic device technology, more and more electronic devices have beauty functions during video calls. During a video call on an electronic device, if a user turns on the beauty function of the electronic device, the electronic device usually performs beauty processing on the image data obtained by the camera of the electronic device according to a fixed beauty level.

[0003] However, different users have different requirements for beautification levels. An electronic device performs beautification processing on image data acquired by a camera of the electronic device according to a fixed beautification level, which cannot meet the requirements of different users and affects the user experience. Summary of the invention

[0004] The embodiments of the present application provide a method for adjusting the beauty level and an electronic device, which enable the user to adjust the beauty level when the user uses the electronic device to make a video call, thereby meeting the user's different needs for the beauty level and improving the user's usage experience.

[0005] In order to achieve the above purpose, the embodiment of the present application adopts the following technical solution:

[0006] In a first aspect, an embodiment of the present application provides a beauty level adjustment method, which is applied to an electronic device. The method may include: in a video call scenario, displaying a first interface, the first interface including a beauty level dynamic notification, the beauty level dynamic notification including a beauty level adjustment control; receiving a first operation of the user on the beauty level adjustment control; in response to the first operation, determining a first beauty level corresponding to the first operation; and performing beauty processing on image data acquired by a camera of the electronic device according to the first beauty level and a beauty algorithm.

[0007] Based on the method described in the first aspect, in a video call scenario, the electronic device can display a dynamic notification of the beauty level including a beauty level adjustment control. The user can adjust the beauty level through the beauty level adjustment control, so that the electronic device can perform beauty processing on the image data obtained by the camera of the electronic device according to the beauty level and beauty algorithm adjusted by the user. Since the user can adjust the beauty level through the beauty level adjustment control, the solution of the present application can meet the needs of different users for different beauty levels, thereby improving the user experience.

[0008] In combination with the first aspect, in another possible implementation, before displaying the first interface, the beauty level adjustment method may further include: displaying a second interface, the second interface including a beauty level capsule notification; receiving a second operation of the user on the beauty level capsule notification; displaying the first interface, including: displaying the first interface in response to the second operation.

[0009] Based on this possible implementation, the electronic device may display a beauty level capsule notification before displaying a dynamic beauty level notification. When the user needs to adjust the beauty level, the user may click on the beauty level capsule notification, so that the electronic device may display a dynamic beauty level notification including a beauty level adjustment control. Since the size of the beauty level capsule notification may be smaller than the size of the dynamic beauty level notification, the electronic device may display the beauty level capsule notification first, so as not to affect the user's experience in the video call scenario.

[0010] In combination with the first aspect, in another possible implementation method, the above-mentioned beauty level adjustment method may also include: if the second operation of the user on the beauty level capsule notification is not received within the first time period, hiding the beauty level capsule notification; in response to the second operation, displaying the first interface, including: if the second operation is received within the first time period, in response to the second operation, displaying the first interface.

[0011] Based on this possible implementation, since the electronic device does not receive the second operation of the user on the beauty-level capsule notification within the first time period, the electronic device can hide the beauty-level capsule notification, thereby not affecting the user's usage experience in the video call scenario.

[0012] In combination with the first aspect, in another possible implementation manner, the above-mentioned beauty level adjustment method may also include: receiving a third operation of the user on the beauty level dynamic notification; in response to the third operation, displaying a third interface, the third interface including the beauty level capsule notification.

[0013] Based on this possible implementation, when the electronic device receives a third operation (such as a swipe up operation) from the user on the dynamic beauty level notification, the electronic device may display a beauty level capsule notification instead of a dynamic beauty level notification. Since the size of the beauty level capsule notification may be smaller than the size of the dynamic beauty level notification, the impact of the dynamic beauty level notification on the user in a video call scenario can be reduced.

[0014] In combination with the first aspect, in another possible implementation method, the above-mentioned display of the second interface may include: determining whether the electronic device supports the display of beauty-level capsule notifications; when the electronic device supports the display of beauty-level capsule notifications, displaying the second interface; when the electronic device does not support the display of beauty-level capsule notifications, adding beauty-level dynamic notifications in the notification center.

[0015] Based on this possible implementation, since the electronic device can first determine whether it supports beauty level capsule notifications, it can display beauty level capsule notifications when it supports displaying beauty level capsule notifications; when it does not support displaying beauty level capsule notifications, the electronic device can add beauty level dynamic notifications in the notification center. Thus, the user can adjust the beauty level through the beauty level capsule notification or the notification center.

[0016] In combination with the first aspect, in another possible implementation manner, the above-mentioned beautification level adjustment method may further include: if no fourth operation of the user on the beautification level dynamic notification is received within the second time period, hiding the beautification level dynamic notification.

[0017] Based on this possible implementation, since no triggering operation of the user for the dynamic notification of the beautification level is received within the second time period, the electronic device can hide the dynamic notification of the beautification level, thereby not affecting the user's usage experience in the video call scenario.

[0018] In combination with the first aspect, in another possible implementation, the above-mentioned beauty level adjustment method may also include: receiving a fifth operation triggered by the user to display the notification center; in response to the fifth operation, displaying the notification center; the notification center includes a dynamic notification of the beauty level; receiving a sixth operation of the user on the beauty level adjustment control displayed in the notification center; in response to the sixth operation, determining a second beauty level corresponding to the sixth operation; and performing beauty processing on the image data acquired by the camera of the electronic device according to the second beauty level and the beauty algorithm.

[0019] Based on this possible implementation, since the notification center may include a dynamic beautification level notification, the user may adjust the beautification level through a beautification level adjustment control in the dynamic beautification level notification in the notification center.

[0020] In combination with the first aspect, in another possible implementation, the first interface may include a desktop of the electronic device, a control center of the electronic device, a notification center of the electronic device, or a setting interface of the electronic device.

[0021] Based on this possible implementation method, since the first interface is the desktop of the electronic device, the control center of the electronic device, the notification center of the electronic device, or the setting interface of the electronic device, the user can adjust the beauty level through the beauty level adjustment control in the beauty level dynamic notification in the desktop of the electronic device, the control center of the electronic device, the notification center of the electronic device, or the setting interface of the electronic device.

[0022] In combination with the first aspect, in another possible implementation, the above-mentioned beauty level adjustment control includes a sliding bar and a beauty level adjustment button, the length of the sliding bar is used to indicate the range of the beauty level, the beauty level adjustment button is located on the sliding bar, and when the beauty level adjustment button is at different positions on the sliding bar, the beauty level is different.

[0023] Based on this possible implementation, since the beauty level adjustment control may include a slide bar and a beauty level adjustment button, the user may adjust the position of the beauty level adjustment button on the slide bar, thereby facilitating the user to adjust the beauty level.

[0024] In combination with the first aspect, in another possible implementation manner, the above-mentioned beauty level adjustment control includes no beauty confirmation button and multiple beauty level confirmation buttons, and different beauty level confirmation buttons in the multiple beauty level confirmation buttons correspond to different beauty levels.

[0025] Based on this possible implementation method, since the beauty level adjustment control can include a no beauty confirmation button and multiple beauty level confirmation buttons, the user can adjust the beauty level by selecting the no beauty confirmation button or any one of the multiple beauty level confirmation buttons.

[0026] In combination with the first aspect, in another possible implementation method, the above-mentioned beautification processing of image data acquired by the camera of the electronic device according to the first beauty level and the beautification algorithm may include: obtaining status information of the electronic device; the status information includes power status, and / or screen status; beautification processing of image data acquired by the camera of the electronic device according to the first beauty level, status information and the beauty algorithm.

[0027] Based on this possible implementation method, since the electronic device can perform beautification processing on the image data acquired by the camera of the electronic device according to the first beauty level, status information (i.e., the power status and screen status of the electronic device) and the beauty algorithm, the accuracy of the electronic device's beautification processing on the image data acquired by the camera can be improved.

[0028] In combination with the first aspect, in another possible implementation method, the above-mentioned power status may include a low-power mode and a non-low-power mode, and the above-mentioned screen status may include a screen-on state and a screen-off state; the above-mentioned beautification processing of the image data acquired by the camera of the electronic device according to the first beauty level, status information and beauty algorithm may include: when the power status is a non-low-power mode and the screen status is a screen-on state, beautification processing of the image data acquired by the camera of the electronic device according to the first beauty level and the beauty algorithm; when the power status is a low-power mode, and / or the screen status is a screen-off state, no beauty processing is performed on the image data acquired by the camera of the electronic device.

[0029] Based on this possible implementation method, when the power state is not in low power mode and the screen state is in the bright screen state, the electronic device can perform beauty processing on the image data obtained by the camera of the electronic device according to the first beauty level and the beauty algorithm, which can improve the user experience; and when the power state is in the low power mode, and / or the screen state is in the off screen state, the image data obtained by the camera of the electronic device is not beautified, which can reduce the power consumption of the electronic device.

[0030] In combination with the first aspect, in another possible implementation method, the above-mentioned electronic device may include a video beautification service and a camera hardware abstraction HAL module, and the above-mentioned beautification processing of the image data acquired by the camera of the electronic device according to the first beauty level and the beauty algorithm may include: the video beauty service determines the beauty adjustment parameters according to the first beauty level; the video beauty service sends the beauty adjustment parameters to the camera HAL module; the camera HAL module performs beauty processing on the image data acquired by the camera of the electronic device according to the beauty adjustment parameters and the beauty algorithm.

[0031] Based on this possible implementation, since the video beautification service can determine the beautification adjustment parameters according to the first beautification level, the video beautification service sends the beautification adjustment parameters to the camera HAL module, and the camera HAL module performs beautification processing on the image data acquired by the camera of the electronic device according to the beautification adjustment parameters and the beautification algorithm. Therefore, the electronic device can implement beautification processing on the image data acquired by the camera of the electronic device according to the beautification level and the beautification algorithm adjusted by the user based on the video beautification service and the camera hardware abstraction HAL module.

[0032] In combination with the first aspect, in another possible implementation method, the above-mentioned camera hardware abstraction HAL module may include a configuration service and a beautification algorithm service. The above-mentioned camera HAL module performs beautification processing on the image data acquired by the camera of the electronic device according to the beauty adjustment parameters and the beauty algorithm. It may include: the configuration service receives the beauty adjustment parameters sent by the video beauty service; the configuration service sends the beauty adjustment parameters to the beauty algorithm service; the beauty algorithm service performs beautification processing on the image data acquired by the camera of the electronic device according to the beauty adjustment parameters and the beauty algorithm.

[0033] Based on this possible implementation, since the configuration service can receive the beauty adjustment parameters sent by the video beauty service; the configuration service can send the beauty adjustment parameters to the beauty algorithm service; the beauty algorithm service can perform beauty processing on the image data obtained by the camera of the electronic device according to the beauty adjustment parameters and the beauty algorithm. Therefore, based on the video beauty service and the configuration service and beauty algorithm service in the camera hardware abstraction HAL module, the electronic device can perform beauty processing on the image data obtained by the camera of the electronic device according to the beauty level and beauty algorithm adjusted by the user.

[0034] In a second aspect, an embodiment of the present application provides a beauty level adjustment device, which can be applied to an electronic device to implement the method in the first aspect. The function of the beauty level adjustment device can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions to implement any of the above-mentioned beauty level adjustment methods.

[0035] In a third aspect, a beauty level adjustment device is provided, which has the function of implementing the method described in the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0036] In a fourth aspect, a beauty level adjustment device is provided, comprising: a processor and a memory; the memory is used to store computer execution instructions, and when the beauty level adjustment device is running, the processor executes the computer execution instructions stored in the memory to enable the photographing device to perform the beauty level adjustment method as described in any one of the first aspects above.

[0037] In a fifth aspect, a beauty level adjustment device is provided, comprising: a processor; the processor is used to couple with a memory, and after reading instructions in the memory, execute the beauty level adjustment method as described in any one of the first aspects above according to the instructions.

[0038] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by an electronic device, the electronic device implements the beauty level adjustment method as described in any one of the first aspect or possible implementations of the first aspect.

[0039] In a seventh aspect, an embodiment of the present application provides a computer program product, comprising a computer-readable code. When the computer-readable code is executed in an electronic device, the electronic device implements a beauty level adjustment method as described in any one of the first aspect or possible implementations of the first aspect.

[0040] In an eighth aspect, a device (for example, the device may be a chip system) is provided, the device including a processor for supporting an electronic device to implement the functions involved in the first aspect above. In one possible design, the device also includes a memory for storing program instructions and data necessary for the electronic device. When the device is a chip system, it may be composed of a chip, or may include a chip and other discrete devices.

[0041] It should be understood that the beneficial effects of the second to eighth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is a schematic diagram of an interface for a video call scenario of an electronic device in the prior art;

[0043] Figure 2 An interface diagram of a video call scenario of an electronic device provided in an embodiment of the present application Figure 1 ;

[0044] Figure 3 An interface diagram of a video call scenario of an electronic device provided in an embodiment of the present application Figure 2 ;

[0045] Figure 4 An interface diagram of a video call scenario of an electronic device provided in an embodiment of the present application Figure 3 ;

[0046] Figure 5 An interface diagram of a video call scenario of an electronic device provided in an embodiment of the present application Figure 4 ;

[0047] Figure 6 An interface diagram of a video call scenario of an electronic device provided in an embodiment of the present application Figure 5 ;

[0048] Figure 7 An interface diagram of a video call scenario of an electronic device provided in an embodiment of the present application Figure 6 ;

[0049] Figure 8 An interface diagram of a video call scenario of an electronic device provided in an embodiment of the present application Figure 7 ;

[0050] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0051] Fig.10 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;

[0052] Fig.11 A flowchart of the beauty level adjustment method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0054] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0055] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and appended claims of the present application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also include plural expressions, unless the context clearly indicates otherwise. It should also be understood that " / " means or, for example, A / B can mean A or B; "and / or" in the text is merely a description of the association relationship of associated characters, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0056] With the development of electronic device technology, more and more electronic devices (such as mobile phones, etc.) have beauty functions during video calls.

[0057] When a user is making a video call on an electronic device, if the user turns on the beauty function of the electronic device, the electronic device usually performs beauty processing on the image data acquired by the camera of the electronic device (such as the image data of the user or other image data acquired by the camera of the electronic device) according to a fixed beauty level. In other words, when the user is making a video call using the electronic device, the user cannot adjust the beauty level.

[0058] The beautification level refers to the degree to which the electronic device uses the beautification algorithm to beautify the image data obtained by the camera of the electronic device (also referred to as the camera). For example, at a lower beautification level, the degree of beautification processing of the image data obtained by the camera of the electronic device is lower, that is, when the beautification level is lower, when the electronic device uses the beautification algorithm to beautify the image data obtained by the camera of the electronic device, more original facial features of the user in the image data will be retained, so that the image looks more natural. A higher beautification level refers to a higher degree of beautification processing of the image data obtained by the camera of the electronic device, that is, when the beautification level is higher, when the electronic device uses the beautification algorithm to beautify the image data obtained by the camera of the electronic device, more processing will be performed on the image data, including skin grinding, whitening and other effects, so that the skin of the user in the image data looks more perfect and smooth. In other words, when the beautification level of the electronic device is lower, the beautification effect is worse; when the beautification level of the electronic device is higher, the beautification effect is better.

[0059] The electronic device performs beautification processing on the image data acquired by the camera of the electronic device according to a fixed beautification level, that is, when the electronic device uses the beautification algorithm to perform beautification processing on the image data acquired by the camera of the electronic device, the electronic device does not change the beautification level, but performs beautification processing on the image data according to the preset beautification level. And when the electronic device uses the beautification algorithm to perform beautification processing on the image data acquired by the camera of the electronic device, the user cannot adjust the beautification level through the electronic device.

[0060] For example, taking a mobile phone as an example, Figure 1 As shown in (a) of FIG. 1 , when a user uses a mobile phone to make a video call, the mobile phone may display a video call interface 101. The video call interface 101 may include a beauty control 102. The beauty control 102 may be used to trigger the mobile phone to use a beauty algorithm to perform beauty processing on the user's image data obtained by the mobile phone's camera (such as the front camera or the rear camera of the mobile phone).

[0061] That is, when the mobile phone receives a trigger operation of the user on the beauty control 102, such as a click operation, in response, such as Figure 1As shown in (b) in the figure, the mobile phone can highlight the beauty control 102 to prompt the user that the mobile phone has turned on the beauty function. After the mobile phone turns on the beauty function, the mobile phone can use the beauty algorithm to beautify the image data of the user obtained by the camera of the mobile phone (such as the front camera or the rear camera). Moreover, when the mobile phone uses the beauty algorithm to beautify the image data of the user obtained by the camera of the mobile phone, the mobile phone uses a fixed beauty level to beautify the image data of the user, that is, the degree to which the mobile phone uses the beauty algorithm to beautify the image data of the user is fixed. The user cannot adjust the beauty level corresponding to the beauty algorithm.

[0062] However, different users have different requirements for the beautification level corresponding to the beautification algorithm. For example, some users want a lower beautification level, that is, the electronic device performs a lower degree of beautification processing on the image data during a video call, so that the image data can be clear and can be restored realistically. Some users want a higher beautification level, that is, the electronic device performs a higher degree of beautification processing on the image data during a video call, so that the image data can have a better beautification effect.

[0063] Therefore, if the electronic device performs beautification processing on the image data acquired by the camera of the electronic device according to a fixed beautification level, it cannot meet the needs of different users, which results in a lower user experience.

[0064] In response to the above problems, a beauty level adjustment method is provided in an embodiment of the present application, which is applied to an electronic device. The beauty level adjustment method may include that after the electronic device receives an opening operation of a video call application by a user, the electronic device may display a video call interface. The video call interface may include a dynamic notification corresponding to the beauty level (dynamic notification may also be referred to as a pop-up window). The dynamic notification corresponding to the beauty level (also referred to as a beauty level dynamic notification) may include a beauty level adjustment control, so that the user can adjust the beauty level through the beauty level adjustment control. After the electronic device receives the user's adjustment operation on the beauty level adjustment control, the electronic device may perform beauty processing on the image data obtained by the camera of the electronic device through a beauty algorithm according to the beauty level adjusted by the user.

[0065] In the solution of the present application, since the electronic device can display the beauty level adjustment control during the video call, the user can adjust the beauty level through the beauty level adjustment control. Therefore, the solution of the present application can meet the needs of different users for different beauty levels, thereby improving the user experience.

[0066] The display process of the beauty level adjustment method provided in the embodiment of the present application is schematically illustrated below with reference to the accompanying drawings.

[0067] In some examples, the beauty level adjustment control in the dynamic notification corresponding to the beauty level (the dynamic notification corresponding to the beauty level in the embodiment of the present application may also be referred to as the beauty level dynamic notification) may include a sliding bar and a beauty level determination button (the beauty level determination button in the embodiment of the present application may also be referred to as the beauty level adjustment button). The length of the sliding bar may represent the range of beauty levels. The beauty level determination button may be located on the sliding bar and may be located at different positions on the sliding bar. When the beauty level determination button is at different positions on the sliding bar, the electronic device may determine that the beauty level selected by the user is the beauty level corresponding to the position of the beauty level determination button on the sliding bar.

[0068] For example, the beautification level may include level 0 to level 100, that is, the length of the slider indicates that the range of the beautification level is from level 0 to level 100. When the user drags the beautification level confirmation button to the leftmost end of the slider, the electronic device may determine that the beautification level selected by the user is level 0, that is, the electronic device may determine that the user turns off the beautification function, that is, the electronic device may determine that the user chooses not to use the beautification algorithm to beautify the image data acquired by the camera of the electronic device. When the user drags the beautification level confirmation button to the rightmost end of the slider, the electronic device may determine that the beautification level selected by the user is level 100, that is, the electronic device may determine that the user selects the highest beautification level to beautify the image data acquired by the camera of the electronic device. When the user drags the beautification level confirmation button to the middle position of the slider, the electronic device may determine that the beautification level selected by the user is level 50, that is, the electronic device may determine that the user selects the middle beautification level to beautify the image data acquired by the camera of the electronic device. When the user drags the beautification level confirmation button to other positions of the slider, the electronic device may determine that the beauty level selected by the user is the beauty level corresponding to the other positions.

[0069] It should be noted that the specific location of the dynamic notification corresponding to the beauty level is not limited in the embodiments of the present application. For example, when the video call interface of the electronic device includes a dynamic notification corresponding to the beauty level, the dynamic notification corresponding to the beauty level can be located at the top of the video call interface, and the dynamic notification corresponding to the beauty level can also be located at other locations in the video call interface. This is not limited in the embodiments of the present application.

[0070] It should be noted that when the video call interface of the electronic device includes a dynamic notification corresponding to the beauty level, the video call interface may also include other controls, such as a control for reducing ambient noise, etc. The specific types of other controls included in the video call interface of the electronic device are not limited in the embodiments of the present application.

[0071] It should be noted that in the video call scenario in the embodiment of the present application, the interface of the dynamic notification corresponding to the beauty level in the electronic device can also be called the first interface. The first interface can be a video call interface of the electronic device, a desktop of the electronic device, a control center of the electronic device, a notification center of the electronic device, or a setting interface of the electronic device. The specific type of the first interface is not limited in the embodiment of the present application.

[0072] For example, taking a mobile phone as an example, Figure 2 As shown in (a) of FIG. 1 , when a user uses a mobile phone to make a video call (such as making a video call through a video application), the mobile phone may display a video call interface 201. The video call interface 201 may include a dynamic notification 202 corresponding to the beauty level. The dynamic notification 202 corresponding to the beauty level may include prompt information to prompt the user to adjust the beauty level. For example, Figure 2 As shown in (a) in the figure, the prompt information may include words such as "video beautification call" and "adjust the pre-beautification intensity during video call" to prompt the user to adjust the beautification level corresponding to the beautification algorithm used by the mobile phone during the video call.

[0073] The dynamic notification 202 corresponding to the beautification level may also include a beautification level adjustment control. The beautification level adjustment control may include a slider 203 and a beautification level determination button 204. The beautification level may include levels 0 to 100. The length of the slider 203 may represent the range of the beautification level (i.e., level 0 to level 100). The beautification level determination button 204 may be located on the slider 203 and may be located at different positions on the slider 203. When the beautification level determination button 204 is at different positions on the slider 2203, the mobile phone may determine that the beautification level selected by the user is the beautification level corresponding to the position of the beautification level determination button 204 at the slider 203.

[0074] like Figure 2 As shown in (a), in the initial state, the beauty level confirmation button 204 can be located at the leftmost end of the sliding bar 203, and the mobile phone can determine that the initial state of the beauty level is level 0, that is, the mobile phone can determine that the beauty algorithm is not used to beautify the image data obtained by the camera of the mobile phone in the initial state.

[0075] After the mobile phone displays the dynamic notification 202 corresponding to the beautification level, the user can drag the beautification level confirmation button 204 to change the position of the beautification level confirmation button 204 in the slide bar 203 to adjust the beautification level corresponding to the beautification algorithm used by the mobile phone.

[0076] That is, when the mobile phone receives the user's dragging operation on the beauty level confirmation button 204 (the user's dragging operation on the beauty level confirmation button 204 in the embodiment of the present application, that is, the user's operation on the beauty level adjustment control, can also be referred to as the first operation), in response, such as Figure 2 As shown in (b) in the figure, the mobile phone can display a dynamic notification 202 corresponding to the adjusted beauty level. In the dynamic notification 202 corresponding to the adjusted beauty level, the beauty level confirmation button 204 is in the adjusted position in the slider 203. At the same time, the mobile phone can determine that the beauty level selected by the user is the beauty level corresponding to the beauty level confirmation button 204 in the slider 203 after the adjustment, that is, the mobile phone can determine the first beauty level corresponding to the first operation according to the first operation. Afterwards, the mobile phone can perform beauty processing on the image data obtained by the camera of the mobile phone (such as the front camera) according to the beauty level corresponding to the beauty level confirmation button 204 in the slider 203 after the adjustment, that is, the mobile phone can perform beauty processing on the image data obtained by the camera of the mobile phone according to the first beauty level and the beauty algorithm.

[0077] It should be noted that when the video call interface of the electronic device includes a dynamic notification corresponding to the beauty level, if the electronic device does not receive a trigger operation of the user on the dynamic notification corresponding to the beauty level (such as the user's adjustment operation of the beauty level adjustment control included in the dynamic notification corresponding to the beauty level, etc.) within the first time period (the first time period in the embodiment of the present application may also be referred to as the second time period), the electronic device may hide the dynamic notification corresponding to the beauty level in the video call interface. If the electronic device receives a trigger operation of the user on the dynamic notification corresponding to the beauty level within the first time period, such as the user's adjustment operation of the beauty level adjustment control included in the dynamic notification corresponding to the beauty level, the electronic device may perform beauty processing on the image data acquired by the camera of the electronic device according to the beauty level adjusted by the user.

[0078] In some examples, the beauty level adjustment control in the dynamic notification corresponding to the beauty level may include a no beauty confirmation button and multiple beauty level confirmation buttons. Different beauty level confirmation buttons correspond to different beauty levels. That is, when the electronic device receives a user's trigger operation on different beauty level confirmation buttons, the electronic device may determine that the beauty level selected by the user is the beauty level corresponding to the beauty level confirmation button.

[0079] For example, the beauty level adjustment control includes a non-beautification confirmation button and multiple beauty level confirmation buttons, and the multiple beauty level confirmation buttons may include a low-level beauty confirmation button, a medium-level beauty confirmation button, and a high-level beauty confirmation button. When the user selects the non-beautification confirmation button, the electronic device may determine that the beauty level selected by the user is level 0, that is, the electronic device may determine that the user chooses not to use the beauty algorithm to beautify the image data acquired by the camera of the electronic device. When the user selects the low-level beauty confirmation button, the electronic device may determine that the beauty level selected by the user is a low level, that is, the electronic device may determine that the user selects a low-level beauty level to beautify the image data acquired by the camera of the electronic device. When the user selects the medium-level beauty confirmation button, the electronic device may determine that the beauty level selected by the user is a medium level, that is, the electronic device may determine that the user selects a medium-level beauty level to beautify the image data acquired by the camera of the electronic device. When the user selects the high-level beauty confirmation button, the electronic device may determine that the beauty level selected by the user is a high level, that is, the electronic device may determine that the user selects a high-level beauty level to beautify the image data acquired by the camera of the electronic device.

[0080] For example, continuing with the example of a mobile phone as an electronic device, combined with Figure 3 As shown in (a) of FIG. 3 , when a user uses a mobile phone to make a video call, the mobile phone may display a video call interface 301. The video call interface 301 may include a dynamic notification 302 corresponding to the beauty level. The dynamic notification 302 corresponding to the beauty level may include prompt information to prompt the user to adjust the beauty level. The prompt information may include words such as "video beauty call" and "adjust the pre-beautification intensity during the video call" to prompt the user to adjust the beauty level corresponding to the beauty algorithm used by the mobile phone during the video call.

[0081] The dynamic notification 302 corresponding to the beautification level may further include a beautification level adjustment control 303. The beautification level adjustment control 303 may include a no beautification confirmation button, a low level beautification confirmation button, a medium level beautification confirmation button 304, and a high level beautification confirmation button.

[0082] After the mobile phone displays the dynamic notification 302 corresponding to the beautification level, the user can adjust the beautification level corresponding to the beautification algorithm used by the mobile phone by selecting different beautification level confirmation buttons.

[0083] like Figure 3 As shown in (a) of FIG. 1 , when the mobile phone receives a trigger operation (such as a click operation) of the user on the medium-level beautification confirmation button 304 (the trigger operation of the user on the medium-level beautification confirmation button 304 in the embodiment of the present application, that is, the user's operation on the beautification level adjustment control, can also be referred to as the first operation), in response, as shown in FIG. Figure 3 As shown in (b) in the figure, the mobile phone can highlight the medium-level beauty confirmation button 304 to prompt the user that the currently selected beauty level is medium-level beauty. At the same time, the mobile phone can determine that the beauty level selected by the user is medium-level beauty, that is, the mobile phone can determine the first beauty level corresponding to the first operation according to the first operation. Afterwards, the mobile phone can perform beauty processing on the image data obtained by the camera of the mobile phone (such as the front camera) according to the beauty level corresponding to the medium-level beauty confirmation button 304, that is, the mobile phone can perform beauty processing on the image data obtained by the camera of the mobile phone (such as the front camera) according to the first beauty level and the beauty algorithm.

[0084] It should be noted that when the mobile phone performs beautification processing on the image data acquired by the camera of the mobile phone according to the first beautification level and the beautification algorithm, the mobile phone can also obtain the status information of the mobile phone, and the status information of the mobile phone may include the power status (i.e., low power mode or non-low power mode) and / or the screen status (i.e., screen-on status or screen-off status). Afterwards, the mobile phone can perform beautification processing on the image data acquired by the camera of the mobile phone (such as the front camera) according to the first beautification level, the status information and the beautification algorithm.

[0085] When the power state is not in low power mode and the screen state is in bright screen state, the mobile phone may perform beauty processing on image data acquired by a camera (such as a front camera) of the mobile phone according to the first beauty level and the beauty algorithm;

[0086] When the power state is in a low power mode, and / or the screen state is in an off state, no beauty processing is performed on the image data acquired by the camera of the mobile phone (such as the front camera).

[0087] In some examples, before the electronic device displays the dynamic notification corresponding to the beauty level, the electronic device may also display a capsule notification corresponding to the beauty level (also referred to as a beauty level capsule notification). The capsule notification corresponding to the beauty level can be used to trigger the electronic device to display the dynamic notification corresponding to the beauty level, so that the user can adjust the beauty level through the beauty level adjustment control included in the dynamic notification corresponding to the beauty level.

[0088] It should be noted that the specific location of the capsule notification corresponding to the beauty level is not limited in the embodiments of the present application. For example, when the video call interface of the electronic device includes a capsule notification corresponding to the beauty level, the capsule notification corresponding to the beauty level can be located at the top of the video call interface, and the capsule notification corresponding to the beauty level can also be located at other locations in the video call interface. This is not limited in the embodiments of the present application.

[0089] It should be noted that in the video call scenario in the embodiment of the present application, the interface of the capsule notification corresponding to the beauty level in the electronic device can also be called the second interface. The second interface can be a video call interface of the electronic device, a desktop of the electronic device, a control center of the electronic device, a notification center of the electronic device, or a setting interface of the electronic device. The specific type of the second interface is not limited in the embodiment of the present application.

[0090] For example, continuing with the example of a mobile phone as an electronic device, combined with Figure 4 As shown in (a) of FIG. 4 , when a user uses a mobile phone to make a video call, the mobile phone may display a video call interface 401. The video call interface 401 may include a capsule notification 402 corresponding to the beauty level. The capsule notification 402 corresponding to the beauty level may be used to trigger the electronic device to display a dynamic notification corresponding to the beauty level, so that the user may adjust the beauty level through the beauty level adjustment control included in the dynamic notification corresponding to the beauty level. Figure 4 As shown in (a) of FIG. 4 , the capsule notification 402 may include prompt information to prompt the user that the mobile phone can beautify the video call. The prompt information may include words such as "video beautification" to prompt the user that the mobile phone can use the beautification algorithm to beautify the image data obtained by the camera of the mobile phone during the video call.

[0091] It should be noted that the prompt information in the capsule notification 402 may change every second time period. Figure 4 As shown in (b) of FIG. 1 , after the second time period, the mobile phone may display a capsule notification 403 corresponding to the beauty level after the prompt information changes. Figure 4 As shown in (b) of FIG. 5 , the capsule notification 403 corresponding to the beauty level may include prompt information to prompt the user that the beauty function of the mobile phone has been turned off. The prompt information may include words such as "turned off" to prompt the user that the beauty function of the mobile phone has been turned off.

[0092] After the mobile phone displays the capsule notification 403 corresponding to the beauty level, the user can click on the capsule notification 403, so that the mobile phone can display the dynamic notification corresponding to the beauty level, and the user can adjust the beauty level through the beauty level adjustment control in the dynamic notification corresponding to the beauty level. That is, when the mobile phone receives the user's click operation on the capsule notification 403 corresponding to the beauty level (the user's click operation on the capsule notification 403 corresponding to the beauty level in the embodiment of the present application can also be called the second operation), in response, such as Figure 4 As shown in (c) in FIG. 4 , the mobile phone may display a dynamic notification 404 corresponding to the beauty level. The dynamic notification 404 corresponding to the beauty level may include a beauty level adjustment control, so that the user can adjust the beauty level through the beauty level adjustment control. Figure 4As shown in (c) in the figure, this example takes the beauty level adjustment control including a sliding bar and a beauty level confirmation button as an example for schematic illustration.

[0093] It should be noted that after the mobile phone displays the capsule notification 402 corresponding to the beauty level, the user can also click on the capsule notification 402, so that the mobile phone can display the dynamic notification corresponding to the beauty level, and the user can adjust the beauty level through the beauty level adjustment control in the dynamic notification corresponding to the beauty level. That is, when the mobile phone receives the user's click operation on the capsule notification 402 corresponding to the beauty level, as a response, such as Figure 4 As shown in (c) in FIG. 4 , the mobile phone may display a dynamic notification 404 corresponding to the beautification level, so that the user may adjust the beautification level through the beautification level adjustment control.

[0094] Combination Figure 4 As shown in (b), after the mobile phone displays the capsule notification 403 corresponding to the beauty level, the user can also slide down to display the notification center, so that the mobile phone can display the notification center. The notification center may include dynamic notifications corresponding to the beauty level, so that the user can adjust the beauty level in the notification center through the beauty level adjustment control in the dynamic notification corresponding to the beauty level. That is, when the mobile phone receives the user's operation of sliding down to display the notification center (the operation of the user sliding down to display the notification center in the embodiment of the present application can also be called the fifth operation, that is, the fifth operation is used to trigger the display of the notification center of the electronic device), in response, as shown in FIG. Figure 4 As shown in (e) in FIG. 4 , the mobile phone may display a notification center 405. The notification center 405 may include a dynamic notification 406 corresponding to the beauty level. The dynamic notification 406 corresponding to the beauty level may include a beauty level adjustment control, so that the user can adjust the beauty level through the beauty level adjustment control. In this example, the beauty level adjustment control includes a slider and a beauty level confirmation button as an example for schematic illustration.

[0095] When the mobile phone receives the user's adjustment operation on the beauty level adjustment control included in the dynamic notification 406 corresponding to the beauty level (in the embodiment of the present application, the user's adjustment operation on the beauty level adjustment control included in the dynamic notification 406 corresponding to the beauty level may also be referred to as the sixth operation), in response, the mobile phone can determine the second beauty level corresponding to the adjustment operation, and perform beauty processing on the image data obtained by the camera of the mobile phone according to the second beauty level and the beauty algorithm.

[0096] Combination Figure 4As shown in (c) of FIG. 1 , after the mobile phone displays the dynamic notification 404 corresponding to the beauty level, the user can swipe left on the dynamic notification 404 corresponding to the beauty level, so that the mobile phone can display the capsule notification corresponding to the beauty level. That is, when the mobile phone receives the user's left swipe operation on the dynamic notification 404 corresponding to the beauty level (the user's left swipe operation on the dynamic notification 404 corresponding to the beauty level in the embodiment of the present application can also be referred to as the third operation), in response, Figure 4 As shown in (d) in FIG. 4 , the mobile phone may display a capsule notification 402 corresponding to the beauty level. It should be noted that when the mobile phone receives a left swipe operation of the user on the dynamic notification 404 corresponding to the beauty level, as a response, Figure 4 As shown in (b) in FIG. 1 , the mobile phone may display a capsule notification 402 corresponding to the beauty level.

[0097] Combination Figure 4 As shown in (c) of FIG. 1 , after the mobile phone displays the dynamic notification 404 corresponding to the beauty level, the user can also swipe up on the dynamic notification 404 corresponding to the beauty level, so that the mobile phone can display the capsule notification corresponding to the beauty level. That is, when the mobile phone receives the user's swiping up operation on the dynamic notification 404 corresponding to the beauty level (the user's swiping up operation on the dynamic notification 404 corresponding to the beauty level in the embodiment of the present application can also be referred to as the third operation), in response, such as Figure 4 As shown in (b) of FIG. 1 , the mobile phone can display a capsule notification 403 corresponding to the beauty level. It should be noted that when the mobile phone receives a swipe-up operation of the user on the dynamic notification 404 corresponding to the beauty level, as a response, Figure 4 As shown in (d) in the figure, the mobile phone can also display a capsule notification 402 corresponding to the beauty level. That is, in the embodiment of the present application, the third operation can be a swipe up operation of the user on the dynamic notification corresponding to the beauty level, or a swipe left operation of the user on the dynamic notification corresponding to the beauty level. When the mobile phone receives a swipe up operation or a swipe left operation of the user on the dynamic notification corresponding to the beauty level, the mobile phone can display a third interface (such as Figure 4 (b) or Figure 4 The third interface may include a beauty level capsule notification, as shown in (c) in the figure.

[0098] Combination Figure 4 As shown in (b) of FIG. 4 , after the mobile phone displays the dynamic notification 404 corresponding to the beauty level, the user can also slide down to display the notification center, so that the mobile phone can display the notification center. The notification center can include the dynamic notification corresponding to the beauty level, so that the user can adjust the beauty level in the notification center through the beauty level adjustment control in the dynamic notification corresponding to the beauty level. That is, when the mobile phone receives the user's operation of sliding down to display the notification center, as a response, Figure 4As shown in (e) in FIG. 4 , the mobile phone may display a notification center 405. The notification center 405 may include a dynamic notification 406 corresponding to the beauty level. The dynamic notification 406 corresponding to the beauty level may include a beauty level adjustment control, so that the user can adjust the beauty level through the beauty level adjustment control. In this example, the beauty level adjustment control includes a slider and a beauty level confirmation button as an example for schematic illustration.

[0099] It should be noted that, combined with Figure 4 As shown in (b) in the figure, after the mobile phone displays the capsule notification 403 corresponding to the beauty level, the mobile phone may also hide the capsule notification 403 corresponding to the beauty level after a third time period (e.g., 10 seconds) (the third time period in the embodiment of the present application may also be referred to as the first time period). That is, within the third time period, if the mobile phone does not receive an operation (e.g., a click operation or a slide operation) from the user on the capsule notification 403 corresponding to the beauty level, the mobile phone may hide the capsule notification 403 corresponding to the beauty level.

[0100] After the mobile phone hides the capsule notification 403 corresponding to the beauty level, the mobile phone can display the dynamic notification corresponding to the beauty level in the notification center, and the user can adjust the beauty level through the beauty level adjustment control included in the dynamic notification corresponding to the beauty level. That is, after the mobile phone hides the capsule notification 403 corresponding to the beauty level, when the mobile phone receives the user's notification center trigger operation, such as sliding down to display the notification center operation, in response, such as Figure 4 As shown in (e) in FIG. 1 , the mobile phone may display a notification center 405. The notification center 405 may include a dynamic notification 406 corresponding to the beauty level. The dynamic notification 406 corresponding to the beauty level may include a beauty level adjustment control, so that the user can adjust the beauty level through the beauty level adjustment control.

[0101] It should be noted that before the electronic device displays the interface (i.e., the second interface) including the capsule notification corresponding to the beauty level, the electronic device may first determine whether the electronic device supports the display of the capsule notification corresponding to the beauty level. When the electronic device supports the display of the capsule notification corresponding to the beauty level, the electronic device may display the second interface. When the electronic device does not support the display of the capsule notification corresponding to the beauty level, the electronic device may add the dynamic notification corresponding to the beauty level in the notification center, so that the user can view the dynamic notification corresponding to the beauty level in the notification center of the electronic device, and adjust the beauty level through the beauty level adjustment control included in the dynamic notification corresponding to the beauty level.

[0102] In some examples, when a user uses an electronic device to make a video call, the electronic device may also display a capsule notification corresponding to the beauty level on the desktop or other interface of the electronic device. In order to reduce the interference of the capsule notification corresponding to the beauty level to the user, after the fourth time period (such as 10 seconds) of displaying the capsule notification corresponding to the beauty level on the desktop or other interface of the electronic device, the electronic device may also hide the capsule notification corresponding to the beauty level on the desktop or other interface, that is, the electronic device may not display the capsule notification corresponding to the beauty level on the desktop or other interface.

[0103] That is, after the electronic device hides the capsule notification corresponding to the beauty level on the desktop or other interfaces, if the electronic device does not receive an operation (such as a click operation or a slide operation) from the user on the capsule notification corresponding to the beauty level within the fourth time period, the electronic device can hide the capsule notification corresponding to the beauty level. Afterwards, the electronic device can display a dynamic notification corresponding to the beauty level in the notification center, so that the user can adjust the beauty level through the beauty level adjustment control included in the dynamic notification corresponding to the beauty level in the notification center.

[0104] If, within the fourth time period, the electronic device receives an operation by the user on a capsule notification corresponding to a beauty level, such as a click operation, the electronic device may display a dynamic notification corresponding to the beauty level on the desktop or other interfaces, so that the user may adjust the beauty level through the beauty level adjustment control in the dynamic notification corresponding to the beauty level. If, within the fourth time period, the electronic device receives an operation by the user on a capsule notification corresponding to a beauty level, such as a swipe operation, the electronic device may display a notification center. The notification center may include a dynamic notification corresponding to a beauty level, so that the user may adjust the beauty level through the beauty level adjustment control in the dynamic notification corresponding to the beauty level.

[0105] For example, let's take the mobile phone as the electronic device. When the user uses the mobile phone to make a video call, the mobile phone can display a capsule notification corresponding to the beauty level on the desktop. Figure 5 As shown in (a) in the figure, the mobile phone can display a capsule notification 502 corresponding to the beauty level on the desktop 501.

[0106] In the fourth time period (such as 10 seconds), when the mobile phone does not receive any operation (such as a click operation or a slide operation) from the user on the capsule notification 502 corresponding to the beauty level, Figure 5 As shown in (b) in the figure, the mobile phone may hide the capsule notification 501 corresponding to the beauty level in the desktop 501 , that is, the mobile phone may not display the capsule notification 502 corresponding to the beauty level in the desktop 501 .

[0107] It should be noted that when the mobile phone displays the capsule notification 501 corresponding to the beauty level on the desktop 501, the user can also slide down to display the notification center, so that the mobile phone can display the notification center, and the user can view the dynamic notification corresponding to the beauty level in the notification center of the mobile phone. That is, when the mobile phone receives the operation of sliding down to display the notification center by the user, as a response, Figure 5 As shown in (c) in FIG. 5 , the mobile phone may display a notification center 503. The notification center 503 may include a dynamic notification 504 corresponding to the beauty level. The dynamic notification 504 corresponding to the beauty level may include a beauty level adjustment control, so that the user can adjust the beauty level through the beauty level adjustment control. In this example, the beauty level adjustment control includes a slider and a beauty level confirmation button as an example for schematic illustration.

[0108] Combination Figure 5 As shown in (b) of FIG. 5 , after the mobile phone hides the capsule notification 501 corresponding to the beauty level on the desktop 501, the user can view the dynamic notification corresponding to the beauty level in the notification center of the mobile phone. That is, when the mobile phone receives the user's sliding down to display the notification center operation, as a response, Figure 5 As shown in (c) in FIG. 5 , the mobile phone may display a notification center 503. The notification center 503 may include a dynamic notification 504 corresponding to the beauty level. The dynamic notification 504 corresponding to the beauty level may include a beauty level adjustment control, so that the user can adjust the beauty level through the beauty level adjustment control. In this example, the beauty level adjustment control includes a slider and a beauty level confirmation button as an example for schematic illustration.

[0109] After the mobile phone displays the notification center 503, the user can also slide up the notification center so that the mobile phone can display the desktop. That is, when the mobile phone receives the user's upward sliding operation, as a response, such as Figure 5 As shown in (b) , the mobile phone may display a desktop 501 , and the mobile phone may not display a capsule notification 502 corresponding to the beauty level on the desktop 501 .

[0110] In some examples, when a user uses an electronic device to make a video call, the electronic device may also display a beauty switch. The beauty switch may be used to trigger the electronic device to display a dynamic notification corresponding to the beauty level. Thus, the user may adjust the beauty level through the beauty level adjustment control included in the dynamic notification corresponding to the beauty level in the notification center.

[0111] For example, continuing with the example of a mobile phone as an electronic device, combined with Figure 6 As shown in (a) of FIG. 6 , when a mobile phone is in a video call, the mobile phone may display a video call interface 601. The video call interface 601 may include a beauty switch 602. The beauty switch 602 may be used to trigger the electronic device to display a dynamic notification corresponding to the beauty level.

[0112] When the mobile phone receives a trigger operation (such as a click operation) of the user on the beauty switch 602, in response, Figure 6 As shown in (b) of FIG. 6 , the mobile phone can display a dynamic notification 603 corresponding to the beauty level in the call interface 601. The dynamic notification 603 corresponding to the beauty level can include a beauty level adjustment control, so that the user can adjust the beauty level through the beauty level adjustment control. In this example, the beauty level adjustment control includes a slider and a beauty level confirmation button as an example for schematic description.

[0113] In some examples, the electronic device may also display dynamic notifications corresponding to the beauty levels in the video call beauty settings interface, so that the user can adjust the beauty level through the beauty level adjustment controls included in the dynamic notifications corresponding to the beauty levels in the video call beauty settings interface.

[0114] For example, continuing with the example of a mobile phone as an electronic device, combined with Figure 7 In the example, the mobile phone may display a video call beauty setting interface 701. The video call beauty setting interface 701 may include a dynamic notification 702 corresponding to the beauty level. The dynamic notification 702 corresponding to the beauty level may include a beauty level adjustment control, so that the user can adjust the beauty level through the beauty level adjustment control. In this example, the beauty level adjustment control includes a slider and a beauty level confirmation button as an example for schematic description.

[0115] like Figure 7 As shown, the video call beauty setting interface 701 may also include an application to which the adjusted beauty level is applied and a switch corresponding to the application, such as a video call application and a switch 703 corresponding to the video call application. When the switch 703 is turned on, the mobile phone can apply the beauty level adjusted by the user to the video call application. That is, when the mobile phone uses the video call application to make a video call, the mobile phone can use the beauty level adjusted by the user to perform beauty processing on the image data obtained by the camera of the mobile phone. When the switch 703 is turned off, the mobile phone cannot apply the beauty level adjusted by the user to the video call application.

[0116] It should be noted that before using the electronic device to make a video call, the user can adjust the beauty level through the beauty level adjustment control included in the dynamic notification corresponding to the beauty level included in the video call beauty setting interface of the electronic device. The user can also adjust the beauty level through the beauty level adjustment control included in the dynamic notification corresponding to the beauty level included in the video call beauty setting interface of the electronic device when using the electronic device to make a video call. This is not limited in the embodiments of the present application.

[0117] In some examples, when a user uses an electronic device to make a video call, the electronic device may also display a dynamic notification corresponding to the beauty level in the control center, so that the user can adjust the beauty level through the beauty level adjustment controls included in the dynamic notification corresponding to the beauty level in the control center.

[0118] For example, taking the mobile phone as an example, when a user uses the mobile phone to make a video call, Figure 8 As shown in (a) of FIG. 8 , the mobile phone may display a control center 801. The control center 801 may include a video effect control 802. The video effect control 802 may be used to trigger the mobile phone to display a dynamic notification corresponding to the beauty level in the control center 801.

[0119] That is, when the mobile phone receives a trigger operation (such as a click operation) from the user on the video effect control 802, in response, Figure 8 As shown in (b) in FIG. 8 , the mobile phone can highlight the video effect control 802. At the same time, the mobile phone can display a dynamic notification 803 corresponding to the beauty level in the control center 801. The dynamic notification 803 corresponding to the beauty level can include a beauty level adjustment control, so that the user can adjust the beauty level through the beauty level adjustment control. In this example, the beauty level adjustment control includes a slider and a beauty level confirmation button as an example for schematic illustration.

[0120] It should be noted that when using an electronic device for a video call, the user can adjust the beauty level through the beauty level adjustment control included in the dynamic notification corresponding to the beauty level displayed in the control center of the electronic device. The user can also adjust the beauty level through the beauty level adjustment control included in the dynamic notification corresponding to the beauty level included in the control center of the electronic device before using the electronic device for a video call. This is not limited in the embodiments of the present application.

[0121] The following describes the beauty level adjustment method provided in the embodiment of the present application.

[0122] The beauty level adjustment method provided in the embodiment of the present application can be applied to the above-mentioned electronic devices. In some embodiments, the above-mentioned electronic devices can be mobile phones, tablet computers, handheld computers, personal computers (PCs), cellular phones, personal digital assistants (PDAs), and other electronic devices with beauty functions (i.e., electronic devices including beauty algorithms). The embodiment of the present application does not limit the specific form of the electronic device.

[0123] For example, taking the electronic device as a mobile phone, Fig. 9A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown.

[0124] like Fig. 9 As shown, the electronic device may include a processor 910, an external memory interface 920, an internal memory 921, a universal serial bus (USB) interface 930, a charging management module 940, a power management module 941, a battery 942, an antenna 1, an antenna 2, a mobile communication module 950, a wireless communication module 960, an audio module 970, a speaker 970A, a receiver 970B, a microphone 970C, an earphone interface 970D, a sensor module 980, a button 990, a motor 991, an indicator 992, a camera 993, a display screen 994, and a subscriber identification module (SIM) card interface 995, etc. Among them, the sensor module 980 may include a pressure sensor 980A, a gyroscope sensor 980B, an air pressure sensor 980C, a magnetic sensor 980D, an acceleration sensor 980E, a distance sensor 980F, a proximity light sensor 980G, a fingerprint sensor 980H, a temperature sensor 980J, a touch sensor 980K, an ambient light sensor 980L, a bone conduction sensor 980M, etc.

[0125] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0126] The processor 910 may include one or more processing units, for example, the processor 910 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0127] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0128] The processor 910 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 910 is a cache memory. The memory may store instructions or data that the processor 910 has just used or cyclically used. If the processor 910 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 910, and thus improves the efficiency of the system.

[0129] In some embodiments, the processor 910 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0130] The electronic device implements the display function through a GPU, a display screen 994, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 994 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 910 may include one or more GPUs that execute program instructions to generate or change display information.

[0131] The display screen 994 is used to display images, videos, etc. The display screen 994 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 994, where N is a positive integer greater than 1.

[0132] Of course, it is understandable that the above Fig. 9 The figure is only an exemplary description when the electronic device is in the form of a mobile phone. If the electronic device is in the form of a tablet computer, a handheld computer, a PC, a PDA, a wearable device (such as a smart watch, a smart bracelet), etc., the structure of the electronic device may include Fig. 9 The structure shown in the figure is less than Fig. 9 More structures are shown in the figure, which are not limited here.

[0133] It is understandable that, generally speaking, the realization of electronic device functions requires not only hardware support but also software cooperation.

[0134] The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. Taking the system as an example, the software structure of the electronic device is illustrated.

[0135] Fig.10 It is a software structure block diagram of the electronic device provided in the embodiment of the present application.

[0136] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. The system consists of the application layer, application framework layer, and hardware abstraction layer (HAL) from top to bottom.

[0137] The application layer can include a series of application packages. Fig.10As shown, the application layer may include a camera application. It should be noted that the camera application in the embodiment itself refers to a camera application capable of making video calls, which may also be referred to as a video call application.

[0138] The application layer may also include applications such as gallery, calendar, phone, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0139] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions. For example, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.

[0140] like Fig.10 As shown, in order to implement the beauty level adjustment method provided in the embodiment of the present application, the application framework layer may also include a field system service, a camera framework service (ie, CameraService) and a video beauty service.

[0141] The camera framework service can be used to receive the camera opening and streaming notification sent by the camera application when the camera application starts a video call (i.e. the camera application is started). The camera framework service can also be used to send a request to the camera HAL after the camera framework service receives the camera opening and streaming notification sent by the camera application. The camera framework service can also be used to receive image data returned by the camera HAL.

[0142] The camera framework service can also be used to send camera status notifications to the system service. The camera status notification can include the package name of the camera application, the ID of the camera opened by the camera application, and the status of the camera opened by the camera application. The camera framework service can also be used to obtain the beauty switch and beauty algorithm adjustment capabilities of the electronic device from the capability reporting module in the camera HAL.

[0143] The system service can be used to monitor whether the camera application is started, that is, whether the user page is started during a video call. In other words, the system service can register the start and close status of the user page (i.e., the video call page). The system service can also be used to receive the camera status notification sent by the camera framework service and determine the current scene based on the camera status notification. When the current scene is a video call and the beauty function scene needs to be used, the system service can also be used to send a scene notification to the video beauty service.

[0144] To implement the beauty level adjustment method provided in the embodiment of the present application, Fig.10As shown, system services may include notification services, other services, and camera proxy services. Among them, the notification service can be used to display capsule notifications corresponding to the beauty level, and the notification service can also be used to display dynamic notifications corresponding to the beauty level in the notification center, so that the user can adjust the beauty level through the capsule notification corresponding to the beauty level or the dynamic notification corresponding to the beauty level. Other services can be used to start the camera proxy service when the electronic device is turned on. Other services can also be used to obtain the low power mode of the electronic device and the on and off status of the screen of the electronic device. The camera proxy service can be used to start the video beauty service, and the camera proxy service can also be used to register the startup and shutdown status of the user page (i.e., the video call page).

[0145] The video beautification service can be used to receive scene notifications sent by the system service and determine the beautification strategy based on the scene notification (the beautification strategy can include turning on the beautification function and the beautification level of the beautification algorithm). The video beautification service can also be used to send instructions to the camera HAL (the instructions sent can include turning on the beautification function and the beautification level of the beautification algorithm).

[0146] To implement the beauty level adjustment method provided in the embodiment of the present application, Fig.10 As shown, the video beautification service may include a beautification service, a notification management module, a beautification strategy management module, and a command issuing module. Among them, the beautification service may be used to send a query capability notification to the video beautification strategy management module. The beautification strategy management module may be used to receive the query capability notification sent by the beautification service and obtain the beauty switch capability of the electronic device from the camera framework service. The beautification strategy management module may also be used to determine the beautification strategy. The command issuing module may be used to issue instructions corresponding to the beauty strategy to the camera HAL.

[0147] The HAL layer is an interface layer between the operating system kernel and the hardware circuit, and its purpose is to abstract the hardware. It hides the hardware interface details of a specific platform and provides a virtual hardware platform for the operating system, making it hardware-independent and portable on multiple platforms. The HAL layer provides a standard interface to display device hardware functions to the higher-level Java API framework (i.e., the framework layer). The HAL layer contains multiple library modules, each of which implements an interface for a specific type of hardware component, such as: audio HAL audio module, bluetooth HAL Bluetooth module, camera HAL camera module, sensors HAL sensor module (or Isensor service, sensor service).

[0148] like Fig.10 As shown, in order to implement the beauty level adjustment method provided in the embodiment of the present application, the HAL layer may also include a camera HAL (ie, CameraHAL).

[0149] The camera HAL can be used to receive requests from the camera framework service and obtain image data obtained by the camera. The camera HAL can also be used to return frames to the camera framework service (i.e., return image data to the camera framework service).

[0150] The camera HAL can also be used to receive instructions from the video beauty service, and based on the beauty level in the instructions from the video beauty service, perform beauty processing on the image data obtained by the camera through the beauty algorithm, so that the camera HAL can return the image data after beauty processing to the camera framework service.

[0151] To implement the beauty level adjustment method provided in the embodiment of the present application, Fig.10 As shown, the camera HAL may include a configuration service, a capability reporting module, a session management module, and a beauty algorithm service. Among them, the capability reporting module can be used to report the beauty switch of the electronic device and the adjustment capability of the beauty algorithm to the camera framework service when the electronic device is turned on. The configuration service can be used to receive instructions corresponding to the beauty policy issued by the command issuing module in the video beauty service. The session management module can be used to start the session corresponding to the video call when the electronic device makes a video call, and load the beauty algorithm service in the camera HAL. The beauty algorithm service can be used to perform beauty processing on the image data obtained by the camera according to the beauty parameters (ie, the beauty level).

[0152] Combine the following Fig.10 , the process of using a beautification algorithm during a video call on an electronic device is schematically illustrated. The process of using a beautification algorithm during a video call on an electronic device may include the following process. When the camera application starts a video call, that is, when the camera application is started (that is, the user page is started), the camera application can send a notification to the camera framework service to start the camera and allocate the stream. At the same time, the system service can obtain the camera status notification through the camera framework service (the camera status notification includes the package name of the camera application, the ID of the camera turned on by the camera application, and the status of the camera turned on by the camera application).

[0153] After the camera framework service receives the camera opening and streaming notification sent by the camera application, the camera framework service can send a request to the camera HAL. After the camera HAL receives the request sent by the camera framework service, the camera HAL can open the camera and obtain the image data obtained by the camera.

[0154] After the system service monitors the camera application's camera application's camera application startup, the system service can determine that the current scene is a video call scene that requires beauty enhancement based on the camera status notification sent by the camera framework service. After the video beauty service receives the scene notification sent by the system service, the video beauty service can send instructions to the camera HAL.

[0155] After the camera HAL receives the instruction issued by the video beauty service, the camera HAL can start the beauty algorithm and perform beauty processing on the image data obtained by the camera through the beauty algorithm based on the beauty level in the instruction issued by the video beauty service, so that the camera HAL can return the image data after beauty processing to the camera framework service (i.e. Fig.10 After that, the camera framework service can return the image data after beauty processing to the camera application (i.e. Fig.10 in the consumer), so that the camera application can display the image data after beauty processing.

[0156] The methods in the following embodiments can all be implemented in an electronic device having the above hardware structure or software structure.

[0157] The following is combined with Fig.11 , the beauty level adjustment method provided in the embodiment of the present application is described in detail, and the beauty level adjustment method can be applied to electronic devices (such as mobile phones, etc.).

[0158] like Fig.11 As shown, the electronic device may include a camera application, a system service, a video beautification service, a camera framework service, and a camera HAL. The system service may include a notification service, a camera proxy service, and other services. The video beautification service may include a beautification service, a notification management module, a beautification strategy management module, and a command issuing module. The camera HAL may include a configuration service, a capability reporting module, a session management module, and a beautification algorithm service.

[0159] like Fig.11 As shown, the beauty level adjustment method may include the following S1101-S1139.

[0160] S1101. Other services in the system service start the camera proxy service in the system service when the electronic device is turned on.

[0161] When the electronic device is turned on, other services in the system service of the electronic device can start the camera proxy service in the system service, so that the camera proxy service can register the start and close status of the user page with other services.

[0162] S1102. The camera proxy service in the system service registers the startup and shutdown status of the user page with other services in the system service.

[0163] After the camera proxy service in the system service is started, the camera proxy service in the system service can register the start and close status of the user page (i.e., the video call page) with other services in the system service. After the camera proxy service in the system service registers the start and close status of the user page with other services in the system service, other services in the system service can monitor the start and close status of the user page.

[0164] When the user page is activated, that is, when the user activates the video call function through the camera application, the electronic device displays the video call interface corresponding to the camera application. When the user page is closed, that is, when the user closes the video call function through the camera application, the electronic device does not display the video call interface corresponding to the camera application.

[0165] After the camera proxy service registers the startup and shutdown of the user page with other services in the system service, the camera application will report events about the user interface to other services in the system service. That is, when the user page is started, the camera application will report the event about the user page startup to the system service, so that other services in the system service can monitor the startup of the user page. When the user page is closed, the camera application will report the event about the user page closing to other services in the system service, so that other services in the system service can monitor the closing of the user page.

[0166] S1103: When the electronic device is turned on, the capability reporting module in the camera HAL reports the beauty switch and algorithm adjustment capability to the camera framework service.

[0167] When the electronic device is turned on, the capability reporting module in the camera HAL of the electronic device can report the beauty switch and algorithm adjustment capability to the camera framework service.

[0168] The beauty switch and algorithm adjustment capability may include the beauty switch capability and the beauty algorithm adjustment capability. The beauty switch capability refers to whether the electronic device has a beauty function, and if the electronic device has a beauty function, whether the beauty function has the ability to be turned on and off. The beauty algorithm adjustment capability refers to whether the electronic device has the ability to adjust the beauty level corresponding to the beauty algorithm.

[0169] In the embodiments of the present application, the beauty switch and algorithm level adjustment capabilities include an electronic device having a beauty function, the ability of the beauty function to be turned on or off when the electronic device has the beauty function, and the ability of the electronic device to adjust the beauty level corresponding to the beauty algorithm are used as examples for illustration.

[0170] It should be noted that after the camera framework service receives the beauty switch and algorithm level adjustment capability reported by the capability reporting module in the camera HAL, the camera framework service can save the beauty switch and algorithm level adjustment capability.

[0171] It should be noted that there is no order between the above S1101-S1102 and S1103. That is, the electronic device can first execute S1101-S1102 and then execute S1103; the electronic device can also first execute S1103 and then execute S1101-S1102; the electronic device can also execute S1101-S1102 and S1103 at the same time. In the embodiment of the present application, the electronic device can first execute S1101-S1102 and then execute S1103 as an example for schematic illustration.

[0172] S1104: The camera application receives an operation from the user to start a video call.

[0173] In the embodiment of the present application, the camera application is an application in the electronic device that can make a video call. The camera application can also be called a video call application.

[0174] When a user needs to make a video call through a camera application, the user can first open the camera application. After that, the user can start the video call through the camera application. That is, the camera application can receive the user's operation of starting the video call.

[0175] S1105: The camera application notifies the camera framework service to open the camera and allocate the stream.

[0176] After the camera application receives the user's operation to start a video call, the camera application can notify the camera framework service to turn on the camera and allocate the stream (i.e., allocate the stream for the camera). That is, the camera application can send a notification of turning on the camera and allocating the stream to the camera framework service.

[0177] The notification of opening the camera and allocating the stream may include the camera allocating stream parameters, the package name of the camera application, and the camera ID. The notification of opening the camera and allocating the stream may also include other contents, which are not limited in the embodiments of the present application. In the embodiments of the present application, the notification of opening the camera and allocating the stream includes the camera allocating stream parameters, the package name of the camera application, and the camera ID as an example for illustration.

[0178] Camera (i.e., the camera of an electronic device) streaming usually refers to configuring corresponding parameters and settings in a camera application so that the camera hardware can continuously output video or image streams.

[0179] The camera streaming parameters in the notification of opening the camera and streaming may include the resolution, frame rate, bit rate, encoding format, etc. corresponding to the video call interface of the camera application. These parameters will affect the quality of the video or image, the transmission efficiency, and the use of system resources. Therefore, the camera application needs to reasonably configure these parameters to meet actual needs and optimize performance. The camera streaming parameters may also include other parameters, which are not limited in the embodiments of the present application.

[0180] The camera ID included in the notification of opening the camera and streaming can be the ID of the front camera of the electronic device, the ID of the rear camera of the electronic device, or the ID of another camera of the electronic device. In other words, the camera ID can be used to indicate the camera used by the electronic device when the user makes a video call through the camera application.

[0181] S1106. The camera framework service notifies the session management module in the camera HAL to open the camera and allocate the stream.

[0182] After the camera framework service receives the notification of opening the camera and allocating the stream from the camera application, the camera framework service may notify the session management module in the camera HAL to open the camera and allocate the stream.

[0183] S1107: The session management module in the camera HAL starts the session.

[0184] After the session management module in the camera HAL receives the camera opening and streaming notification from the camera framework service, the session management module in the camera HAL may start a session.

[0185] The session management module in the camera HAL starts a session, that is, the session management module in the camera HAL starts a new camera usage session, so that the camera can be opened. The camera usage session, that is, the camera hardware, system services and camera applications can interact and transmit data, so that the camera application can obtain the image data obtained by the camera hardware and display the image data obtained by the camera hardware.

[0186] When the session management module in the camera HAL starts a new camera usage session, it can configure the direction, format, and transmission parameters of the data stream of the image data acquired by the camera according to the camera streaming parameters in the camera opening and streaming notification sent by the camera framework service (that is, the resolution, frame rate, bit rate, encoding format, etc. corresponding to the video call interface of the camera application).

[0187] S1108. The session management module in the camera HAL determines the video call scenario according to the resolution and package name in the camera stream, and loads the beauty algorithm service in the camera HAL.

[0188] After the session management module in the camera HAL starts the session, the session management module in the camera HAL can determine whether it is a video call scene. When the session management module in the camera HAL determines that it is a video call scene, the session management module in the camera HAL can load the beauty algorithm service in the camera HAL.

[0189] In some examples, the session management module in the camera HAL can determine whether it is a video call scenario, and can determine whether it is a video call scenario based on the resolution and package name for the camera HAL.

[0190] The resolution is the resolution included in the camera streaming parameters in the camera opening and streaming notification sent by the camera framework service, that is, the resolution corresponding to the video call interface of the camera application. The package name is the package name included in the camera opening and streaming notification sent by the camera framework service, that is, the package name of the camera application. That is to say, when the session management module in the camera HAL determines that the resolution included in the camera streaming parameters in the camera opening and streaming notification sent by the camera framework service is the resolution corresponding to the video call interface of the camera application, and the package name included in the camera opening and streaming notification sent by the camera framework service is the package name of the camera application, the session management module in the camera HAL can determine it as a video call scenario.

[0191] When the session management module in the camera HAL determines that it is a video call scenario, the session management module in the camera HAL can load the beauty algorithm service in the camera HAL. When the session management module in the camera HAL determines that it is not a video call scenario, the session management module in the camera HAL may not load the beauty algorithm service in the camera HAL.

[0192] It should be noted that the specific manner in which the session management module in the camera HAL determines whether it is a video call scenario may also be other manners, and the specific manner in which the session management module in the camera HAL determines whether it is a video call scenario is not limited in the embodiments of the present application. The embodiments of the present application take the camera HAL determining whether it is a video call scenario based on the resolution and the package name as an example for illustration.

[0193] In some examples, the session management module in the camera HAL can determine whether it is a video call scenario, and can determine whether it is a video call scenario for the camera HAL based on the resolution, frame rate, and package name.

[0194] The frame rate is the frame rate included in the camera streaming parameters in the camera opening and streaming notification sent by the camera framework service, that is, the frame rate corresponding to the video call interface of the camera application. That is to say, when the session management module in the camera HAL determines that the resolution included in the camera streaming parameters in the camera opening and streaming notification sent by the camera framework service is the resolution corresponding to the video call interface of the camera application, and the package name included in the camera opening and streaming notification sent by the camera framework service is the package name of the camera application, the session management module in the camera HAL can determine it as a video call scenario, and when the session management module in the camera HAL determines that the frame rate included in the camera streaming parameters in the camera opening and streaming notification sent by the camera framework service is the frame rate corresponding to the video call interface of the camera application, the session management module in the camera HAL can determine it as a video call scenario.

[0195] S1109. The beauty algorithm service in the camera HAL loads the beauty algorithm and initializes the beauty parameters.

[0196] After the session management module in the camera HAL loads the beautification algorithm service in the camera HAL, the beautification algorithm service in the camera HAL can load the beautification algorithm in the electronic device.

[0197] When the beauty algorithm service in the camera HAL loads the beauty algorithm in the electronic device, the beauty algorithm service in the camera HAL may initialize the beauty parameters, that is, the beauty algorithm service in the camera HAL may set the beauty parameters of the beauty algorithm to the initialization beauty parameters for the beauty algorithm.

[0198] That is, the beauty algorithm service in the camera HAL initializes the beauty parameters, that is, the beauty algorithm service in the camera HAL sets and configures the beauty parameters required by the beauty algorithm. The beauty parameters can be used to control the behavior and output of the beauty effect of the beauty algorithm on the image processing to achieve the effect expected by the user.

[0199] In some examples, the beauty parameters may be preset beauty parameters. The beauty parameters may also be beauty parameters corresponding to the video call scene determined by the beauty algorithm service in the camera HAL according to the video call scene. This is not limited in the embodiments of the present application.

[0200] In some examples, the beautification parameters may include parameters such as skin resurfacing effect parameters, whitening effect parameters, and initial beautification levels. Skin resurfacing effect parameters are parameters used by the beautification algorithm to perform skin resurfacing processing on the image data acquired by the camera to smooth the skin and reduce blemishes. Whitening effect parameters are parameters used by the beautification algorithm to perform whitening processing on the skin in the image data acquired by the camera to brighten the skin tone and enhance the overall beauty. Initial beautification level is the initial level of beautification processing performed by the beautification algorithm on the image data acquired by the camera, that is, the initial degree of beautification processing performed by the beautification algorithm on the image data acquired by the camera.

[0201] It should be noted that the specific types of the beautification parameters are not limited in the embodiments of the present application. In the embodiments of the present application, the beautification parameters may include a skin resurfacing effect parameter, a whitening effect parameter, and an initial beautification level.

[0202] S1110. The beauty algorithm service in the camera HAL returns success to the camera framework service.

[0203] After the beauty algorithm service in the camera HAL loads the beauty algorithm and initializes the beauty parameters successfully, the beauty algorithm service in the camera HAL can return success to the camera framework service. Thus, the camera framework service can determine that the beauty algorithm service loads the beauty algorithm and initializes the beauty parameters successfully.

[0204] After the camera framework service receives a successful response from the beauty algorithm service, the camera framework service may also record the state of the camera corresponding to the camera ID in the notification of opening the camera and allocating the stream. The state of the camera may include an active state and an idle state. The active state means that the camera is being used and transmitting image data. The idle state means that the camera is not being used or transmitting image data.

[0205] In some examples, the success return of the beauty algorithm service in the camera HAL to the camera framework service may include the status of the camera corresponding to the camera ID in the notification of turning on the camera and matching the stream, so that the camera framework service can also record the status of the camera corresponding to the camera ID in the notification of turning on the camera and matching the stream.

[0206] It should be noted that the camera framework service can also obtain the status of the camera corresponding to the camera ID in the notification of turning on the camera and allocating the stream through the camera hardware, so that the camera framework service can also record the status of the camera corresponding to the camera ID in the notification of turning on the camera and allocating the stream.

[0207] In the embodiment of the present application, the specific method for the camera framework service to obtain the status of the camera corresponding to the camera ID in the notification of opening the camera and allocating the stream is not limited.

[0208] S1111. The camera framework service returns success to the camera application.

[0209] After the camera framework service receives the success return from the beauty algorithm service in the camera HAL, the camera framework service may return success to the camera application, so that the camera application can determine that the beauty algorithm service has successfully loaded the beauty algorithm and initialized the beauty parameters.

[0210] S1112: The camera application requests the camera framework service to output a stream.

[0211] After the camera application receives a successful return from the camera framework service, the camera application may request a stream from the camera framework service.

[0212] The camera application requests an outflow from the camera framework service, that is, the camera application requests to obtain the camera hardware output or image data.

[0213] S1113. The camera framework service requests a stream from the session management module in the camera HAL.

[0214] After other services in the system service receive the request for outgoing stream from the camera application, the camera framework service can request outgoing stream from the session management module in the camera HAL.

[0215] S1114. The session management module in the camera HAL requests the beauty algorithm service in the camera HAL to process the beauty algorithm.

[0216] After the session management module in the camera HAL receives the request outflow of the camera framework service, the session management module in the camera HAL may request the beauty algorithm service in the camera HAL to process the beauty algorithm.

[0217] S1115. The beauty algorithm service in the camera HAL performs algorithm processing on the camera output frames according to the beauty parameters.

[0218] After the beauty algorithm service in the camera HAL receives the request for beauty algorithm processing from the session management module in the camera HAL, the beauty algorithm service in the camera HAL can perform algorithm processing on the camera output frames according to the beauty parameters (such as the initial beauty level corresponding to the beauty algorithm in the beauty parameters).

[0219] That is to say, after the beauty algorithm service in the camera HAL receives the request outflow from the session management module in the camera HAL, the beauty algorithm service in the camera HAL can obtain the image data sent by the camera of the electronic device (i.e., the camera), and can perform beauty algorithm processing on the image data obtained by the camera of the electronic device through the beauty algorithm according to the initial beauty level corresponding to the beauty algorithm in the beauty parameters.

[0220] In some examples, after the beauty algorithm service in the camera HAL receives the request for beauty algorithm processing from the session management module in the camera HAL, the beauty algorithm service in the camera HAL can perform algorithm processing on the camera outgoing frames according to the initial beauty level in the beauty parameters and other parameters (such as skin resurfacing effect parameters, whitening effect parameters, etc.). That is, after the beauty algorithm service in the camera HAL receives the request outgoing stream from the session management module in the camera HAL, the beauty algorithm service in the camera HAL can obtain the image data sent by the camera (i.e., the camera) of the electronic device, and can perform beauty algorithm processing on the image data obtained by the camera of the electronic device according to the initial beauty level in the beauty parameters and other parameters through the beauty algorithm.

[0221] S1116. The beauty algorithm service in the camera HAL outputs images to the camera application in a loop.

[0222] After the beauty algorithm service in the camera HAL processes the camera output frames with the beauty algorithm according to the beauty parameters, the beauty algorithm service in the camera HAL can cyclically output images to the camera application.

[0223] That is, after the beauty algorithm service in the camera HAL obtains the image data sent by the camera of the electronic device (i.e., the camera), the beauty algorithm is used to process the image data obtained by the camera of the electronic device according to the beauty parameters (such as the initial beauty level, etc.). Afterwards, the beauty algorithm service in the camera HAL can return the image data processed by the beauty algorithm to the camera application.

[0224] Since the camera of the electronic device can always obtain image data after it is started, the beauty algorithm service in the camera HAL can always process the camera frame output (i.e.) according to the beauty parameters through the beauty algorithm, and always return the image data processed by the beauty algorithm to the camera application (i.e., loop output).

[0225] After the camera application receives the image data processed by the beautification algorithm sent by the beautification algorithm service in the camera HAL, the camera application may display the image data processed by the beautification algorithm.

[0226] S1117. The camera framework service sends a camera status notification to the camera proxy service in the system service. The camera status notification includes a package name, a camera ID, and a camera status.

[0227] After the beauty algorithm service in the camera HAL loops out images to the camera application, the camera framework service can send a camera status notification to the camera proxy service in the system service. The camera status notification includes the package name, camera ID, and the status of the camera corresponding to the camera ID.

[0228] The package name included in the camera status notification is the package name corresponding to the camera application. The camera ID included in the camera status notification is the camera ID in the above-mentioned notification of opening the camera and configuring the stream. That is to say, the camera ID can indicate the ID of the camera used by the electronic device when making a video call (such as the ID corresponding to the front camera of the electronic device or the ID corresponding to the rear camera of the electronic device). The state of the camera is the state of the camera corresponding to the camera ID included in the camera status notification. The state of the camera corresponding to the camera ID is an idle state or an active state. That is to say, the state of the camera can indicate the state of the camera used by the electronic device when making a video call.

[0229] S1118. The camera proxy service in the system service records the camera status.

[0230] After the camera proxy service in the system service receives the camera status notification sent by the camera framework service, the camera proxy service in the system service can record the camera status, that is, the camera proxy service in the system service can record the package name of the camera application, the camera ID included in the camera status notification, and the status of the camera corresponding to the camera ID.

[0231] That is to say, the camera proxy service in the system service can save the application currently making a video call (i.e., the camera application), the camera used by the application currently making a video call (i.e., the camera ID included in the camera status notification), and the camera status corresponding to the camera (i.e., idle or active).

[0232] S1119. The camera application notifies other services in the system service to start the video call page.

[0233] After the camera proxy service in the system service records the camera status, the camera application can notify other services in the system service to start the video call page, that is, the camera application can request other services in the system service to start the video call interface.

[0234] S1120. Other services in the system service send a video call scene notification to the camera proxy service.

[0235] After other services in the system service receive the start video call page notified by the camera application, other services in the system service can determine that the current scene is a video call scene. After that, other services in the system service can send a video call scene notification to the camera proxy service in the system service.

[0236] S1121. The camera proxy service in the system service records the scene status.

[0237] After the camera proxy service in the system service receives the video call scene notification sent by other services in the system service, the camera proxy service in the system service may record the scene state, that is, the current scene of the electronic device is the video call scene.

[0238] S1124. The camera proxy service in the system service starts the beauty service in the video beauty service.

[0239] After the camera proxy service in the system service records the scene state, the camera proxy service in the system service can start the beauty service in the video beauty service.

[0240] S1123. The beauty service in the video beauty service sends a query capability notification to the beauty strategy management module.

[0241] After the camera proxy service in the system service starts the beautification service in the video beautification service, the beautification service in the video beautification service may send a query capability notification to the beautification strategy management module.

[0242] The query capability notification is used to instruct the beauty policy management module to query the beauty switch and algorithm adjustment capability of the electronic device through the camera framework service. That is, the query capability notification is used to instruct the beauty policy management module to query through the camera framework service whether the electronic device has the beauty function, if the electronic device has the beauty function, whether the beauty function has the ability to be turned on and off, and whether the electronic device has the ability to adjust the beauty level corresponding to the beauty algorithm.

[0243] S1124. The beauty policy management module in the video beauty service sends a query to the camera framework service for beauty switch capability.

[0244] After the beauty policy management module in the video beauty service receives the query capability notification sent by the beauty service in the video beauty service, the beauty policy management module in the video beauty service may send a query for beauty switch capability to the camera framework service.

[0245] S1125. The camera framework service returns the beauty switch capability to the beauty policy management module in the video beauty service.

[0246] After the camera framework service receives the query beauty switch capability sent by the beauty policy management module in the video beauty service, the camera framework service may return the beauty switch capability to the beauty policy management module in the video beauty service.

[0247] The beauty switch capability refers to whether the electronic device has a beauty function, and if the electronic device has a beauty function, whether the beauty function has the ability to be turned on and off.

[0248] It should be noted that when the camera framework service returns the beauty switch capability to the beauty strategy management module in the video beauty service, the camera framework service can also return the algorithm level adjustment capability to the beauty strategy management module in the video beauty service. The algorithm level adjustment capability refers to whether the electronic device has the ability to adjust the beauty level corresponding to the beauty algorithm.

[0249] In the embodiment of the present application, the camera framework service returns the beauty switch capability and the algorithm level adjustment capability to the beauty strategy management module in the video beautification service, and the beauty switch capability is that the electronic device has a beauty function, and when the electronic device has the beauty function, the beauty function has the ability to be turned on and off, and the electronic device has the ability to adjust the beauty level corresponding to the beauty algorithm.

[0250] It should be noted that after the beauty strategy management module in the video beauty service receives the beauty switch capability and algorithm level adjustment capability returned by the camera framework service, the beauty strategy management module in the video beauty service can record the beauty switch capability and algorithm level adjustment capability. Thus, the beauty strategy management module in the video beauty service performs beauty strategy management based on the beauty switch capability and algorithm level adjustment capability.

[0251] In some examples, the camera framework service returns the beauty switch capability and the algorithm level adjustment capability to the beauty policy management module in the video beauty service. The camera framework service may return the beauty switch and the algorithm level adjustment capability reported by the capability reporting module in the camera HAL to the beauty switch capability to the beauty policy management module in the video beauty service.

[0252] In some examples, when the camera framework service returns the beauty switch capability and the algorithm adjustment capability to the beauty policy management module in the video beauty service, the camera framework service may also return the camera ID and the state of the camera corresponding to the camera ID to the beauty policy management module in the video beauty service. That is, the state of the camera corresponding to the camera ID can be used to indicate the state of the camera used by the electronic device when making a video call.

[0253] S1126. Other services in the system service obtain the low power mode, and send the low power mode to the beauty service in the video beauty service.

[0254] After the camera framework service returns the beauty switch capability to the beauty policy management module in the video beauty service, other services in the system service can obtain the low power mode. The low power mode can be the low power mode in the settings of the electronic device.

[0255] That is, when the low power mode in the setting of the electronic device is turned on, other services in the system service can determine that the electronic device is in low power mode. When other services in the system service determine that the electronic device is in low power mode, other services in the system service can send the low power mode to the beauty service in the video beauty service.

[0256] When the low power mode in the setting of the electronic device is turned off, other services in the system service can determine that the electronic device is not in low power mode. When other services in the system service determine that the electronic device is not in low power mode, other services in the system service may not send the low power mode to the beauty service in the video beauty service.

[0257] In some examples, the low power mode may also be a state where the current remaining power of the electronic device is less than a preset power threshold. The specific value of the preset power threshold can be set according to actual conditions, and the specific value of the preset power threshold is not limited in the embodiments of the present application.

[0258] That is, when the current remaining power of the electronic device is less than the preset power threshold, other services in the system service can determine that the electronic device is in low power mode. When other services in the system service determine that the electronic device is in low power mode, other services in the system service can send a low power mode message to the beauty service in the video beauty service.

[0259] When the current remaining power of the electronic device is greater than or equal to the preset power threshold, other services in the system service may determine that the electronic device is not in low power mode. When other services in the system service determine that the electronic device is not in low power mode, other services in the system service may not send the low power mode to the beauty service in the video beauty service.

[0260] In some examples, other services in the system service obtain the low power mode, and other services in the system service can obtain the change of the low power mode by monitoring the system broadcast of the electronic device. That is, other services in the system service can determine whether the electronic device is in low power mode by monitoring the system broadcast of the electronic device.

[0261] S1127 . The beauty service in the video beauty service sends a low power mode to the beauty strategy management module.

[0262] After the beauty service in the video beauty service receives the low power mode sent by other services in the system service, the beauty service in the video beauty service can send the low power mode to the beauty policy management module in the video beauty service, so that the beauty policy management module in the video beauty service can perform policy management based on the low power mode.

[0263] It should be noted that when the beautification policy management module in the video beautification service performs policy management, it is also possible not to perform policy management based on the low power mode. That is to say, when the electronic device is not in low power mode, the beautification policy management module in the video beautification service can also perform policy management. In the embodiment of the present application, the example of the beautification policy management module in the video beautification service performing policy management based on the low power mode is used for schematic illustration. That is, the above S1126-S1127 are not steps that must be performed in the embodiment of the present application.

[0264] S1128. Other services in the system service obtain the screen on / off status and send the screen on / off status to the beauty strategy management module in the video beauty service.

[0265] After the camera framework service returns the beauty switch capability to the beauty policy management module in the video beauty service, other services in the system service can also obtain the screen on / off status. The screen on / off status can include the on state of the electronic device's screen or the off state of the electronic device's screen. The on state of the electronic device's screen is the state when the electronic device is working normally. The off state of the electronic device's screen is the state when the electronic device is in standby or sleep mode.

[0266] That is, when the screen of the electronic device is turned on, other services in the system service can determine that the screen is turned on and send the turned-on status to the beauty policy management module in the video beauty service. When the screen of the electronic device is turned off, other services in the system service can determine that the screen is turned off and send the turned-off status to the beauty policy management module in the video beauty service.

[0267] After other services in the system service determine the screen status of the electronic device (i.e., whether the screen is on or off), the other services in the system service can send the screen status of the electronic device to the beauty strategy management module in the video beauty service.

[0268] After the beautification strategy management module in the video beautification service receives the screen on / off status sent by other services in the system service, the beautification strategy management module in the video beautification service can perform strategy management based on the screen on / off status.

[0269] In some examples, other services in the system service obtain the screen on / off status, which can be other services in the system service by monitoring the system broadcast of the electronic device, thereby obtaining the change of the screen on / off status. That is, other services in the system service can determine the screen on / off status of the electronic device (that is, whether the screen of the electronic device is on or off) by monitoring the system broadcast of the electronic device.

[0270] It should be noted that when the beauty policy management module in the video beautification service performs policy management, it is also possible not to perform policy management based on the screen on / off state. Alternatively, the beauty policy management module in the video beautification service can also perform policy management based on other information (such as low power mode). In the embodiment of the present application, the example of the beauty policy management module in the video beautification service performing policy management based on the screen on / off state and the low power mode is used for schematic illustration. That is, the above S1128 is not a step that must be performed in the embodiment of the present application.

[0271] It should be noted that the beauty policy management module in the video beauty service can perform policy management based on the screen on / off state and the low power mode. There is no order between the above S1126-S1127 and S1128. That is, the electronic device can execute S1126-S1127 first, and then execute S1128; the electronic device can also execute S1128 first, and then execute S1126-S1127; the electronic device can also execute S1126-S1127 and S1128 at the same time. In the embodiment of the present application, the electronic device can execute S1126-S1127 first, and then execute S1128 as an example for schematic illustration.

[0272] S1129. The beauty strategy management module in the video beauty service determines whether capsule notification is currently supported. If it is supported, a new capsule parameter notification is sent to the notification service in the system service. If it is not supported, a notification page notification is sent to the notification service in the system service.

[0273] After the camera framework service returns the beauty switch capability to the beauty policy management module in the video beauty service, the beauty policy management module in the video beauty service can determine whether the electronic device currently supports capsule notifications (i.e., capsule notifications corresponding to the beauty level). That is, the beauty policy management module can determine whether the electronic device currently supports displaying capsule notifications corresponding to the beauty level.

[0274] In some examples, the beauty policy management module in the video beauty service can determine whether the electronic device currently supports capsule notifications, and the beauty policy management module in the video beauty service can determine whether the electronic device currently supports capsule notifications through a system configuration item. The system configuration item can be used to indicate whether the electronic device supports capsule notifications. That is, when the system configuration item indicates that the electronic device supports capsule notifications, the beauty policy management module in the video beauty service can determine that the electronic device currently supports capsule notifications. When the system configuration item indicates that the electronic device does not support capsule notifications, the beauty policy management module in the video beauty service can determine that the electronic device currently does not support capsule notifications.

[0275] When the beauty policy management module in the video beauty service determines that the electronic device currently supports capsule notifications, the beauty policy management module in the video beauty service can send a new capsule parameter notification to the notification service in the system service. The new capsule parameter notification can be used to indicate that the notification service in the system service can display capsule notifications corresponding to the beauty level.

[0276] In some examples, the newly added capsule parameters may include display parameters of the capsule notification corresponding to the beauty level. The display parameters corresponding to the capsule notification corresponding to the beauty level may include an icon of the capsule notification corresponding to the beauty level, indication information included in the capsule notification corresponding to the beauty level, display time of the capsule notification corresponding to the beauty level, and display position of the capsule notification corresponding to the beauty level. The indication information included in the capsule notification corresponding to the beauty level may be used to indicate the state of the current beauty algorithm (i.e., whether the beauty algorithm switch is in the on state or the off state).

[0277] The display time of the capsule notification corresponding to the beauty level, that is, the time for the electronic device to display the capsule notification corresponding to the beauty level, such as 10 seconds. That is to say, the electronic device can display the capsule notification corresponding to the beauty level according to the display parameters of the capsule notification corresponding to the beauty level in the newly added capsule parameters. When the electronic device displays the capsule notification corresponding to the beauty level, if the electronic device does not receive the user's operation (such as a click operation) on the capsule notification corresponding to the beauty level, after 10 seconds, the electronic device can hide the capsule notification corresponding to the beauty level.

[0278] It should be noted that the display parameters of the capsule notification corresponding to the beauty level may also include other parameters of the capsule notification corresponding to the beauty level, such as a beauty switch, etc., which are not limited in the embodiments of the present application. The beauty switch can also be used to trigger the electronic device to turn on the beauty function (i.e., perform beauty processing on the image data obtained by the camera of the electronic device through the beauty algorithm), and can also be used to trigger the electronic device to turn off the beauty function (i.e., do not perform beauty processing on the image data obtained by the camera of the electronic device through the beauty algorithm). The initial state of the beauty switch in the capsule notification corresponding to the beauty level can be an off state or an on state. The initial state of the beauty switch in the capsule notification corresponding to the beauty level is not limited in the embodiments of the present application.

[0279] It should be noted that the newly added capsule parameters may also include display parameters of dynamic notifications corresponding to the beauty level. The display parameters of dynamic notifications corresponding to the beauty level may include icons of dynamic notifications corresponding to the beauty level, indication information included in the dynamic notifications corresponding to the beauty level, display parameters of beauty level adjustment controls, display positions of dynamic notifications corresponding to the beauty level, display time of dynamic notifications corresponding to the beauty level, etc. The indication information included in the dynamic notifications corresponding to the beauty level may be used to prompt the user to adjust the beauty level, etc.

[0280] The display time of the dynamic notification corresponding to the beauty level, that is, the time for the electronic device to display the dynamic notification corresponding to the beauty level, such as 10 seconds. That is to say, the electronic device can display the dynamic notification corresponding to the beauty level according to the display time of the dynamic notification corresponding to the beauty level in the newly added capsule parameter. When the electronic device displays the dynamic notification corresponding to the beauty level, if the electronic device does not receive the user's operation on the dynamic notification corresponding to the beauty level (such as the user's adjustment operation on the beauty level adjustment control included in the dynamic notification corresponding to the beauty level), after 10 seconds, the electronic device can hide the dynamic notification corresponding to the beauty level.

[0281] The display parameters of the beauty level adjustment control may include an icon corresponding to the beauty level adjustment control, prompt information of the beauty level range, etc. For example, when the beauty level adjustment control includes a slider and a beauty level confirmation button, the display parameters of the beauty level adjustment control may include prompt information of the beauty level range (such as the beauty level range is 0 to 100), and an icon corresponding to the beauty level adjustment control (i.e., the icon corresponding to the slider and the beauty level confirmation button).

[0282] That is to say, when the newly added capsule parameters can also include display parameters of capsule notifications corresponding to the beauty level and display parameters of dynamic notifications corresponding to the beauty level, the electronic device can display the capsule notification corresponding to the beauty level according to the display parameters of the capsule notification corresponding to the beauty level included in the newly added capsule parameters. Afterwards, when the electronic device receives a user's display operation on the dynamic notification corresponding to the beauty level, such as a user's click operation on the capsule notification corresponding to the beauty level, the electronic device can display the dynamic notification corresponding to the beauty level according to the display parameters of the dynamic notification corresponding to the beauty level included in the newly added capsule parameters. Thus, the user can adjust the beauty level according to the beauty level adjustment control included in the dynamic notification corresponding to the beauty level.

[0283] It should be noted that the display parameters of the dynamic notification corresponding to the beauty level may also include other parameters of the dynamic notification corresponding to the beauty level, such as the beauty switch, the initial beauty level, etc., which are not limited in the embodiments of the present application. The beauty switch can also be used to trigger the electronic device to turn on the beauty function (i.e., the image data obtained by the camera of the electronic device is beautified through the beauty algorithm), and can also be used to trigger the electronic device to turn off the beauty function (i.e., the image data obtained by the camera of the electronic device is not beautified through the beauty algorithm). The initial state of the beauty switch in the dynamic notification corresponding to the beauty level can be an off state or an on state. In the embodiments of the present application, the initial state of the beauty switch in the dynamic notification corresponding to the beauty level is not limited. The initial beauty level is the initial beauty level corresponding to the beauty level. The specific level of the initial beauty level is preset. In the embodiments of the present application, the specific level of the initial beauty level is not limited.

[0284] When the beauty policy management module in the video beauty service determines that the electronic device currently does not support capsule notifications, the beauty policy management module in the video beauty service can send a notification page notification to the notification service in the system service. The notification page notification can be used to instruct the notification service to display a dynamic notification corresponding to the beauty level in the notification center of the electronic device. Thus, the user can adjust the beauty level through the beauty level adjustment control included in the dynamic notification corresponding to the beauty level.

[0285] The notification page notification may include display parameters of the dynamic notification corresponding to the beauty level. That is, the display parameters of the dynamic notification corresponding to the beauty level in the notification page notification may include the icon of the dynamic notification corresponding to the beauty level, the indication information included in the dynamic notification corresponding to the beauty level, the display parameters of the beauty level adjustment control, the display position of the dynamic notification corresponding to the beauty level, etc. That is, the electronic device can display the dynamic notification corresponding to the beauty level in the notification center of the electronic device according to the display parameters of the dynamic notification corresponding to the beauty level included in the notification page notification. Thus, the user can adjust the beauty level according to the beauty level adjustment control included in the dynamic notification corresponding to the beauty level.

[0286] That is, when the beauty policy management module in the video beauty service determines that the electronic device currently supports capsule notifications, the beauty policy management module in the video beauty service can notify the service in the system service to display capsule notifications corresponding to the beauty level. When the beauty policy management module in the video beauty service determines that the electronic device currently does not support capsule notifications, the beauty policy management module in the video beauty service can notify the notification service in the system service to display dynamic notifications corresponding to the beauty level in the notification center of the electronic device.

[0287] It should be noted that when the beauty policy management module in the video beauty service determines that the electronic device does not support capsule notifications and does not know the dynamic notification corresponding to the beauty level displayed in the notification center, the beauty policy management module in the video beauty service can also determine the corresponding beauty policy. The beauty policy can be a default beauty policy, that is, the beauty policy can include a beauty switch state parameter (that is, the default beauty switch state is the on state) and a default beauty level (that is, the beauty level is a preset beauty level).

[0288] When the beauty policy management module in the video beauty service determines that the electronic device does not support capsule notifications and does not know the dynamic notification corresponding to the beauty level displayed in the notification center, the beauty policy management module in the video beauty service can also determine the corresponding beauty policy. The beauty policy can be a default beauty policy, that is, the beauty policy can include a beauty switch state parameter (that is, the default beauty switch state is off).

[0289] S1130. If the notification service in the system service supports capsule notification, the capsule notification is displayed; if it does not support capsule notification, the notification center is displayed.

[0290] After the beauty policy management module in the video beauty service sends a new capsule parameter notification to the notification service in the system service, or sends a notification page notification to the notification service in the system service, if the notification service in the system service supports capsule notifications, the capsule notification will be displayed; if it does not support capsule notifications, the notification center will display it (i.e., the dynamic notification corresponding to the beauty level will be displayed in the notification center of the electronic device).

[0291] That is, when the notification service in the system service receives the notification of the newly added capsule parameters sent by the video beautification strategy management module, the notification service in the system service can display the capsule notification corresponding to the beautification level according to the newly added capsule parameters. After the notification service in the system service displays the capsule notification corresponding to the beautification level, the notification service in the system service can receive a user's click operation on the capsule notification corresponding to the beautification level. After the notification service receives a user's click operation on the capsule notification corresponding to the beautification level, the notification service can display a dynamic notification corresponding to the beautification level, so that the user can adjust the beautification level through the beauty level adjustment control included in the dynamic notification corresponding to the beauty level.

[0292] For example, when the notification service in the system service receives the new capsule parameter notification sent by the video beautification strategy management module, the notification service in the system service can display the video call interface (such as the video beautification level) of the electronic device according to the display parameters of the capsule notification corresponding to the beautification level in the new capsule parameter notification. Figure 4 (a) Figure 4 (b), a video call interface of an electronic device as shown in (d) of 4), a desktop of an electronic device (as shown Figure 5 A capsule notification corresponding to the beauty level is displayed on the desktop of the electronic device shown in a).

[0293] It should be noted that the notification service in the system service can also display the capsule notification corresponding to the beauty unbinding in the control center of the electronic device, the notification center of the electronic device, or the setting interface corresponding to the beauty level of the electronic device according to the display parameters of the capsule notification corresponding to the beauty level in the newly added capsule parameter notification.

[0294] After the notification service in the system service displays the capsule notification corresponding to the beauty level according to the display parameters of the capsule notification corresponding to the beauty level in the newly added capsule parameter notification, if the electronic device does not receive a trigger operation (such as a click operation, etc.) from the user on the capsule notification corresponding to the beauty level within the display time of the capsule notification corresponding to the beauty level, the electronic device hides the beauty level capsule notification.

[0295] If the electronic device receives a trigger operation (such as a click operation, etc.) of the capsule notification corresponding to the beauty level by the user within the display time of the capsule notification corresponding to the beauty level, the electronic device may display the dynamic notification corresponding to the beauty level according to the display parameters of the dynamic notification corresponding to the beauty level in the newly added capsule parameter notification, that is, on the video call interface of the electronic device (such as Figure 2 , Figure 3 , Figure 4 (c) and Figure 6 A dynamic notification corresponding to the beauty level is displayed in the video call interface of the electronic device shown in ), the desktop of the electronic device, the notification center of the electronic device, the control center of the electronic device, or the beauty level setting interface of the electronic device.

[0296] It should be noted that after the notification service in the system service displays the dynamic notification corresponding to the beauty level according to the display parameters of the dynamic notification corresponding to the beauty level in the newly added capsule parameter notification, if the electronic device does not receive the user's triggering operation on the dynamic notification corresponding to the beauty level (such as the user's adjustment operation on the beauty level adjustment control, etc.) within the display time of the dynamic notification corresponding to the beauty level, the electronic device hides the dynamic notification of the beauty level. In some examples, when the notification service in the system service receives the notification page notification sent by the video beauty strategy management module, the notification service in the system service can display the dynamic notification corresponding to the beauty level in the notification center of the electronic device according to the notification page notification. After the notification service displays the dynamic notification corresponding to the beauty level in the notification center of the electronic device, the user can adjust the beauty level through the beauty level adjustment control included in the dynamic notification corresponding to the beauty level.

[0297] For example, when the notification service in the system service receives a notification page notification sent by the video beautification strategy management module, the notification service in the system service can display the dynamic notification corresponding to the beauty level in the notification center of the electronic device according to the display parameters of the dynamic notification corresponding to the beauty level in the notification page notification.

[0298] It should be noted that after the notification service in the system service receives the new capsule parameter notification sent by the beauty policy management module in the video beauty service, before the notification service in the system service displays the capsule notification (i.e., the capsule notification corresponding to the beauty level), the notification service in the system service can determine whether it is the first time to receive the new capsule parameter notification after the electronic device is started.

[0299] When the notification service in the system service determines that the new capsule parameter notification is received for the first time after the electronic device is started (that is, the notification service in the system service receives the new capsule notification parameter for the first time), the electronic device can display the dynamic notification corresponding to the beauty level according to the display parameters of the dynamic notification corresponding to the beauty level in the new capsule parameters.

[0300] When the notification service in the system service determines that it is not the first time to receive the newly added capsule parameter notification after the electronic device is started (i.e., the notification service in the system service does not receive the newly added capsule notification parameter for the first time), the electronic device may display the capsule notification corresponding to the beauty level according to the display parameter of the capsule notification corresponding to the beauty level in the newly added capsule parameter. Afterwards, when the notification service in the system service receives a click operation of the user on the capsule notification corresponding to the beauty level, after the notification service receives a click operation of the user on the capsule notification corresponding to the beauty level, the notification service in the system service may display the dynamic notification corresponding to the beauty level, so that the user can adjust the beauty level through the beauty level adjustment control included in the dynamic notification corresponding to the beauty level.

[0301] S1131. The notification service in the system service receives the user's operation on the beauty switch and level adjustment.

[0302] After the notification service in the system service displays the capsule notification corresponding to the beauty level, or the dynamic notification corresponding to the beauty level is displayed in the notification center of the electronic device, the notification service in the system service can receive the user's operation on the beauty switch and level adjustment (the user's operation on the beauty switch and level adjustment in the embodiment of the present application is also the first operation mentioned above).

[0303] The user's operation on the beauty switch refers to the user's operation on or off the beauty function. The user's operation on the beauty level adjustment refers to the user's operation on adjusting the beauty level when the beauty function is turned on.

[0304] It should be noted that when the notification service in the system service displays the capsule notification corresponding to the beauty level, the user's operations on the beauty switch and level adjustment may include the user's click operation on the capsule notification corresponding to the beauty level, the user's adjustment operation on the beauty switch in the dynamic notification corresponding to the beauty level, and the adjustment operation on the beauty level adjustment control.

[0305] When the notification service in the system service displays a dynamic notification corresponding to the beauty level in the notification center of the electronic device, the user's operations on the beauty switch and level adjustment may include the user's adjustment operations on the beauty switch in the dynamic notification corresponding to the beauty level and the adjustment operations on the beauty level adjustment control.

[0306] It should be noted that when the user's adjustment operation on the beauty switch in the dynamic notification corresponding to the beauty level is the user's operation of turning off the beauty switch, the user's operation on the beauty switch and level adjustment may not include the user's adjustment operation on the beauty level adjustment control.

[0307] When the user's adjustment operation on the beautification switch in the dynamic notification corresponding to the beautification level is an operation of turning on the beautification switch by the user, the user's operation on the beautification switch and the level adjustment may include the user's adjustment operation on the beautification level adjustment control.

[0308] S1132. The notification service in the system service sends a notification of the user's beauty switch and adjustment status to the notification management module in the video beauty service.

[0309] After the notification service in the system service receives the user's operation on the beauty switch and the level adjustment, the notification service in the system service can send the user's beauty switch and level adjustment status notification to the notification management module in the video beauty service.

[0310] User beauty switch and level adjustment status notification may include the status of the beauty switch (i.e., on or off) after the user operates the beauty switch, and the beauty level after the user adjusts the beauty level.

[0311] S1133. The notification management module in the video beautification service sends a user beautification switch and adjustment status notification to the beautification strategy management module in the video beautification service.

[0312] After the notification management module in the video beautification service receives the user beautification switch and adjustment status notification sent by the notification service in the system service, the notification management module in the video beautification service may send the user beautification switch and adjustment status notification to the beautification strategy management module in the video beautification service.

[0313] S1134. The beauty policy management module in the video beauty service performs policy management.

[0314] After the beauty strategy management module in the video beauty service receives the user beauty switch and adjustment status sent by the notification management module in the video beauty service, the beauty strategy management module in the video beauty service can perform strategy management. That is, the beauty strategy management module in the video beauty service can determine different beauty strategies according to the user beauty switch and adjustment status.

[0315] The beauty strategy may include beauty switch state parameters and level adjustment parameters. The beauty switch parameters refer to the state of the beauty switch (i.e., on or off state), and the level adjustment parameters refer to the beauty level adjusted by the user using the beauty level adjustment control.

[0316] In some examples, after the beauty strategy management module in the video beauty service receives the user beauty switch and level adjustment state sent by the notification management module in the video beauty service, the beauty strategy management module in the video beauty service determines different beauty strategies according to the user beauty switch and level adjustment state, which can be: the beauty strategy management module in the video beauty service can determine the corresponding beauty strategy according to the user beauty switch and level adjustment state. That is, when the user beauty switch and level adjustment state include the state of the beauty switch being on, and the beauty level after the user adjusts the beauty level adjustment control, the beauty strategy includes the beauty switch state parameter that the beauty switch is on, and the level adjustment parameter is the beauty level after the user adjusts the beauty level adjustment control. When the user beauty switch and level adjustment state include the state of the beauty switch being off, the beauty strategy management module in the video beauty service can determine the corresponding beauty strategy, and the beauty strategy includes the beauty switch state parameter that the beauty switch is off.

[0317] In some examples, after the beauty strategy management module in the video beauty service receives the user beauty switch and level adjustment status sent by the notification management module in the video beauty service, the beauty strategy management module in the video beauty service determines different beauty strategies according to the user beauty switch and level adjustment status. It can also be: the beauty strategy management module in the video beauty service can determine the corresponding beauty strategy according to the power status of the electronic device, the user beauty switch and the level adjustment status. The power status of the electronic device can include a low power mode and a non-low power mode.

[0318] That is, when the electronic device is in the low power mode, the beauty strategy management module in the beauty service can determine the corresponding beauty strategy, and the beauty strategy includes a beauty switch state parameter that the state of the beauty switch is the off state.

[0319] When the electronic device is in a non-low-power mode and the user's beauty switch and level adjustment status include the beauty switch being on and the beauty level after the user adjusts the beauty level, the beauty strategy management module in the beauty service determines the corresponding beauty strategy. The beauty strategy may include a beauty switch status parameter that the beauty switch is on (that is, the user selects the beauty switch to be on), and a level adjustment parameter that is the beauty level after the user adjusts the beauty level adjustment control.

[0320] When the electronic device is in a non-low power mode and the user's beauty switch and adjustment status include the beauty switch being in the off state, the beauty strategy management module in the beauty service determines the corresponding beauty strategy, and the beauty strategy may include a beauty switch status parameter that the beauty switch is in the off state.

[0321] In some examples, after the beauty strategy management module in the video beautification service receives the user beauty switch and level adjustment status sent by the notification management module in the video beautification service, the beauty strategy management module in the video beautification service determines different beauty strategies according to the user beauty switch and level adjustment status. It can also be: the beauty strategy management module in the video beautification service can determine the corresponding beauty strategy according to the low power mode of the electronic device, the user beauty switch and the level adjustment status.

[0322] When the electronic device is in the low power mode, the beauty strategy management module in the beauty service can determine the corresponding beauty strategy, and the beauty strategy includes a beauty switch state parameter that the state of the beauty switch is an off state.

[0323] When the electronic device is in a non-low-power mode, the beauty strategy management module in the beauty service determines the corresponding beauty strategy. The beauty strategy may include a beauty switch state parameter, which is the state of the beauty switch is on, and a level adjustment parameter, which is the beauty level after the user adjusts the beauty level adjustment control.

[0324] When the electronic device is in a non-low power mode, the beauty policy management module in the beauty service determines a corresponding beauty policy, and the beauty policy may include a beauty switch state parameter that the state of the beauty switch is an off state.

[0325] In some examples, after the beauty policy management module in the video beauty service receives the user beauty switch and level adjustment status sent by the notification management module in the video beauty service, the beauty policy management module in the video beauty service determines different beauty policies according to the user beauty switch and the level adjustment status. It can also be: the beauty policy management module in the video beauty service can determine the corresponding beauty policy according to the screen on and off status of the electronic device, the user beauty switch and the level adjustment status. The screen on and off status of the electronic device in the embodiment of the present application can also be referred to as the screen status of the electronic device. That is, the screen status of the electronic device can include a screen on status (that is, the screen of the electronic device is on) and a screen off status (that is, the screen of the electronic device is off).

[0326] When the screen-on / off state of the electronic device is that the screen of the electronic device is in the off state, the beauty strategy management module in the beauty service can determine the corresponding beauty strategy, and the beauty switch state parameter included in the beauty strategy is that the state of the beauty switch is in the off state.

[0327] When the screen on and off state of the electronic device is that the screen of the electronic device is on, and the user's beauty switch and level adjustment state includes the beauty switch being on and the beauty level after the user adjusts the beauty level, the beauty policy management module in the beauty service determines the corresponding beauty policy. The beauty policy may include a beauty switch state parameter that the beauty switch is on (that is, the user selects the beauty switch to be on), and a level adjustment parameter that is the beauty level after the user adjusts the beauty level adjustment control.

[0328] When the screen-on / off state of the electronic device is that the screen of the electronic device is on, and the user's beauty switch and adjustment state includes that the beauty switch is off, the beauty strategy management module in the beauty service determines the corresponding beauty strategy, and the beauty strategy may include a beauty switch state parameter that the beauty switch is off.

[0329] In some examples, after the beauty policy management module in the video beautification service receives the user beauty switch and level adjustment status sent by the notification management module in the video beautification service, the beauty policy management module in the video beautification service determines different beauty strategies according to the user beauty switch and level adjustment status. It can also be: the beauty policy management module in the video beautification service can determine the corresponding beauty strategy according to the low power mode of the electronic device, the screen on and off status of the electronic device, the user beauty switch and the level adjustment status.

[0330] When the electronic device is in low power mode and the screen status of the electronic device is the off state or the on state, the beauty strategy management module in the beauty service can determine the corresponding beauty strategy, and the beauty strategy includes the beauty switch status parameter that the beauty switch status is the off state.

[0331] When the electronic device is in a non-low-power mode and the screen-on / off state of the electronic device is that the screen of the electronic device is in the off state, the beauty strategy management module in the beauty service can determine the corresponding beauty strategy, and the beauty strategy includes a beauty switch state parameter that the beauty switch is in the off state.

[0332] When the electronic device is in a non-low power mode and the screen-on / off state of the electronic device is the off state, the beauty strategy management module in the beauty service determines the corresponding beauty strategy, and the beauty strategy may include a beauty switch state parameter, that is, the state of the beauty switch is the off state.

[0333] When the electronic device is in a non-low-power mode, the screen-on / off state of the electronic device is that the screen of the electronic device is in the on state, and the user's beauty switch and level adjustment state includes the beauty switch being in the on state and the beauty level after the user adjusts the beauty level, the beauty strategy management module in the beauty service determines the corresponding beauty strategy, and the beauty strategy may include a beauty switch state parameter that the beauty switch is in the off state.

[0334] When the electronic device is in a non-low-power mode, the screen-on / off state of the electronic device is that the screen of the electronic device is in the on state, and the user's beauty switch and adjustment state include that the beauty switch is in the off state, the beauty strategy management module in the beauty service determines the corresponding beauty strategy, and the beauty strategy may include a beauty switch state parameter that the beauty switch is in the off state.

[0335] In some examples, when a user uses an electronic device to make a video call, the electronic device may perform beautification processing on image data acquired by a front camera (i.e., front-facing camera), and the electronic device may not perform beautification processing on image data acquired by a rear camera (i.e., rear-facing camera).

[0336] That is to say, after the beauty strategy management module in the video beautification service receives the user beauty switch and level adjustment status sent by the notification management module in the video beautification service, the beauty strategy management module in the video beautification service determines different beauty strategies according to the user beauty switch and level adjustment status, which can be: the beauty strategy management module in the video beautification service can determine whether the camera used by the electronic device during the video call is the front camera, and whether the status of the camera is active according to the camera ID returned by the camera framework service and the status of the camera corresponding to the camera ID.

[0337] That is, when the camera ID returned by the camera framework service is the ID of the front camera of the electronic device and the status of the front camera is active, the beauty strategy management module in the video beauty service can determine that the camera used by the electronic device during the video call is the front camera and the status of the front camera is active.

[0338] Afterwards, the beauty strategy management module in the video beauty service can determine the corresponding beauty strategy according to the user's beauty switch and level adjustment status. That is, when the user's beauty switch and level adjustment status include the state of the beauty switch being on, and the beauty level after the user adjusts the beauty level adjustment control, the beauty strategy management module in the video beauty service can determine the corresponding beauty strategy, and the beauty strategy includes the beauty switch state parameter that the beauty switch is on, and the level adjustment parameter is the beauty level after the user adjusts the beauty level adjustment control. When the user's beauty switch and level adjustment status include the state of the beauty switch being off, the beauty strategy management module in the video beauty service can determine the corresponding beauty strategy, and the beauty strategy includes the beauty switch state parameter that the beauty switch is off.

[0339] When the camera ID returned by the camera framework service is the ID of the rear camera of the electronic device, or the camera ID returned by the camera framework service is the ID of the front camera of the electronic device, but the state of the front camera is idle, the beauty policy management module in the video beauty service can determine that the electronic device does not use the front camera during the video call. Afterwards, the beauty policy management module in the video beauty service can determine the corresponding beauty policy, and the beauty policy can include a beauty switch state parameter that the state of the beauty switch is off.

[0340] S1135. The beauty strategy management module in the video beauty service sends the beauty switch and adjustment parameters to the command sending module in the video beauty service.

[0341] After the beauty strategy management module in the video beautification service determines the beauty strategy (i.e., the beauty switch and level adjustment parameters) according to the user's beauty switch and level adjustment status, the beauty strategy management module in the video beautification service can send the beauty strategy (i.e., the beauty switch and level adjustment parameters) to the command issuing module in the video beautification service.

[0342] The beauty switch and adjustment parameters refer to the beauty switch status parameters and adjustment parameters included in the beauty strategy. The beauty switch parameters refer to the state of the beauty switch (i.e., on or off), and the adjustment parameters refer to the beauty level adjusted by the user using the beauty level adjustment control.

[0343] S1136. The command issuing module in the video beautification service issues the beautification switch and adjustment parameters to the configuration service in the camera HAL.

[0344] After the command issuing module in the video beautification service receives the beautification switch and level adjustment parameters issued by the beautification strategy management module in the video beautification service, the command issuing module in the video beautification service may issue the beautification switch and level adjustment parameters to the configuration service in the camera HAL.

[0345] S1137. The configuration service in the camera HAL sends the modified beauty parameters to the beauty algorithm service in the camera HAL.

[0346] After the configuration service in the camera HAL receives the beauty switch and level adjustment parameters sent by the command sending module in the video beauty service, the configuration service in the camera HAL can send the modified beauty parameters (i.e., the beauty level after the user's modification) to the beauty algorithm service in the camera HAL.

[0347] S1138. The beauty algorithm service in the camera HAL saves the modified beauty parameters.

[0348] After the beauty algorithm service in the camera HAL receives the modified beauty parameters (ie, the beauty level after the user's modification) sent by the configuration service in the camera HAL, the beauty algorithm service in the camera HAL may save the modified beauty parameters.

[0349] S1139. The beauty algorithm service in the camera HAL performs algorithm processing on the camera output frames according to the modified beauty parameters.

[0350] After the beauty algorithm service in the camera HAL saves the modified beauty parameters, the beauty algorithm service in the camera HAL may perform algorithm processing on camera output frames according to the modified beauty parameters.

[0351] That is to say, after the beauty algorithm service in the camera HAL saves the modified beauty parameters, the beauty algorithm service in the camera HAL can perform beauty algorithm processing on the image data acquired by the camera of the electronic device through the beauty algorithm according to the modified beauty parameters (i.e., the beauty level after user modification).

[0352] After the beauty algorithm service in the camera HAL processes the camera output frames with the beauty algorithm according to the modified beauty parameters, the beauty algorithm service in the camera HAL can cyclically output images to the camera application.

[0353] That is, the beauty algorithm service in the camera HAL performs beauty algorithm processing on the image data acquired by the camera of the electronic device according to the modified beauty level through the beauty algorithm. Afterwards, the beauty algorithm service in the camera HAL can return the image data processed by the beauty algorithm using the modified beauty level to the camera application.

[0354] Since the camera of the electronic device has been acquiring image data after it is turned on, the beauty algorithm service in the camera HAL can perform algorithm processing on the camera frames according to the modified beauty parameters, and return image data processed by the beauty algorithm using the modified beauty level to the camera application (i.e., loop image output).

[0355] After the camera application receives the image data processed by the beautification algorithm using the modified beautification level and sent by the beautification algorithm service in the camera HAL, the camera application may display the image data processed by the beautification algorithm using the modified beautification level.

[0356] In the solution of the present application, during a video call, the electronic device can display a dynamic notification corresponding to the beauty level including a beauty level adjustment control. Thus, the user can adjust the beauty level through the beauty level adjustment control. Therefore, the solution of the present application can meet the needs of different users for different beauty levels, thereby improving the user experience.

[0357] Corresponding to the method in the aforementioned embodiment, the embodiment of the present application further provides a beauty level adjustment device. The beauty level adjustment device can be applied to an electronic device to implement the method in the aforementioned embodiment. The function of the beauty level adjustment device can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0358] It should be understood that the division of units or modules (hereinafter referred to as units) in the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or physically separated. And the units in the device can all be implemented in the form of software calling through processing elements; or all in the form of hardware; or some units can be implemented in the form of software calling through processing elements, and some units can be implemented in the form of hardware.

[0359] For example, each unit can be a separately established processing element, or it can be integrated in a certain chip of the device. In addition, it can also be stored in a memory in the form of a program, and called and executed by a certain processing element of the device. In addition, all or part of these units can be integrated together, or they can be implemented independently. The processing element described here can also be called a processor, which can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each unit above can be implemented by an integrated logic circuit of hardware in the processor element or in the form of software called by a processing element.

[0360] In one example, the unit in the above apparatus may be one or more integrated circuits configured to implement the above method, such as one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of at least two of these integrated circuit forms.

[0361] For another example, when the units in the device can be implemented in the form of a processing element scheduling program, the processing element can be a general-purpose processor, such as a CPU or other processor that can call a program. For another example, these units can be integrated together and implemented in the form of a system on a chip SOC.

[0362] In one implementation, the units of the above apparatus implementing the corresponding steps in the above method can be implemented in the form of a processing element scheduling program. For example, the apparatus may include a processing element and a storage element, and the processing element calls the program stored in the storage element to execute the method described in the above method embodiment. The storage element may be a storage element on the same chip as the processing element, that is, an on-chip storage element.

[0363] In another implementation, the program for executing the above method may be in a storage element on a different chip from the processing element, i.e., an off-chip storage element. In this case, the processing element calls or displays the program on the on-chip storage element from the off-chip storage element to call and execute the method described in the above method embodiment.

[0364] For example, an embodiment of the present application may also provide a device, such as an electronic device, which may include a processor and a memory for storing instructions executable by the processor. When the processor is configured to execute the above instructions, the electronic device implements the beauty level adjustment method as described in the above embodiment. The memory may be located inside the electronic device or outside the electronic device. And the processor includes one or more.

[0365] In another implementation, the unit of the device implementing each step in the above method may be configured as one or more processing elements, which may be arranged on the corresponding electronic device, and the processing element here may be an integrated circuit, for example: one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of these integrated circuits. These integrated circuits may be integrated together to form a chip.

[0366] For example, the present application also provides a chip, which can be applied to the above electronic device. The chip includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a line; the processor receives and executes computer instructions from the memory of the electronic device through the interface circuit to implement the method described in the above method embodiment.

[0367] An embodiment of the present application also provides a computer program product, including computer instructions executed by the above-mentioned electronic device.

[0368] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0369] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0370] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0371] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0372] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology or all or part of the technical solution can be embodied in the form of a software product, such as a program. The software product is stored in a program product, such as a computer-readable storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

[0373] For example, the present application embodiment may also provide a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by an electronic device, the electronic device implements the beauty level adjustment method described in the above method embodiment.

[0374] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for adjusting beauty level, characterized in that: Applied to electronic equipment, the method comprises: In a video call scenario, a first interface is displayed, wherein the first interface includes a dynamic notification of the beauty level, and the dynamic notification of the beauty level includes a beauty level adjustment control; receiving a first operation of a user on the beauty level adjustment control; In response to the first operation, determining a first beauty level corresponding to the first operation; Perform beauty processing on the image data acquired by the camera of the electronic device according to the first beauty level and the beauty algorithm.

2. The method according to claim 1, characterized in that Before displaying the first interface, the method further includes: Displaying a second interface, the second interface including a beauty level capsule notification; receiving a second operation of the user in response to the beauty level capsule notification; The displaying the first interface includes: displaying the first interface in response to the second operation.

3. The method according to claim 2, characterized in that The method further comprises: If the second operation of the user on the beauty level capsule notification is not received within the first time period, hiding the beauty level capsule notification; The displaying the first interface in response to the second operation includes: If the second operation is received within the first time period, the first interface is displayed in response to the second operation.

4. The method according to claim 1 or 2, characterized in that: The method further comprises: receiving a third operation of the user on the dynamic notification of the beauty level; In response to the third operation, the third interface is displayed, and the third interface includes a beauty level capsule notification.

5. The method according to claim 2, characterized in that: The displaying of the second interface includes: Determining whether the electronic device supports displaying the beauty level capsule notification; When the electronic device supports displaying the beauty level capsule notification, displaying the second interface; When the electronic device does not support displaying the beauty level capsule notification, the beauty level dynamic notification is added in the notification center.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: If no fourth operation of the user on the dynamic notification of the beautification level is received within the second time period, the dynamic notification of the beautification level is hidden.

7. The method according to claim 3 or 6, characterized in that: The method further comprises: Receive a fifth operation triggered by the user to display the notification center; In response to the fifth operation, displaying the notification center; the notification center includes the beauty level dynamic notification; receiving a sixth operation of the user on the beauty level adjustment control displayed in the notification center; In response to the sixth operation, determining a second beauty level corresponding to the sixth operation; Perform beauty processing on the image data acquired by the camera of the electronic device according to the second beauty level and the beauty algorithm.

8. The method according to any one of claims 1 to 7, characterized in that The first interface includes a desktop of the electronic device, a control center of the electronic device, a notification center of the electronic device, or a setting interface of the electronic device.

9. The method according to any one of claims 1 to 8, characterized in that The beauty level adjustment control includes a sliding bar and a beauty level adjustment button. The length of the sliding bar is used to indicate the range of the beauty level. The beauty level adjustment button is located on the sliding bar. When the beauty level adjustment button is at different positions on the sliding bar, the beauty level is different.

10. The method according to any one of claims 1 to 8, characterized in that The beauty level adjustment control includes a non-beautification confirmation button and multiple beauty level confirmation buttons, and different beauty level confirmation buttons among the multiple beauty level confirmation buttons correspond to different beauty levels.

11. The method according to any one of claims 1 to 10, characterized in that The performing beautification processing on the image data acquired by the camera of the electronic device according to the first beautification level and the beautification algorithm includes: Acquiring status information of the electronic device; the status information includes power status and / or screen status; Perform beauty processing on image data acquired by the camera of the electronic device according to the first beauty level, the status information, and the beauty algorithm.

12. The method according to claim 11, characterized in that The power state includes a low power mode and a non-low power mode, and the screen state includes a screen-on state and a screen-off state; and performing beauty processing on the image data acquired by the camera of the electronic device according to the first beauty level, the state information, and the beauty algorithm, includes: When the power state is the non-low-power mode and the screen state is the bright-screen state, performing beauty processing on the image data acquired by the camera of the electronic device according to the first beauty level and the beauty algorithm; When the power state is the low power mode, and / or the screen state is the screen-off state, no beauty processing is performed on the image data acquired by the camera of the electronic device.

13. The method according to any one of claims 1 to 10, characterized in that The electronic device includes a video beautification service and a camera hardware abstraction HAL module, and the beautification processing is performed on the image data acquired by the camera of the electronic device according to the first beautification level and the beautification algorithm, including: The video beautification service determines a beautification adjustment parameter according to the first beautification level; The video beautification service sends the beautification adjustment parameters to the camera HAL module; The camera HAL module performs beauty processing on the image data acquired by the camera of the electronic device according to the beauty adjustment parameters and the beauty algorithm.

14. The method according to claim 13, characterized in that The camera hardware abstraction HAL module includes a configuration service and a beautification algorithm service. The camera HAL module performs beautification processing on image data acquired by the camera of the electronic device according to the beautification adjustment parameters and the beautification algorithm, including: The configuration service receives the beauty adjustment parameters sent by the video beauty service; The configuration service sends the beauty adjustment parameter to the beauty algorithm service; The beautification algorithm service performs beautification processing on the image data acquired by the camera of the electronic device according to the beautification adjustment parameters and the beautification algorithm.

15. An electronic device, characterized in that: The electronic device comprises a processor and a memory for storing instructions executable by the processor; when the processor is configured to execute the instructions, the electronic device implements the method according to any one of claims 1 to 14.

16. A computer-readable storage medium having computer program instructions stored thereon; characterized in that: When the computer program instructions are executed by an electronic device, the electronic device implements the method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Image display effect adjusting method and apparatus

    CN105791946A

  • Light supplementing method for shooting and related device

    CN114070916A

  • Map rendering method and device, program product and storage medium

    CN114579227A