Movatterモバイル変換


[0]ホーム

URL:


CN107945770A - 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 PDF

Info

Publication number
CN107945770A
CN107945770ACN201711176952.9ACN201711176952ACN107945770ACN 107945770 ACN107945770 ACN 107945770ACN 201711176952 ACN201711176952 ACN 201711176952ACN 107945770 ACN107945770 ACN 107945770A
Authority
CN
China
Prior art keywords
ambient light
light intensity
color temperature
value
adjusting parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711176952.9A
Other languages
Chinese (zh)
Inventor
张海平
周意保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711176952.9ApriorityCriticalpatent/CN107945770A/en
Publication of CN107945770ApublicationCriticalpatent/CN107945770A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请实施例提供一种环境光强度检测方法、装置、存储介质及电子设备。该环境光强度检测方法,包括:获取环境光强度检测值;获取当前显示屏的色温信息;根据色温信息获取对应的环境光强度调整参数;根据环境光强度调整参数对环境光强度检测值进行调整,以得到环境光强度值。该方案中,电子设备可以根据显示屏的色温信息对环境光传感器的检测值进行调整,以减小显示屏显示信息所产生的光对电子设备检测环境光强度的影响,提高检测环境光强度的准确性。

The embodiments of the present application provide an ambient light intensity detection method, device, storage medium and electronic device. The ambient light intensity detection method includes: obtaining an ambient light intensity detection value; obtaining the color temperature information of the current display screen; obtaining a corresponding ambient light intensity adjustment parameter according to the color temperature information; adjusting the ambient light intensity detection value according to the ambient light intensity adjustment parameter to obtain an ambient light intensity value. In this solution, the electronic device can adjust the detection value of the ambient light sensor according to the color temperature information of the display screen to reduce the influence of the light generated by the display screen display information on the ambient light intensity detected by the electronic device, thereby improving the accuracy of detecting the ambient light intensity.

Description

Translated fromChinese
环境光强度检测方法、装置、存储介质及电子设备Ambient light intensity detection method, device, storage medium and electronic equipment

技术领域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;

获取当前显示屏的色温信息;Obtain the color temperature information of the current display;

根据所述色温信息获取对应的环境光强度调整参数;Acquire corresponding ambient light intensity adjustment parameters according to the color temperature information;

根据所述环境光强度调整参数对所述环境光强度检测值进行调整,以得到环境光强度值。The ambient light intensity detection value is adjusted according to the ambient light intensity adjustment parameter 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;

第二获取模块,用于获取当前显示屏的色温信息;The second obtaining module is used to obtain the color temperature information of the current display screen;

第三获取模块,用于根据所述色温信息获取对应的环境光强度调整参数;A third acquiring module, configured to acquire corresponding ambient light intensity adjustment parameters according to the color temperature information;

调整模块,用于根据所述环境光强度调整参数对所述环境光强度检测值进行调整,以得到环境光强度值。An adjustment module, configured to adjust the detected value of the ambient light intensity according to the ambient light intensity adjustment parameter 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.

本申请实施例提供的环境光强度检测方法,包括:获取环境光强度检测值;获取当前显示屏的色温信息;根据色温信息获取对应的环境光强度调整参数;根据环境光强度调整参数对环境光强度检测值进行调整,以得到环境光强度值。该方案中,电子设备可以根据显示屏的色温信息对环境光传感器的检测值进行调整,以减小显示屏显示信息所产生的光对电子设备检测环境光强度的影响,提高检测环境光强度的准确性。The ambient light intensity detection method provided in the embodiment of the present application includes: obtaining the detection value of the ambient light intensity; obtaining the color temperature information of the current display screen; obtaining the corresponding ambient light intensity adjustment parameters according to the color temperature information; adjusting the ambient light intensity according to the ambient light intensity adjustment parameters The intensity detection value is adjusted to obtain the ambient light intensity value. In this solution, the electronic device can adjust the detection value of the ambient light sensor according to the color temperature information of the display screen, so as to reduce the influence of the light generated by the display information on the electronic device to detect the ambient light intensity, and improve the detection accuracy of the ambient light intensity. accuracy.

附图说明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. On the other hand, due to different color temperatures, the display screen can present different colors of light, such as red, blue, white, and so on. When the display screen displays different colors, the transmittance of ambient light is different.

从而,显示屏对环境光传感器的检测数据会造成影响。因此,环境光传感器检测到的环境光强度并非实际的环境光强度。此时,电子设备获取到的环境光强度检测值也并非实际的环境光强度值。Therefore, the display screen will affect the detection data of the ambient light sensor. Therefore, the ambient light intensity detected by the ambient light sensor is not the actual ambient light intensity. At this time, the ambient light intensity detection value obtained by the electronic device is not the actual ambient light intensity value.

102、获取显示屏的色温信息。102. Acquire color temperature information of the display screen.

