CN113709275A - Ambient light determination method and device, terminal equipment and storage medium - Google Patents

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

Info

Publication number
CN113709275A
CN113709275A CN202010436269.XA CN202010436269A CN113709275A CN 113709275 A CN113709275 A CN 113709275A CN 202010436269 A CN202010436269 A CN 202010436269A CN 113709275 A CN113709275 A CN 113709275A
Authority
CN
China
Prior art keywords
ambient light
photosensitive
value
channel
light
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010436269.XA
Other languages
Chinese (zh)
Inventor
虢礼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010436269.XA priority Critical patent/CN113709275A/en
Publication of CN113709275A publication Critical patent/CN113709275A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The disclosure relates to an ambient light determination method, an ambient light determination device, a terminal device and a storage medium, wherein a photosensitive device is arranged under a display screen of the terminal device, the photosensitive device comprises a first photosensitive unit and a second photosensitive unit, the first photosensitive unit is provided with a plurality of first photosensitive channels, the second photosensitive unit is provided with a plurality of second photosensitive channels, the corresponding first photosensitive channels and the corresponding second photosensitive channels form a group of photosensitive channel groups, and under the irradiation of ambient light, the method comprises the following steps: acquiring 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; and 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 disclosed by the disclosure is used for determining the ambient light of the terminal equipment with the full screen, the finally output ambient light has small illumination value fluctuation and better stability, and the influence of content conversion displayed by the display screen of the terminal equipment on the illumination value of the output ambient light is effectively avoided.

Description

