Method and device for determining ambient illuminance

By using multiple photosensitive channel groups with isolated settings in full-screen terminal equipment to calculate ambient illumination, the problem of OLED screen self-illumination affecting automatic brightness adjustment is solved, and the calculation accuracy and user experience of ambient illumination are improved.

CN118836971AActive Publication Date: 2024-10-25BEIJING XIAOMI MOBILE SOFTWARE CO LTD

Patent Information

Application Number
CN202310449930.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-24
Publication Date
2024-10-25
Estimated Expiration
2043-04-24

AI Technical Summary

Technical Problem

There are challenges in calculating the ambient illumination of the under-screen photosensitive unit in full-screen terminal equipment. In particular, the self-illumination of the OLED screen leads to low accuracy of the ambient illumination algorithm, which affects the automatic brightness adjustment effect.

Method used

The first photosensitive unit and the second photosensitive unit are isolated and arranged to form multiple photosensitive channel groups between the first polarizing part and the OLED screen. The ambient light channel value is calculated through the detection value and the reference value, thereby determining the ambient illumination and improving calculation. Accuracy.

Benefits of technology

The calculation accuracy of ambient illumination is improved, the automatic adjustment effect of screen light is optimized, and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118836971A_ABST
    Figure CN118836971A_ABST
Patent Text Reader

Abstract

The invention relates to an ambient illuminance determination method and device, the method and device are applied to terminal equipment, a first photosensitive unit and a second photosensitive unit are arranged under a display screen of the terminal equipment, a first polarization part is arranged between the second photosensitive unit and the display screen, the first photosensitive unit is provided with a first photosensitive channel, and the second photosensitive unit is provided with a second photosensitive channel. The first light sensing unit is provided with a first light sensing channel, the second light sensing unit is provided with a second light sensing channel, the first light sensing channel and the second light sensing channel are correspondingly arranged, the corresponding first light sensing channel and second light sensing channel form a light sensing channel group, and the method comprises the following steps: determining a first detection value and a second detection value corresponding to each light sensing channel group; based on the current screen brightness, determining a first reference value and a second reference value corresponding to each photosensitive channel group in a dark environment; determining an 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; and determining the current ambient light illuminance value according to the ambient light channel value of each photosensitive channel group.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of terminal technology, and in particular to an ambient light determination method, apparatus, terminal equipment and 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 glared by 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 ambient light intensity by the photosensitive unit under the screen. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a method, an apparatus, a terminal device and a 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 being applied to a terminal device, wherein a first photosensitive unit and a second photosensitive unit are arranged under a display screen of the terminal device, the first photosensitive unit and the second photosensitive unit are arranged in isolation, and a first polarizing portion is arranged 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 the second photosensitive channels form a group of photosensitive channel groups, the method comprising:

[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] Based on the current screen brightness, determining 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 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;

[0010] The current ambient light illumination value is determined according to the ambient light channel value of each group of the photosensitive channel groups.

[0011] According to a second aspect of an embodiment of the present disclosure, there is provided an ambient light illumination determination device, which is applied to a terminal device, wherein a first photosensitive unit and a second photosensitive unit are arranged under a display screen of the terminal device, the first photosensitive unit and the second photosensitive unit are arranged in isolation, and a first polarizing portion is arranged 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 arranged correspondingly, and the corresponding first photosensitive channels and the second photosensitive channels form a group of photosensitive channels, and the device comprises:

[0012] A first determination module, used to determine the current screen brightness of the display screen;

[0013] A second determination 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;

[0014] A third determination module is used 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 group of the photosensitive channels in a dark environment;

[0015] A fourth determination module, 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;

[0016] The fifth determination 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.

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

[0018] Display screen;

[0019] 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 arranged 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, and the plurality of first photosensitive channels and the plurality of second photosensitive channels are arranged correspondingly, and the corresponding first photosensitive channels and the second photosensitive channels form a photosensitive channel group;

