CN107957293A - Ambient light intensity detection method and device, storage medium and electronic equipment - Google Patents
Ambient light intensity detection method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN107957293A CN107957293A CN201711175960.1A CN201711175960A CN107957293A CN 107957293 A CN107957293 A CN 107957293A CN 201711175960 A CN201711175960 A CN 201711175960A CN 107957293 A CN107957293 A CN 107957293A
- Authority
- CN
- China
- Prior art keywords
- screen
- light intensity
- intensity
- luminous intensity
- ambient light
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
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
本申请实施例公开了一种环境光强度检测方法、装置、存储介质及电子设备,所述方法中,在电子设备以第一屏幕发光强度显示第一画面帧和以第二屏幕发光强度显示第二画面帧时,对应地获取第一检测光强度和第二检测光强度,其中显示完第一画面帧按照预定比例调节第一屏幕发光强度以得到第二屏幕发光强度,然后根据第一检测光强度、第二检测光强度和预定比例计算得到环境光强度,通过上述方式,本申请有利于实现全面屏设计。
An embodiment of the present application discloses an ambient light intensity detection method, device, storage medium and electronic device. In the method, when the electronic device displays a first picture frame with a first screen luminous intensity and displays a second picture frame with a second screen luminous intensity, a first detection light intensity and a second detection light intensity are correspondingly obtained, wherein after the first picture frame is displayed, the first screen luminous intensity is adjusted according to a predetermined ratio to obtain the second screen luminous intensity, and then the ambient light intensity is calculated based on the first detection light intensity, the second detection light intensity and the predetermined ratio. In the above manner, the present application is conducive to realizing a full-screen design.
Description
技术领域technical field
本申请涉及电子技术领域,具体涉及一种环境光强度检测方法、装置、存储介质及电子设备。The present application relates to the field of electronic technology, and in particular to an ambient light intensity detection method, device, storage medium and electronic equipment.
背景技术Background technique
随着技术的发展,手机、平板电脑等电子设备的功能越来越强大,例如,可以通过监测环境光的强弱而自动调节显示屏背光的亮度,或者控制按键灯的点亮和关闭,从而实现显示屏亮度的自动调节。现有大部分的电子设备通常是在屏幕前端的盖板上开孔,以使得光感传感器通过这些孔进行光线检测。With the development of technology, the functions of electronic devices such as mobile phones and tablet computers are becoming more and more powerful. Realize automatic adjustment of display brightness. Most of the existing electronic devices usually have holes on the cover plate at the front of the screen, so that the light sensor can detect light through these holes.
然而,由于需要在屏幕前端开孔设计,不仅影响屏幕的美观效果,而且需要预留空间开孔,需要占用一定的屏幕空间,无法实现显示屏的全面屏设计。However, due to the need to design a hole at the front of the screen, it not only affects the aesthetic effect of the screen, but also needs to reserve space for the hole to occupy a certain amount of screen space, making it impossible to achieve a full-screen design of the display.
发明内容Contents of the invention
本申请实施例提供一种环境光强度检测方法、装置、存储介质及电子设备,有利于实现电子设备的全面屏设计,使得屏幕更美观。Embodiments of the present application provide an ambient light intensity detection method, device, storage medium, and electronic equipment, which are beneficial to realize a full-screen design of the electronic equipment and make the screen more beautiful.
本申请实施例提供一种环境光强度检测方法,包括:An embodiment of the present application provides a method for detecting ambient light intensity, including:
在电子设备以第一屏幕发光强度显示第一画面帧时,获取光感传感器检测到的第一检测光强度,所述光感传感器位于电子设备的屏幕的显示区域下方;When the electronic device displays the first picture frame with the first screen luminous intensity, the first detection light intensity detected by the light sensor is acquired, and the light sensor is located below the display area of the screen of the electronic device;
按照预定比例调节第一屏幕发光强度,得到第二屏幕发光强度;adjusting the luminous intensity of the first screen according to a predetermined ratio to obtain the luminous intensity of the second screen;
在电子设备以第二屏幕发光强度显示第二画面帧时,获取光感传感器检测到的第二检测光强度;When the electronic device displays the second picture frame with the second screen luminous intensity, acquire the second detected light intensity detected by the light sensor;
根据所述第一检测光强度、第二检测光强度以及所述预定比例计算环境光强度。Calculate the ambient light intensity according to the first detected light intensity, the second detected light intensity and the predetermined ratio.
本申请实施例还提供一种环境光强度检测装置,包括:The embodiment of the present application also provides an ambient light intensity detection device, including:
第一获取模块,用于在电子设备以第一屏幕发光强度显示第一画面帧时,获取光感传感器检测到的第一检测光强度,所述光感传感器位于电子设备的屏幕的显示区域下方;The first acquisition module is configured to acquire the first detection light intensity detected by the light sensor when the electronic device displays the first picture frame with the first screen luminous intensity, and the light sensor is located below the display area of the screen of the electronic device ;
调节模块,用于按照预定比例调节第一屏幕发光强度,得到第二屏幕发光强度;An adjustment module, configured to adjust the luminous intensity of the first screen according to a predetermined ratio to obtain the luminous intensity of the second screen;
第二获取模块,用于在电子设备以第二屏幕发光强度显示第二画面帧时,获取光感传感器检测到的第二检测光强度;The second acquisition module is used to acquire the second detection light intensity detected by the light sensor when the electronic device displays the second picture frame with the second screen luminous intensity;
计算模块,用于根据所述第一检测光强度、第二检测光强度以及所述预定比例计算环境光强度。A calculation module, configured to calculate the ambient light intensity according to the first detected light intensity, the second detected light intensity and the predetermined ratio.
本申请实施例还提供一种存储介质,所述存储介质存储有多条指令,所述指令适于处理器进行加载,以执行上述所述的环境光强度检测方法中的步骤。The embodiment of the present application further provides a storage medium, the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the above-mentioned method for detecting ambient light intensity.
本申请实施例还提供一种电子设备,包括处理器和存储器,所述存储器用于存储指令和数据,所述指令适于处理器进行加载,以执行上述所述的环境光强度检测方法中的步骤。The embodiment of the present application also provides an electronic device, including a processor and a memory, and the memory is used to store instructions and data, and the instructions are suitable for being loaded by the processor to perform the above-mentioned ambient light intensity detection method. step.
本申请的环境光强度检测方法中,光感传感器设置在电子设备的屏幕的显示区域下方,因此能够采集到从屏幕显示区域射入的环境光线,进而可以对环境光强度进行检测,其中在电子设备以第一屏幕发光强度显示第一画面帧时,获取光感传感器检测到的第一检测光强度,然后按照预定比例调节第一屏幕发光强度,得到第二屏幕发光强度,从而在电子设备以第二屏幕发光强度显示第二画面时,获取光感传感器检测到的第二检测光强度,之后根据第一检测光强度、第二检测光强度以及预定比例计算环境光强度,因此通过本方案,在将光感传感器设置在显示区域下方时能够实现对环境光强度的检测,由此不需要在屏幕前端开设用于光感传感器接收环境光线的孔洞,即不需要在屏幕前端做光感传感器的开孔设计,从而有利于电子设备的全面屏设计,使得屏幕更美观,显示效果更佳。In the ambient light intensity detection method of the present application, the light sensor is arranged under the display area of the screen of the electronic device, so it can collect the ambient light incident from the screen display area, and then can detect the ambient light intensity. When the device displays the first picture frame with the luminous intensity of the first screen, it acquires the first detected light intensity detected by the light sensor, and then adjusts the luminous intensity of the first screen according to a predetermined ratio to obtain the luminous intensity of the second screen, so that the electronic device can When the luminous intensity of the second screen displays the second picture, the second detected light intensity detected by the light sensor is obtained, and then the ambient light intensity is calculated according to the first detected light intensity, the second detected light intensity and a predetermined ratio. Therefore, through this scheme, When the light sensor is placed under the display area, the detection of ambient light intensity can be realized, so there is no need to open a hole for the light sensor to receive ambient light at the front of the screen, that is, it is not necessary to make a light sensor at the front of the screen. The opening design is conducive to the full screen design of electronic equipment, making the screen more beautiful and the display effect better.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本申请实施例提供的环境光强度检测方法的场景示意图。FIG. 1 is a schematic diagram of a scene of a method for detecting ambient light intensity 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 structural diagram of an ambient light intensity detection device provided by an embodiment of the present application.
图4是本申请实施例提供的电子设备的一结构示意图。FIG. 4 is a schematic structural diagram of an electronic device provided by an 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 scope of protection of this application.
在本申请的描述中,需要理解的是,术语“中心”、“纵向”、“横向”、“长度”、“宽度”、“厚度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”、“内”、“外”、“顺时针”、“逆时针”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本申请的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In the description of the present application, it should be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", " Orientation indicated by rear, left, right, vertical, horizontal, top, bottom, inside, outside, clockwise, counterclockwise, etc. The positional relationship is based on the orientation or positional relationship shown in the drawings, which is only for the convenience of describing the application and simplifying the description, and does not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, Therefore, it should not be construed as limiting the application. In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of said features. In the description of the present application, "plurality" means two or more, unless otherwise specifically defined.
在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接或可以相互通讯;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。In the description of this application, it should be noted that unless otherwise specified and limited, the terms "installation", "connection", and "connection" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection. Connected, or integrally connected; it can be mechanically connected, or electrically connected, or can communicate with each other; it can be directly connected, or indirectly connected through an intermediary, and it can be the internal communication of two components or the interaction of two components relation. Those of ordinary skill in the art can understand the specific meanings of the above terms in this application according to specific situations.
在本申请中,除非另有明确的规定和限定,第一特征在第二特征之“上”或之“下”可以包括第一和第二特征直接接触,也可以包括第一和第二特征不是直接接触而是通过它们之间的另外的特征接触。而且,第一特征在第二特征“之上”、“上方”和“上面”包括第一特征在第二特征正上方和斜上方,或仅仅表示第一特征水平高度高于第二特征。第一特征在第二特征“之下”、“下方”和“下面”包括第一特征在第二特征正下方和斜下方,或仅仅表示第一特征水平高度小于第二特征。In this application, unless otherwise expressly specified and limited, a first feature being "on" or "under" a second feature may include direct contact between the first and second features, and may also include the first and second features Not in direct contact but through another characteristic contact between them. Moreover, "above", "above" and "above" the first feature on the second feature include that the first feature is directly above and obliquely above the second feature, or simply means that the first feature is horizontally higher than the second feature. "Below", "beneath" and "under" the first feature to the second feature include that the first feature is directly below and obliquely below the second feature, or simply means that the first feature has a lower level than the second feature.
下文的公开提供了许多不同的实施方式或例子用来实现本申请的不同结构。为了简化本申请的公开,下文中对特定例子的部件和设置进行描述。当然,它们仅仅为示例,并且目的不在于限制本申请。此外,本申请可以在不同例子中重复参考数字和/或参考字母,这种重复是为了简化和清楚的目的,其本身不指示所讨论各种实施方式和/或设置之间的关系。此外,本申请提供了的各种特定的工艺和材料的例子,但是本领域普通技术人员可以意识到其他工艺的应用和/或其他材料的使用。The following disclosure provides many different implementations or examples for implementing different structures of the present application. To simplify the disclosure of the present application, components and arrangements of specific examples are described below. Of course, they are examples only and are not intended to limit the application. Furthermore, the present application may repeat reference numerals and/or reference letters in various instances, such repetition is for simplicity and clarity and does not in itself indicate a relationship between the various embodiments and/or arrangements discussed. In addition, various specific process and material examples are provided herein, but one of ordinary skill in the art may recognize the use of other processes and/or the use of other materials.
本申请实施例提供一种环境光强度检测方法、装置、存储介质以及电子设备。Embodiments of the present application provide a method, device, storage medium, and electronic equipment for detecting ambient light intensity.
其中,环境光强度检测装置具体可以集成在智能手机、平板电脑、笔记本电脑或个人计算机等电子设备中。该电子设备例如可以是全面屏,即电子设备的显示面整面都是显示区域,都能够进行画面显示,屏幕前端不设置有光感传感器的孔洞。其中,该电子设备包括用于检测光强度的光感传感器,该光感传感器可以设置在屏幕的显示区域的下方,由于显示屏为采用玻璃基板制作形成,因此环境光线可以穿过显示面板射至光感传感器处,从而使得光感传感器能够采集到环境光线,进而可以检测环境光强度。Wherein, the ambient light intensity detection device may specifically be integrated in electronic equipment such as a smart phone, a tablet computer, a notebook computer or a personal computer. The electronic device may be, for example, a full screen, that is, the entire display surface of the electronic device is a display area capable of displaying images, and no hole for a light sensor is provided at the front of the screen. Wherein, the electronic device includes a light sensor for detecting light intensity, and the light sensor can be arranged under the display area of the screen. Since the display screen is made of a glass substrate, ambient light can pass through the display panel to the The light sensor is placed at the light sensor, so that the light sensor can collect ambient light, and then can detect the ambient light intensity.
例如,如图1所示,环境光强度检测装置可以用于在电子设备以第一屏幕发光强度显示第一画面时,获取光感传感器检测到的第一检测光强度,该光感传感器位于电子设备的屏幕的显示区域下方,之后按照预定比例调节第一屏幕发光强度,得到第二屏幕发光强度,在电子设备以第二屏幕发光强度显示第二画面帧时,获取光感传感器检测到的第二检测光强度,从而根据第一检测光强度、第二检测光强度以及预定比例计算出环境光强度,因此通过本申请实施例,在将光感传感器设置在显示区域下方时能够实现对环境光强度的检测,由此不需要在屏幕前端开设用于光感传感器接收环境光线的孔洞,即不需要在屏幕前端做光感传感器的开孔设计,从而有利于电子设备的全面屏设计,使得屏幕更美观,显示效果更佳。For example, as shown in Figure 1, the ambient light intensity detection device can be used to obtain the first detected light intensity detected by the light sensor when the electronic device displays the first picture with the first screen luminous intensity. Below the display area of the screen of the device, adjust the luminous intensity of the first screen according to a predetermined ratio to obtain the luminous intensity of the second screen. When the electronic device displays the second picture frame with the luminous intensity of the second screen, obtain the first 2. Detect light intensity, so as to calculate the ambient light intensity according to the first detected light intensity, the second detected light intensity, and the predetermined ratio. Therefore, through the embodiment of the present application, when the light sensor is arranged under the display area, the ambient light can be realized. Intensity detection, so there is no need to open a hole in the front of the screen for the light sensor to receive ambient light, that is, there is no need to make a hole design for the light sensor in the front of the screen, which is conducive to the full screen design of electronic equipment, making the screen More beautiful, better display.
以下将分别做详细介绍。The following will do a detailed introduction respectively.
参阅图2,图2是本申请实施例提供的环境光强度检测方法一流程示意图。如图所示,环境光强度检测方法具体可以包括以下步骤:Referring to FIG. 2 , FIG. 2 is a schematic flowchart of a method for detecting ambient light intensity provided by an embodiment of the present application. As shown in the figure, the ambient light intensity detection method may specifically include the following steps:
201、在电子设备以第一屏幕发光强度显示第一画面帧时,获取光感传感器检测到的第一检测光强度,光感传感器位于电子设备的屏幕的显示区域下方。201. When the electronic device displays a first picture frame with a first screen luminous intensity, acquire a first detected light intensity detected by a light sensor, where the light sensor is located below a display area of a screen of the electronic device.
光感传感器例如为环境光传感器,可以采用光电晶体管、光敏电阻或光电二极管等器件实现。The light sensor is, for example, an ambient light sensor, which can be implemented by using devices such as phototransistors, photoresistors, or photodiodes.
本申请实施例中,电子设备的显示屏例如可以OLED显示屏,或者也可以是液晶显示屏,对此不做限定。光感传感器设置在屏幕的显示区域下方,即光感传感器的位置与屏幕的显示区域相对应,比如可以设置在显示屏的玻璃基板上,或者也可以设置在显示屏的背面一侧。环境光线从显示屏的显示面入射,由于显示屏采用玻璃基板制成,因此环境光线可以穿过显示屏入射至光感传感器所在的位置,从而光感传感器能够采集到环境光线。In the embodiment of the present application, the display screen of the electronic device may be, for example, an OLED display screen, or may also be a liquid crystal display screen, which is not limited thereto. The light sensor is arranged under the display area of the screen, that is, the position of the light sensor corresponds to the display area of the screen, for example, it can be arranged on the glass substrate of the display screen, or it can also be arranged on the back side of the display screen. Ambient light is incident from the display surface of the display screen. Since the display screen is made of a glass substrate, the ambient light can pass through the display screen and enter the position where the light sensor is located, so that the light sensor can collect the ambient light.
其中,屏幕发光强度是指电子设备的屏幕的亮度,即电子设备的屏幕的光源产生的光线强度。本实施例中,假设电子设备显示第一画面帧时的屏幕的亮度为第一屏幕发光强度,此时光感传感器检测到的第一检测光强度为环境光强度和屏幕的亮度之和,即环境光强度和第一屏幕发光强度之和,此时环境光强度和第一屏幕发光强度均为未知数。Wherein, the luminous intensity of the screen refers to the brightness of the screen of the electronic device, that is, the intensity of light generated by the light source of the screen of the electronic device. In this embodiment, it is assumed that the brightness of the screen when the electronic device displays the first picture frame is the first screen luminous intensity. At this time, the first detected light intensity detected by the light sensor is the sum of the ambient light intensity and the brightness of the screen, that is, the environment The sum of the light intensity and the luminous intensity of the first screen. At this time, both the ambient light intensity and the luminous intensity of the first screen are unknown.
202、按照预定比例调节第一屏幕发光强度,得到第二屏幕发光强度。202. Adjust the luminous intensity of the first screen according to a predetermined ratio to obtain the luminous intensity of the second screen.
在显示完第一画面帧后,根据预定比例调节第一屏幕发光强度,即在第一屏幕发光强度的基础上,根据预定比例调节屏幕的亮度。其中,预定比例是指占第一屏幕发光强度的比例,例如可以是5%、10%或20%等,具体可以根据实际需要进行选取。其中,可以按照预定比例增加或者减小第一屏幕发光强度,也就是使得第一屏幕发光强度减小预定比例或者增加预定比例。以10%的预定比例为例,可以按照10%的比例减小第一屏幕发光强度,也就是使第一屏幕发光强度减小10%,减小10%比例之后的第一屏幕发光强度即为第二屏幕发光强度,如设定第一屏幕发光强度为F1,则第二屏幕发光强度为(1-10%)F1,即0.9F1。After the first picture frame is displayed, the luminous intensity of the first screen is adjusted according to a predetermined ratio, that is, the brightness of the screen is adjusted according to a predetermined ratio based on the luminous intensity of the first screen. Wherein, the predetermined ratio refers to the ratio to the luminous intensity of the first screen, for example, it may be 5%, 10% or 20%, which may be selected according to actual needs. Wherein, the luminous intensity of the first screen may be increased or decreased according to a predetermined ratio, that is, the luminous intensity of the first screen may be decreased or increased by a predetermined ratio. Taking the predetermined ratio of 10% as an example, the luminous intensity of the first screen can be reduced by 10%, that is, the luminous intensity of the first screen is reduced by 10%, and the luminous intensity of the first screen after the ratio of 10% is reduced is The luminous intensity of the second screen, if the luminous intensity of the first screen is set to F1, then the luminous intensity of the second screen is (1-10%) F1, ie 0.9F1.
203、在电子设备以第二屏幕发光强度显示第二画面帧时,获取光感传感器检测到的第二检测光强度。203. Acquire a second detected light intensity detected by the light sensor when the electronic device displays a second picture frame with a second screen light intensity.
在调节第一屏幕发光强度以得到第二屏幕发光强度后,使电子设备以第二屏幕发光强度显示第二画面帧,此时光感传感器检测到的第二检测光强度为环境光强度和第二屏幕发光强度之和。After adjusting the luminous intensity of the first screen to obtain the luminous intensity of the second screen, make the electronic device display the second picture frame with the luminous intensity of the second screen. At this time, the second detected light intensity detected by the light sensor is the ambient light intensity and the second The sum of screen luminous intensities.
204、根据第一检测光强度、第二检测光强度以及预定比例计算环境光强度。204. Calculate the ambient light intensity according to the first detected light intensity, the second detected light intensity, and a predetermined ratio.
其中,在较短的时间内电子设备所处的环境通常不会改变,环境光线也就不会发生变化,本实施例中,电子设备在显示第一画面帧时的环境光强度和显示第二画面帧时的环境光强度可以认为是相同的。在一种实施例中,为了提高检测的准确性,第一画面帧和第二画面帧为连续画面帧,即第一画面帧和第二画面帧为相邻的两个画面帧,第一画面帧显示完之后紧接着显示第二画面帧。因此第一画面帧和第二画面帧之间的间隔时间较小,该间隔时间一般小于20ms,因此显示第一画面帧时的环境光强度和显示第二画面帧时的环境强度可以认为是相同的。Wherein, the environment where the electronic device is located usually does not change within a relatively short period of time, and the ambient light does not change. In this embodiment, the ambient light intensity of the electronic device when displaying the first picture frame The ambient light intensity at frame time can be considered to be the same. In one embodiment, in order to improve the accuracy of detection, the first picture frame and the second picture frame are continuous picture frames, that is, the first picture frame and the second picture frame are two adjacent picture frames, and the first picture frame The second picture frame is displayed immediately after the frame is displayed. Therefore, the interval between the first picture frame and the second picture frame is small, and the interval is generally less than 20ms, so the ambient light intensity when displaying the first picture frame and the ambient light intensity when displaying the second picture frame can be considered to be the same of.
本实施例中,按照以下公式计算环境光强度:In this embodiment, the ambient light intensity is calculated according to the following formula:
T1=E+F1T1=E+F1
T2=E+(1-k)*F1T2=E+(1-k)*F1
其中,T1表示第一检测光强度,T2表示第二检测光强度,E表示环境光强度,F1表示第一屏幕发光强度,k为预定比例。T1和T2为光感传感器的检测数据,而预定比例k可以根据实际需要进行设定,因此通过解上述方程组,可以得到环境光强度E的值,进而计算出环境光强度E。例如,以k为10%为例,代入上述公式,得到以下方程组:Wherein, T1 represents the first detected light intensity, T2 represents the second detected light intensity, E represents the ambient light intensity, F1 represents the first screen luminous intensity, and k is a predetermined ratio. T1 and T2 are the detection data of the light sensor, and the predetermined ratio k can be set according to actual needs, so by solving the above equations, the value of the ambient light intensity E can be obtained, and then the ambient light intensity E can be calculated. For example, taking k as 10% as an example, substituting the above formula, the following equations are obtained:
T1=E+F1T1=E+F1
T2=E+(1-10%)*F1=E+0.9F1T2=E+(1-10%)*F1=E+0.9F1
解该方程组,得到E=10T2-9T1。Solving this system of equations yields E=10T2-9T1.
所得到的环境光强度E为排除了屏幕亮度的影响,与实际的环境光强度较为吻合,可以作为实际的环境光强度。The obtained ambient light intensity E is relatively consistent with the actual ambient light intensity because the influence of screen brightness is excluded, and can be used as the actual ambient light intensity.
通过本实施例,在电子设备以第一屏幕发光强度显示第一画面帧时,获取光感传感器检测到的第一检测光强度,然后按照预定比例调节第一屏幕发光强度,得到第二屏幕发光强度,从而在电子设备以第二屏幕发光强度显示第二画面时,获取光感传感器检测到的第二检测光强度,之后根据第一检测光强度、第二检测光强度以及预定比例计算环境光强度,由此在将光感传感器设置在显示区域下方时能够实现对环境光强度的检测,从而不需要在屏幕前端开设用于光感传感器接收环境光线的孔洞,即不需要在屏幕前端做光感传感器的开孔设计,有利于电子设备的全面屏设计,使得屏幕更美观,显示效果更佳,且能够提高环境光强度检测的准确性。Through this embodiment, when the electronic device displays the first picture frame with the first screen luminous intensity, the first detected light intensity detected by the light sensor is obtained, and then the first screen luminous intensity is adjusted according to a predetermined ratio to obtain the second screen luminous intensity Intensity, so that when the electronic device displays the second picture with the second screen luminous intensity, the second detected light intensity detected by the light sensor is obtained, and then the ambient light is calculated according to the first detected light intensity, the second detected light intensity and a predetermined ratio Intensity, so when the light sensor is placed under the display area, the detection of ambient light intensity can be realized, so that there is no need to open a hole for the light sensor to receive ambient light at the front of the screen, that is, it is not necessary to make a light at the front of the screen. The opening design of the sensing sensor is beneficial to the full-screen design of the electronic device, making the screen more beautiful, the display effect better, and the accuracy of ambient light intensity detection can be improved.
参阅图3,图3是本申请实施例提供的环境光强度检测装置一结构示意图。该检测装置可以集成在智能手机、平板电脑或笔记本电脑等电子设备中。如图所示,该检测装置包括第一获取模块301、调节模块302、第二获取模块303以及计算模块304。Referring to FIG. 3 , FIG. 3 is a schematic structural diagram of an ambient light intensity detection device provided in an embodiment of the present application. The detection device can be integrated in electronic devices such as smartphones, tablets or laptops. As shown in the figure, the detection device includes a first acquisition module 301 , an adjustment module 302 , a second acquisition module 303 and a calculation module 304 .
其中第一获取模块301用于在电子设备以第一屏幕发光强度显示第一画面帧时,获取光感传感器检测到的第一检测光强度,光感传感器位于电子设备的屏幕的显示区域下方。电子设备显示第一画面帧时的屏幕的亮度为第一屏幕发光强度,此时光感传感器检测到的第一检测光强度为环境光强度和屏幕的亮度之和,即环境光强度和第一屏幕发光强度之和。Wherein the first acquisition module 301 is configured to acquire the first detection light intensity detected by the light sensor when the electronic device displays the first picture frame with the first screen luminous intensity, and the light sensor is located below the display area of the screen of the electronic device. The brightness of the screen when the electronic device displays the first picture frame is the luminous intensity of the first screen. At this time, the first detected light intensity detected by the light sensor is the sum of the ambient light intensity and the brightness of the screen, that is, the ambient light intensity and the first screen brightness. Sum of luminous intensities.
调节模块302用于按照预定比例调节第一屏幕发光强度,得到第二屏幕发光强度。在显示完第一画面帧后,根据预定比例调节第一屏幕发光强度,即在第一屏幕发光强度的基础上,根据预定比例调节屏幕的亮度。其中,可以按照预定比例增加或者减小第一屏幕发光强度,也就是使得第一屏幕发光强度减小预定比例或者增加预定比例。The adjustment module 302 is configured to adjust the luminous intensity of the first screen according to a predetermined ratio to obtain the luminous intensity of the second screen. After the first picture frame is displayed, the luminous intensity of the first screen is adjusted according to a predetermined ratio, that is, the brightness of the screen is adjusted according to a predetermined ratio based on the luminous intensity of the first screen. Wherein, the luminous intensity of the first screen may be increased or decreased according to a predetermined ratio, that is, the luminous intensity of the first screen may be decreased or increased by a predetermined ratio.
第二获取模块303用于在电子设备以第二屏幕发光强度显示第二画面帧时,获取光感传感器检测到的第二检测光强度。在调节第一屏幕发光强度以得到第二屏幕发光强度后,使电子设备以第二屏幕发光强度显示第二画面帧,此时光感传感器检测到的第二检测光强度为环境光强度和第二屏幕发光强度之和。The second acquiring module 303 is configured to acquire the second detected light intensity detected by the light sensor when the electronic device displays the second picture frame with the second screen luminous intensity. After adjusting the luminous intensity of the first screen to obtain the luminous intensity of the second screen, make the electronic device display the second picture frame with the luminous intensity of the second screen. At this time, the second detected light intensity detected by the light sensor is the ambient light intensity and the second The sum of screen luminous intensities.
计算模块304用于根据第一检测光强度、第二检测光强度以及预定比例计算环境光强度。本实施例中,电子设备在显示第一画面帧时的环境光强度和显示第二画面帧时的环境光强度可以认为是相同的。在一种实施例中,为了提高检测的准确性,第一画面帧和第二画面帧为连续画面帧,即第一画面帧和第二画面帧为相邻的两个画面帧,第一画面帧显示完之后紧接着显示第二画面帧。因此第一画面帧和第二画面帧之间的间隔时间较小,该间隔时间一般小于20ms,因此显示第一画面帧时的环境光强度和显示第二画面帧时的环境强度可以认为是相同的。The calculating module 304 is used for calculating the ambient light intensity according to the first detected light intensity, the second detected light intensity and a predetermined ratio. In this embodiment, the ambient light intensity of the electronic device when displaying the first picture frame and the ambient light intensity when displaying the second picture frame may be considered to be the same. In one embodiment, in order to improve the accuracy of detection, the first picture frame and the second picture frame are continuous picture frames, that is, the first picture frame and the second picture frame are two adjacent picture frames, and the first picture frame The second picture frame is displayed immediately after the frame is displayed. Therefore, the interval between the first picture frame and the second picture frame is small, and the interval is generally less than 20ms, so the ambient light intensity when displaying the first picture frame and the ambient light intensity when displaying the second picture frame can be considered to be the same of.
本实施例中,计算模块304具体用于按照以下公式计算环境光强度:In this embodiment, the calculation module 304 is specifically configured to calculate the ambient light intensity according to the following formula:
T1=E+F1T1=E+F1
T2=E+(1-k)*F1T2=E+(1-k)*F1
其中,T1表示第一检测光强度,T2表示第二检测光强度,E表示环境光强度,F1表示第一屏幕发光强度,k为预定比例。T1和T2为光感传感器的检测数据,而预定比例k可以根据实际需要进行设定,因此通过解上述方程组,可以得到环境光强度E的值,进而计算出环境光强度E。例如,以k为10%为例,代入上述公式,得到以下方程组:Wherein, T1 represents the first detected light intensity, T2 represents the second detected light intensity, E represents the ambient light intensity, F1 represents the first screen luminous intensity, and k is a predetermined ratio. T1 and T2 are the detection data of the light sensor, and the predetermined ratio k can be set according to actual needs, so by solving the above equations, the value of the ambient light intensity E can be obtained, and then the ambient light intensity E can be calculated. For example, taking k as 10% as an example, substituting the above formula, the following equations are obtained:
T1=E+F1T1=E+F1
T2=E+(1-10%)*F1=E+0.9F1T2=E+(1-10%)*F1=E+0.9F1
解该方程组,得到E=10T2-9T1。Solving this system of equations yields E=10T2-9T1.
所得到的环境光强度E为排除了屏幕亮度的影响,与实际的环境光强度较为吻合,可以作为实际的环境光强度。The obtained ambient light intensity E is relatively consistent with the actual ambient light intensity because the influence of screen brightness is excluded, and can be used as the actual ambient light intensity.
通过本实施例,在电子设备以第一屏幕发光强度显示第一画面帧时,获取光感传感器检测到的第一检测光强度,然后按照预定比例调节第一屏幕发光强度,得到第二屏幕发光强度,从而在电子设备以第二屏幕发光强度显示第二画面时,获取光感传感器检测到的第二检测光强度,之后根据第一检测光强度、第二检测光强度以及预定比例计算环境光强度,由此在将光感传感器设置在显示区域下方时能够实现对环境光强度的检测,从而不需要在屏幕前端开设用于光感传感器接收环境光线的孔洞,即不需要在屏幕前端做光感传感器的开孔设计,有利于电子设备的全面屏设计,使得屏幕更美观,显示效果更佳,且能够提高环境光强度检测的准确性。Through this embodiment, when the electronic device displays the first picture frame with the first screen luminous intensity, the first detected light intensity detected by the light sensor is obtained, and then the first screen luminous intensity is adjusted according to a predetermined ratio to obtain the second screen luminous intensity Intensity, so that when the electronic device displays the second picture with the second screen luminous intensity, the second detected light intensity detected by the light sensor is obtained, and then the ambient light is calculated according to the first detected light intensity, the second detected light intensity and a predetermined ratio Intensity, so when the light sensor is placed under the display area, the detection of ambient light intensity can be realized, so that there is no need to open a hole for the light sensor to receive ambient light at the front of the screen, that is, it is not necessary to make a light at the front of the screen. The opening design of the sensing sensor is beneficial to the full-screen design of the electronic device, making the screen more beautiful, the display effect better, and the accuracy of ambient light intensity detection can be improved.
本申请实施例还提供一种存储介质,其存储有多条指令,该指令能够被处理器进行加载,以执行本申请实施例所提供的任一种电子设备的环境光检测方法方法中的步骤。The embodiment of the present application also provides a storage medium, which stores a plurality of instructions, and the instructions can be loaded by the processor to execute the steps in any method for detecting ambient light of an electronic device provided in the embodiment of the present application. .
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,RandomAccess Memory)、磁盘或光盘等。Those of ordinary skill 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 program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Read Only Memory (ROM, Read Only Memory), Random Access Memory (RAM, Random Access Memory), disk or CD, etc.
参阅图4,图4示出了本申请实施例提供的电子设备的具体结构框图,该电子设备400可以用于实施上述实施例中提供的环境光强度检测方法/装置。Referring to FIG. 4 , FIG. 4 shows a specific structural block diagram of an electronic device provided in an embodiment of the present application, and the electronic device 400 may be used to implement the method/apparatus for detecting ambient light intensity provided in the foregoing embodiments.
如图4所示,电子设备可以包括有一个或一个以上(图中仅示出一个)计算机可读存储介质的存储器401、光传感模块402、传输模块403、显示模块404、包括有一个或者一个以上(图中仅示出一个)处理核心的处理器405以及电源406等部件。本领域技术人员可以理解,图4中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:As shown in FIG. 4, the electronic device may include a memory 401 of one or more (only one is shown in the figure) computer-readable storage medium, a light sensing module 402, a transmission module 403, a display module 404, including one or More than one (only one is shown in the figure) processing core processor 405 and power supply 406 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 4 does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine some components, or arrange different components. in:
存储器401可用于存储软件程序以及模块,如上述实施例中指纹识别定位方法/装置对应的程序指令/模块,处理器405通过运行存储在存储器401内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现指纹识别定位的功能。存储器401可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器401可进一步包括相对于处理器405远程设置的存储器,这些远程存储器可以通过网络连接至电子设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 401 can be used to store software programs and modules, such as the program instructions/modules corresponding to the fingerprint recognition positioning method/device in the above-mentioned embodiments, and the processor 405 executes various functional applications by running the software programs and modules stored in the memory 401 And data processing, that is, to realize the function of fingerprint identification and positioning. The memory 401 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 401 may further include a memory that is remotely located relative to the processor 405, and these remote memories may be connected to the electronic device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
该光传感模块402,可以采集环境光线以检测环境光强度。The light sensing module 402 can collect ambient light to detect the intensity of ambient light.
电子设备通过传输模块403(例如Wi-Fi模块)访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图4示出了传输模块403,但是可以理解的是,其并不属于电子设备的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。The electronic device accesses streaming media and the like through the transmission module 403 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Although Fig. 4 shows the transmission module 403, it can be understood that it is not a necessary component of the electronic device, and can be completely omitted as required without changing the essence of the invention.
显示模块404可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示模块404可包括显示面板,可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,显示模块404还可包括一触摸面板,该触摸面板可覆盖显示面板,当触摸面板检测到在其上或附近的触摸操作后,传送给处理器405以确定触摸事件的类型,随后处理器405根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图4中,触摸面板与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。The display module 404 can be used to display information input by the user or provided to the user as well as various graphical user interfaces of the terminal. These graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. The display module 404 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode), and the like. Further, the display module 404 can also include a touch panel, which can cover the display panel, and when the touch panel detects a touch operation on or near it, it will be sent to the processor 405 to determine the type of the touch event, and then process The controller 405 provides corresponding visual output on the display panel according to the type of the touch event. Although in FIG. 4, the touch panel and the display panel are used as two independent components to realize the input and input functions, in some embodiments, the touch-sensitive surface and the display panel can be integrated to realize the input and output functions.
处理器405是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器401内的软件程序和/或模块,以及调用存储在存储器401内的数据,执行电子设备的各种功能和处理数据。可选的,处理器405可包括一个或多个处理核心;优选的,处理器405可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器405中。The processor 405 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing software programs and/or modules stored in the memory 401, and calling data stored in the memory 401 , perform various functions of electronic devices and process data. Optionally, the processor 405 may include one or more processing cores; preferably, the processor 405 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 405 .
电子设备还包括给各个部件供电的电源406(比如电池),优选的,电源可以通过电源管理系统与处理器405逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源406还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The electronic device also includes a power supply 406 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 405 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system. The power supply 406 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
尽管未示出,电子设备还可以蓝牙模块等。在此不再赘述。另外,电子设备还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行一个或者一个以上程序包含用于进行以下操作的指令:Although not shown, the electronic device may also be a Bluetooth module or the like. I won't repeat them here. In addition, the electronic device also includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors, including one or more programs for performing the following Operating instructions:
在电子设备以第一屏幕发光强度显示第一画面帧时,获取光感传感器检测到的第一检测光强度,光感传感器位于电子设备的屏幕的显示区域下方,然后按照预定比例调节第一屏幕发光强度,得到第二屏幕发光强度,在电子设备以第二屏幕发光强度显示第二画面帧时,获取光感传感器检测到的第二检测光强度,从而根据第一检测光强度、第二检测光强度以及预定比例计算环境光强度。When the electronic device displays the first picture frame with the luminous intensity of the first screen, the first detected light intensity detected by the light sensor is obtained, and the light sensor is located under the display area of the screen of the electronic device, and then the first screen is adjusted according to a predetermined ratio The luminous intensity is to obtain the luminous intensity of the second screen. When the electronic device displays the second picture frame with the luminous intensity of the second screen, the second detected light intensity detected by the light sensor is obtained, so that according to the first detected light intensity, the second detected The light intensity and the predetermined ratio calculate the ambient light intensity.
其中,可以将第一屏幕发光强度减小预定比例,得到第二屏幕发光强度。Wherein, the luminous intensity of the first screen may be reduced by a predetermined ratio to obtain the luminous intensity of the second screen.
或者也可以将第一屏幕发光强度增加预定比例,得到第二屏幕发光强度。Alternatively, the luminous intensity of the first screen may be increased by a predetermined ratio to obtain the luminous intensity of the second screen.
其中,预定比例为10%。Among them, the predetermined ratio is 10%.
其中,可以根据如下公式计算环境光强度:Among them, the ambient light intensity can be calculated according to the following formula:
T1=E+F1T1=E+F1
T2=E+(1-k)*F1T2=E+(1-k)*F1
其中,T1表示第一检测光强度,T2表示第二检测光强度,E表示环境光强度,F1表示第一屏幕发光强度,k为预定比例。Wherein, T1 represents the first detected light intensity, T2 represents the second detected light intensity, E represents the ambient light intensity, F1 represents the first screen luminous intensity, and k is a predetermined ratio.
其中,第一画面帧和第二画面帧为连续画面帧。Wherein, the first picture frame and the second picture frame are consecutive picture frames.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not repeated here.
由上可知,本申请实施例的电子设备中,在电子设备以第一屏幕发光强度显示第一画面帧时,获取光感传感器检测到的第一检测光强度,然后按照预定比例调节第一屏幕发光强度,得到第二屏幕发光强度,从而在电子设备以第二屏幕发光强度显示第二画面时,获取光感传感器检测到的第二检测光强度,之后根据第一检测光强度、第二检测光强度以及预定比例计算环境光强度,由此在将光感传感器设置在显示区域下方时能够实现对环境光强度的检测,从而不需要在屏幕前端开设用于光感传感器接收环境光线的孔洞,即不需要在屏幕前端做光感传感器的开孔设计,有利于电子设备的全面屏设计,使得屏幕更美观,显示效果更佳,且能够提高环境光强度检测的准确性。It can be seen from the above that, in the electronic device of the embodiment of the present application, when the electronic device displays the first picture frame with the first screen luminous intensity, the first detected light intensity detected by the light sensor is obtained, and then the first screen is adjusted according to a predetermined ratio. luminous intensity, to obtain the luminous intensity of the second screen, so that when the electronic device displays the second picture with the luminous intensity of the second screen, the second detected light intensity detected by the light sensor is obtained, and then according to the first detected light intensity, the second detected The light intensity and the predetermined ratio calculate the ambient light intensity, so that the detection of the ambient light intensity can be realized when the light sensor is arranged under the display area, so that there is no need to open a hole for the light sensor to receive the ambient light at the front of the screen, That is, there is no need to design holes for the light sensor at the front of the screen, which is conducive to the comprehensive screen design of electronic equipment, making the screen more beautiful, the display effect better, and the accuracy of ambient light intensity detection can be improved.
以上对本申请实施例所提供的一种环境光强度检测方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The method, device, storage medium and electronic equipment for detecting the intensity of ambient light provided by the embodiments of the present application have been described in detail above. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application. The above embodiments The description is only used to help understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation and scope of application. In summary, The contents of this specification should not be understood as limiting the application.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711175960.1A CN107957293B (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 |
---|---|---|---|
CN201711175960.1A CN107957293B (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 |
---|---|
CN107957293A true CN107957293A (en) | 2018-04-24 |
CN107957293B CN107957293B (en) | 2020-06-02 |
Family
ID=61959598
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711175960.1A Active CN107957293B (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) | CN107957293B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108917921A (en) * | 2018-06-15 | 2018-11-30 | 江西合力泰科技有限公司 | A kind of ambient light intensity detection method |
CN108962186A (en) * | 2018-06-28 | 2018-12-07 | 努比亚技术有限公司 | Brightness adjusting method, terminal and the computer readable storage medium of terminal screen |
CN109067967A (en) * | 2018-06-21 | 2018-12-21 | 维沃移动通信有限公司 | A method for synchronous compensation of ambient light and terminal equipment |
CN111754932A (en) * | 2019-09-11 | 2020-10-09 | 义明科技股份有限公司 | Electronic device and method for detecting ambient light |
CN112865862A (en) * | 2019-11-12 | 2021-05-28 | Oppo广东移动通信有限公司 | Ambient light detection method and apparatus for optical communication between electronic devices |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203588596U (en) * | 2012-12-04 | 2014-05-07 | 苹果公司 | Solar cell ambient light sensor for electronic equipment |
CN105592278A (en) * | 2014-10-21 | 2016-05-18 | 宏碁股份有限公司 | Electronic device and projection picture adjusting method |
CN105702228A (en) * | 2014-11-28 | 2016-06-22 | 惠州市德赛西威汽车电子股份有限公司 | Adaptive screen brightness adjusting method and system |
US20170213523A1 (en) * | 2016-01-27 | 2017-07-27 | Benq Corporation | Image adjusting method and related display apparatus |
-
2017
- 2017-11-22 CN CN201711175960.1A patent/CN107957293B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203588596U (en) * | 2012-12-04 | 2014-05-07 | 苹果公司 | Solar cell ambient light sensor for electronic equipment |
CN105592278A (en) * | 2014-10-21 | 2016-05-18 | 宏碁股份有限公司 | Electronic device and projection picture adjusting method |
CN105702228A (en) * | 2014-11-28 | 2016-06-22 | 惠州市德赛西威汽车电子股份有限公司 | Adaptive screen brightness adjusting method and system |
US20170213523A1 (en) * | 2016-01-27 | 2017-07-27 | Benq Corporation | Image adjusting method and related display apparatus |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108917921A (en) * | 2018-06-15 | 2018-11-30 | 江西合力泰科技有限公司 | A kind of ambient light intensity detection method |
CN109067967A (en) * | 2018-06-21 | 2018-12-21 | 维沃移动通信有限公司 | A method for synchronous compensation of ambient light and terminal equipment |
CN108962186A (en) * | 2018-06-28 | 2018-12-07 | 努比亚技术有限公司 | Brightness adjusting method, terminal and the computer readable storage medium of terminal screen |
CN111754932A (en) * | 2019-09-11 | 2020-10-09 | 义明科技股份有限公司 | Electronic device and method for detecting ambient light |
US11087677B2 (en) | 2019-09-11 | 2021-08-10 | Eminent Electronic Technology Corp. Ltd. | Electronic device and ambient light sensing method thereof |
CN112865862A (en) * | 2019-11-12 | 2021-05-28 | Oppo广东移动通信有限公司 | Ambient light detection method and apparatus for optical communication between electronic devices |
CN112865862B (en) * | 2019-11-12 | 2022-05-13 | Oppo广东移动通信有限公司 | Ambient light detection method and device for optical communication between electronic devices |
Also Published As
Publication number | Publication date |
---|---|
CN107957293B (en) | 2020-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107979698A (en) | Ambient light intensity detection method, device, storage medium and electronic equipment | |
CN107966209B (en) | Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus | |
CN107957293A (en) | Ambient light intensity detection method and device, storage medium and electronic equipment | |
WO2021254438A1 (en) | Drive control method and related device | |
CN110012162B (en) | Ambient light data acquisition method and electronic equipment | |
CN111627406B (en) | Display device, electronic device including the display device, and method of operating the electronic device | |
US11054978B2 (en) | Portable device and method for controlling brightness of the same | |
KR102175103B1 (en) | Low power driving method and electric device performing thereof | |
US9784797B2 (en) | Method for controlling and an electronic device thereof | |
CN112825232B (en) | Compensation method and electronic equipment | |
CN111783375A (en) | Chip system and related devices | |
CN107990978A (en) | Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus | |
US20150100813A1 (en) | Method and device for processing images to save power | |
CN109215578B (en) | Screen display method and device | |
KR102070116B1 (en) | Method for controlling portable device by using humidity sensor and portable device thereof | |
CN107945747A (en) | Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus | |
CN107917755A (en) | Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus | |
KR20130093962A (en) | The apparatus and method for reducing power consumption and user convenience in hand-held device display using face recognition | |
WO2022082960A1 (en) | Local display region compensation value determination method, apparatus, storage medium and terminal device | |
KR20220008308A (en) | Lighting Device Control Methods, Lighting Device Fittings and Electronics | |
CN107945733A (en) | Display screen brightness adjusting method and device, storage medium and electronic equipment | |
CN107968939B (en) | Display screen processing method and device, storage medium and electronic device | |
WO2023207828A1 (en) | Method for reducing power consumption, and electronic device | |
CN111564145A (en) | Backlight brightness adjustment method, device, terminal equipment and storage medium | |
CN117707323B (en) | Control method of duration, electronic equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
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 |