Ambient light determination method and device, terminal equipment and storage medium
Technical Field
The present disclosure relates to the field of intelligent devices, and in particular, to an ambient light determination method, an ambient light determination device, a terminal device, and a storage medium.
Background
With the progress of technology, the screen occupation ratio of terminal equipment such as mobile phones and the like is higher and higher. As screen occupation becomes an important selling point of mobile phones, full-screen mobile phones gradually become the mainstream of future mobile phone markets.
In order to achieve a real one hundred percent screen ratio and obtain a better shooting effect, the problem that a front camera of a mobile phone is easily interfered by screen light needs to be solved, so as to obtain stable and accurate ambient light parameters.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an ambient light determination method, an ambient light determination apparatus, a terminal device, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided an ambient light determining method, applied to a terminal device including a full-screen, a light sensing device is disposed under a display screen of the terminal device, the light sensing device includes a first light sensing unit and a second light sensing unit, the first light sensing unit is configured to receive all screen lights of the display screen and ambient light of an environment where the terminal device is located, the second light sensing unit is configured to receive polarized screen light of the display screen after polarization, the first light sensing unit has a plurality of first light sensing channels, the second light sensing unit has a plurality of second light sensing channels, the plurality of first light sensing channels correspond to the plurality of second light sensing channels, the corresponding first light sensing channels and second light sensing channels form a group of light sensing channels, and under the irradiation of the ambient light, the method includes:
acquiring 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;
and determining a current ambient light illumination value according to the reference ambient light illumination value and the plurality of ambient light channel values.
Optionally, the determining a current ambient light illumination value according to the reference ambient light illumination value and the plurality of ambient light channel values includes:
respectively determining a detection illumination value under each preset photosensitive parameter according to the plurality of environment light channel values;
the detection illumination values are respectively subtracted from the reference environment illumination value to obtain a plurality of difference values;
and determining the detection illumination value corresponding to the difference value with the minimum absolute value in the plurality of difference values as the current ambient light illumination value.
Optionally, the method for determining the plurality of preset light-sensing parameters includes:
under the condition of no ambient light, controlling the display screen to respectively display a plurality of monochromatic lights;
under each monochromatic light, 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;
and determining preset photosensitive parameters of each group of photosensitive channels under each monochromatic light according to the first channel value and the second channel value corresponding to each group of photosensitive channels under each monochromatic light.
Optionally, the determining, according to a first channel value and a second channel value corresponding to each group of photosensitive channel groups under each monochromatic light, a preset photosensitive parameter of each group of photosensitive channel under each monochromatic light includes:
under each monochromatic light, the ratio of the first channel value to the second channel value corresponding to each photosensitive channel group is used as a preset photosensitive parameter of the photosensitive channel group under the monochromatic light.
Optionally, the controlling the display screen to display the plurality of monochromatic lights in the absence of ambient light includes:
under the condition of no ambient light, the display screen is controlled to respectively display four monochromatic lights of red, green, blue and white.
Optionally, the method further comprises:
and updating the reference ambient light illumination value according to the current ambient light illumination value.
Preferably, the updating the reference ambient light illumination value according to the current ambient light illumination value includes:
determining a second average of N-1 ambient light illumination values adjacent to the current ambient light illumination value from the current ambient light illumination value;
and updating the reference environment illumination value according to the second average value.
According to a second aspect of the embodiments of the present disclosure, there is provided an ambient light determination apparatus applied to a terminal device including a full-screen, a photosensitive apparatus is disposed under a display screen of the terminal device, the photosensitive apparatus includes a first photosensitive unit and a second photosensitive unit, the first photosensitive unit is configured to receive all screen lights of the display screen and ambient light of an environment where 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 correspond to the plurality of second photosensitive channels, and the corresponding first photosensitive channels and the second photosensitive channels form a set of photosensitive channel groups, the apparatus includes:
the acquisition module is used for acquiring a reference environment illumination value;
the test module is used for determining a plurality of ambient light channel values of the plurality of photosensitive channel groups under a plurality of preset photosensitive parameters respectively;
and the determining module is further used for determining the current ambient light illumination value according to the reference ambient light illumination value and the plurality of ambient light channel values.
Optionally, the determining module is specifically configured to:
respectively determining a detection illumination value under each preset photosensitive parameter according to the plurality of environment light channel values;
the detection illumination values are respectively subtracted from the reference environment illumination value to obtain a plurality of difference values;
and determining the detection illumination value corresponding to the difference value with the minimum absolute value in the plurality of difference values as the current ambient light illumination value.
Optionally, the test module comprises:
the display control unit is used for controlling the display screen to respectively display a plurality of monochromatic lights under the condition of no ambient light;
the test acquisition unit is 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;
and the test determining unit is used for determining preset photosensitive parameters of each group of photosensitive channels under each monochromatic light according to the first channel value and the second channel value corresponding to each group of photosensitive channels under each monochromatic light.
Optionally, the test determining unit is specifically configured to:
under each monochromatic light, the ratio of the first channel value to the second channel value corresponding to each photosensitive channel group is used as a preset photosensitive parameter of the photosensitive channel group under the monochromatic light.
Optionally, the display control unit is specifically configured to:
under the condition of no ambient light, the display screen is controlled to respectively display four monochromatic lights of red, green, blue and white.
Optionally, the apparatus further comprises:
and the updating module is used for updating the reference ambient light illumination value according to the current ambient light illumination value.
Optionally, the reference ambient light illuminance value is a first average of N consecutive ambient light illuminance values adjacent to the current ambient light illuminance value, and the updating module is specifically configured to:
determining a second average of N-1 ambient light illumination values adjacent to the current ambient light illumination value from the current ambient light illumination value;
and updating the reference environment illumination value according to the second average value.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal device, including:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the ambient light determination method as described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of a terminal device, enable the terminal device to perform the ambient light determination method as described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the method disclosed by the disclosure is used for determining the ambient light of the terminal equipment with the full screen, the finally output ambient light has small illumination value fluctuation and better stability, and the influence of content conversion displayed by the display screen of the terminal equipment on the illumination value of the output ambient light is effectively avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
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.
Fig. 1 is a schematic view of an under-screen camera arrangement of a terminal device having a full screen shown in the related art.
Fig. 2 is a schematic view showing the distribution of various light bands in the natural environment shown in the related art.
Fig. 3 is a schematic view of a wavelength band distribution of light that can be detected by the photosensitive element shown in the related art.
Fig. 4 is a schematic diagram of an application scenario of the ambient light determination method in the present disclosure.
Fig. 5 is a schematic diagram of the working principle of the polarization part in the application scenario in the present disclosure.
FIG. 6 is a flow chart illustrating an ambient light determination method according to an exemplary embodiment.
Fig. 7 is a flowchart illustrating an ambient light determination method according to another exemplary embodiment.
Fig. 8 is a flowchart illustrating an ambient light determination method according to another exemplary embodiment.
Fig. 9 is a flowchart illustrating an ambient light determination method according to another exemplary embodiment.
FIG. 10 is a block diagram illustrating an ambient light determination device according to an example embodiment.
Fig. 11 is a block diagram illustrating an ambient light determination apparatus according to another example embodiment.
Fig. 12 is a block diagram illustrating an ambient light determination apparatus according to another example embodiment.
Fig. 13 is a block diagram of a terminal device shown according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like 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. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
With the progress of technology, the screen occupation ratio of terminal equipment such as mobile phones and the like is higher and higher. As screen occupation becomes an important selling point of mobile phones, full-screen mobile phones gradually become the mainstream of future mobile phone markets. Then, in order to achieve a real one-hundred-percent screen ratio and obtain a better shooting effect, the problem that a front camera of a mobile phone is easily interfered by screen light must be solved.
Relevant research shows that the influence of a comprehensive screen on the shooting effect of a front camera is mainly embodied in the following two aspects: firstly, the light transmittance of the display screen is low, and a camera under the screen cannot obtain enough natural light; secondly, the display screen emits light, which causes the photographing effect of the camera under the screen to be whitish and unclear.
For the problem of low light transmittance of the display screen, the related art display can be solved by increasing the light transmittance of the screen and increasing the size and the light sensing amount of the light sensing element. For example, an OLED screen with a high transmittance is used to ensure that the camera under the screen obtains sufficient natural light. Referring to fig. 1, in order to prevent a screen reflection problem when a user uses an OLED panel, a first polarizer 1 'is disposed on the uppermost layer (referring to the direction of fig. 1) of the OLED panel, and an Encap glass 2', an organic self-luminescent layer 3 ', and a TFT glass substrate 4' are sequentially disposed thereunder. The natural light in the external environment enters the camera under the screen after passing through the first light deflecting part 1' of the OLED screen.
For the problem that the self-luminescence of the display screen influences the shooting effect of the camera, the influence of screen light on the camera under the screen can be eliminated through an algorithm. In the related technology, the influence of screen light on the camera under the screen is eliminated by using an algorithm, if the algorithm is simple, the robustness and the calculation efficiency of the algorithm are poor, and the influence of light emitted by an OLED display screen on the camera under the screen cannot be effectively eliminated; if the algorithm used is too complex, the processing speed of the handset will be reduced. For example, when the amount of data transmitted by the off-screen camera is large, especially when a video call is made, the power consumption of the system is obviously increased by an excessively complex algorithm, so that the mobile phone becomes jammed and the user experience is poor. This requires an algorithm for eliminating the influence of the screen light on the under-screen camera, which needs to have better robustness and obtain better effect, and at the same time, the algorithm is not too complex.
The main method for eliminating the influence of screen light on the camera under the screen is to arrange a photosensitive element under the screen, and determine the illumination value of natural light through an algorithm according to the detection result of the photosensitive element for the camera under the screen to shoot. However, due to the hardware structure of the photosensitive element itself, when different contents are displayed on the display screen of the terminal device, the response of the photosensitive element to different colors of light displayed on the display screen is different. This causes the data detected by the photosensitive element to fluctuate when the content displayed on the display screen changes continuously, which affects the accuracy of the illuminance value of the ambient light that is finally output, and thus affects the effect of the pattern captured by the camera under the screen.
In order to solve the above problem, it is first necessary to know the influence of light of different colors on data output from the photosensitive element. The related art shows that light in the natural environment includes light with various wavelengths, as shown in fig. 2, the light in the natural environment is divided into Gamma rays, X-rays, Ultraviolet, infra, Microwaves, Radio waves and visible light according to the wavelength, and the specific wavelength range of various lights is shown in fig. 2, wherein the wavelength range of the visible light is 380nm to 780 nm.
The photosensitive element is used for detecting the illuminance value of light, and as shown in fig. 3, the wavelength range which can be detected by the photosensitive element is 380nm to 980 nm. In the above wavelength band, the light-sensitive element includes a part of infrared light in addition to visible light, that is, the light-sensitive element can detect a part of infrared light in addition to an illuminance value of visible light. As can be seen from fig. 3, the wavelength band of visible light to which the photosensitive element can respond is mainly concentrated in the range of 380nm to 680 nm. The wavelength bands of the monochromatic lights in the visible light are also different, for example, when the monochromatic lights are blue lights, the wavelength bands are mainly concentrated in the range from 380nm to 580nm, and the Normalized Responsivity (Normalized Responsivity) of the photosensitive element to the blue lights is low; when monochromatic light is green light, the wavelength band of the monochromatic light is mainly concentrated in the range of 480nm to 680nm, and the Normalized Responsivity (Normalized Responsivity) of the photosensitive element to the green light is high; when the monochromatic light is red light, the wavelength band is mainly concentrated in 580nm to 680nm, and the Normalized Responsivity (Normalized Responsivity) of the photosensitive element to the red light is between that of the blue light and that of the green light.
Because the normalized responsivity of the photosensitive element to the monochromatic light of different wave bands is different, when the content displayed on the display screen of the terminal equipment changes, the wave band of the light received by the photosensitive element arranged under the screen changes, which causes the response of the photosensitive element to the received light to change, and further causes the illumination value of the environmental light finally applied to the control process of the terminal equipment to change continuously due to different contents displayed on the display screen, influences the accuracy of the illumination value of the environmental light, and further influences the control process related to the illumination value of the environmental light.
In order to solve the above problem, the present disclosure provides an ambient light determining method, so as to eliminate an influence of a change in content displayed on a display screen on an illuminance value of ambient light applied to a terminal device control process, ensure that the illuminance value of the ambient light applied to the terminal device control process is more stable and accurate, and ensure control stability and reliability of the terminal device.
For convenience of description of the ambient light determination method in the present disclosure, an application scenario of the ambient light determination method in the present disclosure is first described.
As shown in fig. 4, the photosensitive device in the present disclosure may be disposed in the camera 1, the camera 1 is disposed under the display screen 2, and the display screen 2 may be, for example, an OLED screen. Of course, it is understood that the photosensitive device in the present disclosure may also be independently disposed outside the camera 1, and the photosensitive device is disposed under the display screen 2.
The display panel 2 includes a first polarizer 21 and an organic self-emitting layer 22. The first polarizer 21 is located above the organic self-luminescent layer 22 and the camera 1 is disposed below the organic self-luminescent layer 22 in a state where the screen of the terminal device is facing upward and is in a flat state. The photosensitive elements comprise 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 rays received by the first photosensitive element 11 and the second photosensitive element 12 are the same.
The camera 1 further includes a second polarizing portion 13, and the second polarizing portion 13 is disposed upstream of the second photosensitive element 12 in the light incident direction of the second photosensitive element 12, that is, the second polarizing portion 13 is disposed above the second photosensitive element 12, referring to fig. 4. The first light sensing element 11 receives the screen light of the display screen 2 and the incident first polarized ambient light transmitted through the first polarizing part 21, the second light sensing element 12 receives the screen light of the display screen and the incident second polarized ambient light transmitted through the first polarizing part 21 and the second polarizing part 13 with 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 polarizer 21 may be a first polarizer, the second polarizer 13 may be a second polarizer, and the transmission direction of the first polarizer and the transmission direction of the second polarizer form a predetermined angle. The predetermined angle is not specifically limited in this embodiment, and is set to prevent the second photosensitive element 12 from receiving natural light and only receive screen light; alternatively, the second photosensitive element 12 receives only a small amount of natural light and receives the entire screen light. The angle of the preset included angle can be selected according to the actual situation in the implementation process, and the shooting effect of the camera 1 is not affected.
The operation principle of the first and second polarizing portions 21 and 13 will be described below with reference to fig. 5. The first beam of light, the second beam of light and the third beam of light are the same natural light, the transmission vibration direction of the polaroid P is along the vertical direction through the polaroid P, the first beam of light is changed into the first vertical polarized light with the vibration direction along the vertical direction, and the light can be received on the background plate M and is bright. Second bundle of light passes through polaroid P and polaroid Q, wherein, polaroid P and polaroid Q's the direction of penetrating vibration is vertical direction, and second bundle of light becomes the first vertical polarized light of vibration direction along vertical direction after passing through polaroid P, because polaroid Q's the direction of penetrating vibration is the same with the vibration direction of first vertical polarized light, consequently, first vertical polarized light becomes the vertical polarized light of second after polaroid Q, still can receive light on the background board M, is bright. Third beam light passes through polaroid P and polaroid Q, wherein, polaroid P is vertical direction, polaroid Q is in horizontal state, its direction of penetrating vibration is horizontal direction, third beam light becomes the first vertical polarized light of vibration direction along vertical direction after passing through polaroid P, because polaroid Q's the direction of penetrating vibration is horizontal, only the light wave of vibrating along horizontal direction can the printing opacity polaroid Q propagate, and vertical vibration is followed to first vertical polarized light, can't see through polaroid Q, therefore, first vertical polarized light is all filtered after passing through polaroid Q, can't receive light on the background board M, background board M is dark.
Referring to fig. 4 and 5, if the first polarizing part 21 is the polarizer P and the second polarizing part 13 is the polarizer Q, when an angle is formed between the transmission direction of the first polarizing part 21 and the transmission direction of the second polarizing part 13, only a small amount of ambient light can be received by the second photosensitive element 12 after the ambient light in the environment sequentially passes through the first polarizing part 21 and the second polarizing part 13, which can be ignored. Then, in the present embodiment, the first photosensitive element 11 receives the screen light of the display screen 2 and the incident first polarized ambient light transmitted through the first polarizing portion 21, the second photosensitive element 12 receives the screen light of the display screen 2, and the second polarized ambient light transmitted through the first polarizing portion 21 and the second polarizing portion 13, and the second polarized ambient light is negligible because the light is very few, and therefore, it can be considered that almost all the light received by the second photosensitive element 12 is the screen light.
The ambient light determination method can effectively improve the influence of the content displayed in the display screen on the illuminance value of the ambient light, so that the illuminance value of the ambient light with small fluctuation and better stability is obtained. Even when the content displayed on the display screen of the terminal device changes, the robustness of the illuminance value of the ambient light determined by using the ambient light determination method in the disclosure is still good, so that the control process related to the ambient light in the terminal device is ensured to be more stable and reliable.
The ambient light determination method in the present disclosure is explained below with specific examples. In an exemplary embodiment, the ambient light determination method in this embodiment is applied to a terminal device having a full-screen, that is, a light sensing device and a camera are disposed below a display screen of the terminal device. Referring to fig. 4, the light sensing device in the present embodiment includes a first light sensing unit 11 and a second light sensing unit 12, the first light sensing unit 11 is configured to receive all screen light of the display screen and ambient light of an environment where the terminal device is located, and the second light sensing unit 12 is configured to receive polarized screen light of the display screen after polarization. The first photosensitive unit is not provided with the polarizing part and is arranged below the display screen, so that the first photosensitive unit can receive all screen light generated by the display screen and the ambient light of the environment where the terminal equipment is located. The second light sensing unit 12 is provided with a second polarizing portion 13, the display screen is provided with a first polarizing portion 21, and the first polarizing portion 21 and the second polarizing portion 13 act together to ideally filter out all ambient light of the terminal device (specifically, the ambient light is far away from the above and is not repeated herein), so that the second light sensing unit 12 can only receive polarized screen light of the display screen filtered by the second polarizing portion 13.
In this embodiment, the first photosensitive unit 11 has a plurality of first photosensitive channels, the second photosensitive unit 12 has a plurality of second photosensitive channels, the plurality of first photosensitive channels and the plurality of second photosensitive channels are disposed correspondingly, and the corresponding first photosensitive channels and the corresponding second photosensitive channels form a group of photosensitive channel groups. In one example, the first photosensitive unit 11 includes two first photosensitive paths a1 and a2, the second photosensitive unit 12 also includes two photosensitive units B1 and B2, and the corresponding arrangement of the first photosensitive element 11 and the second photosensitive element 12 means that the number of photosensitive paths 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 is understood that only the first photosensitive element and the second photosensitive element having two photosensitive channels are shown in this example, and besides, the first photosensitive element and the second photosensitive element may 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 ensured to be equal.
As shown in fig. 6, in an environment with ambient light irradiation, the ambient light determination method in the present embodiment includes:
and S110, acquiring a reference environment light illumination value.
In this step, the reference ambient light illumination value may be changed, for example, the reference ambient light illumination value is updated every time the illumination value of the ambient light is determined again. The reference ambient light illumination value may also be a preset value pre-stored in a memory of the terminal device, and the preset value is always kept unchanged. In the implementation process, the device can be operated according to different versions of the terminal device.
And S120, determining a plurality of ambient light channel values of the plurality of photosensitive channel groups under a plurality of preset photosensitive parameters respectively.
In this step, in order to comprehensively consider the influence of the content displayed in 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 the plurality of photosensitive channel groups under different preset photosensitive parameters. The preset photosensitive parameters are related to wave bands of light emitted by content displayed by the display screen, so that an ambient light channel value of the photosensitive channel group under the wave band corresponding to the light emitted by the content displayed by the display screen is determined, in the subsequent process of determining the illuminance value of ambient light, the ambient light channel values under different preset photosensitive parameters are utilized, the influence of the content displayed by the display screen on the determined illuminance value of the ambient light is reduced, and the determined illuminance value of the ambient light is prevented from fluctuating.
In one example, a first photosensitive unit and a second photosensitive unit each having two photosensitive channels are exemplified. Including two sensitization passageway groups in this example, be first sensitization passageway A1 and second sensitization passageway B1 respectively and form first sensitization passageway group, first sensitization passageway A2 and second sensitization passageway B2 form second sensitization passageway group, consequently, can determine two ambient light passageway values under every preset sensitization parameter, first ambient light passageway value that first sensitization passageway group corresponds promptly and the second ambient light passageway value that second sensitization passageway group corresponds. When the preset light sensing parameter is four, a total of eight ambient light channel values can be determined.
And S130, determining the current ambient light illumination value according to the reference ambient light illumination value and the plurality of ambient light channel values.
In this step, as in step S120, a total of eight ambient light channel values may be determined, and two ambient light channel values for each preset photosensitive parameter may determine a detection illuminance value detected by the photosensitive device constituted by the first photosensitive unit and the second photosensitive unit at the preset photosensitive parameter. Thus, a total of four detection illuminance values at four preset light-sensing parameters can be determined.
And comparing the reference ambient light illumination value with the detection illumination values under the four preset photosensitive parameters to determine the current ambient light illumination value.
In this embodiment, a plurality of preset photosensitive parameters are considered when determining the ambient light channel value, and the preset photosensitive parameters are related to a waveband of light emitted by content displayed on the display screen, so as to determine the ambient light channel value of the photosensitive channel group in the waveband corresponding to the light emitted by the content displayed on the display screen, and further avoid fluctuation of the ambient light illumination value caused by the content displayed on the display screen in a subsequent process of determining the ambient light illumination value.
In another exemplary embodiment, the method in this embodiment is used to further define step S130 in the above-described embodiment. As shown in fig. 7, the method in the present embodiment includes:
s210, respectively determining the detection illumination value under each preset photosensitive parameter according to the plurality of environment light channel values.
In this step, the first photosensitive unit and the second photosensitive unit each having two photosensitive channels in the above-described embodiment are exemplified. The present embodiment includes two photosensitive channel groups, a first photosensitive channel a1 and a second photosensitive channel B1 form the first photosensitive channel group, a first photosensitive channel a2 and a second photosensitive channel B2 form the second photosensitive channel group, and each photosensitive channel group corresponds to an ambient light channel value. Under each preset photosensitive parameter, according to a first ambient light channel value corresponding to a first photosensitive channel group of the photosensitive device and a second ambient light channel value corresponding to a second photosensitive channel group, a detection illumination value under the preset photosensitive parameter can be determined. The photosensitive unit has a plurality of photosensitive channels, and finally determining the illuminance value of the detected light according to the photosensitive channels is a conventional technical means known by those skilled in the art, and therefore, the method for determining the illuminance value detected under the preset photosensitive parameter according to 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 of the photosensitive device is not described herein again.
Meanwhile, as the number of the preset photosensitive parameters is multiple, the detection illumination value corresponding to the preset photosensitive parameter can be determined under each preset photosensitive parameter, therefore, multiple detection illumination values can be finally obtained in the step, the detection illumination values correspond to the preset photosensitive parameters, namely, each preset photosensitive parameter corresponds to one detection illumination value.
S220, respectively subtracting the plurality of detection illumination values from the reference environment illumination value to obtain a plurality of difference values.
In this step, the difference between each of the plurality of detection illuminance values and the reference ambient illuminance value is obtained by subtracting the reference ambient illuminance value from each of the plurality of detection illuminance values, and the difference may be a positive number, a negative number, or zero.
In one example, the detection illuminance values include C1, C2, C3, C4, a difference between C1 and the reference ambient illuminance value of 3, a difference between C2 and the reference ambient illuminance value of 1, a difference between C3 and the reference ambient illuminance value of 0, and a difference between C4 and the reference ambient illuminance value of-2.
And S230, determining a detection illumination value corresponding to the difference value with the minimum absolute value in the plurality of difference values as the current ambient light illumination value.
In this step, when one is selected from among a plurality of 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 the detection illuminance value corresponding to the difference value with the minimum absolute value of the difference value is selected as the current ambient illuminance value, so that the situation that the output current ambient illuminance value is larger in fluctuation compared with the previously output ambient illuminance is avoided.
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 the illumination value of C2 and the reference ambient light is 1, and the corresponding absolute value is 1; the difference between the illumination value of C3 and the reference ambient light value is 0, and the corresponding absolute value is 0; the difference between C4 and the reference ambient light illumination value is-2, corresponding to an absolute value of 2. Therefore, the detection illuminance value C3 is selected as the current ambient light illuminance value.
In this embodiment, the reference ambient light illumination value is used as a reference, and a detection illumination value with a minimum value of a difference value between the reference ambient light illumination value and the detection illumination value corresponding to the preset photosensitive parameters is determined from the plurality of detection illumination values and is output as a current ambient light illumination value, so that the mobile terminal can execute an operation related to ambient light. Because the absolute value of the difference between the selected detection illumination value and the reference environment illumination value is the minimum, the output current environment illumination value can be effectively prevented from obviously fluctuating, and the stability and the reliability are higher.
In another exemplary embodiment, the reference ambient light illumination value in this embodiment is a first average value of N consecutive ambient light illumination values adjacent to the current ambient light illumination value, where N may be 16, 10, 20, or the like, for example, and may be set according to actual situations in the implementation process. And when N is 10, the first average value of 10 continuous ambient light illumination values which are adjacent to the current ambient light illumination value and are forward along the time axis. For example, the current ambient illuminance value is M, the nth ambient illuminance value that is adjacent to the current ambient illuminance value and is output before the current ambient illuminance value is 10 th, then the nth-1 ambient illuminance value that is output is 9 th, and so on, the nth-9 ambient illuminance value that is output is 1 st, the 10 ambient illuminance values that are output before the current ambient illuminance value are summed and then averaged to obtain a first average value, which is the reference ambient illuminance value.
For example, before the current ambient light illuminance value is output, 10 times of ambient light illuminance values, which are Y1, Y2, Y3, Y4, Y5, Y6, Y7, Y8, Y9, and Y10, respectively, are output, and then the first average value is obtained by summing up Y1, Y2, Y3, Y4, Y5, Y6, Y7, Y8, Y9, and Y10, and the first average value is the reference ambient light illuminance value.
In order to further improve the stability and reliability of the ambient light illumination value, in this embodiment, after the current ambient light illumination value is determined, the reference ambient light illumination value is updated according to the current ambient light illumination value. As shown in fig. 8, the method for updating the reference ambient light illumination value according to the current ambient light illumination value includes:
s310, determining the average value of N-1 environment illumination values adjacent to the current environment illumination value from the current environment illumination value.
The average value in this step is the second average value, and referring to the example when the first average value is determined as described above, in determining the second average value, the current ring light illuminance value and the 10 th to 2 nd continuous ambient light illuminance values that have been output before the current ambient light illuminance value on the time axis are summed, and further, the average value is calculated to obtain the second average value.
For example, before the current ambient light illuminance value is output, 10 times of ambient light illuminance values, which are Y1, Y2, Y3, Y4, Y5, Y6, Y7, Y8, Y9, and Y10, respectively, are output, and the output current ambient light illuminance value is Y11, when a second average value is calculated, the sum of Y2, Y3, Y4, Y5, Y6, Y7, Y8, Y9, Y10, and Y11 is calculated, and the average value is the second average value, that is, the reference ambient light illuminance value used when the current ambient light illuminance value is determined next time.
And S320, updating the reference environment illumination value according to the average value.
In this step, the method for updating the reference ambient light illuminance value according to the average value means that the first average value is directly replaced by the second average value to be used as the reference ambient light illuminance value for the next time when the current ambient light illuminance value is determined.
Here, it should be noted that, when the ambient light in the environment where the terminal device is located changes after the current ambient light illuminance value, the current ambient light illuminance value needs to be determined again. That is, the reference ambient light illumination value needs to be determined again each time the current ambient light illumination value is output, so that the reference ambient light illumination value can be used as a reference when the current ambient light illumination value is determined again.
In another exemplary embodiment, as shown in fig. 9, the present embodiment defines a method for determining a plurality of preset light-sensing parameters, the method in the present embodiment comprises:
and S410, controlling the display screen to respectively display a plurality of monochromatic lights under the condition of no ambient light.
In this step, in order to guarantee the accuracy of the predetermined sensitization parameter that determines, can place sensitization device's first sensitization component and second sensitization component under the dark surrounds, for example can be in the darkroom, in order to reduce the received ambient light of sensitization component as far as, under ideal circumstances, the received external ambient light of sensitization component is zero, that is, the sensitization component can only receive the light of display screen, can not receive the influence of external ambient light, in order to guarantee to reflect the influence of the illumination value of the detection of a plurality of monochromatic light to sensitization component that shows respectively in the display screen accurately.
The monochromatic light can be four monochromatic lights of red, green, blue and white, and the four monochromatic lights and the black screen state are display modes commonly used by those skilled in the art when determining the display effect of the screen. However, in the black screen state, the light receiving device cannot receive the light of the content displayed on the display screen, and therefore, in the present embodiment, the black screen state is discarded.
And S420, under each monochromatic light, respectively obtaining a first channel value of a first photosensitive channel and a second channel value of a second photosensitive channel in each photosensitive channel group.
In step S410, the monochromatic light includes four colors, i.e., red, green, blue, and white. Taking the first sensing unit and the second sensing unit with two channels as an example, the present embodiment includes two photosensitive channel groups, a first photosensitive channel group is formed by the first photosensitive channel a1 and the second photosensitive channel B1, and a second photosensitive channel group is formed by the first photosensitive channel a2 and the second photosensitive channel B2. In this step, a first channel value a1 of the first photosensitive channel a1 is acquired, a second channel value B1 of the second photosensitive channel B1 is acquired, and a first channel value a2 of the first photosensitive channel a2 is acquired, and a second channel value B2 of the second photosensitive channel B2 is acquired. Then, for each color, one sensing device includes two photosensitive channel groups, and each photosensitive channel group includes two channel values, so that a total of 4 channel values are obtained for each color. Then under four monochromatic lights, a total of 16 channel values are obtained.
And S430, determining preset photosensitive parameters of each group of photosensitive channels under each monochromatic light according to the first channel value and the second channel value corresponding to each group of photosensitive channels under each monochromatic light.
In this step, under each monochromatic light, the ratio of the first channel value to the second channel value corresponding to each group of photosensitive channel groups is used as the preset photosensitive parameter of the group of photosensitive channels under the monochromatic light.
In one example, under red light, the first channel value of the first photosensitive element in the first set of photosensitive channel groups is Q1, the second channel value of the second photosensitive element is P1, the first channel value of the first photosensitive element in the second set of photosensitive channel groups is Q2, and the second channel value of the second photosensitive element is P2. Since the first photosensitive element can receive all red light and the second photosensitive element can receive only polarized red light in a dark room environment, the preset photosensitive parameter of the first group of photosensitive channel group under red light is K1-Q1/P1. The preset photosensitive parameter of the second photosensitive channel group under the red light is K2-Q2/P2.
Here, it should be noted that each photosensitive channel group corresponds to one preset photosensitive parameter, and therefore, corresponding to each preset photosensitive parameter, the corresponding ambient light channel values in the two sensing units can be obtained. The two sensing channel groups of the two sensing units under the same monochromatic light can determine the detection illuminance value of the photosensitive device jointly determined by the two sensing units under the monochromatic light.
In an exemplary embodiment, the present embodiment discloses an ambient light determination apparatus for implementing the above-described ambient light determination method. As shown in fig. 10, the ambient light determination apparatus in this embodiment includes an acquisition module 100, a test module 300, and a determination module 200, and the apparatus in this embodiment is used to implement the ambient light determination method shown in fig. 6. In practice, the obtaining module 100 in this embodiment is used for obtaining the reference ambient light illuminance value. The testing module 300 is configured to determine a plurality of ambient light channel values of a plurality of photosensitive channel groups under a plurality of preset photosensitive parameters, respectively. The determining module 200 is configured to determine a current ambient light illumination value according to the reference ambient light illumination value and the plurality of ambient light channel values.
In another exemplary embodiment, still referring to fig. 10, the ambient light determination apparatus in the present embodiment includes an acquisition module 100, a test module 300, and a determination module 200, and the apparatus in the present embodiment is used to implement the ambient light determination method shown in fig. 7. In an implementation process, the determining module 200 in this embodiment is specifically configured to:
respectively determining a detection illumination value under each preset photosensitive parameter according to the plurality of environment light channel values;
the detection illumination values are respectively subtracted from the reference environment illumination value to obtain a plurality of difference values;
and determining a detection illumination value corresponding to the difference value with the minimum absolute value in the plurality of difference values as the current ambient light illumination value.
In another exemplary embodiment, as shown in fig. 11, the ambient light determination apparatus in the present 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 the present embodiment is used to implement the ambient light determination method shown in fig. 8. In implementation, the updating module 400 is configured to update the reference ambient light illumination value according to the current ambient light illumination value.
When the reference ambient light illumination value is a first average of N consecutive ambient light illumination values adjacent to the current ambient light illumination value, the update module 400 is specifically configured to:
determining a second average value of N-1 ambient light illumination values adjacent to the current ambient light illumination value from the current ambient light illumination value;
and updating the reference environment light illumination value according to the second average value.
In another exemplary embodiment, as shown in fig. 12, the ambient light determination apparatus in the present embodiment includes the respective 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. In the embodiment of the apparatus for implementing the ambient light determination method shown in fig. 9, in the implementation process, the display control unit 310 is configured to control the display screen to display a plurality of monochromatic lights respectively in a state without ambient light. The test acquisition unit 320 is configured to acquire a first channel value of a first photosensitive channel and a second channel value of a second photosensitive channel in each photosensitive channel group, respectively, under each monochromatic light. The test determining unit 330 is configured to determine preset photosensitive parameters of each group of photosensitive channels under each monochromatic light according to the first channel value and the second channel value corresponding to each group of photosensitive channels under each monochromatic light.
As shown in fig. 13, it is a block diagram of a terminal device. The present disclosure also provides for a terminal device, for example, device 500 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, and the like.
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.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operation at the device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices 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 or optical disks.
Power component 506 provides power to the various components of device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 500.
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 an input signal from a 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 boundary of a 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 facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be 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.
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 may detect an open/closed state of the device 500, the relative positioning of the components, such as a display and keypad of the device 500, the sensor assembly 514 may also detect a change in the position of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, orientation or acceleration/deceleration of the device 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communications between the device 500 and other devices in a wired or wireless manner. The device 500 may 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 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
A non-transitory computer readable storage medium, such as the memory 504 including instructions executable by the processor 520 of the device 500 to perform the method, is provided in another exemplary embodiment of the present disclosure. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The instructions in the storage medium, when executed by a processor of the terminal device, enable the terminal device to perform the above-described method.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements 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 invention is limited only by the appended claims.

Claims (16)

1. The utility model provides an ambient light confirms method, is applied to the terminal equipment that includes the full-face screen, is provided with the photosensitive device under terminal equipment's the display screen, the photosensitive device includes first sensitization unit and second sensitization unit, and first sensitization unit is configured as the ambient light of the whole screen light sum terminal equipment of receiving display screen place environment, second sensitization unit is configured as the polarisation screen light of receiving the display screen after the polarisation, first sensitization unit has a plurality of first sensitization passageways, second sensitization unit has a plurality of second sensitization passageways, and a plurality of first sensitization passageway corresponds the setting with a plurality of second sensitization passageway, and corresponding first sensitization passageway and second sensitization passageway form a set of sensitization passageway group, and its characterized in that, under ambient light shines, the method includes:
acquiring 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;
and determining a current ambient light illumination value according to the reference ambient light illumination value and the plurality of ambient light channel values.
2. The ambient light determination method of claim 1, wherein determining a current ambient light illumination value based on the reference ambient light illumination value and the plurality of ambient light channel values comprises:
respectively determining a detection illumination value under each preset photosensitive parameter according to the plurality of environment light channel values;
the detection illumination values are respectively subtracted from the reference environment illumination value to obtain a plurality of difference values;
and determining the detection illumination value corresponding to the difference value with the minimum absolute value in the plurality of difference values as the current ambient light illumination value.
3. The ambient light determination method of claim 1, wherein the method of determining the plurality of preset exposure parameters comprises:
under the condition of no ambient light, controlling the display screen to respectively display a plurality of monochromatic lights;
under each monochromatic light, 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;
and determining preset photosensitive parameters of each group of photosensitive channels under each monochromatic light according to the first channel value and the second channel value corresponding to each group of photosensitive channels under each monochromatic light.
4. The ambient light determination method according to claim 3, wherein determining 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 comprises:
under each monochromatic light, the ratio of the first channel value to the second channel value corresponding to each photosensitive channel group is used as a preset photosensitive parameter of the photosensitive channel group under the monochromatic light.
5. The ambient light determination method of claim 3, wherein the controlling the display screen to display the plurality of monochromatic lights in the absence of ambient light comprises:
under the condition of no ambient light, the display screen is controlled to respectively display four monochromatic lights of red, green, blue and white.
6. The ambient light determination method of claim 1, further comprising:
and updating the reference ambient light illumination value according to the current ambient light illumination value.
7. The ambient light determination method of claim 6, wherein the reference ambient light illumination value is a first average of N consecutive ambient light illumination values adjacent to the current ambient light illumination value, and wherein updating the reference ambient light illumination value based on the current ambient light illumination value comprises:
determining a second average of N-1 ambient light illumination values adjacent to the current ambient light illumination value from the current ambient light illumination value;
and updating the reference environment illumination value according to the second average value.
8. The utility model provides an ambient light confirms device, is applied to the terminal equipment including the full-face screen, is provided with photosensitive device under terminal equipment's the display screen, photosensitive device includes first sensitization unit and second sensitization unit, and first sensitization unit is configured as the ambient light of the whole screen light sum terminal equipment of receiving the display screen and the environment that terminal equipment locates, second sensitization unit is configured as the polarisation screen light of receiving the display screen after the polarisation, first sensitization unit has a plurality of first sensitization passageways, second sensitization unit has a plurality of second sensitization passageway, and is a plurality of first sensitization passageway is with a plurality of second sensitization passageway corresponds the setting, and corresponding first sensitization passageway and second sensitization passageway form a set of sensitization passageway group, and its characterized in that, the device includes:
the acquisition module is used for acquiring a reference environment illumination value;
the test module is used for determining a plurality of ambient light channel values of the plurality of photosensitive channel groups under a plurality of preset photosensitive parameters respectively;
and the determining module is used for determining the current ambient light illumination value according to the reference ambient light illumination value and the plurality of ambient light channel values.
9. The ambient light determination apparatus of claim 8, wherein the determination module is specifically configured to:
respectively determining a detection illumination value under each preset photosensitive parameter according to the plurality of environment light channel values;
the detection illumination values are respectively subtracted from the reference environment illumination value to obtain a plurality of difference values;
and determining the detection illumination value corresponding to the difference value with the minimum absolute value in the plurality of difference values as the current ambient light illumination value.
10. The ambient light determination device of claim 8, wherein the test module comprises:
the display control unit is used for controlling the display screen to respectively display a plurality of monochromatic lights under the condition of no ambient light;
the test acquisition unit is 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;
and the test determining unit is used for determining preset photosensitive parameters of each group of photosensitive channels under each monochromatic light according to the first channel value and the second channel value corresponding to each group of photosensitive channels under each monochromatic light.
11. The ambient light determination apparatus according to claim 10, wherein the test determination unit is specifically configured to:
under each monochromatic light, the ratio of the first channel value to the second channel value corresponding to each photosensitive channel group is used as a preset photosensitive parameter of the photosensitive channel group under the monochromatic light.
12. The ambient light determination device according to claim 10, wherein the display control unit is specifically configured to:
under the condition of no ambient light, the display screen is controlled to respectively display four monochromatic lights of red, green, blue and white.
13. The ambient light determination device of claim 8, wherein the device further comprises:
and the updating module is used for updating the reference ambient light illumination value according to the current ambient light illumination value.
14. The ambient light determination device according to claim 13, wherein the reference ambient light illumination value is a first average of N consecutive ambient light illumination values adjacent to the current ambient light illumination value, and the update module is specifically configured to:
determining a second average of N-1 ambient light illumination values adjacent to the current ambient light illumination value from the current ambient light illumination value;
and updating the reference environment illumination value according to the second average value.
15. A terminal device, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the ambient light determination method of any of claims 1 to 7.
16. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a terminal device, enable the terminal device to perform the ambient light determination method of any of claims 1 to 7.
CN202010436269.XA 2020-05-21 2020-05-21 Ambient light determination method and device, terminal equipment and storage medium Pending CN113709275A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010436269.XA CN113709275A (en) 2020-05-21 2020-05-21 Ambient light determination method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010436269.XA CN113709275A (en) 2020-05-21 2020-05-21 Ambient light determination method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113709275A true CN113709275A (en) 2021-11-26

