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

By setting up a photosensitive device under the display screen of a full-screen mobile phone, and using multiple photosensitive channel groups to determine the ambient light illuminance value, the problem of the front camera being disturbed by screen light is solved, and the stability of the ambient light illuminance value and the shooting effect are improved.

CN113709275BActive Publication Date: 2024-11-05BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 19 Cites 0 Cited by

Patent Information

Application Number
CN202010436269.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-21
Publication Date
2024-11-05
Estimated Expiration
2040-05-21

AI Technical Summary

Technical Problem

In full-screen mobile phones, the front-facing camera is easily disturbed by screen light, resulting in unstable shooting effects. The existing technology algorithms can eliminate screen light with poor robustness or low computing efficiency, which affects the user experience.

Method used

By setting a photosensitive device under the display screen of the terminal device, including a first photosensitive unit and a second photosensitive unit, it receives the screen light and ambient light of the display screen, and uses multiple photosensitive channel groups to determine the ambient light illuminance value to eliminate the screen light on the camera. The influence of the ambient light illumination value ensures the stability of the ambient light illumination value.

Benefits of technology

It effectively avoids the impact of changes in the display content on the ambient light illuminance value, improves the stability of the shooting effect and the control stability of the terminal equipment, and ensures that the output ambient light illuminance value fluctuates less and has high robustness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113709275B_ABST
    Figure CN113709275B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an ambient light determination method, device, terminal device and storage medium. A photosensitive device is provided under the display screen of the terminal device. The photosensitive device includes a first photosensitive unit and a second photosensitive unit. The first photosensitive unit has a plurality of first photosensitive channels, and the second photosensitive unit has a plurality of second photosensitive channels. The corresponding first photosensitive channels and second photosensitive channels form a group of photosensitive channel groups. Under ambient light irradiation, the method includes: obtaining a reference ambient light illumination value; determining a plurality of ambient light channel values ​​of a plurality of photosensitive channel groups under a plurality of preset photosensitive parameters respectively; determining the current ambient light illumination value according to the reference ambient light illumination value and the plurality of ambient light channel values. When the method in the present disclosure is used to determine the ambient light of a terminal device with a full screen, the illumination value of the ambient light outputted finally has small fluctuation and better stability, which effectively avoids the influence of the illumination value of the output ambient light on the content change displayed on the display screen of the terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of smart devices, and in particular to an ambient light determination method, device, terminal device and storage medium. Background Art

[0002] With the advancement of technology, the screen-to-body ratio of mobile phones and other terminal devices is getting higher and higher. As the screen-to-body ratio becomes an important selling point of mobile phones, full-screen mobile phones are gradually becoming the mainstream of the future mobile phone market.

[0003] In order to achieve a true 100% screen-to-body ratio and obtain better shooting effects, it is necessary to solve the problem that the front camera of the mobile phone is easily disturbed by screen light in order to obtain stable and accurate ambient light parameters. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides an ambient light determination method, apparatus, terminal device and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an ambient light determination method, which is applied to a terminal device including a full screen, wherein a photosensitive device is provided under a display screen of the terminal device, wherein the photosensitive device includes a first photosensitive unit and a second photosensitive unit, wherein the first photosensitive unit is configured to receive all screen light of the display screen and ambient light of an environment in which the terminal device is located, and wherein the second photosensitive unit is configured to receive polarized screen light of the display screen after polarization, wherein the first photosensitive unit has a plurality of first photosensitive channels, and the second photosensitive unit has a plurality of second photosensitive channels, wherein the plurality of first photosensitive channels and the plurality of second photosensitive channels are provided correspondingly, and the corresponding first photosensitive channels and the second photosensitive channels form a group of photosensitive channel groups, and wherein the method includes:

[0006] Get the reference ambient light illumination value;

[0007] Determine multiple ambient light channel values ​​of multiple photosensitive channel groups under multiple preset photosensitive parameters respectively;

[0008] A current ambient light illumination value is determined according to the reference ambient light illumination value and the multiple ambient light channel values.

[0009] Optionally, determining the current ambient light illumination value according to the reference ambient light illumination value and the multiple ambient light channel values ​​includes:

[0010] According to the multiple ambient light channel values, respectively determine the detection illumination value under each of the preset photosensitivity parameters;

[0011] Differences are calculated between the plurality of detected illumination values ​​and the reference ambient light illumination value to obtain a plurality of difference values;

[0012] The detected illuminance value corresponding to the difference value with the smallest absolute value among the multiple differences is determined as the current ambient light illuminance value.

[0013] Optionally, the method for determining the plurality of preset photosensitivity parameters includes:

[0014] In the absence of ambient light, the control display screen displays a variety of monochromatic lights respectively;

[0015] Under each monochromatic light, respectively obtain the first channel value of the first photosensitive channel and the second channel value of the second photosensitive channel in each photosensitive channel group;

[0016] According to the first channel value and the second channel value corresponding to each group of photosensitive channels under each monochromatic light, the preset photosensitive parameters of each group of photosensitive channels under each monochromatic light are determined.

[0017] Optionally, determining the preset photosensitivity parameters of each group of photosensitivity channels under each monochromatic light according to the first channel value and the second channel value corresponding to each group of photosensitivity channels under each monochromatic light includes:

[0018] Under each monochromatic light, the ratio of the first channel value to the second channel value corresponding to each group of photosensitive channels is used as the preset photosensitive parameter of the group of photosensitive channels under the monochromatic light.

[0019] Optionally, in the absence of ambient light, controlling the display screen to display a variety of monochromatic lights includes:

[0020] In the absence of ambient light, the control display screen displays four monochromatic lights: red, green, blue and white.

[0021] Optionally, the method further comprises:

[0022] The reference ambient light illumination value is updated according to the current ambient light illumination value.

[0023] Preferably, the reference ambient light illumination value is a first average value of N consecutive ambient light illumination values ​​adjacent to the current ambient light illumination value, and updating the reference ambient light illumination value according to the current ambient light illumination value includes:

