Screen brightness control method, device, electronic device and storage medium
By combining the user's eye opening amplitude, usage distance characteristic value and ambient light information, the screen brightness of the electronic device is automatically adjusted, and the problem of lack of personalization of brightness adjustment in the prior art is solved, thus achieving the protection of user's eye health and improving visual experience.
Patent Information
- Application Number
- CN202211310117.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-25
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2042-10-25
AI Technical Summary
The prior art lacks personalization when adjusting the display brightness of electronic devices, and cannot automatically adjust the brightness according to the eye characteristics and usage habits of different users, resulting in unreasonable brightness that causes damage to the user's eye health.
By determining the eye opening range and usage distance of the current user, obtaining the eye opening range and usage distance characteristic values in the user's historical usage habits, combining ambient light information, calculate the acceptable degree of light passing through and light intensity of the user's eye, and then automatically adjust the screen brightness to achieve the best visual effect.
It realizes that the screen brightness can be automatically adjusted according to its usage habits without manual adjustment by users, protecting the user's eye health and improving the visual experience.
Smart Images

Figure CN115547276B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technology, and in particular to a screen brightness control method, device, electronic device and storage medium. Background Art
[0002] With the rapid development of economy and technology, various applications are used more and more frequently in people's daily life. Nowadays, light pollution is also attracting more and more attention. The unreasonable brightness of electronic devices when displaying applications is very harmful to people's eyes.
[0003] At present, the main solution for adjusting the display brightness of various electronic devices is to adjust the screen brightness of mobile phones by detecting the ambient light brightness. However, this adjustment solution is actually relatively rough, because even in the same light brightness environment, different users have different requirements for screen brightness. For example, users with healthy eyes and users with eye characteristics such as trachoma and light sensitivity have certain differences in their requirements for screen brightness. Summary of the invention
[0004] The embodiments of the present invention provide a screen brightness control method, device, electronic device and storage medium, which can automatically adjust the screen brightness of the electronic device according to the user's usage habits without the user having to manually adjust the screen brightness of the electronic device, which is beneficial to protecting the user's eye health.
[0005] An embodiment of the present invention provides a screen brightness control method, comprising:
[0006] When the current user uses the target application, determining the eye opening extent of the current user and the use distance between the face of the current user and the terminal;
[0007] Acquire an eye opening amplitude characteristic value and a usage distance characteristic value when the current user uses the target application in a historical period;
[0008] Detecting current ambient light information, and calculating reference screen brightness according to the ambient light information;
[0009] Calculating, according to the eye opening amplitude and the eye opening amplitude characteristic value, a light passability degree through the eyes of the current user at a current moment, wherein the light passability degree through the eyes is used to indicate a degree to which the eyes of the current user allow light to pass through;
[0010] Calculating the light intensity acceptability of the current user at the current moment according to the use distance and the use distance characteristic value, wherein the light intensity acceptability is used to indicate the acceptance degree of the current user for the light intensity;
[0011] Calculating a target screen brightness corresponding to the target application based on the reference screen brightness, the eye light passability, and the light intensity acceptability;
[0012] The screen brightness of the terminal is controlled according to the target screen brightness.
[0013] Accordingly, an embodiment of the present invention further provides a screen brightness control device, comprising:
[0014] A current data acquisition unit, used to determine the eye opening extent of the current user and the use distance between the face of the current user and the terminal when the current user uses the target application;
[0015] A historical data acquisition unit, used to acquire an eye opening amplitude characteristic value and a usage distance characteristic value when the current user uses the target application within a historical period;
[0016] A reference brightness calculation unit, used to detect current ambient light information and calculate a reference screen brightness according to the ambient light information;
[0017] a light passability calculation unit, used to calculate the light passability of the eyes of the current user at a current moment according to the eye opening amplitude and the eye opening amplitude characteristic value, wherein the eye light passability is used to indicate the degree to which the eyes of the current user allow light to pass;
[0018] a light intensity acceptability calculation unit, used to calculate the light intensity acceptability of the current user at a current moment according to the use distance and the use distance characteristic value, wherein the light intensity acceptability is used to indicate the acceptance degree of the current user for the light intensity;
[0019] a target brightness calculation unit, configured to calculate a target screen brightness corresponding to the target application based on the reference screen brightness, the eye light passability and the light intensity acceptability;
[0020] A brightness control unit is used to control the screen brightness of the terminal according to the target screen brightness.
[0021] Correspondingly, an embodiment of the present invention further provides an electronic device, comprising a memory and a processor; the memory stores an application, and the processor is used to run the application in the memory to execute the steps in any screen brightness control method provided in the embodiment of the present invention.
[0022] Correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, which stores a plurality of instructions, and the instructions are suitable for a processor to load to execute the steps in any screen brightness control method provided in the embodiment of the present invention.
[0023] In addition, an embodiment of the present invention further provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps in any screen brightness control method provided by an embodiment of the present invention.
[0024] By adopting the scheme of the embodiment of the present invention, when the current user uses the target application, the eye opening amplitude of the current user and the use distance between the face of the current user and the terminal can be determined, the eye opening amplitude characteristic value and the use distance characteristic value of the current user when using the target application in the historical period can be obtained, the current ambient light information can be detected, the reference screen brightness can be calculated according to the ambient light information, the eye light passability of the current user at the current moment can be calculated according to the eye opening amplitude and the eye opening amplitude characteristic value, and the eye light passability is used to indicate the degree to which the eyes of the current user allow light to pass, and the light intensity acceptability of the current user at the current moment can be calculated according to the use distance and the use distance characteristic value, and the light intensity acceptability is used to indicate The current user's acceptance degree of light intensity is calculated based on the reference screen brightness, the light passability of the eyes and the acceptability of the light intensity, and the target screen brightness corresponding to the target application is calculated, and the screen brightness of the terminal is controlled according to the target screen brightness. In an embodiment of the present invention, the reference screen brightness obtained according to the ambient light can be adjusted based on the eye opening amplitude characteristic value and the usage distance characteristic value obtained from the current user's historical usage habits to obtain the target screen brightness suitable for the current user. Therefore, there is no need for the user to manually adjust the screen brightness of the electronic device. The electronic device is automatically adjusted to a brightness suitable for the user according to the user's usage habits, which is beneficial to protecting the user's eye health and improving the user's visual experience when using the target application. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0026] Figure 1 is a schematic diagram of a scenario of a screen brightness control method provided by an embodiment of the present invention;
[0027] Figure 2 is a flow chart of a screen brightness control method provided by an embodiment of the present invention;
[0028] Figure 3 is a structural schematic diagram of a screen brightness control device provided by an embodiment of the present invention;
[0029] Figure 4 is another structural schematic diagram of the screen brightness control device provided by an embodiment of the present invention;
[0030] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0032] Embodiments of the present invention provide a screen brightness control method, device, electronic device, and computer-readable storage medium. Specifically, embodiments of the present invention provide a screen brightness control method applicable to a screen brightness control device, and the screen brightness control device can be integrated in an electronic device.
[0033] The electronic device can be a terminal or other device, including but not limited to a mobile terminal and a fixed terminal. For example, a mobile terminal includes but is not limited to a smart phone, a smart watch, a tablet computer, a laptop computer, a smart car-mounted terminal, etc., wherein a fixed terminal includes but is not limited to a desktop computer, a smart TV, etc.
[0034] The electronic device can also be a device such as a server. The server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms, but is not limited to these.
[0035] The screen brightness control method of the embodiment of the present invention may be implemented by a server, or may be implemented by a terminal and a server together.
[0036] The following takes the screen brightness control method implemented by a terminal and a server together as an example to illustrate the method.
[0037] like Figure 1 As shown, the screen brightness control system provided by the embodiment of the present invention includes a terminal 10 and a server 20, etc.; the terminal 10 and the server 20 are connected via a network, for example, via a wired or wireless network connection, etc., wherein the terminal 10 can exist as a terminal for displaying a target application.
[0038] The server 20 may store the eye opening amplitude characteristic value and the usage distance characteristic value when the current user uses the target application program in a historical period.
[0039] The terminal 10 can be used to determine the eye opening degree of the current user and the usage distance between the face of the current user and the terminal when the current user uses the target application.
[0040] The terminal 10 can obtain the eye opening amplitude characteristic value and the usage distance characteristic value of the current user when using the target application in the historical period from the server 20, detect the current ambient light information, calculate the reference screen brightness according to the ambient light information, calculate the eye light passability of the current user at the current moment according to the eye opening amplitude and the eye opening amplitude characteristic value, the eye light passability is used to indicate the degree to which the eyes of the current user allow light to pass, calculate the light intensity acceptability of the current user at the current moment according to the usage distance and the usage distance characteristic value, the light intensity acceptability is used to indicate the current user's acceptance degree of light intensity, and calculate the target screen brightness corresponding to the target application based on the reference screen brightness, eye light passability and light intensity acceptability.
[0041] The terminal 10 may control the screen brightness of the terminal according to the target screen brightness.
[0042] It should be noted that the step of calculating the target screen brightness performed by the terminal 10 can also be performed by the server 20. For example, the server 20 can obtain from the terminal 10 the eye opening degree of the current user and the use distance between the face of the current user and the terminal when the current user uses the target application. And, after calculating the target screen brightness, the server 20 can send the target screen brightness to the terminal 10, and so on. The embodiment of the present invention is not limited to this.
[0043] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0044] The embodiment of the present invention will be described from the perspective of a screen brightness control device, which can be specifically integrated in a server or a terminal.
[0045] like Figure 2 As shown, the specific process of the screen brightness control method of this embodiment can be as follows:
[0046] 201. When a current user uses a target application, determine an eye opening extent of the current user and a usage distance between a face of the current user and a terminal.
[0047] The eye opening range may be the ratio of the area of the user's open eyes to the area of the user's eye region, or the eye opening range may be the ratio of the area of the user's currently open eyes to the maximum area of the user's open eyes, and so on.
[0048] Optionally, the target application may be a banking application, a financial management application, etc. The embodiment of the present invention does not limit the type and function of the target application.
[0049] Specifically, the distance used may be the distance between a specific position of the current user's face and a certain position of the terminal. For example, the distance used may be the distance between the current user's eye position or the center of the eyebrow position and the center of the terminal screen, and so on.
[0050] 202. Obtain eye opening amplitude feature values and usage distance feature values of the current user when using the target application program in a historical period.
[0051] The eye opening amplitude characteristic value is used to represent the eye opening amplitude of the current user when using the target application in the historical period.
[0052] Optionally, the historical period may be any period during which the current user used the target application in the past, or the historical period may be a period in which the current user used the target application in the past that matches the current time.
[0053] For example, if the current time is 22:03, the time period including 22:03 in the past use of the target application by the current user can be used as the historical time period. If the time period when the current user used the target application in the past does not include 22:03, the N time periods closest to 22:03 can be used as the historical time period.
[0054] Specifically, the usage distance feature value is used to represent the usage distance between the face and the terminal when the current user uses the target application within a historical period.
[0055] Optionally, the eye opening amplitude characteristic value and the usage distance characteristic value may be calculated based on data from the current user's historical usage process. Before the step of "obtaining the eye opening amplitude characteristic value and the usage distance characteristic value when the current user uses the target application in the historical period", the screen brightness control method provided by the embodiment of the present invention may further include:
[0056] Obtain the historical data of the eye opening amplitude and usage distance of the current user when using the target application within the historical period;
[0057] Based on the historical data of eye opening amplitude, calculate the eye opening amplitude feature value of the current user when using the target application in the historical period;
[0058] Based on the usage distance historical data, the usage distance feature value of the current user when using the target application within the historical period is calculated.
[0059] In some optional examples, if there is only one historical period, the eye opening amplitude historical data in the period can be used as the eye opening amplitude characteristic value.
[0060] Alternatively, when calculating the eye opening amplitude feature, the eye opening amplitude historical data may be weighted according to the time length of each historical period. For example, the time length of historical period 1 is 5 minutes, and the time length of historical period 2 is 10 minutes. At this time, the eye opening amplitude historical data of historical period 1 and historical period 2 may be weighted, and the calculation weight corresponding to historical period 2 may be greater or less than that of historical period 1.
[0061] In some other optional embodiments, the eye opening amplitude characteristic value can be directly obtained by calculating the average value of the eye opening amplitude historical data, that is, the step of "calculating the eye opening amplitude characteristic value when the current user uses the target application in the historical period based on the eye opening amplitude historical data" includes:
[0062] Based on the eye opening amplitude historical data and the historical eye opening amplitude statistical times corresponding to the eye opening amplitude historical data, an average eye opening amplitude value when the current user uses the target application in the historical period is calculated as the eye opening amplitude feature value.
[0063] For example, the historical data y1 of the eye opening amplitude of a user who uses a banking app multiple times may be obtained, and the average value y1n of the amplitude may be calculated.
[0064] Alternatively, the eye opening amplitude characteristic value can be calculated based on the user's left and right eye usage habits, that is, the eye opening amplitude historical data can include the left eye opening amplitude historical data and the right eye opening amplitude historical data. The step "calculating the average eye opening amplitude of the current user when using the target application in the historical period as the eye opening amplitude characteristic value based on the eye opening amplitude historical data and the historical eye opening amplitude statistical times corresponding to the eye opening amplitude historical data" can specifically include:
[0065] Calculate the average value of the left eye opening amplitude when the current user uses the target application within the historical period based on the historical data of the left eye opening amplitude and the historical eye opening amplitude statistics corresponding to the historical data of the eye opening amplitude;
[0066] Based on the historical data of right eye opening amplitude and the historical eye opening amplitude statistics, calculate the average right eye opening amplitude of the current user when using the target application in the historical period;
[0067] The main eye information of the current user is determined, and based on the main eye information, a weighted calculation is performed on the average value of the left eye opening amplitude and the average value of the right eye opening amplitude, and the result of the weighted calculation is used as the eye opening amplitude characteristic value.
[0068] For example, the user may use the left eye as the primary eye. In this case, the calculation weight of the average value of the left eye opening amplitude may be greater than the calculation weight of the average value of the right eye opening amplitude.
[0069] Optionally, the usage distance characteristic value may be obtained by calculating the average value of the usage distance historical data, that is, the step of “calculating the usage distance characteristic value when the current user uses the target application in the historical period based on the usage distance historical data” includes:
[0070] Based on the usage distance history data and the historical usage distance statistics corresponding to the usage distance history data, an average usage distance when the current user uses the target application in the historical period is calculated as the usage distance feature value.
[0071] For example, the length y2 of the distance between the user's face and the mobile phone screen when the user uses the banking app multiple times can be recorded, and the average value y2n of the length can be calculated.
[0072] Alternatively, the usage distance feature value may be determined based on the area where the main content of the target application is displayed. Optionally, the usage distance history data includes the area distance history data between at least one sub-area of the terminal and the user's face. The step of "calculating the average usage distance when the current user uses the target application in the historical period as the usage distance feature value based on the usage distance history data and the historical usage distance statistics corresponding to the usage distance history data" may specifically include:
[0073] Based on the regional distance history data corresponding to each sub-region in the usage distance history data and the historical usage distance statistics corresponding to the usage distance history data, the average regional distance corresponding to each sub-region is calculated;
[0074] Determine the key content display area of the target application, perform weighted calculation on the average value of the area distances corresponding to each sub-area according to the key content display area, and use the result of the weighted calculation as the distance feature value.
[0075] The sub-areas may be determined by users or technicians according to actual usage requirements. For example, the sub-areas may be obtained by evenly dividing the screen into nine grids, or dynamically dividing the sub-areas according to the distribution of the content, and so on.
[0076] The key content display area can be obtained according to the content distribution in the displayed page. For example, the key content display area can be the area with a length of L and a width of K at the top of the screen, and the sub-area can be a plurality of divided areas in the displayed page.
[0077] Specifically, the calculation weight corresponding to each sub-region can be determined according to the distance between the center point of each sub-region and the center point of the key content display area, or according to the minimum distance between each sub-region and the key content display area, and so on.
[0078] In some optional examples, the user may have usage records in the morning, afternoon or evening during the historical period. In this case, the data of the same period corresponding to the current moment can be selected. The step of "obtaining the historical data of the eye opening amplitude and the historical data of the usage distance when the current user uses the target application during the historical period" includes:
[0079] Obtain the initial eye opening amplitude historical data and initial usage distance historical data of the current user when using the target application within the historical period;
[0080] According to the current moment, the eye opening extent historical data and the usage distance historical data when the current user uses the target application in the historical time period corresponding to the current moment are determined from the initial eye opening extent historical data and the initial usage distance historical data.
[0081] The initial eye opening extent historical data and the initial usage distance historical data may include eye opening extent historical data and usage distance historical data of several different historical time periods.
[0082] The historical same time period is a time period in which the current user used the target application in the past and which matches the current time.
[0083] For example, if the current time is 10:05, the time period including 10:05 in the past use of the target application by the current user can be used as the historical time period. If the time period when the current user used the target application in the past does not include 10:05, the N time periods closest to 10:05 can be used as the historical time periods.
[0084] 203. Detect current ambient light information, and calculate reference screen brightness according to the ambient light information.
[0085] Specifically, the method for calculating the reference screen brightness according to the ambient light information may be any method, and the embodiment of the present invention is not limited to this.
[0086] 204. Calculate the degree of light penetration through the eyes of the current user at the current moment according to the eye opening amplitude and the eye opening amplitude characteristic value.
[0087] Among them, the eye light passability can be used to indicate the degree to which the eyes of the current user allow light to pass through.
[0088] For example, the light penetration rate of the eye can be expressed by the following formula:
[0089] (z1-y1n) / y1n
[0090] Among them, z1 is the eye opening amplitude, and y1n is the eye opening amplitude characteristic value.
[0091] In some optional embodiments, different weights may be set for the eye opening amplitude and / or the eye opening amplitude characteristic value for calculation.
[0092] 205. Calculate the light intensity acceptability of the current user at the current moment according to the usage distance and the usage distance characteristic value.
[0093] The light intensity acceptability is used to indicate the current user's acceptance of the light intensity.
[0094] For example, the light penetration rate of the eye can be expressed by the following formula:
[0095] (z2-y2n) / y2n)
[0096] Wherein, z2 is the usage distance, and y2n is the usage distance characteristic value. In some optional embodiments, different weights may be set for the usage distance and / or the usage distance characteristic value for calculation.
[0097] 206. Calculate the target screen brightness corresponding to the target application based on the reference screen brightness, the light transmittance through the eyes, and the light intensity acceptability.
[0098] Specifically, the target screen brightness g can be calculated by the following formula:
[0099] ((z1-y1n) / y1n+(z2-y2n) / y2n)*0.5*x=g
[0100] Where x is the reference screen brightness.
[0101] 207. Control the screen brightness of the terminal according to the target screen brightness.
[0102] As can be seen from the above, the embodiments of the present invention can determine the eye opening amplitude of the current user and the use distance between the face of the current user and the terminal when the current user uses the target application, obtain the eye opening amplitude characteristic value and the use distance characteristic value when the current user uses the target application in the historical period, detect the current ambient light information, calculate the reference screen brightness according to the ambient light information, calculate the eye light passability of the current user at the current moment according to the eye opening amplitude and the eye opening amplitude characteristic value, the eye light passability is used to indicate the degree to which the eyes of the current user allow light to pass, calculate the light intensity acceptability of the current user at the current moment according to the use distance and the use distance characteristic value, the light intensity acceptability is used to indicate the current user Regarding the degree of light intensity reception, the target screen brightness corresponding to the target application is calculated based on the reference screen brightness, the light transmittance through the eyes and the acceptability of light intensity, and the screen brightness of the terminal is controlled according to the target screen brightness. In an embodiment of the present invention, the reference screen brightness obtained according to the ambient light can be adjusted based on the eye opening amplitude characteristic value and the usage distance characteristic value obtained from the current user's historical usage habits to obtain the target screen brightness suitable for the current user. Therefore, there is no need for the user to manually adjust the screen brightness of the electronic device. The electronic device can be automatically adjusted to a brightness suitable for the user according to the user's usage habits, which is beneficial to protecting the user's eye health and improving the user's visual experience when using the target application.
[0103] In order to better implement the above method, accordingly, an embodiment of the present invention also provides a screen brightness control device.
[0104] refer to Figure 3 , the device may include:
[0105] The current data acquisition unit 301 may be used to determine the eye opening extent of the current user and the usage distance between the face of the current user and the terminal when the current user uses the target application;
[0106] The historical data acquisition unit 302 may be used to acquire the eye opening amplitude characteristic value and the usage distance characteristic value when the current user uses the target application in a historical period;
[0107] The reference brightness calculation unit 303 can be used to detect the current ambient light information and calculate the reference screen brightness according to the ambient light information;
[0108] The light passability calculation unit 304 may be used to calculate the light passability of the eyes of the current user at the current moment according to the eye opening amplitude and the eye opening amplitude characteristic value. The eye light passability may be used to indicate the degree to which the eyes of the current user allow light to pass;
[0109] The light intensity acceptability calculation unit 305 can be used to calculate the light intensity acceptability of the current user at the current moment according to the use distance and the use distance characteristic value. The light intensity acceptability can be used to indicate the acceptance degree of the current user for the light intensity.
[0110] The target brightness calculation unit 306 may be used to calculate the target screen brightness corresponding to the target application based on the reference screen brightness, the light passability through the eye and the light intensity acceptability;
[0111] The brightness control unit 307 may be used to control the screen brightness of the terminal according to the target screen brightness.
[0112] In some optional embodiments, such as Figure 4 As shown, the screen brightness control device provided by the embodiment of the present invention may further include a characteristic value calculation unit 308, which may be used to obtain the eye opening amplitude history data and the usage distance history data of the current user when using the target application in the historical period;
[0113] Based on the historical data of eye opening amplitude, calculate the eye opening amplitude feature value of the current user when using the target application in the historical period;
[0114] Based on the usage distance historical data, the usage distance feature value of the current user when using the target application within the historical period is calculated.
[0115] In some optional embodiments, the characteristic value calculation unit can be used to calculate the average eye opening amplitude of the current user when using the target application in the historical period as the eye opening amplitude characteristic value based on the eye opening amplitude historical data and the historical eye opening amplitude statistical times corresponding to the eye opening amplitude historical data.
[0116] In some optional embodiments, the eye opening range historical data may include left eye opening range historical data and right eye opening range historical data;
[0117] The characteristic value calculation unit 308 may be used to calculate the average value of the left eye opening amplitude when the current user uses the target application in the historical period based on the left eye opening amplitude historical data and the historical eye opening amplitude statistical times corresponding to the eye opening amplitude historical data;
[0118] Based on the historical data of right eye opening amplitude and the historical eye opening amplitude statistics, calculate the average right eye opening amplitude of the current user when using the target application in the historical period;
[0119] The main eye information of the current user is determined, and based on the main eye information, a weighted calculation is performed on the average value of the left eye opening amplitude and the average value of the right eye opening amplitude, and the result of the weighted calculation is used as the eye opening amplitude characteristic value.
[0120] In some optional embodiments, the characteristic value calculation unit 308 can be used to calculate the average usage distance of the current user when using the target application in the historical period as the usage distance characteristic value based on the usage distance history data and the historical usage distance statistics corresponding to the usage distance history data.
[0121] In some optional embodiments, the use distance history data may include area distance history data between at least one sub-area of the terminal and the user's face;
[0122] The characteristic value calculation unit 308 may be used to calculate the average value of the regional distance corresponding to each sub-region based on the regional distance history data corresponding to each sub-region in the usage distance history data and the historical usage distance statistics corresponding to the usage distance history data;
[0123] Determine the key content display area of the target application, perform weighted calculation on the average value of the area distances corresponding to each sub-area according to the key content display area, and use the result of the weighted calculation as the distance feature value.
[0124] In some optional embodiments, the feature value calculation unit 308 may be used to obtain the initial eye opening amplitude historical data and the initial use distance historical data when the current user uses the target application within the historical period;
[0125] According to the current moment, the eye opening extent historical data and the usage distance historical data when the current user uses the target application in the historical time period corresponding to the current moment are determined from the initial eye opening extent historical data and the initial usage distance historical data.
[0126] As can be seen from the above, through the screen brightness control device, when the current user uses the target application, the eye opening degree of the current user and the use distance between the current user's face and the terminal can be determined, the eye opening degree characteristic value and the use distance characteristic value of the current user when using the target application in the historical period are obtained, the current ambient light information is detected, and the reference screen brightness is calculated according to the ambient light information. According to the eye opening degree and the eye opening degree characteristic value, the eye light passability of the current user at the current moment is calculated. The eye light passability is used to indicate the degree to which the current user's eyes allow light to pass. According to the use distance and the use distance characteristic value, the light intensity acceptability of the current user at the current moment is calculated. The light intensity acceptability is used to indicate the current The target screen brightness corresponding to the target application is calculated based on the reference screen brightness, eye light penetration and light intensity acceptability, and the screen brightness of the terminal is controlled according to the target screen brightness. In an embodiment of the present invention, the reference screen brightness obtained according to the ambient light can be adjusted based on the eye opening amplitude characteristic value and the usage distance characteristic value obtained according to the current user's historical usage habits to obtain the target screen brightness suitable for the current user. Therefore, there is no need for the user to manually adjust the screen brightness of the electronic device. The electronic device is automatically adjusted to a brightness suitable for the user according to the user's usage habits, which is beneficial to protecting the user's eye health and improving the user's visual experience when using the target application.
[0127] In addition, an embodiment of the present invention further provides an electronic device, which may be a terminal or a server, etc. Figure 5 As shown, it shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present invention, specifically:
[0128] The electronic device may include a radio frequency (RF) circuit 501, a memory 502 including one or more computer-readable storage media, an input unit 503, a display unit 504, a sensor 505, an audio circuit 506, a wireless fidelity (WiFi) module 507, a processor 508 including one or more processing cores, and a power supply 509. Those skilled in the art will appreciate that Figure 5 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0129] in:
[0130] The RF circuit 501 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 508 for processing; in addition, the data related to the uplink is sent to the base station. Usually, the RF circuit 501 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the RF circuit 501 can also communicate with the network and other devices through wireless communication. Wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0131] The memory 502 can be used to store software programs and modules, and the processor 508 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the processor 508 and the input unit 503 with access to the memory 502.
[0132] The input unit 503 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, in a specific embodiment, the input unit 503 may include a touch-sensitive surface and other input devices. The touch-sensitive surface, also known as a touch display screen or a touch pad, can collect the user's touch operations on or near it (such as the user's operation on or near the touch-sensitive surface using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch-sensitive surface may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 508, and can receive and execute the command sent by the processor 508. In addition, the touch-sensitive surface can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 503 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0133] The display unit 504 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 504 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch-sensitive surface may cover the display panel. When the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor 508 to determine the type of touch event. Subsequently, the processor 508 provides a corresponding visual output on the display panel according to the type of touch event. Although in Figure 5 In the embodiment, the touch-sensitive surface and the display panel are used as two independent components to realize input and output functions, but in some embodiments, the touch-sensitive surface and the display panel can be integrated to realize input and output functions.
[0134] The electronic device may also include at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and / or backlight when the electronic device is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the electronic device, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0135] The audio circuit 506, the speaker, and the microphone can provide an audio interface between the user and the electronic device. The audio circuit 506 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 506 and converted into audio data, and then the audio data is output to the processor 508 for processing, and then sent to another electronic device through the RF circuit 501, or the audio data is output to the memory 502 for further processing. The audio circuit 506 may also include an earplug jack to provide communication between an external headset and the electronic device.
[0136] WiFi is a short-range wireless transmission technology. Electronic devices can help users send and receive emails, browse web pages, and access streaming media through WiFi module 507. It provides users with wireless broadband Internet access. Figure 5 A WiFi module 507 is shown, but it is understandable that it is not an essential component of the electronic device and can be omitted as needed without changing the essence of the invention.
[0137] The processor 508 is the control center of the electronic device, which uses various interfaces and lines to connect various parts of the entire mobile phone, and executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 502, and calling data stored in the memory 502. Optionally, the processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 508.
[0138] The electronic device also includes a power supply 509 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 508 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 509 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0139] Although not shown, the electronic device may also include a camera, a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the processor 508 in the electronic device will load the executable files corresponding to the processes of one or more applications into the memory 502 according to the following instructions, and the processor 508 will run the application stored in the memory 502 to achieve various functions, as follows:
[0140] When the current user uses the target application, determining the degree of eye opening of the current user and the use distance between the face of the current user and the terminal;
[0141] Obtain the eye opening amplitude feature value and usage distance feature value of the current user when using the target application in the historical period;
[0142] Detect the current ambient light information and calculate the reference screen brightness based on the ambient light information;
[0143] Calculate the light passability of the eyes of the current user at the current moment according to the eye opening amplitude and the eye opening amplitude characteristic value. The light passability of the eyes is used to indicate the degree to which the eyes of the current user allow light to pass through.
[0144] Calculate the light intensity acceptability of the current user at the current moment according to the use distance and the use distance characteristic value. The light intensity acceptability is used to indicate the current user's acceptance of the light intensity.
[0145] Calculate the target screen brightness corresponding to the target application based on the reference screen brightness, eye light passability and light intensity acceptability;
[0146] Control the terminal's screen brightness according to the target screen brightness.
[0147] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0148] To this end, an embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any screen brightness control method provided in the embodiment of the present invention. For example, the instructions can execute the following steps:
[0149] When the current user uses the target application, determining the degree of eye opening of the current user and the use distance between the face of the current user and the terminal;
[0150] Obtain the eye opening amplitude feature value and usage distance feature value of the current user when using the target application in the historical period;
[0151] Detect the current ambient light information and calculate the reference screen brightness based on the ambient light information;
[0152] Calculate the light passability of the eyes of the current user at the current moment according to the eye opening amplitude and the eye opening amplitude characteristic value. The light passability of the eyes is used to indicate the degree to which the eyes of the current user allow light to pass through.
[0153] Calculate the light intensity acceptability of the current user at the current moment according to the use distance and the use distance characteristic value. The light intensity acceptability is used to indicate the current user's acceptance of the light intensity.
[0154] Calculate the target screen brightness corresponding to the target application based on the reference screen brightness, eye light passability and light intensity acceptability;
[0155] Control the terminal's screen brightness according to the target screen brightness.
[0156] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0157] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0158] Since the instructions stored in the computer-readable storage medium can execute the steps in any screen brightness control method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any screen brightness control method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0159] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the methods provided in various optional implementations of the above embodiments.
[0160] The above is a detailed introduction to a screen brightness control method, device, electronic device and storage medium provided by an embodiment of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A screen brightness control method, characterized in that: include: When the current user uses the target application, determining the eye opening extent of the current user and the use distance between the face of the current user and the terminal; Acquire an eye opening amplitude characteristic value and a usage distance characteristic value when the current user uses the target application in a historical period; Detecting current ambient light information, and calculating reference screen brightness according to the ambient light information; Calculating, according to the eye opening amplitude and the eye opening amplitude characteristic value, a light passability degree through the eyes of the current user at a current moment, wherein the light passability degree through the eyes is used to indicate a degree to which the eyes of the current user allow light to pass through; Calculating the light intensity acceptability of the current user at the current moment according to the use distance and the use distance characteristic value, wherein the light intensity acceptability is used to indicate the acceptance degree of the current user for the light intensity; Calculating a target screen brightness corresponding to the target application based on the reference screen brightness, the eye light passability, and the light intensity acceptability; The screen brightness of the terminal is controlled according to the target screen brightness.
2. The screen brightness control method according to claim 1, characterized in that: Before obtaining the eye opening amplitude characteristic value and the use distance characteristic value when the current user uses the target application in the historical period, the method further includes: Acquire historical data of eye opening amplitude and usage distance of the current user when using the target application within a historical period; Based on the eye opening amplitude historical data, calculating the eye opening amplitude characteristic value when the current user uses the target application within a historical period; Based on the usage distance history data, a usage distance feature value when the current user uses the target application within a historical period is calculated.
3. The screen brightness control method according to claim 2, characterized in that: The calculating, based on the eye opening amplitude historical data, the eye opening amplitude characteristic value when the current user uses the target application within a historical period includes: Based on the eye opening amplitude historical data and the historical eye opening amplitude statistical times corresponding to the eye opening amplitude historical data, an average eye opening amplitude value when the current user uses the target application in a historical period is calculated as an eye opening amplitude characteristic value.
4. The screen brightness control method according to claim 3, characterized in that: The eye opening range historical data includes left eye opening range historical data and right eye opening range historical data; The calculating, based on the eye opening amplitude historical data and the historical eye opening amplitude statistical times corresponding to the eye opening amplitude historical data, an average eye opening amplitude when the current user uses the target application in a historical period as an eye opening amplitude characteristic value, includes: Calculating an average value of the left eye opening amplitude when the current user uses the target application within a historical period based on the left eye opening amplitude historical data and the historical eye opening amplitude statistical times corresponding to the eye opening amplitude historical data; Calculating an average value of the right eye opening amplitude when the current user uses the target application within a historical period based on the right eye opening amplitude historical data and the historical eye opening amplitude statistical times; Determine the main eye information of the current user, perform weighted calculation on the average value of the left eye opening amplitude and the average value of the right eye opening amplitude according to the main eye information, and use the result of the weighted calculation as the eye opening amplitude characteristic value.
5. The screen brightness control method according to claim 2, characterized in that: The calculating, based on the usage distance history data, a usage distance feature value when the current user uses the target application within a historical period includes: Based on the usage distance history data and the historical usage distance statistics corresponding to the usage distance history data, an average usage distance when the current user uses the target application within a historical period is calculated as a usage distance feature value.
6. The screen brightness control method according to claim 5, characterized in that: The usage distance history data includes area distance history data between at least one sub-area of the terminal and the user's face; The calculating, based on the usage distance history data and the historical usage distance statistics corresponding to the usage distance history data, an average usage distance when the current user uses the target application within a historical period as a usage distance feature value, includes: Calculating an average value of the regional distances corresponding to the sub-regions based on the regional distance history data corresponding to the sub-regions in the usage distance history data and the number of historical usage distance statistics corresponding to the usage distance history data; The key content display area of the target application is determined, and based on the key content display area, average values of area distances corresponding to the sub-areas are weightedly calculated, and the result of the weighted calculation is used as a distance feature value.
7. The screen brightness control method according to claim 2, characterized in that: The acquiring the eye opening amplitude historical data and the usage distance historical data of the current user when using the target application in the historical period includes: Acquire the initial eye opening amplitude historical data and the initial usage distance historical data of the current user when using the target application within a historical period; According to the current moment, the eye opening amplitude history data and the usage distance history data when the current user uses the target application in the historical time period corresponding to the current moment are determined from the initial eye opening amplitude history data and the initial usage distance history data.
8. A screen brightness control device, characterized in that: include: A current data acquisition unit, used to determine the eye opening extent of the current user and the use distance between the face of the current user and the terminal when the current user uses the target application; A historical data acquisition unit, used to acquire an eye opening amplitude characteristic value and a usage distance characteristic value when the current user uses the target application within a historical period; A reference brightness calculation unit, used to detect current ambient light information and calculate a reference screen brightness according to the ambient light information; a light passability calculation unit, used to calculate the light passability of the eyes of the current user at a current moment according to the eye opening amplitude and the eye opening amplitude characteristic value, wherein the eye light passability is used to indicate the degree to which the eyes of the current user allow light to pass; a light intensity acceptability calculation unit, used to calculate the light intensity acceptability of the current user at a current moment according to the use distance and the use distance characteristic value, wherein the light intensity acceptability is used to indicate the acceptance degree of the current user for the light intensity; a target brightness calculation unit, configured to calculate a target screen brightness corresponding to the target application based on the reference screen brightness, the eye light passability and the light intensity acceptability; A brightness control unit is used to control the screen brightness of the terminal according to the target screen brightness.
9. An electronic device, characterized in that: It comprises a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to execute the steps in the screen brightness control method described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the screen brightness control method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Automatic screen brightness regulating method and device
CN106297733A
Screen brightness adaptive adjustment method and device, electronic equipment and storage medium
CN114242022A