CN115132149A - Screen brightness adjusting method and device and electronic equipment - Google Patents

Screen brightness adjusting method and device and electronic equipment Download PDF

Info

Publication number
CN115132149A
CN115132149A CN202110315566.3A CN202110315566A CN115132149A CN 115132149 A CN115132149 A CN 115132149A CN 202110315566 A CN202110315566 A CN 202110315566A CN 115132149 A CN115132149 A CN 115132149A
Authority
CN
China
Prior art keywords
brightness
habit
screen brightness
value
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110315566.3A
Other languages
Chinese (zh)
Inventor
王化鹏
刘伟光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110315566.3A priority Critical patent/CN115132149A/en
Publication of CN115132149A publication Critical patent/CN115132149A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The disclosure provides a screen brightness adjusting method and device and electronic equipment. The screen brightness adjusting method provided by the disclosure is applied to electronic equipment, and comprises the following steps: recording the value of a brightness adjustment parameter corresponding to a preset recording period in the preset recording period; learning the use habit of the user aiming at the screen based on the value of the brightness adjusting parameter to obtain a habit database; the habit database comprises habit values of brightness adjusting parameters corresponding to different specified moments in a preset habit period; and responding to the screen lightening operation, and adjusting the screen brightness based on the habit value of the brightness adjustment parameter corresponding to the target moment matched with the current moment in the habit database. According to the screen brightness adjusting method and device and the electronic equipment, screen brightness adjustment can be performed based on learned user habits, the differentiated screen brightness adjusting requirements of different users can be met, adjusting precision is improved, and user experience is improved.

Description

