Screen brightness processing method and device, electronic equipment and storage medium

By collecting facial location information and ambient light brightness through a camera, the screen brightness is dynamically adjusted, solving the problem of screen brightness not being able to adapt and achieving comfortable display and low power consumption under different ambient light conditions.

CN119600972BActive Publication Date: 2026-06-19BEIJING XIAOMI MOBILE SOFTWARE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2023-09-08
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

In existing technologies, screen brightness cannot be adaptively adjusted, resulting in discomfort when using the screen under different ambient lighting conditions, affecting users' eye health and increasing power consumption.

Method used

By capturing the position information of a person's face relative to the screen using a camera and combining this information with the ambient light, the screen brightness is dynamically adjusted to compensate for the initial brightness and provide a display brightness that meets the user's needs.

Benefits of technology

It reduces screen power consumption, improves user experience, and provides comfortable display under different ambient lighting conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119600972B_ABST
    Figure CN119600972B_ABST
Patent Text Reader

Abstract

This disclosure relates to a screen brightness processing method, apparatus, electronic device, and storage medium. The method, applied in an electronic device, includes: acquiring data captured by a camera in the electronic device; if a face is determined to be present based on the acquired data, compensating for the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information, wherein the initial screen brightness is determined based on the ambient light of the current environment in which the screen is located; and displaying the image based on the compensated brightness information. This method not only reduces screen power consumption but also improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of display technology, and in particular to a screen brightness processing method and apparatus, electronic device and storage medium. Background Technology

[0002] Screens are widely used in electronic devices such as mobile phones. With the widespread use of these devices, their locations have become more diverse, including offices, laboratories, conference rooms, and production lines. Due to these different locations, the ambient light levels vary. In a bright office, a brighter screen may feel comfortable to the user's eyes. However, once moved to a darker place, such as a conference room, the same brightness will cause eye discomfort. This change is often imperceptible when focused on work. In this situation, excessively bright or dim screens can unknowingly cause eye strain, and over time, this can damage the eyes.

[0003] As a result, users have higher requirements for screen brightness, and how to adjust the screen brightness to suit the user's needs has become a problem that needs to be solved. Summary of the Invention

[0004] This disclosure provides a screen brightness processing method, apparatus, electronic device, and storage medium, which not only reduces screen power consumption but also improves the user experience.

[0005] According to a first aspect of the present disclosure, a screen brightness processing method is provided, applied to an electronic device, comprising:

[0006] Acquire the information captured by the camera in the electronic device;

[0007] If a face is determined to be present based on the collected information, the initial screen brightness is compensated based on the position information of the face relative to the screen to obtain compensated brightness information; wherein, the initial screen brightness is determined based on the ambient light of the current environment in which the screen is located;

[0008] The display is based on the compensated brightness information.

[0009] In some embodiments, the step of compensating the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information includes:

[0010] Based on the position information of the face relative to the screen and the number of faces, a brightness compensation coefficient is determined;

[0011] Based on the brightness compensation coefficient, the initial screen brightness is compensated to obtain the compensated brightness information.

[0012] In some embodiments, determining the brightness compensation coefficient based on the position information of the face relative to the screen and the number of faces includes:

[0013] When the number of faces exceeds a preset threshold and the electronic device is in privacy protection mode, a preset brightness reduction ratio is used as the brightness compensation coefficient.

[0014] When the number of faces is greater than 0 and less than or equal to the number threshold; or when the number of faces is greater than the number threshold and the electronic device is not in the privacy protection mode, the brightness compensation coefficient is determined based on the position information of the faces relative to the screen.

[0015] In some embodiments, the position information of the face relative to the screen includes: the distance between the center of the eyes in the face and the center of the screen, the angle between the face and the screen, and the coordinates of the center of the eyes relative to the center of the screen.

[0016] In some embodiments, determining the brightness compensation coefficient based on the position information of the face relative to the screen includes:

[0017] The distance compensation coefficient is determined based on the distance between the center of the eyes in the face and the center of the screen;

[0018] The light-gathering compensation coefficient is determined based on the distance between the center of the eyes in the face and the center of the screen, and the coordinates of the center of the eyes relative to the center of the screen.

[0019] Determine the angle compensation coefficient based on the angle between the face and the screen;

[0020] The brightness compensation coefficient is determined based on the distance compensation coefficient, the light intake compensation coefficient, and the included angle compensation coefficient.

[0021] In some embodiments, determining the light-gathering compensation coefficient based on the distance between the center of the eye in the face and the center of the screen and the coordinates of the center of the eye relative to the center of the screen includes:

[0022] Based on the coordinates of the center of the eye relative to the center of the screen, determine the projection distance between the projection point of the center of the screen onto the eye plane and the center of the eye; wherein, the eye plane is parallel to the screen;

[0023] Based on the projection distance and the size of the electronic device, a first light-receiving angle of the electronic device centered on the eye is determined when the eye is facing the screen and a second light-receiving angle of the electronic device centered on the eye is determined when the eye is not facing the screen.

[0024] The light-incident compensation coefficient is determined based on the first light-incident angle and the second light-incident angle.

[0025] In some embodiments, determining the light-attention compensation coefficient based on the first light-attention angle and the second light-attention angle includes:

[0026] Obtain the difference between the first light-attention angle and the second light-attention angle;

[0027] The light-incident compensation coefficient is obtained based on the ratio between the first light-incident angle and the difference.

[0028] In some embodiments, determining the distance compensation coefficient based on the distance between the center of the eyes in the face and the center of the screen includes:

[0029] The distance compensation coefficient is determined based on the ratio between the distance between the center of the eye and the center of the screen and a preset distance threshold.

[0030] In some embodiments, determining the angle compensation coefficient based on the angle between the face and the screen includes:

[0031] The angle between the face and the screen is sinusoidally processed to obtain a sine value;

[0032] The included angle compensation coefficient is determined based on the reciprocal of the difference between the preset value and the sine value.

[0033] In some embodiments, the method further includes:

[0034] If it is determined based on the collected information that the face information does not exist, the display is based on a preset screen brightness.

[0035] The preset screen brightness is less than the initial screen brightness.

[0036] According to a second aspect of the present disclosure, a screen brightness processing apparatus is provided, applied to an electronic device, the apparatus comprising:

[0037] The acquisition module is configured to acquire information collected by the camera in the electronic device;

