CN111829654B - Ambient light detection method and device, and computer storage medium - Google Patents

Ambient light detection method and device, and computer storage medium Download PDF

Info

Publication number
CN111829654B
CN111829654B CN202010724406.XA CN202010724406A CN111829654B CN 111829654 B CN111829654 B CN 111829654B CN 202010724406 A CN202010724406 A CN 202010724406A CN 111829654 B CN111829654 B CN 111829654B
Authority
CN
China
Prior art keywords
detection
light
value
determining
sensor
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.)
Active
Application number
CN202010724406.XA
Other languages
Chinese (zh)
Other versions
CN111829654A (en
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 CN202010724406.XA priority Critical patent/CN111829654B/en
Publication of CN111829654A publication Critical patent/CN111829654A/en
Application granted granted Critical
Publication of CN111829654B publication Critical patent/CN111829654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/4204Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light

Landscapes

  • Life Sciences & Earth Sciences (AREA)
  • Sustainable Development (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Polarising Elements (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

The disclosure relates to an ambient light detection method and device and a computer storage medium, belonging to the light sensation detection technology in the field of terminals; wherein the ambient light detection method comprises: determining a detection value of each detection channel according to a first detection value of the first light sensor of each detection channel, a second detection value of the second light sensor of each detection channel and a first preset proportionality coefficient; the first preset proportion coefficient is a multiplying power relation of screen light leakage received by the first light sensor and the second light sensor; determining a light intensity value of the ambient light according to the determined detection value of each detection channel and the light intensity conversion weight value corresponding to each detection channel; by adopting the technical scheme provided by the disclosure, the detection of the external environment light can be realized without researching the transmission of the internal light path of the display screen and the polarization characteristic of the screen.

Description

Ambient light detection method and device, and computer storage medium
Technical Field
The present disclosure relates to light sensing technologies in the field of terminals, and in particular, to an ambient light detection method and apparatus, and a computer storage medium.
Background
The technical scheme of dual Light sensation under the screen is that one Light sensation sensor is used for detecting ambient Light and Light leakage of an Organic Light-Emitting Diode (OLED), the other Light sensation sensor only detects the Light leakage of the OLED, the Light sensation sensor and the OLED are differentiated to obtain the external ambient Light, the external ambient Light is limited by the sequence of a polarizer and a delay wave plate inside the screen and the optical characteristics of a final support film of an OLED hard screen, and the display industry has no unified standard for polarization and the delay wave plate inside the screen, so that the external ambient Light can be detected only by independently researching the transmission of an internal Light path and the polarization characteristics of the screen for each display screen solution.
Disclosure of Invention
The present disclosure provides an ambient light detection method and apparatus, and a computer storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided an ambient light detection method applied to an electronic device having a display screen, where a first Photo sensor and a second Photo sensor are disposed below the display screen, the first Photo sensor is used to detect light intensities of ambient light and screen light leakage, the second Photo sensor is used to detect light intensity of screen light leakage, and the first Photo sensor and the second Photo sensor each have m × n Photodiode (PD) arrays and i channels, where m is a number of rows of the PD array and n is a number of columns of the PD array; m, n and i are all positive integers; the ambient light detection method includes:
determining a detection value of each detection channel according to a first detection value of the first light sensor of each detection channel, a second detection value of the second light sensor of each detection channel and a first preset proportionality coefficient; the first preset proportion coefficient is a multiplying power relation of screen light leakage received by the first light sensor and the second light sensor;
and determining the light intensity value of the ambient light according to the determined detection value of each detection channel and the light intensity conversion weight value corresponding to each detection channel.
In the foregoing solution, the determining a detection value of each detection channel according to a first detection value of the first light sensor of each detection channel, a second detection value of the second light sensor of each detection channel, and a first preset proportionality coefficient includes:
determining a minimum second detection value of the second light-sensitive sensor of each detection channel;
determining a product value of a minimum second detection value of the second light sensor of each detection channel and a first preset proportionality coefficient;
determining a difference operation result of a first detection value of the first light sensor of each detection channel and the product value of the second light sensor under the corresponding detection channel;
and determining the detection value of each detection channel according to the difference operation result of each detection channel.
In the foregoing solution, the method further includes:
acquiring a second preset proportionality coefficient, wherein the second preset proportionality coefficient is a proportionality coefficient between different electronic equipment;
according to the detection numerical value of each detection channel that determines to and the light intensity conversion weighted value that each detection channel corresponds, confirm the light intensity value of ambient light, include:
determining the product value of the detection value of each detection channel and the corresponding light intensity conversion weight value;
determining the accumulated sum of the product values corresponding to each detection channel;
and determining the light intensity value of the ambient light according to the second preset proportionality coefficient and the accumulated sum.
In the above scheme, the method further comprises:
and determining the film thickness of the circular polarizer in the second light sensor corresponding to different detection channels according to the wavelength of the light wave detected by the different detection channels.
In the foregoing solution, the method further includes:
under the same detection channel, different polarization directions are plated on the PD array at certain angles.
According to a second aspect of the embodiments of the present disclosure, an ambient light detection device is provided, which is applied to an electronic device having a display screen, wherein a first light sensor and a second light sensor are disposed below the display screen, the first light sensor is used for detecting light intensities of ambient light and screen light leakage, the second light sensor is used for detecting light intensities of screen light leakage, and the ambient light detection device includes:
a detection module configured to detect a first detection value of the first light-sensing sensor of each detection channel and a second detection value of the second light-sensing sensor of each detection channel;
the determining module is configured to determine a detection value of each detection channel according to a first detection value of the first light sensor of each detection channel, a second detection value of the second light sensor of each detection channel and a first preset proportionality coefficient; the first preset proportion coefficient is a multiplying power relation of the first light sensor and the second light sensor receiving screen light leakage; and determining the light intensity value of the ambient light according to the determined detection value of each detection channel and the light intensity conversion weight value corresponding to each detection channel.
In the foregoing solution, the determining module is configured to:
determining a minimum second detection value of the second light-sensitive sensor of each detection channel;
determining a product value of a minimum second detection value of the second light sensor of each detection channel and a first preset proportionality coefficient;
determining a difference operation result of a first detection value of the first light sensor of each detection channel and the product value of the second light sensor under the corresponding detection channel;
and determining the detection value of each detection channel according to the difference operation result of each detection channel.
In the above scheme, the apparatus further comprises:
the acquisition module is configured to acquire a second preset proportionality coefficient, wherein the second preset proportionality coefficient is a proportionality coefficient between different electronic devices;
the determination module configured to:
determining the product value of the detection value of each detection channel and the corresponding light intensity conversion weight value;
determining the accumulated sum of the product values corresponding to each detection channel;
and determining the light intensity value of the ambient light according to the second preset proportionality coefficient and the accumulated sum.
In the foregoing solution, the determining module is further configured to:
and determining the film thickness of the circular polarizer in the second light sensor corresponding to different detection channels according to the wavelength of the light wave detected by different detection channels.
In the foregoing solution, the determining module is further configured to:
under the same detection channel, different polarization directions are plated on the PD array at certain angles.
According to a third aspect of the embodiments of the present disclosure, there is provided an ambient light detection apparatus including:
a processor;
a memory for storing executable instructions;
wherein the processor is configured to: the executable instructions are executed to implement the ambient light detection method of any of the preceding aspects.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer storage medium having stored therein executable instructions, which when executed by a processor, cause the processor to execute the ambient light detection method according to any one of the preceding aspects.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the disclosure, a detection value of each detection channel is determined according to a first detection value of the first light-sensitive sensor of each detection channel, a second detection value of the second light-sensitive sensor of each detection channel and a first preset proportionality coefficient; the first preset proportion coefficient is a multiplying power relation of screen light leakage received by the first light sensor and the second light sensor; determining a light intensity value of the ambient light according to the determined detection value of each detection channel and the light intensity conversion weight value corresponding to each detection channel; by adopting the technical scheme provided by the disclosure, the detection of the external environment light can be realized without researching the transmission of the internal light path of the display screen and the polarization characteristic of the screen.
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. In the drawings:
FIG. 1 is a flow diagram illustrating a method of ambient light detection according to an exemplary embodiment;
FIG. 2 is a schematic diagram illustrating a random distribution of multiple PD arrays plated with the same polarization direction under the same detection channel in accordance with an exemplary embodiment;
FIG. 3 is a schematic diagram illustrating circular polarizer thickness for different optical bands, according to an exemplary embodiment;
FIG. 4 is a block diagram illustrating an ambient light detection device in accordance with an exemplary embodiment;
fig. 5 is a block diagram illustrating an electronic device 800 employing ambient light detection 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 examples of the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the embodiments of the application, as detailed in the appended claims.
The terminology used in the embodiments of the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the present disclosure. As used in the disclosed embodiments and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information in the embodiments of the present disclosure, such information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of embodiments of the present disclosure. The words "if" and "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination", depending on the context.
Fig. 1 is a flowchart illustrating an ambient light detection method according to an exemplary embodiment, and as shown in fig. 1, the ambient light detection method is applied to an electronic device having a display screen, under which a first light-sensitive sensor and a second light-sensitive sensor are disposed, the first light-sensitive sensor being configured to detect the intensity of ambient light and screen light leakage, and the second light-sensitive sensor being configured to detect the intensity of screen light leakage. The embodiment of the application can be applied to various terminals with display screens, including but not limited to fixed terminals and mobile terminals, for example, the fixed terminals include but not limited to: personal Computers (PCs), televisions, and the like; the mobile terminal includes but is not limited to: mobile phones, tablet computers, and the like. Each of the first and second photosensors has m × n Photodiode (PD) arrays, i channels, where m is a number of rows of the PD array and n is a number of columns of the PD array; m, n and i are all positive integers; the ambient light detection method includes the following steps.
In step S11, determining a detection value of each detection channel according to a first detection value of the first light sensor of each detection channel, a second detection value of the second light sensor of each detection channel, and a first preset scaling factor; the first preset proportion coefficient is a multiplying power relation of screen light leakage received by the first light sensor and the second light sensor;
in step S12, the light intensity value of the ambient light is determined according to the determined detection value of each detection channel and the light intensity conversion weight value corresponding to each detection channel.
In this embodiment, the first light sensor is located below the display screen, and the second light sensor is located below the display screen. The second light sensor and the first light sensor are arranged side by side, and the second light sensor is positioned on the left side or the right side of the first light sensor.
In this embodiment, the light intensity conversion weighting values corresponding to the detection channels are the same or different. Let the light intensity conversion weighted value that detection channel 1 corresponds be h1, the light intensity conversion weighted value that detection channel 1 corresponds be h2, the light intensity conversion weighted value that detection channel 3 corresponds be h3, the light intensity conversion weighted value that detection channel i corresponds be hi, so, h1 ≠ h2 ≠ h3 ≠ hi, or h1= h2 ≠ h3, or h1= h3 ≠ h2.
In the technical scheme of the embodiment of the disclosure, a detection value of each detection channel is determined according to a first detection value of a first light sensor of each detection channel, a second detection value of a second light sensor of each detection channel and a first preset proportionality coefficient; the first preset proportion coefficient is a multiplying power relation of screen light leakage received by the first light sensor and the second light sensor; determining a light intensity value of the ambient light according to the determined detection value of each detection channel and the light intensity conversion weight value corresponding to each detection channel; by adopting the technical scheme provided by the disclosure, the detection of the external environment light can be realized without researching the transmission of the internal light path of the display screen and the polarization characteristic of the screen.
Based on the technical solution shown in fig. 1, in some embodiments, step S11 includes:
step S11a: determining a minimum second detection value of the second light-sensitive sensor of each detection channel;
step S11b: determining a product value of a minimum second detection value of the second light sensor of each detection channel and a first preset proportionality coefficient;
step S11c: determining a difference operation result of a first detection value of the first light sensor of each detection channel and the product value of the second light sensor under the corresponding detection channel;
step S11d: and determining the detection value of each detection channel according to the difference operation result of each detection channel.
Illustratively, the calculation formula of the detection value of each detection channel is as follows:
Sensor(i)=Sensor1(i)-k*min{Sensor2(i)}。
wherein i represents a detection channel identifier, sensor (i) represents a detection value corresponding to the detection channel i, sensor1 (i) represents a first detection value of a first light-sensitive Sensor corresponding to the detection channel i, sensor2 (i) represents a second detection value of a second light-sensitive Sensor corresponding to the detection channel i, min { Sensor2 (i) } represents a minimum second detection value of the second light-sensitive Sensor corresponding to the detection channel i, and k represents a first preset proportionality coefficient.
Therefore, the detection value of each detection channel is determined, and calculation basis is provided for subsequently determining the light intensity value of the ambient light.
Based on the technical solution shown in fig. 1, in some embodiments, the method further includes: and acquiring a second preset proportionality coefficient, wherein the second preset proportionality coefficient is a proportionality coefficient between different electronic equipment. Specifically, the second preset scaling factor is obtained from a local or other device, which may be a server or a terminal. It should be noted that, how the local or other devices know the second preset scaling factor is not specifically limited in the present application.
In some embodiments, step S12 includes:
step S12a: determining the product value of the detection value of each detection channel and the corresponding light intensity conversion weight value;
step S12b: determining the accumulated sum of the product values corresponding to each detection channel;
step S12c: and determining the light intensity value of the ambient light according to the second preset proportionality coefficient and the accumulated sum.
Illustratively, the light intensity value of the ambient light is calculated as follows:
lux=y*[h1*Sensor(1)+h2*Sensor(2)+……+hi*Sensor(i)]。
the lux represents a light intensity value of ambient light, i represents a detection channel identifier, sensor (i) represents a detection numerical value corresponding to the detection channel i, h1 represents a light intensity conversion weight value corresponding to the detection channel 1, h2 represents a light intensity conversion weight value corresponding to the detection channel 2, h3 represents a light intensity conversion weight value corresponding to the detection channel 3, hi represents a light intensity conversion weight value corresponding to the detection channel i, and y represents a second preset proportionality coefficient.
Based on the technical solution shown in fig. 1, in some embodiments, the method further includes:
step S13: under the same detection channel, different polarization directions are plated on the PD array at certain angles.
In some embodiments, every t PD arrays in the same optical band detection are plated with the same polarization direction, which is random; the channels correspond to the optical bands, and each PD is plated with a filter of the corresponding optical band.
Illustratively, for an optical band of 400-500nm, to achieve a 90 ° phase difference, there is a certain requirement for the thickness of the polarizer, which is designed according to the arrangement of PDs. The film thicknesses of the polarizing films corresponding to the PD arrays are the same in the same detection band, and the polarization directions corresponding to the PD arrays may be different, but the total coverage range of all polarization directions in the same detection band is 360 degrees. Illustratively, if the optical band has 9 polarization directions, the 9 polarization directions are respectively denoted as 40 °,80 °,120 °,160 °,200 °,240 °,280 °,320 °,360 °.
The first light sensor and the second light sensor are provided with m multiplied by n PD arrays and i channels, wherein m is the row number of the PD arrays, and n represents the column number of the PD arrays; each channel detects the optical band (780 nm-380 nm)/i; each channel corresponds to j = mn/i PD arrays; in the detection of the same optical wave band, every t PD arrays are plated with the same polarization direction which is random; the detection channels correspond to the optical bands, and each PD is plated with an optical filter of the corresponding optical band. The polarization states of the polaroids under the same channel comprise num = j/t states; the angle w =360/num between each two adjacent polarization states.
For each num = j/t detection values in the i channels, when the polarizer 1 of the OLED screen is perpendicular to the polarizer 2 above the second light sensor, then for the i channel, the smallest value of the num detection values is the smallest value for filtering out the external ambient light; for the i channels, there are i minimum values when the detection is performed once, that is, the minimum value of the ambient light is filtered under the condition that the polarizer 1 of the OLED screen is perpendicular to the polarizer 2 of the second photosensor in each optical band, and then the light intensity value of the ambient light is obtained according to the above formula, sensor (i) = Sensor1 (i) -k × min { Sensor2 (i) } and lux = y [ h1= Sensor (1) + h2 × Sensor (2) + … … + hi × Sensor (i) ].
Fig. 2 shows a schematic diagram of random distribution of multiple PD arrays plated with the same polarization direction under the same detection channel, and as shown in fig. 2, the second photosensor has m × n PD arrays, and for a given same detection channel, t PDs of the same polarization state or polarization direction are randomly distributed.
It should be understood that fig. 2 is an alternative specific implementation, but is not limited thereto.
It should also be understood that fig. 2 is only intended to illustrate the embodiments of the present disclosure, and that various obvious changes and/or substitutions may be made by those skilled in the art based on the examples of fig. 2, and the resulting technical solutions still fall within the disclosure scope of the embodiments of the present disclosure.
Based on the technical solution shown in fig. 1, in some embodiments, the method further includes:
step S14: and determining the film thickness of the circular polarizer in the second light sensor corresponding to different detection channels according to the wavelength of the light wave detected by the different detection channels.
A schematic diagram of the thicknesses of circular polarizers corresponding to different optical bands is shown in fig. 3, and the circular polarizers are designed according to the arrangement of PDs.
According to the formula
Figure BDA0002601147660000071
It can be seen that, wherein, n e Is the refractive index of the extraordinary light (e.g. the light emitted by an OLED) in a medium, n o Is the refractive index of ambient light in a medium, d is the thickness of the retarder, λ n Is a wavelength of 380-780nm>
Figure BDA0002601147660000072
Is a phase difference generated after the ambient light and the abnormal light pass through the same medium, and is circular polarization generated when the light amplitudes of the ambient light and the abnormal light passing through the polarizing plate are equal and the phase difference (n + 1)/4 is generated. As shown in fig. 3, the polarizer 1 and the polarizer 2 are orthogonal, and the circular polarizer 1 and the circular polarizer 2 respectively generate a 90 ° phase difference, which is 180 ° when the two are added, so that the light polarization state between the light and the circular polarizer 2 and the polarizer 2 is the same as the polarization state of the polarizer 1, and the polarizer 1 and the polarizer 2 are orthogonal, so that the natural light above the second light sensor is filtered, the light emitted by the OLED can be sensed by the two light sensors, and the two light sensors sense the light difference of the OLED by a ratio k, so that the difference between the two light sensors can realize the detection of the external environment light, and the difference value of each detection channel is sent to the light intensity calculation formula to obtain the external environment light intensity value.
It should be understood that fig. 3 is an alternative specific implementation, but is not limited thereto.
It should also be understood that fig. 3 is only intended to illustrate the embodiments of the present disclosure, and that various obvious changes and/or substitutions may be made by those skilled in the art based on the examples of fig. 3, and the resulting technical solutions still fall within the disclosure scope of the embodiments of the present disclosure.
FIG. 4 is a block diagram illustrating an ambient light detection device according to an exemplary embodiment. This environment light detection device is applied to the electronic equipment that has the display screen, the display screen below is provided with first light sense sensor and second light sense sensor, first light sense sensor is used for detecting the light intensity of environment light sum screen light leak, second light sense sensor is used for detecting the light intensity of screen light leak. Referring to fig. 4, the apparatus includes a detection module 10 and a determination module 20; wherein the content of the first and second substances,
a detection module 10 configured to detect a first detection value of the first light-sensitive sensor of each detection channel and a second detection value of the second light-sensitive sensor of each detection channel;
a determining module 20 configured to determine a detection value of each detection channel according to a first detection value of the first light-sensing sensor of each detection channel, a second detection value of the second light-sensing sensor of each detection channel, and a first preset scaling factor; the first preset proportion coefficient is a multiplying power relation of screen light leakage received by the first light sensor and the second light sensor; and determining the light intensity value of the ambient light according to the determined detection value of each detection channel and the light intensity conversion weight value corresponding to each detection channel.
In some embodiments, the determination module 20 is configured to:
determining a minimum second detection value of the second light-sensitive sensor of each detection channel;
determining a product value of a minimum second detection value of the second light sensor of each detection channel and a first preset proportionality coefficient;
determining a difference operation result of a first detection value of the first light sensor of each detection channel and the product value of the second light sensor under the corresponding detection channel;
and determining the detection value of each detection channel according to the difference operation result of each detection channel.
In some embodiments, the apparatus further comprises:
an obtaining module 30 configured to obtain a second preset proportionality coefficient, where the second preset proportionality coefficient is a proportionality coefficient between different electronic devices;
the determination module 20 configured to:
determining the product value of the detection value of each detection channel and the corresponding light intensity conversion weight value;
determining the accumulated sum of the product values corresponding to each detection channel;
and determining the light intensity value of the ambient light according to the second preset proportionality coefficient and the accumulated sum.
In some embodiments, the determining module 20 is further configured to:
and determining the film thickness of the circular polarizer in the second light sensor corresponding to different detection channels according to the wavelength of the light wave detected by the different detection channels.
In some embodiments, the determining module 20 is further configured to:
under the same detection channel, different polarization directions are plated on the PD array at certain angles.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In practical applications, the specific structures of the detection module 10, the determination module 20, and the acquisition module 30 can be implemented by a Central Processing Unit (CPU), a Micro Controller Unit (MCU), a Digital Signal Processor (DSP), a Programmable Logic Controller (PLC), or the like in the environment light detection device or the terminal to which the environment light detection device belongs.
The ambient light detection apparatus described in this embodiment may be disposed in an electronic device having a display screen.
It should be understood by those skilled in the art that the functions of the processing modules in the ambient light detection apparatus according to the embodiments of the present disclosure may be understood by referring to the description related to the foregoing ambient light detection method, and the processing modules in the ambient light detection apparatus according to the embodiments of the present disclosure may be implemented by analog circuits that implement the functions described in the embodiments of the present disclosure, or by running software that performs the functions described in the embodiments of the present disclosure on a terminal.
The ambient light detection device of the embodiment of the disclosure can realize detection of ambient light without researching light path transmission inside a display screen and screen polarization characteristics.
The disclosed embodiments also recite an ambient light detection apparatus, the apparatus comprising: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the ambient light detection method provided by any one of the above-mentioned technical solutions.
As one embodiment, the processor, when executing the program, implements:
determining a detection value of each detection channel according to a first detection value of the first light sensor of each detection channel, a second detection value of the second light sensor of each detection channel and a first preset proportionality coefficient; the first preset proportion coefficient is a multiplying power relation of screen light leakage received by the first light sensor and the second light sensor;
and determining the light intensity value of the ambient light according to the determined detection value of each detection channel and the light intensity conversion weight value corresponding to each detection channel.
As an embodiment, the processor, when executing the program, implements:
determining a minimum second detection value of the second light-sensitive sensor of each detection channel;
determining a product value of a minimum second detection value of the second light sensor of each detection channel and a first preset proportionality coefficient;
determining a difference operation result of a first detection value of the first light sensor of each detection channel and the product value of the second light sensor under the corresponding detection channel;
and determining the detection value of each detection channel according to the difference operation result of each detection channel.
As an embodiment, the processor, when executing the program, implements:
acquiring a second preset proportionality coefficient, wherein the second preset proportionality coefficient is a proportionality coefficient between different electronic equipment;
determining the product value of the detection value of each detection channel and the corresponding light intensity conversion weight value;
determining the accumulated sum of the product values corresponding to each detection channel;
and determining the light intensity value of the ambient light according to the second preset proportionality coefficient and the accumulated sum.
As an embodiment, the processor, when executing the program, implements:
and determining the film thickness of the circular polarizer in the second light sensor corresponding to different detection channels according to the wavelength of the light wave detected by the different detection channels.
As an embodiment, the processor, when executing the program, implements:
under the same detection channel, different polarization directions are plated on the PD array at certain angles.
The ambient light detection device that this application embodiment provided need not to study inside light path transmission of display screen and screen polarization characteristic, can realize the detection to external ambient light.
The embodiment of the present application further describes a computer storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are used for executing the ambient light detection method described in the foregoing embodiments. That is, after being executed by a processor, the computer-executable instructions can implement the ambient light detection method provided by any one of the foregoing technical solutions.
It will be understood by those skilled in the art that the functions of the programs in the computer storage medium of the present embodiment can be understood by referring to the description related to the ambient light detection method described in the foregoing embodiments.
Fig. 5 is a block diagram illustrating an electronic device 800 and an electronic device 800 employing ambient light detection according to an example embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an Input/Output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The Memory 804 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random-Access Memory (SRAM), electrically-Erasable Programmable Read-Only Memory (EEPROM), erasable Programmable Read-Only Memory (EPROM), programmable Read-Only Memory (PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk.
The power components 806 provide power to the various components of the electronic device 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a 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 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation 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 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 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 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 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 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a photosensor, such as a Complementary Metal Oxide Semiconductor (CMOS) or Charge-coupled Device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as Wi-Fi,2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 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 816 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 Wide Band (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic Device 800 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 for performing the above-described ambient light detection method.
In an exemplary embodiment, a non-transitory computer storage medium including executable instructions, such as the memory 804 including executable instructions, that are executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer 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 technical solutions described in the embodiments of the present disclosure can be arbitrarily combined without conflict.
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 (10)

1. The ambient light detection method is characterized by being applied to electronic equipment with a display screen, wherein a first light sensor and a second light sensor are arranged below the display screen, the first light sensor is used for detecting the light intensity of ambient light and screen light leakage, the second light sensor is used for detecting the light intensity of screen light leakage, and the first light sensor and the second light sensor are respectively provided with m multiplied by n PD arrays and i detection channels, wherein m is the number of lines of the PD arrays, and n is the number of columns of P D arrays; m, n and i are all positive integers; the ambient light detection method includes:
determining a detection value of each detection channel according to a first detection value of the first light sensor of each detection channel, a second detection value of the second light sensor of each detection channel and a first preset proportionality coefficient; the first preset proportion coefficient is a multiplying power relation of screen light leakage received by the first light sensor and the second light sensor;
determining a light intensity value of the ambient light according to the determined detection value of each detection channel and the light intensity conversion weight value corresponding to each detection channel;
wherein the determining the detection value of each detection channel comprises:
determining the smallest second detection value of the second light-sensitive sensor of each detection channel;
determining the product value of the minimum second detection value of the second light-sensitive sensor of each detection channel and the first preset proportionality coefficient;
determining a difference operation result of the first detection value of the first light sensor of each detection channel and the product value of the second light sensor of the corresponding detection channel;
and determining the detection value of each detection channel according to the difference operation result of each detection channel.
2. The ambient light detection method of claim 1, further comprising:
acquiring a second preset proportionality coefficient, wherein the second preset proportionality coefficient is a proportionality coefficient between different electronic equipment;
according to the detection numerical value of each detection channel that determines to and the light intensity conversion weighted value that each detection channel corresponds, confirm the light intensity value of ambient light, include:
determining the product value of the detection value of each detection channel and the corresponding light intensity conversion weight value;
determining the accumulated sum of the product values corresponding to each detection channel;
and determining the light intensity value of the ambient light according to the second preset proportionality coefficient and the accumulated sum.
3. The method of ambient light detection according to claim 1, further comprising:
and determining the film thickness of the circular polarizer in the second light sensor corresponding to different detection channels according to the wavelength of the light wave detected by different detection channels.
4. The ambient light detection method of claim 1, further comprising:
under the same detection channel, different polarization directions are plated on the PD array at certain angles.
5. The environment light detection device is characterized by being applied to electronic equipment with a display screen, wherein a first light sensor and a second light sensor are arranged below the display screen, the first light sensor is used for detecting the light intensity of environment light and screen light leakage, the second light sensor is used for detecting the light intensity of the screen light leakage, and the first light sensor and the second light sensor are respectively provided with m multiplied by n PD arrays and i detection channels, wherein m is the number of lines of the PD arrays, and n is the number of columns of P D arrays; m, n and i are all positive integers; the ambient light detection device includes:
a detection module configured to detect a first detection value of the first light-sensing sensor of each detection channel and a second detection value of the second light-sensing sensor of each detection channel;
the determining module is configured to determine a detection value of each detection channel according to a first detection value of the first light sensor of each detection channel, a second detection value of the second light sensor of each detection channel and a first preset proportionality coefficient; the first preset proportion coefficient is a multiplying power relation of screen light leakage received by the first light sensor and the second light sensor; determining a light intensity value of the ambient light according to the determined detection value of each detection channel and the light intensity conversion weight value corresponding to each detection channel;
wherein the determining the detection value of each detection channel comprises:
determining the smallest second detection value of the second light-sensitive sensor of each detection channel;
determining a product value of the minimum second detection value of the second light-sensitive sensor of each detection channel and the first preset proportionality coefficient;
determining a difference operation result of the first detection value of the first light sensor of each detection channel and the product value of the second light sensor of the corresponding detection channel;
and determining the detection value of each detection channel according to the difference operation result of each detection channel.
6. The ambient light detection device of claim 5, further comprising:
the acquisition module is configured to acquire a second preset proportionality coefficient, wherein the second preset proportionality coefficient is a proportionality coefficient between different electronic devices;
the determination module configured to:
determining the product value of the detection value of each detection channel and the corresponding light intensity conversion weight value;
determining the accumulated sum of the product values corresponding to each detection channel;
and determining the light intensity value of the ambient light according to the second preset proportionality coefficient and the accumulated sum.
7. The ambient light detection device of claim 5, wherein the determination module is further configured to:
and determining the film thickness of the circular polarizer in the second light sensor corresponding to different detection channels according to the wavelength of the light wave detected by the different detection channels.
8. The ambient light detection device of claim 5, wherein the determination module is further configured to:
under the same detection channel, different polarization directions are plated on the PD array at certain angles.
9. An ambient light detection device, comprising:
a processor;
a memory for storing executable instructions;
wherein the processor is configured to: executing the executable instructions to implement the ambient light detection method of any of claims 1 to 4.
10. A computer storage medium having stored therein executable instructions that, when executed by a processor, cause the processor to perform the ambient light detection method of any of claims 1 to 4.
CN202010724406.XA 2020-07-24 2020-07-24 Ambient light detection method and device, and computer storage medium Active CN111829654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010724406.XA CN111829654B (en) 2020-07-24 2020-07-24 Ambient light detection method and device, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010724406.XA CN111829654B (en) 2020-07-24 2020-07-24 Ambient light detection method and device, and computer storage medium

Publications (2)

Publication Number Publication Date
CN111829654A CN111829654A (en) 2020-10-27
CN111829654B true CN111829654B (en) 2023-03-24

Family

ID=72925898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010724406.XA Active CN111829654B (en) 2020-07-24 2020-07-24 Ambient light detection method and device, and computer storage medium

Country Status (1)

Country Link
CN (1) CN111829654B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114414042A (en) * 2020-10-28 2022-04-29 北京小米移动软件有限公司 Ambient light detection method and device, storage medium and electronic equipment
CN112468656A (en) * 2020-11-17 2021-03-09 惠州Tcl移动通信有限公司 Method, device and equipment for controlling brightness of display screen and computer readable storage medium
CN112484967B (en) * 2020-11-18 2023-04-07 深圳市汇顶科技股份有限公司 Light intensity detection method, light intensity detection device, light intensity parameter determination method, light intensity parameter determination device, equipment and storage medium
CN112396967B (en) * 2020-11-30 2023-06-09 深圳市汇顶科技股份有限公司 Optical sensing module, screen assembly, electronic device, detection method and storage medium
CN113899449A (en) 2021-09-30 2022-01-07 深圳市汇顶科技股份有限公司 Method for detecting ambient light sensing value, electronic device and storage medium
CN113820010B (en) * 2021-10-29 2023-05-23 北京环境特性研究所 Illuminance measuring device and method
CN114495862A (en) * 2022-01-24 2022-05-13 上海闻泰信息技术有限公司 Method for acquiring ambient light sensitivity value, electronic device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150074776A (en) * 2013-12-24 2015-07-02 송호석 Apparatus for Measuring Photo-environment of Plants Factory and Method for Measuring the Same
CN109147698A (en) * 2018-09-12 2019-01-04 重庆惠科金渝光电科技有限公司 A kind of display device and its screen intensity Automatic adjustment method
CN111380609A (en) * 2020-05-28 2020-07-07 北京小米移动软件有限公司 Light sensation data acquisition method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9612152B2 (en) * 2013-11-07 2017-04-04 Apple Inc. Ambient light sensor with internal light cancellation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150074776A (en) * 2013-12-24 2015-07-02 송호석 Apparatus for Measuring Photo-environment of Plants Factory and Method for Measuring the Same
CN109147698A (en) * 2018-09-12 2019-01-04 重庆惠科金渝光电科技有限公司 A kind of display device and its screen intensity Automatic adjustment method
CN111380609A (en) * 2020-05-28 2020-07-07 北京小米移动软件有限公司 Light sensation data acquisition method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111829654A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN111829654B (en) Ambient light detection method and device, and computer storage medium
EP3179711B1 (en) Method and apparatus for preventing photograph from being shielded
RU2619893C2 (en) Method and device for voice call, method and device for voice signal reproducing
WO2016107030A1 (en) Notification information display method and apparatus
WO2017088266A1 (en) Image processing method and apparatus
WO2017035994A1 (en) Method and apparatus for connecting external device
EP3462367B1 (en) Method and apparatus for displaying application interface
US20180144546A1 (en) Method, device and terminal for processing live shows
CN106791339B (en) Imaging system and control method thereof
US9924334B1 (en) Message pushing method, terminal equipment and computer-readable storage medium
KR20150122574A (en) Method and device for executing user instructions
CN107171938B (en) Method and device for shielding social friends
CN112146758B (en) Ambient light detection device
WO2018049610A1 (en) Permission control method and device
CN107656616B (en) Input interface display method and device and electronic equipment
CN107463809B (en) Application icon display method and device
CN113899448B (en) Electronic equipment, ambient light color temperature measuring method and device and storage medium
CN106445122B (en) Equipment state control method and device
CN109803051A (en) Ambient brightness value-acquiring method and device
US11425299B2 (en) Camera module, processing method and apparatus, electronic device, and storage medium
WO2018049611A1 (en) Permission control method and device
CN111651441A (en) Data processing method and device and computer storage medium
CN107357643B (en) Application calling method and device and computer readable storage medium
CN107203315B (en) Click event processing method and device and terminal
CN110968155A (en) Full-screen terminal, operation execution method and device based on full-screen terminal

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
GR01 Patent grant
GR01 Patent grant