Screen brightness processing method and device, electronic equipment and storage medium
By using a camera in electronic devices to collect information, judge the face position and compensate the screen brightness, the problem of difficulty in adjusting screen brightness in different environments is solved, and adaptive adjustment of brightness and improved user experience is achieved.
Patent Information
- Application Number
- CN202311156264.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-08
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2043-09-08
AI Technical Summary
In different usage environments, it is difficult for the prior art to adjust the brightness of the screen adaptively, resulting in problems such as excessive brightness or too darkness, affecting the user's comfort and eye health.
By obtaining the camera acquisition information in the electronic device, determining whether there is a face, and compensating the initial screen brightness based on the position information of the face relative to the screen, and the compensated brightness information is displayed.
It realizes adaptive adjustment of screen brightness, reduces screen power consumption, improves user experience, and protects user eye health.
Smart Images

Figure CN119600972A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of display technology, and in particular to a screen brightness processing method and device, an electronic device, and a storage medium. Background Art
[0002] Screens are widely used in electronic devices such as mobile phones. With the widespread use of electronic devices, their use locations have also become diverse, such as offices, laboratories, conference rooms, production lines, etc. Due to the different use locations, the brightness of light provided by the external environment will also be different. If in a bright office, the brighter screen will make the user's eyes feel comfortable, but once moved to a dark place, such as a conference room, the same brightness will make the eyes very uncomfortable, and when focusing on work, they will not notice such changes. At this time, a screen that is too bright or too dark will unconsciously cause soreness in the eyes, and over time, it will cause damage to the eyes.
[0003] As a result, users have higher requirements for screen brightness, and how to adjust the screen brightness to suit users for display has become a problem that needs to be solved. Summary of the invention
[0004] The present disclosure provides a screen brightness processing method and device, an electronic device and a storage medium, which not only reduces the power consumption of the screen but also improves the user experience.
[0005] According to a first aspect of an embodiment of the present disclosure, a screen brightness processing method is provided, which is applied to an electronic device, including:
[0006] Acquiring acquisition information of a camera in the electronic device;
[0007] In the case where it is determined based on the collected information that there is a human face, the initial screen brightness is compensated based on the position information of the human face relative to the screen to obtain compensated brightness information; wherein the initial screen brightness is determined based on the ambient light of the environment in which the screen is currently located;
[0008] Display is performed based on the compensated brightness information.
[0009] In some embodiments, compensating the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information includes:
[0010] Determining a brightness compensation coefficient based on the position information of the face relative to the screen and the number of faces;
[0011] Based on the brightness compensation coefficient, the initial screen brightness is compensated to obtain 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 is greater than a preset number threshold and the electronic device is in a 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] determining a distance compensation coefficient based on a distance between a center of an eye in the face and a center of the screen;
[0018] Determine a light input compensation coefficient based on a distance between a center of an eye in the face and a center of the screen and a coordinate of the center of the eye relative to a center of the screen;
[0019] Determining an angle compensation coefficient based on an angle between the face and the screen;
[0020] The brightness compensation coefficient is determined based on the distance compensation coefficient, the light input compensation coefficient and the angle compensation coefficient.
[0021] In some embodiments, determining the light input 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, determining the projection distance between the projection point of the center of the screen onto the eye plane where the eye is located 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, determine a first light entry angle of the electronic device centered on the eye when the eye is facing the screen and a second light entry angle of the electronic device centered on the eye when the eye is not facing the screen;
[0024] The light entrance compensation coefficient is determined based on the first light entrance angle and the second light entrance angle.
[0025] In some embodiments, determining the light input compensation coefficient based on the first light input angle and the second light input angle includes:
[0026] Obtaining a difference between the first light incident angle and the second light incident angle;
[0027] The light input compensation coefficient is obtained based on the ratio between the first light input angle and the difference.
[0028] In some embodiments, determining the distance compensation coefficient based on the distance between the center of the eye in the face and the center of the screen includes:
[0029] The distance compensation coefficient is determined based on a ratio between a distance between a center of the eye and a 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] Performing sine processing on the angle between the face and the screen to obtain a sine value;
[0032] The angle compensation coefficient is determined based on the inverse of the difference between the preset value and the sine value.
[0033] In some embodiments, the method further comprises:
[0034] In the case where it is determined based on the collected information that the face information does not exist, displaying based on a preset screen brightness;
[0035] Wherein, the preset screen brightness is smaller than the initial screen brightness.
[0036] According to a second aspect of an embodiment of the present disclosure, a screen brightness processing device is provided, which is applied to an electronic device, and the device includes:
[0037] An acquisition module, configured to acquire acquisition information of a camera in the electronic device;
[0038] a compensation module configured to compensate the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information when it is determined that there is a face based on the collected information; wherein the initial screen brightness is determined according to the ambient light of the current environment of the screen;
[0039] The first display module is configured to display based on the compensated brightness information.
[0040] In some embodiments, the compensation 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; based on the brightness compensation coefficient, compensate the initial screen brightness to obtain compensated brightness information.
[0041] In some embodiments, the compensation module 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 a privacy protection mode; determine the brightness compensation coefficient based on the position information of the face 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.
[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 module is further configured to determine a distance compensation coefficient based on the distance between the center of the eye in the face and the center of the screen; determine a light input 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; determine an angle compensation coefficient based on the angle between the face and the screen; and determine the brightness compensation coefficient based on the distance compensation coefficient, the light input 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, a projection distance between a projection point where the center of the screen is projected onto an eye plane where the eye is located 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 entry angle of the electronic device centered on the eye when the eye is facing the screen and a second light entry angle of the electronic device centered on the eye when the eye is not facing the screen; and based on the first light entry angle and the second light entry angle, determine the light entry compensation coefficient.
[0045] In some embodiments, the compensation obtaining module is further configured to obtain the difference between the first light incident angle and the second light incident angle; and obtain the light incident compensation coefficient based on the ratio between the first light incident angle and the difference.
[0046] In some embodiments, the compensation obtaining module is further configured to determine the distance compensation coefficient based on a 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 module is further configured to perform sinusoidal processing on the angle between the face and the screen to obtain a sine value; and determine the angle compensation coefficient based on the inverse of the difference between a preset value and the sine value.
[0048] In some embodiments, the apparatus further comprises:
[0049] The second display module is configured to display based on a preset screen brightness when it is determined based on the collected information that the human face does not exist; wherein the preset screen brightness is less than the initial screen brightness.
[0050] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0051] processor;
[0052] a memory for storing processor-executable instructions;
[0053] Wherein, the processor is configured to execute the screen brightness processing method as described in the first aspect above.
[0054] According to a fourth aspect of an embodiment of the present disclosure, there is provided a storage medium, including:
[0055] When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the screen brightness processing method as described in the first aspect above.
[0056] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0057] In the disclosed embodiment, the electronic device first determines the initial screen brightness based on the ambient light brightness of the environment in which the screen is currently located; then compensates the initial screen brightness based on the position information of the face relative to the screen to obtain the compensated brightness information; and displays based on the compensated brightness information. In this way, on the one hand, the electronic device can adaptively adjust the screen brightness, thereby reducing the power consumption of the screen and increasing the standby time of the electronic device; on the other hand, the disclosed embodiment takes into account that the actual screen brightness that meets the user's needs is different due to the different positions of the face relative to the screen. Therefore, on the basis of determining the initial screen brightness based on the ambient light brightness, the initial screen brightness is compensated using the position information of the face relative to the screen, which can make the compensated brightness information more in line with the user's needs, thereby improving the user's user experience.
[0058] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0060] Figure 1 A screen brightness processing method flow chart according to an exemplary embodiment is shown Figure 1 .
[0061] Figure 2 The relative position information between a face and a screen is shown according to an exemplary embodiment. Figure 1 .
[0062] Figure 3 The relative position information between a face and a screen is shown according to an exemplary embodiment. Figure 2 .
[0063] Figure 4 A screen brightness processing method flow chart according to an exemplary embodiment is shown Figure 2 .
[0064] Figure 5 The figure is a diagram of a screen brightness processing device according to an exemplary embodiment.
[0065] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0066] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0067] Figure 1 This is a screen brightness processing method flow shown in the embodiment of the present disclosure Figure 1 ,like Figure 1 As shown, the screen brightness processing method applied to an electronic device includes the following steps:
[0068] S101, obtaining collection information of a camera in an electronic device;
[0069] S102, when it is determined based on the collected information that there is a face, compensating 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 of the screen;
[0070] S103: Display based on the compensated brightness information.
[0071] In the embodiments of the present disclosure, the screen brightness processing method can be applied to scenes where the ambient light brightness changes. For example, when an electronic device moves from a location with bright ambient light to a location with dark ambient light, since the screen brightness is too high, it is both harmful to the eyes and consumes power. Therefore, the screen brightness processing method of the embodiments of the present disclosure can be used to compensate for the initial screen brightness, so that the electronic device can adaptively adjust different screen brightnesses according to scenes with changing ambient light brightness to meet user needs.
[0072] In the embodiments of the present disclosure, electronic devices include user equipment (UE), mobile devices, user terminals, terminals, cellular phones, cordless phones, personal digital assistants (PDAs), handheld devices, computing devices, vehicle-mounted devices, wearable devices, and other devices that include display screens.
[0073] In step S101, the camera may be a front camera of an electronic device, the acquisition direction of the front camera is the same as the display of the screen, and the camera may be installed on the same side of the electronic device as the screen; the camera may be an always-on (AON) camera, and the acquisition information of the AON camera may be connected to the application chip (Application Processor, AP) in the electronic device through the mobile industry processor interface (Mobile Industry Processor Interface, MIPI). Since the AON camera acquires low pixels and the function is relatively simple to implement, the power consumption of the electronic device can be reduced.
[0074] In the embodiments of the present disclosure, the collected information may be obtained based on the image collected by the camera. The collected information includes face information and other information other than face information (such as collection time). Among them, the face information may include not only the position information of the face relative to the screen, but also the number of faces, etc., which is not limited in the embodiments of the present 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 eye relative to the center of the screen, the distance between the center of the eye and the center of the screen, the angle between the face and the screen, etc.
[0076] In step S102, before determining the initial screen brightness, the embodiment of the present disclosure needs to determine whether a face exists based on the collected information. Here, determining whether a face exists based on the collected information may include: matching the collected information with the facial feature information; and determining whether a face exists in the collected information if the match is successful.
[0077] Here, if it is determined based on the collected information that there is a face, the screen brightness can be adjusted based on the ambient light brightness. In some embodiments, the method further includes:
[0078] When it is determined based on the collected information that there is no face, display is performed based on a preset screen brightness; wherein the preset screen brightness is less than the initial screen brightness.
[0079] In the embodiment of the present disclosure, it is determined based on the collected information that there is no face, indicating that there is no user in front of the screen and the user does not need to watch the screen. At this time, the embodiment of the present disclosure can directly reduce the display brightness of the electronic device to the preset screen brightness.
[0080] It should be noted that the preset screen brightness can be set according to actual conditions, and the embodiments of the present disclosure do not limit this.
[0081] In the disclosed embodiments, the electronic device can adjust the screen brightness in different ways based on the collected information to determine whether there is a face. On the one hand, when a face is present, the impact of the face on the screen display can be considered, and the screen brightness can be adjusted in combination with the ambient light brightness and the face. On the other hand, when no face is present, the display is 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 there are many ways for electronic devices to obtain ambient light brightness. The ambient light brightness can be obtained by the electronic device itself; or the ambient light brightness can be obtained by a communicative device in the surrounding environment. For example, a light sensor is set in the electronic device to collect the ambient light brightness, and the ambient light brightness collected by the light sensor is received by registering a light-sensitive receiver; for another example, in smart home, smart office and other environments, the electronic device establishes communication with surrounding related devices with ambient light brightness collection function to obtain the ambient light brightness collected by the related devices. Among them, the data of the light sensor can be one or more.
[0083] In an embodiment of the present disclosure, determining the initial screen brightness based on the ambient light brightness of the current environment of the screen may include: performing logarithmic processing on the ambient light brightness of the current environment to determine the initial screen brightness.
[0084] Exemplarily, the electronic device may determine the initial screen brightness as shown in the following formula (1):
[0085] nit1= ln(als) (1)
[0086] Among them, als is the ambient light brightness of the current environment of the screen, in candela (cd); nit1 is the initial screen brightness, in nits (nit) or candela / square meter (cd / m 2 ).
[0087] In the embodiment of the present disclosure, compensating the initial screen brightness based on the position information of the face relative to the screen may be adjusting the initial screen brightness based on the position information of the face relative to the screen. Here, the electronic device compensating 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 the initial screen brightness based on the brightness compensation coefficient; it may also include: determining a 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 the initial screen brightness based on the screen brightness compensation value, etc.
[0088] In step S103, when it is determined that there is a face based on the collected information, the electronic device performs display based on the compensated brightness information. That is, after determining that there is a face, the embodiment of the present disclosure adjusts the screen display brightness in combination with the position information relative to the screen and the ambient light brightness.
[0089] For example, in the related art, the electronic device only adjusts the screen display brightness based on the ambient light brightness; or adjusts the screen brightness based on the user's eye opening and the ambient light brightness; or adjusts the screen brightness based on the position of the gaze point of the human eye on the screen and the distance between the gaze point and the camera. It can be seen that the related art does not consider the influence of the relative position information between the face and the screen on the screen display brightness.
[0090] Based on this, in the disclosed embodiment, the electronic device first determines the initial screen brightness based on the ambient light brightness of the environment in which the screen is currently located; then compensates the initial screen brightness based on the position information of the face relative to the screen to obtain the compensated brightness information; and displays based on the compensated brightness information. In this way, on the one hand, the electronic device can adaptively adjust the screen brightness, thereby reducing the power consumption of the screen and increasing the standby time of the electronic device; on the other hand, the disclosed embodiment takes into account that the actual screen brightness that meets the user's needs is different due to the different positions of the face relative to the screen. Therefore, on the basis of determining the initial screen brightness based on the ambient light brightness, the initial screen brightness is also compensated using the position information of the face relative to the screen, which can make the compensated brightness information more in line with the user's needs, thereby improving the user's experience.
[0091] In some embodiments, compensating the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information includes:
[0092] Determining a brightness compensation coefficient based on the position information of the face relative to the screen and the number of faces;
[0093] Based on the brightness compensation coefficient, the initial screen brightness is compensated to obtain compensated brightness information.
[0094] In the embodiment of the present disclosure, the face 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 the embodiment of the present disclosure does not limit this.
[0095] It should be noted that different numbers of faces may determine different brightness compensation coefficients, thereby obtaining different compensated brightness information. For example, when the user is in front of the screen, the brightness compensation coefficient when there are other people peeping may be smaller than the brightness compensation coefficient when there are no other people peeping, and correspondingly, the screen brightness when there are other people peeping may be smaller than the screen brightness when there are no other people peeping.
[0096] In the disclosed embodiment, different compensation coefficients may be determined for different position information of human faces relative to the screen, thereby obtaining different compensated brightness information. For example, the brightness compensation coefficient when the angle between the user and the screen of the electronic device is at a preset angle may be smaller than the brightness compensation coefficient when the user is far away from the electronic device, and correspondingly, the screen brightness at the preset angle may be smaller than the screen brightness when the user is far away from the electronic device.
[0097] The above-mentioned compensating 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] Exemplarily, the compensated brightness information obtained by the electronic device may be expressed as follows:
[0099] nit=nit1×x_low (2)
[0100] Among them, nit is the brightness information after screen compensation, the unit is candela; nit1 is the initial screen brightness; x_low is the brightness compensation coefficient.
[0101] In the disclosed embodiment, the electronic device determines the brightness compensation coefficient based on the position information of the face relative to the screen and the number of faces; then compensates the initial screen brightness based on the brightness compensation coefficient to obtain compensated brightness information. That is, in addition to compensating the initial screen brightness based on the position information of the face relative to the screen, the disclosed embodiment also takes into account the impact of the number of faces on the screen brightness, which can further make 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 is greater than a preset number threshold and the electronic device is in a 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 the embodiment of the present disclosure, different numbers of faces correspond to different brightness compensation coefficients. Here, the number threshold can be set to 1 or 2, etc., and the embodiment of the present disclosure does not limit this.
[0106] It should be noted that the electronic device has a privacy protection function, and the electronic device may be in a privacy protection mode or not. In the disclosed embodiment, when the number of faces is greater than a preset threshold, that is, when there is a user watching in front of the screen, the electronic device may further determine whether it is in a privacy protection mode. If it is in the privacy protection mode, the preset brightness reduction ratio is used as the brightness compensation coefficient; if it is not in the privacy protection mode, the brightness compensation coefficient is determined based on the position information of the face relative to the screen. Here, the preset brightness reduction ratio may be greater than or equal to 0.1 and less than or equal to 0.9.
[0107] It is understandable that the embodiments of the present disclosure can be applied to various scenarios in which whether the electronic device is in a privacy protection mode is combined with whether the number of faces is greater than a preset number threshold. In the embodiments of the present disclosure, when the number of faces is greater than 0 and less than or equal to the number 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 number threshold is also 1, the number of users in front of the screen is 1 at this time. There is no need to determine whether the electronic device is in a privacy protection mode, and the brightness compensation coefficient can be determined directly based on the position information of the faces relative to the screen.
[0108] In the disclosed embodiment, when the number of faces is greater than a preset number threshold and the electronic device is in a privacy protection mode, the electronic device uses a preset brightness reduction ratio as a 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 a 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, the disclosed embodiment not only compensates for the initial screen brightness by combining the position information of the faces relative to the screen and the number of faces, but also takes into account the influence of whether the electronic device is in a privacy protection mode on the screen brightness, which can not only further make the compensated brightness information more in line with the user's actual usage scenario, thereby improving the user's usage experience, but also better protect the user's privacy; on the other hand, since the preset brightness reduction ratio is used as the brightness compensation coefficient, the required amount of calculation is small, so that the amount of calculation 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, 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 eye 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 eye 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] Determining a distance compensation coefficient based on the distance between the center E of the eye in the face 1 and the center O1 of the screen;
[0112] Determine a light input compensation coefficient 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] Determining an angle compensation coefficient based on an angle between the face 1 and the screen 2;
[0114] The brightness compensation coefficient is determined based on the distance compensation coefficient, the light input compensation coefficient and the angle compensation coefficient.
[0115] In the embodiments of the present disclosure, the center of the eye refers to the center of both eyes; the distance between the center of the eye in the face and the center of the screen refers to the straight-line distance from the center of the eye to the center of the screen.
[0116] Figure 2, the eye plane 3 is parallel to the screen 2, and the center O2 of the eye plane is the projection point of the center O1 of the screen onto the eye plane. The xy coordinate system of the screen 2 is constructed with the center O1 of the screen as the origin, and correspondingly, the x-axis is parallel to the long side of the screen 2, and the y-axis is parallel to the wide side of the screen 2; the xy coordinate system of the eye plane 3 is constructed with the center O2 of the eye plane as the origin, and correspondingly, the x-axis of the eye plane 3 is parallel to the x-axis of the screen 2, and the y-axis of the eye plane 3 is parallel to the y-axis of the screen 2. Based on this, the coordinates of the center E of the eye relative to the center O1 of the screen refer to the coordinates of the center E of the eye on the eye plane 3 where the eye is located, including the position of the center E of the eye in the x-axis direction of the eye plane 3 and the position in the y-axis direction of the eye plane 3.
[0117] In the disclosed embodiment, the distance between the center of the eye in the face and the center of the screen can reflect the distance of the user from the screen of the electronic device; 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 can reflect whether the user is moving the electronic device; the angle between the face and the screen can reflect the tilt relationship between the user's face and the electronic device. It can be seen that the above relative position information can reflect various relative relationships between the user and the screen, so that when the user moves away from, tilts, or moves the electronic device, the screen brightness can be adaptively adjusted.
[0118] In an embodiment of the present disclosure, a brightness compensation coefficient is determined based on the distance compensation coefficient, the light input compensation coefficient and the angle compensation coefficient, including: obtaining the brightness compensation coefficient based on the product of the distance compensation coefficient, the light input compensation coefficient and the angle compensation coefficient.
[0119] Exemplarily, the electronic device may determine the brightness compensation coefficient as shown in the following formula (3):
[0120] nit=nit1×x_dis×x_pos×x_deg (3)
[0121] Among them, nit is the brightness information after screen compensation; nit1 is the initial screen brightness; x_dis is the distance compensation coefficient; x_pos is the light compensation coefficient; x_deg is the angle compensation coefficient. Here, any coefficient of the distance compensation coefficient, light compensation coefficient and angle compensation coefficient is proportional to the size of the brightness compensation coefficient.
[0122] In the disclosed embodiment, the electronic device determines the distance compensation coefficient, the light input compensation coefficient and the angle compensation coefficient based on the relative position information between the face and the screen, including: 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; and then determines the brightness compensation coefficient based on the distance compensation coefficient, the light input compensation coefficient and the angle compensation coefficient. In other words, the disclosed embodiment takes into account factors such as the distance, angle, and coordinates of the position information of the face relative to the screen, and the above multiple factors can reflect the various relative position relationships between the user's face and the screen, so that the compensated brightness information obtained by combining the above factors is more in line with the user's actual usage scenario, thereby improving the user's usage experience.
[0123] In some embodiments, Figure 3 As shown, the determining of the light input 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, determine the projection distance pos between the projection point O2 of the center O1 of the screen onto the eye plane where the eye is located and the center E of the eye; wherein the eye plane is parallel to the screen;
[0125] Based on the projection distance pos and the size of the electronic device, determine a first light entry angle θ1 of the electronic device centered on the eye when the eye is facing the screen and a second light entry angle θ2 of the electronic device centered on the eye 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 an embodiment of the present disclosure, the electronic device determines the projection distance between the projection point of the center of the screen onto the eye plane where the eye is located and the center of the eye based on the coordinates of the center of the eye relative to the center of the screen, which may include: determining the projection distance based on the position of the center of the eye in the x-axis direction of the eye plane 3 and the position in the y-axis direction of the eye plane 3.
[0128] Exemplarily, the projection distance may be determined as shown in the following formula (4):
[0129] pos=(pos_x 2 +pos_y 2 ) 1 / 2 (4)
[0130] Among them, pos is the projection distance between the projection point of the center of the screen onto the eye plane where the eye is located and the center of the eye; pos_x is the coordinate of the center of the eye in the x-axis direction of the eye plane 3; pos_y is the coordinate of the center of the eye in the y-axis direction of the eye plane 3.
[0131] In an embodiment of the present disclosure, the electronic device determines, based on the projection distance and the size of the electronic device, a first light entrance angle of the electronic device centered on the eye when the eye is facing the screen and a second light entrance angle of the electronic device centered on the eye when the eye is not facing the screen. Here, the size of the electronic device includes the length of the screen or the width of the screen. If the user faces the screen and the screen is placed in landscape orientation, the electronic device can determine the first light entrance angle and the second light entrance angle based on the projection distance and the width of the screen; if the screen is placed in portrait orientation, the electronic device can determine the first light entrance angle and the second light entrance angle based on the projection distance and the length of the screen.
[0132] In an embodiment of the present disclosure, the electronic device determines a first light entry angle of the electronic device centered on the eye when the eye is facing the screen based on the projection distance and the size of the electronic device, which may include: first determining the distance between the eye plane and the screen based on the projection distance, and then determining the first light entry angle based on the distance between the eye plane and the screen and the size of the electronic device.
[0133] Exemplarily, the electronic device determines the distance between the eye plane and the screen based on the projection distance, which can be shown in the following formula (5):
[0134] dis1=(dis 2 -pos 2 ) 1 / 2 (5)
[0135] Among them, dis1 is the distance between the eye plane where the eye is located and the screen; dis is the distance between the center of the eye in the face and the center of the screen; pos is the projection distance.
[0136] Exemplarily, the electronic device determines the first light entry angle based on the distance between the eye plane and the screen and the size of the electronic device, which can be shown in the following formula (6):
[0137] θ1=2×arctan(L / (2×dis1)) (6)
[0138] Wherein, θ1 is the first light entry 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 where the eye is located and the screen. In the embodiment of the present disclosure, under the premise of a fixed screen size, the first light entry 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 entry angle is.
[0139] In an embodiment of the present disclosure, the electronic device determines a second light entry angle of the electronic device centered on the eye when the eye is not facing the screen based on the projection distance and the size of the screen of the electronic device, which may include: determining the second light entry 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] Exemplarily, the electronic device may determine the second light incident angle as shown in the following formula (7):
[0141] θ2=arctan(L / 2+pos / dis) (7)
[0142] Among them, θ2 is the second light input angle of the electronic device centered on the eye when the eye is not 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 where the eye is located and the center of the eye; dis is the distance between the center of the eye in the human face and the center of the screen.
[0143] In an embodiment of the present disclosure, the electronic device determines a light entry compensation coefficient based on the first light entry angle and the second light entry angle. Based on the difference between the first light entry angle and the second light entry angle, the electronic device can determine whether the user is moving the electronic device, and can also know how much the electronic device has been moved. It is understandable that if there is no difference or a small difference between the first light entry angle and the second light entry angle, it indicates that the user's eyes are facing or nearly facing the screen; if there is a large difference between the first light entry angle and the second light entry angle, it indicates that the user's eyes are not facing the screen.
[0144] In the embodiment of the present disclosure, the electronic device determines a first light entry angle of the electronic device centered on the eye when the eye is facing the screen and a second light entry angle of the electronic device centered on the eye when the eye is not facing the screen based on the projection distance from the eye to the screen and the size of the electronic device; and then determines a light entry compensation coefficient based on the first light entry angle and the second light entry angle. Since the difference between the first light entry angle and the second light entry angle is proportional to the degree to which the eye deviates from the screen, the screen brightness can be increased if the user is away from the screen, and the screen brightness can be reduced if the user is facing the screen. Based on this, the electronic device can determine the corresponding light entry compensation coefficient based on the first light entry angle and the second light entry angle, thereby adjusting the screen brightness.
[0145] In some embodiments, determining the light input compensation coefficient based on the first light input angle and the second light input angle includes:
[0146] Obtaining a difference between the first light incident angle and the second light incident angle;
[0147] The light input compensation coefficient is obtained based on the ratio between the first light input angle and the difference.
[0148] Exemplarily, the electronic device obtains the difference between the first light incident angle and the second light incident angle; and then obtains the light incident compensation coefficient based on the ratio between the first light incident angle and the difference, as shown in the following formula (8):
[0149] x_pos=θ1 / (θ1-θ2) (8)
[0150] Among them, x_pos is the light input compensation coefficient; θ1 is the first light input angle of the electronic device with the eye as the center when the eye is facing the screen; θ2 is the second light input angle of the electronic device with the eye as the center when the eye is not facing the screen; (θ1-θ2) is the difference between the first light input angle and the second light input angle.
[0151] In the disclosed embodiment, the electronic device obtains the difference between the first light entrance angle and the second light entrance angle; based on the ratio between the first light entrance angle and the difference, a light entrance compensation coefficient is obtained, so that the electronic device can adjust the screen brightness based on the obtained light entrance compensation coefficient. Since the difference between the first light entrance angle and the second light entrance angle is inversely proportional to the size of the light entrance compensation coefficient, the electronic device can determine the corresponding light entrance compensation coefficient based on the first light entrance angle and the second light entrance angle, thereby adjusting the screen brightness.
[0152] In some embodiments, determining the distance compensation coefficient based on the distance between the center of the eye in the face and the center of the screen includes:
[0153] The distance compensation coefficient is determined based on a ratio between a distance between a center of an eye in the face and a center of the screen and a preset distance threshold.
[0154] Exemplarily, the electronic device determines the distance compensation coefficient based on the ratio between the distance between the center of the eye in the face and the center of the screen and a preset distance threshold, as shown in the following formula (9):
[0155] x_dis=dis / x0 (9)
[0156] Among them, x_dis is the distance compensation coefficient; dis is the distance between the center of the eye in the face and the center of the screen; x0 is a preset distance threshold, which is not limited in the embodiment of the present disclosure, for example, it can be 40 centimeters (cm).
[0157] In the disclosed embodiment, the electronic device determines the distance compensation coefficient based on the ratio between the distance between the center of the eye in the face and the center of the screen and the preset distance threshold, so that the electronic device can adjust the screen brightness based on the obtained distance compensation coefficient. Since the distance between the center of the eye and the center of the screen is proportional to the size of the distance compensation coefficient, the electronic device can determine the corresponding distance compensation coefficient based on the distance between the center of the eye 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] Performing sine processing on the angle between the face and the screen to obtain a sine value;
[0160] The angle compensation coefficient is determined based on the inverse of the difference between the preset value and the sine value.
[0161] Exemplarily, the electronic device performs sinusoidal processing on the angle between the face and the screen to obtain a sine value; and determines the angle compensation coefficient based on the inverse of the difference between the preset value and the sine value, as shown in the following formula (10):
[0162] x_deg=1 / (1-sin(deg)) (10)
[0163] Among them, 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 indicates that the face is parallel to the screen.
[0164] In the disclosed embodiment, the electronic device performs sinusoidal processing on the angle between the face and the screen to obtain a sinusoidal value; based on the inverse of the difference between the preset value and the sinusoidal value, the angle compensation coefficient is determined, so that the electronic device can adjust the screen brightness based on the obtained angle compensation coefficient. Since the angle between the face and the screen is proportional to the size 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 is a flowchart of a method for processing screen brightness according to an exemplary embodiment. Figure 4 As shown, the following steps are included:
[0166] S401, acquiring collection information of a camera in an electronic device.
[0167] In the embodiment of the present disclosure, the electronic device may obtain the collected information from the camera at a predetermined time interval, or the camera may collect the information at a predetermined time interval and actively send it to the electronic device.
[0168] S402. Determine whether a face exists based on the collected information; if yes, execute step S404; if not, execute step S403.
[0169] In the embodiment of the present disclosure, when there is a human face and a user in front of the screen, the initial screen brightness is determined based on the ambient light brightness of the current environment of the screen, and the initial screen brightness is compensated based on the position information of the human face relative to the screen; when there is no human face and no user 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] Exemplarily, the preset screen brightness may be 5 nit.
[0172] S404: Determine the initial screen brightness based on the ambient light brightness of the environment in which the screen is currently located.
[0173] In an embodiment of the present disclosure, the electronic device first obtains the ambient light brightness of the environment in which the screen is currently located, and then determines the initial screen brightness based on the ambient light brightness.
[0174] In the disclosed embodiment, the electronic device may obtain the ambient light brightness at a predetermined time interval, or may obtain the ambient light brightness when receiving a predetermined signal. For example, the electronic device obtains the ambient light brightness every 1 second; for another example, the electronic device obtains the ambient light brightness when it detects a signal that the light sensor data is updated.
[0175] S405, determine whether the number of faces is greater than a preset number threshold; if yes, execute step S406; if no, execute step S408.
[0176] The embodiment of the present disclosure is applied to the case where there are faces, indicating that the number of faces is greater than 0. In the embodiment of the present disclosure, the electronic device determines whether the number of faces is greater than a preset number threshold. If the number of faces is greater than the preset number threshold, it is further determined whether the electronic device is in a privacy protection mode; if the number of faces is less than or equal to the preset number threshold, the 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 the privacy protection mode; if yes, execute step S407; if no, execute step S408.
[0178] In the embodiment of the present disclosure, when the number of faces is greater than a preset number threshold, it is further determined whether the electronic device is in a privacy protection mode. If the electronic device is in the privacy protection mode, the electronic device uses a preset brightness reduction ratio as a brightness compensation coefficient; if the electronic device is not in the privacy protection mode, the brightness compensation coefficient is determined based on the position information of the face relative to the screen.
[0179] S407: Using the preset brightness reduction ratio as a brightness compensation coefficient.
[0180] In the embodiment of the present disclosure, the electronic device uses the preset brightness reduction ratio as the 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 the embodiment of the present disclosure, the compensated brightness information can be less than or equal to or less than the preset screen brightness in step S403.
[0181] S408: Determine a brightness compensation coefficient based on the position information of the face relative to the screen.
[0182] In an embodiment of the present disclosure, the electronic device determines a brightness compensation coefficient based on position information of a face relative to a 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 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 and the screen in the face information; and determining a brightness compensation coefficient based on the distance compensation coefficient, the light compensation coefficient and the angle compensation coefficient.
[0183] S409, based on the brightness compensation coefficient, compensate the initial screen brightness to obtain compensated brightness information; and display based on the compensated brightness information.
[0184] In the embodiment of the present disclosure, the electronic device compensates for the initial screen brightness based on the brightness compensation coefficient determined in step S407 or step S408 to obtain compensated brightness information.
[0185] S410: Display based on the compensated brightness information.
[0186] In the embodiment of the present disclosure, the electronic device performs display based on the compensated brightness information obtained in step S409.
[0187] In the disclosed embodiment, the electronic device first determines the initial screen brightness based on the ambient light brightness of the environment in which the screen is currently located; then compensates the initial screen brightness based on the position information of the face relative to the screen to obtain the compensated brightness information; and displays based on the compensated brightness information. In this way, on the one hand, the electronic device can adaptively adjust the screen brightness, thereby reducing the power consumption of the screen and increasing the standby time of the electronic device; on the other hand, the disclosed embodiment takes into account that the actual screen brightness that meets the user's needs is different due to the different positions of the face relative to the screen. Therefore, on the basis of determining the initial screen brightness based on the ambient light brightness, the initial screen brightness is compensated using the position information of the face relative to the screen, which can make the compensated brightness information more in line with the user's needs, thereby improving the user's user experience.
[0188] Figure 5 FIG. 1 is a diagram showing a screen brightness processing device for an electronic device according to an exemplary embodiment. Figure 5 As shown, the screen brightness processing device 500 applied to an electronic device includes:
[0189] An acquisition module 501 is configured to acquire acquisition information of a camera in the electronic device;
[0190] The compensation module 502 is configured to compensate the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information when it is determined that there is a face based on the collected information; wherein the initial screen brightness is determined according to the ambient light of the current environment of the screen;
[0191] The first display module 503 is configured to perform display based on the compensated brightness information.
[0192] In some embodiments, the compensation 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; based on the brightness compensation coefficient, compensate the initial screen brightness 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 a privacy protection mode; determine the brightness compensation coefficient based on the position information of the face 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 module 502 is further configured to determine a distance compensation coefficient based on the distance between the center of the eye in the face and the center of the screen; determine a light input 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; determine an angle compensation coefficient based on the angle between the face and the screen; and determine the brightness compensation coefficient based on the distance compensation coefficient, the light input 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, a projection distance between a projection point where the center of the screen is projected onto an eye plane where the eye is located 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 entry angle of the electronic device centered on the eye when the eye is facing the screen and a second light entry angle of the electronic device centered on the eye when the eye is not facing the screen; and determine the light entry compensation coefficient based on the first light entry angle and the second light entry angle.
[0197] In some embodiments, the compensation obtaining module 502 is further configured to obtain the difference between the first light incident angle and the second light incident angle; and obtain the light incident compensation coefficient based on the ratio between the first light incident 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 eye in the face and the center of the screen and a preset distance threshold.
[0199] In some embodiments, the compensation module 502 is further configured to perform sinusoidal processing on the angle between the face and the screen to obtain a sine value; and determine the angle compensation coefficient based on the inverse of the difference between a preset value and the sine value.
[0200] In some embodiments, the apparatus further comprises:
[0201] The second display module is configured to display based on a preset screen brightness when it is determined based on the collected information that there is no face; wherein the preset screen brightness is less than the initial screen brightness.
[0202] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0203] Figure 6 8 is a block diagram of an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a device including a screen, such as a mobile phone or a mobile computer.
[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 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] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0206] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The 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 memory, flash memory, magnetic disk or optical disk.
[0207] The power component 806 provides power to the various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0208] The 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 touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0209] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the 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 button, volume button, start button, and lock button.
[0211] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0212] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as Wi-Fi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can 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 above methods.
[0214] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0215] A non-transitory computer-readable storage medium, when the 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] Acquiring acquisition information of a camera in the electronic device;
[0217] In the case where it is determined based on the collected information that there is a human face, the initial screen brightness is compensated based on the position information of the human face relative to the screen to obtain compensated brightness information; wherein the initial screen brightness is determined based on the ambient light of the environment in which the screen is currently located;
[0218] Display is performed based on the compensated brightness information.
[0219] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims above.
[0220] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A screen brightness processing method, characterized in that: Used in electronic equipment, including: Acquiring acquisition information of a camera in the electronic device; In the case where it is determined based on the collected information that there is a human face, the initial screen brightness is compensated based on the position information of the human face relative to the screen to obtain compensated brightness information; wherein the initial screen brightness is determined based on the ambient light of the environment in which the screen is currently located; Display is performed based on the compensated brightness information.
2. The method according to claim 1, characterized in that The compensating the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information includes: Determining a brightness compensation coefficient based on the position information of the face relative to the screen and the number of faces; Based on the brightness compensation coefficient, the initial screen brightness is compensated to obtain compensated brightness information.
3. The method according to claim 2, characterized in that The determining of 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 is greater than a preset number threshold and the electronic device is in a 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 according to claim 3, characterized in that 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.
5. The method according to claim 4, characterized in that The determining the brightness compensation coefficient based on the position information of the face relative to the screen includes: determining a distance compensation coefficient based on a distance between a center of an eye in the face and a center of the screen; Determine a light input compensation coefficient based on a distance between a center of an eye in the face and a center of the screen and a coordinate of the center of the eye relative to a center of the screen; Determining an angle compensation coefficient based on an angle between the face and the screen; The brightness compensation coefficient is determined based on the distance compensation coefficient, the light input compensation coefficient and the angle compensation coefficient.
6. The method according to claim 5, characterized in that The determining of the light input 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: Based on the coordinates of the center of the eye relative to the center of the screen, determining the projection distance between the projection point of the center of the screen onto the eye plane where the eye is located 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 entry angle of the electronic device centered on the eye when the eye is facing the screen and a second light entry angle of the electronic device centered on the eye when the eye is not facing the screen; The light entrance compensation coefficient is determined based on the first light entrance angle and the second light entrance angle.
7. The method according to claim 6, characterized in that The determining the light input compensation coefficient based on the first light input angle and the second light input angle includes: Obtaining a difference between the first light incident angle and the second light incident angle; The light input compensation coefficient is obtained based on the ratio between the first light input angle and the difference.
8. The method according to claim 5, characterized in that The determining of the distance compensation coefficient based on the distance between the center of the eye in the face and the center of the screen includes: The distance compensation coefficient is determined based on a ratio between a distance between a center of the eye and a center of the screen and a preset distance threshold.
9. The method according to claim 5, characterized in that The determining of the angle compensation coefficient based on the angle between the face and the screen includes: Performing sine processing on the angle between the face and the screen to obtain a sine value; The angle compensation coefficient is determined based on the inverse of the difference between the preset value and the sine value.
10. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: In the case where it is determined based on the collected information that the human face does not exist, displaying based on a preset screen brightness; Wherein, the preset screen brightness is smaller than the initial screen brightness.
11. A screen brightness processing device, characterized in that: Applied to electronic equipment, the device comprises: An acquisition module, configured to acquire acquisition information of a camera in the electronic device; a compensation module configured to compensate the initial screen brightness based on the position information of the face relative to the screen to obtain compensated brightness information when it is determined that there is a face based on the collected information; wherein the initial screen brightness is determined according to the ambient light of the current environment of the screen; The first display module is configured to display based on the compensated brightness information.
12. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the screen brightness processing method as described in any one of claims 1 to 10.
13. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the screen brightness processing method as described in any one of claims 1 to 10.
Citation Information
Patent Citations
Display screen brightness adjusting method and system
CN105469773A
Method and device for adjusting brightness of display screen
CN106157926A
Screen light supplement implementation method and device and electronic equipment
CN109862279A
Privacy protection method, terminal and storage medium
CN111866267A
Method for adaptively adjusting brightness of flat panel display screen
CN112951138A