[0038] The compensation module is configured to, when it is determined that a face exists based on the collected information, compensate the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information; wherein, the initial screen brightness is determined based on the ambient light of the current environment in which the screen is located;

[0039] The first display module is configured to display based on the compensated brightness information.

[0040] In some embodiments, the compensation obtaining module is further configured to determine a brightness compensation coefficient based on the position information of the face relative to the screen and the number of faces; and to compensate the initial screen brightness based on the brightness compensation coefficient to obtain compensated brightness information.

[0041] In some embodiments, the compensation module is further configured to: when the number of faces is greater than a preset number threshold and the electronic device is in privacy protection mode, use a preset brightness reduction ratio as the brightness compensation coefficient; when the number of faces is greater than 0 and less than or equal to the number threshold; or when the number of faces is greater than the number threshold and the electronic device is not in privacy protection mode, determine the brightness compensation coefficient based on the position information of the faces relative to the screen.

[0042] In some embodiments, the relative position information between the face and the screen includes: the distance between the center of the eyes in the face and the center of the screen, the angle between the face and the screen, and the coordinates of the center of the eyes relative to the center of the screen.

[0043] In some embodiments, the compensation obtaining module is further configured to: determine a distance compensation coefficient based on the distance between the center of the eyes in the face and the center of the screen; determine a light-gathering compensation coefficient based on the distance between the center of the eyes in the face and the center of the screen and the coordinates of the center of the eyes relative to the center of the screen; determine an angle compensation coefficient based on the angle between the face and the screen; and determine a brightness compensation coefficient based on the distance compensation coefficient, the light-gathering compensation coefficient, and the angle compensation coefficient.

[0044] In some embodiments, the compensation module is further configured to determine, based on the coordinates of the center of the eye relative to the center of the screen, the projection distance between the projection point of the center of the screen onto the eye plane and the center of the eye; wherein the eye plane is parallel to the screen; based on the projection distance and the size of the electronic device, determine a first light-receiving angle of the electronic device centered on the eye when the eye is facing the screen and a second light-receiving angle of the electronic device centered on the eye when the eye is not facing the screen; and determine the light-receiving compensation coefficient based on the first light-receiving angle and the second light-receiving angle.

[0045] In some embodiments, the compensation obtaining module is further configured to obtain the difference between the first light-attention angle and the second light-attention angle; and to obtain the light-attention compensation coefficient based on the ratio between the first light-attention angle and the difference.

[0046] In some embodiments, the compensation obtaining module is further configured to determine the distance compensation coefficient based on the ratio between the distance between the center of the eye and the center of the screen and a preset distance threshold.

[0047] In some embodiments, the compensation obtaining module is further configured to perform sine processing on the angle between the face and the screen to obtain a sine value; and determine the angle compensation coefficient based on the reciprocal of the difference between a preset value and the sine value.

[0048] In some embodiments, the apparatus further includes:

[0049] The second display module is configured to display based on a preset screen brightness when it is determined that the face does not exist based on the collected information; wherein the preset screen brightness is less than the initial screen brightness.

[0050] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0051] processor;

[0052] Memory used to store processor-executable instructions;

[0053] The processor is configured to perform the screen brightness processing method as described in the first aspect above.

[0054] According to a fourth aspect of the present disclosure, a storage medium is provided, comprising:

[0055] When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the screen brightness processing method as described in the first aspect above.

[0056] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0057] In this embodiment, the electronic device first determines the initial screen brightness based on the ambient light level of the current environment; then, it compensates for the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information; and finally, it displays the image based on the compensated brightness information. In this way, on the one hand, the electronic device can adaptively adjust the screen brightness, thereby reducing screen power consumption and increasing the standby time of the electronic device; on the other hand, this embodiment considers that different positions of the face relative to the screen correspond to different actual screen brightness levels that meet user needs. Therefore, in addition to determining the initial screen brightness based on ambient light level, it also uses the position information of the face relative to the screen to compensate for the initial screen brightness, making the compensated brightness information more in line with user needs, thereby improving the user experience.

[0058] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0059] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0060] Figure 1 This is a flowchart illustrating a screen brightness processing method according to an exemplary embodiment. Figure 1 .

[0061] Figure 2 This is a schematic diagram illustrating the relative position information between a face and a screen according to an exemplary embodiment. Figure 1 .

[0062] Figure 3 This is a schematic diagram illustrating the relative position information between a face and a screen according to an exemplary embodiment. Figure 2 .

[0063] Figure 4 This is a flowchart illustrating a screen brightness processing method according to an exemplary embodiment. Figure 2 .

[0064] Figure 5 This is a diagram illustrating a screen brightness processing apparatus according to an exemplary embodiment.

[0065] Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation

[0066] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0067] Figure 1 This is a flowchart of a screen brightness processing method shown in an embodiment of the present disclosure. Figure 1 ,like Figure 1 As shown, the screen brightness processing method applied to electronic devices includes the following steps:

[0068] S101. Obtain the information captured by the camera in the electronic device;

[0069] S102. If a face is determined to exist based on the collected information, the initial screen brightness is compensated based on the position information of the face relative to the screen to obtain compensated brightness information; wherein, the initial screen brightness is determined based on the ambient light of the current environment in which the screen is located;

[0070] S103. Display based on the compensated brightness information.

[0071] In this embodiment of the disclosure, the screen brightness processing method can be applied to scenarios where ambient light brightness changes. For example, when an electronic device moves from a bright location to a dark location, excessively high screen brightness is both harmful to the eyes and consumes excessive power. Therefore, the screen brightness processing method of this embodiment can be used to compensate for the initial screen brightness, enabling the electronic device to adaptively adjust different screen brightness according to the changing ambient light to meet user needs.

[0072] In this disclosure, the electronic device includes a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, an in-vehicle device, a wearable device, and other devices that include a display screen.

[0073] In step S101, the camera can be a front-facing camera of the electronic device. The camera's acquisition direction is the same as the screen's display direction, and it can be mounted on the same side of the electronic device as the screen. The camera can be an Always-on (AON) camera, and the information acquired by the AON camera can be connected to the application processor (AP) in the electronic device via a Mobile Industry Processor Interface (MIPI). Because the AON camera has low pixel count and relatively simple functionality, it can reduce the power consumption of the electronic device.

[0074] In this embodiment of the disclosure, the collected information may be obtained based on images captured by a camera. This collected information includes facial information and other information besides facial information (e.g., collection time). The facial information may include not only the position of the face relative to the screen, but also the number of faces, etc., which are not limited in this embodiment of the disclosure.

