CN111947775A - Device detection method and device, storage medium and electronic device - Google Patents

Device detection method and device, storage medium and electronic device Download PDF

Info

Publication number
CN111947775A
CN111947775A CN202010887622.6A CN202010887622A CN111947775A CN 111947775 A CN111947775 A CN 111947775A CN 202010887622 A CN202010887622 A CN 202010887622A CN 111947775 A CN111947775 A CN 111947775A
Authority
CN
China
Prior art keywords
light
light intensity
ambient
ambient light
intensity
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.)
Granted
Application number
CN202010887622.6A
Other languages
Chinese (zh)
Other versions
CN111947775B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010887622.6A priority Critical patent/CN111947775B/en
Publication of CN111947775A publication Critical patent/CN111947775A/en
Priority to PCT/CN2021/105731 priority patent/WO2022042085A1/en
Application granted granted Critical
Publication of CN111947775B publication Critical patent/CN111947775B/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
    • 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/4228Photometry, e.g. photographic exposure meter using electric radiation detectors arrangements with two or more detectors, e.g. for sensitivity compensation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J5/00Radiation pyrometry, e.g. infrared or optical thermometry
    • G01J5/60Radiation pyrometry, e.g. infrared or optical thermometry using determination of colour temperature

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Sustainable Development (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Liquid Crystal Display Device Control (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

The application discloses an ambient light detection method, which is applied to electronic equipment, wherein the electronic equipment at least comprises a first ambient light sensor and a second ambient light sensor, and the method comprises the following steps: acquiring first red light intensity, first green light intensity and first blue light intensity; acquiring second red light intensity, second green light intensity and second blue light intensity; acquiring a red light intensity component from ambient light according to the first red light intensity, the second red light intensity, a screen light coefficient corresponding to a red light waveband and an ambient light coefficient; acquiring a green light intensity component from ambient light according to the first green light intensity, the second green light intensity, the screen light coefficient corresponding to the green light waveband and the ambient light coefficient; acquiring a blue light intensity component from ambient light according to the first blue light intensity, the second blue light intensity, a screen light coefficient corresponding to a blue light waveband and an ambient light coefficient; and acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component and the blue light intensity component.

Description

Device detection method and device, storage medium and electronic device
Technical Field
The present application belongs to the technical field of electronic devices, and in particular, to a device detection method, apparatus, storage medium, and electronic device.
Background
The ambient light sensor can sense the light condition of the surrounding environment, including the intensity and chromaticity of the light. The environment light sensor is arranged in intelligent electronic equipment such as a mobile phone, and various intelligent response functions can be realized by detecting the change of the chromaticity and the intensity of the ambient light. However, in the related art, the value detected by the ambient light sensor is easily affected by self-luminescence of the screen, i.e., the accuracy of the value detected by the ambient light sensor is low.
Disclosure of Invention
The embodiment of the application provides a method, a device, a storage medium and an electronic device, which can effectively eliminate the influence of self-luminescence of a screen on ambient light detection and improve the accuracy of the ambient light detection.
In a first aspect, an embodiment of the present application provides an ambient light detection method, which is applied to an electronic device, where the electronic device at least includes a first ambient light sensor and a second ambient light sensor, the first ambient light sensor and the second ambient light sensor are covered by a display screen, and each ambient light sensor can detect intensities of a red light band, a green light band, and a blue light band in an environment, where the method includes:
acquiring first red light intensity, first green light intensity and first blue light intensity detected by the first ambient light sensor in the current environment;
acquiring a second red light intensity, a second green light intensity and a second blue light intensity detected by the second ambient light sensor in the current environment;
acquiring a screen light coefficient and an environment light coefficient corresponding to each waveband of a red light waveband, a green light waveband and a blue light waveband, wherein the screen light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when a screen is turned on in advance and no external environment light exists, and the environment light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when the screen is turned off and the external environment light exists in advance;
acquiring a red light intensity component from ambient light under the current environment according to the first red light intensity, the second red light intensity, a screen light coefficient corresponding to a red light wave band and an ambient light coefficient;
acquiring a green light intensity component from ambient light under the current environment according to the first green light intensity, the second green light intensity, and a screen light coefficient and an ambient light coefficient corresponding to a green light waveband;
acquiring a blue light intensity component from ambient light under the current environment according to the first blue light intensity, the second blue light intensity, a screen light coefficient corresponding to a blue light waveband and an ambient light coefficient;
and acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component and the blue light intensity component.
In a second aspect, an embodiment of the present application provides an ambient light detection apparatus applied to an electronic device, where the electronic device at least includes a first ambient light sensor and a second ambient light sensor, the first ambient light sensor and the second ambient light sensor are covered by a display screen, and each ambient light sensor can detect intensities of a red light band, a green light band, and a blue light band in an environment, where the apparatus includes:
the acquisition module is used for acquiring first red light intensity, first green light intensity and first blue light intensity detected by the first ambient light sensor in the current environment; acquiring a second red light intensity, a second green light intensity and a second blue light intensity detected by the second ambient light sensor in the current environment; acquiring a screen light coefficient and an environment light coefficient corresponding to each waveband of a red light waveband, a green light waveband and a blue light waveband, wherein the screen light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when a screen is turned on in advance and no external environment light exists, and the environment light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when the screen is turned off and the external environment light exists in advance;
the computing module is used for acquiring a red light intensity component from ambient light in the current environment according to the first red light intensity, the second red light intensity, a screen light coefficient corresponding to a red light wave band and an ambient light coefficient; acquiring a green light intensity component from ambient light under the current environment according to the first green light intensity, the second green light intensity, and a screen light coefficient and an ambient light coefficient corresponding to a green light waveband; acquiring a blue light intensity component from ambient light under the current environment according to the first blue light intensity, the second blue light intensity, a screen light coefficient corresponding to a blue light waveband and an ambient light coefficient; and acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component and the blue light intensity component.
In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer program is enabled to execute the flow in the ambient light detection method provided by the embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, including: the system comprises a display screen, a first ambient light sensor, a second ambient light sensor and a processor;
the first ambient light sensor and the second ambient light sensor are covered by the display screen, and both the first ambient light sensor and the second ambient light sensor can detect the intensities of a red light waveband, a green light waveband and a blue light waveband in the environment;
the first ambient light sensor is to: acquiring first red light intensity, first green light intensity and first blue light intensity in the current environment;
the second ambient light sensor is to: obtaining a second red light intensity, a second green light intensity and a second blue light intensity under the current environment;
the processor is configured to: acquiring a screen light coefficient and an environment light coefficient corresponding to each waveband of a red light waveband, a green light waveband and a blue light waveband, wherein the screen light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when a screen is turned on in advance and no external environment light exists, and the environment light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when the screen is turned off and the external environment light exists in advance; acquiring a red light intensity component from ambient light under the current environment according to the first red light intensity, the second red light intensity, a screen light coefficient corresponding to a red light wave band and an ambient light coefficient; acquiring a green light intensity component from ambient light under the current environment according to the first green light intensity, the second green light intensity, and a screen light coefficient and an ambient light coefficient corresponding to a green light waveband; acquiring a blue light intensity component from ambient light under the current environment according to the first blue light intensity, the second blue light intensity, a screen light coefficient corresponding to a blue light waveband and an ambient light coefficient; and acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component and the blue light intensity component.
In the embodiment of the present application, the electronic device may be configured with at least a first ambient light sensor and a second ambient light sensor, and both the first ambient light sensor and the second ambient light sensor can detect intensities of a red light band, a green light band, and a blue light band in an environment. Based on this, the electronic device may obtain a first red light intensity, a first green light intensity, and a first blue light intensity detected by the first ambient light sensor in the current environment, and a second red light intensity, a second green light intensity, and a second blue light intensity detected by the second ambient light sensor. Moreover, the electronic device can acquire the screen light coefficient and the ambient light coefficient corresponding to each of the red light waveband, the green light waveband and the blue light waveband. Then, the electronic device may obtain a red light intensity component from ambient light in the current environment according to the first red light intensity, the second red light intensity, the screen light coefficient corresponding to the red light band, and the ambient light coefficient; acquiring a green light intensity component from ambient light under the current environment according to the first green light intensity, the second green light intensity, the screen light coefficient corresponding to the green light wave band and the ambient light coefficient; and acquiring a blue light intensity component from the ambient light under the current environment according to the first blue light intensity, the second blue light intensity, the screen light coefficient corresponding to the blue light wave band and the ambient light coefficient. Then, the electronic device may obtain an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component, and the blue light intensity component. Because the electronic equipment can calculate the ambient light intensity value and/or the color temperature value according to the red light intensity, the green light intensity and the blue light intensity which are only influenced by pure ambient light, the finally calculated ambient light intensity value and/or the color temperature value exclude the influence of screen luminescence, and can truly reflect the intensity and the color temperature of the ambient light, thereby improving the accuracy of ambient light detection.
Drawings
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a schematic diagram of a first arrangement of an ambient light sensor in the related art.
Fig. 2 is a schematic diagram of a second arrangement of an ambient light sensor in the related art.
Fig. 3 is a schematic diagram of a third arrangement of an ambient light sensor in the related art.
Fig. 4 is a schematic flowchart of an ambient light detection method provided in an embodiment of the present application.
Fig. 5 is a schematic diagram of an arrangement of a first ambient light sensor and a second ambient light sensor provided in an embodiment of the present application.
Fig. 6 is another schematic flowchart of an ambient light detection method provided in an embodiment of the present application.
Fig. 7 to 8 are scene schematic diagrams of an ambient light detection method provided in an embodiment of the present application.
Fig. 9 is a schematic structural diagram of an ambient light detection device according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Fig. 11 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
The related art will be described first.
The ambient light sensor can sense the light condition of the surrounding environment, including the intensity and chromaticity of the light. The environment light sensor is arranged in an intelligent terminal such as a mobile phone, and various intelligent response functions can be realized by detecting the change of the chromaticity and the intensity of the ambient light. For example, under different environments, the brightness of the display screen is automatically adjusted, and the effect of protecting the eyesight of a user can be achieved while reasonable power saving is achieved. For another example, under different light conditions, by sensing the color of the ambient light, better shooting effect can be realized. For another example, under certain conditions, intelligent invocation of some applications can be realized under the condition that the screen is not unlocked.
In the non-full screen age, the ambient light sensor may be disposed at the edge of the electronic device screen, as shown in fig. 1. Therefore, the screen can not be interfered by the light emission of the screen when receiving the information of the ambient light. Alternatively, the ambient light sensor may be located on the side of the electronic device, as shown in FIG. 2. However, considering that the bezel of the electronic device is mostly made of metal material, an opening design is generally required to place the ambient light sensor. Although the ambient light sensor may be minimized for aesthetic reasons, thereby reducing the dark edges around the screen or the openings at the sides of the electronic device, this ultimately leaves the electronic device with less than perfect appearance.
After the electronic equipment enters the full-screen era, with the popularity of full-screen, waterfall screen and even surrounding screen, the occupation ratio of the screen on the surface of the electronic equipment is larger and larger, and the competitiveness of the electronic equipment on the appearance is greatly enhanced by placing the ambient light sensor below the screen.
A structure in which the ambient light sensor is disposed under the screen may be as shown in fig. 3. The film layer that ambient light got into the sensor and passed through is from last to being down for apron layer 11, touch-control layer 12, polarizer layer 13, 1/4 lambda slide layer 14, OLED display layer 15, arrives on ambient light sensor 16 at last. Wherein each layer in the cover plate layer, the touch layer, the polarizer layer, the 1/4 lambda glass layer and the OLED display layer comprises 1-20 layers of complex structures, such as various organic layers, inorganic layers, OCA glue layers and the like. Therefore, after the ambient light is absorbed and reflected by the multiple layers, the intensity of the light actually reaching the ambient light sensor is greatly reduced. For example, the transmittance of the cover plate layer is 98%, the transmittance of the touch layer is 95%, the transmittance of the polarizer layer is 45%, the transmittance of the 1/4 λ glass layer is 95%, the transmittance of the OLED display layer is 20%, and the intensity of light actually reaching the ambient light sensor after passing through the layers is less than 8% of the ambient light. On the other hand, a part of the light emitted by the display screen is emitted downwards through the substrate of the OLED display layer and reaches the ambient light sensor, and another part of the light is reflected when the light is emitted upwards and reaches the ambient light sensor.
It can be seen that, in the related art, a large portion of the light received by the ambient light sensor disposed under the screen actually comes from the light emitted from the screen. That is, in the related art, the intensity of ambient light detected by the ambient light sensor disposed under the screen is actually composed of two parts, one part from the screen light emission and the other part from the ambient light. The light emitted by the screen not only forms a background on the light intensity, but also forms a background on the light chromaticity, so that when the ambient light is weak, or the screen light is strong, or a certain color of the ambient light is weak, a large background noise appears in the value detected by the ambient light sensor, that is, the accuracy of ambient light detection is low.
It is understood that the execution subject of the embodiment of the present application may be an electronic device such as a smart phone or a tablet computer.
Referring to fig. 4, fig. 4 is a schematic flowchart of an ambient light detection method according to an embodiment of the present application. The ambient light detection method may be applied to an electronic device, and the electronic device may at least include a first ambient light sensor and a second ambient light sensor, the first ambient light sensor and the second ambient light sensor are covered by a display screen, as shown in fig. 5, and each of the first ambient light sensor 17 and the second ambient light sensor 18 can detect the intensity of red light band, green light band and blue light band in the environment.
The flow of the ambient light detection method provided by the embodiment may include:
101. the method comprises the steps of obtaining first red light intensity, first green light intensity and first blue light intensity detected by a first ambient light sensor under the current environment.
102. And acquiring a second red light intensity, a second green light intensity and a second blue light intensity detected by a second ambient light sensor under the current environment.
The ambient light sensor can sense the light condition of the surrounding environment, including the intensity and chromaticity of the light. The environment light sensor is arranged in intelligent electronic equipment such as a mobile phone, and various intelligent response functions can be realized by detecting the change of the chromaticity and the intensity of the ambient light. For example, the electronic device may adjust the brightness of the display screen based on the ambient light intensity value detected by the ambient light sensor. When determining that the electronic equipment is in the strong light environment according to the ambient light intensity value detected by the ambient light sensor, the electronic equipment can brighten the brightness of the display screen. When the electronic equipment is determined to be in a weak environment according to the ambient light intensity value detected by the ambient light sensor, the brightness of the display screen can be dimmed by the electronic equipment, so that the eyesight of a user is protected. However, in the related art, the value detected by the ambient light sensor is easily affected by self-luminescence of the screen, i.e., the accuracy of the value detected by the ambient light sensor is low.
In this embodiment, for example, the electronic device may first obtain the red light intensity (for example, denoted as a first red light intensity), the green light intensity (for example, denoted as a first green light intensity), and the blue light intensity (for example, denoted as a first blue light intensity) detected by the first ambient light sensor in the current environment. And, the electronic device may first obtain the red light intensity (for example, recorded as the second red light intensity), the green light intensity (for example, recorded as the second green light intensity), and the blue light intensity (for example, recorded as the second blue light intensity) detected by the second ambient light sensor in the current environment.
It should be noted that, in the embodiment of the present application, the Red light intensity detected by the ambient light sensor is an intensity value of a Red light (Red) channel detected by the ambient light sensor. The Green light intensity detected by the ambient light sensor is the intensity value of the Green light (Green) channel detected by the ambient light sensor. The intensity of Blue light detected by the ambient light sensor is the intensity value of Blue light (Blue) channel detected by the ambient light sensor.
And, in the case where the screen is lit, the intensity of red light detected by the ambient light sensor includes the sum of the intensity of red light in the ambient light and the intensity of red light generated by the screen lighting. The intensity of the green light detected by the ambient light sensor includes the sum of the intensity of the green light in the ambient light and the intensity of the green light generated by the screen lighting. The intensity of blue light detected by the ambient light sensor includes the sum of the intensity of blue light in the ambient light and the intensity of blue light generated by screen illumination.
103. The method comprises the steps of obtaining screen light coefficients and environment light coefficients corresponding to all wave bands in red light wave bands, green light wave bands and blue light wave bands, wherein the screen light coefficients are light intensity ratios of corresponding wave bands detected by a first environment light sensor and a second environment light sensor when a screen is turned on and no external environment light exists in advance, and the environment light coefficients are light intensity ratios of corresponding wave bands detected by the first environment light sensor and the second environment light sensor when the screen is turned off and the external environment light exists in advance.
For example, the electronic device may further obtain a screen light coefficient and an ambient light coefficient corresponding to each of a red light band, a green light band, and a blue light band. The screen light coefficient is a light intensity ratio of corresponding wave bands detected by the first ambient light sensor and the second ambient light sensor when the electronic equipment is in screen lighting in advance and has no external ambient light. The ambient light coefficient is a light intensity ratio of corresponding wave bands detected by the first ambient light sensor and the second ambient light sensor when the electronic equipment is in the presence of external ambient light in advance and the screen is extinguished.
For example, the screen light coefficient and the ambient light coefficient corresponding to the red light band acquired by the electronic device may be recorded as a first screen light coefficient and a first ambient light coefficient, respectively. The first screen light coefficient is a light intensity ratio of red light wave bands detected by the first ambient light sensor and the second ambient light sensor when the electronic equipment is in screen lightening in advance and has no external ambient light. The first ambient light coefficient is a light intensity ratio of red light wave bands detected by the first ambient light sensor and the second ambient light sensor when the electronic equipment is in the presence of external ambient light in advance and the screen is turned off.
The screen light coefficient and the ambient light coefficient corresponding to the green light band acquired by the electronic device may be recorded as a second screen light coefficient and a second ambient light coefficient, respectively. The second screen light coefficient is a light intensity ratio of a green light waveband detected by the first ambient light sensor and the second ambient light sensor when the electronic equipment is in screen lighting in advance and no external ambient light exists. The second ambient light coefficient is a light intensity ratio of a green light waveband detected by the first ambient light sensor and the second ambient light sensor when the electronic equipment is in the presence of ambient light in advance and the screen is turned off.
The screen light coefficient and the ambient light coefficient corresponding to the blue light band acquired by the electronic device may be recorded as a third screen light coefficient and a third ambient light coefficient, respectively. The third screen light coefficient is a light intensity ratio of blue light wave bands detected by the first ambient light sensor and the second ambient light sensor when the electronic equipment is in screen lighting in advance and has no external ambient light. The third ambient light coefficient is a light intensity ratio of blue light wave bands detected by the first ambient light sensor and the second ambient light sensor when the electronic device is in the presence of external ambient light in advance and the screen is extinguished.
104. And acquiring a red light intensity component from ambient light under the current environment according to the first red light intensity, the second red light intensity, the screen light coefficient corresponding to the red light wave band and the ambient light coefficient.
For example, after obtaining the first red light intensity detected by the first ambient light sensor, the second red light intensity detected by the second ambient light sensor, and the first screen light coefficient and the first ambient light coefficient corresponding to the red light band, the electronic device may calculate the red light intensity component from the ambient light in the current environment according to the first red light intensity, the second red light intensity, the first screen light coefficient and the first ambient light coefficient corresponding to the red light band.
It should be noted that the red light intensity component from the ambient light in the current environment calculated in the process of 104 refers to the part of the red light intensity that is only affected by the pure ambient light after the influence of the screen light emission is removed.
105. And acquiring a green light intensity component from the ambient light under the current environment according to the first green light intensity, the second green light intensity, the screen light coefficient corresponding to the green light wave band and the ambient light coefficient.
For example, after obtaining the first green light intensity detected by the first ambient light sensor, the second green light intensity detected by the second ambient light sensor, and the second screen light coefficient and the second ambient light coefficient corresponding to the green light wavelength band, the electronic device may calculate the green light intensity component from the ambient light in the current environment according to the first green light intensity, the second screen light coefficient and the second ambient light coefficient corresponding to the green light wavelength band.
It should be noted that the green light intensity component from the ambient light in the current environment calculated in the flow of 105 means the green light intensity that is only affected by the pure ambient light after the influence of the screen light emission is removed.
106. And obtaining the blue light intensity component from the ambient light under the current environment according to the first blue light intensity, the second blue light intensity, the screen light coefficient corresponding to the blue light wave band and the ambient light coefficient.
For example, after obtaining the first blue light intensity detected by the first ambient light sensor, the second blue light intensity detected by the second ambient light sensor, and the third screen light coefficient and the third ambient light coefficient corresponding to the blue light wavelength band, the electronic device may calculate the blue light intensity component from the ambient light in the current environment according to the first blue light intensity, the second blue light intensity, the third screen light coefficient and the third ambient light coefficient corresponding to the blue light wavelength band.
It should be noted that the blue light intensity component from the ambient light in the current environment calculated in the process of 106 is the part of the blue light intensity that is only affected by the pure ambient light after the influence of the screen luminescence is removed.
107. And acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component and the blue light intensity component.
For example, after the red light intensity component, the green light intensity component, and the blue light intensity component are obtained through calculation, the electronic device may calculate an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component, and the blue light intensity component. That is, the electronic device may calculate the ambient light intensity value and/or the color temperature value according to the red light intensity, the green light intensity, and the blue light intensity that are only affected by the pure ambient light, and the finally calculated ambient light intensity value and/or color temperature value excludes the influence of the screen light on the ambient light intensity value and/or the color temperature value, and the intensity and the color temperature of the ambient light can be truly reflected, thereby improving the accuracy of the ambient light detection.
It is understood that in the embodiment of the present application, the electronic device may be configured with at least a first ambient light sensor and a second ambient light sensor, and the first ambient light sensor and the second ambient light sensor are capable of detecting intensities of red, green, and blue light bands in the environment. Based on this, the electronic device may obtain a first red light intensity, a first green light intensity, and a first blue light intensity detected by the first ambient light sensor in the current environment, and a second red light intensity, a second green light intensity, and a second blue light intensity detected by the second ambient light sensor. Moreover, the electronic device can acquire the screen light coefficient and the ambient light coefficient corresponding to each of the red light waveband, the green light waveband and the blue light waveband. Then, the electronic device may obtain a red light intensity component from ambient light in the current environment according to the first red light intensity, the second red light intensity, the screen light coefficient corresponding to the red light band, and the ambient light coefficient; acquiring a green light intensity component from ambient light under the current environment according to the first green light intensity, the second green light intensity, the screen light coefficient corresponding to the green light wave band and the ambient light coefficient; and acquiring a blue light intensity component from the ambient light under the current environment according to the first blue light intensity, the second blue light intensity, the screen light coefficient corresponding to the blue light wave band and the ambient light coefficient. Then, the electronic device may obtain an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component, and the blue light intensity component. Because the electronic equipment can calculate the ambient light intensity value and/or the color temperature value according to the red light intensity, the green light intensity and the blue light intensity which are only influenced by pure ambient light, the finally calculated ambient light intensity value and/or the color temperature value exclude the influence of screen luminescence, and can truly reflect the intensity and the color temperature of the ambient light, thereby improving the accuracy of ambient light detection.
Referring to fig. 6, fig. 6 is another schematic flow chart of an ambient light detection method according to an embodiment of the present disclosure. The ambient light detection method can be applied to electronic equipment, the electronic equipment can at least comprise a first ambient light sensor and a second ambient light sensor, the first ambient light sensor and the second ambient light sensor are covered by a display screen, and each ambient light sensor can detect the light intensity of a red light waveband, a green light waveband, a blue light waveband, a visible light waveband and a full waveband in the environment.
The flow of the ambient light detection method provided by the embodiment of the application may include:
201. the light source type of the current environment is identified.
202. The method comprises the steps of obtaining screen light coefficients and environment light coefficients corresponding to all wave bands in red light wave bands, green light wave bands and blue light wave bands, wherein the environment light coefficients correspond to light source types, the screen light coefficients are light intensity ratios of corresponding wave bands detected by a first environment light sensor and a second environment light sensor when a screen is on and no external environment light exists in advance, and the environment light coefficients are light intensity ratios of corresponding wave bands detected by the first environment light sensor and the second environment light sensor when the screen is off and the external environment light exists in advance.
For example, 201, 202 may include:
the electronic device may first obtain the light source type of the current environment.
For example, common light sources include CWF (Cool White Fluorescent, American Cold White store light), U30 (Water White Fluorescent, American Warm White store light), TL84 (European, Japanese, Chinese store light), D65 (International Standard Artificial Daylight), A (American kitchen Window light), Hz light.
In the embodiment of the present application, 3 light sources, such as CWF, U30, TL84, can be classified into a first light source type, a D65 light source into a second light source type, an a light source into a third light source type, and an Hz light source into a fourth light source type.
In one embodiment, the electronic device may identify the light source type of the current environment by a ratio of W/C, where W is the light intensity of the full band of the ambient light and C is the light intensity of the visible band of light in the ambient light. Because the ambient light sensor in the embodiment of the application can detect the light intensities of the red light wave band, the green light wave band, the blue light wave band, the visible light wave band and the full wave band in the environment, the electronic device can firstly acquire the light intensity W of the full wave band of the environment and the light intensity C of the visible light wave band, and then identify the light source type of the current environment by calculating the ratio of W/C.
In some embodiments, when the ratio of W/C is in the numerical range of [0-0.7), it can be identified that the environment is the first light source type, i.e., CWF, U30 or TL 84. When the ratio of W/C is in the numerical range of [0.7, 1.1), it can be identified that the environment is the second light source type, i.e., D65. When the ratio of W/C is in the numerical range of [1.1-1.4), it can be identified that the environment is the third light source type, i.e., a. When the ratio of W/C is greater than 1.4, it can be identified that the environment is the fourth light source type, i.e., Hz.
For example, after identifying the light source type of the current environment, the electronic device may obtain a screen light coefficient and an ambient light coefficient corresponding to a red light band, a screen light coefficient and an ambient light coefficient corresponding to a green light band, and a screen light coefficient and an ambient light coefficient corresponding to a blue light band. Wherein, the ambient light coefficient of each wave band corresponds to the type of the light source. That is, each band corresponds to a different ambient light coefficient for different light source types. The screen light coefficient may be a light intensity ratio of corresponding bands detected by the first ambient light sensor and the second ambient light sensor when the electronic device is on the screen in advance and there is no ambient light. The ambient light coefficient may be a light intensity ratio of corresponding bands detected by the first ambient light sensor and the second ambient light sensor when the electronic device is in the presence of ambient light in advance and the screen is turned off.
The screen light coefficient corresponding to each band and the ambient light coefficient under each light source type can be measured in advance in the following modes:
for example, in the red light band, the luminance of the R pixel of the display panel may be adjusted to 255, and the luminances of the G pixel and the B pixel of the display panel may be adjusted to 0 (i.e., G, B pixels are not lit) in the environment without external ambient light, that is, the color (R, G, B) displayed on the display panel corresponds to (255, 0, 0). At the same time, a certain brightness, for example 155, can be input to the display screen. Of course, the brightness input to the display screen may be other values as long as the sensitivity requirement is not too weak. Then, the electronic device may collect the values detected by the first ambient light sensor and the second ambient light sensor, respectively, for example, the value detected by the first ambient light sensor is a1, and the value detected by the second ambient light sensor is b 1. It will be appreciated that a1 is actually the detected intensity of red light emitted by the display screen and b1 is actually the detected intensity of red light emitted by the display screen. Then, the screen light coefficient m1 corresponding to the red light band is a1/b 1.
In another embodiment, under the same test environment, the screen light coefficient corresponding to the red light band may also be a ratio of a mean value of a plurality of sets of values detected by the first ambient light sensor to a mean value of a plurality of sets of values detected by the second ambient light sensor.
The display may then be switched off, i.e. the display enters a switched-off state, and the external light source, e.g. the CWF light source at a brightness of 1000Lux, is switched on. The electronic device may collect the red light band values detected by the first ambient light sensor and the second ambient light sensor respectively, for example, the red light band value detected by the first ambient light sensor is c1, and the red light band value detected by the second ambient light sensor is d 1. It will be appreciated that c1 is actually the intensity of red light detected as ambient light entering the sensor and d1 is actually the intensity of red light detected as ambient light entering the sensor. Then, the ambient light coefficient n1 corresponding to the red light band under the CWF light source is c1/d 1.
In another embodiment, under the same test environment, the ambient light coefficient corresponding to the red light band may be a ratio of a mean value of a plurality of sets of values detected by the first ambient light sensor to a mean value of a plurality of sets of values detected by the second ambient light sensor.
For the green light band, the brightness of the G pixel of the display screen may be adjusted to 255 and the brightness of both the R pixel and the B pixel of the display screen may be adjusted to 0 (i.e., R, B pixels are not lit) in the environment without external ambient light, i.e., the color (R, G, B) displayed by the display screen corresponds to (0, 255, 0). At the same time, a certain brightness, for example 155, can be input to the display screen. Of course, the brightness input to the display screen may be other values as long as the sensitivity requirement is not too weak. Then, the electronic device may collect the values detected by the first ambient light sensor and the second ambient light sensor, respectively, for example, the value detected by the first ambient light sensor is a2, and the value detected by the second ambient light sensor is b 2. It will be appreciated that a2 is actually the detected intensity of green light emitted by the display screen and b2 is actually the detected intensity of green light emitted by the display screen. Then, the screen light coefficient m2 corresponding to the green light band is a2/b 2.
In another embodiment, under the same test environment, the screen light coefficient corresponding to the green light band may also be a ratio of a mean value of a plurality of sets of values detected by the first ambient light sensor to a mean value of a plurality of sets of values detected by the second ambient light sensor.
The display may then be switched off, i.e. the display enters a switched-off state, and the external light source, e.g. the CWF light source at a brightness of 1000Lux, is switched on. The electronic device may collect the values of the green wavelength band detected by the first ambient light sensor and the second ambient light sensor respectively, for example, the value of the green wavelength band detected by the first ambient light sensor is c2, and the value of the green wavelength band detected by the second ambient light sensor is d 2. It will be appreciated that c2 is actually the intensity of the green light detected as ambient light entering the sensor and d2 is actually the intensity of the green light detected as ambient light entering the sensor. Then, the ambient light coefficient n2 corresponding to the green light band under the CWF light source is c2/d 2.
In another embodiment, under the same test environment, the ambient light coefficient corresponding to the green light band may also be a ratio of a mean value of a plurality of sets of values detected by the first ambient light sensor to a mean value of a plurality of sets of values detected by the second ambient light sensor.
For the blue light band, the luminance of the B pixel of the display panel may be adjusted to 255 and the luminances of the R pixel and the G pixel of the display panel may be adjusted to 0 (i.e., R, G pixels are not lit) in an environment without external ambient light, i.e., the color (R, G, B) displayed by the display panel corresponds to (0, 0, 255). At the same time, a certain brightness, for example 155, can be input to the display screen. Of course, the brightness input to the display screen may be other values as long as the sensitivity requirement is not too weak. Then, the electronic device may collect the values detected by the first ambient light sensor and the second ambient light sensor, respectively, for example, the value detected by the first ambient light sensor is a3, and the value detected by the second ambient light sensor is b 3. It will be appreciated that a3 is actually the detected intensity of blue light emitted by the display screen and b3 is actually the detected intensity of blue light emitted by the display screen. Then, the screen light coefficient m3 corresponding to the blue light band is a3/b 3.
In another embodiment, under the same test environment, the screen light coefficient corresponding to the blue light band may also be a ratio of a mean value of a plurality of sets of values detected by the first ambient light sensor to a mean value of a plurality of sets of values detected by the second ambient light sensor.
The display may then be switched off, i.e. the display enters a switched-off state, and the external light source, e.g. the CWF light source at a brightness of 1000Lux, is switched on. The electronic device may collect the values of the blue light bands detected by the first ambient light sensor and the second ambient light sensor at this time, for example, the value of the blue light band detected by the first ambient light sensor is c3, and the value of the blue light band detected by the second ambient light sensor is d 3. It will be appreciated that c3 is actually the intensity of blue light detected as ambient light entering the sensor and d3 is actually the intensity of blue light detected as ambient light entering the sensor. Then, the ambient light coefficient n3 corresponding to the blue light band under the CWF light source is c3/d 3.
In another embodiment, under the same test environment, the ambient light coefficient corresponding to the blue light band may be a ratio of a mean value of a plurality of sets of values detected by the first ambient light sensor to a mean value of a plurality of sets of values detected by the second ambient light sensor.
For the visible light band, the luminance of R, G, B pixels of the display screen can be adjusted to 255 under the environment without external ambient light, i.e. the color (R, G, B) displayed by the display screen corresponds to (255, 255, 255). At the same time, a certain brightness, for example 155, can be input to the display screen. Of course, the brightness input to the display screen may be other values as long as the sensitivity requirement is not too weak. Then, the electronic device may collect the values detected by the first ambient light sensor and the second ambient light sensor, respectively, for example, the value detected by the first ambient light sensor is a4, and the value detected by the second ambient light sensor is b 4. It will be appreciated that a4 is actually the detected intensity of visible light emitted by the display screen and b4 is actually the detected intensity of visible light emitted by the display screen. Then, the screen light coefficient m4 corresponding to the visible light band is a4/b 4.
In another embodiment, under the same test environment, the screen light coefficient corresponding to the visible light band may be a ratio of a mean value of a plurality of sets of values detected by the first ambient light sensor to a mean value of a plurality of sets of values detected by the second ambient light sensor.
The display may then be switched off, i.e. the display enters a switched-off state, and the external light source, e.g. the CWF light source at a brightness of 1000Lux, is switched on. The electronic device may collect the values of the visible light bands detected by the first ambient light sensor and the second ambient light sensor at this time, for example, the value of the visible light band detected by the first ambient light sensor is c4, and the value of the visible light band detected by the second ambient light sensor is d 4. It will be appreciated that c4 is actually the intensity of the visible light detected as ambient light entering the sensor and d4 is actually the intensity of the visible light detected as ambient light entering the sensor. Then, the ambient light coefficient n4 corresponding to the visible light band under the CWF light source is c4/d 4.
In another embodiment, under the same test environment, the ambient light coefficient corresponding to the visible light band may be a ratio of a mean value of a plurality of sets of values detected by the first ambient light sensor to a mean value of a plurality of sets of values detected by the second ambient light sensor.
By the method, the screen light coefficient m1 corresponding to the red light waveband and the ambient light coefficient n1 of the red light waveband under the CWF light source, the screen light coefficient m2 corresponding to the green light waveband and the ambient light coefficient n2 of the green light waveband under the CWF light source, the screen light coefficient m3 corresponding to the blue light waveband and the ambient light coefficient n3 of the blue light waveband under the CWF light source, the screen light coefficient m4 corresponding to the visible light waveband and the ambient light coefficient n4 of the visible light waveband under the CWF light source can be measured.
Similarly, the electronic device can respectively measure the ambient light coefficients of the red light band, the green light band, the blue light band and the visible light band under other light sources in advance. It should be noted that, under different light source types, the ambient light coefficients corresponding to the red light band, the green light band, the blue light band, and the visible light band are different.
In another embodiment, the screen light coefficient corresponding to each wavelength band may be measured in advance by:
for example, the screen light coefficients of the red, green, blue and visible light bands can be measured simultaneously with a white screen. Since the color (R, G, B) displayed by the white screen corresponds to (255, 255, 255), R, G, B three color lights are included. After the screen is set as a white screen, the values of the red light wave band, the green light wave band, the blue light wave band and the visible light wave band detected by the first ambient light sensor are respectively obtained, and the values of the red light wave band, the green light wave band, the blue light wave band and the visible light wave band detected by the second ambient light sensor are respectively obtained. Then, the screen light coefficient corresponding to the red light band may be a ratio of a value of the red light band detected by the first ambient light sensor to a value of the red light band detected by the second ambient light sensor. The screen light coefficient corresponding to the green light band may be a ratio of a value of the green light band detected by the first ambient light sensor to a value of the green light band detected by the second ambient light sensor. The screen light coefficient corresponding to the blue light band may be a ratio of a value of the blue light band detected by the first ambient light sensor to a value of the blue light band detected by the second ambient light sensor. The screen light coefficient corresponding to the visible light band may be a ratio of a value of the visible light band detected by the first ambient light sensor to a value of the visible light band detected by the second ambient light sensor.
Then, the display screen may be turned off, that is, the display screen enters an off-screen state, and an external light source, for example, a CWF light source, with a luminance of, for example, 1000Lux, may be turned on, and the electronic device may collect a value of a red light band, a value of a green light band, a value of a blue light band, and a value of a visible light band detected by the first ambient light sensor at this time, and collect a value of a red light band, a value of a green light band, a value of a blue light band, and a value of a visible light band detected by the second ambient light sensor at this time. Then, the screen light coefficient of the red wavelength band under the CWF light source is the ratio of the value of the red wavelength band detected by the first ambient light sensor to the value of the red wavelength band detected by the second ambient light sensor. The screen light coefficient of the green light wave band under the CWF light source is the ratio of the value of the green light wave band detected by the first ambient light sensor to the value of the green light wave band detected by the second ambient light sensor. The screen light coefficient of the blue light wave band under the CWF light source is the ratio of the value of the blue light wave band detected by the first ambient light sensor to the value of the blue light wave band detected by the second ambient light sensor. The screen light coefficient of the visible light wave band under the CWF light source is the ratio of the value of the visible light wave band detected by the first ambient light sensor to the value of the visible light wave band detected by the second ambient light sensor.
203. The method comprises the steps of obtaining first red light intensity, first green light intensity and first blue light intensity detected by a first ambient light sensor under the current environment.
204. And acquiring a second red light intensity, a second green light intensity and a second blue light intensity detected by a second ambient light sensor under the current environment.
For example, the electronic device may further obtain a first red light intensity, a first green light intensity, and a first blue light intensity detected by a first ambient light sensor in the current environment, and a second red light intensity, a second green light intensity, and a second blue light intensity detected by a second ambient light sensor.
It should be noted that, in the embodiment of the present application, the Red light intensity detected by the ambient light sensor is an intensity value of a Red light (Red) channel detected by the ambient light sensor. The Green light intensity detected by the ambient light sensor is the intensity value of the Green light (Green) channel detected by the ambient light sensor. The intensity of Blue light detected by the ambient light sensor is the intensity value of Blue light (Blue) channel detected by the ambient light sensor.
And, in the case where the screen is lit, the intensity of red light detected by the ambient light sensor includes the sum of the intensity of red light in the ambient light and the intensity of red light generated by the screen lighting. The intensity of the green light detected by the ambient light sensor includes the sum of the intensity of the green light in the ambient light and the intensity of the green light generated by the screen lighting. The intensity of blue light detected by the ambient light sensor includes the sum of the intensity of blue light in the ambient light and the intensity of blue light generated by screen illumination.
205. Calculating a red light intensity component R3 ═ m1 × R1-R2)/(m1-n1 from ambient light in the current environment, where R1 is a first red light intensity, R2 is a second red light intensity, m1 is a screen light coefficient corresponding to a red light band, and n1 is an ambient light coefficient corresponding to a red light band.
For example, after acquiring the first red light intensity R1, the second red light intensity R2, the screen light coefficient m1 corresponding to the red light band in the current environment, and the ambient light coefficient n1 in the current light source type, the electronic device may calculate the red light intensity component R3 only from the ambient light in the current environment, where R3 is (m1 × R1-R2)/(m1-n 1).
It should be noted that, in the ambient light intensity value R1 detected by the first ambient light sensor in the current environment, the light intensity from the screen light is assumed to be x1, and the light intensity from the ambient light is assumed to be y 1. Then x1+ y1 ═ R1. Based on the screen light coefficient m1 and the ambient light coefficient n1, the light intensity from the screen light emission in the ambient light intensity value R2 detected by the second ambient light sensor is m1 × x1, and the light intensity from the ambient light is n1 × y 1. Then m1 × x1+ n1 × y1 — R2. It is understood that x1+ y1 ═ R1 and m1 × x1+ n1 × y1 ═ R2 can form a system of linear equations in two dimensions, and by solving this system of linear equations in two dimensions, y1 ═ (m1 × R1-R2)/(m1-n1) can be obtained.
In the embodiment of the present application, the light intensity y1 of the red light band from the ambient light corresponding to the first ambient light sensor may be determined as the red light intensity component R3 from the ambient light in the current environment.
In another embodiment, the light intensity n1 × y1 of the red light band from the ambient light corresponding to the second ambient light sensor may also be determined as the red light intensity component from the ambient light in the current environment, where R4 ═ n1 × y1 ═ n1 × (m1 × R1-R2)/(m1-n1), where R1 is the first red light intensity, R2 is the second red light intensity, m1 is the screen light coefficient corresponding to the red light band, and n1 is the ambient light coefficient corresponding to the red light band.
206. The green light intensity component G3 from the ambient light under the current environment is calculated as (m2 × G1-G2)/(m2-n2), where G1 is the first green light intensity, G2 is the second green light intensity, m2 is the screen light coefficient corresponding to the green light band, and n2 is the ambient light coefficient corresponding to the green light band.
For example, after acquiring the first green light intensity G1, the second green light intensity G2, the screen light coefficient m2 corresponding to the green light band in the current environment, and the ambient light coefficient n2 in the current light source type, the electronic device may calculate the green light intensity component G3 only from the ambient light in the current environment, where G3 is (m2 × G1-G2)/(m2-n 2).
It should be noted that, in the ambient light intensity value G1 detected by the first ambient light sensor in the current environment, the light intensity from the screen light is assumed to be x2, and the light intensity from the ambient light is assumed to be y 2. Then x2+ y2 is G1. Based on the screen light coefficient m2 and the ambient light coefficient n2, the light intensity from the screen light in the ambient light intensity value G2 detected by the second ambient light sensor is m2 × x2, and the light intensity from the ambient light is n2 × y 2. Then m1 × x2+ n1 × y2 — R2. It is understood that x2+ y2 ═ G1 and m2 × x2+ n2 × y2 ═ G2 can form a system of linear equations in two dimensions, and by solving this system of linear equations in two dimensions, y2 ═ (m2 × G1-G2)/(m2-n2) can be obtained.
In the embodiment of the present application, the light intensity y2 of the green band from the ambient light corresponding to the first ambient light sensor may be determined as the green intensity component G3 from the ambient light in the current environment.
In another embodiment, the light intensity n2 × y2 of the green light band from the ambient light corresponding to the second ambient light sensor may also be determined as the green light intensity component from the ambient light in the current environment, where G4 ═ n2 × y2 ═ n2 × (m2 × G1-G2)/(m2-n2), where G1 is the first green light intensity, G2 is the second green light intensity, m2 is the screen light coefficient corresponding to the green light band, and n2 is the ambient light coefficient corresponding to the green light band.
207. Calculating a blue light intensity component B3 ═ m3 xB 1-B2)/(m3-n3 from ambient light in the current environment, wherein B1 is first blue light intensity, B2 is second blue light intensity, m3 is a screen light coefficient corresponding to a blue light waveband, and n3 is an ambient light coefficient corresponding to the blue light waveband.
For example, after acquiring the first blue light intensity B1, the second blue light intensity B2, the screen light coefficient m3 corresponding to the blue light band under the current environment, and the corresponding ambient light coefficient n3 of the blue light band under the current light source type, the electronic device may calculate the blue light intensity component B3 only from the ambient light under the current environment, where B3 is (m3 × B1-B2)/(m3-n 3).
It should be noted that, in the ambient light intensity value B1 detected by the first ambient light sensor in the current environment, the light intensity from the screen light is assumed to be x3, and the light intensity from the ambient light is assumed to be y 3. Then x3+ y3 is B1. Based on the screen light coefficient m3 and the ambient light coefficient n3, the light intensity from the screen light in the ambient light intensity value B2 detected by the second ambient light sensor is m3 × x3, and the light intensity from the ambient light is n3 × y 3. Then m3 × x3+ n3 × y3 is B2. It is understood that x3+ y3 ═ B1 and m3 × x3+ n3 × y3 ═ B2 can form a system of linear equations in two dimensions, and by solving this system of linear equations in two dimensions, y3 ═ (m3 × B1-B2)/(m3-n3) can be obtained.
In the embodiment of the present application, the light intensity y3 of the blue light band from the ambient light corresponding to the first ambient light sensor may be determined as the blue light intensity component B3 from the ambient light in the current environment.
In another embodiment, the light intensity n3 × y3 of the blue light band from the ambient light corresponding to the second ambient light sensor may also be determined as the blue light intensity component from the ambient light in the current environment, where B4 ═ n3 × y3 ═ n3 × (m3 × B1-B2)/(m3-n3), where B1 is the first blue light intensity, B2 is the second blue light intensity, m3 is the screen light coefficient corresponding to the blue light band, and n3 is the ambient light coefficient corresponding to the blue light band.
208. And acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component and the blue light intensity component.
For example, after the red light intensity component, the green light intensity component, and the blue light intensity component are obtained through calculation, the electronic device may calculate an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component, and the blue light intensity component. That is, the electronic device may calculate the ambient light intensity value and/or the color temperature value from the red light intensity, the green light intensity, the blue light intensity, which are only affected by pure ambient light. Because the finally calculated ambient light intensity value and/or color temperature value excludes the influence of screen luminescence on the ambient light intensity value and/or color temperature value, the intensity and color temperature of the ambient light can be truly reflected, and the accuracy of ambient light detection is improved.
That is, in this embodiment, the electronic device may determine the ambient light intensity value and/or the color temperature value, which are only affected by the ambient light, corresponding to the first ambient light sensor as the ambient light intensity value and/or the color temperature value, which are only affected by the ambient light in the current environment.
In another embodiment, the process of acquiring, by the electronic device, the red light intensity component from the ambient light in the current environment according to the first red light intensity, the second red light intensity, the screen light coefficient corresponding to the red light band, and the ambient light coefficient may include: in the current environment, the red light intensity component R4 ═ n1 × (m1 × R1-R2)/(m1-n1) from the ambient light, where R1 is the first red light intensity, R2 is the second red light intensity, m1 is the screen light coefficient corresponding to the red light band, and n1 is the ambient light coefficient corresponding to the red light band.
The process of acquiring, by the electronic device, the green light intensity component from the ambient light in the current environment according to the first green light intensity, the second green light intensity, the screen light coefficient corresponding to the green light band, and the ambient light coefficient may include: the green light intensity component G4 ═ n2 × (m2 × G1-G2)/(m2-n2) from the ambient light in the current environment, where G1 is the first green light intensity, G2 is the second green light intensity, m2 is the screen light coefficient corresponding to the green light band, and n2 is the ambient light coefficient corresponding to the green light band.
The electronic device obtains a blue light intensity component flow from the ambient light in the current environment according to the screen light coefficient and the ambient light coefficient corresponding to the first blue light intensity, the second blue light intensity, and the blue light waveband, and may include: blue light intensity component B4 ═ n3 × (m3 × B1-B2)/(m3-n3) from ambient light in the current environment, where B1 is first blue light intensity, B2 is second blue light intensity, m3 is screen light coefficient corresponding to blue light band, and n3 is ambient light coefficient corresponding to blue light band.
Then, the electronic device may calculate an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component R4, the green light intensity component G4, and the blue light intensity component B4.
That is, the electronic device may also determine the ambient light intensity value and/or the color temperature value, which are only affected by the ambient light, corresponding to the second ambient light sensor as the ambient light intensity value and/or the color temperature value, which are only affected by the ambient light in the current environment.
In an implementation manner, in the embodiment of the present application, obtaining an ambient light intensity value and/or a color temperature value corresponding to a current environment according to a red light intensity component, a green light intensity component, and a blue light intensity component may be implemented by using the following formulas, for example, the red light intensity component is denoted as R ', the green light intensity component G ', and the blue light intensity component B ', and then the electronic device may first calculate six values P, U, V, h, k, and T according to the following formulas:
P=(-0.14282)(R’)+(1.54924)(G’)+(-0.95641)(B’);
U=(-0.32466)(R’)+(1.57837)(G’)+(-0.73191)(B’);
V=(-0.68202)(R’)+(0.77073)(G’)+(0.56332)(B’);
h=P/(P+U+V);
k=U/(P+U+V);
T=449n3+3525n2+6823.3n +5520.33, where n ═ h-0.3320)/(0.1858-k.
The electronic device may determine the calculated value of U as an ambient light intensity value corresponding to the current environment, and determine the calculated value of T as a color temperature value corresponding to the current environment.
In the above formula, R ', G ', B ' may be R3, G3, B3, respectively. Alternatively, R ', G ', B ' may be R4, G4, B4, respectively.
In yet another embodiment, in addition to calculating the ambient light intensity value and/or the color temperature value corresponding to the current environment from the red light intensity component, the green light intensity component, and the blue light intensity component of the ambient light, the ambient light intensity value and/or the color temperature value corresponding to the current environment may be calculated from the red light intensity component, the green light intensity component, the blue light intensity component, and the visible light intensity component of the ambient light.
For example, the electronic device may obtain a first visible light intensity detected by a first ambient light sensor in the current environment, and a second visible light intensity detected by a second ambient light sensor. Then, the electronic device may obtain a screen light coefficient and an ambient light coefficient corresponding to the visible light band. Then, the electronic device may calculate a visible light intensity component from the ambient light in the current environment according to the first visible light intensity, the second visible light intensity, the screen light coefficient corresponding to the visible light band, and the ambient light coefficient. Finally, the electronic device may calculate an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component, the blue light intensity component, and the visible light intensity component.
Wherein, calculating the visible light intensity component from the ambient light in the current environment according to the first visible light intensity, the second visible light intensity, the screen light coefficient and the ambient light coefficient corresponding to the visible light band may include:
a visible light intensity component C3 from ambient light in the current environment is (m4 × C1-C2)/(m4-n4), where C1 is the first visible light intensity, C2 is the second visible light intensity, m4 is a screen light coefficient corresponding to the visible light band, and n4 is an ambient light coefficient corresponding to the visible light band;
or, the visible light intensity component C4 ═ n4 × (m4 × C1-C2)/(m4-n4) from the ambient light in the current environment, where C1 is the first visible light intensity, C2 is the second visible light intensity, m4 is the screen light coefficient corresponding to the visible light band, and n4 is the ambient light coefficient corresponding to the visible light band.
In an implementation manner, in the embodiment of the present application, obtaining an ambient light intensity value corresponding to a current environment according to a red light intensity component, a green light intensity component, a blue light intensity component, and a visible light intensity component may be implemented by using the following formulas, for example, the red light intensity component is denoted as R ', the green light intensity component is denoted as G', the blue light intensity component is denoted as B ', and the visible light intensity component is denoted as C', and then the electronic device may calculate an ambient light intensity value L corresponding to the current environment by using the following formulas:
l × (64 × D _ factor × (clear _ raw × c _ coef + red _ raw × r _ coef + green _ raw × g _ coef + blue _ raw × b _ coef)/(atime × again). Where atime is the integration time, again is the gain, clear _ raw is C ', red _ raw is R', green _ raw is G ', blue _ raw is B'. Other parameters are set in the h library or passed in from the json file. Wherein the parameters defined in library are referenced as follows: d _ Factor is 15.9, C _ Coef is 1.66, R _ Coef is-1.02, G _ Coef is 2.36, and B _ Coef is-3.15. The parameters passed in from the json file are referenced as follows: d _ Factor is 58.0, C _ Coef is 2.11, R _ Coef is-1.35, G _ Coef is 2.06, B _ Coef is-3.25.
Of course, in other embodiments, the ambient light intensity value and/or the color temperature value corresponding to the current environment may be calculated according to the red light intensity component, the green light intensity component, and the blue light intensity component by other formulas, or the ambient light intensity value and/or the color temperature value corresponding to the current environment may be calculated according to the red light intensity component, the green light intensity component, the blue light intensity component, and the visible light intensity component by other formulas. These formulas belong to the prior art, and this embodiment will not be described in detail. That is, after obtaining the red light intensity component, the green light intensity component, the blue light intensity component, and the visible light intensity component, the electronic device may calculate the ambient light intensity value and/or the color temperature value corresponding to the current environment through various formulas in the prior art.
Referring to fig. 7 to 8, fig. 7 to 8 are schematic views of scenes of an ambient light detection method according to an embodiment of the present application.
As shown in fig. 7, the electronic device in the embodiment of the present application may be a full-screen electronic device, and the electronic device may include a first ambient light sensor 17 and a second ambient light sensor 18. The first ambient light sensor 17 and the second ambient light sensor 18 are covered by a display screen of the electronic device. The first ambient light sensor 17 and the second ambient light sensor 18 can detect the light intensity of the red light band, the green light band, the blue light band, the visible light band and the full band in the environment.
For example, a user watches videos using an electronic device in the current environment. The electronic device may first identify the light source type of the current environment. For example, the electronic device identifies that the light source type of the current environment belongs to a preset first light source type. Then, the electronic device may obtain a screen light coefficient corresponding to each of the red light band, the green light band, and the blue light band, and an ambient light coefficient of each band under the current first light source type.
For example, the screen light coefficient corresponding to the red light band is m1, and the ambient light coefficient of the red light band under the first light source type is n 1. The screen light coefficient corresponding to the green light band is m2, and the ambient light coefficient of the green light band under the first light source type is n 2. The screen light coefficient corresponding to the blue light band is m3, and the ambient light coefficient of the blue light band under the first light source type is n 3.
Thereafter, the electronic device may further obtain a first red light intensity R1, a first green light intensity G1, and a first blue light intensity B1 detected by the first ambient light sensor in the current environment, and a second red light intensity R2, a second green light intensity G2, and a second blue light intensity B2 detected by the second ambient light sensor.
Thereafter, the electronic device may calculate red light intensity component R3 ═ from the ambient light under the current environment (m1 × R1-R2)/(m1-n1), and green light intensity component G3 ═ from the ambient light under the current environment (m2 × G1-G2)/(m2-n2), and calculate blue light intensity component B3 ═ from the ambient light under the current environment (m3 × B1-B2)/(m3-n 3).
Then, the electronic device may obtain an ambient light intensity value Q corresponding to the current environment according to the red light intensity component R3, the green light intensity component G3, and the blue light intensity component B3.
For example, the electronic device detects that the electronic device is currently in a strong light environment according to the calculated ambient light intensity value Q, so that the electronic device can dim the brightness of the display screen, as shown in fig. 8, to save power and protect the vision of the user.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an ambient light detection device according to an embodiment of the present application. The environment light detection device can be applied to electronic equipment, the electronic equipment at least comprises a first environment light sensor and a second environment light sensor, the first environment light sensor and the second environment light sensor are covered by a display screen, and each environment light sensor can detect the intensity of a red light waveband, a green light waveband and a blue light waveband in the environment.
The ambient light detection arrangement 300 may comprise: an acquisition module 301 and a calculation module 302.
An obtaining module 301, configured to obtain a first red light intensity, a first green light intensity, and a first blue light intensity detected by the first ambient light sensor in a current environment; acquiring a second red light intensity, a second green light intensity and a second blue light intensity detected by the second ambient light sensor in the current environment; acquiring a screen light coefficient and an environment light coefficient corresponding to each waveband of a red light waveband, a green light waveband and a blue light waveband, wherein the screen light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when a screen is turned on in advance and no external environment light exists, and the environment light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when the screen is turned off and the external environment light exists in advance;
a calculating module 302, configured to obtain, according to the first red light intensity, the second red light intensity, a screen light coefficient corresponding to a red light band, and an ambient light coefficient, a red light intensity component from ambient light in the current environment; acquiring a green light intensity component from ambient light under the current environment according to the first green light intensity, the second green light intensity, and a screen light coefficient and an ambient light coefficient corresponding to a green light waveband; acquiring a blue light intensity component from ambient light under the current environment according to the first blue light intensity, the second blue light intensity, a screen light coefficient corresponding to a blue light waveband and an ambient light coefficient; and acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component and the blue light intensity component.
In one embodiment, the calculation module 302 may be configured to:
red light intensity component R3 ═ m1 × R1-R2)/(m1-n1 from ambient light in the current environment, where R1 is the first red light intensity, R2 is the second red light intensity, m1 is a screen light coefficient corresponding to the red light band, and n1 is an ambient light coefficient corresponding to the red light band;
green light intensity component G3 from the ambient light in the current environment is (m2 × G1-G2)/(m2-n2), where G1 is the first green light intensity, G2 is the second green light intensity, m2 is a screen light coefficient corresponding to the green light band, and n2 is an ambient light coefficient corresponding to the green light band;
blue light intensity component B3 ═ m3 × B1-B2)/(m3-n3 from ambient light in the current environment, where B1 is the first blue light intensity, B2 is the second blue light intensity, m3 is a screen light coefficient corresponding to the blue light band, and n3 is an ambient light coefficient corresponding to the blue light band.
In one embodiment, the calculation module 302 may be further configured to:
red light intensity components from ambient light under the current environment, namely, R4 ═ n1 × (m1 × R1-R2)/(m1-n1), wherein R1 is the first red light intensity, R2 is the second red light intensity, m1 is a screen light coefficient corresponding to the red light band, and n1 is an ambient light coefficient corresponding to the red light band;
a green light intensity component G4 ═ n2 × (m2 × G1-G2)/(m2-n2) from ambient light in the current environment, wherein G1 is the first green light intensity, G2 is the second green light intensity, m2 is a screen light coefficient corresponding to the green light band, and n2 is an ambient light coefficient corresponding to the green light band;
blue light intensity component B4 ═ n3 × (m3 × B1-B2)/(m3-n3) from ambient light in the current environment, wherein B1 is the first blue light intensity, B2 is the second blue light intensity, m3 is a screen light coefficient corresponding to the blue light waveband, and n3 is an ambient light coefficient corresponding to the blue light waveband.
In one embodiment, the screen light coefficient is a ratio of light intensity mean values of corresponding wavelength bands detected by the first ambient light sensor and the second ambient light sensor when the screen is turned on and no ambient light exists in advance; the environment light coefficient is the ratio of the light intensity mean values of the corresponding wave bands detected by the first environment light sensor and the second environment light sensor when the screen is extinguished and the outside environment light exists in advance.
In one embodiment, the obtaining module 301 may further be configured to: identifying a light source type for the current environment; and acquiring a screen light coefficient and an environment light coefficient corresponding to each waveband of the red light waveband, the green light waveband and the blue light waveband, wherein the environment light coefficient corresponds to the light source type.
In one embodiment, the obtaining module 301 may further be configured to:
acquiring a first visible light intensity detected by the first ambient light sensor in the current environment and a second visible light intensity detected by the second ambient light sensor; acquiring a screen light coefficient and an ambient light coefficient corresponding to a visible light waveband;
then, the calculation module 302 may be configured to: acquiring a visible light intensity component from ambient light in the current environment according to the first visible light intensity, the second visible light intensity, a screen light coefficient and an ambient light coefficient corresponding to a visible light wave band; and acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component, the blue light intensity component and the visible light intensity component.
In one embodiment, the calculation module 302 may be configured to:
a visible light intensity component C3 from ambient light in the current environment is (m4 × C1-C2)/(m4-n4), where C1 is the first visible light intensity, C2 is the second visible light intensity, m4 is a screen light coefficient corresponding to the visible light band, and n4 is an ambient light coefficient corresponding to the visible light band;
or, the visible light intensity component C4 ═ n4 × (m4 × C1-C2)/(m4-n4) from the ambient light in the current environment, where C1 is the first visible light intensity, C2 is the second visible light intensity, m4 is the screen light coefficient corresponding to the visible light band, and n4 is the ambient light coefficient corresponding to the visible light band.
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, which, when executed on a computer, causes the computer to execute the flow in the ambient light detection method provided by this embodiment.
The embodiment of the application further provides an electronic device, which comprises a display screen, a first ambient light sensor, a second ambient light sensor and a processor, wherein the first ambient light sensor and the second ambient light sensor are covered by the display screen, and both the first ambient light sensor and the second ambient light sensor can detect the intensities of a red light waveband, a green light waveband and a blue light waveband in the environment; the processor is used for executing the flow in the ambient light detection method provided by the embodiment.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 10, fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 400 may include a first ambient light sensor 401, a second ambient light sensor 402, a processor 403, a memory 404, a display screen 405, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 10 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The first ambient light sensor 401 and the second ambient light sensor 402 may detect the intensity of the red, green, and blue light bands in the environment. The first ambient light sensor 401 and the second ambient light sensor 402 can detect information such as light intensity and color temperature of the surrounding environment. The first ambient light sensor 401 and the second ambient light sensor 402 may be covered by a display screen 405.
The processor 403 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
The memory 404 may be used to store applications and data. The memory 402 stores applications containing executable code. The application programs may constitute various functional modules. The processor 403 executes various functional applications and data processing by running an application program stored in the memory 402.
In the embodiment of the present application, the first ambient light sensor 401 may be configured to: and acquiring first red light intensity, first green light intensity and first blue light intensity under the current environment.
The second ambient light sensor 402 may be configured to: and acquiring a second red light intensity, a second green light intensity and a second blue light intensity under the current environment.
The processor 403 in the electronic device loads the executable code corresponding to the processes of one or more applications into the memory 404 according to the following instructions, and the processor 403 executes the applications stored in the memory 404, so as to perform the following steps: acquiring a screen light coefficient and an environment light coefficient corresponding to each waveband of a red light waveband, a green light waveband and a blue light waveband, wherein the screen light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when a screen is turned on in advance and no external environment light exists, and the environment light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when the screen is turned off and the external environment light exists in advance; acquiring a red light intensity component from ambient light under the current environment according to the first red light intensity, the second red light intensity, a screen light coefficient corresponding to a red light wave band and an ambient light coefficient; acquiring a green light intensity component from ambient light under the current environment according to the first green light intensity, the second green light intensity, and a screen light coefficient and an ambient light coefficient corresponding to a green light waveband; acquiring a blue light intensity component from ambient light under the current environment according to the first blue light intensity, the second blue light intensity, a screen light coefficient corresponding to a blue light waveband and an ambient light coefficient; and acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component and the blue light intensity component.
Referring to fig. 11, the electronic device 400 may include a first ambient light sensor 401, a second ambient light sensor 402, a processor 403, a memory 404, a display 405, a battery 406, and other components.
The first ambient light sensor 401 and the second ambient light sensor 402 may detect the intensity of the red, green, and blue light bands in the environment. The first ambient light sensor 401 and the second ambient light sensor 402 can detect information such as light intensity and color temperature of the surrounding environment. The first ambient light sensor 401 and the second ambient light sensor 402 are covered by a display screen 405.
The processor 403 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
The memory 404 may be used to store applications and data. The memory 402 stores applications containing executable code. The application programs may constitute various functional modules. The processor 403 executes various functional applications and data processing by running an application program stored in the memory 402.
The battery 406 may be used to provide power support for the various components and modules of the electronic device, thereby ensuring proper operation of the components and modules.
In the embodiment of the present application, the first ambient light sensor 401 may be configured to: and acquiring first red light intensity, first green light intensity and first blue light intensity under the current environment.
The second ambient light sensor 402 may be configured to: and acquiring a second red light intensity, a second green light intensity and a second blue light intensity under the current environment.
In this embodiment, the processor 403 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 404 according to the following instructions, and the processor 403 runs the application programs stored in the memory 404, so as to execute: acquiring a screen light coefficient and an environment light coefficient corresponding to each waveband of a red light waveband, a green light waveband and a blue light waveband, wherein the screen light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when a screen is turned on in advance and no external environment light exists, and the environment light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when the screen is turned off and the external environment light exists in advance; acquiring a red light intensity component from ambient light under the current environment according to the first red light intensity, the second red light intensity, a screen light coefficient corresponding to a red light wave band and an ambient light coefficient; acquiring a green light intensity component from ambient light under the current environment according to the first green light intensity, the second green light intensity, and a screen light coefficient and an ambient light coefficient corresponding to a green light waveband; acquiring a blue light intensity component from ambient light under the current environment according to the first blue light intensity, the second blue light intensity, a screen light coefficient corresponding to a blue light waveband and an ambient light coefficient; and acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component and the blue light intensity component.
In one embodiment, when the processor 403 executes to obtain the red light intensity component from the ambient light in the current environment according to the first red light intensity, the second red light intensity, the screen light coefficient corresponding to the red light band, and the ambient light coefficient, the following steps may be executed: the red light intensity component R3 from the ambient light in the current environment is (m1 × R1-R2)/(m1-n1), where R1 is the first red light intensity, R2 is the second red light intensity, m1 is a screen light coefficient corresponding to the red light band, and n1 is an ambient light coefficient corresponding to the red light band.
When the processor 403 executes the screen light coefficient and the ambient light coefficient corresponding to the first green light intensity, the second green light intensity, and the green light waveband, and obtains the green light intensity component from the ambient light in the current environment, it may execute: the green light intensity component G3 from the ambient light in the current environment is (m2 × G1-G2)/(m2-n2), where G1 is the first green light intensity, G2 is the second green light intensity, m2 is a screen light coefficient corresponding to the green light band, and n2 is an ambient light coefficient corresponding to the green light band.
When the processor 403 executes to obtain the blue light intensity component from the ambient light in the current environment according to the first blue light intensity, the second blue light intensity, the screen light coefficient corresponding to the blue light waveband, and the ambient light coefficient, it may execute: blue light intensity component B3 ═ m3 × B1-B2)/(m3-n3 from ambient light in the current environment, where B1 is the first blue light intensity, B2 is the second blue light intensity, m3 is a screen light coefficient corresponding to the blue light band, and n3 is an ambient light coefficient corresponding to the blue light band.
In another embodiment, when the processor 403 executes to obtain the red light intensity component from the ambient light in the current environment according to the first red light intensity, the second red light intensity, the screen light coefficient corresponding to the red light band, and the ambient light coefficient, the following steps may be executed: the red light intensity component R4 ═ n1 × (m1 × R1-R2)/(m1-n1) from the ambient light in the current environment, where R1 is the first red light intensity, R2 is the second red light intensity, m1 is a screen light coefficient corresponding to the red light band, and n1 is an ambient light coefficient corresponding to the red light band.
When the processor 403 executes the screen light coefficient and the ambient light coefficient corresponding to the first green light intensity, the second green light intensity, and the green light waveband, and obtains the green light intensity component from the ambient light in the current environment, it may execute: a green light intensity component G4 ═ n2 × (m2 × G1-G2)/(m2-n2) from ambient light in the current environment, where G1 is the first green light intensity, G2 is the second green light intensity, m2 is a screen light coefficient corresponding to the green light band, and n2 is an ambient light coefficient corresponding to the green light band.
When the processor 403 executes to obtain the blue light intensity component from the ambient light in the current environment according to the first blue light intensity, the second blue light intensity, the screen light coefficient corresponding to the blue light waveband, and the ambient light coefficient, it may execute: blue light intensity component B4 ═ n3 × (m3 × B1-B2)/(m3-n3) from ambient light in the current environment, wherein B1 is the first blue light intensity, B2 is the second blue light intensity, m3 is a screen light coefficient corresponding to the blue light waveband, and n3 is an ambient light coefficient corresponding to the blue light waveband.
In one embodiment, the screen light coefficient is a ratio of light intensity mean values of corresponding wavelength bands detected by the first ambient light sensor and the second ambient light sensor when the screen is turned on and no ambient light exists in advance; the environment light coefficient is the ratio of the light intensity mean values of the corresponding wave bands detected by the first environment light sensor and the second environment light sensor when the screen is extinguished and the outside environment light exists in advance.
In one embodiment, processor 403 may further perform: identifying a light source type for the current environment;
then, when the processor 403 executes the acquiring of the screen light coefficient and the ambient light coefficient corresponding to each of the red light band, the green light band, and the blue light band, it may execute: and acquiring a screen light coefficient and an environment light coefficient corresponding to each waveband of the red light waveband, the green light waveband and the blue light waveband, wherein the environment light coefficient corresponds to the light source type.
In one embodiment, the first ambient light sensor 401 may be configured to: and acquiring a first visible light intensity under the current environment. The second ambient light sensor 402 may be configured to: and acquiring a second visible light intensity under the current environment.
The processor 403 may further perform: acquiring a screen light coefficient and an ambient light coefficient corresponding to a visible light waveband; acquiring a visible light intensity component from ambient light in the current environment according to the first visible light intensity, the second visible light intensity, a screen light coefficient and an ambient light coefficient corresponding to a visible light wave band; and acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component, the blue light intensity component and the visible light intensity component.
In one embodiment, when the processor 403 executes to obtain the visible light intensity component from the ambient light in the current environment according to the first visible light intensity, the second visible light intensity, the screen light coefficient corresponding to the visible light wavelength band, and the ambient light coefficient, the following steps may be executed: a visible light intensity component C3 from ambient light in the current environment is (m4 × C1-C2)/(m4-n4), where C1 is the first visible light intensity, C2 is the second visible light intensity, m4 is a screen light coefficient corresponding to the visible light band, and n4 is an ambient light coefficient corresponding to the visible light band; or, the visible light intensity component C4 ═ n4 × (m4 × C1-C2)/(m4-n4) from the ambient light in the current environment, where C1 is the first visible light intensity, C2 is the second visible light intensity, m4 is the screen light coefficient corresponding to the visible light band, and n4 is the ambient light coefficient corresponding to the visible light band.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the ambient light detection method, and are not described herein again.
The ambient light detection device provided in the embodiment of the present application and the ambient light detection method in the embodiments above belong to the same concept, and any method provided in the embodiment of the ambient light detection method may be run on the ambient light detection device, and a specific implementation process thereof is described in the embodiment of the ambient light detection method in detail, and is not described herein again.
It should be noted that, for the ambient light detection method described in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process of implementing the ambient light detection method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and during the execution, the process of the embodiment of the ambient light detection method can be included as described above. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the ambient light detection device according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The above detailed description is provided for the ambient light detection method, the ambient light detection device, the storage medium, and the electronic device according to the embodiments of the present application, and specific examples are applied herein to illustrate the principles and implementations of the present application, and the above descriptions of the embodiments are only used to help understanding the method and the core concept of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (16)

1. An ambient light detection method applied to an electronic device, wherein the electronic device at least includes a first ambient light sensor and a second ambient light sensor, the first ambient light sensor and the second ambient light sensor are covered by a display screen, and each ambient light sensor can detect intensities of a red light band, a green light band and a blue light band in an environment, the method comprising:
acquiring first red light intensity, first green light intensity and first blue light intensity detected by the first ambient light sensor in the current environment;
acquiring a second red light intensity, a second green light intensity and a second blue light intensity detected by the second ambient light sensor in the current environment;
acquiring a screen light coefficient and an environment light coefficient corresponding to each waveband of a red light waveband, a green light waveband and a blue light waveband, wherein the screen light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when a screen is turned on in advance and no external environment light exists, and the environment light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when the screen is turned off and the external environment light exists in advance;
acquiring a red light intensity component from ambient light under the current environment according to the first red light intensity, the second red light intensity, a screen light coefficient corresponding to a red light wave band and an ambient light coefficient;
acquiring a green light intensity component from ambient light under the current environment according to the first green light intensity, the second green light intensity, and a screen light coefficient and an ambient light coefficient corresponding to a green light waveband;
acquiring a blue light intensity component from ambient light under the current environment according to the first blue light intensity, the second blue light intensity, a screen light coefficient corresponding to a blue light waveband and an ambient light coefficient;
and acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component and the blue light intensity component.
2. The ambient light detection method according to claim 1, wherein obtaining the red light intensity component from the ambient light in the current environment according to the first red light intensity, the second red light intensity, the screen light coefficient corresponding to the red light band, and the ambient light coefficient comprises: red light intensity component R3 ═ m1 × R1-R2)/(m1-n1 from ambient light in the current environment, where R1 is the first red light intensity, R2 is the second red light intensity, m1 is a screen light coefficient corresponding to the red light band, and n1 is an ambient light coefficient corresponding to the red light band;
obtaining a green light intensity component from the ambient light in the current environment according to the first green light intensity, the second green light intensity, the screen light coefficient corresponding to the green light waveband, and the ambient light coefficient, including: green light intensity component G3 from the ambient light in the current environment is (m2 × G1-G2)/(m2-n2), where G1 is the first green light intensity, G2 is the second green light intensity, m2 is a screen light coefficient corresponding to the green light band, and n2 is an ambient light coefficient corresponding to the green light band;
obtaining the blue light intensity component from the ambient light under the current environment according to the first blue light intensity, the second blue light intensity, the screen light coefficient corresponding to the blue light waveband and the ambient light coefficient, including: blue light intensity component B3 ═ m3 × B1-B2)/(m3-n3 from ambient light in the current environment, where B1 is the first blue light intensity, B2 is the second blue light intensity, m3 is a screen light coefficient corresponding to the blue light band, and n3 is an ambient light coefficient corresponding to the blue light band.
3. The ambient light detection method according to claim 1, wherein obtaining the red light intensity component from the ambient light in the current environment according to the first red light intensity, the second red light intensity, the screen light coefficient corresponding to the red light band, and the ambient light coefficient comprises: red light intensity components from ambient light under the current environment, namely, R4 ═ n1 × (m1 × R1-R2)/(m1-n1), wherein R1 is the first red light intensity, R2 is the second red light intensity, m1 is a screen light coefficient corresponding to the red light band, and n1 is an ambient light coefficient corresponding to the red light band;
obtaining a green light intensity component from the ambient light in the current environment according to the first green light intensity, the second green light intensity, the screen light coefficient corresponding to the green light waveband, and the ambient light coefficient, including: a green light intensity component G4 ═ n2 × (m2 × G1-G2)/(m2-n2) from ambient light in the current environment, wherein G1 is the first green light intensity, G2 is the second green light intensity, m2 is a screen light coefficient corresponding to the green light band, and n2 is an ambient light coefficient corresponding to the green light band;
obtaining the blue light intensity component from the ambient light under the current environment according to the first blue light intensity, the second blue light intensity, the screen light coefficient corresponding to the blue light waveband and the ambient light coefficient, including: blue light intensity component B4 ═ n3 × (m3 × B1-B2)/(m3-n3) from ambient light in the current environment, wherein B1 is the first blue light intensity, B2 is the second blue light intensity, m3 is a screen light coefficient corresponding to the blue light waveband, and n3 is an ambient light coefficient corresponding to the blue light waveband.
4. The ambient light detection method according to claim 1, wherein the screen light coefficient is a ratio of light intensity mean values of corresponding wavelength bands detected by the first ambient light sensor and the second ambient light sensor when a screen is turned on and no ambient light is present in advance;
the environment light coefficient is the ratio of the light intensity mean values of the corresponding wave bands detected by the first environment light sensor and the second environment light sensor when the screen is extinguished and the outside environment light exists in advance.
5. The method of ambient light detection according to claim 1, further comprising: identifying a light source type for the current environment;
the acquiring of the screen light coefficient and the environment light coefficient corresponding to each of the red light waveband, the green light waveband and the blue light waveband includes: and acquiring a screen light coefficient and an environment light coefficient corresponding to each waveband of the red light waveband, the green light waveband and the blue light waveband, wherein the environment light coefficient corresponds to the light source type.
6. The ambient light detection method of claim 5, further comprising:
acquiring a first visible light intensity detected by the first ambient light sensor in the current environment and a second visible light intensity detected by the second ambient light sensor;
acquiring a screen light coefficient and an ambient light coefficient corresponding to a visible light waveband;
acquiring a visible light intensity component from ambient light in the current environment according to the first visible light intensity, the second visible light intensity, a screen light coefficient and an ambient light coefficient corresponding to a visible light wave band;
obtaining an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component and the blue light intensity component, including: and acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component, the blue light intensity component and the visible light intensity component.
7. The ambient light detection method according to claim 6, wherein obtaining the visible light intensity component from the ambient light in the current environment according to the first visible light intensity, the second visible light intensity, the screen light coefficient corresponding to the visible light wavelength band, and the ambient light coefficient comprises:
a visible light intensity component C3 from ambient light in the current environment is (m4 × C1-C2)/(m4-n4), where C1 is the first visible light intensity, C2 is the second visible light intensity, m4 is a screen light coefficient corresponding to the visible light band, and n4 is an ambient light coefficient corresponding to the visible light band;
or, the visible light intensity component C4 ═ n4 × (m4 × C1-C2)/(m4-n4) from the ambient light in the current environment, where C1 is the first visible light intensity, C2 is the second visible light intensity, m4 is the screen light coefficient corresponding to the visible light band, and n4 is the ambient light coefficient corresponding to the visible light band.
8. The utility model provides an ambient light detection device, is applied to electronic equipment, its characterized in that, electronic equipment includes first ambient light sensor and second ambient light sensor at least, first ambient light sensor with second ambient light sensor is covered by the display screen, and each ambient light sensor homoenergetic detects the intensity of ruddiness wave band, green glow wave band, blue light wave band in the environment, the device includes:
the acquisition module is used for acquiring first red light intensity, first green light intensity and first blue light intensity detected by the first ambient light sensor in the current environment; acquiring a second red light intensity, a second green light intensity and a second blue light intensity detected by the second ambient light sensor in the current environment; acquiring a screen light coefficient and an environment light coefficient corresponding to each waveband of a red light waveband, a green light waveband and a blue light waveband, wherein the screen light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when a screen is turned on in advance and no external environment light exists, and the environment light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when the screen is turned off and the external environment light exists in advance;
the computing module is used for acquiring a red light intensity component from ambient light in the current environment according to the first red light intensity, the second red light intensity, a screen light coefficient corresponding to a red light wave band and an ambient light coefficient; acquiring a green light intensity component from ambient light under the current environment according to the first green light intensity, the second green light intensity, and a screen light coefficient and an ambient light coefficient corresponding to a green light waveband; acquiring a blue light intensity component from ambient light under the current environment according to the first blue light intensity, the second blue light intensity, a screen light coefficient corresponding to a blue light waveband and an ambient light coefficient; and acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component and the blue light intensity component.
9. A computer-readable storage medium, on which a computer program is stored, which, when executed on a computer, causes the computer to carry out the method according to any one of claims 1 to 7.
10. An electronic device, comprising: the system comprises a display screen, a first ambient light sensor, a second ambient light sensor and a processor;
the first ambient light sensor and the second ambient light sensor are covered by the display screen, and both the first ambient light sensor and the second ambient light sensor can detect the intensities of a red light waveband, a green light waveband and a blue light waveband in the environment;
the first ambient light sensor is to: acquiring first red light intensity, first green light intensity and first blue light intensity in the current environment;
the second ambient light sensor is to: obtaining a second red light intensity, a second green light intensity and a second blue light intensity under the current environment;
the processor is configured to: acquiring a screen light coefficient and an environment light coefficient corresponding to each waveband of a red light waveband, a green light waveband and a blue light waveband, wherein the screen light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when a screen is turned on in advance and no external environment light exists, and the environment light coefficient is a light intensity ratio of the corresponding waveband detected by the first environment light sensor and the second environment light sensor when the screen is turned off and the external environment light exists in advance; acquiring a red light intensity component from ambient light under the current environment according to the first red light intensity, the second red light intensity, a screen light coefficient corresponding to a red light wave band and an ambient light coefficient; acquiring a green light intensity component from ambient light under the current environment according to the first green light intensity, the second green light intensity, and a screen light coefficient and an ambient light coefficient corresponding to a green light waveband; acquiring a blue light intensity component from ambient light under the current environment according to the first blue light intensity, the second blue light intensity, a screen light coefficient corresponding to a blue light waveband and an ambient light coefficient; and acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component and the blue light intensity component.
11. The electronic device of claim 10, wherein the processor is configured to:
calculating a red light intensity component R3 ═ m1 × R1-R2)/(m1-n1 from ambient light in the current environment, wherein R1 is the first red light intensity, R2 is the second red light intensity, m1 is a screen light coefficient corresponding to the red light band, and n1 is an ambient light coefficient corresponding to the red light band;
calculating a green light intensity component G3 ═ m2 × G1-G2)/(m2-n2 from ambient light in the current environment, wherein G1 is the first green light intensity, G2 is the second green light intensity, m2 is a screen light coefficient corresponding to the green light waveband, and n2 is an ambient light coefficient corresponding to the green light waveband;
calculating a blue light intensity component B3 ═ m3 xB 1-B2)/(m3-n3) from ambient light in the current environment, wherein B1 is the first blue light intensity, B2 is the second blue light intensity, m3 is a screen light coefficient corresponding to the blue light waveband, and n3 is an ambient light coefficient corresponding to the blue light waveband.
12. The electronic device of claim 10, wherein the processor is configured to:
calculating a red light intensity component R4 ═ n1 × (m1 × R1-R2)/(m1-n1) from ambient light in the current environment, wherein R1 is the first red light intensity, R2 is the second red light intensity, m1 is a screen light coefficient corresponding to the red light band, and n1 is an ambient light coefficient corresponding to the red light band;
calculating a green light intensity component G4 ═ n2 × (m2 × G1-G2)/(m2-n2) from ambient light in the current environment, wherein G1 is the first green light intensity, G2 is the second green light intensity, m2 is a screen light coefficient corresponding to the green light band, and n2 is an ambient light coefficient corresponding to the green light band;
and calculating blue light intensity components B4 ═ n3 × (m3 × B1-B2)/(m3-n3) from ambient light in the current environment, wherein B1 is the first blue light intensity, B2 is the second blue light intensity, m3 is a screen light coefficient corresponding to the blue light waveband, and n3 is an ambient light coefficient corresponding to the blue light waveband.
13. The electronic device of claim 10, wherein the screen light coefficient is a ratio of light intensity mean values of corresponding wavelength bands detected by the first ambient light sensor and the second ambient light sensor when a screen is turned on and no ambient light is generated in advance;
the environment light coefficient is the ratio of the light intensity mean values of the corresponding wave bands detected by the first environment light sensor and the second environment light sensor when the screen is extinguished and the outside environment light exists in advance.
14. The electronic device of claim 10, wherein the processor is further configured to:
identifying a light source type for the current environment;
and acquiring a screen light coefficient and an environment light coefficient corresponding to each waveband of the red light waveband, the green light waveband and the blue light waveband, wherein the environment light coefficient corresponds to the light source type.
15. The electronic device of claim 14,
the first ambient light sensor is further to: acquiring first visible light intensity under the current environment;
the second ambient light sensor is further to: acquiring second visible light intensity under the current environment;
the processor is further configured to: acquiring a screen light coefficient and an ambient light coefficient corresponding to a visible light waveband; acquiring a visible light intensity component from ambient light in the current environment according to the first visible light intensity, the second visible light intensity, a screen light coefficient and an ambient light coefficient corresponding to a visible light wave band; and acquiring an ambient light intensity value and/or a color temperature value corresponding to the current environment according to the red light intensity component, the green light intensity component, the blue light intensity component and the visible light intensity component.
16. The electronic device of claim 15, wherein the processor is configured to:
calculating a visible light intensity component C3 ═ m4 × C1-C2)/(m4-n4 from ambient light in the current environment, wherein C1 is the first visible light intensity, C2 is the second visible light intensity, m4 is a screen light coefficient corresponding to the visible light waveband, and n4 is an ambient light coefficient corresponding to the visible light waveband;
or, calculating a visible light intensity component C4 ═ n4 × (m4 × C1-C2)/(m4-n4) from ambient light in the current environment, where C1 is the first visible light intensity, C2 is the second visible light intensity, m4 is a screen light coefficient corresponding to the visible light band, and n4 is an ambient light coefficient corresponding to the visible light band.
CN202010887622.6A 2020-08-28 2020-08-28 Device detection method and device, storage medium and electronic device Active CN111947775B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010887622.6A CN111947775B (en) 2020-08-28 2020-08-28 Device detection method and device, storage medium and electronic device
PCT/CN2021/105731 WO2022042085A1 (en) 2020-08-28 2021-07-12 Device testing method and apparatus, and storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010887622.6A CN111947775B (en) 2020-08-28 2020-08-28 Device detection method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN111947775A true CN111947775A (en) 2020-11-17
CN111947775B CN111947775B (en) 2022-10-21

Family

ID=73367105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010887622.6A Active CN111947775B (en) 2020-08-28 2020-08-28 Device detection method and device, storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN111947775B (en)
WO (1) WO2022042085A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022042085A1 (en) * 2020-08-28 2022-03-03 Oppo广东移动通信有限公司 Device testing method and apparatus, and storage medium and electronic device
TWI822052B (en) * 2022-05-23 2023-11-11 聯詠科技股份有限公司 Display devices

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120001841A1 (en) * 2010-06-30 2012-01-05 Jeff Gokingco Identifying ambient light type and illuminance compensation using a plurality of photodetectors
US20140306943A1 (en) * 2013-04-16 2014-10-16 Fih (Hong Kong) Limited Electronic device and method for adjusting backlight of electronic device
CN109119031A (en) * 2018-09-07 2019-01-01 广州视源电子科技股份有限公司 A kind of method, apparatus and electronic equipment of the output brightness of control indicator screen
CN110675839A (en) * 2019-10-11 2020-01-10 Oppo广东移动通信有限公司 Screen adjusting method, electronic equipment and related device
CN111380609A (en) * 2020-05-28 2020-07-07 北京小米移动软件有限公司 Light sensation data acquisition method and device, electronic equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105575334B (en) * 2015-07-10 2018-11-06 宇龙计算机通信科技(深圳)有限公司 A kind of screen luminance adjustment method and user terminal
CN107818763A (en) * 2017-10-25 2018-03-20 上海龙旗科技股份有限公司 A kind of electronic equipment and its information processing method with eye-protecting function
CN107818753A (en) * 2017-11-22 2018-03-20 广东欧珀移动通信有限公司 Screen brightness regulation method, device, storage medium and electronic equipment
CN107941330B (en) * 2017-11-22 2020-09-08 Oppo广东移动通信有限公司 Ambient light intensity detection method and device, storage medium and electronic equipment
CN107945769B (en) * 2017-11-22 2020-04-10 Oppo广东移动通信有限公司 Ambient light intensity detection method and device, storage medium and electronic equipment
CN108877737A (en) * 2018-06-12 2018-11-23 努比亚技术有限公司 Screen adjustment method, mobile terminal and computer readable storage medium
CN111947775B (en) * 2020-08-28 2022-10-21 Oppo广东移动通信有限公司 Device detection method and device, storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120001841A1 (en) * 2010-06-30 2012-01-05 Jeff Gokingco Identifying ambient light type and illuminance compensation using a plurality of photodetectors
US20140306943A1 (en) * 2013-04-16 2014-10-16 Fih (Hong Kong) Limited Electronic device and method for adjusting backlight of electronic device
CN109119031A (en) * 2018-09-07 2019-01-01 广州视源电子科技股份有限公司 A kind of method, apparatus and electronic equipment of the output brightness of control indicator screen
CN110675839A (en) * 2019-10-11 2020-01-10 Oppo广东移动通信有限公司 Screen adjusting method, electronic equipment and related device
CN111380609A (en) * 2020-05-28 2020-07-07 北京小米移动软件有限公司 Light sensation data acquisition method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022042085A1 (en) * 2020-08-28 2022-03-03 Oppo广东移动通信有限公司 Device testing method and apparatus, and storage medium and electronic device
TWI822052B (en) * 2022-05-23 2023-11-11 聯詠科技股份有限公司 Display devices

Also Published As

Publication number Publication date
WO2022042085A1 (en) 2022-03-03
CN111947775B (en) 2022-10-21

Similar Documents

Publication Publication Date Title
KR101787856B1 (en) Transparent display apparatus and method for controlling the same
CN111947775B (en) Device detection method and device, storage medium and electronic device
JP4283297B2 (en) Image compensation method
US9019253B2 (en) Methods and systems for adjusting color gamut in response to ambient conditions
US20100103172A1 (en) System and method for rendering ambient light affected appearing imagery based on sensed ambient lighting
US20100103186A1 (en) Enhanced User Interface Elements in Ambient Light
KR20160076957A (en) Ambient light adaptive displays with paper-like appearance
CN107941330B (en) Ambient light intensity detection method and device, storage medium and electronic equipment
KR20000003694A (en) Apparatus and method of controlling a screen status of a video display system
US20190340983A1 (en) Display device and displaying method
CN110113536A (en) A kind of screen light compensation method, device, storage medium and intelligent terminal
CN111951696B (en) Correction method and related device for LED display screen
CN107919099B (en) Method for driving liquid crystal display, device and equipment
US20200056936A1 (en) Sensing system, electronic device and sensing method for sensing ambient light
CN107945770A (en) Ambient light intensity detection method, device, storage medium and electronic equipment
US20160284316A1 (en) Ambient light sensing through the human body
EP4160589A1 (en) Display apparatus, electronic device, and control method for electronic device
CN111309135B (en) Photosensitive control method and photosensitive control device of display screen and display device
CN112985589A (en) Ambient light illumination detection method, ambient light illumination detection device, correction coefficient calculation method, correction coefficient calculation device and electronic equipment
CN103512655A (en) Information processing apparatus and method, and photoelectric conversion apparatus
CN108881875A (en) Image white balancing treatment method, device, storage medium and terminal
CN111968604A (en) Display device, electronic apparatus, and control method of electronic apparatus
CN110930945A (en) Method, device and system for adjusting brightness of display screen
US20230324218A1 (en) Ambient radiation sensing
JP2011109188A (en) Display device

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