Screen brightness adjusting method and device and electronic equipment
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method and an apparatus for adjusting screen brightness, and an electronic device.
Background
Currently, electronic devices such as smart phones, tablet computers, electronic book readers, and the like have become indispensable tools for users. However, when a user uses the electronic device, the user feels visual fatigue due to excessively bright or dark screen brightness. Therefore, in order to relieve the visual fatigue of the user, the screen brightness of the screen needs to be adjusted.
Currently, electronic devices support automatic screen brightness adjustment, which mainly uses a light sensor to sense ambient light brightness, and then determines the screen brightness based on the ambient light brightness according to a predetermined rule (e.g., based on a preset correspondence between the ambient light brightness and the screen brightness).
However, the above solution is for different users, and the adjusted screen brightness is the same under the same environment. While the perception of screen brightness is different for different users. For example, in the same environment, some users prefer to adjust the screen to be light, and some users prefer to adjust the screen to be dark. If all adjust according to above-mentioned scheme, can't satisfy different users' watching demand.
Disclosure of Invention
The present disclosure provides a screen brightness adjusting method, device and electronic device to solve the deficiencies in the related art.
According to a first aspect of the embodiments of the present disclosure, a method for adjusting screen brightness is provided, where the method is applied to an electronic device, and the method includes:
recording the value of a brightness adjustment parameter corresponding to a preset recording period in the preset recording period;
learning the use habit of the user aiming at the screen based on the value of the brightness adjusting parameter to obtain a habit database; the habit database comprises habit values of brightness adjusting parameters corresponding to different specified moments in a preset habit period;
and responding to the screen lightening operation, and adjusting the screen brightness based on the habit value of the brightness adjustment parameter corresponding to the target moment matched with the current moment in the habit database.
According to a second aspect of the embodiments of the present disclosure, a screen brightness adjusting apparatus is provided, which is applied to an electronic device, and includes a recording module, a learning module, and a processing module, wherein,
the recording module is used for recording the value of the brightness adjusting parameter corresponding to the preset recording period in the preset recording period;
the learning module is used for learning the use habit of the user aiming at the screen based on the value of the brightness adjusting parameter to obtain a habit database; the habit database comprises habit values of brightness adjusting parameters corresponding to different specified moments in a preset habit period;
and the processing module is used for responding to the screen lightening operation and adjusting the screen brightness based on the habit value of the brightness adjusting parameter corresponding to the target moment matched with the current moment in the habit database.
According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement any of the methods provided by the first aspect of the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, a computer-readable storage medium is proposed, on which a computer program is stored, which when executed by a processor implements the method of any one of the aspects provided by the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
it can be known from the foregoing embodiment that, in a preset recording period, by recording the value of the brightness adjustment parameter corresponding to the preset recording period, based on the value of the brightness adjustment parameter, learning the use habits of the user for the screen at different specified times in a preset habit period, so as to obtain a habit database, and then in response to the screen-lighting operation, performing the screen brightness adjustment based on the habit value of the brightness adjustment parameter corresponding to the target time matched with the current time in the habit database. Like this, can carry out screen brightness control based on the user habit of studying, provide different regulation schemes for different users, satisfy different users' differentiation regulation demand, promote the regulation precision, improve user experience.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
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 disclosure.
FIG. 1 is a flow chart illustrating a method of screen brightness adjustment according to an exemplary embodiment of the present disclosure;
FIG. 2 is a flow chart illustrating another screen brightness adjustment method according to an exemplary embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating yet another method of screen brightness adjustment according to an exemplary embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating yet another method of screen brightness adjustment according to an exemplary embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating a structure of a screen brightness adjusting apparatus according to an exemplary embodiment of the present disclosure;
FIG. 6 is a schematic diagram illustrating another screen brightness adjustment apparatus according to an exemplary embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device shown in accordance with an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The disclosure provides a screen brightness adjusting method and device and electronic equipment, so as to meet the differentiated screen brightness adjusting requirements of different users.
The screen brightness adjusting method and device provided by the disclosure are applied to electronic equipment, and the electronic equipment can be a mobile phone, a PAD and the like, and are not limited in the disclosure.
According to the screen brightness adjusting method, the screen brightness adjusting device, the electronic equipment and the screen brightness adjusting device, in the preset recording period, the value of the brightness adjusting parameter corresponding to the preset recording period is recorded, the use habits of a user aiming at the screen at different appointed moments in the preset habit period are learned based on the value of the brightness adjusting parameter, a habit database is obtained, the screen brightness adjusting is further carried out in response to the screen brightness operation, and the screen brightness is adjusted based on the habit value of the brightness adjusting parameter corresponding to the target moment matched with the current moment in the habit database. Like this, can carry out screen brightness control based on the user habit of studying, provide different regulation schemes for different users, satisfy different users' differentiation regulation demand, improve the regulation precision, promote user experience.
Fig. 1 is a flowchart illustrating a screen brightness adjustment method according to an exemplary embodiment of the present disclosure. Referring to fig. 1, the method provided in this embodiment may include:
s101, recording the value of the brightness adjusting parameter corresponding to the preset recording period in the preset recording period.
Specifically, the preset recording period is set according to actual needs, and in this embodiment, a specific value of the preset recording period is not limited. For example, in one embodiment, the predetermined recording period may be 1 hour, 0.5 hour, etc. The following description will be made by taking a preset recording period of 1 hour as an example.
It should be noted that, the values of the brightness adjustment parameter corresponding to the preset recording period refer to: and in the preset recording period, when the electronic equipment meets the specified condition for the first time, adjusting the brightness of the electronic equipment. The specified condition is that the screen-on duration of the electronic device exceeds a preset duration (it should be noted that the preset duration is set according to actual needs, and in this embodiment, a specific value of the preset duration is not limited).
With reference to the above example, for example, when 1 hour is used as the preset recording period, the preset recording period comes at each integral point time, at this time, the value of the brightness adjustment parameter corresponding to the preset recording period may be recorded as the brightness adjustment parameter corresponding to each integral point time, and the value of the brightness adjustment parameter corresponding to the preset recording period refers to the brightness adjustment parameter of the electronic device when the first screen-on duration of the electronic device exceeds 20s within the 1 hour.
It should be noted that, if the electronic device is not turned on all the time in a preset recording period, the value of the brightness adjustment parameter corresponding to the preset recording period is recorded as 0.
Further, in a possible implementation manner of the present disclosure, the brightness adjustment parameter may include a calculated screen brightness calculated based on the ambient light brightness of the environment where the device is located and a real screen brightness of the device.
In another possible implementation manner of the present disclosure, the brightness adjustment parameter may include an ambient light brightness of an environment where the present device is located and a real screen brightness of the present device.
The ambient light brightness of the environment where the device is located can be obtained from the light sensor. Further, the calculated screen brightness calculated based on the ambient light brightness of the environment in which the present apparatus is located may be the screen brightness calculated based on the ambient light brightness and a predetermined rule (for example, the predetermined rule may be a correspondence between the ambient light brightness and the screen brightness). In addition, the calculated screen brightness may be obtained from a light sensor.
S102, learning the use habit of a user aiming at a screen based on the value of the brightness adjusting parameter to obtain a habit database; the habit database comprises habit values of the brightness adjusting parameters corresponding to different specified moments in a preset habit period.
In specific implementation, the habit of the user on the screen at different specified times in a preset habit period can be learned based on a plurality of records, and a habit database is obtained.
It should be noted that the preset habitual period is set according to actual needs, and in this embodiment, specific values thereof are not limited. For example, in one embodiment, the predetermined habit period may be one day or one week. The following description will take the default habit period as one week.
The designated time is set as needed. For example, in one embodiment, the designated time may be each hour of a preset habit period.
In specific implementation, the use habit of the user for the screen can be learned periodically based on a preset learning period. The preset learning period is set according to actual needs, and is not limited in this embodiment. For example, in one embodiment, the preset learning period may be one day. Of course, in another embodiment, the preset learning period may be equal to the preset habit period.
Specifically, the record in the latest preset habit period can be acquired from the previous records, and then the records corresponding to the designated times are extracted from the acquired records, so that the habit database is constructed based on the extracted records.
In combination with the above example, for example, in one embodiment, the preset habit period is one week, and the designated time is each hour time in the one week; the preset recording period is also one hour. Therefore, in the last week, the electronic equipment can record the brightness adjusting parameters corresponding to all the integral points, at the moment, the records of the last week can be directly obtained, and then the habit database is constructed based on the obtained records. For example, referring to table 1, table 1 is a habit database shown in an exemplary embodiment (where L1 in table 1 refers to calculated screen brightness, and L2 refers to real screen brightness):
TABLE 1 habit database
Figure BDA0002991359960000061
S103, responding to the screen-lighting operation, and adjusting the screen brightness based on the habit value of the brightness adjustment parameter corresponding to the target moment matched with the current moment in the habit database.
It should be noted that the current time may include a date attribute (for indicating which day of the year the time is), a week attribute (for indicating which day of the week the time is), and a clock attribute (for indicating which moment of the 24 hours the time is). For example, the current time is 2020, 2, 24, 9: 35. At this time, the date attribute corresponding to the time is 24 days 2 month after 2020, the day attribute is wednesday, and the clock attribute is 9: 35.
With reference to the above example, when the preset habit period is one day, the specified time includes each hour of the day, that is, the specified time includes only the clock attribute (for example, the specified time is 0:00, 23:00, etc.), in this step, the target time matching the clock attribute corresponding to the current time is searched from the habit database (it is understood that the habit database includes 24 records). In connection with the above example, the current time is 9:35, 24/2/2020, at which point the target time matching 9:35 is looked up from the habit database. For example, the target time may be 9: 00.
Further, when the preset habit period is one week, the specified time includes each hour of the week (it is understood that, at this time, the habit database includes 168(186 ═ 24 × 7) records). Referring to table 1, the designated time includes a day of the week attribute and a clock attribute (e.g., a designated time is monday 9:00), and at this time, a plurality of candidate times (24 candidate times) matching the day of the week attribute corresponding to the current time can be searched from the habit database, and a target time matching the clock attribute corresponding to the current time can be searched from the plurality of candidate times.
With reference to the above example, the current time is 24 days 9:35 in 2 months in 2020, and at this time, a plurality of candidate times (24 candidate times) corresponding to wednesday are first found from the habit database, and then the target time matching 9:35 is found. For example, the target time may be 9:00 on Wednesday.
When the designated time is the hour time, and the matching is performed based on the clock attributes, the hour time corresponding to the time attribute corresponding to the current time (one clock attribute includes the hour attribute, the minute attribute, the second attribute, and the like; for example, the hour attribute corresponding to the clock attribute 15:35:20 is 15, the minute attribute is 35 minutes, and the second attribute is 20 seconds) may be determined as the matched hour time. For example, the hour of an hour matching 9:15 is 9:00, the hour of an hour matching 10:50 is 10: 00.
specific embodiments will be given below to describe in detail the specific implementation process of this step, which is not described herein again.
In the method provided by this embodiment, in a preset recording period, values of brightness adjustment parameters corresponding to the preset recording period are recorded, and based on the values of the brightness adjustment parameters, usage habits of a user for a screen at different specified times in a preset habit period are learned to obtain a habit database, and then in response to a screen-on operation, screen brightness adjustment is performed based on a habit value of the brightness adjustment parameter corresponding to a target time matched with the current time in the habit database. Like this, can carry out screen brightness control based on the user habit of studying, provide different regulation schemes for different users, satisfy different users' differentiation regulation demand, improve the regulation precision, promote user experience.
Fig. 2 is a flowchart illustrating another screen brightness adjustment method according to an exemplary embodiment of the present disclosure. Referring to fig. 2, in the method provided in this embodiment, on the basis of the foregoing embodiment, step S102 may include:
s201, aiming at each appointed time in the preset habit periods, calculating the average value of the brightness adjusting parameters corresponding to the appointed time based on the values of the brightness adjusting parameters corresponding to the appointed time in the latest plurality of preset habit periods, and taking the average value as the habit value of the brightness adjusting parameters corresponding to the appointed time.
S202, building the habit database by using the habit values of the brightness adjusting parameters corresponding to the appointed moments.
In specific implementation, the average value of the brightness adjustment parameters corresponding to the specified time can be calculated based on the values of the brightness adjustment parameters corresponding to the specified time in the last N preset habit periods, and the average value is used as the habit value of the brightness adjustment parameters corresponding to the specified time. Wherein N is a preset value, and is not limited in this disclosure. For example, in one embodiment, N may be 5.
The specific implementation process of this step is described in detail below, taking the preset habit period as one week and the designated time as the integer time as an example:
referring to table 1, for example, for a certain specified time within the preset habit period, for example, the specified time is 9:00 on monday, in this case, the average value of the brightness adjustment parameters corresponding to 9:00 on monday may be calculated based on the values of the brightness adjustment parameters corresponding to 9:00 on monday in the last 5 weeks, and the calculated average value may be used as the habit value of the brightness adjustment parameter corresponding to the specified time.
The following description will take the customary value of calculating the screen brightness corresponding to 9:00 on Monday as an example. For example, the values of the calculated screen brightness corresponding to 9:00 of each monday in the last 5 weeks are respectively: the value of the brightness of the calculation screen corresponding to 9:00 of Mondays in the first week is 2000; in the second week, the value of the brightness of the calculation screen corresponding to 9:00 on Monday is 2000; in the third week, the value of the brightness adjustment parameter corresponding to 9:00 on Monday is 2000; on the fourth week, the value of the brightness of the calculation screen corresponding to Monday 9:00 is 2000; in the fifth week, the value of the calculated screen brightness corresponding to 9:00 on Monday is 2000.
At this time, the average value of the calculated screen brightness corresponding to 9:00 on monday was calculated to be 2000, and further, the habit value of determining the calculated screen brightness corresponding to 9:00 on monday was 2000.
It should be noted that, when calculating the average value, data that differs by more than 20% from other data (data that differs by more than 20% from other data may be data resulting from mis-adjustment by the user) needs to be eliminated to accurately determine the habit value.
With reference to the foregoing description, the habit value of the brightness adjustment parameter corresponding to each designated time in the preset habit period can be calculated, and then the habit value of the brightness adjustment parameter corresponding to each designated time is used to construct the habit database.
The embodiment provides a method for learning use habits of a user, and by the method, the use habits of the user for a screen at different appointed times in a preset habit period can be accurately obtained, and then screen brightness adjustment is carried out based on a learned habit database, so that a personalized screen brightness adjustment scheme can be provided, different requirements of different users are met, adjustment precision is improved, and user experience is improved.
Fig. 3 is a flowchart illustrating still another screen brightness adjustment method according to an exemplary embodiment of the present disclosure. Referring to fig. 3, in the method provided in this embodiment, the brightness adjustment parameter includes a calculated screen brightness calculated based on the ambient light brightness of the environment where the device is located and a real screen brightness of the device; step S103 may include:
s301, when a first habit value of the calculated screen brightness corresponding to the target moment is consistent with a second habit value of the real screen brightness corresponding to the target moment, adjusting the screen brightness according to the candidate screen brightness; and the candidate screen brightness is calculated based on the ambient light brightness at the current moment.
With reference to the above example, for example, when the target time is 9:00 on wednesday, in the example shown in table 1, the first habit value of the calculated screen brightness corresponding to the target time is 2000, and the second habit value of the real screen brightness corresponding to the target time is 2000, which are identical, at this time, the screen brightness calculated based on the ambient light brightness at the current time is used as the basis. For example, in an embodiment, the screen brightness calculated according to the ambient light brightness at the current time is 4000, and at this time, the screen brightness is directly adjusted to 4000.
S302, when the first habit value is inconsistent with the second habit value, comparing the candidate screen brightness with the first habit value, and adjusting the screen brightness based on the comparison result.
For example, in an embodiment, the target time is 22:00 on monday, and in this case, in the example shown in table 1, the first habit value of the calculated screen brightness corresponding to the target time is 1000, and the second habit value of the real screen brightness corresponding to the target time is 500, which are not consistent, at this time, the candidate screen brightness and the first habit value are compared, and the screen brightness is adjusted based on the comparison result.
In a specific implementation, when the deviation between the candidate screen brightness and the first habit value is less than or equal to a first preset threshold, the screen brightness may be adjusted according to the second habit value, and when the deviation between the candidate screen brightness and the first habit value is not less than the first preset threshold, the screen brightness may be adjusted according to the candidate screen brightness.
The deviation between the candidate screen brightness and the first habit value may be an absolute value of a difference between the candidate screen brightness and the first habit value, or may be a change rate of the candidate screen brightness relative to the first habit value. In the present embodiment, it is not limited thereto.
Accordingly, the first preset threshold is set according to actual needs, and in this embodiment, a specific value of the first preset threshold is not limited. For example, when the deviation between the candidate screen brightness and the first habit value is a change rate of the candidate screen brightness relative to the first habit value, the first preset threshold may be 10%.
In connection with the above example, for example, in an embodiment, the candidate screen brightness is 1100, and the deviation between the candidate screen brightness and the first habit value (1000) is equal to 10%, at this time, the screen brightness value is directly adjusted to 500 (the second habit value).
For another example, in an embodiment, the candidate screen brightness is 2000, and the deviation between the candidate screen brightness and the first habit value (1000) is greater than 10%, at this time, the brightness adjustment is performed based on the candidate screen brightness, that is, the screen brightness value is adjusted to 2000.
In the method provided by this embodiment, when the first habit value of calculating the screen brightness corresponding to the target time is consistent with the second habit value of the real screen brightness, it is considered that the screen brightness (i.e., the screen brightness calculated based on the ambient light brightness) output by the light sensor is satisfactory by the user at the target time, and then, at any time matched with the target time, the screen brightness is adjusted directly according to the screen brightness calculated based on the ambient light brightness at the current time.
Further, when the first habit value and the second habit value corresponding to the target moment are not consistent, it is considered that the user is not satisfied with the screen brightness outputted by the light sensor at the target moment, and the screen brightness is manually adjusted, and thereafter, at any time matched with the target time, comparing the candidate screen brightness at the current time with the first habit value, and then when the deviation between the current time and the target time is less than or equal to a first preset threshold value, the environment of the electronic equipment is considered to be consistent at the current time and the target time, at the moment, the screen brightness is adjusted based on a second habit value of the real screen brightness corresponding to the target time, and when the deviation of the current time and the target time is not less than a first preset threshold value, the current time and the target time are different from the environment where the electronic equipment is located, and at the moment, the screen brightness is adjusted directly according to the screen brightness calculated based on the ambient light brightness at the previous time.
Therefore, brightness adjustment can be performed based on user habits, different requirements of different users can be met, and user experience is improved. In addition, in this embodiment, the brightness adjustment parameter is set to the calculated screen brightness calculated by setting the ambient light brightness of the environment where the device is located and the real screen brightness of the device. Like this for the custom database that learns does not rely on ambient light brightness, and is further, when carrying out screen brightness adjustment based on the custom database, also no longer rely on ambient light brightness, can avoid because of the inaccurate problem that leads to of light sensor discernment ambient light brightness that the user needs manual regulation luminance, can further promote user experience.
Further, in the example shown in fig. 3, if the real screen brightness corresponding to the target time is 0, the target screen brightness is calculated based on the ambient light brightness at the current time, and the screen brightness is adjusted according to the target screen brightness.
Specifically, when the real screen brightness corresponding to the target time is 0, the target time is indicated, and the user does not use the mobile phone, and at this time, the target screen brightness is calculated directly based on the ambient light brightness at the current time, and the screen brightness is adjusted according to the target screen brightness.
Fig. 4 is a flowchart illustrating yet another screen brightness adjustment method according to an exemplary embodiment of the present disclosure. On the basis of the foregoing embodiment, in the method provided in this embodiment, the brightness adjustment parameter includes an ambient brightness of an environment where the device is located and a real screen brightness of the device; step S103 may include:
s401, when the deviation between the current ambient light brightness and the third customary value of the ambient light brightness corresponding to the target time is smaller than or equal to a second preset threshold value, adjusting the screen brightness according to the fourth customary value of the real screen brightness corresponding to the target time.
S402, when the deviation between the current ambient light brightness and the third habit value is not smaller than the second preset threshold value, calculating target screen brightness based on the current ambient light brightness, and adjusting the screen brightness according to the target screen brightness.
The deviation between the current ambient light brightness and the third habit value of the ambient light brightness corresponding to the target time may be an absolute value of a difference between the current ambient light brightness and the third habit value, or may be a change rate of the current ambient light brightness relative to the third habit value. In the present embodiment, the number of components is not limited.
In addition, the second preset threshold is set according to actual needs, and in this embodiment, a specific value of the second preset threshold is not limited. For example, in an embodiment, when the deviation between the ambient light brightness at the current time and the third habit value of the ambient light brightness corresponding to the target time is a change rate of the ambient light brightness at the current time relative to the third habit value, the second preset threshold may be 15%.
Further, when calculating the target screen brightness, the target screen brightness may be calculated based on a predetermined rule according to the ambient light brightness at the current time.
In the present disclosure, any screen luminance calculated based on the ambient light level is calculated based on the same predetermined rule. In the present disclosure, the predetermined rule is not limited. For example, in one embodiment, the predetermined rule may be a preset corresponding relationship between the ambient light brightness and the screen brightness.
In this embodiment, when the deviation between the ambient light brightness at the current time and the third habit value of the ambient light brightness corresponding to the target time is less than or equal to the second preset threshold, it is determined that the environment where the electronic device is located at the current time is consistent with the environment where the electronic device is located at the target time, and at this time, the screen brightness is directly adjusted according to the fourth habit value of the real screen brightness corresponding to the target time, so that the screen brightness can be adjusted to the state that best meets the habit of the user, the user demand can be met, and the user experience is improved.
The method provided by the embodiment can adjust the brightness based on the habit of the user, can meet different requirements of different users, improves the adjustment precision and improves the user experience.
Further, in the example shown in fig. 4, if the real screen brightness corresponding to the target time is 0, the target screen brightness is calculated based on the ambient light brightness at the current time, and the screen brightness is adjusted according to the target screen brightness.
Specifically, when the real screen brightness corresponding to the target time is 0, the target time is indicated, and the user does not use the mobile phone, and at this time, the target screen brightness is calculated directly based on the ambient light brightness at the current time, and the screen brightness is adjusted according to the target screen brightness.
Corresponding to the embodiment of the screen brightness adjusting method, the disclosure also provides an embodiment of a screen brightness adjusting device.
Fig. 5 is a schematic structural diagram illustrating a screen brightness adjusting apparatus according to an exemplary embodiment of the present disclosure. Referring to fig. 5, the apparatus provided in this embodiment may include a recording module 510, a learning module 520, and a processing module 530, wherein,
the recording module 510 is configured to record, in a preset recording period, a value of a brightness adjustment parameter corresponding to the preset recording period;
the learning module 520 is configured to learn a use habit of a user for a screen based on the value of the brightness adjustment parameter, and obtain a habit database; the habit database comprises habit values of brightness adjusting parameters corresponding to different specified moments in a preset habit period;
the processing module 530 is configured to perform, in response to a screen-on operation, screen brightness adjustment based on a habit value of a brightness adjustment parameter corresponding to a target moment matched with the current moment in the habit database.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Further, the brightness adjusting parameter includes a calculated screen brightness calculated based on the ambient light brightness of the environment where the device is located and a real screen brightness of the device; wherein,
the processing module 530 is configured to perform screen brightness adjustment according to the candidate screen brightness when the first habit value of the calculated screen brightness corresponding to the target time is consistent with the second habit value of the real screen brightness corresponding to the target time; the candidate screen brightness is calculated based on the ambient light brightness at the current moment;
the processing module 530 is further configured to compare the candidate screen brightness with the first habit value when the first habit value is inconsistent with the second habit value, and perform screen brightness adjustment based on a comparison result.
Further, the processing module 530 is further configured to perform, when a deviation between the candidate screen brightness and the first habit value is smaller than or equal to a first preset threshold, screen brightness adjustment according to the second habit value, and when the deviation between the candidate screen brightness and the first habit value is not smaller than the preset threshold, screen brightness adjustment according to the candidate screen brightness.
Further, the brightness adjusting parameters comprise the ambient light brightness of the environment where the device is located and the real screen brightness of the device; wherein,
the processing module 530 is configured to, when a deviation between the current ambient light brightness and the third habit value of the ambient light brightness corresponding to the target time is less than or equal to a second preset threshold, perform screen brightness adjustment according to the fourth habit value of the real screen brightness corresponding to the target time;
the processing module 530 is further configured to calculate a target screen brightness based on the current ambient light brightness when the deviation between the current ambient light brightness and the third habit value is not less than the second preset threshold, and perform screen brightness adjustment according to the target screen brightness.
Further, the processing module 530 is further configured to calculate a target screen brightness based on the ambient light brightness at the current time when the real screen brightness corresponding to the target time is 0, and perform screen brightness adjustment according to the target screen brightness.
Fig. 6 is a schematic structural diagram illustrating another screen brightness adjustment apparatus according to an exemplary embodiment of the present disclosure. Referring to fig. 6, on the basis of the above embodiment, the learning module 520 of the apparatus provided in this embodiment includes a calculating unit 521 and a constructing unit 522, wherein,
the calculating unit 521 is configured to calculate, for each specified time in the preset habit period, an average value of the brightness adjustment parameters corresponding to the specified time based on values of the brightness adjustment parameters corresponding to the specified time in the latest several preset habit periods, and use the average value as a habit value of the brightness adjustment parameter corresponding to the specified time;
the constructing unit 522 is configured to construct the habit database by using the habit values of the brightness adjusting parameters corresponding to the designated times.
With regard to the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments of the related method, and will not be described in detail here.
For the device embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement without inventive effort.
An embodiment of the present disclosure also provides an electronic device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the method of any of the above embodiments.
Embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method of any of the above embodiments.
Fig. 7 is a schematic structural diagram of an electronic device shown in accordance with an exemplary embodiment of the present disclosure. For example, the electronic device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, electronic device 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the electronic device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the electronic device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile storage devices 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 or optical disks.
The power supply component 706 provides power to the various components of the electronic device 700. The power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 700.
The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and a 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 an input signal from a 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 boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 further includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 may detect an open/closed state of the electronic device 700, the relative positioning of components, such as a display and keypad of the electronic device 700, the sensor assembly 714 may also detect a change in the position of the electronic device 700 or a component of the electronic device 700, the presence or absence of user contact with the electronic device 700, orientation or acceleration/deceleration of the electronic device 700, and a change in the temperature of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR, or a combination thereof. In an exemplary embodiment, the communication component 716 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 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 700 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, micro-controllers, microprocessors or other electronic components for performing the methods described in any of the above embodiments.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the electronic device 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements 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 (10)