[0075] It should be noted that the position information of the face relative to the screen refers to information such as the orientation, coordinates, or angle of the face relative to the screen. For example, the position information of the face relative to the screen may include: the coordinates of the center of the eyes relative to the center of the screen, the distance between the center of the eyes and the center of the screen, and the angle between the face and the screen.

[0076] In step S102, before determining the initial screen brightness, this embodiment of the disclosure needs to determine whether a face exists based on the collected information. Here, determining the presence of a face based on the collected information may include: matching the collected information with facial feature information; and determining that a face exists in the collected information if the match is successful.

[0077] Here, if the presence of a face is determined based on the collected information, the screen brightness can be adjusted based on the ambient light level. In some embodiments, the method further includes:

[0078] If it is determined that no human face exists based on the collected information, the display is performed based on a preset screen brightness; wherein the preset screen brightness is less than the initial screen brightness.

[0079] In this embodiment of the disclosure, if it is determined based on the collected information that no face is present, it indicates that no user is in front of the screen and the user does not need to view the screen. In this case, this embodiment of the disclosure can directly lower the display brightness of the electronic device to a preset screen brightness.

[0080] It should be noted that the preset screen brightness can be set according to actual conditions, and this embodiment does not limit this.

[0081] In this embodiment of the disclosure, the electronic device can determine whether a face exists based on the collected information and adjust the screen brightness in different ways. On the one hand, when a face exists, the influence of the face on the screen display can be considered, and the screen brightness can be adjusted together with the ambient light brightness and the face. On the other hand, when no face exists, the display can be directly based on the preset screen brightness. In this way, the screen brightness can be adjusted more flexibly to reduce the power consumption of the electronic device.

[0082] It should be noted that electronic devices can acquire ambient light levels in various ways. This can be done through the electronic device itself or by acquiring ambient light levels from communicable devices in the surrounding environment. For example, an electronic device can incorporate a light sensor to collect ambient light levels and then receive these levels from a registered light receiver. Another example is in smart home or smart office environments, where the electronic device establishes communication with nearby devices that can also collect ambient light levels. The data from the light sensor can be from one or more devices.

[0083] In this embodiment of the disclosure, determining the initial screen brightness based on the ambient light brightness of the current environment in which the screen is located may include: performing logarithmic processing on the ambient light brightness of the current environment to determine the initial screen brightness.

[0084] For example, an electronic device can determine the initial screen brightness as shown in equation (1):

[0085] nit1 = ln(als) (1)

[0086] Where als is the ambient light level of the environment in which the screen is currently located, and the unit is candela (cd); nit1 is the initial screen brightness, and the unit is nit (nit) or candela per square meter (cd / m²). 2 ).

[0087] In this embodiment of the disclosure, compensating for the initial screen brightness based on the position information of the face relative to the screen can be described as adjusting the initial screen brightness based on the position information of the face relative to the screen. Here, the electronic device compensating for the initial screen brightness based on the position information of the face relative to the screen may include: first calculating a brightness compensation coefficient based on the position information of the face relative to the screen, and then compensating for the initial screen brightness based on the brightness compensation coefficient; or it may include: determining the screen brightness compensation value corresponding to the position information of the face relative to the screen based on a preset mapping table, and then compensating for the initial screen brightness based on the screen brightness compensation value, etc.

[0088] In step S103, if a face is determined to be present based on the collected information, the electronic device displays the image based on the compensated brightness information. In other words, this embodiment of the present disclosure, after determining the presence of a face, adjusts the screen display brightness by combining the position information relative to the screen and the ambient light brightness.

[0089] For example, in related technologies, electronic devices adjust screen brightness solely based on ambient light intensity; or, based on the user's eye opening and ambient light intensity; or, based on the user's gaze point on the screen and the distance between the gaze point and the camera. It is evident that none of these related technologies consider the impact of the relative position information between the face and the screen on screen brightness.

[0090] Based on this, in this embodiment, the electronic device first determines the initial screen brightness based on the ambient light level of the current environment; then, it compensates for the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information; and finally, it displays the image based on the compensated brightness information. In this way, on the one hand, the electronic device can adaptively adjust the screen brightness, thereby reducing screen power consumption and increasing the standby time of the electronic device; on the other hand, this embodiment considers that different positions of the face relative to the screen correspond to different actual screen brightness levels that meet user needs. Therefore, in addition to determining the initial screen brightness based on ambient light level, it also uses the position information of the face relative to the screen to compensate for the initial screen brightness, making the compensated brightness information more in line with user needs, thereby improving the user experience.

[0091] In some embodiments, the step of compensating the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information includes:

[0092] Based on the position information of the face relative to the screen and the number of faces, a brightness compensation coefficient is determined;

[0093] Based on the brightness compensation coefficient, the initial screen brightness is compensated to obtain the compensated brightness information.

[0094] In this embodiment, the facial information includes not only the position information of the face relative to the screen, but also the number of faces. Different numbers of faces correspond to different numbers of users using the screen. The number of faces can be greater than or equal to 1, and this embodiment does not impose any limitation on this.

[0095] It should be noted that different numbers of faces may determine different brightness compensation coefficients, resulting in different compensated brightness information. For example, when a user is in front of the screen, the brightness compensation coefficient when someone else is watching may be lower than the brightness compensation coefficient when no one else is watching. Correspondingly, the screen brightness when someone else is watching may be lower than the screen brightness when no one else is watching.

[0096] In this embodiment of the disclosure, different facial positions relative to the screen may determine different compensation coefficients, resulting in different compensated brightness information. For example, the brightness compensation coefficient at a preset angle between the user and the screen of the electronic device may be less than the brightness compensation coefficient when the user is away from the electronic device. Correspondingly, the screen brightness at the preset angle may be less than the screen brightness when the user is away from the electronic device.

[0097] The above-mentioned compensation of the initial screen brightness based on the brightness compensation coefficient to obtain the compensated brightness information may include: obtaining the compensated brightness information based on the product of the brightness compensation coefficient and the initial screen brightness.

[0098] For example, the electronic device obtains the compensated brightness information as shown in equation (2) below:

[0099] nit=nit1×x_low (2)

[0100] Where nit represents the brightness information after screen compensation, in candela; nit1 represents the initial screen brightness; and x_low represents the brightness compensation coefficient.