[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, and 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, wherein the computer program 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 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 illumination value can be determined, which can improve the calculation accuracy of the ambient light illumination, 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 present 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 under a screen in an embodiment of the present disclosure.

[0029] Figure 2 It 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 of a method for determining ambient light illumination according to an exemplary embodiment.

[0031] Figure 4The figure is a flow chart of another method for determining ambient light illumination according to an exemplary embodiment.

[0032] Figure 5 CHO provided in the embodiment of the present disclosure S1 | 黑暗 Example graph of relationship with screen brightness.

[0033] Figure 6 is a flow chart of yet another method for determining ambient light illumination according to an exemplary embodiment.

[0034] Figure 7 The figure is a block diagram of a device for determining ambient light illumination according to an exemplary embodiment.

[0035] Figure 8 The figure is a block diagram of another device for determining ambient light illumination according to an exemplary embodiment.

[0036] Fig. 9 The present invention is a block diagram of a terminal device according to an exemplary embodiment. DETAILED DESCRIPTION

[0037] The embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limitations on 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" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0038] The terms used in the disclosed embodiments are only for the purpose of describing specific embodiments, and are not intended to limit the disclosed embodiments. The singular forms "a", "an" and "the" used in the disclosed embodiments and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0039] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the disclosed embodiments, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the disclosed embodiments, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein may be interpreted as "at" or "when" or "in response to determination".

[0040] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0041] 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. For full-screen terminal devices, the photosensitive unit used to detect ambient light illumination is 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 a screen. Figure 1 As shown, a first photosensitive unit ALS1 and a second photosensitive unit ALS2 are arranged under the display screen of the terminal device, and the first photosensitive unit ALS1 and the second photosensitive unit ALS2 are isolated and arranged 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, and the plurality of first photosensitive channels and the plurality of second photosensitive channels are arranged correspondingly, and the corresponding first photosensitive channels and the second photosensitive channels form a group of photosensitive channels.

[0042] like Figure 1 As shown, a first polarizing unit is arranged between the second photosensitive unit ALS2 and the OLED (Organic Light-Emitting Diode) screen in the display screen, wherein the first polarizing unit may include a quarter wave plate and a first polarizing plate, wherein the quarter wave plate may convert circularly polarized light into linearly polarized light, so that the linearly polarized light cannot pass through the first polarizing plate, that is, by placing the first polarizing unit in front of the second photosensitive unit ALS2, the purpose of ambient light extinction is achieved in conjunction with the optical structure in the screen. The ambient light illumination is calculated by a subtraction algorithm with a proportional factor R.

