CN113270061A - Display brightness adjusting method, device, terminal and storage medium - Google Patents

Display brightness adjusting method, device, terminal and storage medium Download PDF

Info

Publication number
CN113270061A
CN113270061A CN202110554112.1A CN202110554112A CN113270061A CN 113270061 A CN113270061 A CN 113270061A CN 202110554112 A CN202110554112 A CN 202110554112A CN 113270061 A CN113270061 A CN 113270061A
Authority
CN
China
Prior art keywords
brightness
display brightness
terminal
difference value
display
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
CN202110554112.1A
Other languages
Chinese (zh)
Other versions
CN113270061B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110554112.1A priority Critical patent/CN113270061B/en
Publication of CN113270061A publication Critical patent/CN113270061A/en
Application granted granted Critical
Publication of CN113270061B publication Critical patent/CN113270061B/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
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness

Landscapes

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

Abstract

The application provides a method, a device, a terminal and a storage medium for adjusting display brightness, wherein the method for adjusting the display brightness comprises the following steps: when detecting that a terminal re-enters a target application, acquiring a first display brightness of the terminal and a preset brightness difference value corresponding to the target application, wherein the first display brightness is a brightness which is automatically configured at present by the terminal, the preset brightness difference value is a difference value between a preset display brightness and a second display brightness of the terminal, the preset display brightness is a total brightness amount of the terminal which is manually adjusted by a user when the target application exits, and the second display brightness is a brightness which is automatically configured by the terminal when the target application exits; and adjusting the display brightness of the terminal to the target display brightness according to the preset brightness difference value and the first display brightness. The method for adjusting the display brightness can improve the adjustment accuracy of the display brightness when the user reenters the application.

Description

