Backlight data determination method and device and storage medium
By weighting the ambient light data collected by the front light sensor and the rear light sensor in different periods, and combining the changes in the ambient light data, the problem of unstable screen brightness caused by the determination of backlight data in the existing technology is solved, achieving stability and accuracy. Backlight adjustment improves the user experience.
Patent Information
- Application Number
- CN202310316706.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-09-24
AI Technical Summary
In the existing technology, the backlight data is determined by comparing the ambient light data collected by the front light sensor and the rear light sensor, resulting in unstable screen brightness and the problem of "blinking on and off".
Weighted processing is used to process the ambient light data collected by the front light sensor and the rear light sensor in different cycles, and the backlight data is determined based on changes in the ambient light data to achieve stable and accurate backlight adjustment.
Through the weighted ambient light data, backlight flickering caused by instantaneous data collection is avoided, stable adjustment of the screen backlight is achieved, and the user experience is improved.
Smart Images

Figure CN118692389A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of display technology, and in particular to a backlight data determination method, device and storage medium. Background Art
[0002] In the related technology, the backlight of the display screen is determined by the ambient light detected by the light sensor. The backlight data that the backlight adjustment depends on supports the use of data collected by the front light sensor and the rear light sensor to determine the backlight data. At present, the scheme used to determine the backlight using dual light sensor technology is to compare the ambient light data values collected by the front light sensor and the rear light sensor, and determine the backlight data by comparing the data of the two. Usually, the data with the larger ambient light data value is determined as the backlight data. However, this technical method will cause the screen to "flicker" and the brightness to be unstable. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a backlight data determination method, device and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a backlight data determination method is provided, which is applied to a terminal, wherein the terminal includes a front light sensor and a rear light sensor, and the method includes:
[0005] Acquire the ambient light data collected by the front light sensor in the first cycle and the ambient light data collected by the rear light sensor in the second cycle;
[0006] Weighting the ambient light data collected in the first cycle to obtain first ambient light data, and weighting the ambient light data collected in the second cycle to obtain second ambient light data;
[0007] Backlight data is determined based on the first ambient light data and the second ambient light data.
[0008] In one implementation, determining the backlight data based on the first ambient light data and the second ambient light data includes:
[0009] Determine the light sensor that detects the change of ambient light data in adjacent cycles and the light sensor to which the currently used backlight data belongs;
[0010] Backlight data is determined based on the first ambient light data, the second ambient light data, a light sensor that detects a change in ambient light data in adjacent cycles, and a light sensor to which the currently used backlight data belongs.
[0011] In another embodiment, the determining the backlight data based on the first ambient light data, the second ambient light data, a light sensor that detects a change in ambient light data in adjacent cycles, and a light sensor to which the currently used backlight data belongs includes:
[0012] In response to the light sensor detecting a change in ambient light data in an adjacent cycle being the front light sensor, and the light sensor to which the currently used backlight data belongs being the front light sensor, the backlight data is determined based on the first ambient light data, the second ambient light data, and the front light sensor change threshold.
[0013] In yet another embodiment, determining the backlight data based on the first ambient light data, the second ambient light data, and the front light sensitivity change threshold comprises:
[0014] In response to satisfying a first condition, determining that the first ambient light data collected by the front light sensor is backlight data;
[0015] The first condition includes:
[0016] The brightness value corresponding to the second ambient light data is less than or equal to the brightness value corresponding to the first ambient light data, and the brightness value corresponding to the first ambient light data is less than or equal to the dimming threshold of the front light sensor, or
[0017] The brightness value corresponding to the first ambient light data is greater than or equal to the front light sensor brightness brightening threshold, or
[0018] The brightness value corresponding to the first ambient light data is greater than or equal to the brightness value corresponding to the second ambient light data.
[0019] In yet another embodiment, determining the backlight data based on the first ambient light data, the second ambient light data, and the front light sensitivity change threshold comprises:
[0020] In response to satisfying a second condition, determining that the second ambient light data collected by the rear light sensor is backlight data;
[0021] The second condition includes: the brightness value corresponding to the first ambient light data is less than or equal to the front light sensor brightness dimming threshold, and the brightness value corresponding to the first ambient light data is less than the brightness value corresponding to the second ambient light data.
[0022] In yet another embodiment, the determining the backlight data based on the first ambient light data, the second ambient light data, a light sensor that detects a change in ambient light data in adjacent cycles, and a light sensor to which the currently used backlight data belongs includes:
[0023] In response to the light sensor detecting a change in ambient light data in adjacent cycles being the front light sensor and the light sensor to which the currently used backlight data belongs being the rear light sensor, backlight data is determined based on the first ambient light data and the second ambient light data.
[0024] In yet another embodiment, determining the backlight data based on the first ambient light data, the second ambient light data, and a rear light sensitivity change threshold includes:
[0025] In response to the brightness value corresponding to the first ambient light data being greater than or equal to the brightness value corresponding to the second ambient light data, it is determined that the first ambient light data collected by the front light sensor is backlight data.
[0026] In another embodiment, the determining the backlight data based on the first ambient light data, the second ambient light data, a light sensor that detects a change in the ambient light data in an adjacent cycle, and a light sensor to which the currently used backlight data belongs includes:
[0027] In response to detecting that the light sensor that detects a change in ambient light data in an adjacent cycle is a rear light sensor, and the light sensor to which the currently used backlight data belongs is a rear light sensor, backlight data is determined based on the first ambient light data, the second ambient light data, and a rear light sensor change threshold.
[0028] In yet another embodiment, determining the backlight data based on the first ambient light data, the second ambient light data, and a rear light sensitivity change threshold includes:
[0029] In response to satisfying the third condition, determining that the second ambient light data collected by the rear light sensor is backlight data;
[0030] The third condition includes:
[0031] The brightness value corresponding to the first ambient light data is less than the brightness value corresponding to the second ambient light data, and the brightness value corresponding to the second ambient light data is less than or equal to the brightness dimming threshold of the rear light sensor, or
[0032] The brightness value corresponding to the second ambient light data is greater than or equal to the brightness threshold of the rear light sensor, or
[0033] The brightness value corresponding to the second ambient light data is greater than the brightness value corresponding to the first ambient light data.
[0034] In yet another embodiment, determining the backlight data based on the first ambient light data, the second ambient light data, and a rear light sensitivity change threshold includes:
[0035] In response to the brightness value corresponding to the second ambient light data being less than or equal to the brightness dimming threshold of the rear light sensor, and the brightness value corresponding to the second ambient light data being less than the brightness value corresponding to the first ambient light data, it is determined that the first ambient light data collected by the front light sensor is backlight data.
[0036] In yet another embodiment, the determining the backlight data based on the first ambient light data, the second ambient light data, a light sensor that detects a change in ambient light data in adjacent cycles, and a light sensor to which the currently used backlight data belongs includes:
[0037] In response to the light sensor detecting a change in ambient light data in an adjacent cycle being the rear light sensor and the light sensor to which the currently used backlight data belongs being the front light sensor, the backlight data is determined based on the second ambient light data and a brightness brightening threshold of the front light sensor.
[0038] In another embodiment, the second ambient light data and the front light sensor brightness brightening threshold are used to determine the backlight data, including:
[0039] In response to the brightness value corresponding to the second ambient light data being greater than the brightness brightening threshold of the front light sensor, it is determined that the second ambient light data collected by the rear light sensor is backlight data.
[0040] In another embodiment, the method further comprises:
[0041] In response to the light emitting device on one side of the rear light sensor installed on the terminal being in a light emitting state, it is determined that the first ambient light data collected by the front light sensor is backlight data.
[0042] According to a second aspect of an embodiment of the present disclosure, a backlight data determination device is provided, which is applied to a terminal, wherein the terminal includes a front light sensor and a rear light sensor, and the backlight data determination device includes:
[0043] An acquisition unit, used to acquire the ambient light data collected by the front light sensor in the first cycle and the ambient light data collected by the rear light sensor in the second cycle;
[0044] A data preprocessing unit, configured to weight the ambient light data collected in the first cycle to obtain first ambient light data, and to weight the ambient light data collected in the second cycle to obtain second ambient light data;
[0045] A determining unit is configured to determine backlight data based on the first ambient light data and the second ambient light data.
[0046] In one embodiment, the determining unit determines the backlight data based on the first ambient light data and the second ambient light data in the following manner: determining the light sense in which the ambient light data changes are detected in adjacent cycles, and the light sense to which the currently used backlight data belongs;
[0047] Backlight data is determined based on the first ambient light data, the second ambient light data, a light sensor that detects a change in ambient light data in adjacent cycles, and a light sensor to which the currently used backlight data belongs.
[0048] In another embodiment, the determining unit determines the backlight data based on the first ambient light data, the second ambient light data, a light sensor that detects a change in ambient light data in adjacent cycles, and a light sensor to which the currently used backlight data belongs in the following manner:
[0049] In response to the light sensor detecting a change in ambient light data in an adjacent cycle being the front light sensor, and the light sensor to which the currently used backlight data belongs being the front light sensor, the backlight data is determined based on the first ambient light data, the second ambient light data, and the front light sensor change threshold.
[0050] In yet another embodiment, the determining unit determines the backlight data based on the first ambient light data, the second ambient light data, and the front light sensitivity change threshold in the following manner:
[0051] In response to satisfying a first condition, determining that the first ambient light data collected by the front light sensor is backlight data;
[0052] The first condition includes:
[0053] The brightness value corresponding to the second ambient light data is less than or equal to the brightness value corresponding to the first ambient light data, and the brightness value corresponding to the first ambient light data is less than or equal to the dimming threshold of the front light sensor, or
[0054] The brightness value corresponding to the first ambient light data is greater than or equal to the front light sensor brightness brightening threshold, or
[0055] The brightness value corresponding to the first ambient light data is greater than or equal to the brightness value corresponding to the second ambient light data.
[0056] In yet another embodiment, the determining unit determines the backlight data based on the first ambient light data, the second ambient light data, and the front light sensitivity change threshold in the following manner:
[0057] In response to satisfying a second condition, determining that the second ambient light data collected by the rear light sensor is backlight data;
[0058] The second condition includes: the brightness value corresponding to the first ambient light data is less than or equal to the front light sensor brightness dimming threshold, and the brightness value corresponding to the first ambient light data is less than the brightness value corresponding to the second ambient light data.
[0059] In another embodiment, the determining unit determines the backlight data based on the first ambient light data, the second ambient light data, a light sensor that detects a change in ambient light data in adjacent cycles, and a light sensor to which the currently used backlight data belongs in the following manner:
[0060] In response to the light sensor detecting a change in ambient light data in adjacent cycles being the front light sensor and the light sensor to which the currently used backlight data belongs being the rear light sensor, backlight data is determined based on the first ambient light data and the second ambient light data.
[0061] In yet another embodiment, the determining unit determines the backlight data based on the first ambient light data, the second ambient light data, and the rear light sensitivity change threshold in the following manner:
[0062] In response to the brightness value corresponding to the first ambient light data being greater than or equal to the brightness value corresponding to the second ambient light data, it is determined that the first ambient light data collected by the front light sensor is backlight data.
[0063] In another embodiment, the determining unit determines the backlight data based on the first ambient light data, the second ambient light data, a light sensor that detects a change in ambient light data in adjacent cycles, and a light sensor to which the currently used backlight data belongs in the following manner:
[0064] In response to detecting that the light sensor that detects a change in ambient light data in an adjacent cycle is a rear light sensor, and the light sensor to which the currently used backlight data belongs is a rear light sensor, backlight data is determined based on the first ambient light data, the second ambient light data, and a rear light sensor change threshold.
[0065] In yet another embodiment, the determining unit determines the backlight data based on the first ambient light data, the second ambient light data, and the rear light sensitivity change threshold in the following manner:
[0066] In response to satisfying the third condition, determining that the second ambient light data collected by the rear light sensor is backlight data;
[0067] The third condition includes:
[0068] The brightness value corresponding to the first ambient light data is less than the brightness value corresponding to the second ambient light data, and the brightness value corresponding to the second ambient light data is less than or equal to the brightness dimming threshold of the rear light sensor, or
[0069] The brightness value corresponding to the second ambient light data is greater than or equal to the brightness threshold of the rear light sensor, or
[0070] The brightness value corresponding to the second ambient light data is greater than the brightness value corresponding to the first ambient light data.
[0071] In yet another embodiment, the determining unit determines the backlight data based on the first ambient light data, the second ambient light data, and the rear light sensitivity change threshold in the following manner:
[0072] In response to the brightness value corresponding to the second ambient light data being less than or equal to the brightness dimming threshold of the rear light sensor, and the brightness value corresponding to the second ambient light data being less than the brightness value corresponding to the first ambient light data, it is determined that the first ambient light data collected by the front light sensor is backlight data.
[0073] In another embodiment, the determining unit determines the backlight data based on the first ambient light data, the second ambient light data, a light sensor that detects a change in ambient light data in adjacent cycles, and a light sensor to which the currently used backlight data belongs in the following manner:
[0074] In response to the light sensor detecting a change in ambient light data in an adjacent cycle being the rear light sensor and the light sensor to which the currently used backlight data belongs being the front light sensor, the backlight data is determined based on the second ambient light data and a brightness brightening threshold of the front light sensor.
[0075] In yet another embodiment, the determining unit determines the backlight data based on the second ambient light data and the front light sensor brightness brightening threshold in the following manner:
[0076] In response to the brightness value corresponding to the second ambient light data being greater than the brightness brightening threshold of the front light sensor, it is determined that the second ambient light data collected by the rear light sensor is backlight data.
[0077] In yet another embodiment, the backlight data determining device, the determining unit is further configured to:
[0078] In response to the light emitting device on one side of the rear light sensor installed on the terminal being in a light emitting state, it is determined that the first ambient light data collected by the front light sensor is backlight data.
[0079] According to a third aspect of an embodiment of the present disclosure, there is provided a backlight data determination device, including:
[0080] processor;
[0081] a memory for storing processor-executable instructions;
[0082] The processor is configured to execute the backlight data determination method described in the first aspect or any one of the embodiments of the first aspect.
[0083] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a device, the device is enabled to execute the backlight data determination method described in the first aspect or any one of the implementations of the first aspect.
[0084] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: obtaining ambient light data collected by the front light sensor in the first cycle and ambient light data collected by the rear light sensor in the second cycle to obtain ambient light data collected by the front light sensor and the rear light sensor; weighting the ambient light data collected in the first cycle to obtain first ambient light data, and weighting the ambient light data collected in the second cycle to obtain second ambient light data. By using the weighted ambient light data, flickering of the backlight caused by instantaneous jumps in the collected ambient light data can be avoided; based on the first ambient light data and the second ambient light data, backlight data is determined, thereby achieving stable and accurate adjustment of the screen backlight, avoiding the defect of "flickering" of the screen backlight, and improving the user experience of the screen backlight.
[0085] 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 present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0087] Figure 1 The figure is a schematic diagram of a front light sensor of a smart phone according to an exemplary embodiment.
[0088] Figure 2 The figure is a schematic diagram of a rear light sensor of a smart phone according to an exemplary embodiment.
[0089] Figure 3 The figure is a flow chart of a method for determining backlight data according to an exemplary embodiment.
[0090] Figure 4 The figure is a flow chart of a method for determining backlight data according to an exemplary embodiment.
[0091] Figure 5 The figure is a flow chart of a method for determining backlight data according to an exemplary embodiment.
[0092] Figure 6The figure is a flow chart of a method for determining backlight data according to an exemplary embodiment.
[0093] Figure 7 The figure is a flow chart of a method for determining backlight data according to an exemplary embodiment.
[0094] Figure 8 The figure is a flow chart of a method for determining backlight data according to an exemplary embodiment.
[0095] Fig. 9 The figure is a flow chart of a method for determining backlight data according to an exemplary embodiment.
[0096] Fig.10 The figure is a flow chart of a method for determining backlight data according to an exemplary embodiment.
[0097] Fig.11 The figure is a flow chart of a method for determining backlight data according to an exemplary embodiment.
[0098] Fig.12 The figure is a flow chart of a method for determining backlight data according to an exemplary embodiment.
[0099] Fig.13 The figure is a flow chart of a method for determining backlight data according to an exemplary embodiment.
[0100] Fig.14 The figure is a flow chart of a method for determining backlight data according to an exemplary embodiment.
[0101] Fig.15 The figure is a flow chart of a method for determining backlight data according to an exemplary embodiment.
[0102] Fig.16 The figure is a flow chart of a method for determining backlight data according to an exemplary embodiment.
[0103] Fig.17 The figure is a block diagram of a backlight data determining device according to an exemplary embodiment.
[0104] Fig.18 The figure is a schematic diagram of a device for determining backlight data according to an exemplary embodiment. DETAILED DESCRIPTION
[0105] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0106] The backlight data determination method provided by the embodiment of the present disclosure is applied to a scenario in which backlight data is determined based on a light sensor.
[0107] Light sensors, abbreviated as light sensors, usually refer to ambient light sensors, which can sense the surrounding light conditions and inform the processing chip to automatically adjust the display backlight brightness to reduce the power consumption of the product. For example, in mobile devices such as mobile phones, laptops, and tablets, the power consumed by the display accounts for a very high proportion of the total battery power. The use of ambient light sensors can extend the battery life. On the other hand, ambient light sensors help the display provide a soft picture. When the ambient brightness is high, the LCD display using an ambient light sensor will automatically adjust to high brightness. When the external environment is darker, the display will be adjusted to low brightness. In order to ensure that the terminal obtains reliable external ambient light conditions and thus better adjust the brightness of the display, current terminal devices such as mobile phones, tablets, and laptops are usually equipped with two light sensors, one located on the front of the terminal, which is a front light sensor. For example, Figure 1 The front light sensor of a smartphone is shown in the figure. The front light sensor is close to the front camera and is located on the side of the receiver or inside the receiver. It collects front light sensor data by detecting the ambient light on the front of the phone. A rear light sensor is located on the back of the terminal, for example, Figure 2 The schematic diagram of a rear light sensor of a smartphone is shown. The rear light sensor is usually located near the rear camera or flash. It collects rear light sensor data by detecting the ambient light on the back of the phone. The terminal adjusts the screen backlight according to the front light sensor data or the rear light sensor data by analyzing the data collected by the light sensor.
[0108] In the brightness calculation process, the front light sensor data is obtained by weighting all the data in the buffer within a certain time period, while the rear light sensor data is real-time light sensor data. Therefore, the following problems will exist: the rear light sensor cannot fully reflect the ambient light conditions within a period of time; the reported value of the rear light sensor changes frequently. When the backlight is performed based on the larger of the front light sensor and the rear light sensor, the backlight data source will switch back and forth between the rear light sensor and the front light sensor. This frequent switching will cause the screen to "flicker" and the brightness to be unstable, making it difficult to achieve a good user experience.
[0109] Based on this, this embodiment proposes a backlight data determination method, in which the front light sensor and the rear light sensor collect ambient light data at the same time, and perform weighted processing on the ambient light data collected over a period of time, and combine the backlight data currently in use, and according to the backlight adjustment strategy, use one of the front light sensor data and the rear light sensor data as the basis for adjusting the backlight data. In this way, a stable backlight data source and adaptation to ambient light changes are obtained.
[0110] Figure 3 is a flow chart of a method for determining backlight data according to an exemplary embodiment. Figure 3 As shown, the following steps are included:
[0111] In step S11, the ambient light data collected by the front light sensor in the first cycle and the ambient light data collected by the rear light sensor in the second cycle are obtained.
[0112] The terminal collects ambient light data on the front of the terminal through the front light sensor, and collects ambient light data on the back of the terminal through the rear light sensor. Since both the front light sensor and the rear light sensor have their own inherent frequency of sensor data collection, a period of time during the operation of the front light sensor is taken as the first cycle, and a period of time during the operation of the rear light sensor is taken as the second cycle, wherein the first cycle is different from the second cycle. Therefore, the front light sensor can collect the front ambient light data within the first cycle during power-on operation, and the rear light sensor can collect the rear ambient light data within the second cycle during power-on operation.
[0113] In step S12, the ambient light data collected in the first cycle is weighted to obtain first ambient light data, and the ambient light data collected in the second cycle is weighted to obtain second ambient light data.
[0114] The result of weighted calculation of the ambient light data collected by the front light sensor in the first cycle is used as the first ambient light data, reflecting the brightness of the front ambient light in the first cycle. The result of weighted calculation of the ambient light data collected by the rear light sensor in the second cycle is used as the second ambient light data, reflecting the brightness of the ambient light in the second cycle.
[0115] In the disclosed embodiment, the ambient light data collected in real time by the light sensor is smoothed. Specifically, a fixed time length is set as a cycle, and the ambient light data collected continuously within this cycle is weighted calculated to obtain the first ambient light data. Compared with the light data collected in real time in the related technology, the light sensitivity value curve on the time axis is smoother, thereby ensuring the stable output of the ambient light data to accurately reflect the changes in the external ambient light.
[0116] In step S13, backlight data is determined based on the first ambient light data and the second ambient light data.
[0117] The terminal analyzes the relationship between the first ambient light data and the second ambient light data through the first ambient light data collected by the front light sensor and the second ambient light data collected by the rear light sensor, thereby determining the backlight data.
[0118] In the disclosed embodiment, by weighted processing and analysis of the collected light sensing data, the obtained stable ambient light data is used to determine the backlight, thereby avoiding flickering of the screen and brightness flickering.
[0119] The following is a detailed description of the backlight data determination method in the embodiment of the present disclosure.
[0120] Figure 4 FIG. 1 is a flow chart of a method for determining backlight data according to an exemplary embodiment. Figure 4 As shown, the following steps are included:
[0121] In step S21a, it is determined whether the light sense of the ambient light data has changed in adjacent cycles, and the light sense to which the currently used backlight data belongs.
[0122] Detect the new weighted ambient light values of the front and rear light sensors in the current cycle and compare them with the new weighted ambient light values of the previous cycle to determine whether the ambient light data has changed. Here, the change is calculated by the absolute value of the difference between the new weighted ambient light values of the previous and next cycles. If the current cycle T n The new weighted ambient light is V front , the previous cycle T n-1 The new weighted ambient light at the front is V` front , that is, ΔV front =|V front -V` front | is the difference between the new weighted ambient light values of the previous and next adjacent cycles. If the absolute value ΔV front Exceeds the preset threshold V t1 , that is, ΔV front ≥V t1 , it is regarded as that the ambient light data of the front light sensor has changed, indicating that the ambient light on the terminal side has changed. The same judgment method can be used to calculate the new weighted ambient light of the rear light sensor collected by the rear light sensor and the new weighted ambient light value difference between two adjacent cycles. Through this new weighted ambient light value difference, it can be obtained whether the ambient light of the rear light sensor has changed. If the new weighted light value difference corresponding to the two light sensors has changed, then the confirmation of the specific light sensing side will be entered immediately.
[0123] When the terminal adjusts the current backlight data, it is based on the light sensitivity value provided by the front light sensor or the rear light sensor. In an example of this embodiment, since the device ID of the light sensor to which the data currently used by the backlight belongs can be queried in the terminal, it can be known from the device ID whether the front light sensor or the rear light sensor is currently being used.
[0124] In step S21b, the backlight data is determined based on the first ambient light data, the second ambient light data, the light sensor that detects changes in the ambient light data in adjacent cycles, and the light sensor to which the currently used backlight data belongs.
[0125] After determining the light sense at which the ambient light data changes in adjacent cycles and the light sense to which the currently used backlight data belongs, the backlight data is determined by analyzing the first ambient light data and the second ambient light data.
[0126] In one implementation of the disclosed embodiment, if the refresh rate of the light sensor is 30 Hz (Hertz), and 1 second is taken as a cycle, 30 instantaneous ambient light values p can be obtained in each cycle, and then the weighted ambient light value of this single cycle is calculated using weighted average or Gaussian weighting methods, that is, if the i-th instantaneous ambient light value in the current cycle is p i , the corresponding weight value is w i , then the weighted ambient light value in this cycle can be calculated Where N is the number of times the light sensor collects data in this cycle, and in this example, N = 30. Through this weighted average processing, the original data collected by the light sensor is actually smoothed, thereby obtaining the first ambient light data Here m is the number of acquisitions by the front light sensor in the first cycle T1. front This is the new weighted ambient light of the front light sensor, which is used to characterize the weighted brightness of the ambient light in the first cycle T1 collected by the front light sensor. The second ambient light data can also be obtained Here n is the number of acquisitions by the rear light sensor in the second cycle T2. back It is the new weighted ambient light of the rear light sensor, which is used to characterize the weighted brightness of the ambient light in the second period T2 collected by the rear light sensor, wherein the first period T1 is not equal to the second period T2.
[0127] In one implementation of this example, the terminal currently collects the new weighted ambient light data V through the front light sensor. front For backlighting, if the terminal remains in the same ambient light state, the screen backlight continues to use the front light sensor; if the ambient light state of the front and back of the terminal is reversed, the screen backlight is switched to use the rear new weighted ambient light V collected by the rear light sensor back Backlighting.
[0128] Another similar implementation of this embodiment is that the terminal currently collects the rear new weighted ambient light data V through the rear light sensor back For backlighting, if the phone continues to be in the same ambient light state, the screen backlight still uses the rear light sensor. When the back of the terminal is completely blocked and the front faces a brighter light source, the screen backlight is determined by switching from the rear light sensor data to the front light sensor data.
[0129] In the disclosed embodiment, by weighted processing and analysis of the collected light sensing data, the obtained stable ambient light data is used to determine the backlight, thereby avoiding flickering of the screen and brightness flickering.
[0130] The following is an explanation of a method for determining backlight data in an embodiment of the present disclosure.
[0131] Figure 5 is a flow chart of a method for determining backlight data according to an exemplary embodiment. Figure 5 As shown, the following steps are included:
[0132] In step S31a, the light sensor that detects a change in the ambient light data in the adjacent cycles is the front light sensor, and the light sensor to which the currently used backlight data belongs is the front light sensor.
[0133] The front light sensor detects the ambient light data and records it according to the cycle. If it is detected that the ambient light data changes in adjacent cycles, that is, the absolute value of the brightness value difference between adjacent cycles is greater than the threshold, it indicates that the brightness of the ambient light collected by the front light sensor has changed significantly in adjacent cycles. At the same time, when the light sensor to which the backlight data currently in use belongs is retrieved as the front light sensor, the next step of the instruction can be triggered.
[0134] In step S31b, the backlight data is determined based on the first ambient light data, the second ambient light data, and the front light sensitivity change threshold.
[0135] The first ambient light data is the new weighted ambient light data collected by the front light sensor, and the second ambient light data is the new weighted ambient light data collected by the rear light sensor. The backlight data to be used is determined by the relationship between these two data and the front light sensor change threshold.
[0136] In the embodiment of the present disclosure, the light sensor that detects the change of the new weighted ambient light data in the adjacent cycle is the front light sensor, and the backlight data currently used depends on the front new weighted ambient light V collected by the front light sensor. front When the backlight data is displayed, it is necessary to determine the backlight data based on the front light sensing data, the rear light sensing data and the front light sensing change threshold.
[0137] The method for determining backlight data is further described below in the embodiment of the present disclosure.
[0138] Figure 6 is a flow chart of a method for determining backlight data according to an exemplary embodiment. Figure 6 As shown, the following steps are included:
[0139] In step S41a, it is determined that the first ambient light data, the second ambient light data, and the front light sensitivity change threshold satisfy a first condition.
[0140] The first condition is one of the following A, B or C:
[0141] A. The brightness value corresponding to the second ambient light data is less than or equal to the brightness value corresponding to the first ambient light data, and the brightness value corresponding to the first ambient light data is less than or equal to the dimming threshold of the front light sensor.
[0142] B. The brightness value corresponding to the first ambient light data is greater than or equal to the brightness brightening threshold of the front light sensor.
[0143] C. The brightness value corresponding to the first ambient light data is greater than or equal to the brightness value corresponding to the second ambient light data.
[0144] Among them, item A means that the brightness collected by the front light sensor is higher than the brightness collected by the rear light sensor, and the brightness collected by the front light sensor is lower than the front light sensor brightness dimming threshold. That is to say, in a dark light environment, the brightness collected by the front light sensor is higher than the brightness collected by the rear light sensor. Item B means that the brightness collected by the front light sensor is higher than the preset front light sensor brightness brightening threshold, which means that in a strong light environment, the absolute brightness value collected by the front light sensor is larger. Item C means that the brightness collected by the front light sensor is higher than the brightness collected by the rear light sensor, which means that in a normal environment, the brightness value collected by the front light sensor is larger. If the first condition is met among the current first ambient light data, the second ambient light data, the front light sensor brightness variable threshold, and the front light sensor brightness dimming threshold, the next step of determining the backlight data can be triggered.
[0145] In step S41b, it is determined that the first ambient light data collected by the front light sensor is backlight data.
[0146] When the first condition is met, the backlight data to be used is determined according to the first ambient light data collected by the front light sensor.
[0147] In the disclosed embodiment, if the brightness value collected by the front light sensor is large in any environment such as a dark light environment, a strong light environment, or a normal environment, it reflects that the front light sensor is still in an environment with higher brightness, and the backlight data is still determined using the new weighted ambient light collected by the front light sensor.
[0148] Another method for determining backlight data is described below in the embodiment of the present disclosure.
[0149] Figure 7 is a flow chart of a method for determining backlight data according to an exemplary embodiment. Figure 7 As shown, the following steps are included:
[0150] In step S51a, it is determined whether the first ambient light data, the second ambient light data, and the front light sensitivity change threshold satisfy a second condition.
[0151] Among them, the second condition is that the brightness value corresponding to the first ambient light data is less than or equal to the front light sensor brightness dimming threshold, and the brightness value corresponding to the first ambient light data is less than the brightness value corresponding to the second ambient light data.
[0152] The brightness value corresponding to the first ambient light data is the new weighted ambient light of the front light sensor collected by the front light sensor, and the front light sensor brightness dimming threshold is a set low brightness light intensity value. Here, when the new weighted ambient light of the front light sensor collected by the front light sensor is lower than the dimming threshold, the ambient light intensity of the current front light sensor is weak. At the same time, the new weighted ambient light intensity of the front light sensor is lower than the current weighted ambient light of the rear light sensor collected by the rear light sensor, that is, the ambient light intensity of the current front light sensor is weaker than the ambient light intensity described by the rear light sensor. If the second condition is met between the current first ambient light data, the front light sensor brightness dimming threshold, and the second ambient light data, the next step of determining the backlight data can be triggered.
[0153] In step S51b, it is determined that the second ambient light data collected by the rear light sensor is backlight data.
[0154] When the second condition is met, the backlight data to be used is determined according to the second ambient light data collected by the rear light sensor.
[0155] In the disclosed embodiment, when the front light sensor is in a dark environment, the brightness collected by the front light sensor is lower than the brightness collected by the rear light sensor. That is, in a dark environment, if the environment where the rear light sensor is currently located is brighter, the front light sensor data based on which the current backlight data is based is switched to the rear light sensor data.
[0156] Another method for determining backlight data is described below in the embodiment of the present disclosure.
[0157] Figure 8 is a flow chart of a method for determining backlight data according to an exemplary embodiment. Figure 8 As shown, the following steps are included:
[0158] In step S61a, the light sensor that detects a change in the ambient light data in the adjacent cycles is the front light sensor, and the light sensor to which the currently used backlight data belongs is the rear light sensor.
[0159] The front light sensor detects the ambient light data and records it according to the cycle. If it is detected that the ambient light data changes in adjacent cycles, that is, the absolute value of the brightness value difference between adjacent cycles is greater than the threshold, it indicates that the brightness of the ambient light collected by the front light sensor has changed significantly in adjacent cycles. At the same time, when the light sensor to which the backlight data currently in use belongs is retrieved as the rear light sensor, the next step of the instruction can be triggered.
[0160] In step S61b, backlight data is determined based on the first ambient light data and the second ambient light data.
[0161] The first ambient light data is the new weighted ambient light data of the front light sensor collected by the front light sensor, and the second ambient light data is the current weighted ambient light data of the rear light sensor collected by the rear light sensor. The backlight data to be used is determined based on the size relationship between these two data.
[0162] In the embodiment of the present disclosure, if the absolute value of the difference between the new weighted ambient light of the front light sensor in adjacent periods is greater than a preset threshold, the ambient light data collected by the front light sensor has changed, and the backlight data currently used is obtained based on the current weighted ambient light of the rear light sensor. It is necessary to determine the backlight data by comparing the first ambient light data and the second ambient light data.
[0163] Another method for determining backlight data is described below in the embodiment of the present disclosure.
[0164] Fig. 9 is a flow chart of a method for determining backlight data according to an exemplary embodiment. Fig. 9 As shown, the following steps are included:
[0165] In step S71a, it is determined that the brightness value corresponding to the first ambient light data is greater than or equal to the brightness value corresponding to the second ambient light data.
[0166] The first ambient light data is the new weighted ambient light of the front light sensor collected by the front light sensor, and the second ambient light data is the current weighted ambient light of the rear light sensor collected by the rear light sensor. If the new weighted ambient light of the front light sensor is greater than or equal to the current weighted ambient light of the rear light sensor, the next step of the instruction can be triggered to determine the backlight data.
[0167] In step S71b, it is determined that the first ambient light data collected by the front light sensor is backlight data.
[0168] If the new weighted ambient light of the front light sensor is greater than or equal to the current weighted ambient light of the rear light sensor, the rear light sensor data based on which the current backlight data is based is switched to the front light sensor data.
[0169] In the disclosed embodiment, the light sensor currently detecting the change in ambient light is the front light sensor, and the backlight data being used is determined based on the rear backlight data. If the ambient light brightness collected by the front light sensor is higher than the ambient light brightness collected by the rear light sensor, that is, the ambient brightness of the front light sensor is higher, then the front weighted ambient light data collected by the front light sensor will be used as the basis for the backlight data to be updated.
[0170] Another method for determining backlight data is described below in the embodiment of the present disclosure.
[0171] Fig.10 is a flow chart of a method for determining backlight data according to an exemplary embodiment. Fig.10As shown, the following steps are included:
[0172] In step S81a, the light sensor that detects a change in the ambient light data in the adjacent cycle is the rear light sensor, and the light sensor to which the currently used backlight data belongs is the rear light sensor.
[0173] The rear light sensor detects the ambient light data and records it according to the cycle. If it is detected that the ambient light data changes in adjacent cycles, that is, the absolute value of the brightness value difference between adjacent cycles is greater than the threshold, it indicates that the brightness of the ambient light collected by the rear light sensor has changed significantly in adjacent cycles. At the same time, when the light sensor to which the backlight data currently in use belongs is retrieved as the rear light sensor, the next step of the instruction can be triggered.
[0174] In step S81b, the backlight data is determined based on the first ambient light data, the second ambient light data, and the rear light sensitivity change threshold.
[0175] The first ambient light data is the new weighted ambient light data of the front light sensor collected by the front light sensor, and the second ambient light data is the new weighted ambient light data of the rear light sensor collected by the rear light sensor. The backlight data to be used is determined by the relationship between these two data and the rear light sensor change threshold.
[0176] In the embodiment of the present disclosure, the light sensor that detects the change of the new weighted ambient light data in the adjacent period is the rear light sensor, and the backlight data currently used depends on the rear light sensor new weighted ambient light V collected by the rear light sensor. back When the backlight data is displayed, it is necessary to determine the backlight data based on the front light sensing data, the rear light sensing data and the rear light sensing change threshold.
[0177] Another method for determining backlight data is described below in the embodiment of the present disclosure.
[0178] Fig.11 is a flow chart of a method for determining backlight data according to an exemplary embodiment. Fig.11 As shown, the following steps are included:
[0179] In step S91a, it is determined whether the first ambient light data, the second ambient light data, and the post-light sensitivity change threshold satisfy a third condition.
[0180] The third condition is A or B or C below:
[0181] A, the brightness value corresponding to the first ambient light data is less than the brightness value corresponding to the second ambient light data, and the brightness value corresponding to the second ambient light data is less than or equal to the rear light sensor brightness dimming threshold.
[0182] B, the brightness value corresponding to the second ambient light data is greater than or equal to the brightness brightening threshold of the rear light sensor.
[0183] C, the brightness value corresponding to the second ambient light data is greater than the brightness value corresponding to the first ambient light data.
[0184] Among them, item A means that the ambient light brightness collected by the rear light sensor is higher than the ambient light brightness collected by the front light sensor, and the ambient light brightness collected by the front light sensor is lower than the brightness dimming threshold of the front light sensor. That is to say, in a dark light environment, the ambient light brightness collected by the rear light sensor is higher than the ambient light brightness collected by the front light sensor. Item B means that the ambient light brightness collected by the rear light sensor is higher than the preset rear light sensor brightness brightening threshold, which means that in a strong light environment, the absolute brightness value collected by the rear light sensor is larger. Item C means that the brightness collected by the rear light sensor is higher than the brightness collected by the front light sensor, which means that in a normal environment, the brightness value collected by the rear light sensor is larger. If the third condition can be met between the current first ambient light data, the second ambient light data, the rear light sensor brightness brightening threshold, and the rear light sensor brightness dimming threshold, the next step of determining the backlight data can be triggered.
[0185] In step S91b, it is determined that the second ambient light data collected by the rear light sensor is backlight data.
[0186] When the third condition is met, the backlight data to be used is determined according to the second ambient light data collected by the rear light sensor.
[0187] In the disclosed embodiment, if the ambient light brightness value collected by the rear light sensor is larger in any environment such as a dark light environment, a strong light environment, or a normal environment, it reflects that the rear light sensor is still in an environment with higher brightness. In this case, the new weighted ambient light collected by the rear light sensor is still used to determine the backlight data.
[0188] Another method for determining backlight data is described below in the embodiment of the present disclosure.
[0189] Fig.12 is a flow chart of a method for determining backlight data according to an exemplary embodiment. Fig.12 As shown, the following steps are included:
[0190] In step S101a, the brightness value corresponding to the second ambient light data is less than or equal to the rear light sensor brightness dimming threshold, and the brightness value corresponding to the second ambient light data is less than or equal to the brightness value corresponding to the first ambient light data.
[0191] The brightness value corresponding to the first ambient light data is the current weighted ambient light of the front light sensor collected by the front light sensor, and the brightness value corresponding to the second ambient light data is the new weighted ambient light of the rear light sensor collected by the rear light sensor. The rear light sensor brightness dimming threshold is a set low-brightness light intensity value. Here, when the rear light sensor's new weighted ambient light collected by the rear light sensor is lower than the dimming threshold, the ambient light intensity of the current rear light sensor is weak. At the same time, the intensity of the new weighted ambient light of the rear light sensor is lower than the current weighted ambient light of the front light sensor collected by the front light sensor, that is, the ambient light intensity of the current rear light sensor is weaker than the ambient light intensity of the front light sensor. If the current first ambient light data, the front light sensor brightness dimming threshold, and the second ambient light data meet the above conditions, the next step of determining the backlight data can be triggered.
[0192] In step S101b, it is determined that the first ambient light data collected by the front light sensor is backlight data.
[0193] When the above conditions are met, the backlight data to be used is determined based on the first ambient light data collected by the front light sensor.
[0194] In the disclosed embodiment, the new weighted ambient light brightness of the rear light sensor collected by the rear light sensor is lower than the rear light sensor brightness dimming threshold. At the same time, the new weighted ambient light brightness of the rear light sensor is lower than the current weighted ambient light brightness of the front light sensor. This indicates that the rear light sensor is in a dark environment and the ambient light brightness collected by the rear light sensor is lower than the ambient light brightness collected by the front light sensor. In this case, the ambient light data collected by the front light sensor will be used to determine the current backlight data.
[0195] Another method for determining backlight data is described below in the embodiment of the present disclosure.
[0196] Fig.13 FIG. 1 is a flow chart of a method for determining backlight data according to an exemplary embodiment. Fig.13 As shown, the following steps are included:
[0197] In step S111a, it is determined that the light sensor that detects a change in the ambient light data in the adjacent cycle is the rear light sensor, and the light sensor to which the currently used backlight data belongs is the front light sensor.
[0198] The rear light sensor detects the ambient light data and records it according to the cycle. If it is detected that the ambient light data changes in adjacent cycles, that is, the absolute value of the brightness value difference between adjacent cycles is greater than the threshold, it indicates that the brightness of the ambient light collected by the rear light sensor has changed significantly in adjacent cycles. At the same time, when the light sensor to which the backlight data currently in use belongs is retrieved as the front light sensor, the next step of the instruction can be triggered.
[0199] In step S111b, the backlight data is determined based on the second ambient light data and the front light sensor brightening threshold.
[0200] The second ambient light data is the new weighted ambient light data collected by the rear light sensor. The front light sensor brightening threshold is a value indicating a larger light intensity. By comparing the size relationship of these two data, the backlight data to be used is determined.
[0201] In the embodiment of the present disclosure, if the absolute value of the difference between the new weighted ambient light of the rear light sensor in adjacent periods is greater than a preset threshold, the ambient light data collected by the rear light sensor has changed, and the backlight data currently used is obtained based on the new weighted ambient light collected by the front light sensor. Therefore, the backlight data needs to be determined by comparing the first ambient light data and the second ambient light data.
[0202] Another method for determining backlight data is described below in the embodiment of the present disclosure.
[0203] Fig.14 FIG. 1 is a flow chart of a method for determining backlight data according to an exemplary embodiment. Fig.14 As shown, the following steps are included:
[0204] In step S121a, it is determined that the brightness value corresponding to the second ambient light data is greater than the front light sensor brightness brightening threshold.
[0205] The second ambient light data is the new weighted ambient light collected by the rear light sensor. The front light sensor brightening threshold is a value indicating a larger light intensity. By comparing the two data, when the brightness of the new weighted ambient light of the rear light sensor is higher, the backlight data to be used is determined.
[0206] In step S121b, it is determined that the second ambient light data collected by the rear light sensor is backlight data.
[0207] If the brightness of the new weighted ambient light of the rear light sensor is greater than the front light sensor brightness variable threshold, the rear light sensor data on which the current backlight data is based is kept and used.
[0208] In the disclosed embodiment, the environment in which the rear light sensor is located is brighter, so the backlight data is determined according to the rear light sensor's new weighted ambient light collected by the rear light sensor.
[0209] Another method for determining backlight data is described below in the embodiment of the present disclosure.
[0210] Fig.15 FIG. 1 is a flow chart of a method for determining backlight data according to an exemplary embodiment. Fig.15 As shown, the following steps are included:
[0211] In step S131a, it is determined that the light emitting device on the rear light sensing side of the terminal is in a light emitting state.
[0212] The light-emitting device is generally a flashlight, which is used for the flashlight or breathing light function. That is, it is installed on the same side of the terminal as the rear light sensor. When it emits light, the backlight data is determined according to the next step.
[0213] In step S131b, it is determined that the first ambient light data collected by the front light sensor is backlight data.
[0214] When the terminal detects that the current flash wind is in a light-emitting state, the current screen backlight data only uses the front light sensing data collected by the front light sensing.
[0215] In the disclosed embodiment, if the light emitting device on the same side as the rear light sensor of the terminal is currently in a light-emitting state, the front light sensor data collected by the front light sensor is directly used to determine the backlight data. For example, when the smartphone turns on the flashlight to be used as a flashlight or breathing light, the current screen backlight adjustment only uses the front light sensor data collected by the front light sensor to ensure that the interference caused by the current flashlight on the data collection of the rear light sensor can be avoided.
[0216] Another method for determining backlight data is described below in the embodiment of the present disclosure.
[0217] In the embodiment of the present disclosure, in order to determine the backlight data, such as Fig.16 is a flow chart of a backlight data determination method according to an exemplary embodiment. Fig.16 As shown,
[0218] When the terminal is in working state, it detects whether the rear flashlight or breathing light is currently turned on. If the rear flashlight or breathing light is turned on, the front light sensing data backlight is used.
[0219] If the rear flashlight or breathing light is not turned on, detect whether the front light sensing data and the rear light sensing data have changed.
[0220] When the front light sensing data changes, it is further determined whether the front light sensing backlight is currently being used.
[0221] If the front light sensing backlight is currently used, determine whether the front light sensing data, rear light sensing data, front light sensing brightening threshold, and front light sensing darkening threshold currently collected by the terminal meet the backlight maintenance conditions of using the front light sensing data backlight. The backlight maintenance conditions are:
[0222] The current weighted ambient light of the rear light sensor is less than or equal to the new weighted ambient light of the front light sensor, and the new weighted ambient light of the front light sensor is less than or equal to the dimming threshold of the front light sensor, or the new weighted ambient light of the front light sensor is greater than or equal to the brightening threshold of the front light sensor, or the new weighted ambient light of the front light sensor is greater than or equal to the current weighted ambient light of the rear light sensor.
[0223] If the front light sensing data, rear light sensing data, and front light sensing brightness threshold currently collected by the terminal meet the conditions for maintaining the front light sensing data backlight, then the front light sensing backlight is maintained.
[0224] If the front light sensor backlight is currently in use, then determine whether the front light sensor data, rear light sensor data, and front light sensor brightening threshold currently collected by the terminal meet the backlight switching conditions for using the front light sensor data backlight. The backlight switching conditions are: the new weighted ambient light of the front light sensor is less than or equal to the front light sensor dimming threshold, and the corresponding brightness of the new weighted ambient light of the front light sensor is less than the current weighted ambient light of the rear light sensor.
[0225] If the front light sensing data, rear light sensing data, and front light sensing brightness threshold currently collected by the terminal meet the switching conditions for using the front light sensing data backlight, then switch to using the rear light sensing backlight.
[0226] If the front light-sensing backlight is not currently in use, that is, the rear light-sensing backlight is currently in use, then the new weighted ambient light of the front light-sensing and the current weighted ambient light of the rear light-sensing are used to determine whether to switch to using the front light-sensing data backlight or to keep using the rear light-sensing data backlight.
[0227] If the new weighted ambient light of the front light sensor is greater than or equal to the current weighted ambient light of the rear light sensor, then switch to using the front light sensor data backlight, otherwise, keep using the rear light sensor data backlight.
[0228] When the rear light sensing data changes, it is further determined whether the rear light sensing backlight is currently being used.
[0229] If the rear light sensing backlight is currently used, then determine whether the front light sensing data, rear light sensing data, rear light sensing dimming threshold, and rear light sensing brightening threshold currently collected by the terminal meet the backlight maintenance conditions of using the rear light sensing data backlight, and the backlight maintenance conditions are:
[0230] The current weighted ambient light of the front light sensor is less than the new weighted ambient light of the rear light sensor, and the new weighted ambient light of the rear light sensor is less than or equal to the rear light sensor dimming threshold, or the new weighted ambient light of the rear light sensor is greater than or equal to the rear light sensor brightening threshold, or the new weighted ambient light of the rear light sensor is greater than the current weighted ambient light of the front light sensor.
[0231] If the front light sensing data, rear light sensing data, rear light sensing dimming threshold, and rear light sensing brightening threshold currently collected by the terminal meet the conditions for maintaining the use of the rear light sensing data backlight, then the rear light sensing backlight is maintained.
[0232] If the rear-light-sensing backlight is currently in use, then determine whether the front-light-sensing data, rear-light-sensing data, rear-light-sensing dimming threshold, and rear-light-sensing brightening threshold currently collected by the terminal meet the backlight switching conditions for using the rear-light-sensing data backlight. The backlight switching conditions are: the new weighted ambient light of the rear light sensor is less than or equal to the rear light sensor dimming threshold, and the corresponding brightness of the new weighted ambient light of the rear light sensor is less than or equal to the current weighted ambient light of the front light sensor.
[0233] If the front light sensing data, rear light sensing data, rear light sensing dimming threshold, and rear light sensing brightening threshold currently collected by the terminal meet the switching conditions for using the rear light sensing data backlight, then switch to using the front light sensing backlight.
[0234] If the rear light-sensing backlight is not currently in use, that is, the front light-sensing backlight is currently in use, then the need to switch to using the front light-sensing data backlight or keep using the rear light-sensing data backlight is determined by the rear light-sensing new weighted ambient light and the front light-sensing brightening threshold.
[0235] If the new weighted ambient light of the rear light sensor is greater than the brightening threshold of the front light sensor, then the backlight using the front light sensor data is maintained; otherwise, the backlight using the rear light sensor data is switched.
[0236] Based on the same concept, an embodiment of the present disclosure further provides a backlight data determination device.
[0237] It is understandable that in order to realize the above functions, the backlight data determination device provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.
[0238] Fig.17 is a block diagram of a backlight data determination device according to an exemplary embodiment. Fig.17 The device 100 includes an acquisition unit 101, a data preprocessing unit 102 and a determination unit 103.
[0239] The acquisition unit 101 is used to acquire the ambient light data collected by the front light sensor in the first cycle and the ambient light data collected by the rear light sensor in the second cycle.
[0240] The data preprocessing unit 102 is used to weight the ambient light data collected in the first cycle to obtain first ambient light data, and to weight the ambient light data collected in the second cycle to obtain second ambient light data.
[0241] The determination unit 103 is configured to determine backlight data based on the first ambient light data and the second ambient light data.
[0242] In the embodiment of the present disclosure, the determination unit 103 determines the backlight data based on the first ambient light data and the second ambient light data in the following manner:
[0243] Determine the light sensor that detects changes in ambient light data within adjacent cycles, and the light sensor to which the currently used backlight data belongs; determine the backlight data based on the first ambient light data, the second ambient light data, the light sensor that detects changes in ambient light data within adjacent cycles, and the light sensor to which the currently used backlight data belongs.
[0244] In one implementation, the determination unit 103 determines the backlight data based on the first ambient light data, the second ambient light data, the light sensor that detects changes in the ambient light data in adjacent cycles, and the light sensor to which the currently used backlight data belongs in the following manner:
[0245] In response to the light sensor detecting a change in ambient light data in an adjacent cycle being the front light sensor, and the light sensor to which the currently used backlight data belongs being the front light sensor, the backlight data is determined based on the first ambient light data, the second ambient light data, and the front light sensor change threshold.
[0246] In one implementation of the disclosed embodiment, the determination unit 103 determines the backlight data based on the first ambient light data, the second ambient light data, and the front light sensor change threshold in the following manner: in response to satisfying the first condition, determining that the first ambient light data collected by the front light sensor is the backlight data.
[0247] Among them, the first condition is:
[0248] A, the brightness value corresponding to the second ambient light data is less than or equal to the brightness value corresponding to the first ambient light data, and the brightness value corresponding to the first ambient light data is less than or equal to the dimming threshold of the front light sensor, or
[0249] B, the brightness value corresponding to the first ambient light data is greater than or equal to the front light sensor brightness brightening threshold, or
[0250] C, the brightness value corresponding to the first ambient light data is greater than or equal to the brightness value corresponding to the second ambient light data.
[0251] In one implementation of the embodiment of the present disclosure, the determination unit 103 determines the backlight data based on the first ambient light data, the second ambient light data, and the front light sensitivity change threshold in the following manner:
[0252] In response to satisfying the second condition, determining that the second ambient light data collected by the rear light sensor is backlight data;
[0253] The second condition is: the brightness value corresponding to the first ambient light data is less than or equal to the front light sensor brightness dimming threshold, and the brightness value corresponding to the first ambient light data is less than the brightness value corresponding to the second ambient light data.
[0254] In the embodiment of the present disclosure, the determination unit 103 determines the backlight data based on the first ambient light data, the second ambient light data, the light sense detecting the change of the ambient light data in the adjacent cycle, and the light sense to which the currently used backlight data belongs in the following manner:
[0255] In response to the light sensor detecting a change in ambient light data in adjacent cycles being the front light sensor and the light sensor to which the currently used backlight data belongs being the rear light sensor, the backlight data is determined based on the first ambient light data and the second ambient light data.
[0256] In one implementation of the embodiment of the present disclosure, the determination unit 103 determines the backlight data based on the first ambient light data, the second ambient light data, and the rear light sensitivity change threshold in the following manner:
[0257] In response to the brightness value corresponding to the first ambient light data being greater than or equal to the brightness value corresponding to the second ambient light data, it is determined that the first ambient light data collected by the front light sensor is backlight data.
[0258] In one implementation of the embodiment of the present disclosure, the determination unit 103 determines the backlight data based on the first ambient light data, the second ambient light data, the light sense that detects changes in the ambient light data in adjacent cycles, and the light sense to which the currently used backlight data belongs in the following manner:
[0259] In response to detecting that the light sensor of the ambient light data changes in adjacent cycles is the rear light sensor, and the light sensor to which the currently used backlight data belongs is the rear light sensor, the backlight data is determined based on the first ambient light data, the second ambient light data, and the rear light sensor change threshold.
[0260] In one implementation of the embodiment of the present disclosure, the determination unit 103 determines the backlight data based on the first ambient light data, the second ambient light data, and the rear light sensitivity change threshold in the following manner:
[0261] In response to satisfying the third condition, determining that the second ambient light data collected by the rear light sensor is backlight data;
[0262] The third condition includes:
[0263] A. The brightness value corresponding to the first ambient light data is less than the brightness value corresponding to the second ambient light data, and the brightness value corresponding to the second ambient light data is less than or equal to the brightness dimming threshold of the rear light sensor, or
[0264] B. The brightness value corresponding to the second ambient light data is greater than or equal to the brightness threshold of the rear light sensor, or
[0265] C. The brightness value corresponding to the second ambient light data is greater than the brightness value corresponding to the first ambient light data.
[0266] In one implementation of the embodiment of the present disclosure, the determination unit 103 determines the backlight data based on the first ambient light data, the second ambient light data, and the rear light sensitivity change threshold in the following manner:
[0267] In response to the brightness value corresponding to the second ambient light data being less than or equal to the brightness dimming threshold of the rear light sensor, and the brightness value corresponding to the second ambient light data being less than the brightness value corresponding to the first ambient light data, it is determined that the first ambient light data collected by the front light sensor is backlight data.
[0268] In one implementation of the embodiment of the present disclosure, the determination unit 103 determines the backlight data based on the first ambient light data, the second ambient light data, the light sense that detects changes in the ambient light data in adjacent cycles, and the light sense to which the currently used backlight data belongs in the following manner:
[0269] In response to the light sensor detecting a change in ambient light data in an adjacent cycle being the rear light sensor and the light sensor to which the currently used backlight data belongs being the front light sensor, the backlight data is determined based on the second ambient light data and a front light sensor brightness threshold.
[0270] In one implementation of the embodiment of the present disclosure, the determination unit 103 determines the backlight data based on the second ambient light data and the front light sensor brightness brightening threshold in the following manner:
[0271] In response to the brightness value corresponding to the second ambient light data being greater than the brightness brightening threshold of the front light sensor, it is determined that the first ambient light data collected by the rear light sensor is backlight data.
[0272] In the embodiment of the present disclosure, the determining unit 103 is further configured to:
[0273] In response to the light emitting device on one side of the rear light sensor installed in the terminal being in a light emitting state, it is determined that the first ambient light data collected by the front light sensor is backlight data.
[0274] Regarding the device 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.
[0275] Fig.18 2 is a block diagram of an apparatus 200 for determining backlight data according to an exemplary embodiment. The apparatus 200 may be provided as a terminal. For example, the apparatus 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc. Figure 2, the device 200 may include one or more of the following components: a processing component 202, a memory 204, a power component 206, a multimedia component 208, an audio component 210, an input / output (I / O) interface 212, a sensor component 214, and a communication component 216. The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 202 may include one or more modules to facilitate the interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate the interaction between the multimedia component 208 and the processing component 202. The memory 204 is configured to store various types of data to support the operation of the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The power component 206 provides power to various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing and distributing power for the device 200. The multimedia component 208 includes a screen that provides an output interface between the device 200 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 touch, slide, and gestures on the touch panel. The touch sensor may 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 208 includes a front camera and / or a rear camera. When the device 200 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 focal length and optical zoom capabilities. The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive external audio signals.The received audio signal may be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 further includes a speaker for outputting the audio signal. The I / O interface 212 provides an interface between the processing component 202 and the peripheral interface module, which may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button. The sensor component 214 includes one or more sensors for providing various aspects of the status assessment for the device 200. For example, the sensor component 214 may detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor component 214 may also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200, and the temperature change of the device 200. The sensor component 214 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor. The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 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 216 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 216 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.
[0276] In an exemplary embodiment, the apparatus 200 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 method.
[0277] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 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.
[0278] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "said", and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0279] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0280] It is further understood that, unless otherwise specified, "connection" includes direct connection without other components between the two, and also includes indirect connection with other elements between the two. It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order or serial order shown, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0281] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.
[0282] It should be understood that the present disclosure is not limited to the precise structures that have been 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 disclosure is limited only by the scope of the appended claims.
Claims
1. A method for determining backlight data, characterized in that: Applied to a terminal, the terminal includes a front light sensor and a rear light sensor, and the method includes: Acquire the ambient light data collected by the front light sensor in the first cycle and the ambient light data collected by the rear light sensor in the second cycle; Weighting the ambient light data collected in the first cycle to obtain first ambient light data, and weighting the ambient light data collected in the second cycle to obtain second ambient light data; Backlight data is determined based on the first ambient light data and the second ambient light data.
2. The method according to claim 1, characterized in that The determining backlight data based on the first ambient light data and the second ambient light data comprises: Determine the light sensor that detects the change of ambient light data in adjacent cycles and the light sensor to which the currently used backlight data belongs; Backlight data is determined based on the first ambient light data, the second ambient light data, a light sensor that detects a change in ambient light data in adjacent cycles, and a light sensor to which the currently used backlight data belongs.
3. The method according to claim 2, characterized in that The determining of the backlight data based on the first ambient light data, the second ambient light data, a light sensor that detects a change in the ambient light data in adjacent cycles, and a light sensor to which the currently used backlight data belongs comprises: In response to the light sensor detecting a change in ambient light data in an adjacent cycle being the front light sensor, and the light sensor to which the currently used backlight data belongs being the front light sensor, the backlight data is determined based on the first ambient light data, the second ambient light data, and the front light sensor change threshold.
4. The method according to claim 3, characterized in that The determining of backlight data based on the first ambient light data, the second ambient light data, and the front light sensitivity change threshold comprises: In response to satisfying a first condition, determining that the first ambient light data collected by the front light sensor is backlight data; The first condition includes: The brightness value corresponding to the second ambient light data is less than or equal to the brightness value corresponding to the first ambient light data, and the brightness value corresponding to the first ambient light data is less than or equal to the dimming threshold of the front light sensor, or The brightness value corresponding to the first ambient light data is greater than or equal to the front light sensor brightness brightening threshold, or The brightness value corresponding to the first ambient light data is greater than or equal to the brightness value corresponding to the second ambient light data.
5. The method according to claim 3, characterized in that The determining of backlight data based on the first ambient light data, the second ambient light data, and the front light sensitivity change threshold comprises: In response to satisfying a second condition, determining that the second ambient light data collected by the rear light sensor is backlight data; The second condition includes: the brightness value corresponding to the first ambient light data is less than or equal to the front light sensor brightness dimming threshold, and the brightness value corresponding to the first ambient light data is less than the brightness value corresponding to the second ambient light data.
6. The method according to claim 2, characterized in that The determining of the backlight data based on the first ambient light data, the second ambient light data, a light sensor that detects a change in the ambient light data in adjacent cycles, and a light sensor to which the currently used backlight data belongs comprises: In response to the light sensor detecting a change in ambient light data in adjacent cycles being the front light sensor and the light sensor to which the currently used backlight data belongs being the rear light sensor, backlight data is determined based on the first ambient light data and the second ambient light data.
7. The method according to claim 6, characterized in that The determining of backlight data based on the first ambient light data, the second ambient light data, and a rear light sensitivity change threshold comprises: In response to the brightness value corresponding to the first ambient light data being greater than or equal to the brightness value corresponding to the second ambient light data, it is determined that the first ambient light data collected by the front light sensor is backlight data.
8. The method according to claim 2, characterized in that The determining of the backlight data based on the first ambient light data, the second ambient light data, a light sensor that detects a change in the ambient light data in adjacent cycles, and a light sensor to which the currently used backlight data belongs comprises: In response to detecting that the light sensor that detects a change in ambient light data in an adjacent cycle is a rear light sensor, and the light sensor to which the currently used backlight data belongs is a rear light sensor, backlight data is determined based on the first ambient light data, the second ambient light data, and a rear light sensor change threshold.
9. The method according to claim 8, characterized in that The determining of backlight data based on the first ambient light data, the second ambient light data, and a rear light sensitivity change threshold comprises: In response to satisfying the third condition, determining that the second ambient light data collected by the rear light sensor is backlight data; The third condition includes: The brightness value corresponding to the first ambient light data is less than the brightness value corresponding to the second ambient light data, and the brightness value corresponding to the second ambient light data is less than or equal to the brightness dimming threshold of the rear light sensor, or The brightness value corresponding to the second ambient light data is greater than or equal to the brightness threshold of the rear light sensor, or The brightness value corresponding to the second ambient light data is greater than the brightness value corresponding to the first ambient light data.
10. The method according to claim 8, characterized in that The determining of backlight data based on the first ambient light data, the second ambient light data, and a rear light sensitivity change threshold comprises: In response to the brightness value corresponding to the second ambient light data being less than or equal to the brightness dimming threshold of the rear light sensor, and the brightness value corresponding to the second ambient light data being less than the brightness value corresponding to the first ambient light data, it is determined that the first ambient light data collected by the front light sensor is backlight data.
11. The method according to claim 2, characterized in that The determining of the backlight data based on the first ambient light data, the second ambient light data, a light sensor that detects a change in the ambient light data in adjacent cycles, and a light sensor to which the currently used backlight data belongs comprises: In response to the light sensor detecting a change in ambient light data in an adjacent cycle being the rear light sensor, and the light sensor to which the currently used backlight data belongs being the front light sensor, the backlight data is determined based on the second ambient light data and a brightness brightening threshold of the front light sensor.
12. The method according to claim 11, characterized in that The step of determining the backlight data based on the second ambient light data and the front light sensor brightness brightening threshold comprises: In response to the brightness value corresponding to the second ambient light data being greater than the brightness brightening threshold of the front light sensor, it is determined that the second ambient light data collected by the rear light sensor is backlight data.
13. The method according to claim 1, characterized in that The method further comprises: In response to the light emitting device on one side of the rear light sensor installed on the terminal being in a light emitting state, it is determined that the first ambient light data collected by the front light sensor is backlight data.
14. A backlight data determination device, characterized in that: Applied to a terminal, the terminal includes a front light sensor and a rear light sensor, and the backlight data determination device includes: An acquisition unit, used to acquire the ambient light data collected by the front light sensor in the first cycle and the ambient light data collected by the rear light sensor in the second cycle; A data preprocessing unit, configured to weight the ambient light data collected in the first cycle to obtain first ambient light data, and to weight the ambient light data collected in the second cycle to obtain second ambient light data; A determining unit is configured to determine backlight data based on the first ambient light data and the second ambient light data.
15. The backlight data determination device according to claim 14, characterized in that: The determining unit determines the backlight data based on the first ambient light data and the second ambient light data in the following manner: Determine the light sensor that detects the change of ambient light data in adjacent cycles and the light sensor to which the currently used backlight data belongs; Backlight data is determined based on the first ambient light data, the second ambient light data, a light sensor that detects a change in ambient light data in adjacent cycles, and a light sensor to which the currently used backlight data belongs.
16. The backlight data determination device according to claim 15, characterized in that: The determination unit determines the backlight data based on the first ambient light data, the second ambient light data, the light sensor that detects changes in the ambient light data in adjacent cycles, and the light sensor to which the currently used backlight data belongs in the following manner: In response to the light sensor detecting a change in ambient light data in an adjacent cycle being the front light sensor, and the light sensor to which the currently used backlight data belongs being the front light sensor, the backlight data is determined based on the first ambient light data, the second ambient light data, and the front light sensor change threshold.
17. The backlight data determination device according to claim 16, characterized in that: The determining unit determines the backlight data based on the first ambient light data, the second ambient light data, and the front light sensitivity change threshold in the following manner: In response to satisfying a first condition, determining that the first ambient light data collected by the front light sensor is backlight data; The first condition includes: The brightness value corresponding to the second ambient light data is less than or equal to the brightness value corresponding to the first ambient light data, and the brightness value corresponding to the first ambient light data is less than or equal to the dimming threshold of the front light sensor, or The brightness value corresponding to the first ambient light data is greater than or equal to the front light sensor brightness brightening threshold, or The brightness value corresponding to the first ambient light data is greater than or equal to the brightness value corresponding to the second ambient light data.
18. The backlight data determination device according to claim 16, characterized in that: The determination unit determines the backlight data based on the first ambient light data, the second ambient light data, and the front light sensitivity change threshold in the following manner: In response to satisfying a second condition, determining that the second ambient light data collected by the rear light sensor is backlight data; The second condition includes: the brightness value corresponding to the first ambient light data is less than or equal to the front light sensor brightness dimming threshold, and the brightness value corresponding to the first ambient light data is less than the brightness value corresponding to the second ambient light data.
19. The backlight data determination device according to claim 15, characterized in that: The determination unit determines the backlight data based on the first ambient light data, the second ambient light data, the light sensor that detects changes in the ambient light data in adjacent cycles, and the light sensor to which the currently used backlight data belongs in the following manner: In response to the light sensor detecting a change in ambient light data in adjacent cycles being the front light sensor and the light sensor to which the currently used backlight data belongs being the rear light sensor, backlight data is determined based on the first ambient light data and the second ambient light data.
20. The backlight data determination device according to claim 19, characterized in that: The determining unit determines the backlight data based on the first ambient light data, the second ambient light data, and the rear light sensitivity change threshold in the following manner: In response to the brightness value corresponding to the first ambient light data being greater than or equal to the brightness value corresponding to the second ambient light data, it is determined that the first ambient light data collected by the front light sensor is backlight data.
21. The backlight data determination device according to claim 15, characterized in that: The determination unit determines the backlight data based on the first ambient light data, the second ambient light data, the light sensor that detects changes in the ambient light data in adjacent cycles, and the light sensor to which the currently used backlight data belongs in the following manner: In response to detecting that the light sensor that detects a change in ambient light data in an adjacent cycle is a rear light sensor, and the light sensor to which the currently used backlight data belongs is a rear light sensor, backlight data is determined based on the first ambient light data, the second ambient light data, and a rear light sensor change threshold.
22. The backlight data determination device according to claim 21, characterized in that: The determining unit determines the backlight data based on the first ambient light data, the second ambient light data, and the rear light sensitivity change threshold in the following manner: In response to satisfying the third condition, determining that the second ambient light data collected by the rear light sensor is backlight data; The third condition includes: The brightness value corresponding to the first ambient light data is less than the brightness value corresponding to the second ambient light data, and the brightness value corresponding to the second ambient light data is less than or equal to the brightness dimming threshold of the rear light sensor, or The brightness value corresponding to the second ambient light data is greater than or equal to the brightness threshold of the rear light sensor, or The brightness value corresponding to the second ambient light data is greater than the brightness value corresponding to the first ambient light data.
23. The backlight data determination device according to claim 21, characterized in that: The determining unit determines the backlight data based on the first ambient light data, the second ambient light data, and the rear light sensitivity change threshold in the following manner: In response to the brightness value corresponding to the second ambient light data being less than or equal to the brightness dimming threshold of the rear light sensor, and the brightness value corresponding to the second ambient light data being less than the brightness value corresponding to the first ambient light data, it is determined that the first ambient light data collected by the front light sensor is backlight data.
24. The backlight data determination device according to claim 15, characterized in that: The determination unit determines the backlight data based on the first ambient light data, the second ambient light data, the light sensor that detects changes in the ambient light data in adjacent cycles, and the light sensor to which the currently used backlight data belongs in the following manner: In response to the light sensor detecting a change in ambient light data in an adjacent cycle being the rear light sensor, and the light sensor to which the currently used backlight data belongs being the front light sensor, the backlight data is determined based on the second ambient light data and a brightness brightening threshold of the front light sensor.
25. The backlight data determination device according to claim 24, characterized in that: The determining unit determines the backlight data based on the second ambient light data and the front light sensor brightness brightening threshold in the following manner: In response to the brightness value corresponding to the second ambient light data being greater than the brightness brightening threshold of the front light sensor, it is determined that the second ambient light data collected by the rear light sensor is backlight data.
26. The backlight data determination device according to claim 14, characterized in that: The determining unit is further configured to: In response to the light emitting device on one side of the rear light sensor installed on the terminal being in a light emitting state, it is determined that the first ambient light data collected by the front light sensor is backlight data.
27. A backlight data determination device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to execute the backlight data determination method as described in any one of claims 1 to 13.
28. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the backlight data determination method according to any one of claims 1 to 13.
Citation Information
Cited By
Vehicle screen brightness adjusting method and device, vehicle-mounted equipment and storage medium
CN119400096A