Family

ID=78645811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010436269.XA Pending CN113709275A (en) 2020-05-21 2020-05-21 Ambient light determination method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113709275A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114495862A (en) * 2022-01-24 2022-05-13 上海闻泰信息技术有限公司 Method for acquiring ambient light sensitivity value, electronic device and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204155595U (en) * 2013-11-07 2015-02-11 苹果公司 Electronic equipment and detect the device of surround lighting on an electronic device
CN108267223A (en) * 2017-01-03 2018-07-10 中兴通讯股份有限公司 A kind of method and apparatus of calibration environment optical sensor
CN109036163A (en) * 2018-08-31 2018-12-18 京东方科技集团股份有限公司 A kind of display device and its environment light detection method
CN109801603A (en) * 2019-03-12 2019-05-24 徐丽萍 The method for adjusting liquid crystal display colour temperature according to the illumination of external ambient light
CN109803051A (en) * 2019-01-14 2019-05-24 北京小米移动软件有限公司 Ambient brightness value-acquiring method and device
CN109817152A (en) * 2019-04-09 2019-05-28 Oppo广东移动通信有限公司 Screen luminance adjustment method and Related product
CN109855727A (en) * 2019-01-17 2019-06-07 Oppo广东移动通信有限公司 Environment light detection method, device, electronic equipment and storage medium
CN110324937A (en) * 2019-07-10 2019-10-11 深圳云联智能光电科技有限公司 Simulate the Healthy Lighting method and intelligence control system of natural light variation tendency
US20200152724A1 (en) * 2018-11-13 2020-05-14 Samsung Electronics Co., Ltd. Electronic device and illuminance sensing method based on display information on electronic device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204155595U (en) * 2013-11-07 2015-02-11 苹果公司 Electronic equipment and detect the device of surround lighting on an electronic device
CN108267223A (en) * 2017-01-03 2018-07-10 中兴通讯股份有限公司 A kind of method and apparatus of calibration environment optical sensor
WO2018126929A1 (en) * 2017-01-03 2018-07-12 中兴通讯股份有限公司 Method and apparatus for calibrating ambient light sensor
CN109036163A (en) * 2018-08-31 2018-12-18 京东方科技集团股份有限公司 A kind of display device and its environment light detection method
US20200152724A1 (en) * 2018-11-13 2020-05-14 Samsung Electronics Co., Ltd. Electronic device and illuminance sensing method based on display information on electronic device
CN109803051A (en) * 2019-01-14 2019-05-24 北京小米移动软件有限公司 Ambient brightness value-acquiring method and device
CN109855727A (en) * 2019-01-17 2019-06-07 Oppo广东移动通信有限公司 Environment light detection method, device, electronic equipment and storage medium
CN109801603A (en) * 2019-03-12 2019-05-24 徐丽萍 The method for adjusting liquid crystal display colour temperature according to the illumination of external ambient light
CN109817152A (en) * 2019-04-09 2019-05-28 Oppo广东移动通信有限公司 Screen luminance adjustment method and Related product
CN110324937A (en) * 2019-07-10 2019-10-11 深圳云联智能光电科技有限公司 Simulate the Healthy Lighting method and intelligence control system of natural light variation tendency

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114495862A (en) * 2022-01-24 2022-05-13 上海闻泰信息技术有限公司 Method for acquiring ambient light sensitivity value, electronic device and computer readable storage medium

Similar Documents

Publication Publication Date Title
US11015973B2 (en) Method and apparatus for acquiring ambient light brightness based on the luminance value of the screen of a terminal device
CN113077738B (en) Ambient light detection method and device and storage medium
US10818736B2 (en) Display substrate of electronic device and method for manufacturing same
CN111829654A (en) Ambient light detection method and device, and computer storage medium
US20210381886A1 (en) Display assembly and manufacturing method thereof, electronic device
CN111380609B (en) Light sensation data acquisition method and device, electronic equipment and storage medium
CN108184103B (en) Method and apparatus for displaying image
CN112905135A (en) Screen brightness processing method, electronic device and storage medium
CN113709275A (en) Ambient light determination method and device, terminal equipment and storage medium
CN112764659A (en) Information processing method and device, electronic device and storage medium
CN112188111B (en) Photographing method and device, terminal and storage medium
CN111131596A (en) Screen brightness adjusting method and device
CN113452813B (en) Image acquisition device, terminal device, method, processing device, and medium
CN113747626B (en) Ambient light determining method, device, terminal equipment and medium
CN115145662A (en) Screen display brightness adjusting method and device and storage medium
CN110971722B (en) Image shooting method and device
JP2021190077A (en) Optical fingerprint module and signal processing method
CN111243506B (en) Screen brightness adjusting method, device, equipment and storage medium
CN114187860B (en) Spectrum information determining method and device, electronic equipment and medium
CN112822465B (en) Terminal equipment and image processing method
CN111507133B (en) Fingerprint identification calibration method and device
CN112489603B (en) Electronic device, display control method, and readable storage medium
CN112710383A (en) Light sensor calibration method and device and storage medium
CN114095672A (en) Imaging system, method and electronic device
CN116593009A (en) Color temperature detection method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination