Ambient light level determination method and apparatus
By setting the first photosensitive unit and the second photosensitive unit in the full-screen terminal device, using a photosensitive channel group composed of multiple photosensitive channels, and improving the algorithm to calculate the ambient light illumination, the problem of low calculation accuracy of the under-screen photosensitive unit is solved, and the automatic adjustment effect of the screen brightness and user experience are improved.
Patent Information
- Application Number
- CN202310449930.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-24
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2043-04-24
AI Technical Summary
In full-screen terminal devices, after the photosensitive unit is moved under the screen, the calculation accuracy of the ambient light illumination is reduced, affecting the automatic adjustment effect of the screen brightness and resulting in a poor user experience.
A first photosensitive unit and a second photosensitive unit are set under the display screen of the terminal device. Through the isolation setting and the polarization part, a photosensitive channel group consisting of multiple photosensitive channels is used to calculate the ambient light illumination in combination with the proportional factor and the reference value, and the algorithm is improved to improve the calculation accuracy.
The calculation accuracy of ambient light illumination has been improved, the automatic adjustment effect of screen light has been improved, and the user experience has been optimized.
Smart Images

Figure CN118836971B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal technology, and in particular to a method and apparatus for determining ambient light, a terminal device, and a storage medium. Background Art
[0002] With the advancement of technology, the screen-to-body ratio of terminal devices (such as mobile phones) is getting higher and higher. As high screen-to-body ratio becomes an important selling point of terminal devices, full-screen terminal devices (such as full-screen mobile phones) are gradually becoming the mainstream of the future market.
[0003] When a person's pupil is exposed to a high ambient light intensity, it will automatically contract to adjust the light flux. If the screen brightness of some terminal devices is too different from the ambient light intensity, the user will not be able to see the screen clearly or will feel glare from the screen. To solve this problem, the terminal device will have an automatic brightness adjustment program that automatically adjusts the screen backlight brightness of the terminal device according to the ambient light intensity detected by the photosensitive unit in the terminal device. However, for full-screen terminal devices, the photosensitive unit is moved under the screen, and since the OLED (Organic Light-Emitting Diode) screen of the full-screen terminal device is self-luminous, this also brings challenges to the calculation of the ambient light intensity by the photosensitive unit under the screen. Summary of the Invention
[0004] To overcome the problems existing in the related art, the present disclosure provides a method, apparatus, terminal device and storage medium for determining ambient light illumination.
[0005] According to a first aspect of an embodiment of the present disclosure, a method for determining ambient light illumination is provided. The method is applied to a terminal device, wherein a first photosensitive unit and a second photosensitive unit are provided under a display screen of the terminal device, the first photosensitive unit and the second photosensitive unit are isolated from each other, and a first polarizing portion is provided between the second photosensitive unit and the display screen, wherein the first photosensitive unit has a plurality of first photosensitive channels, and the second photosensitive unit has a plurality of second photosensitive channels, the plurality of first photosensitive channels and the plurality of second photosensitive channels are provided correspondingly, and the corresponding first photosensitive channels and second photosensitive channels form a photosensitive channel group, and the method includes:
[0006] determining a current screen brightness of the display screen;
[0007] Determine a first detection value of a first photosensitive channel and a second detection value of a second photosensitive channel in each group of photosensitive channels;
[0008] Determining, based on the current screen brightness, a first reference value of a first photosensitive channel and a second reference value of a second photosensitive channel in each group of photosensitive channels in a dark environment;
[0009] determine the ambient light channel value of each group of the light sensing channel groups according to the first detection value, the second detection value, the first reference value and the second reference value corresponding to each group of the light sensing channel groups;
[0010] determine the current ambient light intensity value according to the ambient light channel value of each group of the light sensing channel groups.
[0011] According to a second aspect of the embodiments of the present disclosure, an ambient light intensity determination apparatus is provided, which is applied to a terminal device, a display screen of the terminal device is provided below a first light sensing unit and a second light sensing unit, the first light sensing unit and the second light sensing unit are provided separately, and a first polarizing part is provided between the second light sensing unit and the display screen, wherein the first light sensing unit has a plurality of first light sensing channels, the second light sensing unit has a plurality of second light sensing channels, the plurality of first light sensing channels and the plurality of second light sensing channels are provided correspondingly, and corresponding first light sensing channels and second light sensing channels form a group of light sensing channel groups, and the apparatus comprises:
[0012] a first determination module, configured to determine the current screen brightness of the display screen;
[0013] a second determination module, configured to determine the first detection value of the first light sensing channel and the second detection value of the second light sensing channel in each group of the light sensing channel groups;
[0014] a third determination module, configured to determine the first reference value of the first light sensing channel and the second reference value of the second light sensing channel in each group of the light sensing channel groups in a dark environment based on the current screen brightness;
[0015] a fourth determination module, configured to determine the ambient light channel value of each group of the light sensing channel groups according to the first detection value, the second detection value, the first reference value and the second reference value corresponding to each group of the light sensing channel groups;
[0016] a fifth determination module, configured to determine the current ambient light intensity value according to the ambient light channel value of each group of the light sensing channel groups.
[0017] According to a third aspect of the embodiments of the present disclosure, a terminal device is provided, which comprises:
[0018] a display screen;
[0019] a first light sensing unit and a second light sensing unit, the first light sensing unit and the second light sensing unit are provided separately below the display screen, and a first polarizing part is provided between the second light sensing unit and the display screen, wherein the first light sensing unit has a plurality of first light sensing channels, the second light sensing unit has a plurality of second light sensing channels, the plurality of first light sensing channels and the plurality of second light sensing channels are provided correspondingly, and corresponding first light sensing channels and second light sensing channels form a group of light sensing channel groups;
[0020] at least one processor;
[0021] a memory communicatively connected to the at least one processor; wherein,
[0022] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.
[0023] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a terminal device, the terminal device is enabled to execute the method described in the first aspect above.
[0024] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, which implements the steps of the method described in the first aspect when executed by a processor.
[0025] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: the first detection value and the second detection value corresponding to each group of photosensitive channel groups can be determined; based on the current screen brightness, the first reference value and the second reference value corresponding to each group of photosensitive channel groups in a dark environment can be determined; according to the first detection value, the second detection value, the first reference value and the second reference value, the ambient light channel value of each group of photosensitive channel groups can be determined, and then according to the ambient light channel value of each group of photosensitive channel groups, the current ambient light illuminance value can be determined, which can improve the calculation accuracy of the ambient light illuminance, improve the automatic adjustment effect of the screen light, and optimize the user experience.
[0026] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0028] Figure 1 This is an example diagram of a photosensitive unit provided in an embodiment of the present disclosure being disposed under a screen.
[0029] Figure 2 This is an example diagram of the principle and process of the ambient light illumination algorithm in the related technology.
[0030] Figure 3 The figure is a flow chart showing a method for determining ambient light illumination according to an exemplary embodiment.
[0031] Figure 4is a flowchart of another ambient light illumination determination method according to an example embodiment.
[0032] Figure 5 CH0 provided for embodiments of the present disclosure S1 | 黑暗 example graph of a relationship between screen brightness and ambient light illumination.
[0033] Figure 6 is a flowchart of yet another ambient light illumination determination method according to an example embodiment.
[0034] Figure 7 is a block diagram of an ambient light illumination determination apparatus according to an example embodiment.
[0035] Figure 8 is a block diagram of another ambient light illumination determination apparatus according to an example embodiment.
[0036] Figure 9 is a block diagram of a terminal device according to an example embodiment. DETAILED DESCRIPTION
[0037] Embodiments of the present disclosure are described in detail below with reference to the accompanying drawings, wherein the same or like reference numerals in different drawings represent the same or like elements or components having the same or similar function. The embodiments described below are examples and are intended to explain the present disclosure, and should not be understood as limiting the present disclosure. In the description of the present disclosure, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" herein merely describes an association relationship of associated objects, and means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone.
[0038] The terms used in embodiments of the present disclosure are merely for the purpose of describing particular embodiments and are not intended to limit embodiments of the present disclosure. The singular forms "a," "an," and "the" used in the embodiments of the present disclosure and the appended claims are intended to include plural forms as well, unless the context clearly indicates otherwise.
[0039] It should be understood that, although the terms first, second, third, etc. can be employed in describing various information in embodiments of the present disclosure, such information should not be limited to these terms. These terms are only used to differentiate one piece of information from another piece of information of the same type. For example, a first information can also be referred to as a second information, and similarly, a second information can also be referred to as a first information, without departing from the scope of embodiments of the present disclosure. Depending on the context, the words "if' and "when" as used herein can be interpreted to mean "upon determining" or "in response to determining".
[0040] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. In the following description, when referring to the drawings, like numbers in different figures represent like or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present invention, as detailed in the appended claims.
[0041] With technological advancements, the screen-to-body ratio of devices (such as mobile phones) is increasing. As a high screen-to-body ratio becomes a key selling point for devices, full-screen devices (such as full-screen mobile phones) are gradually becoming the mainstream of the future market. For full-screen devices, the light-sensing unit used to detect ambient light levels has been moved under the screen. Figure 1 This is an example diagram of a photosensitive unit provided in an embodiment of the present disclosure being arranged under the screen. Figure 1 As shown, a first photosensitive unit ALS1 and a second photosensitive unit ALS2 are provided under the display screen of the terminal device, and the first photosensitive unit ALS1 and the second photosensitive unit ALS2 are separated by an isolating body. The first photosensitive unit ALS1 has a plurality of first photosensitive channels, and the second photosensitive unit ALS2 has a plurality of second photosensitive channels. The plurality of first photosensitive channels and the plurality of second photosensitive channels are provided in correspondence, and the corresponding first photosensitive channels and second photosensitive channels form a photosensitive channel group.
[0042] like Figure 1 As shown, a first polarizer is disposed between the second photosensitive unit ALS2 and the OLED (Organic Light-Emitting Diode) screen in the display. The first polarizer may include a quarter-wave plate and a first polarizer. The quarter-wave plate can convert circularly polarized light into linearly polarized light, preventing the linearly polarized light from passing through the first polarizer. This means that by placing the first polarizer in front of the second photosensitive unit ALS2 and cooperating with the optical structure within the screen, ambient light extinction is achieved. A subtraction algorithm with a scaling factor R is used to calculate the ambient light illumination.
[0043] However, in the ambient light illumination algorithm of the related art, the calculation process of the proportional factor is relatively rough, such as Figure 2 As shown in FIG, the principle and process of the algorithm are shown in FIG. Since the photosensitive unit (such as an ambient light sensor, etc.) contains multiple photosensitive channels, such as the visible light channel CH0 and the infrared light channel CH1, the visible light channel CH0 in the first photosensitive unit S1 and the visible light channel CH0 in the second photosensitive unit S2 A group of photosensitive channel groups is formed (hereinafter referred to as the first photosensitive channel group for the convenience of description), the infrared light channel CH1 in the first photosensitive unitS1 and the infrared light channel C(1 S2 A set of photosensitive channel groups is formed (hereinafter referred to as the second photosensitive channel group for the convenience of description). The actual algorithm should be:
[0044] CH0 虚拟 =CH0 s1 -R0CH0 s2
[0045] CH1 虚拟 =CH1 S1 -R1CH1 S2
[0046] Among them, CH0 虚拟 is the ambient light channel value of the first photosensitive channel group, CH1 虚拟 It is the ambient light channel value of the second photosensitive channel group.
[0047] The corresponding scaling factor can be calculated by lighting up the screen in a dark environment:
[0048]
[0049] Among them, CH0 S1 | 黑暗 When the screen is turned on in a dark environment, the visible light channel CH0 in the first photosensitive channel group S1 The corresponding channel value, CH0 S2 | 黑暗 When the screen is turned on in a dark environment, the visible light channel CH0 in the first photosensitive channel group S2 The corresponding channel value, CH1 S1 | 黑暗 When the screen is turned on in a dark environment, the infrared light channel CH1 in the second photosensitive channel group S1 The corresponding channel value, CH2 S2 | 黑暗 When the screen is turned on in a dark environment, the infrared light channel CH1 in the second photosensitive channel group S2 The corresponding channel value.
[0050] However, if Figure 1 The error source of R can also be characterized by the following formula:
[0051]
[0052] Wherein, T is the combined transmittance of the screen and the polarizing unit (including the first polarizing unit and the second polarizing unit).
[0053] It can be seen that in the ambient light illumination algorithm of the above-mentioned related technology, the proportional factor R is accurate when and only when the ambient light is 0. In a non-dark environment, as the screen light and ambient light change, the proportional factor R under the algorithm will also change accordingly, thus causing errors, affecting the illumination calculation results, and thus affecting the effect of automatic adjustment of the screen light and the user experience.
[0054] To this end, the embodiments of the present disclosure provide a method for determining ambient light illumination. This problem is addressed by improving the ambient light illumination algorithm and changing the parameters to more reliable and stable values, thereby improving the accuracy of ambient light illumination calculation. Optionally, the ambient light illumination determination method of the embodiments of the present disclosure can be applied to scenarios where the brightness of a terminal device screen is automatically adjusted. For example, when walking from indoors to outdoors, the terminal device can adjust the screen brightness based on the collected photosensitive unit data, ensuring that the user of the terminal device can see the content on the screen without affecting use.
[0055] Figure 3 This is a flow chart of a method for determining ambient light illumination according to an exemplary embodiment. It should be noted that the method for determining ambient light illumination is used in a terminal device. A first photosensitive unit and a second photosensitive unit are provided under the display screen of the terminal device. The relevant description of the arrangement position and structure of the first photosensitive unit and the second photosensitive unit can be found in the above Figure 1 The description shown is not repeated here.
[0056] like Figure 3 As shown, the method may include but is not limited to the following steps.
[0057] In step 301, the current screen brightness of the display screen is determined.
[0058] In one implementation, the current screen brightness of the display screen of the terminal device may be determined by the screen brightness detected by a screen brightness detection module on the terminal device.
[0059] In another implementation, the terminal device may include multiple operating modes, each of which is configured with corresponding screen brightness configuration parameters. Thus, based on the current operating mode of the terminal device, the screen brightness configuration parameters that match the current operating mode can be determined, and the current screen brightness of the display can be determined based on the screen brightness configuration parameters. Alternatively, the current screen brightness of the display can be determined using other methods, which are not limited in this disclosure and will not be further described.
[0060] In step 302 , a first detection value of a first photosensitive channel and a second detection value of a second photosensitive channel in each photosensitive channel group are determined.
[0061] In an embodiment of the present disclosure, the ambient light illumination of the environment in which the terminal device is currently located can be detected by the first photosensitive unit and the second photosensitive unit. When calculating the ambient light illumination of the environment in which the terminal device is currently located, the first detection value of the first photosensitive channel and the second detection value of the second photosensitive channel in each photosensitive channel group can be determined. For example, taking the example that the first photosensitive unit includes a visible light channel and an infrared light channel, and the second photosensitive unit includes a visible light channel and an infrared light channel, the visible light channel in the first photosensitive unit and the visible light channel in the second photosensitive unit form a first photosensitive channel group, and the infrared light channel in the first photosensitive unit and the infrared light channel in the second photosensitive unit form a second photosensitive channel group, the first detection value and the second detection value corresponding to the first photosensitive channel group can be determined, wherein the first detection value is the channel value CH0 of the visible light channel detection belonging to the first photosensitive unit. S1 The second detection value is the channel value CH0 of the visible light channel detection belonging to the second photosensitive unit S1 ; The first detection value and the second detection value corresponding to the second photosensitive channel group can be determined, wherein the first detection value is the channel value CH1 of the infrared light channel detection belonging to the first photosensitive unit s1 The second detection value is the channel value CH1 of the infrared light channel detection belonging to the second photosensitive unit S2 .
[0062] In step 303, based on the current screen brightness, a first reference value of the first photosensitive channel and a second reference value of the second photosensitive channel in each photosensitive channel group are determined in a dark environment.
[0063] Optionally, in an embodiment of the present disclosure, when a plurality of sample terminal devices set at a specified screen brightness turn on the screen in a dark environment, the first photosensitive channel and the second photosensitive channel in each corresponding photosensitive channel group can be sampled, and a relationship curve between the screen brightness and different channels can be constructed based on the obtained sampling data, such as a relationship curve between the screen brightness and the first photosensitive channel in each photosensitive channel group, and a relationship curve between the screen brightness and the second photosensitive channel in each photosensitive channel group. In this way, when determining the current screen brightness of the display screen, the first reference value of the first photosensitive channel and the second reference value of the second photosensitive channel in each photosensitive channel group in a dark environment can be determined from the relationship curve between the screen brightness and different channels based on the current screen brightness.
[0064] In step 304, the ambient light channel value of each photosensitive channel group is determined according to the first detection value, the second detection value, the first reference value, and the second reference value corresponding to each photosensitive channel group.
[0065] In an embodiment of the present disclosure, the first influencing factor and the second influencing factor corresponding to each photosensitive channel group can be determined based on the first detection value, the second detection value, the first reference value and the second reference value corresponding to each photosensitive channel group, and the ambient light channel value of each photosensitive channel group can be determined based on the first influencing factor, the second influencing factor, the first detection value and the second detection value corresponding to each photosensitive channel group.
[0066] In step 305, the current ambient light illumination value is determined according to the ambient light channel value of each photosensitive channel group.
[0067] In an embodiment of the present disclosure, a preset formula can be used to calculate the current ambient light illumination value of the environment in which the terminal device is located based on the ambient light channel value of each photosensitive channel group. The preset formula can be a linear polynomial, that is, the ambient light illumination value is calculated by the linear polynomial corresponding to each channel of the photosensitive unit. For example, taking a dual-channel as an example, the preset formula can be expressed as follows:
[0068] A=cof_CH0_virtual*H0_virtual+of_CH1_virtual*H1_virtual
[0069] Among them, CH0_virtual is the ambient light channel value of the first photosensitive channel group, is the ambient light channel value of the second photosensitive channel group, and cof_CH0_virtual and cof_CH1_virtual are known coefficients respectively.
[0070] By implementing the embodiments of the present disclosure, the first detection value and the second detection value corresponding to each photosensitive channel group can be determined; based on the current screen brightness, the first reference value and the second reference value corresponding to each photosensitive channel group in a dark environment can be determined; according to the first detection value, the second detection value, the first reference value and the second reference value, the ambient light channel value of each photosensitive channel group can be determined, and then according to the ambient light channel value of each photosensitive channel group, the current ambient light illuminance value can be determined, which can improve the calculation accuracy of the ambient light illuminance, improve the automatic adjustment effect of the screen light, and optimize the user experience.
[0071] Figure 4 This is a flow chart of another method for determining ambient light illumination according to an exemplary embodiment. It should be noted that the method for determining ambient light illumination is used in a terminal device. A first photosensitive unit and a second photosensitive unit are provided under the display screen of the terminal device. The relevant description of the arrangement position and structure of the first photosensitive unit and the second photosensitive unit can be found in the above Figure 1 The description shown is not repeated here.
[0072] like Figure 4 As shown, the method may include but is not limited to the following steps.
[0073] In step 401, the current screen brightness of the display screen is determined.
[0074] In the embodiment of the present disclosure, step 401 can be implemented in any of the ways in the embodiments of the present disclosure, which is not limited in the embodiment of the present disclosure and will not be described in detail.
[0075] In step 402 , a first detection value of a first photosensitive channel and a second detection value of a second photosensitive channel in each photosensitive channel group are determined.
[0076] In the embodiment of the present disclosure, step 402 can be implemented in any of the ways in the embodiments of the present disclosure, which is not limited in the embodiment of the present disclosure and will not be described in detail.
[0077] In step 403, based on the current screen brightness, a first reference value of the first photosensitive channel and a second reference value of the second photosensitive channel in each photosensitive channel group are determined in a dark environment.
[0078] In the embodiment of the present disclosure, step 403 can be implemented in any of the ways in the embodiments of the present disclosure, which is not limited in the embodiment of the present disclosure and will not be described in detail.
[0079] In step 404, a first influencing factor of each photosensitive channel group is determined according to a first reference value corresponding to each photosensitive channel group.
[0080] In one implementation, the first influencing factor of each photosensitive channel group can be determined using a first preset formula based on the first reference value corresponding to each photosensitive channel group. The first preset formula is expressed as follows:
[0081]
[0082] Among them, a i is the first influencing factor of the i-th photosensitive channel group, CHi S1 | 黑暗 is the first reference value of the first photosensitive channel in the i-th photosensitive channel group, i∈{1,2,…,N}, and N is the number of photosensitive channel groups.
[0083] In step 405, the second influencing factor of each photosensitive channel group is determined according to the first reference value and the second reference value corresponding to each photosensitive channel group.
[0084] In one implementation, a second preset formula is used to determine the second influencing factor of each photosensitive channel group based on the first reference value and the second reference value corresponding to each photosensitive channel group; wherein the second preset formula is expressed as follows:
[0085]
[0086] Among them, bi is the second influencing factor of the i-th photosensitive channel group, CHi S1 | 黑暗 is the first reference value of the first photosensitive channel in the i-th photosensitive channel group, CHi S2 | 黑暗 is the second reference value of the second photosensitive channel in the i-th photosensitive channel group, i∈{1,2,…,N}, and N is the number of photosensitive channel groups.
[0087] In step 406, the ambient light channel value of each photosensitive channel group is determined according to the first detection value, the second detection value, the first influencing factor, and the second influencing factor corresponding to each photosensitive channel group.
[0088] In one implementation, a third preset formula is used to determine the ambient light channel value of each photosensitive channel group based on the first detection value, the second detection value, the first influencing factor, and the second influencing factor corresponding to each photosensitive channel group; wherein the third preset formula is expressed as follows:
[0089]
[0090] Among them, CHi 虚拟 is the ambient light channel value of the i-th photosensitive channel group, CHi S1 is the first detection value of the first photosensitive channel in the i-th photosensitive channel group, CHi s2 is the second detection value of the second photosensitive channel in the i-th photosensitive channel group, a i is the first influencing factor of the i-th photosensitive channel group, b i is the second influencing factor of the i-th photosensitive channel group, i∈{1,2,…,N}, and N is the number of photosensitive channel groups.
[0091] In order to facilitate those skilled in the art to understand the embodiments of the present disclosure, the following will describe in detail how to obtain the first preset formula, the second preset formula, and the third preset formula.
[0092] First, combine the scale factor concept with the channel calculation formula to obtain a more accurate ambient light solution:
[0093]
[0094] Solving the above formula (4), we can get:
[0095]
[0096] in:
[0097]
[0098] Substitute 0 into equation (5) to get:
[0099]
[0100] That is, the ± sign in the equation can only be taken as +, and the equation is valid, that is:
[0101]
[0102] The value of L is the self-luminous light received by the light sensing unit without optical film material (first light sensing unit ALS1) when the screen is turned on in a dark environment, and the value of T is the reciprocal of the proportion factor R. The algorithm for integrating the ambient light channel value of each light sensing channel group can obtain the above equation (3).
[0103] For example, the first light sensing unit includes a visible light channel and an infrared light channel, and the second light sensing unit includes a visible light channel and an infrared light channel. Among them, the visible light channel in the first light sensing unit and the visible light channel in the second light sensing unit form a first light sensing channel group, and the infrared light channel in the first light sensing unit and the infrared light channel in the first light sensing unit form a second light sensing channel group. Determine the first detection value CH0 S1 and the second detection value CH0 S2 of the second light sensing channel of the first light sensing channel group, and determine the first detection value CH1 S1 and the second detection value CH1 S2 of the second light sensing channel of the second light sensing channel group. Based on the current screen brightness of the display screen, determine the first reference value CH0 S1 | 黑暗 and the second reference value CH0 S2 | 黑暗 of the second light sensing channel of the first light sensing channel group in a dark environment, and based on the current screen brightness of the display screen, determine the first reference value CH1 S1 | 黑暗 and the second reference value CH1 S2 | 黑暗 of the second light sensing channel of the second light sensing channel group in a dark environment.
[0104] According to CH0 S1 | 黑暗 corresponding to the first light sensing channel group, the influence factor a0 of the first light sensing channel group is calculated by using the above equation (1), and according to CH0 S1 | 黑暗 corresponding to the second light sensing channel group, the influence factor a1 of the first light sensing channel group is calculated by using the above equation (1). According to the first reference value CH0 S1 |黑暗 and the second reference value CH0 s2 | 黑暗 , using the above formula (2), the second impact factor b0 of the first photosensitive channel group is calculated. According to the first reference value CH1 corresponding to the second photosensitive channel group S1 | 黑暗 and the second reference value CH1 S2 | 黑暗 , using the above formula (2), the second impact factor b1 of the second photosensitive channel group is calculated. According to the first detection value CH0 corresponding to the first photosensitive channel group S1 , second detection value CH0 S2 , the first influencing factor a0 and the second influencing factor b0, using the above formula (3), the ambient light channel value CH0 of the first photosensitive channel group is calculated 虚拟 According to the first detection value CH1 corresponding to the second photosensitive channel group S1 , second detection value CH1 S2 , the first influencing factor a1 and the second influencing factor b1, using the above formula (3), the ambient light channel value CH1 of the second photosensitive channel group is calculated 虚拟 .
[0105] Among them, CH0 S1 | 黑暗 、CH0 S2 | 黑暗 、CH1 S1 | 黑暗 and CH1 S2 | 黑暗 It should be a value that changes with the screen brightness of the terminal device, and the value corresponding to a screen brightness should be: obtained by taking the average value of multiple sample terminal devices set to the screen brightness in a dark environment with the screen on. S1 | 黑暗 Taking the least squares fitting as an example, Figure 5 CHO provided in the embodiment of the present disclosure S1 | 黑暗 An example diagram of the relationship between and screen brightness. Figure 5As shown, the dots are the sampling average values of different terminal devices under the set brightness, and the straight line is the relationship curve between the channel (such as the first light sensing channel in the first light sensing channel group) and the screen brightness according to the sample fitting. In actual application of the algorithm, the channel value corresponding to the point on the curve is called as the reference value according to the current screen brightness to calculate the ambient light intensity. As can be seen, the algorithm effectively reduces the error and improves the calculation accuracy of the ambient light intensity by calling the channel reference value corresponding to the current screen light in real time, and the more the sampling points and the more the sample terminal devices, the more accurate the result. In addition to the least square fitting method given above, the data fitting scheme can include but is not limited to linear fitting, high-order fitting, etc., and the present disclosure does not limit this, and will not be described again.
[0106] In step 407, the current ambient light intensity value is determined according to the ambient light channel value of each group of light sensing channel groups.
[0107] In the embodiments of the present disclosure, step 407 can be implemented in any of the embodiments of the present disclosure, and the present disclosure does not limit this, and will not be described again.
[0108] By implementing the embodiments of the present disclosure, the channel reference value corresponding to the current screen light can be called to calculate the ambient light intensity through the channel reference value, which can improve the calculation accuracy of the ambient light intensity, improve the screen light automatic adjustment effect, and optimize the user experience.
[0109] In order to further improve the calculation accuracy of the ambient light intensity, the above formula (1) to formula (3) can be improved, and the ambient light intensity is calculated by using the improved formula. Specifically, Figure 6 is a flow chart of another ambient light intensity determination method according to an example embodiment. It should be noted that the ambient light intensity determination method is used in a terminal device, and the display screen of the terminal device is provided with a first light sensing unit and a second light sensing unit. The related description of the setting position and structure of the first light sensing unit and the second light sensing unit can be referred to the description of the above Figure 1 As shown, the method can include but is not limited to the following steps.
[0110] As shown in Figure 6 , the method can include but is not limited to the following steps.
[0111] In step 601, the current screen brightness of the display screen is determined.
[0112] In the embodiments of the present disclosure, step 601 can be implemented in any of the embodiments of the present disclosure, and the present disclosure does not limit this, and will not be described again.
[0113] In step 602, the first detection value of the first light sensing channel and the second detection value of the second light sensing channel in each group of light sensing channel groups are determined.
[0114] In the embodiment of the present disclosure, step 602 can be implemented in any of the ways in the embodiments of the present disclosure, which is not limited in the embodiment of the present disclosure and will not be described in detail.
[0115] In step 603, based on the current screen brightness, a first reference value of the first photosensitive channel and a second reference value of the second photosensitive channel in each photosensitive channel group in a dark environment are determined.
[0116] In the embodiment of the present disclosure, step 603 can be implemented in any of the ways in the embodiments of the present disclosure, which is not limited in the embodiment of the present disclosure and will not be described in detail.
[0117] In step 604, the third reference value of the first photosensitive channel and the fourth reference value of the second photosensitive channel in each photosensitive channel group when the display screen is in the off state are determined.
[0118] In step 605, a first influencing factor of each photosensitive channel group is determined using a fourth preset formula based on the second reference value, the third reference value, and the fourth reference value corresponding to each photosensitive channel group. The fourth preset formula is expressed as follows:
[0119]
[0120] Among them, a i is the first influencing factor of the i-th photosensitive channel group, CHi S2 | 黑暗 is the second reference value of the second photosensitive channel in the i-th photosensitive channel group, CHi S1 | 灭屏 is the third reference value of the first photosensitive channel in the i-th photosensitive channel group, CHi S2 | 灭屏 is the fourth reference value of the second photosensitive channel in the i-th photosensitive channel group, i∈{1,2,…,N}, and N is the number of photosensitive channel groups.
[0121] In step 606, the second influencing factor of each photosensitive channel group is determined using a fifth preset formula based on the first reference value, the third reference value, and the fourth reference value corresponding to each photosensitive channel group. The fifth preset formula is expressed as follows:
[0122]
[0123] Among them, b i is the second influencing factor of the i-th photosensitive channel group, CHi S1 | 黑暗 is the first reference value of the first photosensitive channel in the i-th photosensitive channel group, CHi S1 |灭屏 HHi is a third reference value of a first photosensitive channel in the i-th group of photosensitive channel groups, i∈{1, 2, …, N}, N is a number of the photosensitive channel groups. S2 | 灭屏 HHi is a fourth reference value of a second photosensitive channel in the i-th group of photosensitive channel groups, i∈{1, 2, …, N}, N is a number of the photosensitive channel groups.
[0124] In step 607, according to the first detection value, the second detection value, the first influence factor and the second influence factor corresponding to each group of photosensitive channel groups, the ambient light channel value of each group of photosensitive channel groups is determined.
[0125] In the embodiments of the present disclosure, step 607 can be implemented in any of the embodiments of the present disclosure respectively, and the present disclosure does not limit this and will not be repeated.
[0126] In step 608, according to the ambient light channel value of each group of photosensitive channel groups, the current ambient light intensity value is determined.
[0127] In the embodiments of the present disclosure, step 608 can be implemented in any of the embodiments of the present disclosure respectively, and the present disclosure does not limit this and will not be repeated.
[0128] In order to facilitate those skilled in the art to understand the embodiments of the present disclosure, how to obtain the fourth preset formula and the fifth preset formula will be introduced in detail below. The present disclosure can split the uniform transmittance T into the transmittance of ambient light and self-luminous light (T1, T2) respectively, in order to further improve the illumination calculation accuracy, and the specific calculation result is as follows:
[0129]
[0130] Solving:
[0131]
[0132] Wherein:
[0133]
[0134] Similarly, the zero input point (S1=S2=A=0) is brought into, equation (8) can only take +, equation (8) is established, that is, the following can be obtained:
[0135]
[0136] Wherein, the L value should be the self-luminous light of the screen received by the light sensing unit without optical film material (first light sensing unit ALS1) when the screen is turned on in a dark environment, the T1 value is the inverse of the proportion factor R, and the T2 value is obtained by reading the second light sensing unit (ALS2) of the second light sensing unit with optical film material (i.e. the first polarizing part) under the condition of turning off the screen under a stable light source. Thus, the algorithm of the ambient light channel value of each group of light sensing channels can be integrated:
[0137]
[0138] Wherein,
[0139] Wherein, HH0 S1 | 黑暗 , CH0 S2 | 黑暗 , CH1 S1 | 黑暗 and CH1 S2 | 黑暗 The settings of CH0 S1 | 灭屏 , CH0 S2 | 灭屏 , CH1 S1 | 灭屏 and CH1 s2 | 灭屏 The corresponding T2 value should be obtained by measuring and calculating under different light sources and different brightness and taking the average value.
[0140] In the embodiments of the present disclosure, the ambient light channel value of each group of light sensing channels can be calculated by using the above formula (6), formula (7) and formula (3), and then the current ambient light intensity can be calculated according to the ambient light channel value of each group of light sensing channels, which can further improve the calculation accuracy of the ambient light intensity and further improve the screen light automatic adjustment effect.
[0141] Figure 7 is a block diagram of an ambient light intensity determination device according to an example embodiment. It should be noted that the device can be applied to a terminal device, and the terminal device is provided with a first light sensing unit and a second light sensing unit below the display screen of the terminal device. The first light sensing unit and the second light sensing unit are isolated, and the second light sensing unit is provided with a first polarizing part between the second light sensing unit and the display screen. The first light sensing unit has a plurality of first light sensing channels, the second light sensing unit has a plurality of second light sensing channels, the plurality of first light sensing channels and the plurality of second light sensing channels are correspondingly arranged, and the corresponding first light sensing channel and the second light sensing channel form a group of light sensing channels. For reference Figure 7 The device comprises a first determination module 701, a second determination module 702, a third determination module 703, a fourth determination module 704 and a fifth determination module 705.
[0142] The first determining module 701 is configured to determine the current screen brightness of the display screen.
[0143] The second determination module 702 is configured to determine a first detection value of a first photosensitive channel and a second detection value of a second photosensitive channel in each photosensitive channel group.
[0144] The third determination module 703 is configured to determine, based on the current screen brightness, a first reference value of the first photosensitive channel and a second reference value of the second photosensitive channel in each photosensitive channel group in a dark environment.
[0145] The fourth determination module 704 is configured to determine the ambient light channel value of each photosensitive channel group according to the first detection value, the second detection value, the first reference value and the second reference value corresponding to each photosensitive channel group.
[0146] In one implementation, the fourth determination module 704 can determine the first influencing factor of each photosensitive channel group based on the first reference value corresponding to each photosensitive channel group; determine the second influencing factor of each photosensitive channel group based on the first reference value and the second reference value corresponding to each photosensitive channel group; and determine the ambient light channel value of each photosensitive channel group based on the first detection value, the second detection value, the first influencing factor and the second influencing factor corresponding to each photosensitive channel group.
[0147] In one possible implementation, the fourth determination module 704 determines the first influencing factor of each photosensitive channel group using a first preset formula based on the first reference value corresponding to each photosensitive channel group. The first preset formula is expressed as follows:
[0148]
[0149] Among them, a i is the first influencing factor of the i-th photosensitive channel group, CHi S1 | 黑暗 is the first reference value of the first photosensitive channel in the i-th photosensitive channel group, i∈{1,2,…,N}, and N is the number of photosensitive channel groups.
[0150] In one possible implementation, the fourth determination module 704 determines the second influencing factor of each photosensitive channel group using a second preset formula based on the first reference value and the second reference value corresponding to each photosensitive channel group; wherein the second preset formula is expressed as follows:
[0151]
[0152] Among them, b i is the second influencing factor of the i-th photosensitive channel group, CHi S1 | 黑暗is the first reference value of the first photosensitive channel in the i-th photosensitive channel group, CHi S2 | 黑暗 is the second reference value of the second photosensitive channel in the i-th photosensitive channel group, i∈{1,2,…,N}, and N is the number of photosensitive channel groups.
[0153] In one possible implementation, the fourth determination module 704 determines the ambient light channel value of each photosensitive channel group using a third preset formula based on the first detection value, the second detection value, the first influencing factor, and the second influencing factor corresponding to each photosensitive channel group; wherein the third preset formula is expressed as follows:
[0154]
[0155] Among them, CHi 虚拟 is the ambient light channel value of the i-th photosensitive channel group, CHi S1 is the first detection value of the first photosensitive channel in the i-th photosensitive channel group, CHi S2 is the second detection value of the second photosensitive channel in the i-th photosensitive channel group, a i is the first influencing factor of the i-th photosensitive channel group, b i is the second influencing factor of the i-th photosensitive channel group, i∈{1,2,…,N}, and N is the number of photosensitive channel groups.
[0156] The fifth determining module 705 is configured to determine the current ambient light illumination value according to the ambient light channel value of each photosensitive channel group.
[0157] Optionally, in some embodiments of the present disclosure, Figure 8 As shown, the device may further include: a sixth determination module 806, used to determine the third reference value of the first photosensitive channel and the fourth reference value of the second photosensitive channel in each group of photosensitive channels when the display screen is in the off state.
[0158] In the embodiment of the present disclosure, the fourth determination module 804 determines the first influencing factor of each photosensitive channel group using a fourth preset formula based on the second reference value, the third reference value, and the fourth reference value corresponding to each photosensitive channel group; wherein the fourth preset formula is expressed as follows:
[0159]
[0160] Among them, a i is the first influencing factor of the i-th photosensitive channel group, CHi S2 | 黑暗 is the second reference value of the second photosensitive channel in the i-th photosensitive channel group, CHi S1 | 灭屏CHi is a third reference value of the first photosensitive channel in the ith group of photosensitive channel groups, CHi S2 灭屏 CHi is a fourth reference value of the second photosensitive channel in the ith group of photosensitive channel groups, i∈{1, 2, …, N}, N is the number of the groups of photosensitive channels.
[0161] In the embodiments of the present disclosure, the fourth determining module 804 determines the second influence factor of each group of photosensitive channel groups according to the first reference value, the third reference value and the fourth reference value corresponding to each group of photosensitive channel groups, by using a fifth preset formula; wherein the fifth preset formula is expressed as follows:
[0162]
[0163] wherein, b i CHi is a second influence factor of the ith group of photosensitive channel groups, CHi S1 黑暗 CHi is a first reference value of the first photosensitive channel in the ith group of photosensitive channel groups, CHi S1 灭屏 CHi is a third reference value of the first photosensitive channel in the ith group of photosensitive channel groups, CHi S2 灭屏 CHi is a fourth reference value of the second photosensitive channel in the ith group of photosensitive channel groups, i∈{1, 2, …, N}, N is the number of the groups of photosensitive channels. Wherein, Figure 8 The modules 801-805 and the modules 701-705 have the same functions and structures. Figure 7 The modules 801-805 and the modules 701-705 have the same functions and structures.
[0164] As to the apparatus in the above-described embodiments, the specific manners in which various modules perform operations have been described in detail in the embodiments of the method, and will not be described herein in detail.
[0165] Figure 9 is a block diagram of a terminal device 900 according to an exemplary embodiment. The terminal device 900 can be, for example, 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.
[0166] Referring to Figure 9 The terminal device 900 may include a first photosensitive unit and a second photosensitive unit, the first photosensitive unit and the second photosensitive unit are isolated and arranged under the display screen, and a first polarizing portion is provided between the second photosensitive unit and the display screen, wherein the first photosensitive unit has a plurality of first photosensitive channels, the second photosensitive unit has a plurality of second photosensitive channels, the plurality of first photosensitive channels and the plurality of second photosensitive channels are arranged correspondingly, and the corresponding first photosensitive channels and second photosensitive channels form a group of photosensitive channels. The terminal device 900 may also include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.
[0167] The processing component 902 generally controls the overall operation of the terminal device 900, such as operations associated with display, phone calls, data communications, camera operation, and recording. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-described method. In addition, the processing component 902 may include one or more modules to facilitate interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
[0168] The memory 904 is configured to store various types of data to support operations on the terminal device 900. Examples of such data include instructions for any application or method operating on the terminal device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0169] The power component 906 provides power to the various components of the terminal device 900. The power component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the terminal device 900.
[0170] The multimedia component 908 includes a screen that provides an output interface between the terminal device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the terminal device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0171] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), which is configured to receive external audio signals when the terminal device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0172] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.
[0173] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the terminal device 900. For example, the sensor assembly 914 can detect the open / closed state of the terminal device 900, the relative positioning of components, such as the display and keypad of the terminal device 900. The sensor assembly 914 can also detect changes in the position of the terminal device 900 or a component of the terminal device 900, the presence or absence of user contact with the terminal device 900, the orientation or acceleration / deceleration of the terminal device 900, and temperature changes of the terminal device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0174] The communication component 916 is configured to facilitate wired or wireless communication between the terminal device 900 and other devices. The terminal device 900 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 916 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 916 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.
[0175] In an exemplary embodiment, the terminal device 900 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.
[0176] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the terminal device 900 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.
[0177] In an exemplary embodiment, a computer program product is also provided, including a computer program, which implements the steps of the above method when executed by the processor 920.
[0178] Other embodiments of the present invention will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the invention being indicated by the following claims.
[0179] It should be understood that the present invention is not limited to the exact construction described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A method for determining ambient light illumination, the method being applied to a terminal device, wherein a first photosensitive unit and a second photosensitive unit are provided under a display screen of the terminal device, the first photosensitive unit and the second photosensitive unit are provided in isolation, and a first polarizing portion is provided between the second photosensitive unit and the display screen, wherein the first photosensitive unit has a plurality of first photosensitive channels, and the second photosensitive unit has a plurality of second photosensitive channels, the plurality of first photosensitive channels and the plurality of second photosensitive channels are provided correspondingly, and the corresponding first photosensitive channels and second photosensitive channels form a photosensitive channel group, characterized in that: The method comprises: determining a current screen brightness of the display screen; Determine a first detection value of a first photosensitive channel and a second detection value of a second photosensitive channel in each group of photosensitive channels; Determining, based on the current screen brightness, a first reference value of a first photosensitive channel and a second reference value of a second photosensitive channel in each group of photosensitive channels in a dark environment; Determine the first influencing factor of each group of the photosensitive channel groups based on the first reference value; determine the second influencing factor of each group of the photosensitive channel groups using a second preset formula based on the first reference value and the second reference value; determine the ambient light channel value of each group of the photosensitive channel groups based on the first detection value, the second detection value, the first influencing factor and the second influencing factor corresponding to each group of the photosensitive channel groups; wherein the second preset formula is expressed as follows: in, For the i The second impact factor of the photosensitive channel group, For the i a first reference value of the first photosensitive channel in the photosensitive channel group; For the i a second reference value of the second photosensitive channel in the photosensitive channel group, , N is the number of the photosensitive channel groups; The current ambient light illumination value is determined according to the ambient light channel value of each group of the photosensitive channel groups.
2. The method according to claim 1, wherein Determining the first influencing factor of each group of the photosensitive channel groups according to the first reference value includes: According to the first reference value corresponding to each group of the photosensitive channel groups, a first preset formula is used to determine the first influencing factor of each group of the photosensitive channel groups; wherein the first preset formula is expressed as follows: in, For the i The first impact factor of the photosensitive channel group, For the i a first reference value of the first photosensitive channel in the photosensitive channel group; , N is the number of the photosensitive channel groups.
3. The method according to claim 1, wherein Determining the ambient light channel value of each photosensitive channel group according to the first detection value, the second detection value, the first influencing factor and the second influencing factor corresponding to each photosensitive channel group includes: According to the first detection value, the second detection value, the first influencing factor, and the second influencing factor corresponding to each group of the photosensitive channel groups, a third preset formula is used to determine the ambient light channel value of each group of the photosensitive channel groups; wherein the third preset formula is expressed as follows: in, For the i The ambient light channel value of the photosensitive channel group, For the i a first detection value of the first photosensitive channel in the photosensitive channel group; For the i a second detection value of a second photosensitive channel in the photosensitive channel group, For the i The first impact factor of the photosensitive channel group, For the i The second impact factor of the photosensitive channel group, , N is the number of the photosensitive channel groups.
4. The method according to claim 1, wherein The method further comprises: Determine the third reference value of the first photosensitive channel and the fourth reference value of the second photosensitive channel in each group of photosensitive channels when the display screen is in the off state.
5. The method according to claim 4, wherein Determining the first influencing factor of each group of the photosensitive channel groups according to the first reference value corresponding to each group of the photosensitive channel groups includes: According to the second reference value, the third reference value and the fourth reference value corresponding to each group of the photosensitive channel groups, a fourth preset formula is used to determine the first influencing factor of each group of the photosensitive channel groups; wherein the fourth preset formula is expressed as follows: in, For the i The first impact factor of the photosensitive channel group, For the i a second reference value of the second photosensitive channel in the photosensitive channel group, For the i a third reference value of the first photosensitive channel in the photosensitive channel group, For the i a fourth reference value of the second photosensitive channel in the photosensitive channel group, , N is the number of the photosensitive channel groups.
6. The method according to claim 4, wherein Determining the second influencing factor of each group of the photosensitive channel groups according to the first reference value and the second reference value corresponding to each group of the photosensitive channel groups includes: According to the first reference value, the third reference value, and the fourth reference value corresponding to each group of the photosensitive channel groups, a fifth preset formula is used to determine the second influencing factor of each group of the photosensitive channel groups; wherein the fifth preset formula is expressed as follows: in, For the i The second impact factor of the photosensitive channel group, For the i a first reference value of the first photosensitive channel in the photosensitive channel group; For the i a third reference value of the first photosensitive channel in the photosensitive channel group, For the i a fourth reference value of the second photosensitive channel in the photosensitive channel group, , N is the number of the photosensitive channel groups.
7. An ambient light illumination determination device, applied to a terminal device, wherein a first photosensitive unit and a second photosensitive unit are provided under a display screen of the terminal device, the first photosensitive unit and the second photosensitive unit are provided in isolation, and a first polarizing portion is provided between the second photosensitive unit and the display screen, wherein the first photosensitive unit has a plurality of first photosensitive channels, and the second photosensitive unit has a plurality of second photosensitive channels, the plurality of first photosensitive channels and the plurality of second photosensitive channels are provided correspondingly, and the corresponding first photosensitive channels and second photosensitive channels form a photosensitive channel group, characterized in that: The device comprises: A first determination module, configured to determine the current screen brightness of the display screen; A second determining module is used to determine a first detection value of a first photosensitive channel and a second detection value of a second photosensitive channel in each group of photosensitive channels; a third determining module, configured to determine, based on the current screen brightness, a first reference value of a first photosensitive channel and a second reference value of a second photosensitive channel in each group of photosensitive channels in a dark environment; The fourth determination module is used to determine the first influencing factor of each group of the photosensitive channel groups based on the first reference value; determine the second influencing factor of each group of the photosensitive channel groups using a second preset formula based on the first reference value and the second reference value; and determine the ambient light channel value of each group of the photosensitive channel groups based on the first detection value, the second detection value, the first influencing factor, and the second influencing factor corresponding to each group of the photosensitive channel groups; wherein the second preset formula is expressed as follows: in, For the i The second impact factor of the photosensitive channel group, For the i a first reference value of the first photosensitive channel in the photosensitive channel group; For the i a second reference value of the second photosensitive channel in the photosensitive channel group, , N is the number of the photosensitive channel groups; The fifth determining module is used to determine the current ambient light illumination value according to the ambient light channel value of each group of the photosensitive channel groups.
8. A terminal device, characterized in that: include: Display screen; a first photosensitive unit and a second photosensitive unit, wherein the first photosensitive unit and the second photosensitive unit are isolated and arranged under the display screen, and a first polarizing portion is provided between the second photosensitive unit and the display screen, wherein the first photosensitive unit has a plurality of first photosensitive channels, and the second photosensitive unit has a plurality of second photosensitive channels, the plurality of first photosensitive channels and the plurality of second photosensitive channels are provided correspondingly, and the corresponding first photosensitive channels and second photosensitive channels form a photosensitive channel group; at least one processor; a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that When the instructions in the storage medium are executed by a processor of a terminal device, the terminal device is enabled to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Ambient light detection method, apparatus, electronic device and storage medium
CN109855727A
Ambient light detection method and device, storage medium and mobile terminal
CN112229507A