CN112365860A - Terminal screen brightness adjusting method, terminal screen brightness adjusting equipment and storage medium - Google Patents

Terminal screen brightness adjusting method, terminal screen brightness adjusting equipment and storage medium Download PDF

Info

Publication number
CN112365860A
CN112365860A CN202011169878.XA CN202011169878A CN112365860A CN 112365860 A CN112365860 A CN 112365860A CN 202011169878 A CN202011169878 A CN 202011169878A CN 112365860 A CN112365860 A CN 112365860A
Authority
CN
China
Prior art keywords
brightness
terminal
curve function
application
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.)
Granted
Application number
CN202011169878.XA
Other languages
Chinese (zh)
Other versions
CN112365860B (en
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011169878.XA priority Critical patent/CN112365860B/en
Publication of CN112365860A publication Critical patent/CN112365860A/en
Application granted granted Critical
Publication of CN112365860B publication Critical patent/CN112365860B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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/003Details of a display terminal, the details relating to the control arrangement of the display terminal and to the interfaces thereto

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)
  • Television Receiver Circuits (AREA)

Abstract

The invention belongs to the technical field of mobile terminals and discloses a method and equipment for adjusting the brightness of a terminal screen and a storage medium. The method comprises the steps of acquiring current terminal operation parameters and application information of an application currently running by the terminal when a brightness adjusting instruction is detected, determining a corresponding screen brightness curve function according to the terminal operation parameters and the application information, then the brightness of the screen is adjusted according to the current environment brightness and the screen brightness curve function, according to the invention, when the brightness adjusting instruction is detected, the corresponding screen brightness curve function is determined according to the current terminal operation parameter and the application information of the application currently running by the terminal, and then the brightness of the screen is adjusted according to the current environment brightness and the screen brightness curve function, so that the method for adjusting the terminal screen brightness directly according to the current environment brightness is more suitable for the actual requirements of users on the terminal screen brightness when the terminal operates different applications and the terminal operation parameter is different.

Description

Terminal screen brightness adjusting method, terminal screen brightness adjusting equipment and storage medium
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a method and equipment for adjusting the brightness of a terminal screen and a storage medium.
Background
At present, the popularity of a terminal is very high, when a user uses the terminal, the user has different requirements on the brightness of a screen of the terminal in different environments (environments with different light such as sunlight, tree shadows and quilt pits), the brightness of the screen needs to be adjusted according to the different light intensities of the surrounding environment, and according to the personal use habits of the user, in the same scene, the requirements of the user on the brightness of the screen are still different due to different applications, different application running modes, different battery power and other reasons, the existing screen brightness adjusting function cannot adjust the brightness of the screen according to the personal use habits of the user, and the user still needs to manually adjust the brightness of the screen.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, equipment and a storage medium for adjusting the brightness of a terminal screen, and aims to solve the technical problem that the brightness of the terminal screen cannot be adjusted according to personal use habits of users when different running applications and different terminal running parameters exist in the prior art.
In order to achieve the above object, the present invention provides a terminal screen brightness adjusting method, which includes the following steps:
when a brightness adjusting instruction is detected, acquiring terminal operation parameters and application information of a current operation application of the terminal;
determining a screen brightness curve function according to the terminal operation parameters and the application information;
and adjusting the brightness of the terminal screen according to the current environment brightness and the screen brightness curve function.
Preferably, the step of determining a screen brightness curve function according to the terminal operating parameter and the application information includes:
searching a brightness curve function set corresponding to the application information in an application brightness curve function set;
reading a terminal electric quantity parameter and application operation mode information from the terminal operation parameter;
and searching a corresponding brightness curve function in the brightness curve function set according to the terminal electric quantity parameter and the application running mode information.
Preferably, before the step of acquiring the terminal operation parameter and the application information of the application currently operated by the terminal when the brightness adjustment instruction is detected, the method further includes:
acquiring a brightness data set preset by a user, and performing data grouping on the brightness data set according to application information to obtain a brightness data subset;
acquiring a corresponding brightness curve function set according to the brightness data subset;
and constructing an application brightness curve function set according to the brightness curve function set and the application information corresponding to each brightness data subset.
Preferably, the step of obtaining a corresponding set of luminance curve functions from the subset of luminance data includes:
acquiring an initial brightness curve function set corresponding to the brightness data subset;
and optimizing the brightness curve function in the initial brightness curve function set to obtain an optimized brightness curve function set.
Preferably, the step of optimizing the brightness curve function in the initial brightness curve function set includes:
acquiring application running mode information corresponding to each brightness data in the brightness data subset;
searching a first brightness curve function and a second brightness curve function corresponding to the initial brightness curve function set according to the application running mode information;
determining a target optimization function according to the first brightness curve function, the second brightness curve function and the brightness data;
and optimizing the target optimization function according to the brightness data.
Preferably, the step of determining an objective optimization function according to the first luminance curve function, the second luminance curve function and the luminance data includes:
calculating according to the brightness data and the first brightness curve function to obtain a first difference relative value;
calculating according to the brightness data and the second brightness curve function to obtain a second difference relative value;
determining a target optimization function from the first and second luminance profile functions according to the first and second gap relative values.
Preferably, before the step of acquiring the terminal operation parameter and the application information of the application currently operated by the terminal when the brightness adjustment instruction is detected, the method further includes:
and when detecting that the terminal running application or the terminal running parameter is changed, generating a brightness adjusting instruction.
Preferably, the step of generating the brightness adjustment instruction when detecting that the terminal running application or the terminal running parameter is changed includes:
when detecting that an electric quantity interval corresponding to the current electric quantity of the terminal is changed, generating a brightness adjusting instruction; or the like, or, alternatively,
when detecting that the current terminal runs and applies the change, generating a brightness adjusting instruction; or the like, or, alternatively,
when detecting that the application running mode of the current terminal running application is changed, generating a brightness adjusting instruction; or the like, or, alternatively,
and when the change of the intensity of the ambient light collected by the terminal is detected, generating a brightness adjusting instruction.
In addition, in order to achieve the above object, the present invention further provides a terminal screen brightness adjusting apparatus, including:
the instruction detection module is used for acquiring the terminal operation parameters and the application information of the current operation application of the terminal when the brightness adjustment instruction is detected;
the brightness calculation module is used for determining a screen brightness curve function according to the terminal operation parameters and the application information;
and the brightness adjusting module is used for adjusting the brightness of the terminal screen according to the current environment brightness and the screen brightness curve function.
In addition, in order to achieve the above object, the present invention further provides a terminal screen brightness adjusting apparatus, including: the system comprises a memory, a processor and a terminal screen brightness adjusting program which is stored on the memory and can run on the processor, wherein when the processor executes the reversing auxiliary line generating program, the steps of the terminal screen brightness adjusting method are realized.
In addition, in order to achieve the above object, the present invention further provides a computer readable storage medium, where a terminal screen brightness adjusting program is stored, and when the terminal screen brightness adjusting program is executed, the steps of the terminal screen brightness adjusting method according to any one of the above are implemented.
The invention obtains the current terminal operation parameter and the application information of the application currently running by the terminal when detecting the brightness adjusting instruction, then determines the corresponding screen brightness curve function according to the terminal operation parameter and the application information, then the brightness of the screen is adjusted according to the current environment brightness and the screen brightness curve function, according to the invention, when the brightness adjusting instruction is detected, the corresponding screen brightness curve function is determined according to the current terminal operation parameter and the application information of the application currently running by the terminal, and then the brightness of the screen is adjusted according to the current environment brightness and the screen brightness curve function, so that the method for adjusting the terminal screen brightness directly according to the current environment brightness is more suitable for the actual requirements of users on the terminal screen brightness when the terminal operates different applications and the terminal operation parameter is different.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for adjusting the brightness of a terminal screen according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for adjusting the brightness of a screen of a terminal according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for adjusting the brightness of a terminal screen according to a third embodiment of the present invention;
fig. 5 is a block diagram of a first embodiment of a terminal screen brightness adjusting apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a terminal screen brightness adjusting device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the electronic device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a terminal screen brightness adjustment program.
In the electronic apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the electronic device of the present invention may be disposed in a terminal screen brightness adjustment device, and the electronic device calls a terminal screen brightness adjustment program stored in the memory 1005 through the processor 1001 and executes the terminal screen brightness adjustment method provided by the embodiment of the present invention.
An embodiment of the present invention provides a method for adjusting terminal screen brightness, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of a method for adjusting terminal screen brightness according to the present invention.
In this embodiment, the method for adjusting the brightness of the terminal screen includes the following steps:
step S10: when a brightness adjusting instruction is detected, acquiring terminal operation parameters and application information of a current operation application of the terminal;
it should be noted that the main execution body of this embodiment is the terminal screen brightness adjustment device, where the terminal screen brightness adjustment device may be an electronic device such as a mobile phone and a tablet computer, or may also be another device that can achieve the same or similar functions.
It should be noted that the instruction is a command instructing the computer to perform a certain operation, and the brightness adjustment instruction may be understood as a command notifying that the brightness adjustment operation needs to be performed, and when the brightness adjustment instruction is detected, the terminal screen brightness adjustment device receives the brightness adjustment operation that needs to be performed, and then the terminal screen brightness adjustment program may be invoked to perform the terminal screen brightness adjustment method to perform the brightness adjustment on the terminal screen.
In actual use, the brightness adjustment instruction may be an instruction generated when detecting that the terminal operation parameter and the terminal operation application program change, or may be an instruction received from the server, the terminal operation parameter may be each parameter of the terminal in operation, the terminal operation application may be an application currently running at the current time of the terminal, and the application information may be a unique identifier of the terminal operation application.
For example: when detecting that the terminal operation parameters and the terminal operation application program change, a brightness adjusting instruction or a brightness adjusting instruction sent by a server is received, and when detecting the brightness adjusting instruction, the current residual electric quantity value of the terminal during the terminal operation, the operation mode of the application currently running by the terminal, the current ambient light intensity collected by the terminal and the application unique code (application ID) of the application currently running by the terminal are obtained.
Step S20: determining a screen brightness curve function according to the terminal operation parameters and the application information;
it should be noted that, according to the personal use habit of the user, under the condition that the terminal runs different applications and different terminal running parameters, the corresponding screen brightness curve function can be set, and when brightness adjustment is needed, the corresponding screen brightness curve function can be searched according to the different applications and different terminal running parameters which are run by the terminal.
Further, in order to better determine the screen brightness curve function according to the terminal operation parameter and the application information, the step of determining the screen brightness curve function according to the terminal operation parameter and the application information in this embodiment may be:
searching a brightness curve function set corresponding to the application information in an application brightness curve function set; reading a terminal electric quantity parameter and application operation mode information from the terminal operation parameter; and searching a corresponding brightness curve function in the brightness curve function set according to the terminal electric quantity parameter and the application running mode information.
It should be noted that the application brightness curve function set may be a set constructed in advance according to each application information established by analyzing a user use habit and a brightness curve function set corresponding to the application information, the corresponding brightness curve function set may be directly found in the corresponding application brightness curve function set through the application information, the brightness curve function set may include a plurality of brightness curve functions set according to different terminal electric quantity parameters and different application operation mode information, each brightness curve function may have a corresponding terminal electric quantity interval, and the corresponding brightness curve function may be directly found through the terminal electric quantity parameters and the application operation mode.
In actual use, the brightness curve function set corresponding to the application information can be directly found in the application brightness curve function set according to the application information, and then the corresponding brightness curve function can be found in the brightness curve function set according to the actual terminal electric quantity parameter and the application operation mode.
For example: the application information is A, a brightness curve function set B corresponding to the application information A is found in the application brightness curve function set according to the application information A, and the brightness curve function set B comprises F1、F2、F3、F4Four brightness curve functions are screened according to the terminal electric quantity parameter and the application operation mode information, and finally F is determined2As a function of the corresponding luminance curve.
Step S30: and adjusting the brightness of the terminal screen according to the current environment brightness and the screen brightness curve function.
In actual use, after searching for the corresponding screen brightness curve function according to different applications and different terminal operation parameters of the terminal, the current environment brightness acquired by the terminal can be acquired, then the current environment brightness is input into the screen brightness curve function to calculate the corresponding target screen brightness value, and then the terminal screen brightness is adjusted to the target screen brightness value.
For example: acquiring the current environment brightness b acquired by the terminal, inputting the environment brightness b into a screen brightness curve function F (b), and calculating to obtain a target screen brightness value of 40%, if the terminal screen brightness is higher than 40%, reducing the terminal screen brightness to 40%, and if the terminal screen brightness is lower than 40%, improving the terminal screen brightness to 40%.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
In the embodiment, when the brightness adjustment instruction is detected, the current terminal operation parameter and the application information of the application currently running by the terminal are acquired, and then the corresponding screen brightness curve function is determined according to the terminal operation parameter and the application information, then the brightness of the screen is adjusted according to the current environment brightness and the screen brightness curve function, according to the invention, when the brightness adjusting instruction is detected, the corresponding screen brightness curve function is determined according to the current terminal operation parameter and the application information of the application currently running by the terminal, and then the brightness of the screen is adjusted according to the current environment brightness and the screen brightness curve function, so that the method for adjusting the terminal screen brightness directly according to the current environment brightness is more suitable for the actual requirements of users on the terminal screen brightness when the terminal operates different applications and the terminal operation parameter is different.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for adjusting the brightness of a terminal screen according to a second embodiment of the present invention.
Based on the first embodiment, before the step S10, the method for adjusting the brightness of the terminal screen in this embodiment further includes:
step S01: acquiring a brightness data set preset by a user, and performing data grouping on the brightness data set according to application information to obtain a brightness data subset;
it should be noted that the brightness data set may be a data set collected when the user manually sets the screen brightness of the terminal, the set may collect data in real time for updating when it is detected that the user manually sets the screen brightness of the terminal, and each brightness data may include information such as application information, ambient brightness, brightness set by the user, a terminal electric quantity parameter during collection, and an application operation mode of a current operation application of the terminal during collection.
In practical use, the data in the luminance data set may be grouped according to different application information of each data in the luminance data set, and the luminance data set is divided into a plurality of luminance data subsets, where each luminance data subset corresponds to one application information.
For example: the total number of the application information is 4, which is A, B, C, D respectively, and the luminance data set is subjected to data grouping according to the application information, so as to obtain data subsets corresponding to the application information, such as: a corresponds to the data subset LAB corresponds to the data subset LBC corresponds to the data subset LCD corresponds to the data subset LD
Step S02: acquiring a corresponding brightness curve function set according to the brightness data subset;
it should be noted that each application information has a corresponding initial luminance curve function set, and the luminance data subsets are obtained by grouping according to the application information, so that the corresponding initial luminance curve function sets can be obtained, and then the corresponding luminance curve function sets can be obtained by further processing according to the luminance data subsets.
Further, in order to obtain the brightness curve function set, the step of obtaining the corresponding brightness curve function set according to the brightness data subset in this embodiment may be:
acquiring an initial brightness curve function set corresponding to the brightness data subset; and optimizing the brightness curve function in the initial brightness curve function set to obtain an optimized brightness curve function set.
It should be noted that the initial brightness curve function set includes a plurality of brightness curve functions, and the plurality of brightness curve functions may be obtained by analyzing behaviors of a large number of different users for the same application under different terminal operating parameters.
It can be understood that, when the initial function obtained by analyzing a large number of different user behaviors is specific to a specific user, the initial function can be optimized and adjusted according to personal use data of the user, so that the initial function is more in line with personal use habits of the user, and therefore, after the brightness curve function in the initial brightness curve function set is optimized according to the brightness data subset, the obtained brightness curve function in the optimized brightness curve function set which is buried thickly is more in line with the personal use habits of the user.
Further, in order to explain how to optimize the luminance curve function in the initial luminance curve function set, the step of optimizing the luminance curve function in the initial luminance curve function set in this embodiment may be:
acquiring application running mode information corresponding to each brightness data in the brightness data subset; searching a first brightness curve function and a second brightness curve function corresponding to the initial brightness curve function set according to the application running mode information; determining a target optimization function according to the first brightness curve function, the second brightness curve function and the brightness data; and optimizing the target optimization function according to the brightness data.
It should be noted that the operation modes of the same application are generally divided into two types: the brightness curve function can be generally divided into two types according to the difference of electric quantity for different modes: a high-power luminance curve function and a low-power luminance curve function, the first luminance curve function may be the high-power luminance curve function, and the second luminance curve function may be the low-power luminance curve function.
In actual use, a high-power brightness curve function and a low-power brightness curve function corresponding to an operation mode can be searched in an initial brightness curve function set according to an actual operation mode applied in operation, then the high-power brightness curve function or the low-power brightness curve function is determined as a target optimization function according to brightness data, then the target optimization function is optimized by using the brightness data, and a terminal power interval corresponding to the function can be adjusted according to all brightness data actually used by the brightness curve function.
In practical use, the luminance data may be used to optimize the target optimization function, and the target optimization function may be further fit and adjusted by using algorithms such as a least square method, a lagrange interpolation method, a newton interpolation method, and the like, which is not limited in this embodiment.
For example: if the application operation mode corresponding to the brightness data a is a dark mode, the corresponding first brightness curve function F can be found in the initial brightness curve function set1And a second luminance curve function F2According to the brightness data A and the first brightness curve function F1And a second luminance curve function F2Analyzing to determine a first luminance curve function F1For the target optimization function, a least squares method is used to perform a first luminance curve function F based on the luminance data A1Further fitting adjustments are made.
Further, in order to accurately determine the objective optimization function, the step of determining the objective optimization function according to the first luminance curve function, the second luminance curve function and the luminance data in this embodiment may be:
calculating according to the brightness data and the first brightness curve function to obtain a first difference relative value; calculating according to the brightness data and the second brightness curve function to obtain a second difference relative value; determining a target optimization function from the first and second luminance profile functions according to the first and second gap relative values.
It should be noted that the difference relative value may represent a degree of engagement between the luminance data and the luminance curve function, a first difference relative value between the luminance data and the first luminance curve function is calculated, a second difference relative value between the luminance data and the second luminance curve function is calculated, and then the first difference relative value and the second difference relative value are compared, so that the luminance curve function more engaged with the luminance data may be determined, and thus, the target optimization function may be determined.
It should be noted that, when the relative difference value is greater than a certain value, it indicates that the degree of matching between the luminance data and the function is very poor, and the luminance data is invalid data. Therefore, a relative difference threshold can be set according to actual conditions, the relative difference value is compared with the relative difference threshold, and if the relative difference value is larger than the relative difference threshold, the brightness data can be discarded.
In practical use, the calculation formula of the relative gap value can be as follows:
D=|f-Fn(b)|/f
wherein D is the relative difference value, F is the user-adjusted brightness value, b is the environment brightness value, and Fn(b) As a function of the luminance curve.
In actual use, when the first gap relative value and the second gap relative value are both larger than or equal to a preset gap relative threshold value, the target optimization function is abandoned;
when the first difference relative value is smaller than a preset difference relative threshold value and the second difference relative value is larger than or equal to the preset difference relative threshold value, taking the first brightness curve function as a target optimization function;
when the second difference relative value is smaller than a preset difference relative threshold value and the first difference relative value is larger than or equal to the preset difference relative threshold value, taking the second brightness curve function as a target optimization function;
when the first difference relative value and the second difference relative value are both smaller than a preset difference relative threshold value, comparing the first difference relative value with the second difference relative value;
when the first difference relative value is smaller than or equal to the second difference relative value, taking the first brightness curve function as a target optimization function;
when the first gap relative value is larger than the second gap relative value, the second brightness curve function is used as the target optimization function
For example: presetting a relative difference threshold value as 10%;
if the relative value of the first difference is 11% and the relative value of the second difference is 13%, discarding the brightness data and abandoning the selection of the objective optimization function.
And if the first difference relative value is 11% and the second difference relative value is 7%, selecting the second brightness curve function as the target optimization function.
And if the first difference relative value is 7% and the second difference relative value is 11%, selecting the first brightness curve function as the target optimization function.
And if the first difference relative value is 7% and the second difference relative value is 9%, selecting the first brightness curve function as the target optimization function.
And if the first difference relative value is 9% and the second difference relative value is 7%, selecting the second brightness curve function as the target optimization function.
Step S03: and constructing an application brightness curve function set according to the brightness curve function set and the application information corresponding to each brightness data subset.
It can be understood that the luminance data subsets correspond to the application information one to one, and the luminance curve function set corresponds to the luminance data subsets one to one, so that the application luminance curve function set can be constructed according to the application information and the luminance curve function set, and the constructed application luminance curve function set can directly find the luminance curve function set corresponding to the application information according to the application information.
In practical use, the construction of the set of application brightness curve functions can adopt Key: the Value-form set is constructed, for example, by using a HashMap, HashTable, and other types of sets, using the application information as Key, and using the luminance curve function set as Value, the luminance curve function set may be stored by using an ArrayList, LinkedList, and other types of sets, and the set element of the luminance curve function set is a luminance curve function.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
In the embodiment, the initial brightness curve function set corresponding to each application information is optimized according to the personal use habit of the user to obtain the brightness curve function set corresponding to each application information, and then the application brightness curve function set is constructed according to the application information and the brightness curve function set corresponding to the application information, wherein each brightness curve function in the application brightness curve function set constructed according to the method of the embodiment better conforms to the personal use habit of the user.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for adjusting the brightness of a terminal screen according to a third embodiment of the present invention.
Based on the first embodiment, before the step S10, the method for adjusting the brightness of the terminal screen in this embodiment further includes:
step S01': and when detecting that the terminal running application or the terminal running parameter is changed, generating a brightness adjusting instruction.
It should be noted that the terminal operation parameters may include operation parameters such as a current electric quantity of the terminal, an application operation mode of the terminal operation application, and an ambient light intensity collected by the terminal, and when detecting that the terminal operation application or/and the terminal operation parameters are changed, the terminal operation application or/and the terminal operation parameters may be matched with preset brightness adjustment conditions according to various parameters, and when the changed parameters of the terminal operation application or the terminal operation parameters meet the preset brightness adjustment conditions, a brightness adjustment instruction is generated.
In actual use, the terminal running application and the terminal running parameters can be monitored in real time, and when one of the following conditions is met, a brightness adjusting instruction is generated:
when detecting that an electric quantity interval corresponding to the current electric quantity of the terminal is changed, namely, the electric quantity interval is switched from a high electric quantity interval to a low electric quantity interval, or the electric quantity interval is switched from the low electric quantity interval to the high electric quantity interval;
when detecting that the current terminal runs application change;
when detecting that the application running mode of the current terminal running application is changed;
when the change of the intensity of the ambient light collected by the terminal is detected.
For example: according to the using habit of a user, the terminal electric quantity is in a low electric quantity interval when the electric quantity is lower than 30%, and is in a low electric quantity interval when the electric quantity is higher than 30%, when the electric quantity is lower than 30% and is lower than 30%, a brightness adjusting instruction is generated, and when the electric quantity is higher than 30% and is higher than 30%, the brightness adjusting instruction is generated; when the current terminal runs an application and is switched from an application A to an application B, a brightness adjusting instruction is generated; when the application operation mode of the current terminal operation application is switched from the dark black mode to the common mode, a brightness adjusting instruction is generated, and when the application operation mode of the current terminal operation application is switched from the common mode to the dark black mode, a brightness adjusting instruction is generated; and when the ambient light intensity collected by the terminal is changed from the light intensity A to the light intensity B, generating a brightness adjusting instruction.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
In the embodiment, by monitoring the terminal running application and the terminal running parameter in real time, when the change of the terminal running parameter or/and the terminal running application meets the brightness adjustment condition, a brightness adjustment instruction is generated, then when the brightness adjustment instruction is received, the current terminal running parameter and the application information of the application currently running at the terminal are obtained, then the corresponding screen brightness curve function is determined according to the terminal running parameter and the application information, then the brightness adjustment is performed on the screen according to the current ambient brightness and the screen brightness curve function, and whether the brightness adjustment is needed or not can be quickly judged.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a terminal screen brightness adjustment program is stored on the computer-readable storage medium, and when the terminal screen brightness adjustment program is executed by a processor, the steps of the terminal screen brightness adjustment method described above are implemented.
Referring to fig. 5, fig. 5 is a block diagram illustrating a first embodiment of a terminal screen brightness adjusting apparatus according to the present invention.
As shown in fig. 5, the terminal screen brightness adjusting apparatus provided in the embodiment of the present invention includes:
the instruction detection module 501 is configured to, when a brightness adjustment instruction is detected, obtain a terminal operation parameter and application information of a current operation application of the terminal;
a brightness calculation module 502, configured to determine a screen brightness curve function according to the terminal operation parameter and the application information;
and a brightness adjusting module 503, configured to adjust the brightness of the terminal screen according to the current ambient brightness and the screen brightness curve function.
In the embodiment, when the brightness adjustment instruction is detected, the current terminal operation parameter and the application information of the application currently running by the terminal are acquired, and then the corresponding screen brightness curve function is determined according to the terminal operation parameter and the application information, then the brightness of the screen is adjusted according to the current environment brightness and the screen brightness curve function, according to the invention, when the brightness adjusting instruction is detected, the corresponding screen brightness curve function is determined according to the current terminal operation parameter and the application information of the application currently running by the terminal, and then the brightness of the screen is adjusted according to the current environment brightness and the screen brightness curve function, so that the method for adjusting the terminal screen brightness directly according to the current environment brightness is more suitable for the actual requirements of users on the terminal screen brightness when the terminal operates different applications and the terminal operation parameter is different.
Further, the luminance calculating module 502 is further configured to search a luminance curve function set corresponding to the application information in an application luminance curve function set; reading a terminal electric quantity parameter and application operation mode information from the terminal operation parameter; and searching a corresponding brightness curve function in the brightness curve function set according to the terminal electric quantity parameter and the application running mode information.
Further, the brightness calculation module 502 is further configured to obtain a brightness data set preset by a user, and perform data grouping on the brightness data set according to application information to obtain a brightness data subset; acquiring a corresponding brightness curve function set according to the brightness data subset; and constructing an application brightness curve function set according to the brightness curve function set and the application information corresponding to each brightness data subset.
Further, the luminance calculating module 502 is further configured to obtain an initial luminance curve function set corresponding to the luminance data subset; and optimizing the brightness curve function in the initial brightness curve function set to obtain an optimized brightness curve function set.
Further, the brightness calculating module 502 is further configured to obtain application running mode information corresponding to each brightness data in the brightness data subset; searching a first brightness curve function and a second brightness curve function corresponding to the initial brightness curve function set according to the application running mode information; determining a target optimization function according to the first brightness curve function, the second brightness curve function and the brightness data; and optimizing the target optimization function according to the brightness data.
Further, the luminance calculating module 502 is further configured to calculate according to the luminance data and the first luminance curve function to obtain a first difference relative value; calculating according to the brightness data and the second brightness curve function to obtain a second difference relative value; determining a target optimization function from the first and second luminance profile functions according to the first and second gap relative values.
Further, the instruction detecting module 501 is further configured to generate a brightness adjusting instruction when detecting that the terminal runs an application or the terminal running parameters change.
Further, the instruction detecting module 501 is further configured to generate a brightness adjusting instruction when it is detected that an electric quantity interval corresponding to the current electric quantity of the terminal changes; or when detecting that the current terminal runs application change, generating a brightness adjusting instruction; or when detecting that the application running mode of the current terminal running application is changed, generating a brightness adjusting instruction; or when detecting that the intensity of the ambient light collected by the terminal changes, generating a brightness adjusting instruction.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the method for adjusting the brightness of the terminal screen provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A terminal screen brightness adjusting method is characterized by comprising the following steps:
when a brightness adjusting instruction is detected, acquiring terminal operation parameters and application information of a current operation application of the terminal;
determining a screen brightness curve function according to the terminal operation parameters and the application information;
and adjusting the brightness of the terminal screen according to the current environment brightness and the screen brightness curve function.
2. The method for adjusting the brightness of a screen of a terminal according to claim 1, wherein the step of determining the screen brightness curve function according to the terminal operation parameters and the application information comprises:
searching a brightness curve function set corresponding to the application information in an application brightness curve function set;
reading a terminal electric quantity parameter and application operation mode information from the terminal operation parameter;
and searching a corresponding brightness curve function in the brightness curve function set according to the terminal electric quantity parameter and the application running mode information.
3. The method for adjusting the brightness of the screen of the terminal according to claim 2, wherein before the step of acquiring the operation parameters of the terminal and the application information of the application currently running on the terminal when the brightness adjustment instruction is detected, the method further comprises:
acquiring a brightness data set preset by a user, and performing data grouping on the brightness data set according to application information to obtain a brightness data subset;
acquiring a corresponding brightness curve function set according to the brightness data subset;
and constructing an application brightness curve function set according to the brightness curve function set and the application information corresponding to each brightness data subset.
4. The method for adjusting the brightness of the screen of the terminal according to claim 3, wherein the step of obtaining the corresponding brightness curve function set according to the brightness data subset comprises:
acquiring an initial brightness curve function set corresponding to the brightness data subset;
and optimizing the brightness curve function in the initial brightness curve function set to obtain an optimized brightness curve function set.
5. The terminal screen brightness adjustment method of claim 4, wherein the step of optimizing the brightness curve function in the initial brightness curve function set comprises:
acquiring application running mode information corresponding to each brightness data in the brightness data subset;
searching a first brightness curve function and a second brightness curve function corresponding to the initial brightness curve function set according to the application running mode information;
determining a target optimization function according to the first brightness curve function, the second brightness curve function and the brightness data;
and optimizing the target optimization function according to the brightness data.
6. The method for adjusting the brightness of a terminal screen according to claim 5, wherein the step of determining the objective optimization function according to the first brightness curve function, the second brightness curve function and the brightness data comprises:
calculating according to the brightness data and the first brightness curve function to obtain a first difference relative value;
calculating according to the brightness data and the second brightness curve function to obtain a second difference relative value;
determining a target optimization function from the first and second luminance profile functions according to the first and second gap relative values.
7. The method for adjusting the brightness of the screen of the terminal according to claim 1, wherein before the step of acquiring the operation parameters of the terminal and the application information of the application currently running on the terminal when the brightness adjustment instruction is detected, the method further comprises:
and when detecting that the terminal running application or the terminal running parameter is changed, generating a brightness adjusting instruction.
8. The terminal screen brightness adjustment method of claim 7, wherein the terminal operation parameters include: the terminal power, the application running mode and the ambient light intensity;
the step of generating the brightness adjusting instruction when detecting that the terminal running application or the terminal running parameter is changed comprises the following steps:
when detecting that an electric quantity interval corresponding to the current electric quantity of the terminal is changed, generating a brightness adjusting instruction; or the like, or, alternatively,
when detecting that the current terminal runs and applies the change, generating a brightness adjusting instruction; or the like, or, alternatively,
when detecting that the application running mode of the current terminal running application is changed, generating a brightness adjusting instruction; or the like, or, alternatively,
and when the change of the intensity of the ambient light collected by the terminal is detected, generating a brightness adjusting instruction.
9. A terminal screen brightness adjustment device, characterized in that the terminal screen brightness adjustment device comprises: a memory, a processor and a terminal screen brightness adjustment program stored on the memory and operable on the processor, the reverse auxiliary line generation program when executed by the processor implementing the steps of the terminal screen brightness adjustment method according to any one of claims 1-7.
10. A computer-readable storage medium, wherein a terminal screen brightness adjustment program is stored on the computer-readable storage medium, and when executed, the steps of the terminal screen brightness adjustment method according to any one of claims 1-7 are implemented.
CN202011169878.XA 2020-10-27 2020-10-27 Terminal screen brightness adjusting method, terminal screen brightness adjusting equipment and storage medium Active CN112365860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011169878.XA CN112365860B (en) 2020-10-27 2020-10-27 Terminal screen brightness adjusting method, terminal screen brightness adjusting equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011169878.XA CN112365860B (en) 2020-10-27 2020-10-27 Terminal screen brightness adjusting method, terminal screen brightness adjusting equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112365860A true CN112365860A (en) 2021-02-12
CN112365860B CN112365860B (en) 2023-01-20

Family

ID=74511116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011169878.XA Active CN112365860B (en) 2020-10-27 2020-10-27 Terminal screen brightness adjusting method, terminal screen brightness adjusting equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112365860B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000754A (en) * 2006-01-10 2007-07-18 明基电通股份有限公司 Method for regulating brightness of display
CN101071542A (en) * 2006-05-12 2007-11-14 乐金电子(昆山)电脑有限公司 Display device brightness regulating device and method
CN101847380A (en) * 2009-03-27 2010-09-29 比亚迪股份有限公司 Liquid crystal display device for automatically adjusting luminance and display method thereof
US20130328841A1 (en) * 2012-06-08 2013-12-12 Apple Inc. Backlight calibration and control
CN105405427A (en) * 2015-12-04 2016-03-16 小米科技有限责任公司 Facility brightness adjustment method and device
CN105632447A (en) * 2016-03-31 2016-06-01 青岛海信移动通信技术股份有限公司 Display brightness adjustment method and device of liquid crystal display
US20170110092A1 (en) * 2015-01-15 2017-04-20 Xiaomi Inc. Method and device for adjusting display brightness
US20170213523A1 (en) * 2016-01-27 2017-07-27 Benq Corporation Image adjusting method and related display apparatus
CN107507579A (en) * 2017-08-18 2017-12-22 上海中兴软件有限责任公司 A kind of screen backlight control and method to set up, device, multi-screen terminal and storage medium
CN109271014A (en) * 2017-07-18 2019-01-25 华为终端(东莞)有限公司 A kind of method and apparatus adjusting screen intensity
CN109427317A (en) * 2017-08-31 2019-03-05 中兴通讯股份有限公司 Screen brightness control method, device, terminal and computer readable storage medium
JP2019120781A (en) * 2018-01-04 2019-07-22 東芝映像ソリューション株式会社 Display device and display control method
CN110047443A (en) * 2019-04-08 2019-07-23 Oppo广东移动通信有限公司 Backlight brightness regulation method, device, mobile terminal and storage medium
CN110958738A (en) * 2018-09-21 2020-04-03 苹果公司 Electronic device with adaptive lighting system
US20200143770A1 (en) * 2018-11-01 2020-05-07 Samsung Electronics Co., Ltd. Image display device and method of operating the same

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000754A (en) * 2006-01-10 2007-07-18 明基电通股份有限公司 Method for regulating brightness of display
CN101071542A (en) * 2006-05-12 2007-11-14 乐金电子(昆山)电脑有限公司 Display device brightness regulating device and method
CN101847380A (en) * 2009-03-27 2010-09-29 比亚迪股份有限公司 Liquid crystal display device for automatically adjusting luminance and display method thereof
US20130328841A1 (en) * 2012-06-08 2013-12-12 Apple Inc. Backlight calibration and control
US20170110092A1 (en) * 2015-01-15 2017-04-20 Xiaomi Inc. Method and device for adjusting display brightness
CN105405427A (en) * 2015-12-04 2016-03-16 小米科技有限责任公司 Facility brightness adjustment method and device
US20170213523A1 (en) * 2016-01-27 2017-07-27 Benq Corporation Image adjusting method and related display apparatus
CN105632447A (en) * 2016-03-31 2016-06-01 青岛海信移动通信技术股份有限公司 Display brightness adjustment method and device of liquid crystal display
CN109271014A (en) * 2017-07-18 2019-01-25 华为终端(东莞)有限公司 A kind of method and apparatus adjusting screen intensity
CN107507579A (en) * 2017-08-18 2017-12-22 上海中兴软件有限责任公司 A kind of screen backlight control and method to set up, device, multi-screen terminal and storage medium
CN109427317A (en) * 2017-08-31 2019-03-05 中兴通讯股份有限公司 Screen brightness control method, device, terminal and computer readable storage medium
JP2019120781A (en) * 2018-01-04 2019-07-22 東芝映像ソリューション株式会社 Display device and display control method
CN110958738A (en) * 2018-09-21 2020-04-03 苹果公司 Electronic device with adaptive lighting system
US20200143770A1 (en) * 2018-11-01 2020-05-07 Samsung Electronics Co., Ltd. Image display device and method of operating the same
CN110047443A (en) * 2019-04-08 2019-07-23 Oppo广东移动通信有限公司 Backlight brightness regulation method, device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN112365860B (en) 2023-01-20

Similar Documents

Publication Publication Date Title
CN109684047B (en) Event processing method, device, equipment and computer storage medium
CN111290916B (en) Big data monitoring method, device and equipment and computer readable storage medium
CN108399052B (en) Picture compression method and device, computer equipment and storage medium
CN107305611B (en) Method and device for establishing model corresponding to malicious account and method and device for identifying malicious account
CN109901881B (en) Plug-in loading method and device of application program, computer equipment and storage medium
CN111159413A (en) Log clustering method, device, equipment and storage medium
CN105162931B (en) The sorting technique and device of a kind of communicating number
CN112966964A (en) Product matching method, device, equipment and storage medium based on design requirements
CN112365860B (en) Terminal screen brightness adjusting method, terminal screen brightness adjusting equipment and storage medium
CN109271074A (en) A kind of window regulation method, window adjusting means and mobile terminal
CN113037925A (en) Information processing method, information processing apparatus, electronic device, and readable storage medium
CN112270384A (en) Loop detection method and device, electronic equipment and storage medium
CN110750718A (en) User guiding method, device, equipment and storage medium based on recommendation system
CN111241746A (en) Forward model selection method, apparatus and readable storage medium
CN114069803B (en) Portable emergency energy storage power supply detection method, device, equipment and storage medium
CN114266324A (en) Model visualization modeling method and device, computer equipment and storage medium
CN115454466A (en) Method, apparatus, device and medium for automatic updating of machine learning model
CN115935284A (en) Power grid abnormal voltage detection method, device, equipment and storage medium
CN112785418B (en) Credit risk modeling method, apparatus, device and computer readable storage medium
CN114124593B (en) Multi-device calling method, device, control terminal and storage medium
CN112035201B (en) Device parameter display method and device, computer device and storage medium
CN114745407A (en) Security situation sensing method, device, equipment and medium for power internet of things
CN111582430A (en) Firefly algorithm-based parameter optimization method, device, equipment and storage medium
CN108009393B (en) Data processing method, device and computer readable storage medium
CN115049652B (en) Intelligent control method, device and equipment for hydraulic machine 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
GR01 Patent grant
GR01 Patent grant