[0101] In this embodiment, the electronic device determines a brightness compensation coefficient based on the position information of the face relative to the screen and the number of faces; then, based on the brightness compensation coefficient, it compensates for the initial screen brightness to obtain the compensated brightness information. In other words, this embodiment, in addition to compensating for the initial screen brightness based on the position information of the face relative to the screen, also considers the impact of the number of faces on the screen brightness, further making the compensated brightness information more in line with user needs, thereby improving the user experience.

[0102] In some embodiments, determining the brightness compensation coefficient based on the position information of the face relative to the screen and the number of faces includes:

[0103] When the number of faces exceeds a preset threshold and the electronic device is in privacy protection mode, a preset brightness reduction ratio is used as the brightness compensation coefficient.

[0104] When the number of faces is greater than 0 and less than or equal to the number threshold; or when the number of faces is greater than the number threshold and the electronic device is not in the privacy protection mode, the brightness compensation coefficient is determined based on the position information of the faces relative to the screen.

[0105] In this embodiment, the brightness compensation coefficient varies depending on the number of faces. Here, the number threshold can be set to 1 or 2, etc., and this embodiment does not impose any limitation on this.

[0106] It should be noted that the electronic device has a privacy protection function, and the electronic device may or may not be in a privacy protection mode. In this embodiment, when the number of faces exceeds a preset threshold, i.e., when there are users watching the screen, the electronic device can further determine whether it is in a privacy protection mode. If it is in a privacy protection mode, a preset brightness reduction ratio is used as the brightness compensation coefficient; if it is not in a privacy protection mode, the brightness compensation coefficient is determined based on the position information of the faces relative to the screen. Here, the preset brightness reduction ratio can be greater than or equal to 0.1 and less than or equal to 0.9.

[0107] It is understood that the embodiments of this disclosure can be applied to various scenarios combining whether the electronic device is in a privacy protection mode with whether the number of faces exceeds a preset threshold. In the embodiments of this disclosure, when the number of faces is greater than 0 and less than or equal to the threshold, the electronic device can directly determine the brightness compensation coefficient based on the position information of the faces relative to the screen. For example, when the number of faces is equal to 1 and the threshold is also 1, the number of users in front of the screen is 1, and there is no need to determine whether the electronic device is in a privacy protection mode; the brightness compensation coefficient can be directly determined based on the position information of the faces relative to the screen.

[0108] In this embodiment, when the number of faces exceeds a preset threshold and the electronic device is in privacy protection mode, the electronic device uses a preset brightness reduction ratio as the brightness compensation coefficient. When the number of faces is greater than 0 and less than or equal to the threshold; or when the number of faces exceeds the threshold and the electronic device is not in privacy protection mode, the brightness compensation coefficient is determined based on the position information of the faces relative to the screen. On the one hand, this embodiment, in addition to compensating the initial screen brightness by combining the position information of the faces relative to the screen and the number of faces, also considers the impact of whether the electronic device is in privacy protection mode on the screen brightness. This not only makes the compensated brightness information more consistent with the user's actual usage scenario, thereby improving the user experience, but also better protects user privacy. On the other hand, since using a preset brightness reduction ratio as the brightness compensation coefficient requires less computation, the computational workload for determining the brightness compensation coefficient is small, thereby further reducing the power consumption of the electronic device in the corresponding scenario.

[0109] In some embodiments, such as Figure 2 As shown, the position information of the face 1 relative to the screen 2 includes: the distance between the center E of the eyes in the face 1 and the center O1 of the screen, the angle between the face 1 and the screen 2, and the coordinates of the center E of the eyes relative to the center O1 of the screen.

[0110] In some embodiments, determining the brightness compensation coefficient based on the position information of the face 1 relative to the screen 2 includes:

[0111] The distance compensation coefficient is determined based on the distance between the center E of the eyes in the face 1 and the center O1 of the screen;

[0112] The light compensation coefficient is determined based on the distance between the center E of the eye in the face 1 and the center O1 of the screen and the coordinates of the center E of the eye relative to the center O1 of the screen.

[0113] Based on the angle between the face 1 and the screen 2, determine the angle compensation coefficient;

[0114] The brightness compensation coefficient is determined based on the distance compensation coefficient, the light intake compensation coefficient, and the included angle compensation coefficient.

[0115] In this embodiment of the disclosure, the center of the eye refers to the center of both eyes; the distance between the center of the eye and the center of the screen in the human face refers to the straight-line distance between the center of the eye and the center of the screen.

[0116] Figure 2In the diagram, eye plane 3 is parallel to screen 2, and the center O2 of eye plane is the projection point of the center O1 of screen onto eye plane. The xy coordinate system of screen 2 is constructed with the center O1 of screen as its origin; correspondingly, the x-axis is parallel to the long side of screen 2, and the y-axis is parallel to the wide side of screen 2. The xy coordinate system of eye plane 3 is constructed with the center O2 of eye plane as its origin; correspondingly, the x-axis of eye plane 3 is parallel to the x-axis of screen 2, and the y-axis of eye plane 3 is parallel to the y-axis of screen 2. Therefore, the coordinates of the eye's center E relative to the screen's center O1 refer to the coordinates of the eye's center E on eye plane 3, including the position of the eye's center E along the x-axis and the position along the y-axis of eye plane 3.

[0117] In this embodiment, the distance between the center of the eyes on the face and the center of the screen reflects the distance between the user and the screen of the electronic device; the distance between the center of the eyes on the face and the center of the screen, and the coordinates of the center of the eyes relative to the center of the screen, reflect whether the user is moving the electronic device; the angle between the face and the screen reflects the tilt relationship between the user's face and the electronic device. Therefore, the above relative position information can reflect various relative relationships between the user and the screen, enabling adaptive adjustment of screen brightness when the user moves away from, tilts, or moves the electronic device.

[0118] In this embodiment of the disclosure, the brightness compensation coefficient is determined based on the distance compensation coefficient, the light-gathering compensation coefficient, and the included angle compensation coefficient, including: obtaining the brightness compensation coefficient based on the product of the distance compensation coefficient, the light-gathering compensation coefficient, and the included angle compensation coefficient.

[0119] For example, the brightness compensation coefficient of an electronic device can be determined as shown in equation (3) below:

[0120] nit=nit1×x_dis×x_pos×x_deg (3)

[0121] Where nit represents the screen-compensated brightness information; nit1 represents the initial screen brightness; x_dis represents the distance compensation coefficient; x_pos represents the light-gathering compensation coefficient; and x_deg represents the angle compensation coefficient. Here, any one of the distance compensation coefficient, light-gathering compensation coefficient, and angle compensation coefficient is directly proportional to the brightness compensation coefficient.

[0122] In this embodiment, the electronic device determines a distance compensation coefficient, a light-gathering compensation coefficient, and an angle compensation coefficient based on the relative position information between the face and the screen, including the distance between the center of the eyes on the face and the center of the screen, the angle between the face and the screen, and the coordinates of the center of the eyes relative to the center of the screen. Then, based on these coefficients, a brightness compensation coefficient is determined. In other words, this embodiment considers factors such as the distance, angle, and coordinates of the face relative to the screen, and these multiple factors reflect various relative positional relationships between the user's face and the screen. This makes the compensated brightness information obtained by combining these factors more consistent with the user's actual usage scenario, thereby improving the user experience.

[0123] In some embodiments, such as Figure 3 As shown, determining the light-gathering compensation coefficient based on the distance dis between the center E of the eye in the face and the center O1 of the screen, and the coordinates of the center E of the eye relative to the center O1 of the screen, includes:

[0124] Based on the coordinates of the center E of the eye relative to the center O1 of the screen, the projection distance pos between the projection point O2 of the center O1 of the screen onto the eye plane and the center E of the eye is determined; wherein, the eye plane is parallel to the screen;

[0125] Based on the projection distance pos and the size of the electronic device, a first light-receiving angle θ1 of the electronic device centered on the eye is determined when the eye is facing the screen and a second light-receiving angle θ2 of the electronic device centered on the eye is determined when the eye is not facing the screen.

[0126] The light-incident compensation coefficient is determined based on the first light-incident angle θ1 and the second light-incident angle θ2.

[0127] In this embodiment of the disclosure, the electronic device determines the projection distance between the projection point of the screen center projected onto the eye plane and the eye center based on the coordinates of the eye center relative to the screen center. This can include determining the projection distance based on the position of the eye center in the x-axis direction and the position of the eye plane 3 in the y-axis direction.

[0128] For example, the projection distance can be determined as shown in equation (4):

[0129] pos = (pos_x) 2 +pos_y 2 ) 1 / 2 (4)

[0130] Where pos is the projection distance between the center of the screen and the center of the eye, which is projected onto the eye plane; pos_x is the coordinate of the eye center on the x-axis of the eye plane 3; and pos_y is the coordinate of the eye center on the y-axis of the eye plane 3.

[0131] In this embodiment of the disclosure, the electronic device determines a first light-receiving angle centered on the eye when the eye is directly facing the screen and a second light-receiving angle centered on the eye when the eye is not directly facing the screen, based on the projection distance and the size of the electronic device. Here, the size of the electronic device includes the length or width of the screen. If the user is facing the screen and the screen is horizontally oriented, the electronic device can determine the first and second light-receiving angles based on the projection distance and the width of the screen; if the screen is vertically oriented, the electronic device can determine the first and second light-receiving angles based on the projection distance and the length of the screen.

[0132] In this embodiment of the disclosure, the electronic device determines a first light-receiving angle centered on the eye when the eye is facing the screen, based on the projection distance and the size of the electronic device. This may include: first determining the distance between the eye plane and the screen based on the projection distance, and then determining the first light-receiving angle based on the distance between the eye plane and the screen and the size of the electronic device.

[0133] For example, an electronic device determines the distance between the eye plane and the screen based on the projection distance, as shown in equation (5) below:

[0134] dis1 = (dis 2 -pos 2 ) 1 / 2 (5)

[0135] Where dis1 is the distance between the eye plane and the screen; dis is the distance between the center of the eye in the face and the center of the screen; and pos is the projection distance.

[0136] For example, the electronic device determines the first light-gathering angle based on the distance between the eye plane and the screen and the size of the electronic device, as shown in the following equation (6):

[0137] θ1=2×arctan(L / (2×dis1)) (6)

[0138] Where θ1 is the first light-receiving angle of the electronic device centered on the eye when the eye is facing the screen; L is the length of the screen; and dis1 is the distance between the eye plane and the screen. In this embodiment of the disclosure, with a fixed screen size, the first light-receiving angle is inversely proportional to the distance between the eye plane and the screen. For example, the farther the eye is from the screen, the smaller the corresponding first light-receiving angle.

[0139] In this embodiment of the disclosure, the electronic device determines a second light-receiving angle centered on the eye when the eye is not directly facing the screen, based on the projection distance and the size of the screen of the electronic device. This may include: determining the second light-receiving angle based on the projection distance, the distance between the center of the eye and the center of the screen, and the size of the electronic device.

[0140] For example, the electronic device determines the second light-receiving angle as shown in equation (7):

[0141] θ2=arctan(L / 2+pos / dis) (7)

[0142] Where θ2 is the second light-gathering angle of the electronic device centered on the eye when the eye is not directly facing the screen; L is the length of the screen of the electronic device; pos is the projection distance between the projection point of the center of the screen onto the eye plane and the center of the eye; and dis is the distance between the center of the eye in the face and the center of the screen.

[0143] In this embodiment of the disclosure, the electronic device determines the light compensation coefficient based on a first light-attention angle and a second light-attention angle. Based on the difference between the first and second light-attention angles, the electronic device can determine whether the user is moving the electronic device and, more specifically, how much they have moved. It is understood that if there is no difference or a small difference between the first and second light-attention angles, it indicates that the user's eyes are directly or nearly directly facing the screen; if the difference between the first and second light-attention angles is large, it indicates that the user's eyes are not directly facing the screen.

[0144] In this embodiment, the electronic device determines a first light-receiving angle centered on the eye when the eye is directly facing the screen and a second light-receiving angle centered on the eye when the eye is not directly facing the screen, based on the projection distance from the eye to the screen and the size of the electronic device. Then, based on the first and second light-receiving angles, a light-receiving compensation coefficient is determined. Since the difference between the first and second light-receiving angles is proportional to the degree to which the eye is away from the screen, moving away from the screen increases screen brightness, while facing the screen decreases screen brightness. Therefore, the electronic device can determine the corresponding light-receiving compensation coefficient based on the first and second light-receiving angles to adjust the screen brightness.

[0145] In some embodiments, determining the light-attention compensation coefficient based on the first light-attention angle and the second light-attention angle includes:

[0146] Obtain the difference between the first light-attention angle and the second light-attention angle;

[0147] The light-incident compensation coefficient is obtained based on the ratio between the first light-incident angle and the difference.

[0148] For example, the electronic device obtains the difference between the first light-attention angle and the second light-attention angle; then, based on the ratio between the first light-attention angle and the difference, it obtains the light-attention compensation coefficient, as shown in the following formula (8):

[0149] x_pos=θ1 / (θ1-θ2) (8)

[0150] Where x_pos is the light-receiving compensation coefficient; θ1 is the first light-receiving angle of the electronic device centered on the eye when the eye is facing the screen; θ2 is the second light-receiving angle of the electronic device centered on the eye when the eye is not facing the screen; (θ1-θ2) is the difference between the first light-receiving angle and the second light-receiving angle.

[0151] In this embodiment of the present disclosure, the electronic device obtains the difference between a first light-receiving angle and a second light-receiving angle; based on the ratio between the first light-receiving angle and the difference, a light-receiving compensation coefficient is obtained, enabling the electronic device to adjust the screen brightness based on the obtained light-receiving compensation coefficient. Since the difference between the first light-receiving angle and the second light-receiving angle is inversely proportional to the magnitude of the light-receiving compensation coefficient, the electronic device can determine the corresponding light-receiving compensation coefficient based on the first light-receiving angle and the second light-receiving angle, thereby adjusting the screen brightness.

[0152] In some embodiments, determining the distance compensation coefficient based on the distance between the center of the eyes in the face and the center of the screen includes:

[0153] The distance compensation coefficient is determined based on the ratio between the distance between the center of the eyes in the face and the center of the screen and a preset distance threshold.

[0154] For example, the electronic device determines the distance compensation coefficient based on the ratio between the distance between the center of the eyes in the face and the center of the screen and a preset distance threshold, as shown in equation (9) below:

[0155] x_dis = dis / x0 (9)

[0156] Where x_dis is the distance compensation coefficient; dis is the distance between the center of the eyes in the face and the center of the screen; x0 is a preset distance threshold, which is not limited in this embodiment, for example, it can be 40 centimeters (cm).

[0157] In this embodiment, the electronic device determines a distance compensation coefficient based on the ratio between the distance between the center of the eyes on the face and the center of the screen and a preset distance threshold, enabling the electronic device to adjust the screen brightness based on the obtained distance compensation coefficient. Since the distance between the center of the eyes and the center of the screen is proportional to the magnitude of the distance compensation coefficient, the electronic device can determine the corresponding distance compensation coefficient based on the distance between the center of the eyes and the center of the screen, thereby adjusting the screen brightness.

[0158] In some embodiments, determining the angle compensation coefficient based on the angle between the face and the screen includes:

[0159] The angle between the face and the screen is sinusoidally processed to obtain a sine value;

[0160] The included angle compensation coefficient is determined based on the reciprocal of the difference between the preset value and the sine value.

[0161] For example, the electronic device performs sine processing on the angle between the face and the screen to obtain a sine value; based on the reciprocal of the difference between the preset value and the sine value, the angle compensation coefficient is determined as shown in the following formula (10):

[0162] x_deg=1 / (1-sin(deg)) (10)

[0163] Where x_deg is the angle compensation coefficient; deg is the angle between the face and the screen, which is greater than or equal to 0 degrees and less than or equal to 90 degrees. For example, when it is 0 degrees, it means that the face is parallel to the screen.

[0164] In this embodiment, the electronic device performs sine processing on the angle between the face and the screen to obtain a sine value; based on the reciprocal of the difference between a preset value and the sine value, an angle compensation coefficient is determined, enabling the electronic device to adjust the screen brightness based on the obtained angle compensation coefficient. Since the angle between the face and the screen is proportional to the magnitude of the angle compensation coefficient, the electronic device can determine the corresponding angle compensation coefficient based on the angle between the face and the screen, thereby adjusting the screen brightness.

[0165] Figure 4 This is a schematic flowchart illustrating a screen brightness processing method according to an exemplary embodiment, such as... Figure 4 As shown, it includes the following steps:

[0166] S401. Obtain the information captured by the camera in the electronic device.

[0167] In this embodiment of the disclosure, the electronic device may acquire information from the camera at predetermined time intervals, or the camera may actively acquire information and send it to the electronic device at predetermined time intervals.

[0168] S402. Determine whether a face exists based on the collected information; if yes, proceed to step S404; if no, proceed to step S403.

[0169] In this embodiment of the disclosure, when a face is present and a user is in front of the screen, the initial screen brightness is determined based on the ambient light of the current environment in which the screen is located, and the initial screen brightness is compensated based on the position information of the face relative to the screen; when no face is present and no user is in front of the screen, the display can be directly based on the preset screen brightness.

[0170] S403, Display based on preset screen brightness.

[0171] For example, the preset screen brightness can be 5 nits.

[0172] S404. Determine the initial screen brightness based on the ambient light level of the current environment in which the screen is located.

[0173] In this embodiment of the disclosure, the electronic device first obtains the ambient light brightness of the current environment in which the screen is located, and then determines the initial screen brightness based on the ambient light brightness.

[0174] In this embodiment of the disclosure, the electronic device can acquire ambient light brightness at predetermined time intervals; or it can acquire ambient light brightness when it receives a predetermined signal. For example, the electronic device acquires ambient light brightness every 1 second; or, for another example, the electronic device acquires ambient light brightness when it detects a signal that the light sensor data is updated.

[0175] S405. Determine whether the number of faces exceeds the preset threshold; if yes, proceed to step S406; if no, proceed to step S408.

[0176] This disclosure applies to situations where faces are present, indicating that the number of faces is greater than 0. In this disclosure, the electronic device determines whether the number of faces is greater than a preset threshold. If the number of faces is greater than the preset threshold, it further determines whether the electronic device is in a privacy protection mode; if the number of faces is less than or equal to the preset threshold, a brightness compensation coefficient is determined based on the position information of the faces relative to the screen.

[0177] S406. Determine whether the electronic device is in privacy protection mode; if yes, proceed to step S407; if no, proceed to step S408.

[0178] In this embodiment of the disclosure, if the number of faces exceeds a preset threshold, it is further determined whether the electronic device is in a privacy protection mode. If the electronic device is in a privacy protection mode, the electronic device uses a preset brightness reduction ratio as a brightness compensation coefficient; if the electronic device is not in a privacy protection mode, the brightness compensation coefficient is determined based on the position information of the faces relative to the screen.

[0179] S407. Use the preset brightness reduction ratio as the brightness compensation coefficient.

[0180] In this embodiment, the electronic device uses a preset brightness reduction ratio as a brightness compensation coefficient; based on the brightness compensation coefficient, the initial screen brightness is compensated to obtain compensated brightness information; and then the display is performed based on the compensated brightness information. It should be noted that in this embodiment, the compensated brightness information may be less than, equal to, or less than the preset screen brightness in step S403.

[0181] S408. Determine the brightness compensation coefficient based on the position information of the face relative to the screen.

[0182] In this embodiment of the disclosure, the electronic device determines the brightness compensation coefficient based on the position information of the face relative to the screen, including: determining a distance compensation coefficient based on the distance between the center of the eyes in the face information and the center of the screen; determining a light intake compensation coefficient based on the distance between the center of the eyes in the face information and the center of the screen and the coordinates of the center of the eyes relative to the center of the screen; determining an angle compensation coefficient based on the angle between the face information and the screen; and determining a brightness compensation coefficient based on the distance compensation coefficient, the light intake compensation coefficient, and the angle compensation coefficient.

[0183] S409. Based on the brightness compensation coefficient, compensate the initial screen brightness to obtain the compensated brightness information; display the screen based on the compensated brightness information.

[0184] In this embodiment of the disclosure, the electronic device compensates for the initial screen brightness based on the brightness compensation coefficient determined by step S407 or step S408, and obtains the compensated brightness information.

[0185] S410 Displays information based on the compensated brightness information.

[0186] In this embodiment of the disclosure, the electronic device displays based on the compensated brightness information obtained in step S409.

[0187] In this embodiment, the electronic device first determines the initial screen brightness based on the ambient light level of the current environment; then, it compensates for the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information; and finally, it displays the image based on the compensated brightness information. In this way, on the one hand, the electronic device can adaptively adjust the screen brightness, thereby reducing screen power consumption and increasing the standby time of the electronic device; on the other hand, this embodiment considers that different positions of the face relative to the screen correspond to different actual screen brightness levels that meet user needs. Therefore, in addition to determining the initial screen brightness based on ambient light level, it also uses the position information of the face relative to the screen to compensate for the initial screen brightness, making the compensated brightness information more in line with user needs, thereby improving the user experience.

[0188] Figure 5 This is a diagram illustrating a screen brightness processing device applied to an electronic device according to an exemplary embodiment. Figure 5 As shown, the screen brightness processing device 500 applied to electronic devices includes:

[0189] The acquisition module 501 is configured to acquire the information collected by the camera in the electronic device;

[0190] The compensation module 502 is configured to, when it is determined that a face exists based on the collected information, compensate the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information; wherein, the initial screen brightness is determined based on the ambient light of the current environment in which the screen is located;

[0191] The first display module 503 is configured to display based on the compensated brightness information.

[0192] In some embodiments, the compensation obtaining module 503 is further configured to determine a brightness compensation coefficient based on the position information of the face relative to the screen and the number of faces in the face information; and to compensate the initial screen brightness based on the brightness compensation coefficient to obtain compensated brightness information.

[0193] In some embodiments, the compensation module 503 is further configured to: use a preset brightness reduction ratio as the brightness compensation coefficient when the number of faces is greater than a preset number threshold and the electronic device is in privacy protection mode; determine the brightness compensation coefficient based on the position information of the faces relative to the screen when the number of faces is greater than 0 and less than or equal to the number threshold; or when the number of faces is greater than the number threshold and the electronic device is not in the privacy protection mode.

[0194] In some embodiments, the position information of the face relative to the screen includes: the distance between the center of the eyes in the face and the center of the screen, the angle between the face and the screen, and the coordinates of the center of the eyes relative to the center of the screen.

[0195] In some embodiments, the compensation obtaining module 502 is further configured to: determine a distance compensation coefficient based on the distance between the center of the eyes in the face and the center of the screen; determine a light-gathering compensation coefficient based on the distance between the center of the eyes in the face and the center of the screen and the coordinates of the center of the eyes relative to the center of the screen; determine an angle compensation coefficient based on the angle between the face and the screen; and determine a brightness compensation coefficient based on the distance compensation coefficient, the light-gathering compensation coefficient, and the angle compensation coefficient.

[0196] In some embodiments, the compensation module 502 is further configured to determine, based on the coordinates of the center of the eye relative to the center of the screen, the projection distance between the projection point of the center of the screen onto the eye plane and the center of the eye; wherein the eye plane is parallel to the screen; based on the projection distance and the size of the electronic device, determine a first light-receiving angle of the electronic device centered on the eye when the eye is facing the screen and a second light-receiving angle of the electronic device centered on the eye when the eye is not facing the screen; and determine the light-receiving compensation coefficient based on the first light-receiving angle and the second light-receiving angle.

[0197] In some embodiments, the compensation obtaining module 502 is further configured to obtain the difference between the first light-attention angle and the second light-attention angle; and to obtain the light-attention compensation coefficient based on the ratio between the first light-attention angle and the difference.

[0198] In some embodiments, the compensation obtaining module 502 is further configured to determine the distance compensation coefficient based on the ratio between the distance between the center of the eyes in the face and the center of the screen and a preset distance threshold.

[0199] In some embodiments, the compensation obtaining module 502 is further configured to perform sine processing on the angle between the face and the screen to obtain a sine value; and determine the angle compensation coefficient based on the reciprocal of the difference between a preset value and the sine value.

[0200] In some embodiments, the apparatus further includes:

[0201] The second display module is configured to display based on a preset screen brightness when it is determined that no face exists based on the collected information; wherein the preset screen brightness is less than the initial screen brightness.

[0202] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0203] Figure 6 This is a block diagram illustrating an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a mobile computer, or other device including a screen.

[0204] Reference Figure 6 The electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0205] Processing component 802 typically controls the overall operation of electronic device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.

[0206] Memory 804 is configured to store various types of data to support the operation of electronic device 800. Examples of this data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0207] Power supply component 806 provides power to various components of electronic device 800. Power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800.

[0208] Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0209] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when electronic device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.

[0210] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0211] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of electronic device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of electronic device 800, changes in position of electronic device 800 or a component of electronic device 800, the presence or absence of user contact with electronic device 800, orientation or acceleration / deceleration of electronic device 800, and temperature changes of electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0212] Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. Electronic device 800 can access wireless networks based on communication standards, such as Wi-Fi, 4G, or 5G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0213] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0214] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of an electronic device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0215] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform a screen brightness processing method, the method comprising:

[0216] Acquire the information captured by the camera in the electronic device;

[0217] If a face is determined to be present based on the collected information, the initial screen brightness is compensated based on the position information of the face relative to the screen to obtain compensated brightness information; wherein, the initial screen brightness is determined based on the ambient light of the current environment in which the screen is located;

[0218] The display is based on the compensated brightness information.

[0219] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the foregoing claims.

[0220] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A screen brightness processing method, characterized by, Applied to electronic devices, including: Acquire the information captured by the camera in the electronic device; If a face is determined to exist based on the collected information, the initial screen brightness is compensated based on the position information of the face relative to the screen to obtain compensated brightness information; wherein, the initial screen brightness is determined according to the ambient light of the current environment in which the screen is located; the position information of the face relative to the screen includes: the distance between the center of the eyes in the face and the center of the screen, the angle between the face and the screen, and the coordinates of the center of the eyes relative to the center of the screen; Display based on the compensated brightness information; The step of compensating for the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information includes: Based on the position information of the face relative to the screen, a brightness compensation coefficient is determined; The initial screen brightness is compensated based on the brightness compensation coefficient to obtain the compensated brightness information; The step of obtaining the brightness compensation coefficient based on the position information of the face relative to the screen includes: The distance compensation coefficient is determined based on the distance between the center of the eyes in the face and the center of the screen; The light-gathering compensation coefficient is determined based on the distance between the center of the eyes in the face and the center of the screen, and the coordinates of the center of the eyes relative to the center of the screen. Determine the angle compensation coefficient based on the angle between the face and the screen; The brightness compensation coefficient is determined based on the distance compensation coefficient, the light intake compensation coefficient, and the included angle compensation coefficient. The step of determining the light-gathering compensation coefficient based on the distance between the center of the eyes in the face and the center of the screen, and the coordinates of the center of the eyes relative to the center of the screen, includes: Based on the coordinates of the center of the eye relative to the center of the screen, determine the projection distance between the projection point of the center of the screen onto the eye plane and the center of the eye; wherein, the eye plane is parallel to the screen; Based on the projection distance and the size of the electronic device, a first light-receiving angle of the electronic device centered on the eye is determined when the eye is facing the screen and a second light-receiving angle of the electronic device centered on the eye is determined when the eye is not facing the screen. The light-incident compensation coefficient is determined based on the first light-incident angle and the second light-incident angle.

2. The method of claim 1, wherein, The step of compensating the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information includes: Based on the position information of the face relative to the screen and the number of faces, a brightness compensation coefficient is determined; Based on the brightness compensation coefficient, the initial screen brightness is compensated to obtain the compensated brightness information.

3. The method according to claim 2, characterized in that, The step of determining the brightness compensation coefficient based on the position information of the face relative to the screen and the number of faces includes: When the number of faces exceeds a preset threshold and the electronic device is in privacy protection mode, a preset brightness reduction ratio is used as the brightness compensation coefficient. When the number of faces is greater than 0 and less than or equal to the number threshold; or when the number of faces is greater than the number threshold and the electronic device is not in the privacy protection mode, the brightness compensation coefficient is determined based on the position information of the faces relative to the screen.

4. The method of claim 1, wherein, Determining the light-attention compensation coefficient based on the first light-attention angle and the second light-attention angle includes: Obtain the difference between the first light-attention angle and the second light-attention angle; The light-incident compensation coefficient is obtained based on the ratio between the first light-incident angle and the difference.

5. The method of claim 1, wherein, The determination of the distance compensation coefficient based on the distance between the center of the eyes in the face and the center of the screen includes: The distance compensation coefficient is determined based on the ratio between the distance between the center of the eye and the center of the screen and a preset distance threshold.

6. The method of claim 1, wherein, The determination of the angle compensation coefficient based on the angle between the face and the screen includes: The angle between the face and the screen is sinusoidally processed to obtain a sine value; The included angle compensation coefficient is determined based on the reciprocal of the difference between the preset value and the sine value.

7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: If it is determined based on the collected information that the face does not exist, the display will be based on a preset screen brightness. The preset screen brightness is less than the initial screen brightness.

8. A screen brightness processing apparatus, characterized by comprising: Applied to electronic devices, the device includes: The acquisition module is configured to acquire information collected by the camera in the electronic device; The compensation module is configured to, when the presence of a face is determined based on the collected information, compensate the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information; wherein, the initial screen brightness is determined based on the ambient light of the current environment in which the screen is located; the position information of the screen includes: the distance between the center of the eyes in the face and the center of the screen, the angle between the face and the screen, and the coordinates of the center of the eyes relative to the center of the screen; The compensation module is further configured to: determine a distance compensation coefficient based on the distance between the center of the eyes in the face and the center of the screen; determine a light-gathering compensation coefficient based on the distance between the center of the eyes in the face and the center of the screen and the coordinates of the center of the eyes relative to the center of the screen; determine an angle compensation coefficient based on the angle between the face and the screen; determine a brightness compensation coefficient based on the distance compensation coefficient, the light-gathering compensation coefficient, and the angle compensation coefficient; and compensate the initial screen brightness based on the brightness compensation coefficient to obtain compensated brightness information. The compensation module is further configured to determine, based on the coordinates of the center of the eye relative to the center of the screen, the projection distance between the projection point of the center of the screen onto the eye plane and the center of the eye; wherein the eye plane is parallel to the screen; based on the projection distance and the size of the electronic device, determine a first light-receiving angle of the electronic device centered on the eye when the eye is facing the screen and a second light-receiving angle of the electronic device centered on the eye when the eye is not facing the screen; and determine the light-receiving compensation coefficient based on the first light-receiving angle and the second light-receiving angle. The first display module is configured to display based on the compensated brightness information.

9. An electronic device, comprising: include: processor; Memory used to store processor-executable instructions; The processor is configured to perform the screen brightness processing method as described in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium, comprising: When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the screen brightness processing method as described in any one of claims 1 to 7.