CN107917755A - Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus - Google Patents
Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus Download PDFInfo
- Publication number
- CN107917755A CN107917755A CN201711174691.7A CN201711174691A CN107917755A CN 107917755 A CN107917755 A CN 107917755A CN 201711174691 A CN201711174691 A CN 201711174691A CN 107917755 A CN107917755 A CN 107917755A
- Authority
- CN
- China
- Prior art keywords
- ambient light
- frame image
- display
- display screen
- black frame
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 149
- 238000000034 method Methods 0.000 claims abstract description 37
- 230000010365 information processing Effects 0.000 claims description 3
- 230000000875 corresponding effect Effects 0.000 description 32
- 230000008569 process Effects 0.000 description 12
- 230000009471 action Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 9
- 230000008859 change Effects 0.000 description 8
- 239000004973 liquid crystal related substance Substances 0.000 description 8
- 230000001276 controlling effect Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000001960 triggered effect Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- XUIMIQQOPSSXEZ-UHFFFAOYSA-N Silicon Chemical compound [Si] XUIMIQQOPSSXEZ-UHFFFAOYSA-N 0.000 description 3
- 229910052710 silicon Inorganic materials 0.000 description 3
- 239000010703 silicon Substances 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000011521 glass Substances 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 229910052594 sapphire Inorganic materials 0.000 description 1
- 239000010980 sapphire Substances 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
- G01J1/4204—Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light
Landscapes
- Life Sciences & Earth Sciences (AREA)
- Sustainable Development (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Liquid Crystal Display Device Control (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
本申请公开了一种环境光检测方法、装置、存储介质及电子设备,其中方法包括:接收环境光检测指令;根据所述环境光检测指令,确定所述显示屏是否处于工作状态;若是,则在所述显示屏上显示全黑帧图像,所述全黑帧图像携带有预设标记;当检测到所述预设标记时,控制所述环境光传感器对所述环境光的光强进行检测。本申请实施例可以减小显示屏的背光对环境光传感器造成影响,进而提高环境光传感器对环境光的检测准确度。
The present application discloses an ambient light detection method, device, storage medium and electronic device, wherein the method comprises: receiving an ambient light detection instruction; determining whether the display screen is in working state according to the ambient light detection instruction; if so, displaying a full black frame image on the display screen, the full black frame image carrying a preset mark; when the preset mark is detected, controlling the ambient light sensor to detect the intensity of the ambient light. The embodiments of the present application can reduce the influence of the backlight of the display screen on the ambient light sensor, thereby improving the detection accuracy of the ambient light by the ambient light sensor.
Description
技术领域technical field
本申请涉及电子技术领域,具体涉及一种环境光检测方法、装置、存储介质及电子设备。The present application relates to the field of electronic technology, in particular to an ambient light detection method, device, storage medium and electronic equipment.
背景技术Background technique
为了给用户显示信息,提高用户体验,通常电子设备会配备至少一块显示屏,该显示屏会通过电子设备中的环境光传感器来调节显示屏的背光强度,以保证显示屏背光的舒适度符合用户眼睛的需求。而在一些应用场景中,用户常常需要在不同环境光照强度下使用电子设备,此时显示屏的背光强度也会因环境光照强度而不断进行调整。In order to display information to users and improve user experience, electronic devices are usually equipped with at least one display screen. The display screen will adjust the backlight intensity of the display screen through the ambient light sensor in the electronic device to ensure that the comfort of the display screen backlight meets the requirements of the user. The needs of the eyes. However, in some application scenarios, users often need to use electronic devices under different ambient light intensities. At this time, the backlight intensity of the display screen will also be continuously adjusted according to the ambient light intensities.
但是,为了使环境光的检测更为准确,照顾用户的需求,一般的环境光传感器均会与显示屏设在电子设备的同一面板上,显示屏的背光会对环境光传感器造成干扰。However, in order to make the detection of ambient light more accurate and meet the needs of users, the general ambient light sensor and the display screen are arranged on the same panel of the electronic device, and the backlight of the display screen will interfere with the ambient light sensor.
发明内容Contents of the invention
本申请实施例提供一种环境光检测方法、装置、存储介质及电子设备,可以提高电子设备的环境光检测准确度。Embodiments of the present application provide an ambient light detection method, device, storage medium, and electronic equipment, which can improve the accuracy of ambient light detection of the electronic equipment.
第一方面,本申请实施例提供一种环境光检测方法,应用于电子设备,所述电子设备包括显示屏以及环境光传感器,包括:In the first aspect, an embodiment of the present application provides an ambient light detection method, which is applied to an electronic device, and the electronic device includes a display screen and an ambient light sensor, including:
接收环境光检测指令;Receive ambient light detection instructions;
根据所述环境光检测指令,确定所述显示屏是否处于工作状态;determining whether the display screen is in a working state according to the ambient light detection instruction;
若是,则在所述显示屏上显示全黑帧图像,所述全黑帧图像携带有预设标记;If so, displaying a full black frame image on the display screen, the full black frame image carrying a preset mark;
当检测到所述预设标记时,控制所述环境光传感器对所述环境光的光强进行检测。When the preset mark is detected, the ambient light sensor is controlled to detect the light intensity of the ambient light.
第二方面,本申请实施例还提供的一种环境光检测装置,包括:In the second aspect, the embodiment of the present application further provides an ambient light detection device, including:
指令接收模块,用于接收环境光检测指令;An instruction receiving module, configured to receive an ambient light detection instruction;
状态确定模块,用于根据所述环境光检测指令,确定所述显示屏是否处于工作状态;A state determination module, configured to determine whether the display screen is in a working state according to the ambient light detection instruction;
显示模块,用于若是,则在所述显示屏上显示全黑帧图像,所述全黑帧图像携带有预设标记;以及A display module, configured to, if so, display a full black frame image on the display screen, the full black frame image carrying a preset mark; and
检测控制模块,用于当检测到所述预设标记时,控制所述环境光传感器对所述环境光的光强进行检测。The detection control module is configured to control the ambient light sensor to detect the light intensity of the ambient light when the preset mark is detected.
第三方面,本申请实施例还提供一种存储介质,所述存储介质存储多条指令,所述多条指令适于在计算机上运行时,使得所述计算机执行如上所述的环境光检测方法。In the third aspect, the embodiment of the present application also provides a storage medium, the storage medium stores multiple instructions, and the multiple instructions are suitable for running on a computer, so that the computer executes the ambient light detection method as described above .
第四方面,本申请实施例还提供一种电子设备,包括处理器和存储器,所述存储器存储多条指令,所述处理器通过加载所述存储器中的指令用于执行如上所述的环境光检测方法。In the fourth aspect, the embodiment of the present application also provides an electronic device, including a processor and a memory, the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the above-mentioned ambient light Detection method.
本申请实施例提供的一种环境光检测方法,当环境光传感器需要获取环境光时,若此时显示屏处于工作状态,则在显示屏上显示全黑帧图像,并当检测到全黑帧图像的预设标记后控制对环境光的光强进行检测,可以减小显示屏的背光对环境光传感器造成影响,进而提高环境光传感器对环境光的检测准确度。According to an ambient light detection method provided in an embodiment of the present application, when the ambient light sensor needs to obtain ambient light, if the display screen is in the working state at this time, a full black frame image is displayed on the display screen, and when a full black frame is detected After the image is pre-set and marked, the light intensity of the ambient light is controlled to detect, which can reduce the impact of the backlight of the display screen on the ambient light sensor, thereby improving the detection accuracy of the ambient light sensor to the ambient light.
附图说明Description of drawings
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其它有益效果显而易见。The technical solutions and other beneficial effects of the present application will be apparent through the detailed description of the specific embodiments of the present application below in conjunction with the accompanying drawings.
图1为本申请实施例提供的环境光检测方法的实现流程图。FIG. 1 is a flowchart of an implementation of an ambient light detection method provided in an embodiment of the present application.
图2为本申请实施例提供的显示全黑帧图像的实现流程图。FIG. 2 is a flow chart of an implementation of displaying a full black frame image provided by an embodiment of the present application.
图3为本申请实施例提供的控制环境光传感器检测环境光的实现流程图。FIG. 3 is a flow chart of an implementation of controlling an ambient light sensor to detect ambient light provided by an embodiment of the present application.
图4为本申请实施例提供的环境光检测方法的另一实现流程图。FIG. 4 is another implementation flowchart of the ambient light detection method provided by the embodiment of the present application.
图5为本申请实施例提供的环境光检测装置的结构示意图。FIG. 5 is a schematic structural diagram of an ambient light detection device provided by an embodiment of the present application.
图6为本申请实施例提供的显示模块的结构示意图。FIG. 6 is a schematic structural diagram of a display module provided by an embodiment of the present application.
图7为本申请实施例提供的检测控制模块的结构示意图。FIG. 7 is a schematic structural diagram of a detection control module provided by an embodiment of the present application.
图8为本申请实施例提供的环境光检测装置的另一结构示意图。FIG. 8 is another schematic structural diagram of an ambient light detection device provided by an embodiment of the present application.
图9为本申请实施例提供的电子设备的第一结构示意图。FIG. 9 is a schematic diagram of a first structure of an electronic device provided by an embodiment of the present application.
图10为本申请实施例提供的电子设备的第二结构示意图。FIG. 10 is a schematic diagram of a second structure of an electronic device provided by an embodiment of the present application.
图11为本申请实施例提供的电子设备的第三结构示意图。FIG. 11 is a schematic diagram of a third structure of an electronic device provided by an embodiment of the present application.
图12为本申请实施例提供的电子设备的第四结构示意图。FIG. 12 is a schematic diagram of a fourth structure of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Referring to the drawings, wherein the same reference numerals represent the same components, the principles of the present application are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the present application, which should not be construed as limiting other specific embodiments of the present application that are not described in detail here.
本文所使用的术语“模块”可为在该运算系统上执行的软件对象。本文所述的不同组件、模块、引擎及服务可为在该运算系统上的实施对象。而本文所述的装置及方法可以以软件的方式进行实施,当然也可在硬件上进行实施,均在本申请保护范围之内。The term "module" as used herein may be a software object that executes on the computing system. Various components, modules, engines and services described herein can be implemented on the computing system. The devices and methods described herein can be implemented in the form of software, and of course can also be implemented in hardware, all of which are within the protection scope of the present application.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
本申请实施例中的电子设备,可以包括移动电话(或称为“蜂窝”电话,如智能手机)或者具有无线通信模块的计算机,例如,平板电脑,还可以是便携式、袖珍式、手持式的车载计算机,它们与无线接入网交换语言和/或数据。例如,个人通信业务(PersonalCommunication Service,PCS)电话、无绳电话、会话发起协议(Session InitiationProtocol,SIP)话机、无线本地环路(Wireless Local Loop,WLL)站、个人数字助理(Personal Digital Assistant,PDA)等设备,在此不作限定。The electronic equipment in the embodiment of the present application may include a mobile phone (or called a "cellular" phone, such as a smart phone) or a computer with a wireless communication module, such as a tablet computer, and may also be portable, pocket-sized, or handheld On-board computers, which exchange language and/or data with the radio access network. For example, Personal Communication Service (PCS) phone, cordless phone, Session Initiation Protocol (SIP) phone, Wireless Local Loop (WLL) station, Personal Digital Assistant (PDA) and other equipment are not limited here.
当该方法应用在电子设备时,其中,该环境光检测方法可运行在电子设备的操作系统中,可包括但不限于Windows操作系统、Mac OS操作系统、Android操作系统、IOS操作系统、Symbian(塞班)操作系统、Windows Phone操作系统等等,本申请实施例不做限定。When the method is applied to an electronic device, wherein the ambient light detection method can run in the operating system of the electronic device, which may include but not limited to Windows operating system, Mac OS operating system, Android operating system, IOS operating system, Symbian ( Symbian) operating system, Windows Phone operating system, etc., are not limited in this embodiment of the present application.
参见图1,图中示出了本申请实施例中的环境光检测方法的实现流程,为了便于说明,图中仅示出了与本申请内容相关的部分。Referring to FIG. 1 , the figure shows the implementation flow of the ambient light detection method in the embodiment of the present application. For the convenience of description, only the parts related to the content of the present application are shown in the figure.
本申请实施例中所述的显示屏,是带有背光模组的液晶显示屏(Liquid CrystalDisplay,LCD),也可以是自发光的有机发光二极管显示屏(Organic Light-EmittingDiode,OLED)。所述的环境光传感器,可以感知周围光线的光强情况,主要由光敏元件组成,如光敏电阻、光敏二极管、光电三极管、硅光电池等,并根据所检测到的环境光的光强情况,告知电子设备自动调节显示屏的背光亮度,以使显示屏的背光亮度与环境光的光强匹配,提高用户对显示屏的观看效果。The display screen described in the embodiment of the present application is a liquid crystal display (Liquid Crystal Display, LCD) with a backlight module, and may also be a self-illuminating organic light-emitting diode display (Organic Light-Emitting Diode, OLED). The ambient light sensor can perceive the light intensity of surrounding light, and is mainly composed of photosensitive elements, such as photoresistors, photodiodes, phototransistors, silicon photocells, etc., and according to the detected light intensity of ambient light, inform The electronic device automatically adjusts the brightness of the backlight of the display screen, so that the brightness of the backlight of the display screen matches the light intensity of the ambient light, thereby improving the user's viewing effect on the display screen.
在一些实施例中,该环境光检测方法包括以下步骤:In some embodiments, the ambient light detection method includes the following steps:
101、接收环境光检测指令。101. Receive an ambient light detection instruction.
其中,环境光检测指令用于指示环境光传感器对环境光的光强进行检测。Wherein, the ambient light detection instruction is used to instruct the ambient light sensor to detect the light intensity of the ambient light.
在一些实施例中,电子设备可以预先设置一些用于触发生成环境光检测指令的条件,当满足一定的条件时,可以生成环境光检测指令。如每次间隔预设时长,或者当显示屏从熄屏状态切换到亮屏状态时则触发获取环境光,具体条件可以根据实际情况而进行设定。In some embodiments, the electronic device may preset some conditions for triggering the generation of the ambient light detection instruction, and when certain conditions are met, the ambient light detection instruction may be generated. For example, the preset duration of each interval, or when the display screen switches from the off-screen state to the on-screen state, triggers the acquisition of ambient light, and the specific conditions can be set according to the actual situation.
例如,电子设备设置每隔5秒触发一次获取环境光情况的动作,则每间隔5秒则生成一次环境光检测指令,当电子设备接收到该环境光检测指令后执行相应的动作。For example, if the electronic device is set to trigger an action of acquiring ambient light every 5 seconds, then an ambient light detection instruction is generated every 5 seconds, and the electronic device executes corresponding actions after receiving the ambient light detection instruction.
在一些实施例中,接收环境光检测指令可以是通过监听系统中是否存在环境光检测指令来进行接收,也可以是主动尝试在预设位置上对环境光检测指令进行获取,本申请对此不作限定。In some embodiments, receiving the ambient light detection instruction can be received by monitoring whether there is an ambient light detection instruction in the system, or it can be actively trying to obtain the ambient light detection instruction at a preset position, which is not made in this application. limited.
102、根据环境光检测指令,确定显示屏是否处于工作状态;若是,则在所述显示屏上显示全黑帧图像;若否,则不作响应。102. According to the ambient light detection instruction, determine whether the display screen is in a working state; if yes, display a full black frame image on the display screen; if not, do not respond.
其中,该工作状态一般是指显示屏处于“亮屏”状态,即正在工作、显示内容的状态。Wherein, the working state generally refers to that the display screen is in a “bright screen” state, that is, a state of working and displaying content.
因为在显示屏正在使用时,调节显示屏的背光强度才会有意义。因此,当电子设备接收到该环境光检测指令后,需要确定显示屏是否处于工作状态。Because adjusting the intensity of the display's backlight only makes sense when the display is in use. Therefore, after the electronic device receives the ambient light detection instruction, it needs to determine whether the display screen is in a working state.
在一些实施例中,确定显示屏是否处于工作状态,可以检测该显示屏与工作状态相关的参数。In some embodiments, to determine whether the display screen is in a working state, parameters related to the working state of the display screen may be detected.
例如,当“参数A”的数值体现显示屏的状态,其中,显示屏的状态包括“工作状态”或者“关闭状态”。若当“参数A”为“1”时,该显示屏处于“工作状态”,而当“参数A”为“0”时,该显示屏处于“关闭状态”,则当检测到该“参数A”的数值为“1”时,可以确定该显示屏处于工作状态。For example, when the value of "parameter A" reflects the state of the display screen, the state of the display screen includes "working state" or "off state". If when the "parameter A" is "1", the display is in the "working state", and when the "parameter A" is "0", the display is in the "off state", then when the "parameter A" is detected When the value of " is "1", it can be determined that the display screen is working.
在一些实施例中,确定显示屏是否处于工作状态,还可以通过检测显示屏的当前电压值来进行确定。In some embodiments, determining whether the display screen is in a working state may also be determined by detecting the current voltage value of the display screen.
例如,当显示屏的当前电压值位于预设的工作电压范围,则可以确定该显示屏处于工作状态。否则,当显示屏的电压不在预设的工作电压范围,则可以确定该显示屏处于关闭状态或其他待机状态。For example, when the current voltage value of the display screen is within the preset working voltage range, it can be determined that the display screen is in a working state. Otherwise, when the voltage of the display screen is not within the preset operating voltage range, it can be determined that the display screen is in an off state or other standby states.
需要说明的是,确定显示屏是否处于工作状态还有其他方式,均可以通过其他现有技术实现,本申请在此不作限定。It should be noted that there are other ways to determine whether the display screen is in a working state, all of which can be realized by other existing technologies, which are not limited in this application.
103、在显示屏上显示全黑帧图像,全黑帧图像携带有预设标记。103. Displaying an all-black frame image on the display screen, where the all-black frame image carries a preset mark.
其中,帧是影像、动画中最小单位的单幅画面,或者是在显示屏显示过程中每刷新一次所显示的单幅画面。该全黑帧图像指的是显示屏中所有像素均显示为黑色的单幅画面的图像。该预设标记,用于当检测到该标记时,触发与标记对应的操作,例如控制环境光传感器进行工作。Wherein, a frame is a single frame that is the smallest unit in an image or animation, or a single frame that is displayed every time the display screen is refreshed. The all-black frame image refers to an image of a single frame in which all pixels in the display screen are displayed as black. The preset mark is used to trigger an operation corresponding to the mark when the mark is detected, for example, to control the ambient light sensor to work.
在一些实施例中,在显示屏上显示全黑帧图像,可以是显示屏所显示的某一帧或多帧图像为全黑帧图像。In some embodiments, displaying an all-black frame image on the display screen may be that one or more frames of images displayed on the display screen are all-black frame images.
例如,在显示屏的显示过程中,1秒内显示屏能够刷新显示60帧的图像,则在显示屏上显示全黑帧图像可以是在其中的一帧中全屏显示黑色图像,或者是某几帧中全屏显示黑色图像。For example, during the display process of the display screen, the display screen can refresh and display 60 frames of images within 1 second, then displaying a full black frame image on the display screen can be a full screen display of a black image in one of the frames, or a certain number of frames. Displays a black image full screen in the frame.
在一些实施例中,预设标记可以通过在全黑帧图像的显示信息的特定位置上中添加特殊数值来进行标记;或者是将某段指令加入至该全黑帧图像的显示信息中,以当电子设备读取该显示信息时可以顺便读取该指令,执行与指令对应的操作。In some embodiments, the preset mark can be marked by adding a special value in a specific position of the display information of the full black frame image; or adding a certain instruction to the display information of the full black frame image to When the electronic device reads the display information, it can read the instruction by the way, and execute the operation corresponding to the instruction.
需要说明的是,上述标记方法只是作为参考用途,标记的方法还可以采用现有技术中的其他方式,本申请实施例对具体的标记手段不作限定。It should be noted that the above-mentioned marking method is only used for reference, and the marking method can also adopt other methods in the prior art, and the embodiment of the present application does not limit the specific marking means.
104、当检测到所述预设标记时,控制环境光传感器对环境光的光强进行检测。104. When the preset mark is detected, control the ambient light sensor to detect the light intensity of the ambient light.
在一些实施例中,当检测到所述预设标记时,会执行相应的环境光检测指令来触发环境光传感器的工作。当环境光传感器工作时,环境光传感器可以将当前环境光的光敏数据(例如光敏元器件的阻值变化所导致的检测量的变化)转换为光强数据,并将光强数据发送到电子设备的处理器中进行处理,完成对环境光的检测控制。In some embodiments, when the preset flag is detected, a corresponding ambient light detection instruction will be executed to trigger the work of the ambient light sensor. When the ambient light sensor is working, the ambient light sensor can convert the photosensitive data of the current ambient light (such as the change of the detection amount caused by the change of the resistance value of the photosensitive component) into light intensity data, and send the light intensity data to the electronic device Processing in the processor to complete the detection and control of ambient light.
此时因为显示屏上显示的为全黑帧图像,可以认为此时显示屏上的背光对环境光传感器的影响降低到最小,进而提高环境光传感器的检测准确性。At this time, because the display screen displays a completely black frame image, it can be considered that the influence of the backlight on the display screen on the ambient light sensor is minimized at this time, thereby improving the detection accuracy of the ambient light sensor.
在一些实施例中,因为环境光传感器执行环境光获取动作时需要一定的时间,为了保证显示全黑帧图像能对环境光传感器的影响降低到最小,全黑帧图像的显示时长可以大于环境光传感器检测环境光时所需的检测时长。In some embodiments, because the ambient light sensor takes a certain amount of time to perform the ambient light acquisition action, in order to ensure that the display of a full black frame image can minimize the impact on the ambient light sensor, the display duration of the full black frame image can be longer than the ambient light The detection time required for the sensor to detect ambient light.
例如,环境光传感器检测环境光所需要的时间为5ms,则该全黑帧图像的显示时长应大于5ms,保证环境光传感器在检测环境光的过程中不会因为突然跳出全黑帧图像而使其检测准确度受到影响。For example, if the time required for the ambient light sensor to detect ambient light is 5ms, the display time of the all-black frame image should be greater than 5ms, so as to ensure that the ambient light sensor will not be disturbed by the sudden jump of the all-black frame image in the process of detecting ambient light. Its detection accuracy is affected.
在一些实施例中,该环境光传感器可以设置在显示屏一侧之外的非显示区域中,也可以设置在显示屏后方,也即相对显示方向的另一侧。当该环境光传感器设置在显示屏后方时,因为显示屏的阻挡,环境光传感器所受到的显示屏背光的影响会更大。在环境光传感器检测环境光时显示全黑帧图像,可以更加有效降低显示屏背光的影响,大大提高环境光传感器的检测准确度以及可靠性。In some embodiments, the ambient light sensor may be disposed in a non-display area other than one side of the display screen, or may be disposed behind the display screen, that is, on the other side relative to the display direction. When the ambient light sensor is arranged behind the display screen, the ambient light sensor will be more affected by the backlight of the display screen due to the blocking of the display screen. Displaying a full black frame image when the ambient light sensor detects ambient light can more effectively reduce the influence of the display backlight, and greatly improve the detection accuracy and reliability of the ambient light sensor.
在本申请实施例提供的环境光检测方法中,当环境光传感器需要获取环境光时,若此时显示屏处于工作状态,则在显示屏上显示全黑帧图像,并当检测到全黑帧图像的预设标记后控制对环境光的光强进行检测,可以减小显示屏的背光对环境光传感器造成影响,进而提高环境光传感器对环境光的检测准确度。In the ambient light detection method provided in the embodiment of the present application, when the ambient light sensor needs to obtain ambient light, if the display screen is in the working state at this time, a full black frame image is displayed on the display screen, and when a full black frame is detected After the image is pre-set and marked, the light intensity of the ambient light is controlled to detect, which can reduce the impact of the backlight of the display screen on the ambient light sensor, thereby improving the detection accuracy of the ambient light sensor to the ambient light.
参见图2,图中示出了本申请实施例提供的显示全黑帧图像的实现流程,为了便于说明,图中仅示出了与本申请内容相关的部分。Referring to FIG. 2 , the figure shows the implementation process of displaying a full black frame image provided by the embodiment of the present application. For the convenience of description, only the parts related to the content of the present application are shown in the figure.
在一些实施例中,在显示屏上显示全黑帧图像,包括:In some embodiments, displaying a full black frame image on the display screen includes:
201、获取所述全黑帧图像的显示信息。201. Acquire display information of the all-black frame image.
其中,显示信息为包含有某一帧图像中每一像素的位置,以及该像素所要显示的颜色或灰度,通过该显示信息可以将与其对应的某一帧图像在显示屏中进行显示。该全黑帧图像的显示信息,可以预先存储在电子设备的存储器中。Wherein, the display information includes the position of each pixel in a certain frame of image, and the color or gray scale to be displayed by the pixel, through which a certain frame of image corresponding to it can be displayed on the display screen. The display information of the all-black frame image may be pre-stored in the memory of the electronic device.
202、将所述全黑帧图像的显示信息作为下一帧图像的显示信息,并对所述全黑帧图像的显示信息进行标记处理。202. Use the display information of the all-black frame image as the display information of the next frame image, and mark the display information of the all-black frame image.
其中,该下一帧图像为相对于当前显示帧图像而言,例如当前显示帧图像的帧数位置为“N”,则下一帧图像的帧数位置为在当前显示帧图像的下一帧,也即“N+1”。Wherein, the next frame image is relative to the currently displayed frame image, for example, the frame number position of the currently displayed frame image is "N", then the frame number position of the next frame image is the next frame of the currently displayed frame image , that is, "N+1".
在一些实施例中,可以包括以下步骤:In some embodiments, the following steps may be included:
获取显示内容的显示时序信息,根据显示时序信息确定下一帧图像;Obtain the display timing information of the display content, and determine the next frame of image according to the display timing information;
获取下一帧图像的显示信息,将下一帧图像的显示信息替换为全黑帧图像的显示信息。Obtain the display information of the next frame image, and replace the display information of the next frame image with the display information of the full black frame image.
其中,显示时序信息用于标记显示内容的显示过程中每一帧的显示顺序,需要显示的每一帧图像均会有对应的帧数位置,显示时序信息可以体现每一帧图像的帧数位置。Among them, the display timing information is used to mark the display sequence of each frame in the display process of the display content, and each frame image to be displayed will have a corresponding frame number position, and the display timing information can reflect the frame number position of each frame image .
例如,若需要播放一段影像,一般会将该段影像中每一帧的显示信息存入存储器,并给每一帧图像的显示信息的存储位置进行标注。For example, if a segment of video needs to be played, the display information of each frame in the segment of video is generally stored in the memory, and the storage location of the display information of each frame of image is marked.
当需要获取下一帧图像的显示信息时,可以先通过该段影像的显示时序信息确定当前显示帧图像的帧数位置,并根据该帧数位置在下一帧图像的显示信息的存储位置上对信息进行获取。When it is necessary to obtain the display information of the next frame of image, the frame number position of the currently displayed frame image can be determined through the display timing information of the segment of the image, and according to the frame number position in the storage position of the display information of the next frame image Information is obtained.
例如,当前显示帧图像的帧数位置为“N”,则可以确定其下一帧图像的帧数位置为“N+1”,然后根据该下一帧图像的帧数位置“N+1”所对应的存储位置中将显示信息进行获取。For example, if the frame number position of the currently displayed frame image is "N", then it can be determined that the frame number position of the next frame image is "N+1", and then according to the frame number position "N+1" of the next frame image Information will be displayed in the corresponding storage location for acquisition.
当获取到下一帧图像的显示信息,则可以将存储有该下一帧图像的显示信息用全黑帧图像的显示信息进行替换,并将全黑帧图像的显示信息存储在下一帧图像的显示信息的存储位置中。When the display information of the next frame image is obtained, the display information of the next frame image stored therein can be replaced with the display information of the full black frame image, and the display information of the full black frame image is stored in the next frame image In the storage location of the displayed information.
在一些实施例中,该标记可以通过在全黑帧图像的显示信息的特定位置上中添加特殊数值来进行标记;或者是将某段指令加入至该全黑帧图像的显示信息中,以当电子设备读取该显示信息时可以顺便读取该指令,执行与指令对应的操作。In some embodiments, the mark can be marked by adding a special value in a specific position of the display information of the all-black frame image; or adding a certain instruction to the display information of the all-black frame image to When the electronic device reads the display information, it can read the instruction by the way, and execute the operation corresponding to the instruction.
需要说明的是,上述标记方法只是作为参考用途,标记的方法还可以采用现有技术中的其他方式,本申请实施例对具体的标记手段不作限定。It should be noted that the above-mentioned marking method is only used for reference, and the marking method can also adopt other methods in the prior art, and the embodiment of the present application does not limit the specific marking means.
203、在加载下一帧图像时,根据全黑帧图像的显示信息在显示屏上显示全黑帧图像。203. When loading the next frame of image, display the full black frame image on the display screen according to the display information of the full black frame image.
在一些实施例中,若当前显示帧图像的显示时序结束,为了接下来显示下一帧图像,此时会加载下一帧图像的显示信息。In some embodiments, if the display sequence of the currently displayed frame of image ends, in order to display the next frame of image, the display information of the next frame of image will be loaded at this time.
因为已经将下一帧图像的显示信息替换为全黑帧图像的显示信息,在加载下一帧图像时,实际上是加载了全黑帧图像的显示信息,此时显示下一帧图像时则会显示全黑帧图像。Because the display information of the next frame image has been replaced with the display information of the all-black frame image, when the next frame image is loaded, the display information of the all-black frame image is actually loaded. At this time, when the next frame image is displayed, then A full black frame image will be displayed.
由此可知,通过获取全黑帧图像的显示信息,并将需要进行显示的下一帧图像的显示信息替换为全黑帧图像的显示信息,在加载下一帧图像时对全黑帧图像进行显示,可以实现在任何原有的显示内容中插入全黑帧图像,使得插入全黑帧图像更为容易。It can be seen from this that by acquiring the display information of the full black frame image and replacing the display information of the next frame image to be displayed with the display information of the full black frame image, the full black frame image is loaded when the next frame image is loaded. display, it is possible to insert a full black frame image into any original display content, making it easier to insert a full black frame image.
参见图3,图中示出了本申请实施例提供的控制环境光传感器检测环境光的实现流程,为了便于说明,图中仅示出了与本申请内容相关的部分。Referring to FIG. 3 , the figure shows the implementation process of controlling the ambient light sensor to detect ambient light provided by the embodiment of the present application. For the convenience of description, only the parts related to the content of the present application are shown in the figure.
在一些实施例中,当检测到预设标记时,控制环境光传感器对环境光的光强进行检测,可以包括以下步骤:In some embodiments, when the preset mark is detected, controlling the ambient light sensor to detect the light intensity of the ambient light may include the following steps:
301、读取下一帧图像的显示信息;301. Read the display information of the next frame of image;
在一些实施例中,在播放影像的过程中,当需要读取下一帧图像的显示信息时,可以先通过该段影像的显示时序信息确定当前显示帧图像的帧数位置,并根据该帧数位置在下一帧图像的显示信息的存储位置上对信息进行读取。In some embodiments, in the process of playing an image, when it is necessary to read the display information of the next frame image, the frame number position of the currently displayed frame image can be determined through the display timing information of this segment of image first, and according to the Read the information at the storage position of the display information of the next frame image at the digital position.
例如,当前显示帧图像的帧数位置为“N”,则可以确定其下一帧图像的帧数位置为“N+1”,然后根据该下一帧图像的帧数位置“N+1”所对应的存储位置中将显示信息进行读取。For example, if the frame number position of the currently displayed frame image is "N", then it can be determined that the frame number position of the next frame image is "N+1", and then according to the frame number position "N+1" of the next frame image The information displayed in the corresponding storage location can be read.
302、判断下一帧图像的显示信息中是否包含有预设标记;302. Determine whether the display information of the next frame of image contains a preset mark;
在一些实施例中,预设标记可以通过在下一帧图像的显示信息的特定位置中对预设标记所对应的参数进行获取、判断。In some embodiments, the preset mark may be acquired and judged by acquiring and judging the parameter corresponding to the preset mark in a specific position of the display information of the next frame of image.
或者是执行该下一帧图像的显示信息,并当显示信息中具有与预设标记对应的指令时,确定下一帧图像的显示信息中包含有预设标记。Alternatively, the display information of the next frame of image is executed, and when the display information has an instruction corresponding to the preset mark, it is determined that the display information of the next frame of image contains the preset mark.
若并未从下一帧图像的显示信息的特定位置上获取到预设标记所对应的参数,或者是下一帧图像的显示信息中不包含与预设标记对应的指令,则可以确定下一帧图像的显示信息中不包含有预设标记。If the parameter corresponding to the preset mark is not obtained from the specific position of the display information of the next frame of image, or the display information of the next frame of image does not contain the instruction corresponding to the preset mark, then the next frame can be determined. The display information of the frame image does not include the preset mark.
303、若是,则控制环境光传感器对环境光的光强进行检测。303. If yes, control the ambient light sensor to detect the light intensity of the ambient light.
在一些实施例中,当下一帧图像的显示信息中包含有预设标记时,可以确认该下一帧图像为全黑帧图像,此时可以控制环境光传感器对环境光的光强进行检测,以利用显示全黑帧图像的机会,来使得环境光传感器所获取的环境光的光强接近环境实际值,从而提高环境光传感器的检测准确度。In some embodiments, when the display information of the next frame image contains a preset mark, it can be confirmed that the next frame image is a completely black frame image, and at this time, the ambient light sensor can be controlled to detect the light intensity of the ambient light, The opportunity of displaying a completely black frame image is used to make the light intensity of the ambient light acquired by the ambient light sensor close to the actual value of the environment, thereby improving the detection accuracy of the ambient light sensor.
由此可知,通过判断下一帧图像的显示信息中是否包含有预设标记,来准确地确定该下一帧图像是否是全黑帧图像,并利用在全黑帧图像显示的过程中控制环境光传感器获取环境光。并且,该实施例可以快速识别并确定出下一帧是否会显示全黑帧图像,从而能预先启动环境光传感器,提高系统反应速度。参见图4,图中示出了本申请实施例提供的环境光检测方法的另一实现流程,为了便于说明,图中仅示出了与本申请内容相关的部分。It can be seen from this that by judging whether the display information of the next frame image contains a preset mark, it can be accurately determined whether the next frame image is a full black frame image, and by controlling the environment during the display of the full black frame image The light sensor acquires ambient light. Moreover, this embodiment can quickly identify and determine whether the next frame will display a completely black frame image, so that the ambient light sensor can be activated in advance to improve the system response speed. Referring to FIG. 4 , the figure shows another implementation process of the ambient light detection method provided by the embodiment of the present application. For the convenience of description, only the parts related to the content of the present application are shown in the figure.
在一些实施例中,一种环境光检测方法,包括:In some embodiments, an ambient light detection method includes:
401、检测距离上一次环境光传感器获取环境光时的间隔时长是否达到预设值;若是,则触发生成环境光检测指令。401. Detect whether the interval time from the last time the ambient light sensor acquires ambient light reaches a preset value; if so, trigger the generation of an ambient light detection instruction.
其中,预设值为任意一个自然数,例如5秒、1分钟等,具体数值可以根据实际情况而定。Wherein, the preset value is any natural number, such as 5 seconds, 1 minute, etc., and the specific value can be determined according to the actual situation.
在一些实施例中,每次环境光传感器检测完环境光的光强后,均会触发计时器进行计时,并在预设的计时任务完成后再次触发生成环境光检测指令,以指示环境光传感器再一次对环境光进行检测。In some embodiments, each time the ambient light sensor detects the light intensity of the ambient light, the timer will be triggered for timing, and after the preset timing task is completed, the generation of the ambient light detection command will be triggered again to instruct the ambient light sensor to Check the ambient light again.
当然,实际中环境光检测指令还可以在显示屏从熄屏状态切换到亮屏状态时进行触发生成。Of course, in practice, the ambient light detection instruction can also be triggered and generated when the display screen is switched from the off-screen state to the on-screen state.
402、触发生成环境光检测指令。402. Trigger generation of an ambient light detection instruction.
在一些实施例中,环境光检测指令可以通过系统按预设程序执行生成,也可以是从硬件端生成,本申请在此不作限定。In some embodiments, the ambient light detection instruction can be generated by the system according to a preset program, or can be generated from the hardware side, which is not limited in this application.
例如,电子设备设置每隔5秒触发一次获取环境光情况的动作,则每间隔5秒则生成一次环境光检测指令,当电子设备接收到该环境光检测指令后执行相应的动作。For example, if the electronic device is set to trigger an action of acquiring ambient light every 5 seconds, then an ambient light detection instruction is generated every 5 seconds, and the electronic device executes corresponding actions after receiving the ambient light detection instruction.
403、接收环境光检测指令。403. Receive an ambient light detection instruction.
在一些实施例中,接收环境光检测指令可以是通过监听系统中是否存在环境光检测指令来进行接收,也可以是主动尝试在预设位置上对环境光检测指令进行获取,本申请对此不作限定。In some embodiments, receiving the ambient light detection instruction can be received by monitoring whether there is an ambient light detection instruction in the system, or it can be actively trying to obtain the ambient light detection instruction at a preset position, which is not made in this application. limited.
404、根据环境光检测指令,确定显示屏是否处于工作状态。404. Determine whether the display screen is in a working state according to the ambient light detection instruction.
其中,该工作状态一般是指显示屏处于“亮屏”状态,即正在工作、显示内容的状态。Wherein, the working state generally refers to that the display screen is in a “bright screen” state, that is, a state of working and displaying content.
在一些实施例中,确定显示屏是否处于工作状态,可以检测该显示屏与工作状态相关的参数。In some embodiments, to determine whether the display screen is in a working state, parameters related to the working state of the display screen may be detected.
在一些实施例中,确定显示屏是否处于工作状态,还可以通过检测显示屏的当前电压值来进行确定。In some embodiments, determining whether the display screen is in a working state may also be determined by detecting the current voltage value of the display screen.
需要说明的是,确定显示屏是否处于工作状态还有其他方式,均可以通过其他现有技术实现,本申请在此不作限定。It should be noted that there are other ways to determine whether the display screen is in a working state, all of which can be realized by other existing technologies, which are not limited in this application.
405、在显示屏上显示全黑帧图像,全黑帧图像携带有预设标记。405 . Display a full black frame image on the display screen, and the full black frame image carries a preset mark.
其中,帧是影像、动画中最小单位的单幅画面,或者是在显示屏显示过程中每刷新一次所显示的单幅画面。该全黑帧图像指的是显示屏中所有像素均显示为黑色的单幅画面的图像。该预设标记,用于当检测到该标记时,触发与标记对应的操作,例如控制环境光传感器进行工作。Wherein, a frame is a single frame that is the smallest unit in an image or animation, or a single frame that is displayed every time the display screen is refreshed. The all-black frame image refers to an image of a single frame in which all pixels in the display screen are displayed as black. The preset mark is used to trigger an operation corresponding to the mark when the mark is detected, for example, to control the ambient light sensor to work.
在一些实施例中,在显示屏上显示全黑帧图像,可以是显示屏所显示的某一帧或多帧图像为全黑帧图像。In some embodiments, displaying an all-black frame image on the display screen may be that one or more frames of images displayed on the display screen are all-black frame images.
在一些实施例中,预设标记可以通过在全黑帧图像的显示信息的特定位置上中添加特殊数值来进行标记;或者是将某段指令加入至该全黑帧图像的显示信息中,以当电子设备读取该显示信息时可以顺便读取该指令,执行与指令对应的操作。In some embodiments, the preset mark can be marked by adding a special value in a specific position of the display information of the full black frame image; or adding a certain instruction to the display information of the full black frame image to When the electronic device reads the display information, it can read the instruction by the way, and execute the operation corresponding to the instruction.
需要说明的是,上述标记方法只是作为参考用途,标记的方法还可以采用现有技术中的其他方式,本申请实施例对具体的标记手段不作限定。It should be noted that the above-mentioned marking method is only used for reference, and the marking method can also adopt other methods in the prior art, and the embodiment of the present application does not limit the specific marking means.
406、当检测到所述预设标记时,控制环境光传感器对环境光的光强进行检测。406. When the preset mark is detected, control the ambient light sensor to detect the light intensity of the ambient light.
在一些实施例中,当检测到所述预设标记时,会执行相应的环境光检测指令来触发环境光传感器的工作。当环境光传感器工作时,环境光传感器可以将当前环境光的光敏数据(例如光敏元器件的阻值变化所导致的检测量的变化)转换为光强数据,并将光强数据发送到电子设备的处理器中进行处理,完成对环境光的检测控制。In some embodiments, when the preset flag is detected, a corresponding ambient light detection instruction will be executed to trigger the work of the ambient light sensor. When the ambient light sensor is working, the ambient light sensor can convert the photosensitive data of the current ambient light (such as the change of the detection amount caused by the change of the resistance value of the photosensitive component) into light intensity data, and send the light intensity data to the electronic device Processing in the processor to complete the detection and control of ambient light.
此时因为显示屏上显示的为全黑帧图像,可以认为此时显示屏上的背光对环境光传感器的影响降低到最小,进而提高环境光传感器的检测准确性。At this time, because the display screen displays a completely black frame image, it can be considered that the influence of the backlight on the display screen on the ambient light sensor is minimized at this time, thereby improving the detection accuracy of the ambient light sensor.
在一些实施例中,因为环境光传感器执行环境光获取动作时需要一定的时间,为了保证显示全黑帧图像能对环境光传感器的影响降低到最小,全黑帧图像的显示时长可以大于环境光传感器检测环境光时所需的检测时长。In some embodiments, because the ambient light sensor takes a certain amount of time to perform the ambient light acquisition action, in order to ensure that the display of a full black frame image can minimize the impact on the ambient light sensor, the display duration of the full black frame image can be longer than the ambient light The detection time required for the sensor to detect ambient light.
在本申请实施例提供的环境光检测方法中,通过判断其间隔时长是否达到预设值,可以有计划地利用环境光传感器获取环境光的变化,从而可以预先对插入全黑帧图像的动作进行提前准备,提高插入全黑帧图像的效率,显示全黑帧图像时控制对环境光的光强进行检测,可以减小显示屏的背光对环境光传感器造成影响,进而提高环境光传感器对环境光的检测准确度。In the ambient light detection method provided in the embodiment of the present application, by judging whether the interval has reached a preset value, the ambient light sensor can be used to obtain changes in ambient light in a planned way, so that the action of inserting a full black frame image can be pre-determined. Prepare in advance to improve the efficiency of inserting a full-black frame image, and control the detection of the light intensity of the ambient light when displaying a full-black frame image, which can reduce the impact of the backlight of the display screen on the ambient light sensor, thereby improving the ambient light sensor’s sensitivity to ambient light. detection accuracy.
参见图5,图中示出了本申请实施例中的环境光检测装置的结构,为了便于说明,图中仅示出了与本申请内容相关的部分。Referring to FIG. 5 , the figure shows the structure of the ambient light detection device in the embodiment of the present application. For the convenience of description, only the parts related to the content of the present application are shown in the figure.
本申请实施例中所述的显示屏,是带有背光模组的液晶显示屏(Liquid CrystalDisplay,LCD),也可以是自发光的有机发光二极管显示屏(Organic Light-EmittingDiode,OLED)。所述的环境光传感器,可以感知周围光线的光强情况,主要由光敏元件组成,如光敏电阻、光敏二极管、光电三极管、硅光电池等,并根据所检测到的环境光的光强情况,告知电子设备自动调节显示屏的背光亮度,以使显示屏的背光亮度与环境光的光强匹配,提高用户对显示屏的观看效果。The display screen described in the embodiment of the present application is a liquid crystal display (Liquid Crystal Display, LCD) with a backlight module, and may also be a self-illuminating organic light-emitting diode display (Organic Light-Emitting Diode, OLED). The ambient light sensor can perceive the light intensity of surrounding light, and is mainly composed of photosensitive elements, such as photoresistors, photodiodes, phototransistors, silicon photocells, etc., and according to the detected light intensity of ambient light, inform The electronic device automatically adjusts the brightness of the backlight of the display screen, so that the brightness of the backlight of the display screen matches the light intensity of the ambient light, thereby improving the user's viewing effect on the display screen.
在一些实施例中,该环境光检测装置包括指令接收模块501状态、确定模块、显示模块503以及检测控制模块504。In some embodiments, the ambient light detection device includes an instruction receiving module 501 status, a determination module, a display module 503 and a detection control module 504 .
其中,指令接收模块501,用于接收环境光检测指令。Wherein, the instruction receiving module 501 is configured to receive an ambient light detection instruction.
环境光检测指令用于指示环境光传感器对环境光的光强进行检测。The ambient light detection instruction is used to instruct the ambient light sensor to detect the light intensity of the ambient light.
在一些实施例中,电子设备可以预先设置一些用于触发生成环境光检测指令的条件,当满足一定的条件时,可以生成环境光检测指令。如每次间隔预设时长,或者当显示屏从熄屏状态切换到亮屏状态时则触发获取环境光,具体条件可以根据实际情况而进行设定。In some embodiments, the electronic device may preset some conditions for triggering the generation of the ambient light detection instruction, and when certain conditions are met, the ambient light detection instruction may be generated. For example, the preset duration of each interval, or when the display screen switches from the off-screen state to the on-screen state, triggers the acquisition of ambient light, and the specific conditions can be set according to the actual situation.
例如,电子设备设置每隔5秒触发一次获取环境光情况的动作,则每间隔5秒则生成一次环境光检测指令,当电子设备接收到该环境光检测指令后执行相应的动作。For example, if the electronic device is set to trigger an action of acquiring ambient light every 5 seconds, then an ambient light detection instruction is generated every 5 seconds, and the electronic device executes corresponding actions after receiving the ambient light detection instruction.
在一些实施例中,接收环境光检测指令可以是通过监听系统中是否存在环境光检测指令来进行接收,也可以是主动尝试在预设位置上对环境光检测指令进行获取,本申请对此不作限定。In some embodiments, receiving the ambient light detection instruction can be received by monitoring whether there is an ambient light detection instruction in the system, or it can be actively trying to obtain the ambient light detection instruction at a preset position, which is not made in this application. limited.
状态确定模块502,用于根据环境光检测指令,确定显示屏是否处于工作状态。A state determination module 502 is configured to determine whether the display screen is in a working state according to the ambient light detection instruction.
其中,该工作状态一般是指显示屏处于“亮屏”状态,即正在工作、显示内容的状态。Wherein, the working state generally refers to that the display screen is in a “bright screen” state, that is, a state of working and displaying content.
因为在显示屏正在使用时,调节显示屏的背光强度才会有意义。因此,当电子设备接收到该环境光检测指令后,需要确定显示屏是否处于工作状态。Because adjusting the intensity of the display's backlight only makes sense when the display is in use. Therefore, after the electronic device receives the ambient light detection instruction, it needs to determine whether the display screen is in a working state.
在一些实施例中,确定显示屏是否处于工作状态,可以检测该显示屏与工作状态相关的参数。In some embodiments, to determine whether the display screen is in a working state, parameters related to the working state of the display screen may be detected.
在一些实施例中,确定显示屏是否处于工作状态,还可以通过检测显示屏的当前电压值来进行确定。In some embodiments, determining whether the display screen is in a working state may also be determined by detecting the current voltage value of the display screen.
例如,当显示屏的当前电压值位于预设的工作电压范围,则可以确定该显示屏处于工作状态。否则,当显示屏的电压不在预设的工作电压范围,则可以确定该显示屏处于关闭状态或其他待机状态。For example, when the current voltage value of the display screen is within the preset working voltage range, it can be determined that the display screen is in a working state. Otherwise, when the voltage of the display screen is not within the preset operating voltage range, it can be determined that the display screen is in an off state or other standby states.
需要说明的是,确定显示屏是否处于工作状态还有其他方式,均可以通过其他现有技术实现,本申请在此不作限定。It should be noted that there are other ways to determine whether the display screen is in a working state, all of which can be realized by other existing technologies, which are not limited in this application.
显示模块503,用于在显示屏上显示全黑帧图像,全黑帧图像携带有预设标记。The display module 503 is configured to display an all-black frame image on the display screen, and the all-black frame image carries a preset mark.
其中,帧是影像、动画中最小单位的单幅画面,或者是在显示屏显示过程中每刷新一次所显示的单幅画面。该全黑帧图像指的是显示屏中所有像素均显示为黑色的单幅画面的图像。该预设标记,用于当检测到该标记时,触发与标记对应的操作,例如控制环境光传感器进行工作。Wherein, a frame is a single frame that is the smallest unit in an image or animation, or a single frame that is displayed every time the display screen is refreshed. The all-black frame image refers to an image of a single frame in which all pixels in the display screen are displayed as black. The preset mark is used to trigger an operation corresponding to the mark when the mark is detected, for example, to control the ambient light sensor to work.
在一些实施例中,在显示屏上显示全黑帧图像,可以是显示屏所显示的某一帧或多帧图像为全黑帧图像。In some embodiments, displaying an all-black frame image on the display screen may be that one or more frames of images displayed on the display screen are all-black frame images.
在一些实施例中,预设标记可以通过在全黑帧图像的显示信息的特定位置上中添加特殊数值来进行标记;或者是将某段指令加入至该全黑帧图像的显示信息中,以当电子设备读取该显示信息时可以顺便读取该指令,执行与指令对应的操作。In some embodiments, the preset mark can be marked by adding a special value in a specific position of the display information of the full black frame image; or adding a certain instruction to the display information of the full black frame image to When the electronic device reads the display information, it can read the instruction by the way, and execute the operation corresponding to the instruction.
需要说明的是,上述标记方法只是作为参考用途,标记的方法还可以采用现有技术中的其他方式,本申请实施例对具体的标记手段不作限定。It should be noted that the above-mentioned marking method is only used for reference, and the marking method can also adopt other methods in the prior art, and the embodiment of the present application does not limit the specific marking means.
检测控制模块504,用于当检测到所述预设标记时,控制环境光传感器对环境光的光强进行检测。The detection control module 504 is configured to control the ambient light sensor to detect the light intensity of the ambient light when the preset mark is detected.
在一些实施例中,当检测到所述预设标记时,会执行相应的环境光检测指令来触发环境光传感器的工作。当环境光传感器工作时,环境光传感器可以将当前环境光的光敏数据(例如光敏元器件的阻值变化所导致的检测量的变化)转换为光强数据,并将光强数据发送到电子设备的处理器中进行处理,完成对环境光的检测控制。In some embodiments, when the preset flag is detected, a corresponding ambient light detection instruction will be executed to trigger the work of the ambient light sensor. When the ambient light sensor is working, the ambient light sensor can convert the photosensitive data of the current ambient light (such as the change of the detection amount caused by the change of the resistance value of the photosensitive component) into light intensity data, and send the light intensity data to the electronic device Processing in the processor to complete the detection and control of ambient light.
此时因为显示屏上显示的为全黑帧图像,可以认为此时显示屏上的背光对环境光传感器的影响降低到最小,进而提高环境光传感器的检测准确性。At this time, because the display screen displays a completely black frame image, it can be considered that the influence of the backlight on the display screen on the ambient light sensor is minimized at this time, thereby improving the detection accuracy of the ambient light sensor.
在一些实施例中,因为环境光传感器执行环境光获取动作时需要一定的时间,为了保证显示全黑帧图像能对环境光传感器的影响降低到最小,全黑帧图像的显示时长可以大于环境光传感器检测环境光时所需的检测时长。In some embodiments, because the ambient light sensor takes a certain amount of time to perform the ambient light acquisition action, in order to ensure that the display of a full black frame image can minimize the impact on the ambient light sensor, the display duration of the full black frame image can be longer than the ambient light The detection time required for the sensor to detect ambient light.
在一些实施例中,该环境光传感器可以设置在显示屏一侧外的非显示区域中,也可以设置在显示屏后方,也即相对显示方向的另一侧。当该环境光传感器设置在显示屏后方时,因为显示屏的阻挡,环境光传感器所受到的显示屏背光的影响会更大。在环境光传感器检测环境光时显示全黑帧图像,可以更加有效降低显示屏背光的影响,大大提高环境光传感器的检测准确度以及可靠性。In some embodiments, the ambient light sensor may be disposed in a non-display area outside one side of the display screen, or may be disposed behind the display screen, that is, on the other side relative to the display direction. When the ambient light sensor is arranged behind the display screen, the ambient light sensor will be more affected by the backlight of the display screen due to the blocking of the display screen. Displaying a full black frame image when the ambient light sensor detects ambient light can more effectively reduce the influence of the display backlight, and greatly improve the detection accuracy and reliability of the ambient light sensor.
在本申请实施例提供的环境光检测装置中,当环境光传感器需要获取环境光时,若此时显示屏处于工作状态,则在显示屏上显示全黑帧图像,并当检测到全黑帧图像的预设标记后控制对环境光的光强进行检测,可以减小显示屏的背光对环境光传感器造成影响,进而提高环境光传感器对环境光的检测准确度。In the ambient light detection device provided in the embodiment of the present application, when the ambient light sensor needs to obtain ambient light, if the display screen is in the working state at this time, a full black frame image is displayed on the display screen, and when a full black frame is detected After the image is pre-set and marked, the light intensity of the ambient light is controlled to detect, which can reduce the impact of the backlight of the display screen on the ambient light sensor, thereby improving the detection accuracy of the ambient light sensor to the ambient light.
参见图6,图中示出了本申请实施例中的显示模块的结构,为了便于说明,图中仅示出了与本申请内容相关的部分。Referring to FIG. 6 , the figure shows the structure of the display module in the embodiment of the present application. For the convenience of description, only the parts related to the content of the present application are shown in the figure.
在一些实施例中,所述显示模块503,包括信息获取子模块5031、信息处理子模块5032以及显示子模块5033。In some embodiments, the display module 503 includes an information acquisition submodule 5031 , an information processing submodule 5032 and a display submodule 5033 .
信息获取子模块5031,用于获取所述全黑帧图像的显示信息。The information acquisition sub-module 5031 is configured to acquire the display information of the all-black frame image.
其中,显示信息为包含有某一帧图像中每一像素的位置,以及该像素所要显示的颜色或灰度,通过该显示信息可以将与其对应的某一帧图像在显示屏中进行显示。该全黑帧图像的显示信息,可以预先存储在电子设备的存储器中。Wherein, the display information includes the position of each pixel in a certain frame of image, and the color or gray scale to be displayed by the pixel, through which a certain frame of image corresponding to it can be displayed on the display screen. The display information of the all-black frame image may be pre-stored in the memory of the electronic device.
信息处理子模块5032,用于将所述全黑帧图像的显示信息作为下一帧图像的显示信息,并对所述全黑帧图像的显示信息进行标记处理。The information processing sub-module 5032 is configured to use the display information of the all-black frame image as the display information of the next frame image, and mark the display information of the all-black frame image.
其中,该下一帧图像为相对于当前显示帧图像而言,例如当前显示帧图像的帧数位置为“N”,则下一帧图像的帧数位置为在当前显示帧图像的下一帧,也即“N+1”。Wherein, the next frame image is relative to the currently displayed frame image, for example, the frame number position of the currently displayed frame image is "N", then the frame number position of the next frame image is the next frame of the currently displayed frame image , that is, "N+1".
在一些实施例中,可以包括以下步骤:In some embodiments, the following steps may be included:
获取显示内容的显示时序信息,根据显示时序信息确定下一帧图像;Obtain the display timing information of the display content, and determine the next frame of image according to the display timing information;
获取下一帧图像的显示信息,将下一帧图像的显示信息替换为全黑帧图像的显示信息。Obtain the display information of the next frame image, and replace the display information of the next frame image with the display information of the full black frame image.
其中,显示时序信息用于标记显示内容的显示过程中每一帧的显示顺序,需要显示的每一帧图像均会有对应的帧数位置,显示时序信息可以体现每一帧图像的帧数位置。Among them, the display timing information is used to mark the display sequence of each frame in the display process of the display content, and each frame image to be displayed will have a corresponding frame number position, and the display timing information can reflect the frame number position of each frame image .
例如,若需要播放一段影像,一般会将该段影像中每一帧的显示信息存入存储器,并给每一帧图像的显示信息的存储位置进行标注。当需要获取下一帧图像的显示信息时,可以先通过该段影像的显示时序信息确定当前显示帧图像的帧数位置,并根据该帧数位置在下一帧图像的显示信息的存储位置上对信息进行获取。For example, if a segment of video needs to be played, the display information of each frame in the segment of video is generally stored in the memory, and the storage location of the display information of each frame of image is marked. When it is necessary to obtain the display information of the next frame of image, the frame number position of the currently displayed frame image can be determined through the display timing information of the segment of the image, and according to the frame number position in the storage position of the display information of the next frame image Information is obtained.
例如,当前显示帧图像的帧数位置为“N”,则可以确定其下一帧图像的帧数位置为“N+1”,然后根据该下一帧图像的帧数位置“N+1”所对应的存储位置中将显示信息进行获取。For example, if the frame number position of the currently displayed frame image is "N", then it can be determined that the frame number position of the next frame image is "N+1", and then according to the frame number position "N+1" of the next frame image Information will be displayed in the corresponding storage location for acquisition.
当获取到下一帧图像的显示信息,则可以将存储有该下一帧图像的显示信息用全黑帧图像的显示信息进行替换,并将全黑帧图像的显示信息存储在下一帧图像的显示信息的存储位置中。When the display information of the next frame image is obtained, the display information of the next frame image stored therein can be replaced with the display information of the full black frame image, and the display information of the full black frame image is stored in the next frame image In the storage location of the displayed information.
在一些实施例中,该标记可以通过在全黑帧图像的显示信息的特定位置上中添加特殊数值来进行标记;或者是将某段指令加入至该全黑帧图像的显示信息中,以当电子设备读取该显示信息时可以顺便读取该指令,执行与指令对应的操作。In some embodiments, the mark can be marked by adding a special value in a specific position of the display information of the all-black frame image; or adding a certain instruction to the display information of the all-black frame image to When the electronic device reads the display information, it can read the instruction by the way, and execute the operation corresponding to the instruction.
需要说明的是,上述标记方法只是作为参考用途,标记的方法还可以采用现有技术中的其他方式,本申请实施例对具体的标记手段不作限定。It should be noted that the above-mentioned marking method is only used for reference, and the marking method can also adopt other methods in the prior art, and the embodiment of the present application does not limit the specific marking means.
显示子模块5033,用于在加载下一帧图像时,根据全黑帧图像的显示信息在显示屏上显示全黑帧图像。The display sub-module 5033 is configured to display the full black frame image on the display screen according to the display information of the full black frame image when the next frame image is loaded.
在一些实施例中,若当前显示帧图像的显示时序结束,为了接下来显示下一帧图像,此时会加载下一帧图像的显示信息。In some embodiments, if the display sequence of the currently displayed frame of image ends, in order to display the next frame of image, the display information of the next frame of image will be loaded at this time.
因为已经将下一帧图像的显示信息替换为全黑帧图像的显示信息,在加载下一帧图像时,实际上是加载了全黑帧图像的显示信息,此时显示下一帧图像时则会显示全黑帧图像。Because the display information of the next frame image has been replaced with the display information of the all-black frame image, when the next frame image is loaded, the display information of the all-black frame image is actually loaded. At this time, when the next frame image is displayed, then A full black frame image will be displayed.
由此可知,通过获取全黑帧图像的显示信息,并将需要进行显示的下一帧图像的显示信息替换为全黑帧图像的显示信息,在加载下一帧图像时对全黑帧图像进行显示,可以实现在任何原有的显示内容中插入全黑帧图像,使得插入全黑帧图像更为容易。It can be seen from this that by acquiring the display information of the full black frame image and replacing the display information of the next frame image to be displayed with the display information of the full black frame image, the full black frame image is loaded when the next frame image is loaded. display, it is possible to insert a full black frame image into any original display content, making it easier to insert a full black frame image.
参见图7,图中示出了本申请实施例提供的检测控制模块的结构,为了便于说明,图中仅示出了与本申请内容相关的部分。Referring to FIG. 7 , the figure shows the structure of the detection control module provided by the embodiment of the present application. For the convenience of description, only the parts related to the content of the present application are shown in the figure.
在一些实施例中,所述检测控制模块504,可以包括信息读取子模块5041以及控制子模块5042:In some embodiments, the detection control module 504 may include an information reading submodule 5041 and a control submodule 5042:
其中,信息读取子模块5041,用于读取下一帧图像的显示信息。Among them, the information reading sub-module 5041 is used to read the display information of the next frame of image.
在一些实施例中,在播放影像的过程中,当需要读取下一帧图像的显示信息时,可以先通过该段影像的显示时序信息确定当前显示帧图像的帧数位置,并根据该帧数位置在下一帧图像的显示信息的存储位置上对信息进行读取。In some embodiments, in the process of playing an image, when it is necessary to read the display information of the next frame image, the frame number position of the currently displayed frame image can be determined through the display timing information of this segment of image first, and according to the Read the information at the storage position of the display information of the next frame image at the digital position.
例如,当前显示帧图像的帧数位置为“N”,则可以确定其下一帧图像的帧数位置为“N+1”,然后根据该下一帧图像的帧数位置“N+1”所对应的存储位置中将显示信息进行读取。For example, if the frame number position of the currently displayed frame image is "N", then it can be determined that the frame number position of the next frame image is "N+1", and then according to the frame number position "N+1" of the next frame image The information displayed in the corresponding storage location can be read.
控制子模块5042,用于判断下一帧图像的显示信息中是否包含有预设标记;若是,则控制环境光传感器对环境光的光强进行检测。The control sub-module 5042 is used to judge whether the display information of the next frame of image contains a preset mark; if so, control the ambient light sensor to detect the light intensity of the ambient light.
在一些实施例中,预设标记可以通过在下一帧图像的显示信息的特定位置中对预设标记所对应的参数进行获取、判断。In some embodiments, the preset mark may be acquired and judged by acquiring and judging the parameter corresponding to the preset mark in a specific position of the display information of the next frame of image.
或者是执行该下一帧图像的显示信息,并当显示信息中具有与预设标记对应的指令时,确定下一帧图像的显示信息中包含有预设标记。Alternatively, the display information of the next frame of image is executed, and when the display information has an instruction corresponding to the preset mark, it is determined that the display information of the next frame of image contains the preset mark.
若并未从下一帧图像的显示信息的特定位置上获取到预设标记所对应的参数,或者是下一帧图像的显示信息中不包含与预设标记对应的指令,则可以确定下一帧图像的显示信息中不包含有预设标记。If the parameter corresponding to the preset mark is not obtained from the specific position of the display information of the next frame of image, or the display information of the next frame of image does not contain the instruction corresponding to the preset mark, then the next frame can be determined. The display information of the frame image does not include the preset mark.
在一些实施例中,当下一帧图像的显示信息中包含有预设标记时,可以确认该下一帧图像为全黑帧图像,此时可以控制环境光传感器对环境光的光强进行检测,以利用显示全黑帧图像的机会,来使得环境光传感器所获取的环境光的光强接近环境实际值,从而提高环境光传感器的检测准确度。In some embodiments, when the display information of the next frame image contains a preset mark, it can be confirmed that the next frame image is a completely black frame image, and at this time, the ambient light sensor can be controlled to detect the light intensity of the ambient light, The opportunity of displaying a completely black frame image is used to make the light intensity of the ambient light acquired by the ambient light sensor close to the actual value of the environment, thereby improving the detection accuracy of the ambient light sensor.
由此可知,通过判断下一帧图像的显示信息中是否包含有预设标记,来准确地确定该下一帧图像是否是全黑帧图像,并利用在全黑帧图像显示的过程中控制环境光传感器获取环境光。并且,该实施例可以快速识别并确定出下一帧是否会显示全黑帧图像,从而能预先启动环境光传感器,提高系统反应速度。It can be seen from this that by judging whether the display information of the next frame image contains a preset mark, it can be accurately determined whether the next frame image is a full black frame image, and by controlling the environment during the display of the full black frame image The light sensor acquires ambient light. Moreover, this embodiment can quickly identify and determine whether the next frame will display a completely black frame image, so that the ambient light sensor can be activated in advance to improve the system response speed.
参见图8,图中示出了本申请实施例中的环境光检测装置的另一结构,为了便于说明,图中仅示出了与本申请内容相关的部分。Referring to FIG. 8 , another structure of the ambient light detection device in the embodiment of the present application is shown in the figure. For the convenience of description, only the parts related to the content of the present application are shown in the figure.
在一些实施例中,一种环境光检测装置,包括时长检测模块505、指令接收模块501状态、确定模块、显示模块503以及检测控制模块504。In some embodiments, an ambient light detection device includes a duration detection module 505 , an instruction receiving module 501 status, a determination module, a display module 503 and a detection control module 504 .
时长检测模块505,用于检测距离上一次环境光传感器获取环境光时的间隔时长是否达到预设值;若是,则触发生成环境光检测指令。The duration detection module 505 is configured to detect whether the interval duration from the last time the ambient light sensor acquires ambient light reaches a preset value; if so, triggers the generation of an ambient light detection instruction.
其中,预设值为任意一个自然数,例如5秒、1分钟等,具体数值可以根据实际情况而定。Wherein, the preset value is any natural number, such as 5 seconds, 1 minute, etc., and the specific value can be determined according to the actual situation.
在一些实施例中,每次环境光传感器检测完环境光的光强后,均会触发计时器进行计时,并在预设的计时任务完成后再次触发生成环境光检测指令,以指示环境光传感器再一次对环境光进行检测。In some embodiments, each time the ambient light sensor detects the light intensity of the ambient light, the timer will be triggered for timing, and after the preset timing task is completed, the generation of the ambient light detection command will be triggered again to instruct the ambient light sensor to Check the ambient light again.
当然,实际中环境光检测指令还可以在显示屏从熄屏状态切换到亮屏状态时进行触发生成。Of course, in practice, the ambient light detection instruction can also be triggered and generated when the display screen is switched from the off-screen state to the on-screen state.
在一些实施例中,环境光检测指令可以通过系统按预设程序执行生成,也可以是从硬件端生成,本申请在此不作限定。In some embodiments, the ambient light detection instruction can be generated by the system according to a preset program, or can be generated from the hardware side, which is not limited in this application.
例如,电子设备设置每隔5秒触发一次获取环境光情况的动作,则每间隔5秒则生成一次环境光检测指令,当电子设备接收到该环境光检测指令后执行相应的动作。For example, if the electronic device is set to trigger an action of acquiring ambient light every 5 seconds, then an ambient light detection instruction is generated every 5 seconds, and the electronic device executes corresponding actions after receiving the ambient light detection instruction.
指令接收模块501,用于接收环境光检测指令。The instruction receiving module 501 is configured to receive an ambient light detection instruction.
状态确定模块502,用于根据环境光检测指令,确定显示屏是否处于工作状态。A state determination module 502 is configured to determine whether the display screen is in a working state according to the ambient light detection instruction.
显示模块503,用于在显示屏上显示全黑帧图像,全黑帧图像携带有预设标记。The display module 503 is configured to display an all-black frame image on the display screen, and the all-black frame image carries a preset mark.
检测控制模块504,用于当检测到所述预设标记时,控制环境光传感器对环境光的光强进行检测。The detection control module 504 is configured to control the ambient light sensor to detect the light intensity of the ambient light when the preset mark is detected.
其中,指令接收模块501状态、确定模块、显示模块503以及检测控制模块504可以参照图5中的描述,本申请在此不作赘述。Wherein, the state of the instruction receiving module 501, the determination module, the display module 503 and the detection control module 504 can refer to the description in FIG. 5, and the present application will not repeat them here.
在本申请实施例提供的环境光检测装置中,通过判断其间隔时长是否达到预设值,可以有计划地利用环境光传感器获取环境光的变化,从而可以预先对插入全黑帧图像的动作进行提前准备,提高插入全黑帧图像的效率,在显示全黑帧图像时控制对环境光的光强进行检测,可以减小显示屏的背光对环境光传感器造成影响,进而提高环境光传感器对环境光的检测准确度。In the ambient light detection device provided in the embodiment of the present application, by judging whether the interval time reaches the preset value, the ambient light sensor can be used to obtain changes in ambient light in a planned way, so that the action of inserting a full black frame image can be pre-determined. Prepare in advance to improve the efficiency of inserting a full-black frame image, and control the detection of the light intensity of the ambient light when displaying a full-black frame image, which can reduce the impact of the backlight of the display screen on the ambient light sensor, thereby improving the environmental light sensor’s impact on the environment. Light detection accuracy.
本申请实施例中,所述环境光检测装置与上文实施例中的一种环境光检测方法属于同一构思,在所述环境光检测装置上可以运行所述环境光检测方法实施例中提供的任一方法,其具体实现过程详见所述环境光检测方法实施例,并可以采用任意结合形成本申请的可选实施例,此处不再赘述。In the embodiment of the present application, the ambient light detection device and the ambient light detection method in the above embodiment belong to the same idea, and the ambient light detection method provided in the embodiment of the ambient light detection method can be run on the ambient light detection device. For any method, see the embodiment of the ambient light detection method for details about its specific implementation process, and any combination may be used to form an optional embodiment of the present application, which will not be repeated here.
参见图9,图9为本申请实施例提供的电子设备的结构示意图。其中,电子设备600包括盖板610、显示屏620、电路板630、壳体640以及安装在所述壳体640内部的环境光传感器650。Referring to FIG. 9, FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Wherein, the electronic device 600 includes a cover plate 610 , a display screen 620 , a circuit board 630 , a casing 640 and an ambient light sensor 650 installed inside the casing 640 .
盖板610安装到显示屏620上,以覆盖显示屏620。盖板610可以为透明玻璃盖板。在一些实施例中,盖板610可以是用诸如蓝宝石等材料制成的玻璃盖板。The cover plate 610 is installed on the display screen 620 to cover the display screen 620 . The cover plate 610 may be a transparent glass cover plate. In some embodiments, cover plate 610 may be a glass cover plate made of a material such as sapphire.
显示屏620安装在壳体640上,以形成电子设备600的显示面。在一些实施例中,显示屏620包括显示区域621和非显示区域622。其中,显示区域621用于显示图像、文本等信息。非显示区域622不显示信息。非显示区域622可以用于设置一些功能组件,例如摄像头、指纹识别模组等功能组件。The display screen 620 is mounted on the casing 640 to form a display surface of the electronic device 600 . In some embodiments, the display screen 620 includes a display area 621 and a non-display area 622 . Wherein, the display area 621 is used for displaying information such as images and texts. The non-display area 622 does not display information. The non-display area 622 can be used to set some functional components, such as camera, fingerprint identification module and other functional components.
在一些实施例中,显示屏620可以全屏显示。也即,显示屏620只包括显示区域621,而不包括非显示区域,如图10所示。In some embodiments, display screen 620 may display full screen. That is, the display screen 620 only includes a display area 621 , and does not include a non-display area, as shown in FIG. 10 .
在一些实施例中,显示屏620可以为液晶显示屏(Liquid Crystal Display,LCD)或者有机发光二极管显示屏(Organic Light-Emitting Diode,OLED)。In some embodiments, the display screen 620 may be a liquid crystal display (Liquid Crystal Display, LCD) or an organic light-emitting diode display (Organic Light-Emitting Diode, OLED).
电路板630安装在壳体640内部。电路板630可以为电子设备600的主板。电路板630上可以集成有摄像头以及处理器等功能组件。同时,显示屏620可以电连接至电路板630。The circuit board 630 is installed inside the case 640 . The circuit board 630 may be a main board of the electronic device 600 . Functional components such as a camera and a processor may be integrated on the circuit board 630 . Meanwhile, the display screen 620 may be electrically connected to the circuit board 630 .
在一些实施例中,电路板630上设置有显示控制电路。所述显示控制电路向显示屏620输出电信号,以控制显示屏620显示信息。In some embodiments, a display control circuit is disposed on the circuit board 630 . The display control circuit outputs electrical signals to the display screen 620 to control the display screen 620 to display information.
壳体640用于形成电子设备600的外部轮廓。壳体640的材质可以为塑料或金属。壳体640可以一体成型。The housing 640 is used to form the outer contour of the electronic device 600 . The material of the housing 640 can be plastic or metal. The housing 640 can be integrally formed.
环境光传感器650安装在壳体640内部。同时,环境光传感器650电连接至电路板630。例如,环境光传感器650可以集成在电路板630上。环境光传感器650用于检测环境光强度,从而电子设备600可以根据所述环境光传感器650检测到的环境光强度调节显示屏620的亮度,以使得显示屏620的亮度与周围环境相适应。例如,在较暗的环境中,电子设备600可以降低显示屏620的亮度;在较亮的环境中,电子设备600可以提高显示屏620的亮度。The ambient light sensor 650 is installed inside the housing 640 . Meanwhile, the ambient light sensor 650 is electrically connected to the circuit board 630 . For example, ambient light sensor 650 may be integrated on circuit board 630 . The ambient light sensor 650 is used to detect the ambient light intensity, so that the electronic device 600 can adjust the brightness of the display screen 620 according to the ambient light intensity detected by the ambient light sensor 650, so that the brightness of the display screen 620 adapts to the surrounding environment. For example, in a darker environment, the electronic device 600 can reduce the brightness of the display screen 620; in a brighter environment, the electronic device 600 can increase the brightness of the display screen 620.
本申请实施例中,环境光传感器650可以正对显示屏620的显示区域621设置。也即,环境光传感器650在显示屏620上的正投影位于所述显示屏620的显示区域621。可以理解的,此时环境光传感器650透过所述显示屏620的显示区域621采集外部环境光线,以实现检测环境光强度。也即,外部环境光线透过所述显示屏620的显示区域621进入到所述环境光传感器650中。In this embodiment of the present application, the ambient light sensor 650 may be disposed directly opposite to the display area 621 of the display screen 620 . That is, the orthographic projection of the ambient light sensor 650 on the display screen 620 is located in the display area 621 of the display screen 620 . It can be understood that at this time, the ambient light sensor 650 collects external ambient light through the display area 621 of the display screen 620 to detect the ambient light intensity. That is, external ambient light enters the ambient light sensor 650 through the display area 621 of the display screen 620 .
在一些实施例中,所述环境光传感器650可以正对所述显示屏620的显示区域621的边缘设置。例如,所述环境光传感器650可以正对所述显示区域621的上边缘、下边缘、左边缘、右边缘等部位设置。In some embodiments, the ambient light sensor 650 may be disposed right on the edge of the display area 621 of the display screen 620 . For example, the ambient light sensor 650 may be disposed facing the upper edge, lower edge, left edge, right edge, etc. of the display area 621 .
在一些实施例中,显示屏620的显示区域621可以为矩形区域。此时,所述环境光传感器650可以正对所述显示区域621的左上角、左下角、右上角、右下角等部位设置。In some embodiments, the display area 621 of the display screen 620 may be a rectangular area. At this time, the ambient light sensor 650 may be disposed facing the upper left corner, lower left corner, upper right corner, and lower right corner of the display area 621 .
在一些实施例中,所述环境光传感器650还可以设置在显示屏620的一侧,并在盖板610上开设开孔,以使环境光通过开孔进入环境光传感器650。In some embodiments, the ambient light sensor 650 may also be disposed on one side of the display screen 620 , and an opening is made on the cover plate 610 , so that ambient light enters the ambient light sensor 650 through the opening.
本申请实施例还提供一种电子设备,该电子设备可以是智能手机、平板电脑、台式电脑、笔记本、掌上电脑等设备。请参阅图11,电子设备700包括处理器701以及存储器702。其中,处理器701与存储器702电性连接。The embodiment of the present application also provides an electronic device, and the electronic device may be a smart phone, a tablet computer, a desktop computer, a notebook, a palmtop computer, and the like. Referring to FIG. 11 , an electronic device 700 includes a processor 701 and a memory 702 . Wherein, the processor 701 is electrically connected with the memory 702 .
所述处理器700是电子设备700的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器702内的应用程序,以及调用存储在存储器702内的数据,执行电子设备700的各种功能并处理数据,从而对电子设备700进行整体监控。The processor 700 is the control center of the electronic device 700, using various interfaces and lines to connect various parts of the entire electronic device, by running or loading the application program stored in the memory 702, and calling the data stored in the memory 702, Execute various functions of the electronic device 700 and process data, thereby monitoring the electronic device 700 as a whole.
所述存储器702可用于存储软件程序以及模块,处理器701通过运行存储在存储器702的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器702可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据服务器的使用所创建的数据等。此外,存储器702可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器702还可以包括存储器控制器,以提供处理器701对存储器702的访问。The memory 702 can be used to store software programs and modules, and the processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 702 . The memory 702 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); The data created by the use of the server, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 702 may further include a memory controller to provide the processor 701 with access to the memory 702 .
在本申请实施例中,电子设备700中的处理器701会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器702中,并由处理器701运行存储在存储器702中的应用程序,从而实现各种功能,如下:In the embodiment of the present application, the processor 701 in the electronic device 700 will follow the steps below to load the instructions corresponding to the process of one or more application programs into the memory 702, and run the instructions stored in the memory 702 by the processor 701. In the application program, various functions are realized, as follows:
接收环境光检测指令;根据所述环境光检测指令,确定所述显示屏是否处于工作状态;若是,则在所述显示屏上显示全黑帧图像,所述全黑帧图像携带有预设标记;当检测到所述预设标记时,控制所述环境光传感器对所述环境光的光强进行检测。Receiving an ambient light detection instruction; according to the ambient light detection instruction, determine whether the display screen is in a working state; if so, display a full black frame image on the display screen, and the full black frame image carries a preset mark ; when the preset mark is detected, controlling the ambient light sensor to detect the light intensity of the ambient light.
在某些实施方式中,所述处理器701还可以用于:In some implementations, the processor 701 may also be used to:
获取所述全黑帧图像的显示信息;将所述全黑帧图像的显示信息作为下一帧图像的显示信息,并对所述全黑帧图像的显示信息进行标记处理;在加载所述下一帧图像时,根据所述全黑帧图像的显示信息在所述显示屏上显示全黑帧图像。Obtain the display information of the all-black frame image; use the display information of the all-black frame image as the display information of the next frame image, and mark the display information of the all-black frame image; When there is one frame of image, a full black frame image is displayed on the display screen according to the display information of the full black frame image.
在某些实施方式中,所述处理器701还可以用于:In some implementations, the processor 701 may also be used to:
获取显示内容的显示时序信息,根据所述显示时序信息确定下一帧图像;获取下一帧图像的显示信息,将所述下一帧图像的显示信息替换为所述全黑帧图像的显示信息。Acquiring the display timing information of the display content, determining the next frame image according to the display timing information; obtaining the display information of the next frame image, replacing the display information of the next frame image with the display information of the full black frame image .
在某些实施方式中,所述处理器701还可以用于:In some implementations, the processor 701 may also be used to:
读取所述下一帧图像的显示信息;判断所述下一帧图像的显示信息中是否包含有所述预设标记;若是,则控制所述环境光传感器对所述环境光的光强进行检测。Reading the display information of the next frame of image; judging whether the display information of the next frame of image contains the preset mark; if so, controlling the ambient light sensor to measure the light intensity of the ambient light detection.
在某些实施方式中,所述处理器701还可以用于:In some implementations, the processor 701 may also be used to:
检测距离上一次所述环境光传感器获取环境光时的间隔时长是否达到预设值;若是,则触发生成所述环境光检测指令。Detecting whether the interval time since the last time the ambient light sensor acquires ambient light reaches a preset value; if so, triggering the generation of the ambient light detection instruction.
本申请实施例提供的电子设备,当环境光传感器需要获取环境光时,若此时显示屏处于工作状态,则在显示屏上显示全黑帧图像,并当检测到全黑帧图像的预设标记后控制对环境光的光强进行检测,可以减小显示屏的背光对环境光传感器造成影响,进而提高环境光传感器对环境光的检测准确度。In the electronic device provided by the embodiment of the present application, when the ambient light sensor needs to obtain ambient light, if the display screen is in the working state at this time, a full black frame image is displayed on the display screen, and when the preset full black frame image is detected After marking, the control detects the light intensity of the ambient light, which can reduce the impact of the backlight of the display screen on the ambient light sensor, thereby improving the detection accuracy of the ambient light sensor for the ambient light.
请一并参阅图12,在某些实施方式中,电子设备700还可以包括:显示屏703、射频电路704、音频电路705、无线保真模块706以及电源707。其中,其中,显示屏703、射频电路704、音频电路705、无线保真模块706、电源707以及环境光传感器708分别与处理器701电性连接。Please also refer to FIG. 12 , in some embodiments, the electronic device 700 may further include: a display screen 703 , a radio frequency circuit 704 , an audio circuit 705 , a wireless fidelity module 706 and a power supply 707 . Wherein, the display screen 703 , the radio frequency circuit 704 , the audio circuit 705 , the wireless fidelity module 706 , the power supply 707 and the ambient light sensor 708 are respectively electrically connected to the processor 701 .
所述显示屏703可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示屏703可以包括显示面板,在某些实施方式中,可以采用液晶显示屏(LCD,Liquid CrystalDisplay)、或者有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。The display screen 703 may be used to display information input by or provided to the user and various graphical user interfaces. These graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. The display screen 703 may include a display panel. In some implementation manners, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display) or an organic light-emitting diode (OLED, Organic Light-Emitting Diode).
所述射频电路704可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。The radio frequency circuit 704 can be used to send and receive radio frequency signals to establish wireless communication with network equipment or other electronic equipment through wireless communication, and to send and receive signals with network equipment or other electronic equipment.
所述音频电路705可以用于通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 705 can be used to provide an audio interface between the user and the electronic device through a speaker or a microphone.
所述无线保真模块706可以用于短距离无线传输,可以帮助用户收发电子邮件、浏览网站和访问流式媒体等,它为用户提供了无线的宽带互联网访问。The Wi-Fi module 706 can be used for short-distance wireless transmission, and can help users send and receive emails, browse websites, and access streaming media, etc. It provides users with wireless broadband Internet access.
所述电源707可以用于给电子设备700的各个部件供电。在一些实施例中,电源707可以通过电源管理系统与处理器701逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 707 can be used to supply power to various components of the electronic device 700 . In some embodiments, the power supply 707 may be logically connected to the processor 701 through a power management system, so as to implement functions such as managing charging, discharging, and power consumption through the power management system.
所述环境光传感器708可以感知周围光线的光强情况,主要由光敏元件组成,如光敏电阻、光敏二极管、光电三极管、硅光电池等,当环境光传感器工作时,环境光传感器可以将当前环境光的光敏数据(例如光敏元器件的阻值变化所导致的检测量的变化)转换为光强数据,并将光强数据发送到电子设备的处理器中进行处理,完成对环境光的检测控制。The ambient light sensor 708 can perceive the light intensity of the surrounding light, and is mainly composed of photosensitive elements, such as photoresistors, photodiodes, phototransistors, silicon photocells, etc. When the ambient light sensor is working, the ambient light sensor can convert the current ambient light The photosensitive data (such as the change of the detection amount caused by the change of the resistance of the photosensitive component) is converted into light intensity data, and the light intensity data is sent to the processor of the electronic device for processing to complete the detection and control of ambient light.
在一些实施例中,该环境光传感器708可以设置在显示屏一侧之外的非显示区域中,也可以设置在显示屏后方,也即相对显示方向的另一侧。In some embodiments, the ambient light sensor 708 may be disposed in a non-display area other than one side of the display screen, or may be disposed behind the display screen, that is, on the other side relative to the display direction.
尽管图12中未示出,电子设备700还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 12 , the electronic device 700 may also include a camera, a Bluetooth module, etc., which will not be repeated here.
本申请实施例还提供一种存储介质,所述存储介质存储多条指令,所述多条指令适于由处理器加载以执行上述实施例中的环境光检测方法,比如:接收环境光检测指令;根据所述环境光检测指令,确定所述显示屏是否处于工作状态;若是,则在所述显示屏上显示全黑帧图像,所述全黑帧图像携带有预设标记;当检测到所述预设标记时,控制所述环境光传感器对所述环境光的光强进行检测。The embodiment of the present application also provides a storage medium, the storage medium stores a plurality of instructions, and the plurality of instructions are suitable for being loaded by the processor to execute the ambient light detection method in the above embodiment, for example: receiving the ambient light detection instruction ; According to the ambient light detection instruction, determine whether the display screen is in a working state; if so, display a full-black frame image on the display screen, and the full-black frame image carries a preset mark; When the preset mark is selected, the ambient light sensor is controlled to detect the light intensity of the ambient light.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读的介质中,该介质可以包括但不限于:只读存储器(ROM,Read Only Memory)、随机存取存储器(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 embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable medium. The 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 detection method, device, storage medium and electronic equipment provided by the embodiments of the present application have been introduced in detail above. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only 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, the content of this specification It should not be construed as a limitation of the application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711174691.7A CN107917755A (en) | 2017-11-22 | 2017-11-22 | Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711174691.7A CN107917755A (en) | 2017-11-22 | 2017-11-22 | Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107917755A true CN107917755A (en) | 2018-04-17 |
Family
ID=61896898
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711174691.7A Pending CN107917755A (en) | 2017-11-22 | 2017-11-22 | Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107917755A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108806627A (en) * | 2018-06-15 | 2018-11-13 | 北京小米移动软件有限公司 | Environmental light brightness determines method, apparatus and storage medium |
CN109192135A (en) * | 2018-09-27 | 2019-01-11 | 北京小米移动软件有限公司 | Environmental light brightness determining device and method |
CN109410833A (en) * | 2018-08-29 | 2019-03-01 | 北京小米移动软件有限公司 | Environment light detection method, device, terminal and storage medium |
WO2020151712A1 (en) * | 2019-01-22 | 2020-07-30 | Huawei Technologies Co., Ltd. | Indoor detections based on ambient light |
CN111486950A (en) * | 2020-04-20 | 2020-08-04 | Oppo广东移动通信有限公司 | Ambient light detection method, device, electronic device and storage medium |
CN113852720A (en) * | 2020-06-28 | 2021-12-28 | 北京小米移动软件有限公司 | Ambient light determination method, ambient light determination device, terminal equipment and medium |
CN113997706A (en) * | 2021-10-29 | 2022-02-01 | 北京惠朗时代科技有限公司 | Stamping method and device of printing control instrument |
CN114333735A (en) * | 2021-12-27 | 2022-04-12 | 深圳市汇顶科技股份有限公司 | Method and device for detecting ambient light under display screen and electronic equipment |
CN117129085A (en) * | 2023-02-28 | 2023-11-28 | 荣耀终端有限公司 | Ambient light detection method, electronic device and readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101738755A (en) * | 2008-11-13 | 2010-06-16 | 三星电子株式会社 | Liquid crystal display, estimating method of external light, and driving method of the liquid crystal display |
US8963901B2 (en) * | 2011-04-20 | 2015-02-24 | Wistron Corp. | Display device and method for adjusting gray-level of image frame depending on environment illumination |
CN106462339A (en) * | 2015-09-28 | 2017-02-22 | 华为技术有限公司 | Terminal and method for detecting ambient brightness |
-
2017
- 2017-11-22 CN CN201711174691.7A patent/CN107917755A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101738755A (en) * | 2008-11-13 | 2010-06-16 | 三星电子株式会社 | Liquid crystal display, estimating method of external light, and driving method of the liquid crystal display |
US8963901B2 (en) * | 2011-04-20 | 2015-02-24 | Wistron Corp. | Display device and method for adjusting gray-level of image frame depending on environment illumination |
CN106462339A (en) * | 2015-09-28 | 2017-02-22 | 华为技术有限公司 | Terminal and method for detecting ambient brightness |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108806627A (en) * | 2018-06-15 | 2018-11-13 | 北京小米移动软件有限公司 | Environmental light brightness determines method, apparatus and storage medium |
CN109410833A (en) * | 2018-08-29 | 2019-03-01 | 北京小米移动软件有限公司 | Environment light detection method, device, terminal and storage medium |
CN109192135A (en) * | 2018-09-27 | 2019-01-11 | 北京小米移动软件有限公司 | Environmental light brightness determining device and method |
CN109192135B (en) * | 2018-09-27 | 2020-09-08 | 北京小米移动软件有限公司 | Ambient light brightness determination device and method |
US10818224B2 (en) | 2018-09-27 | 2020-10-27 | Beijing Xiaomi Mobile Software Co., Ltd. | Apparatus and method for determining ambient light luminance, and non-transitory computer-readable storage medium |
WO2020151712A1 (en) * | 2019-01-22 | 2020-07-30 | Huawei Technologies Co., Ltd. | Indoor detections based on ambient light |
CN111486950B (en) * | 2020-04-20 | 2022-04-19 | Oppo广东移动通信有限公司 | Ambient light detection method, device, electronic device and storage medium |
CN111486950A (en) * | 2020-04-20 | 2020-08-04 | Oppo广东移动通信有限公司 | Ambient light detection method, device, electronic device and storage medium |
WO2021213016A1 (en) * | 2020-04-20 | 2021-10-28 | Oppo广东移动通信有限公司 | Ambient light detection method and device, electronic apparatus, and storage medium |
CN113852720A (en) * | 2020-06-28 | 2021-12-28 | 北京小米移动软件有限公司 | Ambient light determination method, ambient light determination device, terminal equipment and medium |
CN113997706A (en) * | 2021-10-29 | 2022-02-01 | 北京惠朗时代科技有限公司 | Stamping method and device of printing control instrument |
CN113997706B (en) * | 2021-10-29 | 2023-08-29 | 北京惠朗时代科技有限公司 | Stamping method and device of printing control instrument |
CN114333735A (en) * | 2021-12-27 | 2022-04-12 | 深圳市汇顶科技股份有限公司 | Method and device for detecting ambient light under display screen and electronic equipment |
CN114333735B (en) * | 2021-12-27 | 2023-07-14 | 深圳市汇顶科技股份有限公司 | Method and device for detecting ambient light under display screen and electronic equipment |
US12188814B2 (en) | 2021-12-27 | 2025-01-07 | Shenzhen GOODIX Technology Co., Ltd. | Method and apparatus for detecting ambient light under display screen, and electronic device |
CN117129085A (en) * | 2023-02-28 | 2023-11-28 | 荣耀终端有限公司 | Ambient light detection method, electronic device and readable storage medium |
CN117129085B (en) * | 2023-02-28 | 2024-05-31 | 荣耀终端有限公司 | Ambient light detection method, electronic device and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107917755A (en) | Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus | |
US11175824B2 (en) | Method for detecting ambient light intensity, storage medium and electronic device | |
WO2021238469A1 (en) | Page display method and apparatus for third-party application, and electronic device | |
CN107990978A (en) | Environment light detection method, device, storage medium and electronic equipment | |
US8885001B2 (en) | Reducing power consumption for a mobile terminal | |
CN109036296B (en) | Screen backlight brightness adjustment method, device, terminal and storage medium | |
US20210209404A1 (en) | Method for Adjusting Thematic Color, Storage Medium, and Electronic Device | |
CN107210024B (en) | Display device and control method thereof | |
CN112229507B (en) | Ambient light detection method and device, storage medium and mobile terminal | |
KR20200144827A (en) | Apparatus and method for driving display based on frequency operaion cycle set differntly according to frequency | |
JP6401785B2 (en) | Liquid crystal display method and apparatus | |
US9230476B2 (en) | Method and electronic device for reducing power consumption of display | |
CN107945747A (en) | Environment light detection method, device, storage medium and electronic equipment | |
CN109215578B (en) | Screen display method and device | |
US20140313218A1 (en) | Method and apparatus for controlling transparency in portable terminal having transparent display unit | |
KR102242407B1 (en) | Display apparatus and the control method thereof | |
JP2018505432A (en) | Liquid crystal display method and apparatus | |
KR20200113521A (en) | Display apparatus and the control method thereof | |
CN112004122B (en) | Electronic device and control method thereof | |
CN108111763B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN105913790A (en) | Method and device for adjusting display parameters of display screen | |
CN107968939A (en) | Display screen processing method, device, storage medium and electronic device | |
CN110737323A (en) | Screen display method, device, storage medium and terminal | |
KR102014779B1 (en) | Electronic apparatus and method of driving a display | |
US11243668B2 (en) | User interactive method and apparatus for controlling presentation of multimedia data on terminals |
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: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong Opel Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180417 |
|
RJ01 | Rejection of invention patent application after publication |