色温(ColorTemperature)是表示光线中包含颜色成分的一个计量单位。从理论上讲,色温是指绝对黑体从绝对零度(一273℃)开始加温后所呈现的颜色。黑体在受热后,逐渐由黑变红,转黄,发白,最后发出蓝色光。当加热到一定的温度,黑体发出的光所含的光谱成分。就称为这一温度下的色温,计量单位为“K”(开尔文)。如果某一光源发出的光,与某一温度下黑体发出的光所含的光谱成分相同,即称为某K色温。如100W灯泡发出光的颜色,与绝对黑体在2527K时的颜色相同,那么这只灯泡发出的光的色温就是:2527K+273K=2800K。Color temperature (ColorTemperature) is a unit of measurement that indicates the color components contained in light. Theoretically speaking, color temperature refers to the color that an absolute black body presents after being heated from absolute zero (-273°C). After the black body is heated, it gradually turns from black to red, to yellow, to white, and finally to blue light. When heated to a certain temperature, the spectral components contained in the light emitted by the blackbody. It is called the color temperature at this temperature, and the unit of measurement is "K" (Kelvin). If the light emitted by a certain light source has the same spectral composition as the light emitted by a black body at a certain temperature, it is called a certain K color temperature. For example, the color of light emitted by a 100W light bulb is the same as that of an absolute black body at 2527K, then the color temperature of the light emitted by this light bulb is: 2527K+273K=2800K.

色温是一种温度衡量方法,通常用在物理和天文学领域,这个概念基于一个虚构黑色物体,在被加热到不同的温度时会发出不同颜色的光,其物体呈现为不同颜色。就像加热铁块时,铁块先变成红色,然后是黄色,最后会变成白色。使用这种方法标定的色温与普通大众所认为的“暖”和“冷”正好相反,例如,通常会感觉红色.橙色和黄色较暖,白色和蓝色较冷,而实际上红色的色温最低,然后逐步增加的是橙色、黄色、白色和蓝色,蓝色是最高的色温。光源色温不同,光色也不同,具体的,如下表1所示:Color temperature is a measure of temperature, often used in the fields of physics and astronomy, based on a fictional black object that emits light of different colors when heated to different temperatures, and the object appears as a different color. Just like when a block of iron is heated, it first turns red, then yellow, and finally white. The color temperature calibrated using this method is just the opposite of what the general public thinks is "warm" and "cool". For example, red is usually perceived. Orange and yellow are warmer, white and blue are cooler, and red has the lowest color temperature. , and then progressively increasing are orange, yellow, white, and blue, with blue being the highest color temperature. The color temperature of the light source is different, and the light color is also different. Specifically, it is shown in Table 1 below:

表1Table 1

<3000K<3000K暖色(带红的白色)warm color (reddish white)3000~5000K3000~5000K中间(白色)middle (white)>5000K>5000K冷色(带蓝的白色)cool color (white with bluish tint)

其中,色温是显示屏一个重要性能指标。光源发光时会产生一组光谱,用一个纯黑体产生出同样的光谱时所需要达到的某一温度,这个温度就是该光源的色温。实际应用中,一些数控显示器带有色温调节功能,通过该功能(一般有9300K、6500K、5000K三个选择)可以使显示器的色彩能够满足高标准工作要求。Among them, color temperature is an important performance index of the display screen. When the light source emits light, it will produce a set of spectrum. When using a pure black body to produce the same spectrum, it needs to reach a certain temperature. This temperature is the color temperature of the light source. In practical applications, some numerical control monitors have a color temperature adjustment function. Through this function (generally, there are three options of 9300K, 6500K, and 5000K), the color of the monitor can meet the high standard work requirements.

在具体实施过程中,可从电子设备特定的存储区域中获取显示屏色温信息的相关数据。In a specific implementation process, data related to the color temperature information of the display screen can be obtained from a specific storage area of the electronic device.

103、根据该色温信息获取对应的环境光强度调整参数。103. Acquire a corresponding ambient light intensity adjustment parameter according to the color temperature information.

电子设备获取到显示屏的色温信息后,可以根据该色温信息获取环境光强度调整参数。环境光强度调整参数可以是预先存储在电子设备中的数值。环境光强度调整参数用于对电子设备获取到的环境光强度检测值进行调整,以使得电子设备检测到的环境光强度更准确。After the electronic device obtains the color temperature information of the display screen, it can obtain the ambient light intensity adjustment parameter according to the color temperature information. The ambient light intensity adjustment parameter may be a value pre-stored in the electronic device. The ambient light intensity adjustment parameter is used to adjust the ambient light intensity detection value acquired by the electronic device, so as to make the ambient light intensity detected by the electronic device more accurate.

104、根据环境光强度调整参数对环境光强度检测值进行调整,以得到环境光强度值。104. Adjust the detected value of the ambient light intensity according to the ambient light intensity adjustment parameter to obtain the ambient light intensity value.

其中,电子设备获取到环境光强度调整参数后,即可根据环境光强度调整参数对环境光强度检测值进行调整,以得到环境光强度值。电子设备对环境光强度检测值进行调整后,可以减小甚至消除显示屏显示信息时所发出的光对最终得到的环境光强度值的影响,使得最终得到的环境光强度值与实际环境光强度相吻合。从而,电子设备根据环境光强度值来调节显示屏亮度时,可以使显示屏亮度的调节更准确,使得显示屏的亮度更好的与周围环境相适应。例如,如图3所示,电子设备得到环境光强度值后,根据实际情况对显示屏的亮度进行调整,以降低(或提高)显示屏的亮度。Wherein, after the electronic device obtains the ambient light intensity adjustment parameter, it can adjust the ambient light intensity detection value according to the ambient light intensity adjustment parameter 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.

由上可知,本申请实施例提供的环境光强度检测方法,通过获取环境光强度检测值,然后获取当前显示屏的色温信息,根据色温信息获取对应的环境光强度调整参数,并根据环境光强度调整参数对环境光强度检测值进行调整,以得到环境光强度值。该方案中,电子设备可以根据显示屏的色温信息对环境光传感器的检测值进行调整,以减小显示屏显示信息所产生的光对电子设备检测环境光强度的影响,提高检测环境光强度的准确性。It can be seen from the above that the ambient light intensity detection method provided in the embodiment of the present application obtains the detection value of the ambient light intensity, and then obtains the color temperature information of the current display screen, obtains the corresponding ambient light intensity adjustment parameters according to the color temperature information, and obtains the corresponding ambient light intensity adjustment parameters according to the ambient light intensity. The adjustment parameter adjusts the detected value of the ambient light intensity to obtain the ambient light intensity value. In this solution, the electronic device can adjust the detection value of the ambient light sensor according to the color temperature information of the display screen, so as to reduce the influence of the light generated by the display information on the electronic device to detect the ambient light intensity, and improve the detection accuracy of the ambient light intensity. accuracy.

在一些实施例中,还提供另一种环境光强度检测方法,应用于电子设备。该电子设备可以包括智能手机、平板电脑等设备。如图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. Construct a set of mapping relationships, wherein the set of mapping relationships includes: a sample color temperature range, a sample ambient light intensity adjustment parameter, and a mapping relationship between the sample color temperature range and the sample ambient light intensity adjustment parameter.

本申请实施例中,需预先设定色温区间与样本环境光强度调整参数之间的映射关系,以便后续实施过程中基于该映射关系获取相应的环境光强度调整参数对环境光强度进行相关处理。In the embodiment of the present application, the mapping relationship between the color temperature range and the sample ambient light intensity adjustment parameter needs to be set in advance, so that the corresponding ambient light intensity adjustment parameters can be obtained based on the mapping relationship in the subsequent implementation process to perform related processing on the ambient light intensity.

其中,环境光强度调整参数用于对电子设备获取到的环境光强度检测值进行调整,以使得电子设备检测到的环境光强度更准确。Wherein, the ambient light intensity adjustment parameter is used to adjust the ambient light intensity detection value acquired by the electronic device, so as to make the ambient light intensity detected by the electronic device more accurate.

而色温是表示光线中包含颜色成分的一个计量单位。黑体在受热后,逐渐由黑变红,转黄,发白,最后发出蓝色光。当加热到一定的温度,黑体发出的光所含的光谱成分,就称为这一温度下的色温。如100W灯泡发出光的颜色,与绝对黑体在2527K时的颜色相同,那么这只灯泡发出的光的色温就是:2527K+273K=2800K。The color temperature is a unit of measurement that expresses the color components contained in the light. After the black body is heated, it gradually turns from black to red, to yellow, to white, and finally to blue light. When heated to a certain temperature, the spectral components contained in the light emitted by the black body are called the color temperature at this temperature. For example, the color of light emitted by a 100W light bulb is the same as that of an absolute black body at 2527K, then the color temperature of the light emitted by this light bulb is: 2527K+273K=2800K.

由于显示屏自发光会对环境光传感器检测环境光强度造成影响,且不同颜色的光所产造成的影响还不一致。因此,本申请实施例中,可基于不同色系的光源将色温值划分为多个样本色温区间,比如,暖白区间:2850K~3500K;自然白区间:3500K~4500K;冷白区间:4500K~10000K。在一些实施例中,还可以对暖白区间、冷白区间进一步划分,如红色区间、黄色区间、蓝色区间等等。Since the self-illumination of the display screen will affect the ambient light intensity detected by the ambient light sensor, and the effects of different colors of light are not consistent. Therefore, in the embodiment of the present application, the color temperature value can be divided into multiple sample color temperature ranges based on light sources of different color systems, for example, warm white range: 2850K-3500K; natural white range: 3500K-4500K; cool white range: 4500K- 10000K. In some embodiments, the warm white interval and the cool white interval can be further divided, such as red interval, yellow interval, blue interval and so on.

每一样本色温区间分别对应不同的样本环境光强度调整参数。其中,该样本环境光强度调整参数可以使由本领域技术人员或者产品生产厂商,经过大量的实验测试而得到的较为准确的数据。Each sample color temperature range corresponds to a different sample ambient light intensity adjustment parameter. Wherein, the sample ambient light intensity adjustment parameter can be relatively accurate data obtained by a person skilled in the art or a product manufacturer through a large number of experimental tests.

202、获取环境光强度检测值。202. 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. On the other hand, due to different color temperatures, the display screen can present different colors of light, such as red, blue, white, and so on. When the display screen displays different colors, the transmittance of ambient light is different.

从而,显示屏对环境光传感器的检测数据会造成影响,使得检测值比实际值偏大。因此,环境光传感器检测到的环境光强度并非实际的环境光强度。此时,电子设备获取到的环境光强度检测值也并非实际的环境光强度值。Therefore, the display screen will affect the detection data of the ambient light sensor, so that the detection value is larger than the actual value. Therefore, the ambient light intensity detected by the ambient light sensor is not the actual ambient light intensity. At this time, the ambient light intensity detection value obtained by the electronic device is not the actual ambient light intensity value.

203、获取当前显示屏的色温信息,该色温信息包括色温值。203. Acquire color temperature information of the current display screen, where the color temperature information includes a color temperature value.

其中,色温是显示屏一个重要性能指标。光源发光时会产生一组光谱,用一个纯黑体产生出同样的光谱时所需要达到的某一温度,这个温度就是该光源的色温。在具体实施过程中,可从电子设备特定的存储区域中获取显示屏色温信息的相关数据。Among them, color temperature is an important performance index of the display screen. When the light source emits light, it will produce a set of spectrum. When using a pure black body to produce the same spectrum, it needs to reach a certain temperature. This temperature is the color temperature of the light source. In a specific implementation process, data related to the color temperature information of the display screen can be obtained from a specific storage area of the electronic device.

204、确定色温值所处的目标色温区间。204. Determine the target color temperature interval where the color temperature value is located.

具体地,将该色温值与上述所划分存储的样本色温区间进行比较,确定该色温值所在的目标色温区间。假设存在样本色温区间:A(2850k,3000k]、B(3000k,3500k]、C(3500k,4500k]、D(4500k,5000k]、E(5000k,10000k]。若获取到的色温值为2900k,则可以确定该色温值所处目标色温区间为区间A。Specifically, the color temperature value is compared with the above-mentioned divided and stored sample color temperature intervals, and the target color temperature interval where the color temperature value is located is determined. Suppose there are sample color temperature intervals: A(2850k, 3000k], B(3000k, 3500k], C(3500k, 4500k], D(4500k, 5000k], E(5000k, 10000k]. If the obtained color temperature value is 2900k, Then it can be determined that the target color temperature interval of the color temperature value is interval A.

205、根据该映射关系集合,获取与该目标色温区间对应的环境光强度调整参数。205. Acquire an ambient light intensity adjustment parameter corresponding to the target color temperature range according to the mapping relationship set.

具体地,基于上述映射关系集合中,样本色温区间与样本环境光强度调整参数之间的映射关系,获取该目标色温区间(如步骤204中的色温区间A)对应的样本环境光强度调整参数,以作为该目标色温区间对应的环境光强度调整参数。Specifically, based on the mapping relationship between the sample color temperature interval and the sample ambient light intensity adjustment parameter in the above mapping relationship set, the sample ambient light intensity adjustment parameter corresponding to the target color temperature interval (such as the color temperature interval A in step 204) is obtained, The parameter is adjusted with the ambient light intensity corresponding to the target color temperature range.

206、基于该环境光强度调整参数对环境光强度检测值进行调整,以得到环境光强度值。206. Adjust the detected value of the ambient light intensity based on the ambient light intensity adjustment parameter to obtain an ambient light intensity value.

本申请实施例中,基于该环境光强度调整参数对环境光强度检测值进行调整的方式可以有多种。比如:In the embodiment of the present application, there may be multiple ways of adjusting the detected value of the ambient light intensity based on the ambient light intensity adjustment parameter. for example:

在一些实施例中,环境光强度调整参数包括环境光强度调整值;则步骤“根据所述环境光强度调整参数对所述环境光强度检测值进行调整,以得到环境光强度值”可以包括以下流程:In some embodiments, the ambient light intensity adjustment parameter includes an ambient light intensity adjustment value; then the step "adjust the ambient light intensity detection value according to the ambient light intensity adjustment parameter to obtain an ambient light intensity value" may include the following process:

计算环境光强度检测值与环境光强度调整值的差值;Calculate the difference between the ambient light intensity detection value and the ambient light intensity adjustment value;

将计算得到的差值确定为环境光强度值。The calculated difference is determined as an ambient light intensity value.

其中,电子设备中可以预先存储显示屏的光源颜色(即色温区间)与环境光强度调整值之间的对应关系。例如,电子设备中可以预先存储如表2所示的对应关系:Wherein, the electronic device may pre-store the corresponding relationship between the color of the light source of the display screen (that is, the color temperature range) and the adjustment value of the ambient light intensity. For example, the corresponding relationship shown in Table 2 may be pre-stored in the electronic device:

表2Table 2

光源颜色Light source color环境光强度调整值Ambient light intensity adjustment value白色White300Lux300Lux偏红色reddish100Lux100Lux偏绿色greenish70Lux70Lux偏蓝色blue30Lux30Lux灰色grey10Lux10Lux

比如,假设上述目标色温区间A(2850k,3000k]对应偏红色光源,而当前环境光传感器检测的环境光强度检测值为450Lux,则,此时实际环境光强度值为:450Lux-100Lux=300Lux。For example, assuming that the above target color temperature range A (2850k, 3000k] corresponds to a reddish light source, and the ambient light intensity detection value detected by the ambient light sensor is 450Lux, then the actual ambient light intensity value at this time is: 450Lux-100Lux=300Lux.

在一些实施例中,环境光强度调整参数包括环境光强度调整比例;则步骤“根据所述环境光强度调整参数对所述环境光强度检测值进行调整,以得到环境光强度值”可以包括以下流程:In some embodiments, the ambient light intensity adjustment parameter includes an ambient light intensity adjustment ratio; then the step "adjusting the ambient light intensity detection value according to the ambient light intensity adjustment parameter to obtain an ambient light intensity value" may include the following process:

计算环境光强度检测值与环境光强度调整比例的乘积;Calculate the product of the ambient light intensity detection value and the ambient light intensity adjustment ratio;

将计算得到的乘积确定为环境光强度值。The calculated product is determined as an ambient light intensity value.

其中,环境光强度调整参数包括环境光强度调整比例。环境光强度调整比例为一个数值。例如,环境光强度调整比例为0.7。电子设备获取到环境光强度调整比例后,计算环境光强度检测值与环境光强度调整比例的乘积,并将计算得到的乘积确定为环境光强度值。Wherein, the ambient light intensity adjustment parameter includes an ambient light intensity adjustment ratio. Ambient light intensity adjustment scale as a numeric value. For example, the ambient light intensity adjustment scale is 0.7. After obtaining the adjustment ratio of the ambient light intensity, the electronic device calculates the product of the detection value of the ambient light intensity and the adjustment ratio of the ambient light intensity, and determines the calculated product as the ambient light intensity value.

比如,电子设备获取到的环境光强度检测值为450Lux,环境光强度调整比例为0.7,则计算得到的两者的乘积为315Lux。随后,电子设备将环境光强度值确定为315Lux。For example, if the detected value of the ambient light intensity acquired by the electronic device is 450 Lux, and the adjustment ratio of the ambient light intensity is 0.7, then the calculated product of the two is 315 Lux. Subsequently, the electronic device determines the ambient light intensity value as 315 Lux.

具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。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.

由上可知,本申请实施例提供的环境光强度检测方法,通过获取环境光强度检测值,然后获取当前显示屏的色温信息,接着根据色温信息获取对应的环境光强度调整参数,并根据环境光强度调整参数对环境光强度检测值进行调整,以得到环境光强度值。该方案中,电子设备可以根据显示屏的色温信息对环境光传感器的检测值进行调整,以减小显示屏显示信息所产生的光对电子设备检测环境光强度的影响,提高检测环境光强度的准确性。It can be seen from the above that the ambient light intensity detection method provided in the embodiment of the present application obtains the detection value of the ambient light intensity, then obtains the color temperature information of the current display screen, and then obtains the corresponding ambient light intensity adjustment parameters according to the color temperature information, and then obtains the corresponding ambient light intensity adjustment parameters according to the ambient light intensity The intensity adjustment parameter adjusts the detected value of the ambient light intensity to obtain the ambient light intensity value. In this solution, the electronic device can adjust the detection value of the ambient light sensor according to the color temperature information of the display screen, so as to reduce the influence of the light generated by the display information on the electronic device to detect the ambient light intensity, and improve the detection accuracy of the ambient light intensity. accuracy.

本申请实施例还提供一种环境光强度检测装置,所述环境光强度检测装置可以集成在电子设备中,所述电子设备可以是智能手机、平板电脑等设备。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 second acquisition module 32, a third 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,用于获取当前显示屏的色温信息;The second obtaining module 32 is used to obtain the color temperature information of the current display screen;

第三获取模块33,用于根据所述色温信息获取对应的环境光强度调整参数;A third acquisition module 33, configured to acquire corresponding ambient light intensity adjustment parameters according to the color temperature information;

调整模块34,用于根据所述环境光强度调整参数对所述环境光强度检测值进行调整,以得到环境光强度值。The adjustment module 34 is configured to adjust the detected value of the ambient light intensity according to the ambient light intensity adjustment parameter to obtain an ambient light intensity value.

在一些实施例中,色温信息包括色温值;参考图6,第三获取模块33可以包括:In some embodiments, the color temperature information includes a color temperature value; referring to FIG. 6, the third acquisition module 33 may include:

确定子模块331,用于确定色温值所处的目标色温区间;A determination sub-module 331, configured to determine the target color temperature interval where the color temperature value is located;

获取子模块332,用于获取与所述目标色温区间对应的环境光强度调整参数。The acquiring sub-module 332 is configured to acquire an ambient light intensity adjustment parameter corresponding to the target color temperature range.

