CN107941330A - Ambient light intensity detection method, device, storage medium and electronic equipment - Google Patents
Ambient light intensity detection method, device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN107941330A CN107941330A CN201711174645.7A CN201711174645A CN107941330A CN 107941330 A CN107941330 A CN 107941330A CN 201711174645 A CN201711174645 A CN 201711174645A CN 107941330 A CN107941330 A CN 107941330A
- Authority
- CN
- China
- Prior art keywords
- light intensity
- ambient light
- value
- rgb
- intensity value
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 90
- 238000001228 spectrum Methods 0.000 claims abstract description 72
- 238000000034 method Methods 0.000 claims abstract description 28
- 230000003595 spectral effect Effects 0.000 claims description 32
- 238000004590 computer program Methods 0.000 claims description 19
- 238000004364 calculation method Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 6
- 239000003086 colorant Substances 0.000 description 5
- 239000011521 glass Substances 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 229910052594 sapphire Inorganic materials 0.000 description 1
- 239000010980 sapphire Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
- G01J1/4204—Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light
Landscapes
- Life Sciences & Earth Sciences (AREA)
- Sustainable Development (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Controls And Circuits For Display Device (AREA)
- Liquid Crystal Display Device Control (AREA)
Abstract
Description
技术领域technical field
本申请涉及电子设备技术领域,特别涉及一种环境光强度检测方法、装置、存储介质及电子设备。The present application relates to the technical field of electronic equipment, and in particular to an ambient light intensity detection method, device, storage medium and electronic equipment.
背景技术Background technique
随着电子技术的快速发展,诸如智能手机、平板电脑等电子设备已经越来越普及。其中,智能手机、平板电脑等电子设备都具有显示屏。With the rapid development of electronic technology, electronic devices such as smart phones and tablet computers have become more and more popular. Among them, electronic devices such as smart phones and tablet computers all have display screens.
通常,在显示屏上部的非显示区域设置有环境光传感器。电子设备根据环境光传感器检测到的环境光强度来自动调整显示屏的亮度,从而使得显示屏的亮度与环境相适应。Usually, an ambient light sensor is provided in the non-display area on the upper part of the display screen. The electronic device automatically adjusts the brightness of the display screen according to the ambient light intensity detected by the ambient light sensor, so that the brightness of the display screen adapts to the environment.
发明内容Contents of the invention
本申请实施例提供一种环境光强度检测方法、装置、存储介质及电子设备,可以提高检测环境光强度的准确性。Embodiments of the present application provide a method, device, storage medium, and electronic device for detecting ambient light intensity, which can improve the accuracy of detecting ambient light intensity.
本申请实施例提供一种环境光强度检测方法,包括:An embodiment of the present application provides a method for detecting ambient light intensity, including:
获取环境光强度检测值;Obtain the ambient light intensity detection value;
确定所检测到光线的RGB频谱信息;Determine the RGB spectrum information of the detected light;
获取RGB频谱信息与样本RGB频谱信息匹配的目标光线的目标光强度值,其中,样本RGB频谱信息为显示屏的RGB频谱信息;Obtaining the target light intensity value of the target light whose RGB spectrum information matches the sample RGB spectrum information, wherein the sample RGB spectrum information is the RGB spectrum information of the display screen;
根据所述目标光强度值对所述环境光强度检测值进行调整,以得到环境光强度值。The ambient light intensity detection value is adjusted according to the target light intensity value to obtain an ambient light intensity value.
本申请实施例还提供一种环境光强度检测装置,包括:The embodiment of the present application also provides an ambient light intensity detection device, including:
第一获取模块,用于获取环境光强度检测值;The first acquisition module is used to acquire the ambient light intensity detection value;
确定模块,用于确定所检测到光线的RGB频谱信息;A determination module, configured to determine the RGB spectrum information of the detected light;
第二获取模块,用于获取RGB频谱信息与样本RGB频谱信息匹配的目标光线的目标光强度值,其中,样本RGB频谱信息为显示屏的RGB频谱信息;The second obtaining module is used to obtain the target light intensity value of the target light whose RGB spectral information matches the sample RGB spectral information, wherein the sample RGB spectral information is the RGB spectral information of the display screen;
调整模块,用于根据所述目标光强度值对所述环境光强度检测值进行调整,以得到环境光强度值。An adjustment module, configured to adjust the detected ambient light intensity value according to the target light intensity value, so as to obtain an ambient light intensity value.
本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述环境光强度检测方法。An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is run on a computer, the computer is made to execute the above method for detecting ambient light intensity.
本申请实施例还提供一种电子设备,包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,用于执行上述环境光强度检测方法。The embodiment of the present application also provides an electronic device, including a processor and a memory, the memory stores a computer program, and the processor invokes the computer program stored in the memory to execute the above ambient light intensity Detection method.
本申请实施例提供的环境光强度检测方法,包括:获取环境光强度检测值;确定所检测到光线的RGB频谱信息;获取RGB频谱信息与样本RGB频谱信息匹配的目标光线的目标光强度值,其中,样本RGB频谱信息为显示屏的RGB频谱信息;根据目标光强度值对环境光强度检测值进行调整,以得到环境光强度值。该方案中,电子设备可以根据显示屏的RGB频谱信息获取到相应数据,以对环境光传感器的检测值进行调整,从而减小显示屏显示信息所产生的光对电子设备检测环境光强度的影响,提高检测环境光强度的准确性。The ambient light intensity detection method provided in the embodiment of the present application includes: obtaining a detection value of the ambient light intensity; determining the RGB spectrum information of the detected light; obtaining the target light intensity value of the target light whose RGB spectrum information matches the RGB spectrum information of the sample, Wherein, the sample RGB spectrum information is the RGB spectrum information of the display screen; the ambient light intensity detection value is adjusted according to the target light intensity value to obtain the ambient light intensity value. In this solution, the electronic device can obtain corresponding data according to the RGB spectrum information of the display screen to adjust the detection value of the ambient light sensor, thereby reducing the influence of the light generated by the display screen information on the detection of ambient light intensity by the electronic device , to improve the accuracy of detecting ambient light intensity.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creative efforts.
图1是本申请实施例提供的电子设备的结构示意图。FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图2是本申请实施例提供的环境光强度检测方法的流程示意图。Fig. 2 is a schematic flowchart of a method for detecting ambient light intensity provided by an embodiment of the present application.
图3是本申请实施例提供的环境光强度检测方法的应用场景示意图。FIG. 3 is a schematic diagram of an application scenario of a method for detecting ambient light intensity provided by an embodiment of the present application.
图4是本申请实施例提供的环境光强度检测方法的另一流程示意图。Fig. 4 is another schematic flowchart of the method for detecting ambient light intensity provided by the embodiment of the present application.
图5是本申请实施例提供的环境光强度检测装置的第一种结构示意图。FIG. 5 is a schematic diagram of a first structure of an ambient light intensity detection device provided in an embodiment of the present application.
图6是本申请实施例提供的环境光强度检测装置的第二种结构示意图。FIG. 6 is a schematic diagram of a second structure of an ambient light intensity detection device provided in an embodiment of the present application.
图7是本申请实施例提供的环境光强度检测装置的第三种结构示意图。FIG. 7 is a schematic diagram of a third structure of an ambient light intensity detection device provided in an embodiment of the present application.
图8是本申请实施例提供的环境光强度检测装置的第四种结构示意图。FIG. 8 is a schematic diagram of a fourth structure of an ambient light intensity detection device provided in an embodiment of the present application.
图9是本申请实施例提供的电子设备的另一结构示意图。FIG. 9 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
图10是本申请实施例提供的电子设备的又一结构示意图。FIG. 10 is another schematic structural diagram of the electronic device provided by the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请的保护范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of this application.
本申请的说明书和权利要求书以及上述附图中的术语“第一”、“第二”、“第三”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应当理解,这样描述的对象在适当情况下可以互换。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。例如,包含了一系列步骤的过程、方法或包含了一系列模块或单元的装置、电子设备、系统不必限于清楚地列出的那些步骤或模块或单元,还可以包括没有清楚地列出的步骤或模块或单元,也可以包括对于这些过程、方法、装置、电子设备或系统固有的其它步骤或模块或单元。The terms "first", "second", "third", etc. (if any) in the description and claims of the present application and the above drawings are used to distinguish similar objects and not necessarily to describe a specific order or sequentially. It should be understood that the items so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, a method comprising a series of steps, or an apparatus comprising a series of modules or units, an electronic device, a system are not necessarily limited to those steps or modules or units clearly listed, and may also include steps not clearly listed or modules or units, may also include other steps or modules or units inherent to these processes, methods, devices, electronic equipment or systems.
参考图1,图1为本申请实施例提供的电子设备的结构示意图。其中,电子设备100包括盖板10、显示屏20、电路板30、壳体40以及安装在所述壳体40内部的环境光传感器50。Referring to FIG. 1 , FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Wherein, the electronic device 100 includes a cover plate 10 , a display screen 20 , a circuit board 30 , a casing 40 and an ambient light sensor 50 installed inside the casing 40 .
盖板10安装到显示屏20上,以覆盖显示屏20。盖板10可以为透明玻璃盖板。在一些实施例中,盖板10可以是用诸如蓝宝石等材料制成的玻璃盖板。The cover plate 10 is installed on the display screen 20 to cover the display screen 20 . The cover plate 10 may be a transparent glass cover plate. In some embodiments, the cover plate 10 may be a glass cover plate made of materials such as sapphire.
显示屏20安装在壳体40上,以形成电子设备100的显示面。在一些实施例中,显示屏20包括显示区域和非显示区域。其中,显示区域用于显示图像、文本等信息。非显示区域不显示信息。非显示区域可以用于设置一些功能组件,例如摄像头、指纹识别模组等功能组件。The display screen 20 is mounted on the casing 40 to form a display surface of the electronic device 100 . In some embodiments, the display screen 20 includes a display area and a non-display area. Wherein, the display area is used to display information such as images and texts. No information is displayed in the non-display area. The non-display area can be used to set some functional components, such as camera, fingerprint identification module and other functional components.
在一些实施例中,显示屏20可以全屏显示。也即,显示屏20只包括显示区域,而不包括非显示区域。In some embodiments, the display screen 20 may display full screen. That is, the display screen 20 only includes a display area, not a non-display area.
在一些实施例中,显示屏20可以为液晶显示屏(Liquid Crystal Display,LCD)或者有机发光二极管显示屏(Organic Light-Emitting Diode,OLED)。In some embodiments, the display screen 20 may be a liquid crystal display (Liquid Crystal Display, LCD) or an organic light-emitting diode display (Organic Light-Emitting Diode, OLED).
电路板30安装在壳体40内部。电路板30可以为电子设备100的主板。电路板30上可以集成有摄像头以及处理器等功能组件。同时,显示屏20可以电连接至电路板30。The circuit board 30 is installed inside the housing 40 . The circuit board 30 may be a main board of the electronic device 100 . Functional components such as a camera and a processor may be integrated on the circuit board 30 . Meanwhile, the display screen 20 may be electrically connected to the circuit board 30 .
在一些实施例中,电路板30上设置有显示控制电路。所述显示控制电路向显示屏20输出电信号,以控制显示屏20显示信息。In some embodiments, a display control circuit is disposed on the circuit board 30 . The display control circuit outputs electrical signals to the display screen 20 to control the display screen 20 to display information.
壳体40用于形成电子设备100的外部轮廓。壳体40的材质可以为塑料或金属。壳体40可以一体成型。The casing 40 is used to form the outer contour of the electronic device 100 . The material of the housing 40 can be plastic or metal. The housing 40 can be integrally formed.
环境光传感器50安装在壳体40内部。同时,环境光传感器50电连接至电路板30。例如,环境光传感器50可以集成在电路板30上。环境光传感器50用于检测环境光强度,从而电子设备100可以根据所述环境光传感器50检测到的环境光强度调节显示屏20的亮度,以使得显示屏20的亮度与周围环境相适应。例如,在较暗的环境中,电子设备100可以降低显示屏20的亮度;在较亮的环境中,电子设备100可以提高显示屏20的亮度。The ambient light sensor 50 is installed inside the housing 40 . Meanwhile, the ambient light sensor 50 is electrically connected to the circuit board 30 . For example, ambient light sensor 50 may be integrated on circuit board 30 . The ambient light sensor 50 is used to detect the ambient light intensity, so that the electronic device 100 can adjust the brightness of the display screen 20 according to the ambient light intensity detected by the ambient light sensor 50, so that the brightness of the display screen 20 adapts to the surrounding environment. For example, in a darker environment, the electronic device 100 can reduce the brightness of the display screen 20; in a brighter environment, the electronic device 100 can increase the brightness of the display screen 20.
本申请实施例中,环境光传感器50可以位于显示屏20的显示区域下方。也即,环境光传感器50在显示屏20上的正投影位于所述显示屏20的显示区域。可以理解的,此时环境光传感器50透过所述显示屏20采集外部环境光线,以实现检测环境光强度。也即,外部环境光线透过所述显示屏20的显示区域进入到所述环境光传感器50中。In the embodiment of the present application, the ambient light sensor 50 may be located below the display area of the display screen 20 . That is, the orthographic projection of the ambient light sensor 50 on the display screen 20 is located in the display area of the display screen 20 . It can be understood that at this time, the ambient light sensor 50 collects external ambient light through the display screen 20 to detect the ambient light intensity. That is, external ambient light enters the ambient light sensor 50 through the display area of the display screen 20 .
在一实施例中,提供一种环境光强度检测方法,该环境光强度检测方法可以应用于电子设备中。该电子设备可以包括智能手机、平板电脑等设备。如图2所示,该环境光强度检测方法,可以包括以下流程:In one embodiment, a method for detecting ambient light intensity is provided, and the method for detecting ambient light intensity can be applied to electronic equipment. The electronic device may include smart phones, tablet computers and other devices. As shown in Figure 2, the ambient light intensity detection method may include the following processes:
101、获取环境光强度检测值。101. Acquire an ambient light intensity detection value.
其中,电子设备中设置有环境光传感器。环境光传感器位于电子设备的显示屏下方。环境光线通过所述显示屏进入到所述环境光传感器中。从而,环境光传感器可以透过显示屏检测到环境光强度。电子设备可以获取所述环境光传感器检测到的环境光强度检测值。Wherein, the electronic device is provided with an ambient light sensor. The ambient light sensor is located under the display of the electronic device. Ambient light enters the ambient light sensor through the display screen. Therefore, the ambient light sensor can detect the ambient light intensity through the display screen. The electronic device can acquire the ambient light intensity detection value detected by the ambient light sensor.
需要说明的是,由于环境光线是可见光,环境光传感器检测到的也是可见光的强度。而显示屏本身可以发光,显示屏发出的光线也是可见光。因此,显示屏所发出的光会对环境光传感器的检测数据会造成影响,使得环境光传感器所检测到的环境光强度相对于实际的环境光强度而言偏大。因此,电子设备获取到的环境光强度检测值也并非实际的环境光强度值。It should be noted that since ambient light is visible light, the ambient light sensor detects the intensity of visible light. The display itself can emit light, and the light emitted by the display is also visible light. Therefore, the light emitted by the display screen will affect the detection data of the ambient light sensor, so that the ambient light intensity detected by the ambient light sensor is larger than the actual ambient light intensity. Therefore, the detected ambient light intensity value acquired by the electronic device is not the actual ambient light intensity value.
102、确定所检测到光线的RGB频谱信息。102. Determine RGB spectrum information of the detected light.
在具体实施过程中,可以在电子设备内部安装颜色传感器(colorsensor),通过colorsensor的颜色感应功能,便可以识别出所检测到光线的RGB频谱信息。In a specific implementation process, a color sensor (color sensor) can be installed inside the electronic device, and the RGB spectrum information of the detected light can be identified through the color sensing function of the color sensor.
103、获取RGB频谱信息与样本RGB频谱信息匹配的目标光线的目标光强度值,其中,样本RGB频谱信息为显示屏的RGB频谱信息。103. Acquire the target light intensity value of the target light whose RGB spectrum information matches the sample RGB spectrum information, where the sample RGB spectrum information is the RGB spectrum information of the display screen.
不管显示屏是何种光源,都是由RGB三基色混合组成的,只是三基色比例不一样。因此,在确定所检测到光线的RGB频谱信息后,电子设备可将所确定出的RGB频谱信息与样本RGB频谱信息进行比较,从所检测到的光线中确定出目标光线,并获取目标光线中RGB三基色的光强度值,以作为目标光强度值。No matter what kind of light source the display is, it is composed of the mixture of RGB three primary colors, but the ratio of the three primary colors is different. Therefore, after determining the RGB spectral information of the detected light, the electronic device can compare the determined RGB spectral information with the sample RGB spectral information, determine the target light from the detected light, and obtain the target light The light intensity value of the RGB three primary colors as the target light intensity value.
在一些实施例中,可以在电子设备内部安装与该显示屏的RGB频谱信息匹配的color sensor,然后利用该color sensor测量RGB光强度值。假设显示屏的R的频谱波长范围是615+/-2.5nm,G的频谱波长范围是535+/-2.5nm,B的频谱波长范围是465+/-2.5nm,则所安装的colorsensor只能检测所示频谱波长范围的光,而其他波长检测不到,比如550nm。In some embodiments, a color sensor matching the RGB spectrum information of the display screen can be installed inside the electronic device, and then the color sensor can be used to measure RGB light intensity values. Suppose the spectral wavelength range of R of the display screen is 615+/-2.5nm, the spectral wavelength range of G is 535+/-2.5nm, and the spectral wavelength range of B is 465+/-2.5nm, then the installed colorsensor can only Detects light in the wavelength range of the spectrum shown, while other wavelengths are not detected, such as 550nm.
104、根据目标光强度值对环境光强度检测值进行调整,以得到环境光强度值。104. Adjust the ambient light intensity detection value according to the target light intensity value to obtain the ambient light intensity value.
其中,电子设备获取到目标光强度值后,即可根据目标光强度值对环境光强度检测值进行调整,以得到环境光强度值。电子设备对环境光强度检测值进行调整后,可以减小甚至消除显示屏显示信息时所发出的光对最终得到的环境光强度值的影响,使得最终得到的环境光强度值与实际环境光强度相吻合。从而,电子设备根据环境光强度值来调节显示屏亮度时,可以使显示屏亮度的调节更准确,使得显示屏的亮度更好的与周围环境相适应。例如,如图3所示,电子设备得到环境光强度值后,根据实际情况对显示屏的亮度进行调整,以降低(或提高)显示屏的亮度。Wherein, after the electronic device acquires the target light intensity value, the detected value of the ambient light intensity may be adjusted according to the target light intensity value to obtain the ambient light intensity value. After the electronic device adjusts the ambient light intensity detection value, it can reduce or even eliminate the influence of the light emitted by the display screen on the final ambient light intensity value, so that the final ambient light intensity value is different from the actual ambient light intensity value. match. Therefore, when the electronic device adjusts the brightness of the display screen according to the ambient light intensity value, the brightness of the display screen can be adjusted more accurately, so that the brightness of the display screen can better adapt to the surrounding environment. For example, as shown in FIG. 3 , after the electronic device obtains the ambient light intensity value, it adjusts the brightness of the display screen according to the actual situation, so as to reduce (or increase) the brightness of the display screen.
由上可知,本申请实施例提供的环境光强度检测方法,通过获取环境光强度检测值,然后确定所检测到光线的RGB频谱信息,接着获取RGB频谱信息与样本RGB频谱信息匹配的目标光线的目标光强度值,其中,样本RGB频谱信息为显示屏的RGB频谱信息,并根据目标光强度值对环境光强度检测值进行调整,以得到环境光强度值。该方案中,电子设备可以根据显示屏的RGB频谱信息获取到相应数据,以对环境光传感器的检测值进行调整,从而减小显示屏显示信息所产生的光对电子设备检测环境光强度的影响,提高检测环境光强度的准确性。As can be seen from the above, the ambient light intensity detection method provided by the embodiment of the present application obtains the detection value of the ambient light intensity, then determines the RGB spectral information of the detected light, and then obtains the target light whose RGB spectral information matches the sample RGB spectral information. The target light intensity value, wherein the sample RGB spectrum information is the RGB spectrum information of the display screen, and the ambient light intensity detection value is adjusted according to the target light intensity value to obtain the ambient light intensity value. In this solution, the electronic device can obtain corresponding data according to the RGB spectrum information of the display screen to adjust the detection value of the ambient light sensor, thereby reducing the influence of the light generated by the display screen information on the detection of ambient light intensity by the electronic device , to improve the accuracy of detecting ambient light intensity.
在一些实施例中,还提供另一种环境光强度检测方法,应用于电子设备。该电子设备可以包括智能手机、平板电脑等设备。如图4所示,该环境光强度检测方法,可以包括以下流程:In some embodiments, another method for detecting ambient light intensity is provided, which is applied to electronic equipment. The electronic device may include smart phones, tablet computers and other devices. As shown in Figure 4, the ambient light intensity detection method may include the following processes:
201、获取环境光强度检测值。201. Acquire an ambient light intensity detection value.
其中,电子设备中设置有环境光传感器。环境光传感器位于电子设备的显示屏下方。环境光线通过所述显示屏进入到所述环境光传感器中。从而,环境光传感器可以透过显示屏检测到环境光强度。电子设备可以获取所述环境光传感器检测到的环境光强度检测值。Wherein, the electronic device is provided with an ambient light sensor. The ambient light sensor is located under the display of the electronic device. Ambient light enters the ambient light sensor through the display screen. Therefore, the ambient light sensor can detect the ambient light intensity through the display screen. The electronic device can acquire the ambient light intensity detection value detected by the ambient light sensor.
需要说明的是,由于环境光线是可见光,环境光传感器检测到的也是可见光的强度。而显示屏本身可以发光,显示屏发出的光线也是可见光。因此,显示屏所发出的光会对环境光传感器的检测数据会造成影响,使得环境光传感器所检测到的环境光强度相对于实际的环境光强度而言偏大。因此,电子设备获取到的环境光强度检测值也并非实际的环境光强度值。It should be noted that since ambient light is visible light, the ambient light sensor detects the intensity of visible light. The display itself can emit light, and the light emitted by the display is also visible light. Therefore, the light emitted by the display screen will affect the detection data of the ambient light sensor, so that the ambient light intensity detected by the ambient light sensor is larger than the actual ambient light intensity. Therefore, the detected ambient light intensity value acquired by the electronic device is not the actual ambient light intensity value.
202、确定所检测到光线的RGB频谱信息,该RGB频谱信息包括RGB频率值。202. Determine RGB spectrum information of the detected light, where the RGB spectrum information includes RGB frequency values.
在具体实施过程中,可以在电子设备内部安装colorsensor,通过colorsensor的颜色感应功能,便可以识别出所检测到光线的RGB频谱信息,比如可检测出光线的频率、波长等。In the specific implementation process, the colorsensor can be installed inside the electronic device, and the RGB spectrum information of the detected light can be identified through the color sensing function of the colorsensor, such as the frequency and wavelength of the detected light.
203、获取显示屏的RGB频谱信息,其中,该样本RGB频谱信息包括样本RGB频率区间。203. Acquire RGB spectrum information of the display screen, where the sample RGB spectrum information includes a sample RGB frequency range.
不管显示屏是何种光源,都是由RGB三基色混合组成的,只是三基色比例不一样。一般情况下,显示屏的RGB频谱信息是固定不变的,其可发散出处于特定频率或波长的RGB光线,如显示屏的R的频谱波长范围可以是615+/-2.5nm,G的频谱波长范围可以是535+/-2.5nm,B的频谱波长范围可以是465+/-2.5nm等。No matter what kind of light source the display is, it is composed of the mixture of RGB three primary colors, but the ratio of the three primary colors is different. In general, the RGB spectrum information of the display screen is fixed, and it can emit RGB light at a specific frequency or wavelength. For example, the spectrum wavelength range of R of the display screen can be 615+/-2.5nm, and the spectrum of G The wavelength range can be 535+/-2.5nm, the spectral wavelength range of B can be 465+/-2.5nm, etc.
而自然界中,可见光的频谱信息可以参考表1:In nature, the spectrum information of visible light can refer to Table 1:
表1Table 1
因此,可以在电子设备内部安装与该显示屏的RGB频谱信息匹配的color sensor,然后利用该color sensor测量所检测到光线的RGB光强度值。Therefore, a color sensor matching the RGB spectrum information of the display screen can be installed inside the electronic device, and then the color sensor can be used to measure the RGB light intensity value of the detected light.
204、判断RGB频率值是否处于样本RGB频率区间内;若是,执行步骤205,若否,结束流程。204. Determine whether the RGB frequency value is within the sample RGB frequency range; if yes, perform step 205, if not, end the process.
具体地,将获取的RGB频率值与显示屏的样本RGB频率区间进行比较,确定该RGB频率值是否处于样本RGB频率区间内。Specifically, the acquired RGB frequency value is compared with the sample RGB frequency interval of the display screen to determine whether the RGB frequency value is within the sample RGB frequency interval.
205、获取RGB频率值所对应的目标光线的光强度值,以得到目标光强度值。205. Acquire the light intensity value of the target light corresponding to the RGB frequency value, so as to obtain the target light intensity value.
假设存在样本RGB频率区间:R[412.5,417.5]、G[562.5,567.5]、B[632.5,637.5],单位为MHZ。则可获取所检测到的光线中频率处于RGB中任一频率区间内的光线强度,并将获取的光线强度叠加,以得到目标光强度值。Suppose there are sample RGB frequency intervals: R[412.5, 417.5], G[562.5, 567.5], B[632.5, 637.5], the unit is MHZ. Then, the light intensity of the detected light whose frequency is in any frequency range of RGB can be acquired, and the acquired light intensity can be superimposed to obtain the target light intensity value.
206、基于目标光强度值对环境光强度检测值进行调整,以得到环境光强度值。206. Adjust the ambient light intensity detection value based on the target light intensity value to obtain an ambient light intensity value.
本申请实施例中,基于目标光强度值对环境光强度检测值进行调整的方式可以有多种。比如:In the embodiment of the present application, there may be multiple ways of adjusting the detection value of the ambient light intensity based on the target light intensity value. for example:
在一些实施例中,步骤“基于目标光强度值对环境光强度检测值进行调整,以得到环境光强度值”可以包括以下流程:In some embodiments, the step of "adjusting the detected value of ambient light intensity based on the target light intensity value to obtain the value of ambient light intensity" may include the following process:
计算环境光强度检测值与目标光强度值的差值;Calculate the difference between the ambient light intensity detection value and the target light intensity value;
根据该差值确定环境光强度值。Determine the ambient light intensity value based on the difference.
在一些实施方式中,可以直接将该差值作为环境光强度值。In some implementation manners, the difference may be directly used as the ambient light intensity value.
实际应用中,由于外界环境光可能也有与显示屏的频谱信息相同的RGB光线,因此也会被专门只接收显示屏的RGB光源的color sensor所感应到。因此,直接将上述差值作为最终得到的环境光强度,就会导致其比实际的环境光强度值偏小。因此,在一些实施例中,步骤“根据所述差值确定环境光强度值”可以包括以下流程:In practical applications, since the ambient light may also have the same RGB light as the spectrum information of the display screen, it will also be sensed by the color sensor that only receives the RGB light source of the display screen. Therefore, directly using the above difference as the final ambient light intensity will result in a smaller value than the actual ambient light intensity. Therefore, in some embodiments, the step "determine the ambient light intensity value according to the difference" may include the following process:
获取预设的第一调整系数;Acquiring a preset first adjustment coefficient;
根据第一调整系数和所述差值,计算得到环境光强度值。According to the first adjustment coefficient and the difference value, an ambient light intensity value is obtained through calculation.
实际应用中,显示屏频谱相同的RGB一般占整个环境光比例是一定的,是个定值,具体可以设定在5%左右。假设差值为S、第一调整系数为X,则环境光强度值的计算公式可以为:S*(1+X)。In practical applications, RGB with the same frequency spectrum of the display screen generally accounts for a certain proportion of the entire ambient light, which is a fixed value, which can be set at about 5%. Assuming that the difference is S and the first adjustment coefficient is X, the calculation formula for the ambient light intensity value may be: S*(1+X).
在一些实施例中,步骤“基于目标光强度值对环境光强度检测值进行调整,以得到环境光强度值”可以包括以下流程:In some embodiments, the step of "adjusting the detected value of ambient light intensity based on the target light intensity value to obtain the value of ambient light intensity" may include the following process:
获取预设的第二调整系数;Obtain a preset second adjustment coefficient;
计算第二调整系数与目标光强度值的乘积,以得到光强度调整值;calculating the product of the second adjustment coefficient and the target light intensity value to obtain the light intensity adjustment value;
根据光强度调整值对环境光强度检测值进行调整,以得到环境光强度值。The ambient light intensity detection value is adjusted according to the light intensity adjustment value to obtain the ambient light intensity value.
同样的,由于环境光强度检测值中包含显示屏所发光线的光强度值,而colorsensor所检测到的目标光强度值中又可包含外界环境光中的部分环境光的光强度值,因此,需对所检测到的目标光强度值进行优化,以得到更加准确的环境光强度调整值。Similarly, since the ambient light intensity detection value includes the light intensity value of the luminous line of the display screen, and the target light intensity value detected by the colorsensor may include the light intensity value of part of the ambient light in the external ambient light, therefore, The detected target light intensity value needs to be optimized to obtain a more accurate ambient light intensity adjustment value.
具体地,假设环境光强度检测值为D,第二调整系数为Y,目标光强度值为Z,则环境光强度值的计算公式可以为:D-(Y*Z)。其中,Y的取值根据Z与D的比值而定。Specifically, assuming that the ambient light intensity detection value is D, the second adjustment coefficient is Y, and the target light intensity value is Z, the calculation formula for the ambient light intensity value may be: D-(Y*Z). Wherein, the value of Y depends on the ratio of Z to D.
具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, the present application is not limited by the execution order of the described steps, and some steps may be performed in other orders or simultaneously in the case of no conflict.
由上可知,本申请实施例提供的环境光强度检测方法,通过获取环境光强度检测值,然后确定所检测到光线的RGB频谱信息,接着获取RGB频谱信息与样本RGB频谱信息匹配的目标光线的目标光强度值,其中,样本RGB频谱信息为显示屏的RGB频谱信息,并根据目标光强度值对环境光强度检测值进行调整,以得到环境光强度值。该方案中,电子设备可以根据显示屏的RGB频谱信息获取到相应数据,以对环境光传感器的检测值进行调整,从而减小显示屏显示信息所产生的光对电子设备检测环境光强度的影响,提高检测环境光强度的准确性。As can be seen from the above, the ambient light intensity detection method provided by the embodiment of the present application obtains the detection value of the ambient light intensity, then determines the RGB spectral information of the detected light, and then obtains the target light whose RGB spectral information matches the sample RGB spectral information. The target light intensity value, wherein the sample RGB spectrum information is the RGB spectrum information of the display screen, and the ambient light intensity detection value is adjusted according to the target light intensity value to obtain the ambient light intensity value. In this solution, the electronic device can obtain corresponding data according to the RGB spectrum information of the display screen to adjust the detection value of the ambient light sensor, thereby reducing the influence of the light generated by the display screen information on the detection of ambient light intensity by the electronic device , to improve the accuracy of detecting ambient light intensity.
本申请实施例还提供一种环境光强度检测装置,所述环境光强度检测装置可以集成在电子设备中,所述电子设备可以是智能手机、平板电脑等设备。The embodiment of the present application also provides an ambient light intensity detection device, and the ambient light intensity detection device may be integrated in an electronic device, and the electronic device may be a smart phone, a tablet computer, or other devices.
如图5所示,环境光强度检测装置300可以包括:第一获取模块31、确定模块32、第二获取模块33以及调整模块34,其中:As shown in FIG. 5 , the ambient light intensity detection device 300 may include: a first acquisition module 31, a determination module 32, a second acquisition module 33, and an adjustment module 34, wherein:
第一获取模块31,用于获取环境光强度检测值;The first obtaining module 31 is used to obtain the ambient light intensity detection value;
确定模块32,用于确定所检测到光线的RGB频谱信息;Determining module 32, for determining the RGB spectrum information of the detected light;
第二获取模块33,用于获取RGB频谱信息与样本RGB频谱信息匹配的目标光线的目标光强度值,其中,样本RGB频谱信息为显示屏的RGB频谱信息;The second obtaining module 33 is used to obtain the target light intensity value of the target light whose RGB spectral information matches the sample RGB spectral information, wherein the sample RGB spectral information is the RGB spectral information of the display screen;
调整模块34,用于根据目标光强度值对环境光强度检测值进行调整,以得到环境光强度值。The adjustment module 34 is configured to adjust the ambient light intensity detection value according to the target light intensity value to obtain the ambient light intensity value.
在一些实施例中,RGB频谱信息包括RGB频率值,样本RGB频谱信息包括样本RGB频率区间;参考图6,第二获取模块33可以包括:In some embodiments, the RGB spectrum information includes RGB frequency values, and the sample RGB spectrum information includes sample RGB frequency intervals; with reference to Figure 6, the second acquisition module 33 may include:
判断子模块331,用于判断RGB频率值是否处于样本RGB频率区间内;Judgment sub-module 331, for judging whether the RGB frequency value is within the sample RGB frequency range;
第一获取子模块332,用于若判断子模块判定为是,则获取RGB频率值所对应的目标光线的光强度值,以得到目标光强度值。The first acquisition sub-module 332 is configured to acquire the light intensity value of the target light corresponding to the RGB frequency value to obtain the target light intensity value if the judgment sub-module determines yes.
在一些实施例中,参考图7,调整,34可以块包括:In some embodiments, referring to FIG. 7, the adjust, 34 block may include:
第一计算子模块341,用于计算环境光强度检测值与目标光强度值的差值;The first calculation sub-module 341 is used to calculate the difference between the ambient light intensity detection value and the target light intensity value;
确定子模块342,用于根据该差值确定环境光强度值。The determination sub-module 342 is configured to determine the ambient light intensity value according to the difference.
在一些实施例中,确定子模块342进一步可以用于:In some embodiments, the determination submodule 342 can further be used for:
获取预设的第一调整系数;Acquiring a preset first adjustment coefficient;
根据第一调整系数和该差值,计算得到环境光强度值。According to the first adjustment coefficient and the difference, the ambient light intensity value is calculated.
在一些实施例中,参考图8,调整模块34可以包括:In some embodiments, referring to FIG. 8, the adjustment module 34 may include:
第二获取子模块343,用于获取预设的第二调整系数;The second acquisition sub-module 343 is configured to acquire a preset second adjustment coefficient;
第二计算子模块344,用于计算第二调整系数与目标光强度值的乘积,以得到光强度调整值;The second calculation sub-module 344 is used to calculate the product of the second adjustment coefficient and the target light intensity value to obtain the light intensity adjustment value;
调整子模块345,用于根据光强度调整值对环境光强度检测值进行调整,以得到环境光强度值。The adjustment sub-module 345 is configured to adjust the ambient light intensity detection value according to the light intensity adjustment value to obtain the ambient light intensity value.
由上可知,本申请实施例提供的环境光强度检测装置,通过获取环境光强度检测值,然后确定所检测到光线的RGB频谱信息,接着获取RGB频谱信息与样本RGB频谱信息匹配的目标光线的目标光强度值,其中,样本RGB频谱信息为显示屏的RGB频谱信息,并根据目标光强度值对环境光强度检测值进行调整,以得到环境光强度值。该方案中,电子设备可以根据显示屏的RGB频谱信息获取到相应数据,以对环境光传感器的检测值进行调整,从而减小显示屏显示信息所产生的光对电子设备检测环境光强度的影响,提高检测环境光强度的准确性。As can be seen from the above, the ambient light intensity detection device provided in the embodiment of the present application obtains the detection value of the ambient light intensity, then determines the RGB spectrum information of the detected light, and then obtains the target light whose RGB spectrum information matches the sample RGB spectrum information. The target light intensity value, wherein the sample RGB spectrum information is the RGB spectrum information of the display screen, and the ambient light intensity detection value is adjusted according to the target light intensity value to obtain the ambient light intensity value. In this solution, the electronic device can obtain corresponding data according to the RGB spectrum information of the display screen to adjust the detection value of the ambient light sensor, thereby reducing the influence of the light generated by the display screen information on the detection of ambient light intensity by the electronic device , to improve the accuracy of detecting ambient light intensity.
本申请实施例还提供一种电子设备。该电子设备可以是智能手机、平板电脑等设备。如图9所示,电子设备400包括处理器401和存储器402。其中,处理器401与存储器402电性连接。The embodiment of the present application also provides an electronic device. The electronic device may be a smart phone, a tablet computer or the like. As shown in FIG. 9 , an electronic device 400 includes a processor 401 and a memory 402 . Wherein, the processor 401 is electrically connected with the memory 402 .
处理器401是电子设备400的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或调用存储在存储器402内的计算机程序,以及调用存储在存储器402内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 401 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device. Various functions and processing data of the equipment, so as to monitor the electronic equipment as a whole.
在本实施例中,电子设备400中的处理器401会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器402中,并由处理器401来运行存储在存储器402中的计算机程序,从而实现各种功能:In this embodiment, the processor 401 in the electronic device 400 will follow the steps below to load the instructions corresponding to the process of one or more computer programs into the memory 402, and the instructions stored in the memory 402 will be executed by the processor 401. The computer program in, thereby realizes various functions:
获取环境光强度检测值;Obtain the ambient light intensity detection value;
确定所检测到光线的RGB频谱信息;Determine the RGB spectrum information of the detected light;
获取RGB频谱信息与样本RGB频谱信息匹配的目标光线的目标光强度值,其中,样本RGB频谱信息为显示屏的RGB频谱信息;Obtaining the target light intensity value of the target light whose RGB spectrum information matches the sample RGB spectrum information, wherein the sample RGB spectrum information is the RGB spectrum information of the display screen;
根据该目标光强度值对该环境光强度检测值进行调整,以得到环境光强度值。The ambient light intensity detection value is adjusted according to the target light intensity value to obtain an ambient light intensity value.
在一些实施例中,该RGB频谱信息包括RGB频率值,该样本RGB频谱信息包括样本RGB频率区间;获取RGB频谱信息与样本RGB频谱信息匹配的目标光线的目标光强度值时,处理器401执行以下步骤:In some embodiments, the RGB spectrum information includes RGB frequency values, and the sample RGB spectrum information includes sample RGB frequency intervals; when obtaining the target light intensity value of the target light whose RGB spectrum information matches the sample RGB spectrum information, the processor 401 executes The following steps:
判断该RGB频率值是否处于样本RGB频率区间内;Determine whether the RGB frequency value is within the sample RGB frequency range;
若是,则获取该RGB频率值所对应的目标光线的光强度值,以得到目标光强度值。If yes, acquire the light intensity value of the target light corresponding to the RGB frequency value to obtain the target light intensity value.
在一些实施例中,根据该目标光强度值对该环境光强度检测值进行调整,以得到环境光强度值时,处理器401可用于执行以下步骤:In some embodiments, when adjusting the ambient light intensity detection value according to the target light intensity value to obtain the ambient light intensity value, the processor 401 may be configured to perform the following steps:
计算该环境光强度检测值与该目标光强度值的差值;Calculate the difference between the ambient light intensity detection value and the target light intensity value;
根据该差值确定环境光强度值。Determine the ambient light intensity value based on the difference.
在一些实施例中,根据该差值确定环境光强度值时,处理器401可用于执行以下步骤:In some embodiments, when determining the ambient light intensity value according to the difference, the processor 401 may be configured to perform the following steps:
获取预设的第一调整系数;Acquiring a preset first adjustment coefficient;
根据该第一调整系数和该差值,计算得到该环境光强度值。According to the first adjustment coefficient and the difference, the ambient light intensity value is calculated.
在一些实施例中,根据该目标光强度值对该环境光强度检测值进行调整,以得到环境光强度值时,处理器401可用于执行以下步骤:In some embodiments, when adjusting the ambient light intensity detection value according to the target light intensity value to obtain the ambient light intensity value, the processor 401 may be configured to perform the following steps:
获取预设的第二调整系数;Obtain a preset second adjustment coefficient;
计算该第二调整系数与该目标光强度值的乘积,以得到光强度调整值;calculating the product of the second adjustment coefficient and the target light intensity value to obtain a light intensity adjustment value;
根据该光强度调整值对该环境光强度检测值进行调整,以得到环境光强度值。The ambient light intensity detection value is adjusted according to the light intensity adjustment value to obtain an ambient light intensity value.
存储器402可用于存储计算机程序和数据。存储器402存储的计算机程序中包含有可在处理器中执行的指令。计算机程序可以组成各种功能模块。处理器401通过调用存储在存储器402的计算机程序,从而执行各种功能应用以及数据处理。Memory 402 may be used to store computer programs and data. The computer program stored in the memory 402 includes instructions executable by the processor. Computer programs can be composed of various functional modules. The processor 401 executes various functional applications and data processing by calling computer programs stored in the memory 402 .
在一些实施例中,如图10所示,电子设备400还包括:射频电路403、显示屏404、控制电路405、输入单元406、音频电路407、传感器408以及电源409。其中,处理器401分别与射频电路403、显示屏404、控制电路405、输入单元406、音频电路407、传感器408以及电源409电性连接。In some embodiments, as shown in FIG. 10 , the electronic device 400 further includes: a radio frequency circuit 403 , a display screen 404 , a control circuit 405 , an input unit 406 , an audio circuit 407 , a sensor 408 and a power supply 409 . Wherein, the processor 401 is electrically connected to the radio frequency circuit 403 , the display screen 404 , the control circuit 405 , the input unit 406 , the audio circuit 407 , the sensor 408 and the power supply 409 .
射频电路403用于收发射频信号,以通过无线通信与网络设备或其他电子设备进行通信。The radio frequency circuit 403 is used to send and receive radio frequency signals to communicate with network equipment or other electronic equipment through wireless communication.
显示屏404可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。The display screen 404 can be used to display information input by or provided to the user and various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of images, texts, icons, videos and any combination thereof.
控制电路405与显示屏404电性连接,用于控制显示屏404显示信息。The control circuit 405 is electrically connected to the display screen 404 for controlling the display screen 404 to display information.
输入单元406可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元406可以包括指纹识别模组。The input unit 406 can be used to receive input numbers, character information or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Wherein, the input unit 406 may include a fingerprint recognition module.
音频电路407可通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 407 can provide an audio interface between the user and the electronic device through a speaker or a microphone.
传感器408用于采集外部环境信息。传感器408可以包括环境亮度传感器、加速度传感器、陀螺仪等传感器中的一种或多种。The sensor 408 is used to collect external environment information. The sensor 408 may include one or more of sensors such as an ambient brightness sensor, an acceleration sensor, and a gyroscope.
电源409用于给电子设备400的各个部件供电。在一些实施例中,电源409可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 409 is used to supply power to various components of the electronic device 400 . In some embodiments, the power supply 409 may be logically connected to the processor 401 through a power management system, so that functions such as charging, discharging, and power consumption management may be implemented through the power management system.
尽管图10中未示出,电子设备400还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 10 , the electronic device 400 may also include a camera, a Bluetooth module, etc., which will not be repeated here.
由上可知,本申请实施例提供了一种电子设备,通过获取环境光强度检测值,然后确定所检测到光线的RGB频谱信息,接着获取RGB频谱信息与样本RGB频谱信息匹配的目标光线的目标光强度值,其中,样本RGB频谱信息为显示屏的RGB频谱信息,并根据目标光强度值对环境光强度检测值进行调整,以得到环境光强度值。该方案中,电子设备可以根据显示屏的RGB频谱信息获取到相应数据,以对环境光传感器的检测值进行调整,从而减小显示屏显示信息所产生的光对电子设备检测环境光强度的影响,提高检测环境光强度的准确性。It can be seen from the above that the embodiment of the present application provides an electronic device, by obtaining the ambient light intensity detection value, then determining the RGB spectral information of the detected light, and then obtaining the target light of the target light whose RGB spectral information matches the sample RGB spectral information. The light intensity value, wherein the sample RGB spectrum information is the RGB spectrum information of the display screen, and the ambient light intensity detection value is adjusted according to the target light intensity value to obtain the ambient light intensity value. In this solution, the electronic device can obtain corresponding data according to the RGB spectrum information of the display screen to adjust the detection value of the ambient light sensor, thereby reducing the influence of the light generated by the display screen information on the detection of ambient light intensity by the electronic device , to improve the accuracy of detecting ambient light intensity.
本申请实施例还提供一种存储介质,该存储介质中存储有计算机程序,当该计算机程序在计算机上运行时,该计算机执行上述任一实施例所述的环境光强度检测方法。An embodiment of the present application further provides a storage medium, in which a computer program is stored. When the computer program is run on a computer, the computer executes the ambient light intensity detection method described in any of the above-mentioned embodiments.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过计算机程序来指令相关的硬件来完成,所述计算机程序可以存储于计算机可读存储介质中,所述存储介质可以包括但不限于:只读存储器(ROM,Read OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium In this example, the storage medium may include but not limited to: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.
以上对本申请实施例所提供的环境光强度检测方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The ambient light intensity detection method, device, storage medium and electronic equipment provided by the embodiments of the present application have been described in detail above. In this paper, specific examples have been used to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only It is used to help understand the method and its core idea of this application; at the same time, for those skilled in the art, according to the idea of this application, there will be changes in the specific implementation and application scope. In summary, this specification The content should not be construed as a limitation of the application.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711174645.7A CN107941330B (en) | 2017-11-22 | 2017-11-22 | Ambient light intensity detection method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711174645.7A CN107941330B (en) | 2017-11-22 | 2017-11-22 | Ambient light intensity detection method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107941330A true CN107941330A (en) | 2018-04-20 |
CN107941330B CN107941330B (en) | 2020-09-08 |
Family
ID=61930719
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711174645.7A Active CN107941330B (en) | 2017-11-22 | 2017-11-22 | Ambient light intensity detection method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107941330B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108917921A (en) * | 2018-06-15 | 2018-11-30 | 江西合力泰科技有限公司 | A kind of ambient light intensity detection method |
CN109740519A (en) * | 2018-12-29 | 2019-05-10 | 联想(北京)有限公司 | Control method and electronic equipment |
CN111486950A (en) * | 2020-04-20 | 2020-08-04 | Oppo广东移动通信有限公司 | Ambient light detection method, device, electronic device and storage medium |
CN112033527A (en) * | 2020-08-26 | 2020-12-04 | 北京小米移动软件有限公司 | Ambient brightness detection method, device, equipment and storage medium |
CN113865703A (en) * | 2021-09-30 | 2021-12-31 | 维沃移动通信有限公司 | Ambient light detection method, detection device, light detection module, and electronic apparatus |
WO2022042085A1 (en) * | 2020-08-28 | 2022-03-03 | Oppo广东移动通信有限公司 | Device testing method and apparatus, and storage medium and electronic device |
CN114220381A (en) * | 2022-02-22 | 2022-03-22 | 深圳灏鹏科技有限公司 | Display brightness control method, device, equipment and storage medium |
CN114283743A (en) * | 2021-12-27 | 2022-04-05 | 深圳市汇顶科技股份有限公司 | Method and device for detecting ambient light under display screen and electronic equipment |
CN115219032A (en) * | 2021-04-20 | 2022-10-21 | 北京小米移动软件有限公司 | Ambient light detection method, ambient light detection device and storage medium |
CN115706750A (en) * | 2021-08-09 | 2023-02-17 | 北京小米移动软件有限公司 | Color temperature calibration method, color temperature calibration device and storage medium |
CN116015449A (en) * | 2021-10-21 | 2023-04-25 | 北京小米移动软件有限公司 | Information transmission method, device, terminal and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604516A (en) * | 2008-06-10 | 2009-12-16 | 台达电子工业股份有限公司 | Display device, control assembly for display device and control method |
CN102682738A (en) * | 2012-05-11 | 2012-09-19 | Tcl集团股份有限公司 | Color temperature regulation method and system for display device |
CN103940505A (en) * | 2013-01-23 | 2014-07-23 | 华为终端有限公司 | Ambient light sensor, adjusting method thereof and electronic product |
US20140375669A1 (en) * | 2013-06-19 | 2014-12-25 | Lenovo (Beijing) Limited | Information processing methods and electronic devices |
US20170084250A1 (en) * | 2015-09-17 | 2017-03-23 | Apple Inc. | Methods for Color Sensing Ambient Light Sensor Calibration |
-
2017
- 2017-11-22 CN CN201711174645.7A patent/CN107941330B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604516A (en) * | 2008-06-10 | 2009-12-16 | 台达电子工业股份有限公司 | Display device, control assembly for display device and control method |
CN102682738A (en) * | 2012-05-11 | 2012-09-19 | Tcl集团股份有限公司 | Color temperature regulation method and system for display device |
CN103940505A (en) * | 2013-01-23 | 2014-07-23 | 华为终端有限公司 | Ambient light sensor, adjusting method thereof and electronic product |
US20140375669A1 (en) * | 2013-06-19 | 2014-12-25 | Lenovo (Beijing) Limited | Information processing methods and electronic devices |
US20170084250A1 (en) * | 2015-09-17 | 2017-03-23 | Apple Inc. | Methods for Color Sensing Ambient Light Sensor Calibration |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108917921A (en) * | 2018-06-15 | 2018-11-30 | 江西合力泰科技有限公司 | A kind of ambient light intensity detection method |
CN109740519A (en) * | 2018-12-29 | 2019-05-10 | 联想(北京)有限公司 | Control method and electronic equipment |
CN111486950A (en) * | 2020-04-20 | 2020-08-04 | Oppo广东移动通信有限公司 | Ambient light detection method, device, electronic device and storage medium |
WO2021213016A1 (en) * | 2020-04-20 | 2021-10-28 | Oppo广东移动通信有限公司 | Ambient light detection method and device, electronic apparatus, and storage medium |
CN112033527A (en) * | 2020-08-26 | 2020-12-04 | 北京小米移动软件有限公司 | Ambient brightness detection method, device, equipment and storage medium |
CN112033527B (en) * | 2020-08-26 | 2023-10-03 | 北京小米移动软件有限公司 | Ambient brightness detection method, device, equipment and storage medium |
WO2022042085A1 (en) * | 2020-08-28 | 2022-03-03 | Oppo广东移动通信有限公司 | Device testing method and apparatus, and storage medium and electronic device |
CN115219032A (en) * | 2021-04-20 | 2022-10-21 | 北京小米移动软件有限公司 | Ambient light detection method, ambient light detection device and storage medium |
CN115706750A (en) * | 2021-08-09 | 2023-02-17 | 北京小米移动软件有限公司 | Color temperature calibration method, color temperature calibration device and storage medium |
CN115706750B (en) * | 2021-08-09 | 2024-05-24 | 北京小米移动软件有限公司 | Color temperature calibration method, color temperature calibration device and storage medium |
CN113865703A (en) * | 2021-09-30 | 2021-12-31 | 维沃移动通信有限公司 | Ambient light detection method, detection device, light detection module, and electronic apparatus |
CN116015449A (en) * | 2021-10-21 | 2023-04-25 | 北京小米移动软件有限公司 | Information transmission method, device, terminal and storage medium |
CN114283743A (en) * | 2021-12-27 | 2022-04-05 | 深圳市汇顶科技股份有限公司 | Method and device for detecting ambient light under display screen and electronic equipment |
US12027139B2 (en) | 2021-12-27 | 2024-07-02 | Shenzhen GOODIX Technology Co., Ltd. | Method and apparatus for detecting ambient light under display screen and electronic device |
CN114220381A (en) * | 2022-02-22 | 2022-03-22 | 深圳灏鹏科技有限公司 | Display brightness control method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107941330B (en) | 2020-09-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107941330B (en) | Ambient light intensity detection method and device, storage medium and electronic equipment | |
CN107945769B (en) | Ambient light intensity detection method and device, storage medium and electronic equipment | |
CN107957294B (en) | Ambient light intensity detection method and device, storage medium and electronic equipment | |
CN108021161A (en) | Ambient light intensity detection method and device, storage medium and electronic equipment | |
KR102554675B1 (en) | Electronic device and method for sensing ambient light based on display information of the electronic device | |
CN107945770A (en) | Ambient light intensity detection method, device, storage medium and electronic equipment | |
US11562670B2 (en) | Electronic device with illuminance sensor mounted at back side of display and method for measuring illuminance using illuminance sensor | |
CN111936833B (en) | Calibration luminance estimation using ambient color sensor | |
EP2823268B1 (en) | Ambient light detection and data processing | |
US20120313962A1 (en) | Electronic device and method for generating graphical user interface thereof | |
CN107818753A (en) | Screen brightness adjustment method, device, storage medium and electronic equipment | |
US9508318B2 (en) | Dynamic color profile management for electronic devices | |
KR20190105949A (en) | Electronic device for compensating color of display | |
WO2023045884A1 (en) | Screen light detection model training method, ambient light detection method, and apparatus | |
CN107945733A (en) | Display screen brightness adjusting method and device, storage medium and electronic equipment | |
US10929078B2 (en) | Electronic apparatus for generating screen image to be displayed by display apparatus and control method thereof | |
CN111947775B (en) | Device detection method and device, storage medium and electronic device | |
CN108737652A (en) | Display brightness control method, device, storage medium and electronic equipment | |
WO2019100981A1 (en) | Display screen assembly, control method and apparatus, storage medium, and electronic device | |
CN113316711B (en) | Method and apparatus for estimating ambient light | |
KR20200040597A (en) | Electronic device and method for determining touch input conditions based on type of touch input | |
KR20230099610A (en) | Method, apparatus and electronic device for estimating screen light leakage amount | |
CN108494936B (en) | Light intensity detection method and mobile terminal | |
CN115479665A (en) | Ambient light detection method and electronic equipment | |
KR102558472B1 (en) | Electronic device for conrolling display of content and operating method thereof |
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 | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |