[go: up one dir, main page]

CN112365860B - 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
CN112365860B
CN112365860B CN202011169878.XA CN202011169878A CN112365860B CN 112365860 B CN112365860 B CN 112365860B CN 202011169878 A CN202011169878 A CN 202011169878A CN 112365860 B CN112365860 B CN 112365860B
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.)
Active
Application number
CN202011169878.XA
Other languages
Chinese (zh)
Other versions
CN112365860A (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. According to the method, when a brightness adjusting instruction is detected, current terminal operation parameters and application information of an application currently running by a terminal are obtained, a corresponding screen brightness curve function is determined according to the terminal operation parameters and the application information, then brightness adjustment is carried out on a screen according to current environment brightness and the screen brightness curve function.

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 corresponding first brightness curve function and a corresponding second brightness curve function in the initial brightness curve function set according to the application operation 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;
and determining an objective optimization function from the first brightness curve function and the second brightness curve function according to the first difference relative value and the second difference relative value.
Preferably, before the step of acquiring the terminal operation parameters 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 a combination thereof,
when detecting that the current terminal runs application 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 ambient light intensity 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 the reversing auxiliary line generating program realizes the steps of the terminal screen brightness adjusting method when being executed by the processor.
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 method of adjusting the brightness of the terminal screen according to any one of the above steps is implemented.
According to the invention, when a brightness adjusting instruction is detected, the current terminal operation parameters and the application information of the application currently running by the terminal are obtained, the corresponding screen brightness curve function is determined according to the terminal operation parameters and the application information, and then the brightness of the screen is adjusted according to the current environment brightness and the screen brightness curve function.
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 present invention will be further described 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 do not 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 described previously.
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 a terminal screen brightness, and referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a method for adjusting a 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 a terminal operation parameter and a 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 during 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 the use habits of the user 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 F 1 、F 2 、F 3 、F 4 Four brightness curve functions are screened according to the terminal electric quantity parameters and the application operation mode information, and finally F is determined 2 As 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%, wherein if the terminal screen brightness is higher than 40%, the terminal screen brightness is reduced to 40%, and if the terminal screen brightness is lower than 40%, the terminal screen brightness is increased 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.
According to the method, when a brightness adjusting instruction is detected, the current terminal operation parameters and the application information of the application currently running in the terminal are obtained, the corresponding screen brightness curve function is determined according to the terminal operation parameters and the application information, and then the brightness of the screen is adjusted according to the current environment brightness and the screen brightness curve function.
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 screen brightness of the terminal according to 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 a user manually sets the brightness of the terminal screen, the set may be updated by collecting data in real time when it is detected that the user manually sets the brightness of the terminal screen, and each brightness data may include information such as application information, ambient brightness, brightness set by the user, a parameter of the electric quantity of the terminal during collection, and an application operation mode of the 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, and D, respectively, and the luminance data set is subjected to data grouping according to the application information, so as to obtain a data subset corresponding to each application information, for example: a corresponds to the data subset L A B corresponds to the data subset L B C corresponds to the data subset L C D corresponds to the data subset L D
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 describe 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 the 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 luminance curve function and a low-power luminance curve function corresponding to the operation modes can be found in the initial luminance curve function set according to the actual operation mode applied in operation, then the high-power luminance curve function or the low-power luminance curve function is determined as a target optimization function according to the luminance data, then the target optimization function is optimized by using the luminance data, and a terminal power interval corresponding to the function can be adjusted according to all luminance data actually used by the luminance 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 set 1 And a second luminance curve function F 2 According to the brightness data A and the first brightness curve function F 1 And a second luminance curve function F 2 Analyzing to determine a first brightness curve function F 1 For the target optimization function, a least squares method is used to perform a first luminance curve function F based on the luminance data A 1 Further 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 include:
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; and determining an objective optimization function from the first brightness curve function and the second brightness curve function according to the first difference relative value and the second difference relative value.
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-F n (b)|/f
wherein D is the relative difference value, F is the user-adjusted brightness value, b is the environment brightness value, and F n (b) As a function of the luminance profile.
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 to be selected;
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.
If the first difference relative value is 7% and the second difference relative value is 9%, the first luminance curve function is selected as the objective 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 is more in line with 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 screen brightness of the terminal 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 it is detected 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 a preset brightness adjustment condition according to various parameters, and when the changed parameters of the terminal operation application or the terminal operation parameters meet the preset brightness adjustment condition, 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 adjusting program is stored, and when the terminal screen brightness adjusting program is executed by a processor, the terminal screen brightness adjusting program implements the steps of the terminal screen brightness adjusting method described above.
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.
According to the method, when a brightness adjusting instruction is detected, the current terminal operation parameters and the application information of the application currently running in the terminal are obtained, the corresponding screen brightness curve function is determined according to the terminal operation parameters and the application information, and then the brightness of the screen is adjusted according to the current environment brightness and the screen brightness curve function.
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-mentioned work flows are only illustrative and do not limit the scope of the present invention, and in practical applications, those skilled in the art may select some or all of them according to actual needs to implement the purpose of the solution of the present embodiment, 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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising 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 solutions 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. a Read Only Memory (ROM)/RAM, a magnetic disk, and an optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) 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 (9)

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;
adjusting the brightness of the terminal screen according to the current environment brightness and the screen brightness curve function;
the step of determining the screen brightness curve function according to the terminal operation parameters and the application information comprises the following steps:
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 operation mode information.
2. 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:
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.
3. The method for adjusting the brightness of the screen of the terminal according to claim 2, 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.
4. The method for adjusting brightness of a terminal screen according to claim 3, 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 corresponding first brightness curve function and a corresponding second brightness curve function in the initial brightness curve function set according to the application operation 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.
5. The method for adjusting the brightness of the terminal screen according to claim 4, 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;
and determining an objective optimization function from the first brightness curve function and the second brightness curve function according to the first difference relative value and the second difference relative value.
6. 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.
7. The terminal screen brightness adjustment method of claim 6, 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 the electric quantity interval corresponding to the current electric quantity of the terminal is detected to be changed, a brightness adjusting instruction is generated; or the like, or, alternatively,
when detecting that the current terminal runs application change, generating a brightness adjusting instruction; or the like, or a combination thereof,
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.
8. 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 adjusting program stored on the memory and operable on the processor, the terminal screen brightness adjusting program when executed by the processor implementing the steps of the terminal screen brightness adjusting method according to any one of claims 1-7.
9. 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 CN112365860A (en) 2021-02-12
CN112365860B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115116409A (en) * 2021-03-17 2022-09-27 深圳市万普拉斯科技有限公司 Screen brightness adjustment method, device, intelligent terminal and storage medium
WO2023240490A1 (en) * 2022-06-15 2023-12-21 北京小米移动软件有限公司 Method and device for adjusting screen brightness, and storage medium
WO2024234309A1 (en) * 2023-05-16 2024-11-21 京东方科技集团股份有限公司 Terminal, control method therefor, and storage medium

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000754A (en) * 2006-01-10 2007-07-18 明基电通股份有限公司 Display Brightness Adjustment Method
CN101071542A (en) * 2006-05-12 2007-11-14 乐金电子(昆山)电脑有限公司 Display device brightness regulating device and method
CN101847380B (en) * 2009-03-27 2012-07-04 比亚迪股份有限公司 Liquid crystal display device for automatically adjusting luminance and display method thereof
US8907935B2 (en) * 2012-06-08 2014-12-09 Apple Inc. Backlight calibration and control
WO2016112730A1 (en) * 2015-01-15 2016-07-21 小米科技有限责任公司 Method and device for adjusting display brightness
CN105405427A (en) * 2015-12-04 2016-03-16 小米科技有限责任公司 Facility brightness adjustment method and device
TWI568266B (en) * 2016-01-27 2017-01-21 明基電通股份有限公司 Image adjusting method and related displaying apparatus
CN105632447B (en) * 2016-03-31 2018-05-18 青岛海信移动通信技术股份有限公司 The display brightness method of adjustment and device of a kind of liquid crystal display
CN109271014B (en) * 2017-07-18 2022-04-22 华为终端有限公司 Method and equipment for adjusting screen brightness
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
US10997948B2 (en) * 2018-09-21 2021-05-04 Apple Inc. Electronic device with adaptive lighting system
KR20200050283A (en) * 2018-11-01 2020-05-11 삼성전자주식회사 Image display device and operating method for the same
CN110047443B (en) * 2019-04-08 2021-07-13 Oppo广东移动通信有限公司 Backlight brightness adjustment method, device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN112365860A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN112365860B (en) Terminal screen brightness adjusting method, terminal screen brightness adjusting equipment and storage medium
CN109145926B (en) Similar picture identification method and computer equipment
CN107305611B (en) Method and device for establishing model corresponding to malicious account and method and device for identifying malicious account
CN111290916A (en) Big data monitoring method, device and equipment and computer readable storage medium
CN104200249B (en) A kind of method of clothing automatic collocation, apparatus and system
CN106297657A (en) The brightness adjusting method of a kind of AMOLED display screen and terminal
CN105653171A (en) Fingerprint identification based terminal control method, terminal control apparatus and terminal
CN112052784B (en) Method, device, equipment and computer readable storage medium for searching articles
CN116975010B (en) Electronic material library sharing method and system
CN112462990A (en) Image sending method and device and electronic equipment
CN112083854A (en) Application program running method and device
CN113222401A (en) Non-invasive load type intelligent identification method, device, server and system
CN112148171B (en) Interface switching method and device and electronic equipment
CN109271074A (en) Window adjusting method, window adjusting device and mobile terminal
CN112532885A (en) Anti-shake method and device and electronic equipment
CN112270384A (en) Loop detection method and device, electronic equipment and storage medium
CN114069803B (en) Portable emergency energy storage power supply detection method, device, equipment and storage medium
CN105162931B (en) The sorting technique and device of a kind of communicating number
CN113037925B (en) Information processing method, information processing apparatus, electronic device, and readable storage medium
CN111223054A (en) Ultrasonic image evaluation method and device
CN112115182A (en) Time sequence data processing method, device, equipment and storage medium
CN112084151A (en) File processing method and device and electronic equipment
CN110750718A (en) User guiding method, device, equipment and storage medium based on recommendation system
CN113360218B (en) Service scheme selection method, device, equipment and storage medium
CN116084131A (en) Washing machine control method and device, washing machine and storage medium thereof

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