在一些实施例中,获取子模块332进一步可以用于:根据色温区间以及预设映射关系集合获取对应的环境光强度调整参数,预设映射关系集合包括:样本色温区间、样本环境光强度调整参数以及样本色温区间与样本环境光强度调整参数之间的映射关系。In some embodiments, the acquisition sub-module 332 can be further used to: acquire the corresponding ambient light intensity adjustment parameters according to the color temperature interval and the preset mapping relationship set, the preset mapping relationship set includes: the sample color temperature interval, the sample ambient light intensity adjustment parameter And the mapping relationship between the color temperature range of the sample and the adjustment parameter of the ambient light intensity of the sample.

在一些实施例中,环境光强度调整参数可包括环境光强度调整值;参考图7,调整模块34可以包括:In some embodiments, the ambient light intensity adjustment parameter may include an ambient light intensity adjustment value; referring to FIG. 7, the adjustment module 34 may include:

第一计算子模块341,用于计算环境光强度检测值与环境光强度调整值的差值;The first calculation sub-module 341 is used to calculate the difference between the detected value of the ambient light intensity and the adjusted value of the ambient light intensity;

第一处理子模块342,用于将计算得到的差值确定为环境光强度值。The first processing sub-module 342 is configured to determine the calculated difference as an ambient light intensity value.

在一些实施例中,环境光强度调整参数可以包括环境光强度调整比例;参考图8,调整模块34可以包括:In some embodiments, the ambient light intensity adjustment parameter may include an ambient light intensity adjustment ratio; referring to FIG. 8 , the adjustment module 34 may include:

第二计算子模块343,用于计算环境光强度检测值与环境光强度调整比例的乘积;The second calculation sub-module 343 is used to calculate the product of the detected value of the ambient light intensity and the adjustment ratio of the ambient light intensity;

第二处理子模块344,用于将计算得到的乘积确定为环境光强度值。The second processing sub-module 344 is configured to determine the calculated product as an ambient light intensity value.

由上可知,本申请实施例提供的环境光强度检测装置300,通过第一获取模块31获取环境光强度检测值;第二获取模块32获取显示屏的色温信息;第三获取模块33根据色温信息获取环境光强度调整参数;调整模块34根据环境光强度调整参数对环境光强度检测值进行调整,以得到环境光强度值。该方案根据显示屏的色温信息对环境光传感器的检测值进行调整,以减小显示屏显示信息所产生的光对电子设备检测环境光强度的影响,提高检测环境光强度的准确性。As can be seen from the above, the ambient light intensity detection device 300 provided in the embodiment of the present application obtains the ambient light intensity detection value through the first acquisition module 31; the second acquisition module 32 acquires the color temperature information of the display screen; Acquire the ambient light intensity adjustment parameter; the adjustment module 34 adjusts the ambient light intensity detection value according to the ambient light intensity adjustment parameter to obtain the ambient light intensity value. The scheme adjusts the detection value of the ambient light sensor according to the color temperature information of the display screen, so as to reduce the influence of the light generated by the information displayed on the display screen on the detection of the ambient light intensity by the electronic equipment, and improve the accuracy of detection of the 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;

获取当前显示屏的色温信息;Obtain the color temperature information of the current display;

根据色温信息获取对应的环境光强度调整参数;Obtain the corresponding ambient light intensity adjustment parameters according to the color temperature information;

根据环境光强度调整参数对环境光强度检测值进行调整,以得到环境光强度值。The ambient light intensity detection value is adjusted according to the ambient light intensity adjustment parameter to obtain the ambient light intensity value.

在一些实施例中,色温信息包括色温值;根据色温信息获取对应的环境光强度调整参数时,处理器401执行以下步骤:In some embodiments, the color temperature information includes a color temperature value; when obtaining a corresponding ambient light intensity adjustment parameter according to the color temperature information, the processor 401 performs the following steps:

确定色温值所处的目标色温区间;Determine the target color temperature interval where the color temperature value is located;

获取与色温区间对应的环境光强度调整参数。Get the ambient light intensity adjustment parameters corresponding to the color temperature range.

在一些实施例中,获取与色温区间对应的环境光强度调整参数时,处理器401进一步用于执行以下步骤:In some embodiments, when acquiring the ambient light intensity adjustment parameters corresponding to the color temperature range, the processor 401 is further configured to perform the following steps:

根据色温区间以及预设映射关系集合获取对应的环境光强度调整参数,该预设映射关系集合包括:样本色温区间、样本环境光强度调整参数以及样本色温区间与样本环境光强度调整参数之间的映射关系。Obtain the corresponding ambient light intensity adjustment parameters according to the color temperature interval and the preset mapping relation set, the preset mapping relation set includes: the sample color temperature interval, the sample ambient light intensity adjustment parameter, and the relationship between the sample color temperature interval and the sample ambient light intensity adjustment parameter Mapping relations.

在一些实施例中,环境光强度调整参数包括环境光强度调整值;在根据环境光强度调整参数对环境光强度检测值进行调整,以得到环境光强度值时,处理器401可用于执行以下步骤:In some embodiments, the ambient light intensity adjustment parameter includes an ambient light intensity adjustment value; when adjusting the ambient light intensity detection value according to the ambient light intensity adjustment parameter 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 ambient light intensity adjustment value;

将计算得到的差值确定为环境光强度值。The calculated difference is determined as an ambient light intensity value.

在一些实施例中,环境光强度调整参数包括环境光强度调整比例;在根据环境光强度调整参数对环境光强度检测值进行调整,以得到环境光强度值时,处理器401可用于执行以下步骤:In some embodiments, the ambient light intensity adjustment parameter includes an ambient light intensity adjustment ratio; when adjusting the ambient light intensity detection value according to the ambient light intensity adjustment parameter to obtain the ambient light intensity value, the processor 401 can be configured to perform the following steps :

计算环境光强度检测值与环境光强度调整比例的乘积;Calculate the product of the ambient light intensity detection value and the ambient light intensity adjustment ratio;

将计算得到的乘积确定为环境光强度值。The calculated product is determined as 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.

由上可知,本申请实施例提供了一种电子设备,所述电子设备执行以下步骤:获取环境光强度检测值,获取当前显示屏的色温信息,根据色温信息获取对应的环境光强度调整参数,并根据环境光强度调整参数对环境光强度检测值进行调整,以得到环境光强度值。该方案中,电子设备可以根据显示屏的色温信息对环境光传感器的检测值进行调整,以减小显示屏显示信息所产生的光对电子设备检测环境光强度的影响,提高检测环境光强度的准确性。It can be seen from the above that the embodiment of the present application provides an electronic device, and the electronic device performs the following steps: obtain the detection value of the ambient light intensity, obtain the color temperature information of the current display screen, and obtain the corresponding ambient light intensity adjustment parameter according to the color temperature information, And adjust the ambient light intensity detection value according to the ambient light intensity adjustment parameter to obtain the ambient light intensity value. In this solution, the electronic device can adjust the detection value of the ambient light sensor according to the color temperature information of the display screen, so as to reduce the influence of the light generated by the display information on the electronic device to detect the ambient light intensity, and improve the detection accuracy of the ambient light intensity. accuracy.

本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,所述计算机执行上述任一实施例所述的环境光强度检测方法。An embodiment of the present application further provides a storage medium, in which a computer program is stored, and 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)

CN201711176952.9A2017-11-222017-11-22 Ambient light intensity detection method, device, storage medium and electronic equipmentPendingCN107945770A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201711176952.9ACN107945770A (en)2017-11-222017-11-22 Ambient light intensity detection method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201711176952.9ACN107945770A (en)2017-11-222017-11-22 Ambient light intensity detection method, device, storage medium and electronic equipment

Publications (1)

Publication NumberPublication Date
CN107945770Atrue CN107945770A (en)2018-04-20

Family

ID=61929907

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201711176952.9APendingCN107945770A (en)2017-11-222017-11-22 Ambient light intensity detection method, device, storage medium and electronic equipment

Country Status (1)

CountryLink
CN (1)CN107945770A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108917921A (en)*2018-06-152018-11-30江西合力泰科技有限公司A kind of ambient light intensity detection method
CN109067967A (en)*2018-06-212018-12-21维沃移动通信有限公司 A method for synchronous compensation of ambient light and terminal equipment
CN109801603A (en)*2019-03-122019-05-24徐丽萍The method for adjusting liquid crystal display colour temperature according to the illumination of external ambient light
CN110264978A (en)*2019-06-282019-09-20联想(北京)有限公司Luminous intensity modification method, luminous intensity correcting device and electronic equipment
CN111083256A (en)*2019-12-092020-04-28Oppo(重庆)智能科技有限公司Display screen assembly and electronic device
CN111221481A (en)*2018-11-232020-06-02珠海金山办公软件有限公司 A display processing method, device, computer storage medium and terminal
CN113804290A (en)*2021-05-172021-12-17荣耀终端有限公司Ambient light detection method, electronic device and chip system
WO2023201722A1 (en)*2022-04-222023-10-26深圳市汇顶科技股份有限公司Ambient light intensity measurement method and electronic device
CN117079618A (en)*2023-10-182023-11-17深圳可视科技有限公司LED liquid crystal display screen brightness correction method and system
CN119666163A (en)*2025-01-202025-03-21武汉天马微电子有限公司上海分公司 Color temperature detection method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1513166A (en)*2001-05-292004-07-14�´�ӡ�ռ���Display system for soft proofing of colour images with compensation of illuminationconditions, especially also with compensation of display emission deviation
CN201805517U (en)*2010-09-162011-04-20康佳集团股份有限公司Automatic color temperature regulating system and television comprising the same
KR20120119373A (en)*2011-04-212012-10-31광전자 주식회사Smart light sensor able to distinguish ambient light source and color temperature
CN103940505A (en)*2013-01-232014-07-23华为终端有限公司Ambient light sensor, adjusting method thereof and electronic product
CN104318912A (en)*2014-10-232015-01-28赵辉Method and device for detecting environmental light brightness
EP3419008A2 (en)*2017-06-232018-12-26Samsung Electronics Co., Ltd.Display apparatus and displaying method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1513166A (en)*2001-05-292004-07-14�´�ӡ�ռ���Display system for soft proofing of colour images with compensation of illuminationconditions, especially also with compensation of display emission deviation
CN201805517U (en)*2010-09-162011-04-20康佳集团股份有限公司Automatic color temperature regulating system and television comprising the same
KR20120119373A (en)*2011-04-212012-10-31광전자 주식회사Smart light sensor able to distinguish ambient light source and color temperature
CN103940505A (en)*2013-01-232014-07-23华为终端有限公司Ambient light sensor, adjusting method thereof and electronic product
CN104318912A (en)*2014-10-232015-01-28赵辉Method and device for detecting environmental light brightness
EP3419008A2 (en)*2017-06-232018-12-26Samsung Electronics Co., Ltd.Display apparatus and displaying method thereof

Cited By (15)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108917921A (en)*2018-06-152018-11-30江西合力泰科技有限公司A kind of ambient light intensity detection method
CN109067967A (en)*2018-06-212018-12-21维沃移动通信有限公司 A method for synchronous compensation of ambient light and terminal equipment
CN111221481A (en)*2018-11-232020-06-02珠海金山办公软件有限公司 A display processing method, device, computer storage medium and terminal
CN109801603A (en)*2019-03-122019-05-24徐丽萍The method for adjusting liquid crystal display colour temperature according to the illumination of external ambient light
CN110264978B (en)*2019-06-282021-04-13联想(北京)有限公司Light intensity correction method, light intensity correction device, and electronic apparatus
CN110264978A (en)*2019-06-282019-09-20联想(北京)有限公司Luminous intensity modification method, luminous intensity correcting device and electronic equipment
CN111083256A (en)*2019-12-092020-04-28Oppo(重庆)智能科技有限公司Display screen assembly and electronic device
CN113804290A (en)*2021-05-172021-12-17荣耀终端有限公司Ambient light detection method, electronic device and chip system
CN115597706A (en)*2021-05-172023-01-13荣耀终端有限公司(Cn)Ambient light detection method, electronic device and chip system
CN115597706B (en)*2021-05-172023-10-20荣耀终端有限公司 An ambient light detection method, electronic device and chip system
WO2023201722A1 (en)*2022-04-222023-10-26深圳市汇顶科技股份有限公司Ambient light intensity measurement method and electronic device
US12085441B2 (en)2022-04-222024-09-10Shenzhen GOODIX Technology Co., Ltd.Method for detecting intensity of ambient light, and electronic device
CN117079618A (en)*2023-10-182023-11-17深圳可视科技有限公司LED liquid crystal display screen brightness correction method and system
CN117079618B (en)*2023-10-182024-01-05深圳可视科技有限公司LED liquid crystal display screen brightness correction method and system
CN119666163A (en)*2025-01-202025-03-21武汉天马微电子有限公司上海分公司 Color temperature detection method, device, equipment and storage medium

Similar Documents

PublicationPublication DateTitle
CN107945770A (en) Ambient light intensity detection method, device, storage medium and electronic equipment
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
US11991808B2 (en)Electronic device with ambient light flicker sensor
KR101637125B1 (en)Ambient light adaptive displays
US9823117B2 (en)Ambient light detection and data processing
CN111936833B (en)Calibration luminance estimation using ambient color sensor
CN104751756B (en)Conditioning optics, method and the display device of display panel
US10497297B2 (en)Electronic device with ambient-adaptive display
CN108021161A (en)Ambient light intensity detection method and device, storage medium and electronic equipment
US9508318B2 (en)Dynamic color profile management for electronic devices
TW201610958A (en)Ambient light adaptive displays with paper-like appearance
CN111947775B (en)Device detection method and device, storage medium and electronic device
WO2015047288A1 (en)Using wavelength information for an ambient light environment to adjust display brightness and content
US20180060013A1 (en)Display apparatus, multi-display system, and method for controlling the display apparatus
WO2021021834A1 (en)Control design for perceptually uniform color-tuning
WO2018194318A1 (en)Electronic apparatus for correcting color temperature of captured image using reference color information corresponding to external object, and method for controlling electronic apparatus
US11523482B2 (en)Control design for perceptually uniform color tuning
WO2022183888A1 (en)Screen light leakage amount determination method and apparatus, screen brightness adjustment method and apparatus, and electronic device
CN104751823B (en)Characterizing method applicable to display screens of mobile terminals
CN115985901A (en)Light-emitting substrate, optical compensation method thereof and related equipment
CN113218503B (en) Determination method, determination system, electronic equipment and storage medium of ambient light intensity
US12108508B2 (en)Ambient lighting creation based on a target color temperature range
CN119600907A (en) Screen color temperature calibration method, device, electronic device and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information

Address after:523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after:OPPO Guangdong Mobile Communications Co., Ltd.

Address before:523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before:Guangdong OPPO Mobile Communications Co., Ltd.

CB02Change of applicant information
RJ01Rejection of invention patent application after publication

Application publication date:20180420

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp