Display brightness processing method, device, mobile terminal and storage medium

By installing a light sensor under the display screen of the mobile terminal, the light sensing value and light leakage value are obtained, the ambient brightness value is determined whether the ambient brightness value is abnormal, and the switching speed of the backlight level is adjusted, the problem of inaccurate light leakage detection of the under-screen light sensor is solved, and the accuracy of display brightness adjustment and user experience are improved.

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

Patent Information

Application Number
CN202110336784.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-29
Publication Date
2025-08-12
Estimated Expiration
2041-03-29

AI Technical Summary

Technical Problem

In the prior art, when detecting the ambient brightness of the under-screen light sensor, due to the many variable factors in the light leakage prediction model, the light leakage detection is inaccurate, affecting the accuracy of the display screen brightness adjustment.

Method used

By installing a first light sensor under the display screen of the mobile terminal, the light sensing value and the light leakage value are obtained, and whether the ambient brightness value is abnormal is determined, and the switching speed of the backlight level is adjusted when abnormal is abnormal, so as to improve the accuracy of brightness adjustment.

Benefits of technology

It effectively reduces the inaccuracy of light leakage prediction model caused by improper switching speed, improves the accuracy of display backlight level adjustment, and improves user visual experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115148158B_ABST
    Figure CN115148158B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method, device, mobile terminal, and storage medium for processing display brightness. The method includes: obtaining a first light sensing value reported by a first light sensor when the display screen of the mobile terminal is in an adaptive ambient brightness adjustment mode, wherein the first light sensor is located below the display screen of the mobile terminal; determining a light leakage value of the display screen based on a current backlight level; determining a first ambient brightness value based on the first light sensing value and the light leakage value; determining whether the first ambient brightness value is abnormal; and if the first ambient brightness value is abnormal, adjusting a switching speed for adjusting the backlight level of the display screen based on the ambient brightness. In this way, the accuracy of adjusting the backlight level of the mobile terminal based on the ambient brightness can be improved, thereby enhancing the user's visual experience of the mobile terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electronic technology, and in particular to a method and device for processing display brightness, a mobile terminal, and a storage medium. Background Art

[0002] Mobile terminals (such as mobile phones and tablet computers) detect ambient brightness through built-in light sensors to adjust the display brightness of the mobile terminal's display screen in real time according to the ambient brightness.

[0003] In related technologies, for under-screen light sensors, the light sensor will take the light leakage of the screen into consideration when reporting detection data, because it can accurately obtain the ambient brightness. However, in some scenarios, since the light leakage prediction model in the light leakage detection has more variable factors, the light leakage detection of the screen will not be accurate, resulting in inaccurate ambient brightness, which in turn affects the subsequent automatic brightness adjustment effect based on the ambient brightness. Summary of the Invention

[0004] Embodiments of the present application provide a screen display control method, device, mobile terminal, and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a method for processing display brightness is provided, which is applied to a mobile terminal and includes:

[0006] When the display screen of the mobile terminal is in an adaptive ambient brightness adjustment mode, obtaining a first light sensing value reported by a first light sensor, wherein the first light sensor is located below the display screen of the mobile terminal; and determining a light leakage value of the display screen according to a current backlight level;

[0007] determining the first ambient brightness value according to the first light sensing value and the light leakage value;

[0008] determining whether the first ambient brightness value is abnormal;

[0009] If the first ambient brightness value is abnormal, a switching speed of adjusting the backlight level of the display screen based on the ambient brightness is adjusted.

[0010] Optionally, determining the light leakage value of the display screen according to the current backlight level includes:

[0011] The light leakage value is predicted according to the current backlight level and a light leakage prediction model, wherein the light leakage prediction model includes: a corresponding relationship between the backlight level and the light leakage value.

[0012] Optionally, determining whether the first ambient brightness value is abnormal includes:

[0013] determining whether the first ambient brightness value is abnormal based on a difference between the first light sensing values corresponding to two adjacent detection moments of the first light sensor;

[0014] and / or,

[0015] Whether the first ambient brightness value is abnormal is determined according to a difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor.

[0016] Optionally, determining whether the first ambient brightness value is abnormal according to a difference between the first light sensing values corresponding to two adjacent detection moments of the first light sensor includes:

[0017] If the difference between the first light sensing values corresponding to two adjacent detection moments of the first light sensor is greater than a first difference threshold, it is determined that the first ambient brightness value is abnormal.

[0018] Optionally, determining whether the first ambient brightness value is abnormal according to a difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor includes:

[0019] If the difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor is greater than a second difference threshold, it is determined that the first ambient brightness value is abnormal.

[0020] Optionally, determining whether the first ambient brightness value is abnormal includes:

[0021] determining a second light sensing value of a second light sensor, wherein the second light sensor is located on a side of the mobile terminal opposite to the display screen;

[0022] If the difference between the second light sensing value and the first ambient brightness value is greater than a third difference threshold, it is determined that the first ambient brightness value is abnormal.

[0023] Optionally, the method further includes:

[0024] detecting a posture of the mobile terminal;

[0025] The determining of the second light sensing value of the second light sensor includes:

[0026] If the posture of the mobile terminal is a preset posture, the second light sensing value of the second light sensor is determined.

[0027] Optionally, if the first ambient brightness value is abnormal, adjusting a switching speed of adjusting a backlight level of the display screen based on the ambient brightness includes:

[0028] If the first environment brightness value is abnormal, determining an abnormal scene corresponding to the abnormal first environment brightness value according to abnormal characteristics of the abnormal first environment brightness value;

[0029] The switching speed is adjusted according to the abnormal scenario.

[0030] Optionally, adjusting the switching speed according to the abnormal scenario includes:

[0031] Determining, according to the abnormal scene, a first backlight level corresponding to the abnormal scene;

[0032] determining a current second backlight level of the display screen;

[0033] The switching speed is adjusted according to the first backlight level and the second backlight level.

[0034] Optionally, adjusting the switching speed according to the first backlight level and the second backlight level includes:

[0035] determining a first switching speed corresponding to the first backlight level and the second backlight level according to the first backlight level and the second backlight level, wherein the first switching speed is a pre-established constant speed corresponding to the first backlight level and the second backlight level;

[0036] The switching speed is adjusted to the first switching speed.

[0037] Optionally, adjusting the switching speed according to the first backlight level and the second backlight level includes:

[0038] determining, according to the first backlight level and the second backlight level, a second switching speed corresponding to the first backlight level and the second backlight level, wherein the second switching speed is a pre-established initial speed for adaptive adjustment corresponding to the first backlight level and the second backlight level;

[0039] using the second switching speed and determining, according to the light leakage prediction model, whether the second ambient brightness value is the third ambient brightness value, wherein the third ambient brightness value is the ambient brightness value corresponding to the first backlight level;

[0040] If the second ambient brightness value is not the third ambient brightness value, adjusting the second switching speed until the second ambient brightness value determined according to the light leakage prediction model is the third ambient brightness value;

[0041] The switching speed is adjusted to the second switching speed corresponding to the third ambient brightness value when the second ambient brightness value determined by the light leakage prediction model is equal to the second ambient brightness value.

[0042] Optionally, the method further includes:

[0043] The display screen is adjusted to the first backlight level according to the adjusted switching speed.

[0044] Optionally, the method further includes:

[0045] If the ambient brightness value is normal, the switching speed of adjusting the backlight level of the display screen based on the ambient brightness is maintained.

[0046] According to a second aspect of an embodiment of the present disclosure, a display brightness processing device is provided, which is applied to a mobile terminal and includes:

[0047] an acquisition module, configured to acquire a first light sensing value on a first light sensor when the display screen of the mobile terminal is in an adaptive ambient brightness adjustment mode, wherein the first light sensor is located below the display screen of the mobile terminal; and determine a light leakage value of the display screen according to a current backlight level;

[0048] a first determining module, configured to determine the first ambient brightness value according to the first light sensing value and the light leakage value;

[0049] A second determining module is used to determine whether the first environment brightness value is abnormal;

[0050] The first adjustment module is configured to adjust a switching speed of a backlight level of the display screen based on the ambient brightness if the first ambient brightness value is abnormal.

[0051] Optionally, the acquisition module is further configured to:

[0052] The light leakage value is predicted according to the current backlight level and a light leakage prediction model, wherein the light leakage prediction model includes: a corresponding relationship between the backlight level and the light leakage value.

[0053] Optionally, the second determining module is further configured to:

[0054] determining whether the first ambient brightness value is abnormal based on a difference between the first light sensing values corresponding to two adjacent detection moments of the first light sensor;

[0055] and / or,

[0056] Whether the first ambient brightness value is abnormal is determined according to a difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor.

[0057] Optionally, the second determining module is further specifically configured to:

[0058] If a difference between the first light sensing values corresponding to two adjacent detection moments of the first light sensor is greater than a first difference threshold, it is determined that the first ambient brightness value is abnormal.

[0059] Optionally, the second determining module is further specifically configured to:

[0060] If the difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor is greater than a second difference threshold, it is determined that the first ambient brightness value is abnormal.

[0061] Optionally, the second determining module is further configured to:

[0062] determining a second light sensing value of a second light sensor, wherein the second light sensor is located on a side of the mobile terminal opposite to the display screen;

[0063] If the difference between the second light sensing value and the first ambient brightness value is greater than a third difference threshold, it is determined that the first ambient brightness value is abnormal.

[0064] Optionally, the device further comprises:

[0065] A detection module, configured to detect the posture of the mobile terminal;

[0066] The second determining module is further configured to:

[0067] If the posture of the mobile terminal is a preset posture, the second light sensing value of the second light sensor is determined.

[0068] Optionally, the first adjustment module is further configured to:

[0069] If the first environment brightness value is abnormal, determining an abnormal scene corresponding to the abnormal first environment brightness value according to abnormal characteristics of the abnormal first environment brightness value;

[0070] The switching speed is adjusted according to the abnormal scenario.

[0071] Optionally, the first adjustment module is further configured to:

[0072] Determining, according to the abnormal scene, a first backlight level corresponding to the abnormal scene;

[0073] determining a current second backlight level of the display screen;

[0074] The switching speed is adjusted according to the first backlight level and the second backlight level.

[0075] Optionally, the first adjustment module is further configured to:

[0076] determining a first switching speed corresponding to the first backlight level and the second backlight level according to the first backlight level and the second backlight level, wherein the first switching speed is a pre-established constant speed corresponding to the first backlight level and the second backlight level;

[0077] The switching speed is adjusted to the first switching speed.

[0078] Optionally, the first adjustment module is further configured to:

[0079] determining, according to the first backlight level and the second backlight level, a second switching speed corresponding to the first backlight level and the second backlight level, wherein the second switching speed is a pre-established initial speed for adaptive adjustment corresponding to the first backlight level and the second backlight level;

[0080] using the second switching speed and determining, according to the light leakage prediction model, whether the second ambient brightness value is the third ambient brightness value, wherein the third ambient brightness value is the ambient brightness value corresponding to the first backlight level;

[0081] If the second ambient brightness value is not the third ambient brightness value, adjusting the second switching speed until the second ambient brightness value determined according to the light leakage prediction model is the third ambient brightness value;

[0082] The switching speed is adjusted to the second switching speed corresponding to the third ambient brightness value determined by the light leakage prediction model.

[0083] Optionally, the device further comprises:

[0084] The second adjustment module is configured to adjust the display screen to the first backlight level according to the adjusted switching speed.

[0085] Optionally, the device further comprises:

[0086] If the ambient brightness value is normal, the switching speed of adjusting the backlight level of the display screen based on the ambient brightness is maintained.

[0087] According to a third aspect of an embodiment of the present disclosure, there is provided a mobile terminal, including:

[0088] processor;

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

[0090] The processor is configured to implement any of the above-described method steps when executed.

[0091] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, on which a computer program is stored, and the program is executed by a processor to implement any of the method steps described above.

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

[0093] In an embodiment of the present disclosure, when a mobile terminal's display screen is in an adaptive ambient brightness adjustment mode, a first light sensing value reported by a first light sensor is obtained, wherein the first light sensor is located below the mobile terminal's display screen; the first light sensing value includes a first ambient brightness value and a light leakage value of the display screen; the first ambient brightness value is determined based on the first light sensing value and the light leakage value; the first ambient brightness value is determined; whether the first ambient brightness value is abnormal is determined; and if the first ambient brightness value is abnormal, the switching speed of adjusting the backlight level of the display screen based on the ambient brightness is adjusted. In this way, when the first ambient brightness value is abnormal, the backlight level of the display screen is adjusted at a more appropriate switching speed for adjusting the backlight level of the display screen based on the ambient brightness, thereby reducing the phenomenon of inaccurate light leakage values predicted by the light leakage prediction model due to too fast or too slow switching speeds, thereby reducing the phenomenon of inaccurate first ambient brightness values obtained based on such inaccurate light leakage values, and further reducing the phenomenon of inaccurate backlight levels adjusted based on such inaccurate first ambient brightness values. In this way, the accuracy of the mobile terminal's backlight level adjustment based on the ambient brightness can be improved, and problems such as poor visual experience caused by inaccurate backlight level adjustment can be reduced.

[0094] 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

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

[0096] Figure 1 is a flow chart showing a method for processing display brightness according to an exemplary embodiment;

[0097] Figure 2 is a schematic diagram showing standard spectral responses detected by each channel of a light sensor according to an exemplary embodiment;

[0098] Figure 3 is another schematic diagram showing spectral responses detected by each channel of a light sensor according to an exemplary embodiment;

[0099] Figure 4is a schematic diagram of a spectrum function according to an exemplary embodiment;

[0100] Figure 5 is a schematic diagram showing the convolution result of spectral response and spectral function according to an exemplary embodiment;

[0101] Figure 6 is a schematic diagram showing time domain characteristics of each color light emitted by a display screen according to an exemplary embodiment;

[0102] Figure 7 is a schematic diagram showing frequency domain characteristics of the spectral refresh rate of a display screen according to an exemplary embodiment;

[0103] Figure 8 is a schematic diagram showing corresponding changes in backlight level and switching speed according to an exemplary embodiment;

[0104] Figure 9 is a block diagram of a device for processing display brightness according to an exemplary embodiment;

[0105] Figure 10 It is a block diagram of a mobile terminal according to an exemplary embodiment. DETAILED DESCRIPTION

[0106] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. In the following description, when referring to the drawings, like numbers in different figures represent like 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 invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present invention, as detailed in the appended claims.

[0107] The application scenario of the embodiment of the present disclosure is that when a mobile terminal such as a mobile phone automatically adjusts the brightness of the display screen, the ambient brightness sensed by the light sensor is used as a reference. If the ambient brightness is high, the display screen brightness is increased, and if the ambient brightness is low, the display screen brightness is correspondingly decreased. In the related art, for some mobile terminals such as full-screen mobile phones, it is necessary to install a light sensor under the display screen. Because this type of light sensor receives external ambient light and also receives leakage light from the display screen, when detecting external ambient light, for example, a leakage light prediction model is used to predict the leakage light value of the display screen, and then the external ambient light is calculated based on the detection value detected by the light sensor and the leakage light value. However, in some scenarios, the obtained display screen leakage light value is inaccurate, which will cause the ambient brightness calculated based on the leakage light value to be inaccurate, and further cause the adjusted display screen backlight level to be inaccurate during the process of automatically adjusting the display screen brightness of the mobile terminal. For example, when the ambient brightness is lowest, the corresponding backlight level does not reach the lowest level, which will cause the display screen to be more dazzling when the ambient brightness is lowest.

[0108] Figure 1 FIG. 1 is a flow chart showing a method for processing display brightness according to an exemplary embodiment. Figure 1 As shown, the method is applied to a mobile terminal, and the method includes the following steps:

[0109] Step 101: When the display screen of the mobile terminal is in an adaptive ambient brightness adjustment mode, obtaining a first light sensing value reported by a first light sensor, wherein the first light sensor is located below the display screen of the mobile terminal; and determining a light leakage value of the display screen according to a current backlight level;

[0110] Step 102: Determine the first ambient brightness value according to the first light sensing value and the light leakage value;

[0111] Step 103: Determine whether the first ambient brightness value is abnormal;

[0112] Step 104: If the first ambient brightness value is abnormal, adjust the switching speed of the backlight level of the display screen based on the ambient brightness.

[0113] Here, the mobile terminal may include at least one of a mobile phone, a tablet computer, and a wearable device. The wearable device may be a smartwatch or a smart bracelet. In short, the mobile terminal described in this embodiment refers to any mobile terminal with a display screen. Here, the display screen may be an LCD screen. In some embodiments, the display screen may be an OLED screen.

[0114] Here, the first light sensor can be a sensor located below the display screen inside the mobile terminal for detecting the ambient brightness value. Since the first light sensor is located below the display screen, the first light sensor detects not only the external ambient brightness value, but also the light emitted by the display screen itself, which is hereinafter referred to as the light leakage value.

[0115] It is understandable that since the light leakage value is the light emitted by the display screen itself, there is a corresponding relationship between the light leakage value and the backlight level. In this way, the mobile terminal can determine the light leakage value of the display screen according to the current backlight level.

[0116] It should be noted that the mobile terminal can directly read the current backlight level from the system.

[0117] In some embodiments, determining the light leakage value of the display screen according to the current backlight level includes:

[0118] The light leakage value is predicted according to the current backlight level and a light leakage prediction model, wherein the light leakage prediction model includes: a corresponding relationship between the backlight level and the light leakage value.

[0119] In this way, by pre-establishing a light leakage prediction model in the system, the light leakage value of the display screen can be easily predicted, and then the first ambient brightness value can be calculated.

[0120] For example, the actual external environment brightness value, that is, the first environment brightness value, can be obtained by the under-screen highlight algorithm. In the under-screen highlight algorithm:

[0121] Step 1: The first light sensor detects ambient light through each channel, obtaining the spectral response of each color of light corresponding to each channel. Spectral response refers to the relationship between the quantum efficiency of the photocathode and the incident wavelength, indicating the solar cell's ability to convert varying incident light energy into electrical energy. The spectral response obtained by the first light sensor here reflects the first light sensor's ability to convert the light collected by each channel into an electrical signal.

[0122] See also Figure 2 , Figure 2 FIG. 1 is a schematic diagram showing a standard spectral response detected by each channel of a light sensor according to an exemplary embodiment. Figure 2 As shown, the first light sensor can detect a transparent channel, a red light channel, a green light channel, a blue light channel, a light leakage channel, a broadband channel, an infrared light channel 1, and an infrared light channel 2.

[0123] For example, this embodiment takes the spectral response detected by the transparent channel, red light channel, green light channel and blue light channel of the first light sensor as an example, see Figure 3 , Figure 3is another schematic diagram showing the spectral response detected by each channel of the light sensor according to an exemplary embodiment. Figure 3 As shown, the first curve 31 represents the response curve of the transparent channel, the second curve 32 represents the red light channel, the third curve 33 represents the green light channel, and the fourth curve 34 represents the blue light channel. The spectral response of each channel can be expressed by expression (1):

[0124] F i (λ); i=C / R / G / B (1)

[0125] Among them, λ represents the wavelength, C represents the transparent channel, R represents the red light channel, G represents the green light channel, and B represents the blue light channel.

[0126] The second step is to determine the spectral function, where the spectral function can be expressed by expression (2):

[0127] F j (λ); j = 1.2.3......n (2)

[0128] Here, the spectral function refers to the spectral light efficiency function. The spectral light efficiency function describes the human eye's perception of different wavelengths of radiation within the visible spectrum range of 380 to 780 nm under photopic vision conditions. For all colors of light of equal energy, the human eye perceives yellow-green as the brightest, followed by violet, blue, and red as the darkest. The human eye's varying perception of different colors of light can be characterized by the spectral light efficiency function and represented by a spectral light efficiency curve.

[0129] For example, see Figure 4 , Figure 4 is a schematic diagram of a spectrum function according to an exemplary embodiment, such as Figure 4 As shown, different curves represent different spectral functions of the same color light. It should be noted that different color lights can be detected by different channels of the light sensor.

[0130] The third step is to perform convolution operation on the spectral response detected by each channel and the spectral function to obtain the operation result R of each channel. ij , where the convolution operation can be expressed by expression (3):

[0131]

[0132] In fact, the collected light energy is obtained by performing a convolution operation on the spectral response and the spectral function. The result of the convolution operation is expressed as the area of each channel. The larger the area, the more electrical energy is converted by the first light sensor, and the smaller the area, the less electrical energy is converted by the first light sensor.

[0133] For example, see Figure 5 , Figure 5 is a schematic diagram showing the convolution result of spectral response and spectral function according to an exemplary embodiment, as shown in FIG. Figure 5 As shown, the first area 51 represents the convolution result of the transparent channel, the second area 52 represents the convolution result of the red channel, the third area 53 represents the convolution result of the green channel, and the fourth area 54 represents the convolution result of the blue channel.

[0134] In the fourth step, the first light sensor also collects the light emitted by the display screen. In the following, the OLED display screen is used as an example. The spectral and temporal characteristics of the light emitted by the display screen are determined. The spectral and temporal characteristics detected by each channel of the first light sensor can be expressed by expression (4):

[0135]

[0136] For example, Figure 6 FIG. 1 is a schematic diagram showing the time domain characteristics of each color light emitted by a display screen according to an exemplary embodiment. Figure 6 As shown, the transparent light, red light, green light and blue light emitted by the display screen detected by the first light sensor are taken as an example.

[0137] In the fifth step, the frequency domain characteristics of the spectral refresh rate f of the display screen detected by each channel of the first light sensor can be expressed by the expression (5). Assuming the fundamental frequency of the refresh rate is f, the frequency multiplication is nf.

[0138]

[0139] For example, Figure 7 FIG. 1 is a schematic diagram showing the frequency domain characteristics of the spectral refresh rate of a display screen according to an exemplary embodiment. Figure 7 As shown, the transparent light, red light, green light and blue light emitted by the display screen detected by the first light sensor are still taken as an example.

[0140] The sixth step is to set the numerical model expression of the influence of the amplitude of the refresh rate f of the OLED display screen on each channel. The numerical model expression can be expressed by expression (6):

[0141] f(x)=ax m +bx m-1 +cx m-2 +......+zx 0 (6)

[0142] Among them, a represents the influence coefficient of the red light channel on the refresh rate f, b represents the influence coefficient of the green light channel on the refresh rate f, and c represents the influence coefficient of the blue light channel on the refresh rate f.

[0143] Here, m=2, and the expression (7) of the light leakage prediction model for the four channels described in the above embodiment is:

[0144]

[0145] Step 7: Assume that the value collected by the first light sensor register is the Register represented by the following expression (8): i (x)

[0146] Register i (x); i = C / R / G / B (8)

[0147] Step 8: The actual external environment brightness value is expressed as expression (9):

[0148] Ambient i (x); i = C / R / G / B (9)

[0149] The actual external environment brightness value can be calculated by formula (10):

[0150] Ambient i (x)=Register i (x)-f i (x); i = C / R / G / B (11)

[0151] Step 9: Substitute the Ambient array calculated in step 8 into the Lux calculation formula (12):

[0152]

[0153] Here, Lux represents the display brightness of the display corresponding to the actual external environment brightness value, K ij is the fitting coefficient for different light sources.

[0154] Step 10: Calculate the final Lux and take the optimal solution k ij The calculated Lux is used as the final display brightness to which the display screen is adjusted.

[0155] In some embodiments, one display brightness corresponds to one backlight level.

[0156] It is understandable that the optimal solution is k ij There are many ways.

[0157] It should be noted that the actual external environment brightness value, i.e., the first environment brightness value, can also be obtained through other methods. In some embodiments, by pre-measuring the light leakage value of the display screen sensed by the first light sensor at different display brightnesses, and using a preset method (such as fitting, etc.) to establish a correspondence between the display brightness of the display screen and its light leakage value, the light leakage value calculated by the light leakage prediction model is obtained through a simple correspondence, and then the first environment brightness value is calculated through the eighth step described above.

[0158] In summary, in this embodiment, the first ambient brightness value is calculated based on the first light sensing value detected by the first light sensor and the light leakage value predicted by the light leakage prediction model.

[0159] It is understandable that the light leakage prediction model pre-establishes a correspondence between the light leakage value and the backlight level. For example, the predicted light leakage value is positively correlated with the backlight level. That is, when the backlight level increases, the light leakage value predicted by the light leakage prediction model also increases, and when the backlight level decreases, the light leakage value predicted by the light leakage prediction model also decreases. However, in some cases, when the switching speed of the backlight level is relatively fast, the light leakage value predicted by the light leakage prediction model will not keep up with the change of the backlight level, making the light leakage value predicted by the light leakage prediction model inaccurate. In addition, if the light leakage value predicted by the light leakage prediction model is inaccurate, if the switching speed of the backlight level is relatively slow, the light leakage prediction model will not be able to be calibrated again, resulting in the light leakage value predicted by the light leakage prediction model being continuously inaccurate, thereby affecting the ambient brightness value determined based on the light leakage prediction model, and further affecting the automatic brightness adjustment of the mobile terminal based on the ambient brightness value.

[0160] Here, the abnormality of the first ambient brightness value may include: an abnormality caused by an inaccurate light leakage value predicted by the light leakage prediction model. The inaccurate light leakage value predicted by the light leakage prediction model is often caused by a rapid change in the backlight level of the mobile terminal, that is, the backlight level switching speed is too fast. For example, because the mobile terminal suddenly changes from a very bright environment to a very dark environment, for example, when the mobile terminal changes from 1000 illuminance to 0 illuminance, the external environment brightness value changes rapidly, resulting in a faster drop in the backlight level. Since the backlight level drops rapidly, the light leakage value calculated in the light leakage prediction model cannot keep up with the speed of the backlight level drop, so that the light leakage value obtained by the light leakage prediction model may still remain in a range with a higher backlight level. In this way, the first ambient brightness value detected by the mobile terminal through the first light sensor is an illuminance value greater than 0 illuminance. In this way, when the mobile terminal automatically adjusts the backlight level according to the abnormal first ambient brightness value, it cannot adjust the backlight level of the display screen to the backlight level corresponding to 0 lux, causing the mobile terminal to be dazzling in an environment with an ambient brightness value of 0 illuminance.

[0161] In addition, when the first ambient brightness value is abnormal, if the switching speed of the backlight level is too slow, the prediction calibration of the light leakage prediction model may not be in place, resulting in the light leakage value predicted by the light leakage prediction model to be continuously wrong.

[0162] Based on this, the embodiment of the present disclosure adjusts the switching speed of the backlight level when an abnormality occurs in the ambient brightness value, so that the switching speed of the backlight level is at an appropriate speed, thereby effectively solving the problem of inaccurate prediction of the light leakage value by the light leakage prediction model, and effectively solving the problem of inaccurate ambient brightness value determined based on the light leakage prediction model, thereby improving the accuracy of the mobile terminal in adjusting the backlight level of the display screen based on the ambient brightness.

[0163] As another optional embodiment, step 103, i.e., determining whether the first ambient brightness value is abnormal, includes:

[0164] determining whether the first ambient brightness value is abnormal based on a difference between the first light sensing values corresponding to two adjacent detection moments of the first light sensor;

[0165] and / or,

[0166] Whether the first ambient brightness value is abnormal is determined according to a difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor.

[0167] It's understandable that, because the light leakage value predicted by the light leakage prediction model is positively correlated with the backlight level, the light leakage value increases smoothly with increasing backlight level. Thus, the difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor can be used to determine whether the first ambient brightness value is abnormal. In fact, if the difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor causes the light leakage value to exhibit a non-smooth curve as the backlight level increases, it can be determined that the first ambient brightness value is abnormal.

[0168] Similarly, since the first light sensing value is the sum of the light leakage value and the first ambient brightness value, the first ambient brightness value here is a fixed value, not a predicted value. Therefore, if the difference between the first light sensing values corresponding to two adjacent moments of the first light sensor causes the light leakage value to show a non-smooth curve with the backlight level, the first ambient brightness value can also be determined to be abnormal.

[0169] In order to more simply and quickly determine whether the first ambient brightness value is abnormal, as another optional embodiment, determining whether the first ambient brightness value is abnormal based on a difference between the first light sensing values corresponding to two adjacent detection moments of the first light sensor may include:

[0170] If the difference between the first light sensing values corresponding to two adjacent detection moments of the first light sensor is greater than a first difference threshold, it is determined that the first ambient brightness value is abnormal.

[0171] Here, the first difference threshold value may be determined by an average value of differences between first light sensing values at two adjacent moments when the first ambient brightness value detected in history is abnormal.

[0172] In some embodiments, the first difference threshold may also be the difference between first light sensing values at two adjacent detection moments determined by testing an abnormal first ambient brightness value caused by some specific scenario. Here, the specific scenario may be, for example, a test scenario in which the mobile terminal is suddenly placed in a dark box environment.

[0173] In this way, by setting the first difference threshold, it can be more accurately and quickly determined whether the first ambient brightness value is abnormal.

[0174] As another alternative embodiment, determining whether the first ambient brightness is abnormal based on a difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor may include:

[0175] If the difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor is greater than a second difference threshold, it is determined that the first ambient brightness value is abnormal.

[0176] Here, the first difference threshold and the second difference threshold may be different or the same.

[0177] Here, the second difference threshold may also be determined by the average value of the differences between the first light sensing values at two adjacent moments when the ambient brightness value detected in history is abnormal.

[0178] Here, the second difference threshold may also be the difference in light leakage values between two ringing detection moments determined by testing the abnormal first ambient brightness value caused by some specific scenarios. Here, the specific scenario may also be, for example, a test scenario in which the mobile terminal is suddenly placed in a dark box environment.

[0179] In this way, by setting the second difference threshold, it can be more accurately and quickly determined whether the first ambient brightness value is abnormal.

[0180] As another optional embodiment, determining whether the first ambient brightness value is abnormal may further include:

[0181] determining a second light sensing value of a second light sensor, wherein the second light sensor is located on a side of the mobile terminal opposite to the display screen;

[0182] If the difference between the second light sensing value and the first ambient brightness value is greater than a third difference threshold, it is determined that the first ambient brightness value is abnormal.

[0183] Here, the second light sensor is a sensor provided on the side of the mobile terminal opposite to the display screen. Exemplarily, the second light sensor can be provided on the back panel of the mobile terminal. Since the second light sensor is not located under the display screen, the second light sensing value detected by the second light sensor is the external environment brightness value. Therefore, in this embodiment, a second light sensor can be provided, and then the second light sensing value detected by the second light sensor can be compared with the first environment brightness value detected by the first light sensor. If the data of the two differ greatly, it indicates that the first environment brightness value detected by the first light sensor is abnormal. In this way, the scene where the first environment brightness value is abnormal can be determined more accurately.

[0184] Here, the third difference threshold is different from the first and second difference thresholds. For example, the third difference threshold is smaller than the first and second difference thresholds. This is because the third difference threshold is set to determine if two light sensors are detecting the same ambient brightness value. Therefore, in order to more accurately determine if the first ambient brightness value is abnormal, the third difference threshold can be set smaller.

[0185] It is worth noting that in some scenarios, for example, when the mobile terminal is placed on a desktop, since the back of the mobile terminal is blocked by the desktop, the second light sensing value detected by the second light sensor on the back is not the current external environment brightness. In order to improve the accuracy of determining whether the first brightness value is abnormal, as another optional embodiment, the method further includes:

[0186] detecting a posture of the mobile terminal;

[0187] The determining of the second light sensing value of the second light sensor includes:

[0188] If the posture of the mobile terminal is a preset posture, the second light sensing value of the second light sensor is determined.

[0189] Here, the preset posture may include: a posture in which the display screen is facing downward. Of course, the preset posture may also be other postures. Here, the preset posture may be any posture that can determine that the second light sensor on the side opposite the display screen of the mobile terminal is not blocked, and no limitation is made here.

[0190] In this way, by first determining the posture of the mobile terminal, if the posture of the mobile terminal is a preset posture, the second light sensing value of the second light sensor is determined, and then the difference between the second light sensing value and the first ambient brightness value is used to determine whether the first ambient brightness value is abnormal, which can make the determination result more accurate.

[0191] Here, the posture of the mobile terminal can be determined by cooperation of sensors such as an acceleration sensor and a gyroscope installed inside the mobile terminal.

[0192] As another optional embodiment, if the first ambient brightness value is abnormal, adjusting the switching speed of adjusting the backlight level of the display screen based on the ambient brightness includes:

[0193] If the first environment brightness value is abnormal, determining an abnormal scene corresponding to the abnormal first environment brightness value according to abnormal characteristics of the abnormal first environment brightness value;

[0194] The switching speed is adjusted according to the abnormal scenario.

[0195] It should be noted that the system can pre-store some correspondences between abnormal features of the abnormal first environment brightness value and abnormal scenes. Then, the abnormal scene corresponding to the abnormal first environment brightness value can be found based on the abnormal features of the abnormal first environment brightness value. For example, as mentioned above, when the mobile terminal is suddenly transferred from a well-lit outdoor environment to a dark box environment, for this type of abnormality, the abnormal scene corresponding to the abnormal first environment brightness value can be determined based on the abnormal features of the abnormal first environment brightness value. Here, the abnormal feature of the abnormal first environment brightness value can be that the detected first environment brightness value decreases at a speed greater than a speed threshold, or that the backlight level decreases at a speed greater than a speed threshold.

[0196] Thus, in this embodiment, by adjusting the switching speed according to the abnormal scenario, the speed can be adjusted more specifically, so that the appropriate switching speed can be found more quickly, providing a basis for correcting the light leakage value based on the appropriate switching speed.

[0197] As another optional embodiment, adjusting the switching speed according to the abnormal scenario may include:

[0198] Determining, according to the abnormal scene, a first backlight level corresponding to the abnormal scene;

[0199] determining a current second backlight level of the display screen;

[0200] The switching speed is adjusted according to the first backlight level and the second backlight level.

[0201] It should be noted that the "first backlight level corresponding to an abnormal scenario" here refers to the first backlight level that should be used in abnormal scenarios. For example, if the mobile terminal suddenly enters a darkened environment from a brightly lit outdoor environment, the backlight level that should be adjusted to for this abnormal scenario is the lowest backlight level. Therefore, for this abnormal scenario, the corresponding first backlight level is the lowest backlight level.

[0202] In this embodiment, the span of the backlight level to be adjusted can be determined using the first backlight level and the second backlight level. If the span is small, too small to calibrate the light leakage prediction model by adjusting the switching speed, and then automatically adjust the brightness to the first backlight level using the light leakage prediction model, the switching speed can be directly increased, that is, the backlight level can be directly adjusted to the first backlight level. If the span of the backlight level is large, the switching speed can be adjusted to ensure that a suitable switching speed is found to calibrate the light leakage prediction model before the backlight level is adjusted to the first backlight level, thereby ensuring the accuracy of the light leakage prediction in subsequent light leakage predictions.

[0203] In addition, it should be noted that, in some embodiments, the backlight level of the mobile terminal is not adjusted at a uniform speed, that is, the adjustment time is not the same for the same backlight level span. For example, when the mobile terminal adjusts the backlight level based on the ambient brightness, the pre-set switching speed is different for different backlight level spans. For example, when the mobile terminal adjusts the backlight level from a lower backlight level to another lower backlight level, the switching speed is slower than the switching speed when adjusting from a higher backlight level to a higher backlight level. It is understandable that in some embodiments, when the backlight level exceeds a certain range, the switching speed will increase rapidly, and when the backlight level is below a certain range, the switching speed is relatively slow.

[0204] For example, see Figure 8 , Figure 8 It is a schematic diagram of the corresponding changes in backlight level and switching speed according to an exemplary embodiment. As shown in Figure 8, when the backlight level is higher than the preset backlight level, the switching speed of the backlight level will become faster rapidly, and when the backlight level is lower than the preset backlight level, the switching speed will slowly increase with the increase of the backlight level.

[0205] Based on this, in some other embodiments, adjusting the switching speed according to the first backlight level and the second backlight level may further include:

[0206] determining, according to the first backlight level and the second backlight level, a switching speed corresponding to the first backlight level and the second backlight level;

[0207] The switching speed is adjusted according to the switching speeds corresponding to the first backlight level and the second backlight level.

[0208] Thus, the embodiment of the present disclosure first determines the original switching speed according to the first backlight level and the second backlight level, and then adjusts the switching speed according to the original switching speed, thereby reducing the phenomenon of blind adjustment without any basis as long as there is an abnormality.

[0209] As another optional embodiment, adjusting the switching speed according to the first backlight level and the second backlight level may include:

[0210] determining a first switching speed corresponding to the first backlight level and the second backlight level according to the first backlight level and the second backlight level, wherein the first switching speed is a pre-established constant speed corresponding to the first backlight level and the second backlight level;

[0211] The switching speed is adjusted to the first switching speed.

[0212] It should be noted that the first switching speed here is a constant speed obtained in pre-testing. Pre-testing can determine the appropriate switching speeds for different backlight levels. Therefore, based on the appropriate switching speeds for different backlight levels, the backlight level switching speed can be directly adjusted to the appropriate first switching speed, reducing the switching speed debugging process and improving efficiency.

[0213] In order to find a more accurate switching speed so that the found switching speed can fully calibrate the light leakage prediction model, as another optional embodiment, adjusting the switching speed according to the first backlight level and the second backlight level may include:

[0214] determining, according to the first backlight level and the second backlight level, a second switching speed corresponding to the first backlight level and the second backlight level, wherein the second switching speed is a pre-established initial speed for adaptive adjustment corresponding to the first backlight level and the second backlight level;

[0215] using the second switching speed and determining, according to the light leakage prediction model, whether the second ambient brightness value is the third ambient brightness value, wherein the third ambient brightness value is the ambient brightness value corresponding to the first backlight level;

[0216] If the second ambient brightness value is greater than the third ambient brightness value, adjusting the second switching speed until the second ambient brightness value determined by the light leakage prediction model is equal to the third ambient brightness value;

[0217] The switching speed is adjusted to a second switching speed corresponding to the third ambient brightness value when the second ambient brightness value determined by the light leakage prediction model is equal to the second ambient brightness value.

[0218] It should be noted that an initial speed for adaptive adjustment can be set in advance between different backlight levels. Based on this initial speed, the light leakage prediction model is continuously tested or trained until the light leakage value predicted by the light leakage prediction model is determined to be accurate. In this way, the exact backlight level switching speed in the first abnormal ambient brightness scenario can be accurately determined. Based on this accurate brightness switching speed, the light leakage prediction model can be self-calibrated, so that the backlight level adjustment based on the ambient brightness returns to normal.

[0219] As another optional embodiment, the method further includes:

[0220] The display screen is adjusted to the first backlight level according to the adjusted switching speed.

[0221] In this embodiment, the backlight level of the display screen can be smoothly adjusted to the first backlight level by adjusting the switching speed, thereby reducing the occurrence of abnormal phenomena in the process of adjusting the display screen to the first backlight level.

[0222] As another optional embodiment, the method further includes:

[0223] If the ambient brightness value is normal, the switching speed of adjusting the backlight level of the display screen based on the ambient brightness is maintained.

[0224] In this embodiment, if the ambient brightness value is normal, the backlight level of the display screen can be adjusted according to the original switching speed, thereby reducing the processing resources of the system and improving the system performance.

[0225] It should be added that the above optimal solution obtains k ij There are many ways to do this. An exemplary example is provided. ij The optimal solution is k ij The method is as follows:

[0226] A two-channel ADC (analog-to-digital converter) is designed based on the different infrared components. For example, channel 0 is used to detect the visible light band of 80nm-780nm, which is recorded as a. This part of the spectrum band is the spectrum band that the human eye's visual cells can respond to. Channel 1 responds to the infrared band, which is recorded as b. When collecting external light source information, the algorithm execution selection is determined by calculating the proportional coefficient t=b / a. The three algorithm formulas are: m, n, w, and the final algorithm result is Lux=max(m, n, t) or Lux=min(m, n, t).

[0227] Assuming that the transmittance of the display screen of the mobile terminal is T, the attenuation rate of light of the display screen of the mobile terminal is TA, where TA is 1 / T.

[0228] For example, T = 5%

[0229] Then TA = 1 / 0.05 = 20. In addition, the factor of the display screen is DC (Device Coef), and CPL can be calculated according to expression (13):

[0230] CPL=(Intergral_time+Intergral_gain) / TAC (13)

[0231] Wherein, CPL (ADC Count per Lux, analog-to-digital conversion value corresponding to each illuminance value), Integral_time is the integration time set by the first light sensor, Integral_gain is the integration gain set by the first light sensor, TAC = TA * DC, where TAC can be expressed by expression (14),

[0232] TAC=(Intergral_time+Intergral_gain) / CPL (14)

[0233] DC = TAC / TA, where DC can be expressed by expression (15):

[0234] TAC=(Intergral_time+Intergral_gain) / CPL (15)

[0235] CPL can be calculated by using expression (16) under specific integration time and integration gain to see what the analog-to-digital conversion value of 1 illuminance value is. At this point, CPL, TA, DC, and TAC have all been calculated.

[0236] Lux1=(Channel0-CoB+Channel1) / CPL (16)

[0237] Channel 0 is the ADC value converted from the first channel of the sensor IC ADC (380-780nm).

[0238] Lux1=Channel0 / CPL-(CoB+Channel1) / CPL (16)

[0239] Let K0 = 1 / CPL, K1 = CoB / CPL, then:

[0240] Lux1=K0*Channel0-K1*Channel1 (17)

[0241] set up:

[0242] Lux2=(CoC*Channel0-CoD*Channel1) / CPL (18)

[0243] Lux3=(CoE*Channel0-CoF*Channel1) / CPL (19)

[0244] but:

[0245] K o =1 / CPL (20)

[0246] K1=CoB / CPL (21)

[0247] The expressions (18) and (19) can be simplified to the form of expression (17):

[0248] Lux2=K2*Channel0-K3*Channel1 (22)

[0249] Lux3=K4*Channel0-K5*Channel1 (23)

[0250] but:

[0251]

[0252] Combine (17), (22), and (23) to calculate K1, K2, K3, K4, and K5 represented by Lux1, Lux2, Lux3, Channel0, and Channel1. Calculate CoB, CoC, CoD, CoE, and CoF from K1, K2, K3, K4, and K5.

[0253] Assume the channel matrix is channel = [Channel0, Channel1] (obtained from the ADC value of the first light sensor). According to the number of ADC channels designed for the first light sensor, for example, the ADC only measures channel 0 of the normal 380nm to 780nm and channel 1 of the IR component, or the spectrum is divided more finely with filters, for example, there are n ADC channels:

[0254] Channel1=Channe12*Channe12 (25)

[0255] The coefficient matrix is K, and the coefficient column vector can also range from 1 to n. The finer the differentiation, the larger the value of the column number n. The more IC ADC channels, the more rows in the K coefficient matrix:

[0256]

[0257] The light perception data matrix under different light sources is Lux (measured by an actual illuminance meter), where the subscript can range from 1 to n, depending on the light source to be fitted and the degree of accuracy of the distinction:

[0258] Lux=Lux1*Lux2*Lux3 (27)

[0259] The formula channel*K=Lux can be used to calculate all coefficient matrices. After obtaining the coefficient matrices, CoB, CoC, CoD, CoE, and CoF can be calculated.

[0260] The light-sensing data matrix is differentiated based on infrared component differences. If two light sources have the same IR component but differ in their initial fitting algorithm, and only one is used in the curve fitting, the error will be large when measuring both. In this case, the light source with the larger error can be re-differentiated and re-fitted based on its infrared component, resulting in more accurate values. Finally, the Lux matrix equation is derived, and the algorithm selects the correct formula based on the infrared component.

[0261] Channel 0 (CH0) and Channel 1 (CH1) values collected by the first light sensor under different light sources (CWF, A, D50, U30, TL84, and H), integration time (Atime), gain (Again), illuminance meter (Lux), Lux calculated by algorithm parameters (CalLux), and the error between the illuminance meter light intensity and the algorithm output light intensity.

[0262] The algorithm model can be expressed as follows:

[0263]

[0264] Lux1, Lux2, and Lux3 in the equation group are the values of the illuminance meter. K0-K5 have 6 unknown factors. The three equation groups represent the Lux calculation formulas of light sources under different spectral components. Therefore, at least 6 groups of values with non-linear relationships under different light sources are taken into the solution formula parameters. As shown in the figure, SWF, U30, and TL84 collect 5 groups of data, A, D50, and H collect one group each, and in order to make the fitting parameters consistent with different mobile devices during fitting, at least two mobile phones are used. Assuming that all light sources collect n groups of data, then traversing the n groups of data according to all combinations will result in A set of algorithm parameter data is provided. For each set of algorithm parameters solved, the error between the algorithm output and the illuminance meter Lux is calculated by introducing these n sets of data. The algorithm parameter output result with the smallest error is taken. The boundary condition is that the root mean square value of the error is the smallest, which is the best fitting effect:

[0265] Assume that for a set of data that has not been collected, the light intensity value output by the illuminance meter is recorded as Lux n , each set of algorithm parameters is brought into the CH1 and CH0 captured by IC and the result is x″ n , let the root mean square value be Stdev n :

[0266]

[0267] For each set of algorithm parameters solved, there is a stdev:

[0268]

[0269] Traversal Array, traverse to find Stdev min That is, the minimum value of stdev is recorded as the optimal solution of the algorithm.

[0270] Furthermore, the present disclosure also provides a specific embodiment to further understand the display brightness processing method provided by the embodiment of the present disclosure.

[0271] It is understood that, in the following, taking a full-screen mobile terminal as an example, a front light sensor is installed below the display screen of the full-screen mobile terminal. The front light sensor here can be understood as the first light sensor described in the above embodiment.

[0272] It should be noted that there is a one-to-one correspondence between any Lux and the automatic backlight level. When the backlight level corresponding to the detected external ambient brightness is low or even zero, the backlight level switching speed is too fast, resulting in the backlight level calculated based on the light leakage prediction model being non-zero. Furthermore, if the switching speed is too slow after the backlight level calculated by the light leakage prediction model is non-zero, the light leakage prediction model will not be able to restore the accurate prediction, resulting in the Lux level being non-zero. As a result, the mobile terminal cannot automatically adjust the backlight level to zero in low-light environments, resulting in a poor visual experience such as glare for the user.

[0273] Based on this, when in a dark room environment or a dark environment, if the light leakage prediction model predicts an inaccurate light leakage value, resulting in the calculated Lux being non-zero, set a certain backlight level to be adjusted to b when Lux is detected to be a, and the backlight level that has not been adjusted at this time is c. According to the backlight level from c to b, the switching speed is determined. Here, according to the backlight level from c to b, the switching speed is determined, including: according to a constant and appropriate switching speed that has been pre-tested corresponding to the backlight level from c to b, the switching speed of the backlight level is adjusted to the constant switching speed. According to the backlight level from c to b, the switching speed is determined, and it can also include: according to the initial speed for adaptive adjustment corresponding to the backlight level from c to b, by continuously changing this initial speed until Lux is calculated to 0, and determining the speed corresponding to the lux calculation being 0 as the switching speed.

[0274] It should be added that in this embodiment, the rear light sensor can be used to determine whether the first ambient brightness value reported by the under-screen light sensor is abnormal. Specifically, when the posture of the mobile terminal detected by the acceleration sensor and the gyroscope in the mobile terminal is the preset posture described in the above embodiment, it is determined whether the difference between the second light sensing value detected by the rear light sensor and the first ambient brightness value detected by the front light sensor under the screen is greater than the third difference threshold. If it is greater than the third difference threshold, it is considered that the first ambient brightness value reported by the under-screen light sensor is abnormal, and the switching speed of the backlight level needs to be adjusted. The light leakage prediction model of the first light sensor is corrected by adjusting the switching speed of the backlight level, thereby improving the performance of the first light sensor.

[0275] In this embodiment, the full-screen front screen light sensor can stably adjust the backlight level of the display screen to zero in dark conditions, avoiding the display brightness being high and the screen appearing glare due to the algorithm detecting that the brightness is not zero, thereby optimizing the mobile device experience.

[0276] Figure 9 FIG. 1 is a block diagram of a device for processing display brightness according to an exemplary embodiment. Figure 9 , the device is applied to a mobile terminal, the mobile terminal comprising:

[0277] an acquisition module 91 configured to acquire a first light sensing value of a first light sensor when the display screen of the mobile terminal is in an adaptive ambient brightness adjustment mode, wherein the first light sensor is located below the display screen of the mobile terminal; and determine a light leakage value of the display screen according to a current backlight level;

[0278] a first determining module 92, configured to determine the first ambient brightness value according to the first light sensing value and the light leakage value;

[0279] A second determining module 93 is configured to determine whether the first ambient brightness value is abnormal;

[0280] The first adjustment module 94 is configured to adjust a switching speed of the backlight level of the display screen based on the ambient brightness if the first ambient brightness value is abnormal.

[0281] In an optional embodiment, the acquisition module 91 is further configured to:

[0282] The light leakage value is predicted according to the current backlight level and a light leakage prediction model, wherein the light leakage prediction model includes: a corresponding relationship between the backlight level and the light leakage value.

[0283] In an optional embodiment, the second determining module 93 is further configured to:

[0284] determining whether the first ambient brightness value is abnormal based on a difference between the first light sensing values corresponding to two adjacent detection moments of the first light sensor;

[0285] and / or,

[0286] Whether the first ambient brightness value is abnormal is determined according to a difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor.

[0287] In an optional embodiment, the second determining module 93 is further configured to:

[0288] If a difference between the first light sensing values corresponding to two adjacent detection moments of the first light sensor is greater than a first difference threshold, it is determined that the first ambient brightness value is abnormal.

[0289] In an optional embodiment, the second determining module 93 is further configured to:

[0290] If the difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor is greater than a second difference threshold, it is determined that the first ambient brightness value is abnormal.

[0291] In an optional embodiment, the second determining module 93 is further configured to:

[0292] determining a second light sensing value of a second light sensor, wherein the second light sensor is located on a side of the mobile terminal opposite to the display screen;

[0293] If the difference between the second light sensing value and the first ambient brightness value is greater than a third difference threshold, it is determined that the first ambient brightness value is abnormal.

[0294] In an optional embodiment, the device further comprises:

[0295] A detection module, configured to detect the posture of the mobile terminal;

[0296] The second determining module 93 is further configured to:

[0297] If the posture of the mobile terminal is a preset posture, the second light sensing value of the second light sensor is determined.

[0298] In an optional embodiment, the first adjustment module 94 is further configured to:

[0299] If the first environment brightness value is abnormal, determining an abnormal scene corresponding to the abnormal first environment brightness value according to abnormal characteristics of the abnormal first environment brightness;

[0300] The switching speed is adjusted according to the abnormal scenario.

[0301] In an optional embodiment, the first adjustment module 94 is further configured to:

[0302] Determining, according to the abnormal scene, a first backlight level corresponding to the abnormal scene;

[0303] determining a current second backlight level of the display screen;

[0304] The switching speed is adjusted according to the first backlight level and the second backlight level.

[0305] In an optional embodiment, the first adjustment module 94 is further configured to:

[0306] determining a first switching speed corresponding to the first backlight level and the second backlight level according to the first backlight level and the second backlight level, wherein the first switching speed is a pre-established constant speed corresponding to the first backlight level and the second backlight level;

[0307] The switching speed is adjusted to the first switching speed.

[0308] In an optional embodiment, the first adjustment module is further configured to:

[0309] determining, according to the first backlight level and the second backlight level, a second switching speed corresponding to the first backlight level and the second backlight level, wherein the second switching speed is a pre-established initial speed for adaptive adjustment corresponding to the first backlight level and the second backlight level;

[0310] using the second switching speed and determining, according to the light leakage prediction model, whether the second ambient brightness value is the third ambient brightness value, wherein the third ambient brightness value is the ambient brightness value corresponding to the first backlight level;

[0311] If the second ambient brightness value is not the third ambient brightness value, adjusting the second switching speed until the second ambient brightness value determined according to the light leakage prediction model is the third ambient brightness value;

[0312] The switching speed is adjusted to the second switching speed corresponding to the third ambient brightness value determined by the light leakage prediction model.

[0313] In an optional embodiment, the device further comprises:

[0314] The second adjustment module is configured to adjust the display screen to the first backlight level according to the adjusted switching speed.

[0315] In an optional embodiment, the device further comprises:

[0316] If the ambient brightness value is normal, the switching speed of adjusting the backlight level of the display screen based on the ambient brightness is maintained.

[0317] 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.

[0318] Figure 10 1 is a block diagram of a mobile terminal 1000 according to an exemplary embodiment. For example, the mobile terminal 600 may be a mobile phone, a computer, a digital broadcast mobile terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0319] Reference Figure 10 The mobile terminal 1000 may include one or more of the following components: a processing component 1002 , a memory 1004 , a power component 1006 , a multimedia component 1008 , an audio component 1010 , an input / output (I / O) interface 1012 , a sensor component 1014 , and a communication component 1016 .

[0320] The processing component 1002 generally controls the overall operation of the mobile terminal 1000, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 1002 may include one or more modules to facilitate interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.

[0321] The memory 1004 is configured to store various types of data to support the operations of the mobile terminal 1000. Examples of such data include instructions for any application or method operating on the mobile terminal 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 may be implemented by any type of volatile or non-volatile memory 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.

[0322] The power component 1006 provides power to the various components of the mobile terminal 1000. The power component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the mobile terminal 1000.

[0323] The multimedia component 1008 includes a screen that provides an output interface between the mobile terminal 1000 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 may 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 1008 includes a front camera and / or a rear camera. When the mobile terminal 1000 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.

[0324] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC), which is configured to receive external audio signals when the mobile terminal 1000 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 1004 or transmitted via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.

[0325] I / O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.

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

[0327] The communication component 1016 is configured to facilitate wired or wireless communication between the mobile terminal 1000 and other devices. The mobile terminal 1000 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 1016 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 1016 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.

[0328] In an exemplary embodiment, the mobile terminal 1000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0329] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, and the instructions can be executed by the processor 1020 of the mobile terminal 1000 to perform the above method. 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.

[0330] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute the display brightness processing method described in the above embodiments.

[0331] Other embodiments of the present invention will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the invention 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 invention being indicated by the following claims.

[0332] It should be understood that the present invention is not limited to the exact construction described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for processing display brightness, characterized in that: Applied in mobile terminals, including: When the display screen of the mobile terminal is in an adaptive ambient brightness adjustment mode, obtaining a first light sensing value reported by a first light sensor, wherein the first light sensor is located below the display screen of the mobile terminal; and determining a light leakage value of the display screen according to a current backlight level; determining a first ambient brightness value according to the first light sensing value and the light leakage value; determining whether the first ambient brightness value is abnormal; If the first environment brightness value is abnormal, determining an abnormal scene corresponding to the abnormal first environment brightness value according to abnormal characteristics of the abnormal first environment brightness; According to the abnormal scenario, the switching speed is adjusted; wherein the switching speed is the speed of adjusting the backlight level of the display screen based on the ambient brightness.

2. The method according to claim 1, characterized in that Determining the light leakage value of the display screen according to the current backlight level includes: The light leakage value is predicted according to the current backlight level and a light leakage prediction model, wherein the light leakage prediction model includes: a corresponding relationship between the backlight level and the light leakage value.

3. The method according to claim 1, characterized in that The determining whether the first ambient brightness value is abnormal includes: determining whether the first ambient brightness value is abnormal based on a difference between the first light sensing values corresponding to two adjacent detection moments of the first light sensor; and / or, Whether the first ambient brightness value is abnormal is determined according to a difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor.

4. The method according to claim 3, characterized in that The determining whether the first ambient brightness value is abnormal according to a difference between the first light sensing values corresponding to two adjacent detection moments of the first light sensor includes: If the difference between the first light sensing values corresponding to two adjacent detection moments of the first light sensor is greater than a first difference threshold, it is determined that the first ambient brightness value is abnormal.

5. The method according to claim 3, characterized in that The determining whether the first ambient brightness value is abnormal according to the difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor includes: If the difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor is greater than a second difference threshold, it is determined that the first ambient brightness value is abnormal.

6. The method according to claim 1, wherein The determining whether the first ambient brightness value is abnormal includes: determining a second light sensing value of a second light sensor, wherein the second light sensor is located on a side of the mobile terminal opposite to the display screen; If the difference between the second light sensing value and the first ambient brightness value is greater than a third difference threshold, it is determined that the first ambient brightness value is abnormal.

7. The method according to claim 6, characterized in that The method further comprises: detecting a posture of the mobile terminal; The determining of the second light sensing value of the second light sensor includes: If the posture of the mobile terminal is a preset posture, the second light sensing value of the second light sensor is determined.

8. The method according to claim 1, characterized in that The adjusting the switching speed according to the abnormal scenario includes: Determining, according to the abnormal scene, a first backlight level corresponding to the abnormal scene; determining a current second backlight level of the display screen; The switching speed is adjusted according to the first backlight level and the second backlight level.

9. The method according to claim 8, characterized in that The adjusting the switching speed according to the first backlight level and the second backlight level includes: determining a first switching speed corresponding to the first backlight level and the second backlight level according to the first backlight level and the second backlight level, wherein the first switching speed is a pre-established constant speed corresponding to the first backlight level and the second backlight level; The switching speed is adjusted to the first switching speed.

10. The method according to claim 8, characterized in that The adjusting the switching speed according to the first backlight level and the second backlight level includes: determining, according to the first backlight level and the second backlight level, a second switching speed corresponding to the first backlight level and the second backlight level, wherein the second switching speed is a pre-established initial speed for adaptive adjustment corresponding to the first backlight level and the second backlight level; using the second switching speed and determining, according to the light leakage prediction model, whether the second ambient brightness value is a third ambient brightness value, wherein the third ambient brightness value is an ambient brightness value corresponding to the first backlight level; If the second ambient brightness value is not the third ambient brightness value, adjusting the second switching speed until the second ambient brightness value determined according to the light leakage prediction model is the third ambient brightness value; The switching speed is adjusted to the second switching speed corresponding to the third ambient brightness value when the second ambient brightness value determined by the light leakage prediction model is equal to the second ambient brightness value.

11. The method according to claim 8, characterized in that The method further comprises: The display screen is adjusted to the first backlight level according to the adjusted switching speed.

12. The method according to claim 1, characterized in that The method further comprises: If the ambient brightness value is normal, the switching speed of adjusting the backlight level of the display screen based on the ambient brightness is maintained.

13. A display brightness processing device, characterized in that: Applied in mobile terminals, including: an acquisition module, configured to acquire a first light sensing value on a first light sensor when the display screen of the mobile terminal is in an adaptive ambient brightness adjustment mode, wherein the first light sensor is located below the display screen of the mobile terminal; and determine a light leakage value of the display screen according to a current backlight level; a first determining module, configured to determine a first ambient brightness value according to the first light sensing value and the light leakage value; A second determining module is used to determine whether the first environment brightness value is abnormal; The first adjustment module is used to determine the abnormal scene corresponding to the abnormal first ambient brightness value according to the abnormal characteristics of the abnormal first ambient brightness if the first ambient brightness value is abnormal; and adjust the switching speed according to the abnormal scene; wherein the switching speed is the speed of adjusting the backlight level of the display screen based on the ambient brightness.

14. The device according to claim 13, characterized in that The acquisition module is further used to: The light leakage value is predicted according to the current backlight level and a light leakage prediction model, wherein the light leakage prediction model includes: a corresponding relationship between the backlight level and the light leakage value.

15. The device according to claim 13, characterized in that The second determining module is further configured to: determining whether the first ambient brightness value is abnormal based on a difference between the first light sensing values corresponding to two adjacent detection moments of the first light sensor; and / or, Whether the first ambient brightness value is abnormal is determined according to a difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor.

16. The device according to claim 15, characterized in that The second determining module is further specifically configured to: If the difference between the first light sensing values corresponding to two adjacent detection moments of the first light sensor is greater than a first difference threshold, it is determined that the first ambient brightness value is abnormal.

17. The device according to claim 15, characterized in that The second determining module is further specifically configured to: If the difference between the light leakage values corresponding to two adjacent detection moments of the first light sensor is greater than a second difference threshold, it is determined that the first ambient brightness value is abnormal.

18. The device according to claim 13, characterized in that The second determining module is further configured to: determining a second light sensing value of a second light sensor, wherein the second light sensor is located on a side of the mobile terminal opposite to the display screen; If the difference between the second light sensing value and the first ambient brightness value is greater than a third difference threshold, it is determined that the first ambient brightness value is abnormal.

19. The device according to claim 18, characterized in that The device further comprises: A detection module, configured to detect the posture of the mobile terminal; The second determining module is further configured to: If the posture of the mobile terminal is a preset posture, the second light sensing value of the second light sensor is determined.

20. The device according to claim 13, wherein The first adjustment module is further configured to: Determining, according to the abnormal scene, a first backlight level corresponding to the abnormal scene; determining a current second backlight level of the display screen; The switching speed is adjusted according to the first backlight level and the second backlight level.

21. The device according to claim 20, characterized in that The first adjustment module is further configured to: determining a first switching speed corresponding to the first backlight level and the second backlight level according to the first backlight level and the second backlight level, wherein the first switching speed is a pre-established constant speed corresponding to the first backlight level and the second backlight level; The switching speed is adjusted to the first switching speed.

22. The device according to claim 20, characterized in that The first adjustment module is further configured to: determining, according to the first backlight level and the second backlight level, a second switching speed corresponding to the first backlight level and the second backlight level, wherein the second switching speed is a pre-established initial speed for adaptive adjustment corresponding to the first backlight level and the second backlight level; using the second switching speed and determining, according to the light leakage prediction model, whether the second ambient brightness value is a third ambient brightness value, wherein the third ambient brightness value is an ambient brightness value corresponding to the first backlight level; If the second ambient brightness value is not the third ambient brightness value, adjusting the second switching speed until the second ambient brightness value determined according to the light leakage prediction model is the third ambient brightness value; The switching speed is adjusted to the second switching speed corresponding to the third ambient brightness value determined by the light leakage prediction model.

23. The device according to claim 20, characterized in that The device further comprises: The second adjustment module is configured to adjust the display screen to the first backlight level according to the adjusted switching speed.

24. The device according to claim 13, wherein The device further comprises: If the ambient brightness value is normal, the switching speed of adjusting the backlight level of the display screen based on the ambient brightness is maintained.

25. A mobile terminal, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to: execute the method according to any one of claims 1 to 12 when implemented.

26. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Method for adjusting backlight brightness and terminal

    CN107111992A

  • Brightness calibration method and device, storage medium and terminal

    CN111179861A