[0024] Determine a second average value of N-1 ambient light illumination values ​​adjacent to the current ambient light illumination value, starting from the current ambient light illumination value;

[0025] The reference ambient light illumination value is updated according to the second average value.

[0026] According to a second aspect of an embodiment of the present disclosure, there is provided an ambient light determination device, which is applied to a terminal device including a full screen, wherein a photosensitive device is arranged under the display screen of the terminal device, wherein the photosensitive device comprises a first photosensitive unit and a second photosensitive unit, wherein the first photosensitive unit is configured to receive all screen light of the display screen and ambient light of the environment in which the terminal device is located, and the second photosensitive unit is configured to receive polarized screen light of the display screen after polarization, wherein the first photosensitive unit has a plurality of first photosensitive channels, and the second photosensitive unit has a plurality of second photosensitive channels, wherein 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, wherein the device comprises:

[0027] An acquisition module is used to obtain a reference ambient light illumination value;

[0028] A test module, used to determine multiple ambient light channel values ​​of multiple photosensitive channel groups under multiple preset photosensitive parameters;

[0029] The determination module is further used to determine the current ambient light illumination value according to the reference ambient light illumination value and the multiple ambient light channel values.

[0030] Optionally, the determining module is specifically used to:

[0031] According to the multiple ambient light channel values, respectively determine the detection illumination value under each of the preset photosensitivity parameters;

[0032] Differences are calculated between the plurality of detected illumination values ​​and the reference ambient light illumination value to obtain a plurality of difference values;

[0033] The detected illuminance value corresponding to the difference value with the smallest absolute value among the multiple differences is determined as the current ambient light illuminance value.

[0034] Optionally, the test module includes:

[0035] A display control unit, used for controlling the display screen to display a plurality of monochromatic lights respectively in the absence of ambient light;

[0036] A test acquisition unit, used for respectively acquiring a first channel value of a first photosensitive channel and a second channel value of a second photosensitive channel in each photosensitive channel group under each monochromatic light;

[0037] The test determination unit is used to determine the preset photosensitivity parameters of each group of photosensitivity channels under each monochromatic light according to the first channel value and the second channel value corresponding to each group of photosensitivity channels under each monochromatic light.

[0038] Optionally, the test determination unit is specifically used to:

[0039] Under each monochromatic light, the ratio of the first channel value to the second channel value corresponding to each group of photosensitive channels is used as the preset photosensitive parameter of the group of photosensitive channels under the monochromatic light.

[0040] Optionally, the display control unit is specifically used to:

[0041] In the absence of ambient light, the control display screen displays four monochromatic lights: red, green, blue and white.

[0042] Optionally, the device further comprises:

[0043] An updating module is used to update the reference ambient light illumination value according to the current ambient light illumination value.

[0044] Optionally, the reference ambient light illumination value is a first average value of N consecutive ambient light illumination values ​​adjacent to the current ambient light illumination value, and the updating module is specifically configured to:

[0045] Determine a second average value of N-1 ambient light illumination values ​​adjacent to the current ambient light illumination value, starting from the current ambient light illumination value;

[0046] The reference ambient light illumination value is updated according to the second average value.

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

[0048] processor;

[0049] a memory for storing executable instructions for the processor;

[0050] Wherein, the processor is configured to execute the ambient light determination method as described above.

[0051] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory 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 ambient light determination method as described above.

[0052] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: when the method in the present disclosure is used to determine the ambient light of a terminal device with a full screen, the illuminance value of the ambient light finally outputted has small fluctuations and better stability, effectively avoiding the influence of changes in content displayed on the display screen of the terminal device on the illuminance value of the output ambient light.

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

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

[0055] Figure 1 It is a schematic diagram of the under-screen camera setting of a terminal device with a full screen shown in the related art.

[0056] Figure 2 It is a schematic diagram of the wavelength distribution of various lights in the natural environment shown in the related art.

[0057] Figure 3 It is a schematic diagram of the wavelength distribution of light that can be detected by the photosensitive element shown in the related art.

[0058] Figure 4 It is a schematic diagram of an application scenario of the ambient light determination method in the present disclosure.

[0059] Figure 5 It is a schematic diagram of the working principle of the polarizing unit in the application scenario of the present disclosure.

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

[0061] Figure 7 is a flow chart of a method for determining ambient light according to another exemplary embodiment.

[0062] Figure 8 is a flow chart of a method for determining ambient light according to another exemplary embodiment.

[0063] Fig. 9 is a flow chart of a method for determining ambient light according to another exemplary embodiment.

[0064] Fig.10 is a block diagram of an ambient light determination device according to an exemplary embodiment.

[0065] Fig.11 is a block diagram of an ambient light determining device according to another exemplary embodiment.

[0066] Fig.12 is a block diagram of an ambient light determining device according to another exemplary embodiment.

[0067] Fig.13 It is a block diagram of a terminal device according to an exemplary embodiment. DETAILED DESCRIPTION

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

[0069] With the advancement of technology, the screen-to-body ratio of mobile phones and other terminal devices is getting higher and higher. As the screen-to-body ratio becomes an important selling point for mobile phones, full-screen mobile phones are gradually becoming the mainstream of the future mobile phone market. Then, in order to achieve a true 100% screen-to-body ratio and obtain better shooting effects, it is necessary to solve the problem that the front camera of the mobile phone is easily disturbed by the screen light.

[0070] Relevant research shows that the impact of full screen on the shooting effect of the front camera is mainly reflected in the following two aspects: first, the transmittance of the display screen is low, and the camera under the screen cannot obtain enough natural light; second, the display screen itself emits light, causing the photo effect of the camera under the screen to be whitish and unclear.