Display brightness adjusting method, device, terminal and storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method and an apparatus for adjusting display brightness, a terminal, and a storage medium.
Background
Along with the development of terminal technology, the luminance control technique has appeared, and present terminal all possesses the light sensor for thereby detect the display luminance of light luminance automatic adjustment screen around, guarantee to satisfy user's naked eye visibility and comfort level.
At present, when a user enters an application, the display brightness under the application is consistent with the display brightness automatically adjusted by the terminal, but the visibility and the comfort of the naked eye of the user are not necessarily satisfactory, so the user can also manually adjust the display brightness. And when the user exits the application or switches to other applications and then enters the application again, the display brightness under the application is adjusted to be consistent with the display brightness automatically adjusted by the terminal.
However, each time the application is re-entered, the display brightness under the application is adjusted to be consistent with the display brightness automatically adjusted by the terminal, so that the adjustment of the display brightness is not accurate enough.
Disclosure of Invention
The embodiment of the application provides a method, a device, a terminal and a storage medium for adjusting display brightness, and the accuracy of adjusting the display brightness can be improved when a user reenters an application.
A method for adjusting display brightness comprises the following steps:
when detecting that a terminal re-enters a target application, acquiring a first display brightness of the terminal and a preset brightness difference value corresponding to the target application, wherein the first display brightness is a brightness which is automatically configured at present by the terminal, the preset brightness difference value is a difference value between a preset display brightness and a second display brightness of the terminal, the preset display brightness is a total brightness amount of the terminal which is manually adjusted by a user when the target application exits, and the second display brightness is a brightness which is automatically configured by the terminal when the target application exits;
and adjusting the display brightness of the terminal to the target display brightness according to the preset brightness difference value and the first display brightness.
An adjusting apparatus for display brightness, comprising:
the terminal comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first display brightness of the terminal and a preset brightness difference value corresponding to a target application when the terminal is detected to re-enter the target application, the first display brightness is the brightness which is automatically configured at present by the terminal, the preset brightness difference value is the difference value between the preset display brightness and a second display brightness of the terminal, the preset display brightness is the total brightness of the terminal which is manually adjusted by a user when the target application exits, and the second display brightness is the brightness which is automatically configured by the terminal when the target application exits;
and the adjusting module is used for adjusting the display brightness of the terminal to the target display brightness according to the preset brightness difference value and the first display brightness.
A terminal comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the method as described above.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as described above.
The method, the device, the terminal and the storage medium for adjusting the display brightness comprise the following steps: when the terminal is detected to re-enter the target application, the first display brightness of the terminal and the preset brightness difference value corresponding to the target application can be obtained, so that the display brightness of the terminal is adjusted to the target display brightness according to the preset brightness difference value and the first display brightness, namely when the user re-enters the application, the brightness of the terminal is adjusted manually by the user when the application exits is referred to on the basis of automatic brightness adjustment of the terminal, the obtained target display brightness is more accurate, and the adjustment accuracy of the display brightness is improved when the user re-enters the application. In addition, the brightness does not need to be manually adjusted again by the user under the application, and the adjustment efficiency of the display brightness is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a terminal according to an embodiment;
fig. 2 is a flowchart illustrating a method for adjusting display brightness according to an embodiment;
fig. 3 is a schematic diagram illustrating a user manually adjusting the display brightness of the terminal to a preset display brightness according to an embodiment;
fig. 4 is a flowchart illustrating a refinement for obtaining a preset luminance difference according to an embodiment;
FIG. 5 is a flowchart illustrating another method for adjusting display brightness according to an embodiment;
FIG. 6 is a flowchart illustrating another method for adjusting display brightness according to an embodiment;
FIG. 7 is a diagram illustrating a scenario for prompting a user whether to adjust according to an embodiment;
fig. 8 is a schematic structural diagram of an adjusting apparatus for displaying luminance according to an embodiment;
fig. 9 is a schematic diagram of the internal structure of the terminal in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, the first luminance difference value may be referred to as a second luminance difference value, and similarly, the second luminance difference value may be referred to as a first luminance difference value without departing from the scope of the present application. The first luminance difference value and the second luminance difference value are both luminance difference values, but are not the same luminance difference value.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a terminal according to an embodiment. In one embodiment, a light sensor is embedded in the terminal, and the light sensor is used for detecting the light intensity around the terminal so as to automatically adjust the display brightness of the screen of the terminal. It should be noted that the terminal of the present embodiment includes, but is not limited to, any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and a wearable device.
For example, the display brightness of the terminal and the light intensity detected by the light sensor can be shown in the following table:
intensity of light sensing Automatically configured display brightness
[0,200) 25
[200,400) 55
[400,1000) 70
[1000,3000) 90
[3000, infinity) 250
Accordingly, the terminal can automatically configure a display brightness according to the current light intensity through the corresponding relationship between the light intensity and the display brightness shown in the table above, so that the display brightness of the terminal is adjusted to the display brightness corresponding to the current light intensity.
It is to be understood that the corresponding relationship between the light intensity and the display brightness is not limited to the above relationship, and different corresponding relationships between the light intensity and the display brightness may be configured as required, and is not limited herein. In addition, the method for automatically adjusting the display brightness of the terminal is not limited to adjustment through the corresponding relationship between the light intensity and the display brightness, as long as the method can automatically adjust the display brightness of the terminal according to the current light intensity.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for adjusting display brightness according to an embodiment. In an embodiment, as shown in fig. 2, a method for adjusting display brightness is provided, and this embodiment is illustrated by applying the method to a terminal, it is to be understood that the method may also be applied to a server, and may also be applied to a system including a terminal and a server, and is implemented by interaction between the terminal and the server. In this embodiment, the method includes steps 210 to 220.
Step 210, when it is detected that the terminal re-enters the target application, obtaining a first display brightness of the terminal and a preset brightness difference corresponding to the target application, where the first display brightness is a brightness currently and automatically configured by the terminal, the preset brightness difference is a difference between a preset display brightness and a second display brightness of the terminal, the preset display brightness is a total brightness amount of the terminal manually adjusted by a user when the target application exits, and the second display brightness is a brightness automatically configured by the terminal when the target application exits.
The target application refers to an application program selected to enter by a user on the terminal. The first display brightness is display brightness which is automatically configured by the terminal according to the current light intensity sensed by the light sensor when the terminal enters a target application. The second display brightness is the display brightness which is automatically configured by the terminal according to the light intensity of the target application when the target application exits. And presetting display brightness as the total brightness of the terminal manually adjusted by a user when the target application exits. It should be noted that the preset brightness difference may be a negative value or a positive value, and is determined according to the actual adjustment condition of the user. Specifically, if the user feels that the display brightness automatically adjusted by the terminal is too dark, the display brightness needs to be adjusted to a brighter degree, and at this time, the preset brightness difference value is a positive value; if the user feels that the display brightness automatically adjusted by the terminal is too bright, the display brightness needs to be adjusted to a darker degree, and at the moment, the preset brightness difference value is a negative value.
In this embodiment, the target application exits, which may be the case that the user makes the target application enter the background, or the case that the user directly closes the application.
And step 220, adjusting the display brightness of the terminal to the target display brightness according to the preset brightness difference value and the first display brightness.
The target display brightness refers to the display brightness determined according to the preset brightness difference value and the first display brightness, and the terminal adjusts the display brightness to the target display brightness. In this step, since the target display brightness is obtained according to the preset brightness difference and the first display brightness, the target display brightness is closer to the viewing habit of the user when the target display brightness is compared with the display brightness automatically configured at the terminal. Optionally, if the preset brightness difference value is a positive value, the target display brightness is greater than the first display brightness; if the preset brightness difference value is a negative value, the target display brightness is smaller than the first display brightness; and if the preset brightness difference value is zero, the target display brightness is the first display brightness.
In this embodiment, when the user reenters the target application, the first display brightness of the terminal and the preset brightness difference corresponding to the target application may be obtained, so that the display brightness of the terminal is adjusted to the target display brightness according to the preset brightness difference and the first display brightness, that is, when the user reenters the application, the obtained target display brightness is more accurate with reference to the brightness of the terminal manually adjusted by the user when the application exits on the basis of the automatic brightness adjustment of the terminal, and the adjustment accuracy of the display brightness is improved when the user reenters the application. In addition, the brightness does not need to be manually adjusted again by the user under the application, and the adjustment efficiency of the display brightness is improved.
It will be appreciated that the method of the above embodiment is applicable to situations where the target application is not first opened.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating that a user manually adjusts the display brightness of the terminal to a preset display brightness according to an embodiment. As shown in fig. 3, during the use of the application program by the user, L1 is the display brightness automatically adjusted by the terminal, and since the user feels that the visibility and the comfort are not enough, the display brightness is adjusted to the preset display brightness L2, and the preset brightness difference Δ L is L2-L1. And when the user exits the application program, the target application and the preset brightness difference value are stored in an associated manner. When the user re-enters the target application, the first display brightness L3 automatically configured by the terminal is obtained, so that the display brightness of the terminal is adjusted to the target display brightness according to the first display brightness L3 and the preset brightness difference Δ L.
Referring to fig. 4, fig. 4 is a flowchart illustrating a refinement for obtaining a preset luminance difference according to an embodiment. In one embodiment, as shown in fig. 4, the step of obtaining the preset brightness difference value corresponding to the target application includes steps 410 to 430.
Step 410, reading a pre-stored configuration table, wherein the configuration table comprises at least one corresponding relationship between the application identifier and the brightness difference value.
The configuration table is obtained according to a history record of manual brightness adjustment of a user and is used for obtaining a preset brightness difference value. Specifically, the configuration table includes at least one correspondence between the application identifier and the luminance difference value. The application identification refers to an identification representing the identity of the target application. Generally, the application identifiers should have uniqueness, and the corresponding application identifiers of different applications should be different from each other. Alternatively, the application identifier may be an application name, for example, the application identifier is an application name such as "WeChat", "Tencent video", or the like. In addition, each application may be assigned a number, such as WeChat labeled "001", Tencent labeled "002", and so on. It should be noted that, the application identifier may be configured for the application according to needs, and this embodiment is not limited. For example, in this embodiment, an application identifier is taken as an example of an application name, and a schematic diagram of a configuration table is provided, as shown in the following table:
application identification Difference in brightness
WeChat △L1
Tencent video △L2
Step 420, searching the target application identifier consistent with the application identifier corresponding to the target application from the configuration table.
And the target application identification is consistent with the application identification corresponding to the target application. For example, if the opened application is WeChat, the "WeChat" in the configuration table is the target application identifier of the embodiment.
And step 430, taking the brightness difference value corresponding to the target application identifier as the preset brightness difference value.
In this step, for example, if the target application identifier is "WeChat", the preset luminance difference is Δ L1
In this embodiment, in the process of obtaining the preset brightness difference corresponding to the target application, the preset brightness difference is obtained through a pre-stored configuration table, and obtaining the preset brightness difference can be achieved without too much calculation power. In addition, the configuration table is obtained according to the historical record of the manual brightness adjustment of the user, so that the use habit of the user is accurately recorded, and the obtained preset brightness difference value is more accurate.
Referring to fig. 5, fig. 5 is a flowchart illustrating another method for adjusting display brightness according to an embodiment. In the present embodiment, it is adapted to perform a pre-determination process before reading the configuration table. In one embodiment, the method for adjusting the display brightness includes steps 510 to 530.
Step 510, determining whether the target application is one of the applications in the brightness adjustment white list.
The brightness adjustment white list is provided with an application capable of performing brightness adjustment, and the application set in the brightness adjustment white list can perform adjustment of display brightness by the methods of the above embodiments.
Specifically, in the process of actually using the application program, it is not necessary that all application programs on the terminal are adjusted by using the adjustment method of the embodiment, and only a specific application program needs to be adjusted by using the adjustment method of the embodiment, and the application program that needs to be adjusted is added to the brightness adjustment white list. For example, if a user needs a customary display brightness when watching a video, an application program related to video playing can be configured in the brightness adjustment white list.
In this step, it is determined whether the target application is one of the applications in the brightness adjustment whitelist. If yes, go to step 520; if not, go to step 530.
And step 520, reading a pre-stored configuration table to adjust the display brightness of the terminal to the target display brightness according to the preset brightness difference and the first display brightness.
In this step, if the target application is one of the applications in the brightness adjustment white list, reading a pre-stored configuration table, so as to adjust the display brightness of the terminal according to the preset brightness difference value and the first brightness difference value. The step of how to obtain the preset brightness through the configuration table may refer to the description of any of the above embodiments, and the embodiment is not limited thereto.
Step 530, obtaining a first display brightness of the terminal, and adjusting the display brightness of the terminal to the first display brightness.
In this step, if the target application is not one of the applications in the brightness adjustment white list, the display brightness of the terminal is adjusted to the first display brightness.
In this embodiment, before reading the configuration table, it is determined whether the target application is one of the applications in the brightness adjustment white list, and if so, the configuration table is obtained, thereby avoiding wasting effort by directly searching the target application identifier from the configuration table. In addition, different application programs can be configured into the white list according to needs by adjusting the white list through the brightness, and compatibility is achieved.
In one embodiment, only step 510 to step 520 may be included.
It will be appreciated that the blacklist may also be used, and applications that do not require tuning may be configured into the blacklist.
It should be noted that, since the user does not necessarily perform the display brightness adjustment only once during the use of the target application, the configuration table needs to be updated by continuously detecting the latest display brightness adjusted by the user. In one embodiment, the method for adjusting display brightness of the present embodiment further includes:
continuously detecting the adjustment operation of manually adjusting the display brightness of the user in the process of using the target application by the user;
and when the adjustment operation of the user is detected, storing the difference value between the latest display brightness adjusted by the user and the second display brightness and the application identifier corresponding to the target application into the configuration table in an associated manner.
The adjustment operation is an operation of manually adjusting the display brightness by the user. If the adjustment operation of the user is detected, the difference value between the latest display brightness adjusted by the user and the second display brightness is used as the latest preset brightness difference value, so that the latest preset brightness difference value and the target application identifier are stored in the configuration table in an associated mode, the preset brightness difference value in the configuration table is updated, the preset brightness difference value is made to be consistent with the habit of the user as much as possible, and the accuracy of the adjustment of the display brightness is guaranteed.
It is to be understood that, before storing the difference between the latest display brightness adjusted by the user and the second display brightness and the application identifier association corresponding to the target application into the configuration table, it may also be determined whether the target application is one of the brightness adjustment white lists, and if so, the difference between the latest display brightness adjusted by the user and the second display brightness and the application identifier association corresponding to the target application are stored into the configuration table.
Before storing the difference value between the latest display brightness adjusted by the user and the second display brightness and the application identifier corresponding to the target application in the configuration table in an associated manner, determining whether the target application is one of the applications in the brightness adjustment white list, and if so, storing the difference value between the latest display brightness adjusted by the user and the second display brightness and the application identifier corresponding to the target application in the configuration table in an associated manner, so that the data volume occupied by the configuration table can be reduced, and the time for searching the preset brightness difference value is also reduced.
Referring to fig. 6, fig. 6 is a flowchart illustrating another method for adjusting display brightness according to an embodiment. The embodiment is suitable for the scene that the display brightness of the terminal is adjusted to the target display brightness after the unification of the user. In one embodiment, as shown in fig. 6, another method for adjusting display brightness is provided, which includes steps 610 to 640.
Step 610, when it is detected that the terminal re-enters the target application, obtaining a first display brightness of the terminal and a preset brightness difference corresponding to the target application, where the first display brightness is a brightness currently and automatically configured by the terminal, the preset brightness difference is a difference between a preset display brightness and a second display brightness of the terminal, the preset display brightness is a total brightness amount of the terminal manually adjusted by a user when the target application exits, and the second display brightness is a brightness automatically configured by the terminal when the target application exits.
This step may refer to the description of any of the above embodiments, which is not repeated herein.
And step 620, prompting a user whether to adjust the display brightness of the terminal to the target display brightness.
In this step, the manner of prompting the user includes, but is not limited to, voice prompt, pop-up box prompt, etc., and is not limited herein. For example, if the user performs the frame flipping prompt, the user may be prompted whether to adjust the display brightness or not by displaying a word such as "whether to adjust the display brightness to the brightness manually adjusted last time" on the terminal; if through voice prompt, then can whether adjust the user through voice broadcast "whether will show brightness adjustment to the brightness of last manual adjustment" sound such as.
Step 630, responding to the result of the user selection adjustment, and adjusting the display brightness of the terminal to the target display brightness according to the preset brightness difference value and the first display brightness.
In this step, if the user selects adjustment, the display brightness of the terminal is adjusted to the target display brightness according to the preset brightness difference value and the first display brightness difference value.
And step 640, responding to the result that the user selects not to adjust, clearing the corresponding relation between the application identifier corresponding to the target application and the brightness difference value in the configuration table, and adjusting the display brightness of the terminal to the first display brightness.
In this step, if the user chooses not to adjust, the corresponding relationship between the application identifier corresponding to the target application and the brightness difference value in the configuration table is cleared, and the display brightness of the terminal is adjusted to the first display brightness. By clearing the corresponding relation between the application identifier corresponding to the target application and the brightness difference value in the configuration table, the data volume occupied by the configuration table can be reduced.
In one embodiment, the method for adjusting the display brightness may include only steps 610 to 630.
Referring to fig. 7, fig. 7 is a schematic view of a scenario for prompting a user whether to adjust according to an embodiment. In one embodiment, as shown in fig. 7, if the user selects "√" then the display brightness of the terminal is adjusted to the target display brightness based on the preset brightness difference and the first display brightness difference; and if the user selects the x, clearing the corresponding relation between the application identifier corresponding to the target application and the brightness difference value in the configuration table, and adjusting the display brightness of the terminal to the first display brightness.
The following describes how to adjust the display brightness of the terminal to the target display brightness according to the preset brightness difference and the first display brightness.
In one embodiment, the step 220 of adjusting the display brightness of the terminal to the target display brightness according to the preset brightness difference and the first display brightness includes:
and taking the sum of the preset brightness difference value and the first display brightness as the target display brightness, and adjusting the display brightness of the terminal to the target display brightness.
In this embodiment, for example, the first display brightness is L3, and the preset brightness difference is Δ L, then the target display brightness is L3+ Δl.
It can be understood that, the target display brightness of the embodiment is a sum of the display brightness and a preset brightness difference, and even if the difference between the first light intensity of the periphery when the user exits the application and the second light intensity of the periphery when the user reenters the application is larger, the accuracy of the display brightness adjustment can be further improved by determining the target display brightness adjustment mode through the preset brightness difference.
In one embodiment, the step 220 of adjusting the display brightness of the terminal to the target display brightness according to the preset brightness difference and the first display brightness includes:
determining a target brightness difference value according to the preset brightness difference value, wherein the target brightness difference value is the product of the preset brightness difference value and a weight factor, the weight factor is positively correlated with an automatically configured brightness difference, and the automatically configured brightness difference is the difference value between the first display brightness and the second display brightness;
and taking the sum of the target brightness difference and the first display brightness as the target display brightness, and adjusting the display brightness of the terminal to the target display brightness.
Illustratively, the weighting factor is 1+ (L3-L1)/L3, and the target display luminance is [1+ (L3-L1)/L3] × Δ L + L3, where L3 represents the first display luminance, L1 represents the second display luminance, and Δ L represents the preset luminance difference.
In this embodiment, the target brightness difference is determined according to the preset brightness difference, so that the sum of the target brightness difference and the first display brightness is used as the target display brightness, and the obtained target display brightness refers to the difference between the first display brightness and the second display brightness, so that even if the difference between the peripheral second light intensities is large when the user reenters the application, the final target display brightness can be compensated to a certain extent, and the display brightness adjustment accuracy is further improved.
In one embodiment, the step 220 of adjusting the display brightness of the terminal to the target display brightness according to the preset brightness difference and the first display brightness includes:
determining whether a first brightness difference value corresponding to the first display brightness exists in the target application;
if so, taking the first brightness difference value as the preset brightness difference value;
and if the preset brightness difference value does not exist, taking one of other brightness difference values as the preset brightness difference value, wherein the other brightness difference values are brightness difference values except the first brightness difference value in the brightness difference values corresponding to the target application.
In this embodiment, because the light intensity around the terminal may affect the viewing experience of the user, for the same application program, if the light intensity around the terminal is different, the brightness manually adjusted by the user is different, and the corresponding preset brightness difference values are different, that is, for the same application program, the preset brightness difference values corresponding to different light intensities around the terminal are also different. Therefore, when the display brightness of the terminal is adjusted, whether the target application has a first brightness difference value corresponding to the first display brightness is determined, if yes, the first brightness difference value is used as the preset brightness difference value, and the obtained target display brightness is more accurate. And if the brightness difference value does not exist, taking one of the other brightness difference values as the preset brightness difference value.
In one embodiment, taking one of the other luminance difference values as the preset luminance difference value includes:
acquiring second display brightness corresponding to each other brightness difference value;
determining a second brightness difference value between the second display brightness corresponding to each other brightness difference value and the first display brightness;
and taking the other brightness difference value corresponding to the minimum second brightness difference value as the preset brightness difference value.
In this embodiment, the second display brightness corresponding to each of the other brightness difference values is obtained, the second brightness difference value between the second display brightness corresponding to each of the other brightness difference values and the first display brightness is determined, and the other brightness difference value corresponding to the smallest second brightness difference value is used as the preset brightness difference value, so that the obtained preset brightness difference value is more accurate.
In one embodiment, the step of obtaining the second display brightness corresponding to each of the other brightness difference values may be obtained by a configuration table. Specifically, the brightness difference obtained by each manual adjustment by the user and the corresponding second display brightness are stored in the configuration table in an associated manner, so that the second display brightness corresponding to each other brightness difference can be obtained through the configuration table. Illustratively, the configuration table may be referred to as follows:
application identification Automatically configured display brightness Difference in brightness
WeChat L31 △L11
WeChat L32 △L12
Illustratively, if the second display is displayedIf the luminance L31 is consistent with the first display luminance L1, Δ L will be11As a preset brightness difference value; if the L31 and the L32 are not consistent with the first display luminance L1, the difference between L31 and L1 and the difference between L32 and L1 are calculated respectively, and the luminance difference corresponding to the minimum difference is taken as the preset luminance difference. For example, if the difference between L31 and L1 is less than the difference between L32 and L1, Δ L will be11As a preset luminance difference value.
In one embodiment, optionally, one of the other luminance difference values is used as the preset luminance difference value, and the last stored luminance difference value may also be used as the preset luminance difference value.
It is understood that if one of the other luminance difference values is taken as the preset luminance difference value, the setting may be performed as needed, and the embodiment is not limited.
It should be understood that although the various steps in the flowcharts of fig. 2, 4-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2, 4-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an adjusting apparatus for displaying luminance according to an embodiment. In one embodiment, an apparatus for adjusting display brightness is provided, which includes an obtaining module 810 and an adjusting module 820, wherein:
the obtaining module 810 is configured to, when it is detected that a terminal re-enters a target application, obtain a first display brightness of the terminal and a preset brightness difference corresponding to the target application, where the first display brightness is a brightness currently and automatically configured by the terminal, the preset brightness difference is a difference between a preset display brightness and a second display brightness of the terminal, the preset display brightness is a total brightness amount of the terminal manually adjusted by a user when the target application exits, and the second display brightness is a brightness automatically configured by the terminal when the target application exits;
the adjusting module 820 is configured to adjust the display brightness of the terminal to a target display brightness according to the preset brightness difference and the first display brightness.
In one embodiment, the obtaining module 810 includes:
the reading unit is used for reading a pre-stored configuration table, and the configuration table comprises at least one corresponding relation between an application identifier and a brightness difference value;
the searching unit is used for searching a target application identifier which is consistent with the application identifier corresponding to the target application from the configuration table; and taking the brightness difference value corresponding to the target application identifier as the preset brightness difference value.
In one embodiment, the apparatus further comprises:
an identification module for determining whether the target application is one of a brightness adjustment white list;
the reading module is further configured to read a pre-stored configuration table if the target application is one of the applications in the brightness adjustment white list, so as to adjust the display brightness of the terminal to the target display brightness according to the preset brightness difference value and the first display brightness.
In one embodiment, the adjusting module 820 is further configured to obtain a first display brightness of the terminal if the application is not one of the applications in the brightness adjustment white list, and adjust the display brightness of the terminal to the first display brightness.
In one embodiment, the apparatus further comprises:
the adjusting operation detection module is used for continuously detecting the adjusting operation of manually adjusting the display brightness of the user in the process that the user uses the target application;
and the storage module is used for storing the difference value between the latest display brightness adjusted by the user and the second display brightness and the application identifier corresponding to the target application into the configuration table in an associated manner when the adjustment operation of the user is detected.
In one embodiment, the apparatus further comprises:
the prompting module is used for prompting a user whether to adjust the display brightness of the terminal to the target display brightness;
the adjusting module 820 is further configured to adjust the display brightness of the terminal to a target display brightness according to the preset brightness difference and the first display brightness in response to a result of the user selection adjustment.
In an embodiment, the adjusting module 820 is further configured to, in response to a result that the user selects not to adjust, clear the corresponding relationship between the application identifier and the brightness difference value corresponding to the target application in the configuration table, and adjust the display brightness of the terminal to the first display brightness.
In one embodiment, the adjustment module 820 includes:
and the first adjusting unit is used for taking the sum of the preset brightness difference value and the first display brightness as the target display brightness and adjusting the display brightness of the terminal to the target display brightness.
In one embodiment, the adjustment module 820 includes:
a second adjusting unit, configured to determine a target brightness difference according to the preset brightness difference, where the target brightness difference is a product of the preset brightness difference and a weight factor, the weight factor is positively correlated with an automatically configured brightness difference, and the automatically configured brightness difference is a difference between the first display brightness and the second display brightness;
and taking the sum of the target brightness difference and the first display brightness as the target display brightness, and adjusting the display brightness of the terminal to the target display brightness.
In one embodiment, the adjustment module 820 includes:
a brightness difference value determining unit, configured to determine whether a first brightness difference value corresponding to the first display brightness exists in the target application;
the third adjusting unit is used for taking the first brightness difference value as the preset brightness difference value if the first brightness difference value corresponding to the first display brightness exists;
and if the first brightness difference value corresponding to the first display brightness does not exist, taking one of other brightness difference values as the preset brightness difference value, wherein the other brightness difference values are brightness difference values except the first brightness difference value in the brightness difference values corresponding to the target application.
In an embodiment, the third adjusting unit is specifically configured to determine a second luminance difference value between the second display luminance corresponding to each of the other luminance difference values and the first display luminance;
and taking the other brightness difference value corresponding to the minimum second brightness difference value as the preset brightness difference value.
The division of each module in the above-mentioned adjusting device for display brightness is merely used for illustration, in other embodiments, the adjusting device for display brightness may be divided into different modules as required to complete all or part of the functions of the above-mentioned adjusting device for display brightness.
For specific limitations of the adjusting device for the display brightness, reference may be made to the above limitations of the adjusting method for the display brightness, and details are not described here. The modules in the above display brightness adjusting device can be wholly or partially realized by software, hardware and their combination. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 9 is a schematic diagram of the internal structure of the terminal in one embodiment. As shown in fig. 9, the terminal includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole terminal. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement a method for adjusting display brightness provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The terminal may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and a wearable device.
The implementation of each module in the device for adjusting display brightness provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. The program modules constituted by the computer program may be stored on the memory of the terminal. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the method for adjusting display brightness.
A computer program product containing instructions which, when run on a computer, cause the computer to perform a method of adjusting display brightness.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (14)

1. A method for adjusting display brightness, comprising:
when detecting that a terminal re-enters a target application, acquiring a first display brightness of the terminal and a preset brightness difference value corresponding to the target application, wherein the first display brightness is a brightness which is automatically configured at present by the terminal, the preset brightness difference value is a difference value between a preset display brightness and a second display brightness of the terminal, the preset display brightness is a total brightness amount of the terminal which is manually adjusted by a user when the target application exits, and the second display brightness is a brightness which is automatically configured by the terminal when the target application exits;
and adjusting the display brightness of the terminal to the target display brightness according to the preset brightness difference value and the first display brightness.
2. The method according to claim 1, wherein the step of obtaining the preset brightness difference value corresponding to the target application comprises:
reading a pre-stored configuration table, wherein the configuration table comprises at least one corresponding relation between an application identifier and a brightness difference value;
searching a target application identifier consistent with the application identifier corresponding to the target application from the configuration table;
and taking the brightness difference value corresponding to the target application identifier as the preset brightness difference value.
3. The method of claim 2, prior to said reading a pre-stored configuration table, comprising:
determining whether the target application is one of the applications in a brightness adjustment white list;
and if so, reading a pre-stored configuration table to adjust the display brightness of the terminal to the target display brightness according to the preset brightness difference value and the first display brightness.
4. The method of claim 3, further comprising:
if not, acquiring a first display brightness of the terminal, and adjusting the display brightness of the terminal to the first display brightness.
5. The method of claim 2, further comprising:
continuously detecting the adjustment operation of manually adjusting the display brightness of the user in the process of using the target application by the user;
and when the adjustment operation of the user is detected, storing the difference value between the latest display brightness adjusted by the user and the second display brightness and the application identifier corresponding to the target application into the configuration table in an associated manner.
6. The method according to claim 1, wherein before the adjusting the display brightness of the terminal to the target display brightness according to the preset brightness difference and the first display brightness, the method comprises:
prompting a user whether to adjust the display brightness of the terminal to the target display brightness;
and responding to the result of the user selection adjustment, and adjusting the display brightness of the terminal to the target display brightness according to the preset brightness difference value and the first display brightness.
7. The method of claim 6, further comprising:
and responding to the result that the user selects not to adjust, clearing the corresponding relation between the application identifier corresponding to the target application and the brightness difference value in the configuration table, and adjusting the display brightness of the terminal to the first display brightness.
8. The method according to any one of claims 1 to 7, wherein the adjusting the display brightness of the terminal to the target display brightness according to the preset brightness difference and the first display brightness comprises:
and taking the sum of the preset brightness difference value and the first display brightness as the target display brightness, and adjusting the display brightness of the terminal to the target display brightness.
9. The method according to any one of claims 1 to 7, wherein the adjusting the display brightness of the terminal to the target display brightness according to the preset brightness difference and the first display brightness comprises:
determining a target brightness difference value according to the preset brightness difference value, wherein the target brightness difference value is the product of the preset brightness difference value and a weight factor, the weight factor is positively correlated with an automatically configured brightness difference, and the automatically configured brightness difference is the difference value between the first display brightness and the second display brightness;
and taking the sum of the target brightness difference and the first display brightness as the target display brightness, and adjusting the display brightness of the terminal to the target display brightness.
10. The method according to any one of claims 1 to 7, wherein the adjusting the display brightness of the terminal to the target display brightness according to the preset brightness difference and the first display brightness comprises:
determining whether a first brightness difference value corresponding to the first display brightness exists in the target application;
if so, taking the first brightness difference value as the preset brightness difference value;
and if the preset brightness difference value does not exist, taking one of other brightness difference values as the preset brightness difference value, wherein the other brightness difference values are brightness difference values except the first brightness difference value in the brightness difference values corresponding to the target application.
11. The method according to claim 10, wherein the using one of the other luminance difference values as the preset luminance difference value comprises:
acquiring second display brightness corresponding to each other brightness difference value;
determining a second brightness difference value between the second display brightness corresponding to each other brightness difference value and the first display brightness;
and taking the other brightness difference value corresponding to the minimum second brightness difference value as the preset brightness difference value.
12. An apparatus for adjusting display brightness, comprising:
the terminal comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first display brightness of the terminal and a preset brightness difference value corresponding to a target application when the terminal is detected to re-enter the target application, the first display brightness is the brightness which is automatically configured at present by the terminal, the preset brightness difference value is the difference value between the preset display brightness and a second display brightness of the terminal, the preset display brightness is the total brightness of the terminal which is manually adjusted by a user when the target application exits, and the second display brightness is the brightness which is automatically configured by the terminal when the target application exits;
and the adjusting module is used for adjusting the display brightness of the terminal to the target display brightness according to the preset brightness difference value and the first display brightness.
13. A terminal comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 11.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 11.
CN202110554112.1A 2021-05-20 2021-05-20 Display brightness adjusting method, device, terminal and storage medium Active CN113270061B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110554112.1A CN113270061B (en) 2021-05-20 2021-05-20 Display brightness adjusting method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110554112.1A CN113270061B (en) 2021-05-20 2021-05-20 Display brightness adjusting method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN113270061A true CN113270061A (en) 2021-08-17
CN113270061B CN113270061B (en) 2023-03-28

