Terminal device control method, device, terminal device and storage medium

Through the nonlinear brightness adjustment mechanism, the brightness drop rate is adjusted according to the display brightness value of the terminal device, which solves the discomfort problem when switching between the terminal device's bright screen to dark screen and improves the user experience.

CN115866133BActive Publication Date: 2025-08-05BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211516578.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-29
Publication Date
2025-08-05
Estimated Expiration
2042-11-29

AI Technical Summary

Technical Problem

In the prior art, when the terminal device switches from the bright screen state to the dark screen state, the display screen brightness decreases at a unified rate, ignoring the actual feeling of light by the human eye, especially in the low brightness period, which leads to discomfort.

Method used

According to the display brightness value of the terminal device, the nonlinear brightness adjustment mechanism is determined. Through the preset correspondence between the target brightness interval, the brightness interval and the brightness adjustment value, combined with the weighted gray value and the weight coefficient, the brightness drop rate is adjusted to achieve nonlinear brightness reduction.

Benefits of technology

During the process of switching the display from the bright screen to the dark screen, nonlinear brightness adjustment relieves the discomfort of the sudden change in brightness on the human eye and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115866133B_ABST
    Figure CN115866133B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a terminal device control method, apparatus, terminal device, and storage medium, wherein the method includes: in response to triggering a terminal device to switch from a bright screen state to a dark screen state, determining a brightness adjustment mechanism according to the display brightness value of the terminal device, wherein the brightness adjustment mechanism is used to control the display brightness value of the terminal device to decrease nonlinearly; and reducing the display brightness value of the terminal device according to the brightness adjustment mechanism to switch the terminal device from the bright screen state to the dark screen state. The purpose of the present disclosure is to provide a terminal device control method, apparatus, terminal device, and storage medium, which can reduce the brightness at different decreasing rates according to different display brightness values during the process of switching the display screen from the bright screen state to the dark screen state, so as to increase the comfort of the human eye.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of terminal devices, and in particular to a terminal device control method, apparatus, terminal device, and storage medium. Background Art

[0002] In related technologies, mobile operating systems all have a timeout screen-off function, that is, when the user and the terminal device do not interact within a specified time, the display screen will automatically switch from a bright screen state to a dark screen state.

[0003] However, in related art, when switching from bright to dark mode, the display brightness decreases linearly. That is, regardless of whether starting from high or low brightness, the display brightness is reduced at a uniform rate. This ignores the human eye's actual perception of light, especially when entering the low-brightness range, which can cause noticeable discomfort to the human eye. Summary of the Invention

[0004] To overcome the problems existing in the related art, the present disclosure provides a terminal device control method, apparatus, terminal device and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a terminal device control method, including:

[0006] In response to triggering the terminal device to switch from a bright screen state to a dark screen state, determining a brightness adjustment mechanism according to a display brightness value of the terminal device, the brightness adjustment mechanism being used to control a nonlinear decrease in the display brightness value of the terminal device;

[0007] The display brightness value of the terminal device is reduced according to the brightness adjustment mechanism to switch the terminal device from the bright screen state to the dark screen state.

[0008] Optionally, determining a brightness adjustment mechanism according to a display brightness value of the terminal device includes:

[0009] Determining a target brightness range according to the display brightness value of the terminal device;

[0010] determining a target brightness adjustment value according to the target brightness interval and a preset correspondence between the brightness interval and the brightness adjustment value;

[0011] The brightness adjustment mechanism is determined using the target brightness adjustment value as the base and the switching time as the index. The switching time is the time interval from the moment when the terminal device is triggered to switch from the bright screen state to the dark screen state to the current moment.

[0012] Optionally, determining a brightness adjustment mechanism according to a display brightness value of the terminal device includes:

[0013] Determining a target brightness interval according to the display brightness value of the terminal device, and determining a target brightness adjustment value according to the target brightness interval and a preset correspondence between the brightness interval and the brightness adjustment value;

[0014] Determining a display image of the terminal device, and determining a weighted grayscale value according to the display image;

[0015] The brightness adjustment mechanism is determined using the target brightness adjustment value as the base and the product of the switching time and the weighted grayscale value as the exponent. The switching time is the time interval from the moment when the terminal device is triggered to switch from the bright screen state to the dark screen state to the current moment.

[0016] Optionally, the method further includes:

[0017] Determining a target weight coefficient based on the displayed brightness value and a preset correspondence between the weight coefficient and the brightness value;

[0018] The determining of the brightness adjustment mechanism using the target brightness adjustment value as a base and the product of the switching time and the weighted grayscale value as an exponent includes:

[0019] The target brightness adjustment value is used as a base, and the product of the switching time and the weighted grayscale value is used as an exponent to determine an initial brightness adjustment value, and the initial brightness adjustment value is multiplied by the target weight coefficient to determine a brightness adjustment mechanism.

[0020] Optionally, determining a weighted grayscale value according to the displayed image includes:

[0021] determining, according to the displayed image, a grayscale image corresponding to the displayed image;

[0022] Determining a grayscale value corresponding to the grayscale image according to the grayscale image;

[0023] For each grayscale value in the grayscale image, the frequency of occurrence of the grayscale value is determined, and the weighted grayscale value is determined based on the frequency of occurrence of each grayscale value and the maximum grayscale value, wherein the maximum grayscale value is used to characterize the maximum grayscale value that the displayed image can reach during the grayscale process.

[0024] Optionally, determining the weighted grayscale value according to the occurrence frequency and maximum grayscale value of each grayscale value includes:

[0025] For each grayscale value in the grayscale image, multiply the grayscale value by its corresponding occurrence frequency to obtain a weight corresponding to the grayscale value;

[0026] All the weights are added together and divided by the maximum grayscale value to obtain the weighted grayscale value.

[0027] According to a second aspect of an embodiment of the present disclosure, there is provided a terminal device control apparatus, including:

[0028] A first determining module is configured to, in response to triggering the terminal device to switch from a bright screen state to a dark screen state, determine a brightness adjustment mechanism according to a display brightness value of the terminal device, wherein the brightness adjustment mechanism is used to control a nonlinear decrease in the display brightness value of the terminal device;

[0029] The control module is configured to reduce the display brightness value of the terminal device according to the brightness adjustment mechanism to switch the terminal device from the bright screen state to the dark screen state.

[0030] Optionally, the first determining module includes:

[0031] a first determining unit configured to determine a target brightness interval according to a display brightness value of the terminal device, and determine a target brightness adjustment value according to the target brightness interval and a preset correspondence between the brightness interval and the brightness adjustment value;

[0032] The second determining unit is configured to determine a brightness adjustment mechanism using the target brightness adjustment value as a base and the switching time as an index.

[0033] Optionally, the first determining module includes:

[0034] a third determining unit configured to determine a target brightness interval according to the display brightness value of the terminal device, and determine a target brightness adjustment value according to the target brightness interval and a preset correspondence between the brightness interval and the brightness adjustment value;

[0035] a fourth determining unit, configured to determine a display image of the terminal device, and determine a weighted grayscale value according to the display image;

[0036] The fifth determination unit is configured to determine the brightness adjustment mechanism with the target brightness adjustment value as the base and the product of the switching time and the weighted grayscale value as the exponent, wherein the switching time is the time interval from the moment when the terminal device is triggered to switch from the bright screen state to the dark screen state to the current moment.

[0037] Optionally, the first determining module further includes:

[0038] a sixth determining unit configured to determine a target weight coefficient according to the display brightness value and a preset correspondence between the weight coefficient and the brightness value;

[0039] Accordingly, the fifth determining unit is configured to:

[0040] The target brightness adjustment value is used as a base, and the product of the switching time and the weighted grayscale value is used as an exponent to determine an initial brightness adjustment value, and the initial brightness adjustment value is multiplied by the target weight coefficient to determine a brightness adjustment mechanism.

[0041] Optionally, the fourth determining unit includes:

[0042] a grayscale image determining unit, configured to determine a grayscale image corresponding to the display image based on the display image;

[0043] a grayscale value determining unit, configured to determine a grayscale value corresponding to the grayscale image based on the grayscale image;

[0044] The weighted grayscale value determination unit is configured to determine the frequency of occurrence of each grayscale value in the grayscale image, and determine the weighted grayscale value based on the frequency of occurrence of each grayscale value and the maximum grayscale value, wherein the maximum grayscale value is used to characterize the maximum grayscale value that the displayed image can reach during the grayscale process.

[0045] Optionally, the weighted grayscale value determining unit includes:

[0046] a weight determination unit configured to, for each grayscale value in the grayscale image, multiply the grayscale value by its corresponding occurrence frequency to obtain a weight corresponding to the grayscale value;

[0047] The calculation unit is configured to add up all the weights and divide the sum by the maximum grayscale value to obtain the weighted grayscale value.

[0048] According to a third aspect of an embodiment of the present disclosure, a terminal device is provided, including:

[0049] processor;

[0050] a memory for storing processor-executable instructions;

[0051] Wherein, the processor is configured to:

[0052] Execute the steps of any one of the methods of the first aspect.

[0053] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the method described in the first aspect of the present disclosure are implemented.

[0054] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:

[0055] When the display screen switches from a bright screen state to a dim screen state, a brightness adjustment mechanism can be determined based on the display brightness value of the terminal device, thereby reducing the display brightness value of the terminal device according to the brightness adjustment mechanism. The brightness adjustment mechanism is used to control the nonlinear reduction of the display brightness value of the terminal device. Therefore, through the above method, when the display screen switches from a bright screen state to a dim screen state, different brightness reduction rates can be adopted according to different display brightness values to increase the comfort of the human eye.

[0056] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0058] Figure 1 is a flow chart showing a method for controlling a terminal device according to an exemplary embodiment;

[0059] Figure 2 is a schematic diagram showing how the brightness of a display value of a terminal device changes over time according to an exemplary embodiment;

[0060] Figure 3 is a block diagram of a terminal device control apparatus according to an exemplary embodiment;

[0061] Figure 4 The present invention is a block diagram showing an apparatus for controlling a terminal device according to an exemplary embodiment. DETAILED DESCRIPTION

[0062] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0063] It should be noted that all actions of acquiring signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located and with the authorization given by the owner of the corresponding device.

[0064] Figure 1 is a flow chart showing a method for controlling a terminal device according to an exemplary embodiment. Figure 1As shown, the method may include the following steps S11 to S12.

[0065] In step S11, in response to triggering the terminal device to switch from a bright screen state to a dark screen state, a brightness adjustment mechanism is determined according to the display brightness value of the terminal device, and the brightness adjustment mechanism is used to control the display brightness value of the terminal device to decrease nonlinearly.

[0066] It should be understood that the terminal device can be any electronic device with a touch screen, such as a smart phone, a tablet computer, or a personal digital assistant, and the embodiments of the present disclosure do not impose any restrictions on this.

[0067] In addition, it should be understood that the bright screen state refers to the state when the terminal device is working normally. It is also the most important state of the terminal device. Most operations are performed in the bright screen state. The dark screen state is a transitional state or intermediate state in which the display automatically switches from the bright screen state to the black screen state (i.e., the locked screen state). That is, in the bright screen state, if the user and the terminal device do not interact within the specified time, the display will automatically switch from the bright screen state to the dark screen state to remind the user that the terminal device is about to lock the screen or enter the black screen state.

[0068] The following is a detailed description of possible implementations of step S11.

[0069] It should be understood that the human eye has two types of visual adaptability: dark adaptation and light adaptation. That is, when entering an environment of a second brightness value from an environment of a first brightness value, if the first brightness value is much larger than the second brightness value, the human eye needs a certain amount of time (generally 30 seconds) to adapt to the environment of the second brightness value. This ability to adapt to a dark environment is called dark adaptation. For example, when you walk from bright sunlight into a theater where a movie is being shown, you will feel pitch black, but after a while, your vision will recover. If the first brightness value is much smaller than the second brightness value, the human eye only needs less time (generally a few seconds) to adapt to the environment of the second brightness value. This ability to adapt to a bright environment is called light adaptation. For example, when you turn on the light in a dark environment, the human eye's vision can recover almost immediately. Therefore, when the display screen switches from a dark screen state to a bright screen state, the human eye can adapt quickly. When the display screen switches from the bright screen state to the dark screen state, since the relevant technology adopts a uniform decrease rate to reduce the display brightness of the display screen, when the display brightness changes, especially in a dark environment, the human eye needs a certain amount of time to adapt to the change in the brightness value. Especially when the brightness value changes significantly, the human eye may even feel obvious discomfort.

[0070] In view of this, the inventors proposed to adopt different decline rates at different brightness values to alleviate the discomfort caused by the sudden change of brightness value. And through a lot of research and experiments, it was found that the human eye has different sensitivities to brightness changes in different brightness ranges. That is, the higher the brightness, the weaker the human eye's perception of brightness changes; the lower the brightness, the stronger the human eye's perception of brightness changes. Therefore, when the display screen switches from a bright screen state to a dark screen state, a faster decline rate can be used to change the brightness in a range with higher brightness values; and a more gentle decline rate can be used to change the brightness in a range with lower brightness values, so as to alleviate the discomfort caused to the human eye by the sudden change of brightness value. Schematically, as shown in Figure 2 As shown, according to Figure 2 It can be seen from the brightness value change curve shown that within the same time, the change value of the high display brightness value interval is greater than the change value of the low display brightness interval.

[0071] Based on the above principles, in a possible implementation, determining a brightness adjustment mechanism according to the display brightness value of the terminal device may include:

[0072] According to the display brightness value of the terminal device, the target brightness range is determined, and according to the target brightness range and the preset correspondence between the brightness range and the brightness adjustment value, the target brightness adjustment value is determined; with the target brightness adjustment value as the base and the switching time as the index, the brightness adjustment mechanism is determined, and the switching time is the time interval from the moment when the terminal device is triggered to switch from the bright screen state to the dark screen state to the current moment.

[0073] Illustratively, the preset correspondence between brightness intervals and brightness adjustment values is shown in Table 1.

[0074] Table 1 Preset correspondence between brightness intervals and brightness adjustment values

[0075] Brightness range [a,b) [b,c) [c,d) Brightness adjustment value <![CDATA[w1]]> <![CDATA[w2]]> <![CDATA[w3]]>

[0076] Wherein, a represents the maximum display brightness value of the terminal device, and d represents the display brightness value of the terminal device in the dark screen state.

[0077] When the terminal device switches from the bright screen state to the dark screen state, if the initial display brightness value of the terminal device is between the brightness interval [a, b), the corresponding target brightness adjustment value is w1. At this time, the corresponding brightness adjustment mechanism is: That is, the moment when the terminal device is triggered to switch from the bright screen state to the dark screen state is used as the starting time (i.e., time 0), and the display brightness value of the terminal device is controlled to change to L1 at t1 seconds. When the display brightness value of the terminal device changes from the brightness interval [a, b) to the brightness interval [b, c), the corresponding target brightness adjustment value is w2, and the corresponding brightness adjustment mechanism is: Where t2>t1. That is, with the moment when the terminal device is triggered to switch from the bright screen state to the dark screen state as the starting time (i.e., time 0), the display brightness value of the terminal device is controlled to change to L2 at t2 seconds. When the display brightness value of the terminal device changes from the brightness interval [b, c) to the brightness interval [c, d), the corresponding target brightness adjustment value is w3, and the corresponding brightness adjustment mechanism is: Wherein, t3>t2. That is, with the moment when the terminal device is triggered to switch from the bright screen state to the dark screen state as the starting moment (i.e., time 0), the display brightness value of the terminal device is controlled to change to L3 within t3 seconds until the display brightness value of the terminal device is equal to the display brightness value of the terminal device in the dark screen state.

[0078] It should be understood that the interval length and interval value of the brightness interval can be set according to actual conditions, and the embodiments of the present disclosure do not impose any restrictions on this. For example, the maximum display brightness value of the terminal device is 1500 nits, and the display brightness value corresponding to the dark screen state is 500 nits. Then, the brightness interval can be divided with 300 nits as the interval length of each brightness interval, and the divided brightness intervals include [1500, 1200), [1200, 900), [900, 600) and [600, 500). Alternatively, the brightness interval can be divided with interval lengths of 500 nits, 300 nits, 100 nits, 100 nits and 50 nits respectively, thereby obtaining 5 brightness intervals, including [1500, 1000), [1000, 700), [700, 600), [600, 550) and [550, 500).

[0079] It should be understood that the image displayed by the terminal device is a color image, which contains brightness information, and different display images contain different brightness information. Therefore, in the process of the terminal device switching from the bright screen state to the dark screen state, if the displayed images are different, even if it is switched from the same initial display brightness value to the dark screen state at the same time, the human eye's perception of the brightness change is different. Therefore, in a possible implementation method, in addition to considering the impact of the brightness change speed on the human eye, the impact of the display content on the human eye during the brightness change process can also be considered. That is, according to one embodiment of the present disclosure, the brightness adjustment mechanism is determined according to the display brightness value of the terminal device, which may include:

[0080] According to the display brightness value of the terminal device, a target brightness interval is determined, and according to the target brightness interval and the preset correspondence between the brightness interval and the brightness adjustment value, a target brightness adjustment value is determined; the display image of the terminal device is determined, and a weighted grayscale value is determined based on the display image; with the target brightness adjustment value as the base and the product of the switching time and the weighted grayscale value as the exponent, a brightness adjustment mechanism is determined, where the switching time is the time interval from the moment when the terminal device is triggered to switch from the bright screen state to the dark screen state to the current moment.

[0081] Schematically, the preset correspondence between the brightness interval and the brightness adjustment value is shown in Table 1 above. The weighted grayscale value determined based on the display image of the terminal device is g. Then, when the terminal device switches from the bright screen state to the dark screen state, if the initial display brightness value of the terminal device is between the brightness interval [b, c), the corresponding target brightness adjustment value is w2. At this time, the corresponding brightness adjustment mechanism is: That is, the moment when the terminal device is triggered to switch from the bright screen state to the dark screen state is used as the starting time (i.e., time 0), and the display brightness value of the terminal device is controlled to change to L4 at t1 seconds. When the display brightness value of the terminal device changes from the brightness interval [b, c) to the brightness interval [c, d), the corresponding target brightness adjustment value is w3, and the corresponding brightness adjustment mechanism is: Wherein, t2>t1. That is, with the moment when the terminal device is triggered to switch from the bright screen state to the dark screen state as the starting moment (ie, time 0), the display brightness value of the terminal device is controlled to change to L5 at t2 seconds.

[0082] It should be understood that a color image contains both brightness information and color information, and color information is not related to the magnitude of the displayed brightness value. Therefore, the color image can be grayscaled to obtain a grayscale image containing only brightness information, and then the grayscale image can be weighted to obtain brightness information that can accurately represent the color image. That is, according to one embodiment of the present disclosure, determining the weighted grayscale value of the displayed image based on the displayed image may include:

[0083] Based on the display image, determine a grayscale image corresponding to the display image; based on the grayscale image, determine a grayscale value corresponding to the grayscale image; for each grayscale value in the grayscale image, determine the frequency of occurrence of the grayscale value, and determine the weighted grayscale value based on the frequency of occurrence of each grayscale value and the maximum grayscale value, the maximum grayscale value being used to characterize the maximum grayscale value that the display image can reach during the grayscale process.

[0084] It should be understood that the grayscale value refers to the color depth of a pixel in a grayscale image, generally ranging from 0 to 255, with white being 255 and black being 0, so the maximum grayscale value is generally 255.

[0085] In a possible implementation, a grayscale image can be obtained by using an average value method. That is, the brightness values of the display image in the red channel, blue channel, and green channel are obtained respectively, and the grayscale image corresponding to the display image is obtained by calculating the average brightness value of the three channels, that is:

[0086] f(i,j)=(R(i,j)+G(i,j)+B(i,j)) / 3

[0087] Among them, f(i, j) represents the grayscale image, R(i, j) represents the brightness value of the red channel, G(i, j) represents the brightness value of the green channel, and B(i, j) represents the brightness value of the blue channel.

[0088] In a possible implementation, a grayscale image can also be obtained by a maximum value method. That is, the brightness values of the display image in the red channel, blue channel, and green channel are obtained respectively, and the maximum brightness value is selected as the grayscale image corresponding to the display image, that is:

[0089] f(i,j)=max(R(i,j),G(i,j),B(i,j))

[0090] Among them, f(i, j) represents the grayscale image, R(i, j) represents the brightness value of the red channel, G(i, j) represents the brightness value of the green channel, and B(i, j) represents the brightness value of the blue channel.

[0091] In a possible implementation, a grayscale image can also be obtained by a weighted average method. That is, the brightness values of the display image in the red channel, blue channel, and green channel are obtained respectively, and the grayscale image corresponding to the display image is obtained by calculating the weighted brightness values of the three channels, that is:

[0092] f(i,j)=0.3R(i,j)+0.5G(i,j)+0.11B(i,j)

[0093] Among them, f(i, j) represents the grayscale image, R(i, j) represents the brightness value of the red channel, G(i, j) represents the brightness value of the green channel, and B(i, j) represents the brightness value of the blue channel.

[0094] After obtaining the grayscale image, the weighted grayscale value can be obtained by counting the frequency of occurrence of each grayscale value in the grayscale image. That is, according to one embodiment of the present disclosure, determining the weighted grayscale value based on the frequency of occurrence of each grayscale value and the maximum grayscale value includes:

[0095] For each grayscale value in the grayscale image, multiply the grayscale value by its corresponding occurrence frequency to obtain a weight corresponding to the grayscale value; add all the weights and divide the sum by the maximum grayscale value to obtain the weighted grayscale value.

[0096] Schematically, if i represents the gray value, d i Represents the frequency of occurrence of gray value i. When the gray value range is [0, 255], the weighted gray value can be calculated by the following formula:

[0097]

[0098] Where g represents the weighted grayscale value.

[0099] In addition, it should be understood that due to individual differences and different environments, different individuals have different perceptions of brightness changes. Therefore, in a possible implementation, multiple tests can be conducted with different individuals under the same conditions to determine the weight coefficients of the rate of decrease in different brightness intervals. The rate of decrease of the display brightness value is adjusted by the weight coefficients, so that the terminal device can further increase the comfort of the human eye when switching from the same display brightness value to the dark screen state. That is, according to one embodiment of the present disclosure, the method further includes:

[0100] Determining a target weight coefficient based on the display brightness value and a preset correspondence between the weight coefficient and the brightness value; determining a brightness adjustment mechanism using the target brightness adjustment value as a base and the product of the switching time and the weighted grayscale value as an exponent, including:

[0101] The target brightness adjustment value is used as a base, and the product of the switching time and the weighted grayscale value is used as an exponent to determine an initial brightness adjustment value, and the initial brightness adjustment value is multiplied by the target weight coefficient to determine a brightness adjustment mechanism.

[0102] Schematically, the weighted grayscale value determined according to the display image of the terminal device is g, the preset correspondence between the brightness interval and the brightness adjustment value is shown in Table 1, and the preset correspondence between the weight coefficient and the brightness value is shown in Table 2.

[0103] Table 2 Preset correspondence between brightness intervals and weight coefficients

[0104] Brightness range [a,b) [b,c) [c,d) Weight coefficient <![CDATA[l1]]> <![CDATA[l2]]> <![CDATA[l3]]>

[0105] When the terminal device switches from the bright screen state to the dark screen state, if the initial display brightness value of the terminal device is between the brightness interval [b, c), the corresponding target brightness adjustment value is w2, and the corresponding weight coefficient is l2. At this time, the corresponding brightness adjustment mechanism is: That is, the moment when the terminal device is triggered to switch from the bright screen state to the dark screen state is used as the starting time (i.e., time 0), and the display brightness value of the terminal device is controlled to change to L6 at t1 seconds. When the display brightness value of the terminal device changes from the brightness interval [b, c) to the brightness interval [c, d), the corresponding target brightness adjustment value is w3, and the corresponding weight coefficient is l3. At this time, the corresponding brightness adjustment mechanism is: Wherein, t2>t1. That is, with the moment when the terminal device is triggered to switch from the bright screen state to the dark screen state as the starting moment (ie, time 0), the display brightness value of the terminal device is controlled to change to L7 at t2 seconds.

[0106] In step S12, the display brightness value of the terminal device is reduced according to the brightness adjustment mechanism to switch the terminal device from the bright screen state to the dark screen state.

[0107] In summary, the above-described terminal device control method monitors the display brightness value of the display screen in real time during the process of switching from the bright screen state to the dark screen state, and adjusts the rate of decrease of the display brightness value according to the display brightness value. Through the above-described method, when the display screen switches from the bright screen state to the dark screen state, different rate of decrease of the display brightness value can be used to change the brightness, thereby alleviating the discomfort caused by the sudden change in brightness to the human eye.

[0108] Figure 3 FIG1 is a block diagram of a terminal device control apparatus according to an exemplary embodiment. Figure 3 , the terminal device control device 300 includes:

[0109] A first determining module 310 is configured to, in response to triggering a terminal device to switch from a bright screen state to a dark screen state, determine a brightness adjustment mechanism according to a display brightness value of the terminal device, the brightness adjustment mechanism being used to control a nonlinear decrease in the display brightness value of the terminal device;

[0110] The control module 320 is configured to reduce the display brightness value of the terminal device according to the brightness adjustment mechanism to switch the terminal device from the bright screen state to the dark screen state.

[0111] In summary, the terminal device control device described above monitors the display brightness value of the display screen in real time during the process of switching from a bright screen state to a dark screen state, and adjusts the rate at which the display brightness value decreases according to the display brightness value. Through the above method, the brightness of the display screen can be changed at different rate of decrease according to different display brightness values during the process of switching from a bright screen state to a dark screen state, thereby alleviating the discomfort caused by the sudden brightness change to the human eye.

[0112] Optionally, the first determining module 310 includes:

[0113] a first determining unit configured to determine a target brightness interval according to a display brightness value of the terminal device, and determine a target brightness adjustment value according to the target brightness interval and a preset correspondence between the brightness interval and the brightness adjustment value;

[0114] The second determining unit is configured to determine a brightness adjustment mechanism using the target brightness adjustment value as a base and the switching time as an index.

[0115] Optionally, the first determining module 310 includes:

[0116] a third determining unit configured to determine a target brightness interval according to the display brightness value of the terminal device, and determine a target brightness adjustment value according to the target brightness interval and a preset correspondence between the brightness interval and the brightness adjustment value;

[0117] a fourth determining unit, configured to determine a display image of the terminal device, and determine a weighted grayscale value according to the display image;

[0118] The fifth determination unit is configured to determine the brightness adjustment mechanism with the target brightness adjustment value as the base and the product of the switching time and the weighted grayscale value as the exponent, wherein the switching time is the time interval from the moment when the terminal device is triggered to switch from the bright screen state to the dark screen state to the current moment.

[0119] Optionally, the first determining module 310 further includes:

[0120] a sixth determining unit configured to determine a target weight coefficient according to the display brightness value and a preset correspondence between the weight coefficient and the brightness value;

[0121] Accordingly, the fifth determining unit is configured to:

[0122] The target brightness adjustment value is used as a base, and the product of the switching time and the weighted grayscale value is used as an exponent to determine an initial brightness adjustment value, and the initial brightness adjustment value is multiplied by the target weight coefficient to determine a brightness adjustment mechanism.

[0123] Optionally, the fourth determining unit includes:

[0124] a grayscale image determining unit, configured to determine a grayscale image corresponding to the display image based on the display image;

[0125] a grayscale value determining unit, configured to determine a grayscale value corresponding to the grayscale image based on the grayscale image;

[0126] The weighted grayscale value determination unit is configured to determine the frequency of occurrence of each grayscale value in the grayscale image, and determine the weighted grayscale value based on the frequency of occurrence of each grayscale value and the maximum grayscale value, wherein the maximum grayscale value is used to characterize the maximum grayscale value that the displayed image can reach during the grayscale process.

[0127] Optionally, the weighted grayscale value determining unit includes:

[0128] a weight determination unit configured to, for each grayscale value in the grayscale image, multiply the grayscale value by its corresponding occurrence frequency to obtain a weight corresponding to the grayscale value;

[0129] The calculation unit is configured to add up all the weights and divide the sum by the maximum grayscale value to obtain the weighted grayscale value.

[0130] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0131] The present disclosure also provides a terminal device, comprising a processor and a memory for storing processor-executable instructions; wherein the processor is configured to execute the steps of the terminal device control method provided by the present disclosure.

[0132] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, which implement the steps of the terminal device control method provided by the present disclosure when the program instructions are executed by a processor.

[0133] Figure 4 FIG4 is a block diagram of an apparatus for controlling a terminal device according to an exemplary embodiment. For example, the apparatus 400 may be a smart phone, a tablet computer, or a personal digital assistant.

[0134] Reference Figure 4 , apparatus 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output interface 412 , a sensor component 414 , and a communication component 416 .

[0135] Processing component 402 generally controls the overall operation of device 400, such as operations associated with display, phone calls, data communications, camera operation, and recording. Processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the terminal device control method described above. In addition, processing component 402 may include one or more modules to facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402.

[0136] The memory 404 is configured to store various types of data to support operations on the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0137] The power supply component 406 provides power to the various components of the device 400. The power supply component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 400.

[0138] The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0139] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC) that is configured to receive external audio signals when the device 400 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

[0140] The input / output interface 412 provides an interface between the processing component 402 and peripheral interface modules, such as a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0141] The sensor assembly 414 includes one or more sensors for providing various aspects of the status assessment of the device 400. For example, the sensor assembly 414 can detect the open / closed state of the device 400, the relative positioning of components, such as the display and keypad of the device 400. The sensor assembly 414 can also detect changes in the position of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration / deceleration of the device 400, and temperature changes of the device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0142] The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and other devices. The device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0143] In an exemplary embodiment, the device 400 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned terminal device control method.

[0144] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is further provided, such as a memory 404 including instructions. The instructions can be executed by the processor 420 of the apparatus 400 to implement the terminal device control method described above. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0145] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above-mentioned terminal device control method when executed by the programmable device.

[0146] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0147] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A terminal device control method, characterized in that: include: In response to triggering the terminal device to switch from a bright screen state to a dark screen state, determining a target brightness interval according to a display brightness value of the terminal device, and determining a target brightness adjustment value according to the target brightness interval and a preset correspondence between the brightness interval and the brightness adjustment value; Determine a brightness adjustment mechanism using the target brightness adjustment value as a base and the switching time as an exponent, or determine a display image of the terminal device and determine a weighted grayscale value based on the display image, determine a brightness adjustment mechanism using the target brightness adjustment value as a base and the product of the switching time and the weighted grayscale value as an exponent, where the switching time is the time interval from the moment when the terminal device is triggered to switch from the bright screen state to the dark screen state to the current moment; The display brightness value of the terminal device is reduced according to the brightness adjustment mechanism to switch the terminal device from the bright screen state to the dark screen state.

2. The method according to claim 1, characterized in that The method further comprises: Determining a target weight coefficient based on the displayed brightness value and a preset correspondence between the weight coefficient and the brightness value; The determining of the brightness adjustment mechanism using the target brightness adjustment value as a base and the product of the switching time and the weighted grayscale value as an exponent includes: The target brightness adjustment value is used as a base, and the product of the switching time and the weighted grayscale value is used as an exponent to determine an initial brightness adjustment value, and the initial brightness adjustment value is multiplied by the target weight coefficient to determine a brightness adjustment mechanism.

3. The method according to claim 1, characterized in that Determining a weighted grayscale value according to the displayed image includes: determining, according to the displayed image, a grayscale image corresponding to the displayed image; Determining a grayscale value corresponding to the grayscale image according to the grayscale image; For each grayscale value in the grayscale image, the frequency of occurrence of the grayscale value is determined, and the weighted grayscale value is determined based on the frequency of occurrence of each grayscale value and the maximum grayscale value, wherein the maximum grayscale value is used to characterize the maximum grayscale value that the displayed image can reach during the grayscale process.

4. The method according to claim 3, characterized in that Determining the weighted grayscale value according to the occurrence frequency of each grayscale value and the maximum grayscale value includes: For each grayscale value in the grayscale image, multiply the grayscale value by its corresponding occurrence frequency to obtain a weight corresponding to the grayscale value; All the weights are added together and divided by the maximum grayscale value to obtain the weighted grayscale value.

5. A terminal device control device, characterized in that: include: a first determining module configured to, in response to triggering the terminal device to switch from a bright screen state to a dark screen state, determine a target brightness interval according to a display brightness value of the terminal device, and determine a target brightness adjustment value according to the target brightness interval and a preset correspondence between the brightness interval and the brightness adjustment value; a second determining unit, configured to determine a brightness adjustment mechanism using the target brightness adjustment value as a base and the switching time as an exponent, or configured to determine a display image of the terminal device and determine a weighted grayscale value based on the display image, using the target brightness adjustment value as a base and the product of the switching time and the weighted grayscale value as an exponent to determine the brightness adjustment mechanism, where the switching time is a time interval from a moment when the terminal device is triggered to switch from the bright screen state to the dark screen state to a current moment; The control module is configured to reduce the display brightness value of the terminal device according to the brightness adjustment mechanism to switch the terminal device from the bright screen state to the dark screen state.

6. A terminal device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: Execute the steps of the method according to any one of claims 1 to 4.

7. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Screen brightness adjusting method and terminal

    CN106603856A

  • Method and apparatus for controlling terminal usage duration, and electronic device

    WO2017166613A1