[0071] Among them, the problem of low light transmittance of the display screen can be solved by increasing the screen transmittance and increasing the size and light sensitivity of the photosensitive element. For example, using an OLED screen with a high light transmittance can ensure that the under-screen camera receives enough natural light. Figure 1 As shown, in order to prevent the screen from reflecting when the user is using the OLED screen, the top layer of the OLED screen (refer to Figure 1 A first polarizing unit 1' is provided (in the middle direction), and an encap glass 2', an organic self-luminous layer 3' and a TFT glass substrate 4' are provided below it in sequence. Natural light in the external environment passes through the first polarizing unit 1' of the OLED screen and enters the under-screen camera.

[0072] For the problem that the display screen's own light affects the camera's shooting effect, an algorithm can be used to eliminate the effect of the screen light on the under-screen camera. In the related art, an algorithm is used to eliminate the effect of screen light on the under-screen camera. If the algorithm used is simple, the robustness and computational efficiency of the algorithm are poor, and it is impossible to effectively eliminate the effect of the light emitted by the OLED display screen itself on the under-screen camera; if the algorithm used is too complex, it will reduce the processing speed of the mobile phone. For example, when the amount of data transmitted by the under-screen camera is large, especially during video calls, an overly complex algorithm will significantly increase the power consumption of the system, causing the phone to become stuck and the user experience to be poor. This requires that the algorithm used to eliminate the effect of screen light on the under-screen camera must have good robustness and achieve better results, while the algorithm should not be too complex.

[0073] The main method to eliminate the impact of screen light on the under-screen camera is to set a photosensitive element under the screen, and determine the illumination value of natural light through an algorithm based on the detection results of the photosensitive element for use when shooting with the under-screen camera. However, due to the hardware structure of the photosensitive element itself, when different content is displayed on the display screen of the terminal device, the photosensitive element responds differently to the different colors of light displayed on the display screen. This causes the data detected by the photosensitive element to fluctuate when the content displayed on the display screen keeps changing, affecting the accuracy of the illumination value of the ambient light that is finally output, and further affecting the effect of the graphics captured by the under-screen camera.

[0074] In order to solve the above problems, we first need to understand the impact of different colors of light on the data output by the photosensitive element. Related technology shows that the light in the natural environment contains a variety of different wavelengths of light, such as Figure 2 As shown in the figure, the light in the natural environment is divided into Gamma rays, X-rays, Ultraviolet, Infrared, Microwaves, Radio waves and visible light according to different wavelengths. The specific wavelength ranges of various lights are as follows: Figure 2 As shown in , the wavelength range of visible light is 380nm to 780nm.

[0075] The photosensitive element is used to detect the illumination value of light, such as Figure 3 As shown, the wavelength range that the photosensitive element can detect is from 380nm to 980nm. In the above wavelength range, in addition to visible light, it also includes some infrared light, that is, in addition to the illumination value of visible light, the photosensitive element can also detect some infrared light. Figure 3 It can be seen that the wavelength band of visible light that the photosensitive element can respond to is mainly concentrated in the range of 380nm to 680nm. The wavelength bands of each monochromatic light in the visible light are also different. For example, when the monochromatic light is blue light, its wavelength band is mainly concentrated in 380nm to 580nm, and the normalized responsivity of the photosensitive element to blue light is lower; when the monochromatic light is green light, its wavelength band is mainly concentrated in 480nm to 680nm, and the normalized responsivity of the photosensitive element to green light is higher; when the monochromatic light is red light, its wavelength band is mainly concentrated in 580nm to 680nm, and the normalized responsivity of the photosensitive element to red light is between blue light and green light.

[0076] Since the normalized responsivity of the photosensitive element to monochromatic light of different bands is different, when the content displayed on the display screen of the terminal device changes, the band of light received by the photosensitive element arranged under the screen changes, causing the response of the photosensitive element to the received light to change, and thus causing the illuminance value of the ambient light finally used in the control process of the terminal device to fluctuate continuously due to the different content displayed on the display screen, affecting the accuracy of the illuminance value of the ambient light, and further affecting the control process related to the illuminance value of the ambient light.

[0077] In order to solve the above problems, the present disclosure proposes a method for determining ambient light to eliminate the impact of changes in the content displayed on the display screen on the illuminance value of the ambient light applied in the control process of the terminal device, thereby ensuring that the illuminance value of the ambient light applied in the control process of the terminal device is more stable and more accurate, and ensuring the control stability and reliability of the terminal device.

[0078] In order to facilitate the description of the ambient light determination method in the present disclosure, the application scenario of the ambient light determination method in the present disclosure is first described.

[0079] like Figure 4 As shown, the photosensitive device in the present disclosure can be arranged in the camera 1, and the camera 1 is arranged under the display screen 2, and the display screen 2 can be, for example, an OLED screen. Of course, it can be understood that the photosensitive device in the present disclosure can also be independently arranged outside the camera 1, and the photosensitive device is arranged under the display screen 2.

[0080] The display screen 2 includes a first polarizing unit 21 and an organic self-luminous layer 22. When the screen of the terminal device is facing upward and in a flat state, the first polarizing unit 21 is located above the organic self-luminous layer 22, and the camera 1 is arranged below the organic self-luminous layer 22. The photosensitive element includes a first photosensitive element 11 and a second photosensitive element 12. The first photosensitive element 11 and the second photosensitive element 12 are in the same environment, and the light that can be received by both is also the same.

[0081] The camera 1 further includes a second polarizing unit 13, which is disposed upstream of the second photosensitive element 12 along the light incident direction of the second photosensitive element 12. Figure 4, that is, the second polarizing part 13 is arranged above the second photosensitive element 12. There is a predetermined angle between the transmission direction of the first polarizing part 21 and the transmission direction of the second polarizing part 13. The first photosensitive element 11 receives the screen light of the display screen 2 and the first polarized ambient light incident through the first polarizing part 21, and the second photosensitive element 12 receives the screen light of the display screen and the second polarized ambient light incident through the first polarizing part 21 and the second polarizing part 13. Among them, the first polarizing part 21 can be a first polarizer, and the second polarizing part 13 can be a second polarizer. The transmission direction of the first polarizer and the transmission direction of the second polarizer have a predetermined angle. The predetermined angle is not specifically limited in this embodiment. The purpose of setting the predetermined angle is to prevent the second photosensitive element 12 from receiving natural light and only receiving screen light; or, the second photosensitive element 12 only receives a small amount of natural light and receives all screen light. The angle of the predetermined angle can be selected according to the actual situation in the implementation process, as long as it is ensured that it does not affect the shooting effect of the camera 1.

[0082] Reference Figure 5 , the working principle of the first polarizing unit 21 and the second polarizing unit 13 is described below. Three identical natural light beams A, B, and C pass through the polarizer P, and the transmission vibration direction of the polarizer P is in the vertical direction. The light beam A becomes the first vertical polarized light with the vibration direction in the vertical direction. The background plate M can receive the light and is bright. The light beam B passes through the polarizer P and the polarizer Q, wherein the transmission vibration directions of the polarizer P and the polarizer Q are both in the vertical direction. After passing through the polarizer P, the light beam B becomes the first vertical polarized light with the vibration direction in the vertical direction. Since the transmission vibration direction of the polarizer Q is the same as the vibration direction of the first vertical polarized light, the first vertical polarized light becomes the second vertical polarized light after passing through the polarizer Q. The background plate M can still receive the light and is bright. Beam C of light passes through polarizer P and polarizer Q, wherein polarizer P is in a vertical direction, and polarizer Q is in a horizontal state, and its vibration transmission direction is a horizontal direction. After passing through polarizer P, beam C of light becomes a first vertical polarized light with a vibration direction along the vertical direction. Since the vibration transmission direction of polarizer Q is a horizontal direction, only light waves vibrating along the horizontal direction can propagate through polarizer Q, while the first vertical polarized light vibrates along the vertical direction and cannot pass through polarizer Q. Therefore, the first vertical polarized light is completely filtered after passing through polarizer Q, and the background plate M cannot receive light, so the background plate M is dark.

[0083] Reference Figure 4 and Figure 5, if the first polarizing unit 21 is a polarizer P, and the second polarizing unit 13 is a polarizer Q, when there is an angle between the transmission direction of the first polarizing unit 21 and the transmission direction of the second polarizing unit 13, after the ambient light in the environment passes through the first polarizing unit 21 and the second polarizing unit 13 in sequence, only a small amount of ambient light can be received by the second photosensitive element 12, which can be ignored. Then in this embodiment, the first photosensitive element 11 receives the screen light of the display screen 2 and the first polarized ambient light incident through the first polarizing unit 21, and the second photosensitive element 12 receives the screen light of the display screen 2 and the second polarized ambient light incident through the first polarizing unit 21 and the second polarizing unit 13. Since the second polarized ambient light is very small and can be ignored, it can be considered that almost all of the light received by the second photosensitive element 12 is screen light.

[0084] The ambient light determination method disclosed in the present invention can effectively improve the influence of the content displayed on the display screen on the illuminance value of the ambient light, thereby obtaining an ambient light illuminance value with small fluctuation and better stability. Even when the content displayed on the display screen of the terminal device changes, the illuminance value of the ambient light determined by the ambient light determination method disclosed in the present invention is still very robust, thereby ensuring that the control process related to ambient light in the terminal device is more stable and reliable.

[0085] The ambient light determination method in the present disclosure is described below with a specific embodiment. In an exemplary embodiment, the ambient light determination method in the present embodiment is applied to a terminal device with a full screen, that is, a light sensing device and a camera are arranged under the display screen of the terminal device. Figure 4 , the photosensitive device in this embodiment includes a first photosensitive unit 11 and a second photosensitive unit 12. The first photosensitive unit 11 is configured to receive all screen light from the display screen and the ambient light of the environment in which the terminal device is located, and the second photosensitive unit 12 is configured to receive polarized screen light from the display screen after polarization. Among them, since there is no polarizing part on the first photosensitive unit, and the first photosensitive unit is arranged below the display screen, the first photosensitive unit can receive all screen light generated by the display screen and the ambient light of the environment in which the terminal device is located. The second photosensitive unit 12 is provided with a second polarizing part 13, and the display screen is provided with a first polarizing part 21. The first polarizing part 21 and the second polarizing part 13 work together, and ideally, all the ambient light of the terminal device will be filtered out (for specific distance, please refer to the above, which will not be repeated here). Therefore, the second photosensitive unit 12 can only receive the polarized screen light of the display screen filtered by the second polarizing part 13.

[0086] In the present embodiment, the first photosensitive unit 11 has a plurality of first photosensitive channels, and the second photosensitive unit 12 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 channel groups. In one example, the first photosensitive unit 11 includes two first photosensitive channels A1 and A2, and the second photosensitive unit 12 also includes two photosensitive units B1 and B2. The corresponding arrangement of the first photosensitive element 11 and the second photosensitive element 12 means that the number of photosensitive channels of the first photosensitive unit 11 and the second photosensitive unit 12 is equal. The first photosensitive channel A1 and the second photosensitive channel B1 form a first photosensitive channel group, and the first photosensitive channel A2 and the second photosensitive channel B2 form a second photosensitive channel group. Of course, it can be understood that in this example, only the first photosensitive element and the second photosensitive element with two photosensitive channels are shown. In addition, the first photosensitive element and the second photosensitive element can also have four photosensitive channels respectively, or five photosensitive channels respectively, as long as the number of photosensitive channels of the first photosensitive element and the second photosensitive element is equal.

[0087] like Figure 6 As shown, in an environment with ambient light, the ambient light determination method in this embodiment includes:

[0088] S110: Obtain a reference ambient light illumination value.

[0089] In this step, the reference ambient light illumination value may be constantly changing, for example, the reference ambient light illumination value is updated each time the ambient light illumination value is re-determined. The reference ambient light illumination value may also be a preset value pre-stored in the memory of the terminal device, and the preset value remains unchanged. During implementation, the device may be configured according to different versions of the terminal device.

[0090] S120, determining multiple ambient light channel values ​​of multiple photosensitive channel groups under multiple preset photosensitive parameters.

[0091] In this step, in order to comprehensively consider the influence of the content displayed on the display screen on the photosensitive channels of the first photosensitive unit and the second photosensitive unit, it is necessary to determine the ambient light channel values ​​of multiple photosensitive channel groups under different preset photosensitive parameters. The preset photosensitive parameters are related to the wavelength band of the light emitted by the content displayed on the display screen, so as to determine the ambient light channel value of the photosensitive channel group under the wavelength band corresponding to the light emitted by the content displayed on the display screen, so as to use the ambient light channel values ​​under different preset photosensitive parameters in the subsequent process of determining the illumination value of the ambient light, reduce the influence of the content displayed on the display screen on the determined illumination value of the ambient light, and avoid fluctuations in the determined illumination value of the ambient light.

[0092] In one example, a first photosensitive unit and a second photosensitive unit having two photosensitive channels are taken as an example. In this example, two photosensitive channel groups are included, and the first photosensitive channel A1 and the second photosensitive channel B1 form a first photosensitive channel group, and the first photosensitive channel A2 and the second photosensitive channel B2 form a second photosensitive channel group. Therefore, under each preset photosensitive parameter, two ambient light channel values ​​can be determined, namely, the first ambient light channel value corresponding to the first photosensitive channel group and the second ambient light channel value corresponding to the second photosensitive channel group. When the preset photosensitive parameters are four, a total of eight ambient light channel values ​​can be determined.

[0093] S130: Determine a current ambient light illumination value according to a reference ambient light illumination value and a plurality of ambient light channel values.

[0094] In this step, as in step S120, a total of eight ambient light channel values ​​can be determined, and the two ambient light channel values ​​under each preset photosensitive parameter can determine the detection illuminance value detected by the photosensitive device composed of the first photosensitive unit and the second photosensitive unit under the preset photosensitive parameter. Therefore, a total of four detection illuminance values ​​under four preset photosensitive parameters can be determined.

[0095] The reference ambient light illumination value is then compared with the detected illumination values ​​under four preset light-sensing parameters to determine the current ambient light illumination value.

[0096] In this embodiment, multiple preset photosensitivity parameters are taken into consideration when determining the ambient light channel value. The preset photosensitivity parameters are related to the wavelength band of light emitted by the content displayed on the display screen, so as to determine the ambient light channel value of the photosensitive channel group in the wavelength band corresponding to the light emitted by the content displayed on the display screen, thereby avoiding fluctuations in the ambient light illumination value caused by the content displayed on the display screen in the subsequent process of determining the ambient light illumination value.

[0097] In another exemplary embodiment, the method in this embodiment is used to further define step S130 in the above embodiment. Figure 7 As shown, the method in this embodiment includes:

[0098] S210: Determine the detection illumination value under each preset light sensitivity parameter according to multiple ambient light channel values.

[0099] In this step, the first photosensitive unit and the second photosensitive unit having two photosensitive channels in the above embodiment are taken as an example. In this embodiment, two photosensitive channel groups are included, namely, the first photosensitive channel A1 and the second photosensitive channel B1 form a first photosensitive channel group, and the first photosensitive channel A2 and the second photosensitive channel B2 form a second photosensitive channel group, and each photosensitive channel group corresponds to an ambient light channel value. Under each preset photosensitive parameter, the detection illumination value under the preset photosensitive parameter can be determined according to the first ambient light channel value corresponding to the first photosensitive channel group of the photosensitive device and the second ambient light channel value corresponding to the second photosensitive channel group. The photosensitive unit has multiple photosensitive channels, and it is a common technical means known to those skilled in the art to finally determine the illumination value of the detected light according to the photosensitive channels. Therefore, the method of determining the detection illumination value under the preset photosensitive parameter according to the first ambient light channel value corresponding to the first photosensitive channel group of the photosensitive device and the second ambient light channel value corresponding to the second photosensitive channel group is not repeated here.

[0100] At the same time, since there are multiple preset photosensitivity parameters, the detection illuminance value corresponding to the preset photosensitivity parameter can be determined under each preset photosensitivity parameter. Therefore, this step can ultimately obtain multiple detection illuminance values, and the detection illuminance values ​​correspond to the preset photosensitivity parameters, that is, each preset photosensitivity parameter corresponds to a detection illuminance value.

[0101] S220 , respectively calculating differences between the plurality of detected illuminance values ​​and the reference ambient light illuminance value to obtain a plurality of difference values.

[0102] In this step, calculating the difference between the multiple detected illuminance values ​​and the reference ambient light illuminance value respectively means subtracting the reference ambient light illuminance value from each detected illuminance value to obtain multiple difference values, which may be positive, negative or zero.

[0103] In an example, the detected illuminance values ​​include C1, C2, C3, and C4, the difference between C1 and the reference ambient light illuminance value is 3, the difference between C2 and the reference ambient light illuminance value is 1, the difference between C3 and the reference ambient light illuminance value is 0, and the difference between C4 and the reference ambient light illuminance value is -2.

[0104] S230 , determining a detected illuminance value corresponding to a difference value having the smallest absolute value among the multiple differences as the current ambient light illuminance value.

[0105] In this step, when selecting one from multiple detected illuminance values ​​as the current ambient light illuminance value, the absolute value of the difference in step S220 is used as a reference. When making a selection, the detected illuminance value corresponding to the difference with the smallest absolute value of the difference is selected as the current ambient light illuminance value to avoid a large fluctuation between the output current ambient light illuminance value and the ambient light illuminance outputted last time.

[0106] In one example, as shown in step S220, the difference between C1 and the reference ambient light illumination value is 3, and the corresponding absolute value is 3; the difference between C2 and the reference ambient light illumination value is 1, and the corresponding absolute value is 1; the difference between C3 and the reference ambient light illumination value is 0, and the corresponding absolute value is 0; the difference between C4 and the reference ambient light illumination value is -2, and the corresponding absolute value is 2. Therefore, the detected illumination value C3 is selected as the current ambient light illumination value.

[0107] In this embodiment, the reference ambient light illumination value is used as a reference, and the detection illumination value with the minimum difference between the reference ambient light illumination value and the detection illumination value corresponding to the plurality of preset light-sensitive parameters is determined as the current ambient light illumination value output, so that the mobile terminal can perform operations related to ambient light. Since the selected detection illumination value has the minimum absolute value of the difference between the detection illumination value and the reference ambient light illumination value, it is possible to effectively avoid significant fluctuations in the output current ambient light illumination value, and the stability and reliability are higher.

[0108] In another exemplary embodiment, the reference ambient light illumination value in this embodiment is the first average value of N consecutive ambient light illumination values ​​adjacent to the current ambient light illumination value, wherein N can be, for example, 16, or 10, or 20, etc., and can be set according to actual conditions during implementation. When N is 10, the first average value of 10 consecutive ambient light illumination values ​​adjacent to the current ambient light illumination value and forward along the time axis. For example, the current ambient light illumination value is M, the Nth ambient light illumination value that is adjacent to the current ambient light illumination value and located before the current ambient light illumination value and has been output is the 10th, and then the N-1th ambient light illumination value that has been output is the 9th, and so on, the N-9th ambient light illumination value that has been output is the 1st, and these 10 ambient light illumination values ​​output before the current ambient light illumination value are summed and averaged to obtain a first average value, which is the reference ambient light illumination value.

[0109] For example, before outputting the current ambient light illumination value, 10 ambient light illumination values ​​have been output, namely Y1, Y2, Y3, Y4, Y5, Y6, Y7, Y8, Y9, and Y10. The first average value is the average value obtained by summing Y1, Y2, Y3, Y4, Y5, Y6, Y7, Y8, Y9, and Y10. The first average value is the reference ambient light illumination value.

[0110] In order to further improve the stability and reliability of the ambient light illumination value, after determining the current ambient light illumination value, this embodiment will update the reference ambient light illumination value according to the current ambient light illumination value. Figure 8 As shown, the method for updating the reference ambient light illumination value according to the current ambient light illumination value includes:

[0111] S310: Determine an average value of N-1 ambient light illumination values ​​adjacent to the current ambient light illumination value.

[0112] The average value in this step is the second average value. Referring to the example of determining the first average value above, when determining the second average value, the current ring light illumination value and the consecutive ambient light illumination values ​​from the 10th to the 2nd that have been output before the current ambient light illumination value on the time axis are summed, and the second average value is obtained after further averaging calculation.

[0113] For example, before the current ambient light illumination value is output, 10 ambient light illumination values ​​have been output, namely Y1, Y2, Y3, Y4, Y5, Y6, Y7, Y8, Y9, and Y10, and the output current ambient light illumination is Y11. When calculating the second average value, the sum of Y2, Y3, Y4, Y5, Y6, Y7, Y8, Y9, Y10, and Y11 is taken, and the average value is calculated. This average value is the second average value, which is the reference ambient light illumination value used next time the current ambient light illumination value is determined.

[0114] S320: Update the reference ambient light illumination value according to the average value.

[0115] In this step, the method of updating the reference ambient light illumination value according to the average value refers to directly replacing the first average value with the second average value as the reference ambient light illumination value for use as a reference when determining the current ambient light illumination value next time.

[0116] Here, it should be noted that after the current ambient light illumination value, when the ambient light in the environment where the terminal device is located changes, the current ambient light illumination value needs to be re-determined. That is, each time the current ambient light illumination value is output, the reference ambient light illumination value needs to be re-determined for reference when the current ambient light illumination value is determined next time.

[0117] In another exemplary embodiment, Fig. 9 As shown, this embodiment defines a method for determining a plurality of preset light-sensing parameters, and the method in this embodiment includes:

[0118] S410: In the absence of ambient light, control the display screen to display a plurality of monochromatic lights.

[0119] In this step, in order to ensure the accuracy of the determined preset photosensitivity parameters, the first photosensitive element and the second photosensitive element of the photosensitive device can be placed in a dark environment, such as a dark room, to minimize the ambient light received by the photosensitive elements. Ideally, the external ambient light received by the photosensitive elements is zero, that is, the photosensitive elements can only receive light from the display screen and will not be affected by the external ambient light, so as to ensure that the influence of the multiple monochromatic lights displayed on the display screen on the illumination value detected by the photosensitive elements can be accurately reflected.

[0120] The monochromatic light may be red, green, blue, and white. The four monochromatic lights and the black screen state are commonly used by those skilled in the art to determine the display effect of the screen. However, since the photosensitive device cannot receive the light of the content displayed on the display screen in the black screen state, the black screen state is abandoned in this embodiment.

[0121] S420, under each monochromatic light, respectively obtain the first channel value of the first photosensitive channel and the second channel value of the second photosensitive channel in each photosensitive channel group.

[0122] As in step S410, monochromatic light includes four types: red, green, blue, and white. Taking the first sensing unit and the second sensing unit with dual channels as an example, the present embodiment includes two photosensitive channel groups, namely, the first photosensitive channel A1 and the second photosensitive channel B1 form a first photosensitive channel group, and the first photosensitive channel A2 and the second photosensitive channel B2 form a second photosensitive channel group. In this step, the first channel value a1 of the first photosensitive channel A1 is obtained, the second channel value b1 of the second photosensitive channel B1 is obtained, and the first channel value a2 of the first photosensitive channel A2 is obtained, and the second channel value b2 of the second photosensitive channel B2 is obtained. Then, under each color, a sensing device includes two photosensitive channel groups, and each photosensitive channel group includes two channel values. Therefore, a total of 4 channel values ​​are obtained under each color. Then, under four monochromatic lights, a total of 16 channel values ​​are obtained.

[0123] S430, determining preset photosensitivity parameters of each group of photosensitivity channels under each monochromatic light according to the first channel value and the second channel value corresponding to each group of photosensitivity channels under each monochromatic light.

[0124] In this step, the ratio of the first channel value to the second channel value corresponding to each group of photosensitive channels under each monochromatic light is used as the preset photosensitive parameter of the group of photosensitive channels under the monochromatic light.

[0125] In one example, under red light, the first channel value of the first photosensitive element in the first photosensitive channel group is Q1, and the second channel value of the second photosensitive element is P1. The first channel value of the first photosensitive element in the second photosensitive channel group is Q2, and the second channel value of the second photosensitive element is P2. Since in a darkroom environment, the first photosensitive element can receive all red light, and the second photosensitive element can only receive polarized red light, the preset photosensitive parameter of the first photosensitive channel group under red light is K1=Q1 / P1. The preset photosensitive parameter of the second photosensitive channel group under red light is K2=Q2 / P2.

[0126] Here, it should be noted that, since each photosensitive channel group corresponds to a preset photosensitive parameter, the corresponding ambient light channel value in the two sensing units can be obtained corresponding to each preset photosensitive parameter. The two sensing channel groups of the two sensing units under the same monochromatic light can determine the detection illumination value of the photosensitive device jointly determined by the two sensing units under the monochromatic light.

[0127] In an exemplary embodiment, this embodiment discloses an ambient light determination device, which is used to implement the above-mentioned ambient light determination method. Fig.10 As shown, the ambient light determination device in this embodiment includes an acquisition module 100, a test module 300 and a determination module 200. The device in this embodiment is used to implement the following Figure 6 The ambient light determination method shown. During implementation, the acquisition module 100 in this embodiment is used to obtain a reference ambient light illumination value. The test module 300 is used to determine multiple ambient light channel values ​​of multiple photosensitive channel groups under multiple preset photosensitive parameters. The determination module 200 is used to determine the current ambient light illumination value based on the reference ambient light illumination value and multiple ambient light channel values.

[0128] In another exemplary embodiment, still referring to Fig.10 The ambient light determination device in this embodiment includes an acquisition module 100, a test module 300 and a determination module 200. The device in this embodiment is used to implement the following Figure 7 In the implementation process, the determination module 200 in this embodiment is specifically used for:

[0129] According to multiple ambient light channel values, respectively determine the detection illumination value under each preset photosensitivity parameter;

[0130] Differences are calculated between a plurality of detected illumination values ​​and a reference ambient light illumination value to obtain a plurality of difference values;

[0131] The detected illuminance value corresponding to the difference value with the smallest absolute value among the multiple differences is determined as the current ambient light illuminance value.

[0132] In another exemplary embodiment, Fig.11 As shown, the ambient light determination device in this embodiment includes an acquisition module 100, a test module 300, a determination module 200 and an update module 400. The ambient light determination device in this embodiment is used to implement the following Figure 8 The ambient light determination method shown in FIG. 4 is a method for determining ambient light intensity. In the implementation process, the updating module 400 is used to update the reference ambient light intensity value according to the current ambient light intensity value.

[0133] When the reference ambient light illumination value is a first average value of N consecutive ambient light illumination values ​​adjacent to the current ambient light illumination value, the updating module 400 is specifically used to:

[0134] Determine a second average value of N-1 ambient light illumination values ​​adjacent to the current ambient light illumination value, starting from the current ambient light illumination value;

[0135] The reference ambient light illumination value is updated according to the second average value.

[0136] In another exemplary embodiment, Fig.12 As shown, the ambient light determination device in this embodiment includes the various modules in the above embodiments, wherein the test module 300 includes a display control unit 310, a test acquisition unit 320, and a test determination unit 330. The device in this embodiment is used to implement the following Fig. 9 In the implementation of the ambient light determination method shown, the display control unit 310 is used to control the display screen to display multiple monochromatic lights respectively in the absence of ambient light. The test acquisition unit 320 is used to respectively acquire the first channel value of the first photosensitive channel and the second channel value of the second photosensitive channel in each photosensitive channel group under each monochromatic light. The test determination unit 330 is used to determine the preset photosensitive parameters of each photosensitive channel group under each monochromatic light according to the first channel value and the second channel value corresponding to each photosensitive channel group under each monochromatic light.

[0137] like Fig.13 The present disclosure also provides a terminal device, for example, the device 500 may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0138] Device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0139] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0140] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 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.

[0141] Power component 506 provides power to various components of device 500. Power component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 500.

[0142] The multimedia component 508 includes a screen that provides an output interface between the device 500 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 508 includes a front camera and / or a rear camera. When the device 500 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 rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0143] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating 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 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0144] I / O interface 512 provides an interface between processing component 502 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.

[0145] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, and the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and the temperature change of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 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 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0146] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 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 516 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 516 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.

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

[0148] In another exemplary embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of a device 500 to perform the above method. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc. When the instructions in the storage medium are executed by a processor of a terminal device, the terminal device is enabled to perform the above method.

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

[0150] 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, applied to a terminal device including a full screen, wherein a photosensitive device is arranged under the display screen of the terminal device, wherein the photosensitive device comprises a first photosensitive unit and a second photosensitive unit, wherein the first photosensitive unit is configured to receive all screen light of the display screen and ambient light of the environment in which the terminal device is located, and the second photosensitive unit is configured to receive polarized screen light of the display screen after polarization, wherein the first photosensitive unit has a plurality of first photosensitive channels, and the second photosensitive unit has a plurality of second photosensitive channels, wherein 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, wherein: Under ambient light, the method comprises: Get the reference ambient light illumination value; Determine multiple ambient light channel values ​​of multiple photosensitive channel groups under multiple preset photosensitive parameters respectively; Determining a current ambient light illumination value according to the reference ambient light illumination value and the multiple ambient light channel values; The step of determining the current ambient light illumination value according to the reference ambient light illumination value and the multiple ambient light channel values ​​includes: According to the multiple ambient light channel values, respectively determine the detection illumination value under each of the preset photosensitivity parameters; Differences are calculated between the plurality of detected illumination values ​​and the reference ambient light illumination value to obtain a plurality of difference values; Determine the detected illuminance value corresponding to the difference value with the smallest absolute value among the multiple differences as the current ambient light illuminance value; The preset photosensitivity parameter represents determining the ambient light channel value of the photosensitivity channel group in the wavelength band corresponding to the light emitted by the content displayed on the display screen under the wavelength band of the light emitted by the content on the display screen.

2. The method for determining ambient light according to claim 1, characterized in that: The method for determining the plurality of preset light-sensing parameters comprises: In the absence of ambient light, the control display screen displays a variety of monochromatic lights respectively; Under each monochromatic light, respectively obtain the first channel value of the first photosensitive channel and the second channel value of the second photosensitive channel in each photosensitive channel group; According to the first channel value and the second channel value corresponding to each group of photosensitive channels under each monochromatic light, the preset photosensitive parameters of each group of photosensitive channels under each monochromatic light are determined.

3. The method for determining ambient light according to claim 2, characterized in that: Determining the preset photosensitivity parameters of each group of photosensitivity channels under each monochromatic light according to the first channel value and the second channel value corresponding to each group of photosensitivity channels under each monochromatic light includes: Under each monochromatic light, the ratio of the first channel value to the second channel value corresponding to each group of photosensitive channels is used as the preset photosensitive parameter of the group of photosensitive channels under the monochromatic light.

4. The method for determining ambient light according to claim 2, wherein: In the absence of ambient light, the display screen is controlled to display a variety of monochromatic lights, including: In the absence of ambient light, the control display screen displays four monochromatic lights: red, green, blue and white.

5. The method for determining ambient light according to claim 1, characterized in that: The method further comprises: The reference ambient light illumination value is updated according to the current ambient light illumination value.

6. The method for determining ambient light according to claim 5, characterized in that: The reference ambient light illumination value is a first average value of N consecutive ambient light illumination values ​​adjacent to the current ambient light illumination value, and updating the reference ambient light illumination value according to the current ambient light illumination value includes: Determine a second average value of N-1 ambient light illumination values ​​adjacent to the current ambient light illumination value, starting from the current ambient light illumination value; The reference ambient light illumination value is updated according to the second average value.

7. An ambient light determination device, applied to a terminal device including a full screen, wherein a photosensitive device is arranged under the display screen of the terminal device, the photosensitive device comprises a first photosensitive unit and a second photosensitive unit, the first photosensitive unit is configured to receive all screen light of the display screen and ambient light of the environment in which the terminal device is located, the second photosensitive unit is configured to receive polarized screen light of the display screen after polarization, 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, characterized in that, The device comprises: An acquisition module is used to obtain a reference ambient light illumination value; A test module, used to determine multiple ambient light channel values ​​of multiple photosensitive channel groups under multiple preset photosensitive parameters; A determination module, configured to determine a current ambient light illumination value according to the reference ambient light illumination value and the multiple ambient light channel values; The determination module is specifically used for: According to the multiple ambient light channel values, respectively determine the detection illumination value under each of the preset photosensitivity parameters; Differences are calculated between the plurality of detected illumination values ​​and the reference ambient light illumination value to obtain a plurality of difference values; Determine the detected illuminance value corresponding to the difference value with the smallest absolute value among the multiple differences as the current ambient light illuminance value; The preset photosensitivity parameter represents determining the ambient light channel value of the photosensitivity channel group in the wavelength band corresponding to the light emitted by the content displayed on the display screen under the wavelength band of the light emitted by the content on the display screen.

8. The ambient light determination device according to claim 7, characterized in that: The test module includes: A display control unit, used for controlling the display screen to display a plurality of monochromatic lights respectively in the absence of ambient light; A test acquisition unit, used for respectively acquiring a first channel value of a first photosensitive channel and a second channel value of a second photosensitive channel in each photosensitive channel group under each monochromatic light; The test determination unit is used to determine the preset photosensitivity parameters of each group of photosensitivity channels under each monochromatic light according to the first channel value and the second channel value corresponding to each group of photosensitivity channels under each monochromatic light.

9. The ambient light determination device according to claim 8, characterized in that: The test determination unit is specifically used for: Under each monochromatic light, the ratio of the first channel value to the second channel value corresponding to each group of photosensitive channels is used as the preset photosensitive parameter of the group of photosensitive channels under the monochromatic light.

10. The ambient light determination device according to claim 8, characterized in that: The display control unit is specifically used for: In the absence of ambient light, the control display screen displays four monochromatic lights: red, green, blue and white.

11. The ambient light determination device according to claim 7, characterized in that: The device also includes: An updating module is used to update the reference ambient light illumination value according to the current ambient light illumination value.

12. The ambient light determination device according to claim 11, characterized in that: The reference ambient light illumination value is a first average value of N consecutive ambient light illumination values ​​adjacent to the current ambient light illumination value, and the updating module is specifically used for: Determine a second average value of N-1 ambient light illumination values ​​adjacent to the current ambient light illumination value, starting from the current ambient light illumination value; The reference ambient light illumination value is updated according to the second average value.

13. A terminal device, characterized in that: include: processor; a memory for storing executable instructions for the processor; The processor is configured to execute the ambient light determination method as claimed in any one of claims 1 to 6.

14. A non-transitory 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 ambient light determination method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and device for calibrating ambient light sensor

    CN108267223A

  • Method and device for obtaining ambient light brightness

    CN108716950A

  • Illumination intensity determining method and device

    CN108833716A

  • Displayer and environmental light detection method thereof

    CN109036163A

  • Image photographing method and device, storage medium and electronic equipment

    CN109547701A