[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. 1 , an example diagram of the algorithm principle and process is shown. Since a photosensitive unit (such as an ambient light sensor, etc.) includes multiple photosensitive channels, such as a visible light channel CH0 and an 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 photosensitive channel group is formed (hereinafter referred to as the first photosensitive channel group for convenience of description), and the infrared light channel CH1 in the first photosensitive unitS1 and the infrared light channel C(1 S2 A photosensitive channel group is formed (hereinafter referred to as the second photosensitive channel group for convenience of description), and its actual algorithm should be:

[0044] CH0 虚拟 =CH0 s1 -R 0 CH0 s2

[0045] CH1 虚拟 =CH1 S1 -R 1 CH1 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 comprehensive 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, while 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 and affecting the illumination calculation results, which in turn affects the effect of automatic adjustment of the screen light and the user experience.

[0054] To this end, the embodiment of the present disclosure provides a method for determining ambient light illumination, which improves this problem by improving the ambient light illumination algorithm and changing the parameters to more reliable stable values, thereby improving the accuracy of ambient light illumination calculation. Optionally, the method for determining ambient light illumination in the embodiment of the present disclosure can be applied to the scene of automatic brightness adjustment of the terminal device screen. For example, when walking from indoors to outdoors, the terminal device can adjust the screen brightness according to the collected photosensitive unit data to ensure that the user of the terminal device can see the content of the screen without affecting the use.

[0055] Figure 3 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 arranged 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 will not be 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 working modes, and each working mode is configured with a corresponding screen brightness configuration parameter. In this way, the screen brightness configuration parameter matching the current working mode can be determined according to the current working mode of the terminal device, and then the current screen brightness of the display screen can be determined according to the screen brightness configuration parameter. Alternatively, the current screen brightness of the display screen can also be determined by other methods, which is not limited in this disclosure and will not be described in detail.

[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 first photosensitive unit including a visible light channel and an infrared light channel, and the second photosensitive unit including a visible light channel and an infrared light channel as an example, 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, and 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 in a dark environment are determined.

[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 screen brightness and different channels can be constructed based on the obtained sampling data, such as a relationship curve between screen brightness and the first photosensitive channel in each photosensitive channel group, and a relationship curve between 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 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 according to 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 dual channels 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 illumination value can be determined, which can improve the calculation accuracy of the ambient light illumination, improve the automatic adjustment effect of the screen light, and optimize the user experience.

[0071] Figure 4 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 arranged 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 will not be 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 embodiments of the present disclosure, step 401 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this 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 embodiments of the present disclosure, step 402 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this 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 in a dark environment are determined.

[0078] In the embodiments of the present disclosure, step 403 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this 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 influence factor of each photosensitive channel group can be determined using a first preset formula according to 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, the second influencing factor of each photosensitive channel group is determined using a second preset formula according to 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, the ambient light channel value of each photosensitive channel group is determined using a third preset formula 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; 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, how to obtain the first preset formula, the second preset formula and the third preset formula will be described in detail below.

[0092] First, combine the conceptual formula of the scale factor 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] Substituting the zero input point (S1=S2=A=0) into equation (5) yields:

[0099]

[0100] That is, the equation is valid only when the ± sign in the equation can only be +, that is, we get:

[0101]

[0102] The L value should be the self-luminescence of the screen received by the photosensitive unit without optical film (the first photosensitive unit ALS1) when the screen is turned on in a dark environment. The T value is the reciprocal of the proportional factor R. The algorithm integrated into the ambient light channel value of each photosensitive channel group can obtain the above formula (3).

[0103] For example, 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, wherein 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 first photosensitive unit form a second photosensitive channel group. Determine the first detection value CH0 of the first photosensitive channel in the first photosensitive channel group S1 and the second detection value CH0 of the second photosensitive channel S2 , and determine the first detection value CH1 of the first photosensitive channel in the second photosensitive channel group S1 and the second detection value CH1 of the second photosensitive channel S2 Based on the current screen brightness of the display screen, determine the first reference value CH0 of the first photosensitive channel in the first photosensitive channel group in a dark environment. S1 | 黑暗 and the second reference value CH0 of the second photosensitive channel S2 | 黑暗 , and based on the current screen brightness of the display screen, determine the first reference value CH1 of the first photosensitive channel in the second photosensitive channel group in a dark environment S1 | 黑暗 and the second reference value CH1 of the second photosensitive channel S2 | 黑暗 .

[0104] According to CH0 corresponding to the first photosensitive channel group S1 | 黑暗 , using the above formula (1), calculate the influence factor a of the first photosensitive channel group 0 , and according to CH0 corresponding to the second photosensitive channel group S1 | 黑暗 , using the above formula (1), calculate the influence factor a of the first photosensitive channel group 1According to the first reference value CH0 corresponding to the first photosensitive channel group S1 | 黑暗 and the second reference value CH0 s2 | 黑暗 , using the above formula (2), the second impact factor b of the first photosensitive channel group is calculated 0 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 b of the second photosensitive channel group is calculated 1 According to the first detection value CH0 corresponding to the first photosensitive channel group S1 , the second detection value CH0 S2 、First impact factor a 0 and the second impact factor b 0 , 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 , the second detection value CH1 S2 、First impact factor a 1 and the second impact factor b 1 , 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 sampling multiple sample terminal devices set to the screen brightness in a dark environment and taking the average value. S1 | 黑暗 And taking the least squares fitting as an example, Figure 5 CHO provided in the embodiment of the present disclosure S1 | 黑暗 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 photosensitive channel in the first photosensitive channel group) and the screen brightness that is fitted based on the samples. When the algorithm is actually applied, the channel value corresponding to the point on the curve is called as the reference value to calculate the ambient light illumination according to the current brightness of the screen. It can be seen that the algorithm effectively reduces the error and improves the calculation accuracy of the ambient light illumination by calling the channel reference value corresponding to the current screen light in real time. The more sampling points and the more sample terminal devices there are, the more accurate the result. In addition to the least squares fitting given above, the data fitting scheme may also include but is not limited to linear fitting, higher-order fitting, etc., which is not limited to this in the present disclosure and will not be elaborated.

[0106] In step 407, the current ambient light illumination value is determined according to the ambient light channel value of each photosensitive channel group.

[0107] In the embodiments of the present disclosure, step 407 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0108] By implementing the embodiments of the present disclosure, the channel reference value corresponding to the current screen light can be called and the ambient light illumination can be calculated using the channel reference value, thereby improving the calculation accuracy of the ambient light illumination, improving the automatic adjustment effect of the screen light, and optimizing the user experience.

[0109] In order to further improve the calculation accuracy of ambient light illumination, the above formulas (1) to (3) can be improved and the ambient light illumination can be calculated using the improved formulas. Specifically, Figure 6 is a flowchart 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 arranged 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 will not be repeated here.

[0110] like Figure 6 As shown, the method may 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 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0113] In step 602, 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.

[0114] In the embodiments of the present disclosure, step 602 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this 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 embodiments of the present disclosure, step 603 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this 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, according to the second reference value, the third reference value and the fourth reference value corresponding to each photosensitive channel group, a fourth preset formula is used to determine the first influencing factor of each photosensitive channel group; wherein 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 the fifth preset formula according to the first reference value, the third reference value and the fourth reference value corresponding to each photosensitive channel group; wherein 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 |灭屏 is the third reference value of the first photosensitive channel in the i-th photosensitive channel group, HHi 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.

[0124] In step 607, 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.

[0125] In the embodiments of the present disclosure, step 607 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0126] In step 608, the current ambient light illumination value is determined according to the ambient light channel value of each photosensitive channel group.

[0127] In the embodiments of the present disclosure, step 608 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0128] 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 fourth preset formula and the fifth preset formula. The present disclosure can split the unified transmittance T into the transmittances of ambient light and self-luminous light (T1, T2) to further improve the accuracy of illumination calculation. The specific calculation results are as follows:

[0129]

[0130] The solution is:

[0131]

[0132] in:

[0133]

[0134] Similarly, when the zero input point (S1=S2=A=0) is substituted, equation (8) can only take +, then equation (8) is established, that is, we can get:

[0135]

[0136] Among them, the L value should be the screen self-luminescence received by the photosensitive unit without optical film material (the first photosensitive unit ALS1) when the screen is turned on in a dark environment. The T1 value is the reciprocal of the proportional factor R. The T2 value is obtained by reading the second photosensitive unit (ALS2) with optical film material (i.e., the first polarizing part) when the screen is turned off under a stable light source. In this way, the algorithm for the ambient light channel value of each photosensitive channel group can be integrated:

[0137]

[0138] in,

[0139] Among them, HH0 S1 | 黑暗 、CH0 S2 | 黑暗 、CH1 S1 | 黑暗 and CH1 S2 | 黑暗 The settings of CH0 are the same as above. S1 | 灭屏 、CH0 S2 | 灭屏 、CH1 S1 | 灭屏 and CH1 s2 | 灭屏 The corresponding T2 value should be obtained by measuring and calculating under different light sources and brightness and taking the average value.

[0140] In the embodiments of the present disclosure, the ambient light channel value of each photosensitive channel group can be calculated using the above formulas (6), (7) and (3), and then the current ambient light illumination can be calculated based on the ambient light channel value of each photosensitive channel group, which can further improve the calculation accuracy of the ambient light illumination and further improve the automatic adjustment effect of the screen light.

[0141] Figure 7 This is a block diagram of an ambient light illumination determination device according to an exemplary embodiment. It should be noted that the device can be applied to a terminal device, wherein a first photosensitive unit and a second photosensitive unit are arranged under a display screen of the terminal device, the first photosensitive unit and the second photosensitive unit are arranged in isolation, and a first polarizing portion is arranged 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 channel groups. Figure 7 The device includes: 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; 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 a possible implementation, the fourth determination module 704 determines the first influencing factor of each photosensitive channel group using a first preset formula according to the first reference value corresponding to each photosensitive channel group; wherein 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 a possible implementation, the fourth determination module 704 determines the second influencing factor of each photosensitive channel group using a second preset formula according to 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 a possible implementation, the fourth determination module 704 determines the ambient light channel value of each photosensitive channel group using a third preset formula 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; 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 determination 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 also 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 uses a fourth preset formula to determine the first influencing factor of each photosensitive channel group according to 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 | 灭屏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.

[0161] In the embodiment of the present disclosure, the fourth determination module 804 uses the fifth preset formula to determine the second influencing factor of each photosensitive channel group according to the first reference value, the third reference value and the fourth reference value corresponding to each photosensitive channel group; wherein the fifth preset formula is expressed as follows:

[0162]

[0163] 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 | 灭屏 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}, N is the number of photosensitive channel groups. Figure 8 801-805 and Figure 7 701-705 have the same function and structure.

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

[0165] Fig. 9 1 is a block diagram of a terminal device 900 according to an exemplary embodiment. For example, the terminal device 900 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.

[0166] Reference Fig. 9The 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 arranged 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 are arranged correspondingly to the plurality of second photosensitive channels, 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 operations, and recording operations. 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-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the 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 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk.

[0169] The power component 906 provides power to 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 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 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 may receive external multimedia data. Each front camera and the rear camera may 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), and when the terminal device 900 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent 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 keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, 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 the components, such as the display and keypad of the terminal device 900, and the sensor assembly 914 can also detect the position change of the terminal device 900 or a component of the terminal device 900, the presence or absence of contact between the user and the terminal device 900, the orientation or acceleration / deceleration of the terminal device 900, and the temperature change 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 acceleration sensor, 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 a processor 920 of a terminal device 900 to complete 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, comprising a computer program, which implements the steps of the above method when executed by the processor 920.

[0178] Those skilled in the art will readily appreciate other embodiments of the present invention 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 present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0179] It should be understood that the present invention is not limited to the exact construction that has 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 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 arranged under a display screen of the terminal device, the first photosensitive unit and the second photosensitive unit are arranged in isolation, and a first polarizing portion is arranged 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 the first photosensitive channels and the plurality of the second photosensitive channels are arranged correspondingly, and the corresponding first photosensitive channels and the second photosensitive channels form a group of photosensitive channels, 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; Based on the current screen brightness, determining 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 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; 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, characterized in that Determining 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 includes: Determine a first influencing factor of each group of the photosensitive channel groups according to a first reference value corresponding to each group of the photosensitive channel groups; Determine a 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; 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.

3. The method according to claim 2, characterized in that 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 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: Among them, a i is the first influencing factor of the photosensitive channel group of the i-th 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 the photosensitive channel groups.

4. The method according to claim 2, characterized in that 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 and the second reference value corresponding to each group of the photosensitive channel groups, a second preset formula is used to determine the second influencing factor of each group of the photosensitive channel groups; wherein the second preset formula is expressed as follows: Among them, b i is the second influencing factor of the photosensitive channel group of the i-th 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 the photosensitive channel groups.

5. The method according to claim 2, characterized in that 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, the ambient light channel value of each group of the photosensitive channel groups is determined by using a third preset formula; wherein the third preset formula is expressed as follows: Among them, CHi 虚拟 is the ambient light channel value of the photosensitive channel group of the i-th group, CHi S1 is the first detection value of the first photosensitive channel in the photosensitive channel group of the i-th group, CHi S2 is the second detection value of the second photosensitive channel in the photosensitive channel group of the i-th group, a i is the first influencing factor of the photosensitive channel group of the i-th 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 the photosensitive channel groups.

6. The method according to claim 2, characterized in that 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 the photosensitive channels when the display screen is in the off state.

7. The method according to claim 6, characterized in that 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, the first influencing factor of each group of the photosensitive channel groups is determined by using a fourth preset formula; wherein the fourth preset formula is expressed as follows: Among them, a i is the first influencing factor of the photosensitive channel group of the i-th group, CHi S2 | 黑暗 is the second reference value of the second photosensitive channel in the photosensitive channel group of the i-th 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 the photosensitive channel groups.

8. The method according to claim 6, characterized in that 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, the 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: Among them, b i is the second influencing factor of the photosensitive channel group of the i-th group, CHi S1 | 黑暗 is the first reference value of the first 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 the photosensitive channel groups.

9. An ambient light illumination determination device, applied to a terminal device, wherein a first photosensitive unit and a second photosensitive unit are arranged under a display screen of the terminal device, the first photosensitive unit and the second photosensitive unit are arranged in isolation, and a first polarizing unit is arranged 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 the first photosensitive channels and the plurality of the second photosensitive channels are arranged correspondingly, and the corresponding first photosensitive channels and the second photosensitive channels form a group of photosensitive channels, characterized in that: The device comprises: A first determination module, used to determine the current screen brightness of the display screen; A second determination 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 determination module is used 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 group of the photosensitive channels in a dark environment; A fourth determination module, 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; The fifth determination 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.

10. 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 arranged 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, and the plurality of first photosensitive channels and the plurality of second photosensitive channels are arranged correspondingly, and the corresponding first photosensitive channels and the 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 executable 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 8.

11. 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 as claimed in any one of claims 1 to 8.

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

  • Ambient light determination method and device, terminal equipment and storage medium

    CN113709275A

  • Color sensing ambient light sensor calibration

    US20190301932A1

  • Spectral decomposition of ambient light measurements

    US20220172676A1

Cited By

  • Ambient light detection circuit, display panel and display panel test method

    CN120213216A