Family

ID=77232208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110554112.1A Active CN113270061B (en) 2021-05-20 2021-05-20 Display brightness adjusting method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113270061B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150356948A1 (en) * 2014-06-06 2015-12-10 Amtran Technology Co., Ltd. Method for calibrating luminance, method for displaying image and display device
CN106157932A (en) * 2016-06-28 2016-11-23 广东欧珀移动通信有限公司 The control method of screen intensity and device
CN106357918A (en) * 2016-09-30 2017-01-25 维沃移动通信有限公司 Method for adjusting screen brightness and mobile terminal
CN108510964A (en) * 2018-04-19 2018-09-07 Oppo广东移动通信有限公司 Screen intensity adjustable range method of adjustment, device, terminal and storage medium
CN108810264A (en) * 2018-05-29 2018-11-13 努比亚技术有限公司 A kind of brightness adjusting method and terminal, computer readable storage medium
CN110417999A (en) * 2019-07-26 2019-11-05 努比亚技术有限公司 Screen luminance adjustment method, mobile terminal and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150356948A1 (en) * 2014-06-06 2015-12-10 Amtran Technology Co., Ltd. Method for calibrating luminance, method for displaying image and display device
CN106157932A (en) * 2016-06-28 2016-11-23 广东欧珀移动通信有限公司 The control method of screen intensity and device
CN106357918A (en) * 2016-09-30 2017-01-25 维沃移动通信有限公司 Method for adjusting screen brightness and mobile terminal
CN108510964A (en) * 2018-04-19 2018-09-07 Oppo广东移动通信有限公司 Screen intensity adjustable range method of adjustment, device, terminal and storage medium
CN108810264A (en) * 2018-05-29 2018-11-13 努比亚技术有限公司 A kind of brightness adjusting method and terminal, computer readable storage medium
CN110417999A (en) * 2019-07-26 2019-11-05 努比亚技术有限公司 Screen luminance adjustment method, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN113270061B (en) 2023-03-28

Similar Documents

Publication Publication Date Title
CN110782468B (en) Training method and device of image segmentation model and image segmentation method and device
CN109951627B (en) Image processing method, image processing device, storage medium and electronic equipment
CN108418920B (en) Intelligent terminal and control method thereof
CN104618588A (en) Method for regulating terminal screen brightness
CN109272917B (en) Screen brightness adjusting method and device, storage medium and electronic equipment
CN107690804B (en) Image processing method and user terminal
CN108983456B (en) Method and device for detecting light leakage of display screen
CN106548765A (en) Screen luminance adjustment method and device
CN106598388A (en) Mobile terminal and screen display method and system thereof
US10923072B2 (en) Method and device for displaying non-standard resolution data
CN108230979B (en) Display parameter adjusting method of display screen, electronic equipment and storage medium
CN113270061B (en) Display brightness adjusting method, device, terminal and storage medium
CN104298548A (en) Information processing method and electronic device
CN114612946A (en) Exposure method, electronic device, storage medium, and program product
CN112667914B (en) Content matrix display method, device and system based on neural network
CN112951162B (en) Display screen and control method and device thereof
CN114217841A (en) Application program control method and device, electronic equipment and readable storage medium
CN108763906B (en) Biological feature recognition method and device
CN104035655B (en) The method and device that control character input method is shown
CN115313530A (en) Method and device for determining battery state, electronic equipment and storage medium
CN111325148A (en) Method, device and equipment for processing remote sensing image and storage medium
CN114816196B (en) Method and device for adjusting screen brightness of folding screen terminal, terminal and storage medium
CN114738936B (en) Air conditioner control method, device, electronic equipment and readable storage medium
CN115842961B (en) Image adjustment method and device, electronic equipment and computer readable storage medium
CN112711643B (en) Training sample set acquisition method and device, electronic equipment and storage medium

Legal Events

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