1. A screen brightness adjusting method is applied to an electronic device and comprises the following steps:
recording the value of a brightness adjustment parameter corresponding to a preset recording period in the preset recording period;
based on the value of the brightness adjusting parameter, learning the use habit of the user aiming at the screen to obtain a habit database; the habit database comprises habit values of brightness adjusting parameters corresponding to different specified moments in a preset habit period;
and responding to the screen lightening operation, and adjusting the screen brightness based on the habit value of the brightness adjustment parameter corresponding to the target moment matched with the current moment in the habit database.
2. The method of claim 1, wherein the brightness adjustment parameters include a calculated screen brightness calculated based on an ambient light brightness of an environment in which the device is located and a true screen brightness of the device; the adjusting the screen brightness based on the habit value of the brightness adjusting parameter corresponding to the target moment comprises:
when a first habit value of the calculated screen brightness corresponding to the target moment is consistent with a second habit value of the real screen brightness corresponding to the target moment, adjusting the screen brightness according to the candidate screen brightness; the candidate screen brightness is calculated based on the ambient light brightness at the current moment;
and when the first habit value is inconsistent with the second habit value, comparing the candidate screen brightness with the first habit value, and adjusting the screen brightness based on the comparison result.
3. The method of claim 2, wherein performing the screen brightness adjustment based on the comparison comprises:
when the deviation between the candidate screen brightness and the first habit value is smaller than or equal to a first preset threshold value, adjusting the screen brightness according to the second habit value;
and when the deviation between the candidate screen brightness and the first habit value is not less than the first preset threshold value, adjusting the screen brightness according to the candidate screen brightness.
4. The method according to claim 1, wherein the brightness adjustment parameters include an ambient light brightness of an environment where the device is located and a real screen brightness of the device; the adjusting the screen brightness based on the habit value of the brightness adjusting parameter corresponding to the target moment comprises:
when the deviation between the ambient light brightness at the current moment and the third customary value of the ambient light brightness corresponding to the target moment is smaller than or equal to a second preset threshold value, carrying out screen brightness adjustment according to a fourth customary value of the real screen brightness corresponding to the target moment;
and when the deviation between the ambient light brightness at the current moment and the third habit value is not less than the second preset threshold value, calculating the target screen brightness based on the ambient light brightness at the current moment, and adjusting the screen brightness according to the target screen brightness.
5. The method according to claim 2 or 4, characterized in that the method further comprises:
and when the real screen brightness corresponding to the target moment is 0, calculating the target screen brightness based on the ambient light brightness at the current moment, and adjusting the screen brightness according to the target screen brightness.
6. The method of claim 1, wherein learning the usage habits of the user with respect to screen brightness, and obtaining a habit database comprises:
calculating the average value of the brightness adjusting parameters corresponding to the appointed time based on the values of the brightness adjusting parameters corresponding to the appointed time in a plurality of latest preset habit periods aiming at each appointed time in the preset habit periods, and taking the average value as the habit value of the brightness adjusting parameters corresponding to the appointed time;
and constructing the habit database by using the habit values of the brightness adjusting parameters corresponding to the appointed moments.
7. The screen brightness adjusting device is applied to electronic equipment and comprises a recording module, a learning module and a processing module, wherein,
the recording module is used for recording the value of the brightness adjusting parameter corresponding to the preset recording period in the preset recording period;
the learning module is used for learning the use habit of the user aiming at the screen based on the value of the brightness adjusting parameter to obtain a habit database; the habit database comprises habit values of brightness adjusting parameters corresponding to different specified moments in a preset habit period;
and the processing module is used for responding to the screen lightening operation and adjusting the screen brightness based on the habit value of the brightness adjusting parameter corresponding to the target moment matched with the current moment in the habit database.
8. The apparatus of claim 7, wherein the brightness adjustment parameters include a calculated screen brightness calculated based on an ambient light brightness of an environment where the apparatus is located and a real screen brightness of the apparatus; wherein,
the processing module is used for adjusting the screen brightness according to the candidate screen brightness when a first habit value of the calculated screen brightness corresponding to the target moment is consistent with a second habit value of the real screen brightness corresponding to the target moment; the candidate screen brightness is calculated based on the ambient light brightness at the current moment;
and the processing module is further used for comparing the candidate screen brightness with the first habit value when the first habit value is inconsistent with the second habit value, and adjusting the screen brightness based on the comparison result.
9. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the method of any one of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 5.
CN202110315566.3A 2021-03-24 2021-03-24 Screen brightness adjusting method and device and electronic equipment Pending CN115132149A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110315566.3A CN115132149A (en) 2021-03-24 2021-03-24 Screen brightness adjusting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110315566.3A CN115132149A (en) 2021-03-24 2021-03-24 Screen brightness adjusting method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115132149A true CN115132149A (en) 2022-09-30

Family

ID=83374880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110315566.3A Pending CN115132149A (en) 2021-03-24 2021-03-24 Screen brightness adjusting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115132149A (en)

Similar Documents

Publication Publication Date Title
CN107491280B (en) Information updating method and device
EP3032821A1 (en) Method and device for shooting a picture
CN106557201B (en) Pressure detection method and device
CN107438811B (en) Information screen display method and device
CN105898032B (en) method and device for adjusting prompt tone
EP3046068A1 (en) Method and device for adjusting page display
CN111128092B (en) Screen brightness adjusting method, screen brightness adjusting device and computer storage medium
CN107480785B (en) Convolutional neural network training method and device
CN107172307A (en) Alarm clock jingle bell control method, device and storage medium
CN109218509B (en) Information screen display method and device and computer readable storage medium
EP3312702A1 (en) Method and device for identifying gesture
CN111462701A (en) Backlight brightness adjusting method and device
US20180254014A1 (en) Method and device for adjusting current of backlight, and storage medium
CN108629814B (en) Camera adjusting method and device
CN105892659A (en) Method and device for managing alarm clock
CN106775246B (en) Screen brightness adjusting method and device
CN112925466B (en) Touch control method and device
CN111462284B (en) Animation generation method, animation generation device and electronic equipment
CN115132149A (en) Screen brightness adjusting method and device and electronic equipment
CN110069310B (en) Method and device for switching desktop wallpaper and storage medium
CN111383568B (en) Display control method and device, electronic equipment and computer readable storage medium
CN112086075B (en) Screen display parameter adjusting method and device and storage medium
CN112799772A (en) Method, device and medium for controlling interface display
CN111383583B (en) Display control method and apparatus, electronic device, and computer-readable storage medium
CN114913818A (en) Backlight brightness adjusting method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination