Nothing Special   »   [go: up one dir, main page]

CN107917755A - Environment light detection method, device, storage medium and electronic equipment - Google Patents

Environment light detection method, device, storage medium and electronic equipment Download PDF

Info

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
field picture
display
completely black
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711174691.7A
Other languages
Chinese (zh)
Inventor
张海平
周意保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711174691.7A priority Critical patent/CN107917755A/en
Publication of CN107917755A publication Critical patent/CN107917755A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/4204Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light

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

This application discloses a kind of environment light detection method, device, storage medium and electronic equipment, wherein method includes:Receive ambient light detection instruction;Detected and instructed according to the ambient light, determine whether the display screen is in running order;If so, then preset mark is carried in the display completely black two field picture of screen display, the completely black two field picture;When detecting the preset mark, the ambient light sensor is controlled to be detected the light intensity of the ambient light.The backlight that the embodiment of the present application can reduce display screen impacts ambient light sensor, and then improves accuracy in detection of the ambient light sensor to ambient light.

Description

Environment light detection method, device, storage medium and electronic equipment
Technical field
This application involves electronic technology field, and in particular to a kind of environment light detection method, device, storage medium and electronics Equipment.
Background technology
In order to show information to user, user experience is improved, usual electronic equipment can be equipped with least one piece of display screen, this is aobvious Display screen can adjust the backlight intensity of display screen by the ambient light sensor in electronic equipment, to ensure relaxing for display backlight Mildly conforming to the demand of eyes of user.And in application scenes, user usually needs to make under varying environment intensity of illumination With electronic equipment, the backlight intensity of display screen also can be constantly adjusted because of environment illumination intensity at this time.
But in order to make the detection of ambient light more accurate, the demand of user is looked after, general ambient light sensor can It is located at display screen in the same panel of electronic equipment, the backlight of display screen can interfere ambient light sensor.
The content of the invention
The embodiment of the present application provides a kind of environment light detection method, device, storage medium and electronic equipment, can improve electricity The ambient light accuracy in detection of sub- equipment.
In a first aspect, the embodiment of the present application provides a kind of environment light detection method, applied to electronic equipment, the electronics is set It is standby to include display screen and ambient light sensor, including:
Receive ambient light detection instruction;
Detected and instructed according to the ambient light, determine whether the display screen is in running order;
If so, then preset mark is carried in the display completely black two field picture of screen display, the completely black two field picture;
When detecting the preset mark, the ambient light sensor is controlled to examine the light intensity of the ambient light Survey.
Second aspect, a kind of ambient light detection device that the embodiment of the present application also provides, including:
Command reception module, for receiving ambient light detection instruction;
State determining module, instructs for being detected according to the ambient light, determines whether the display screen is in work shape State;
Display module, for if so, then being carried in the display completely black two field picture of screen display, the completely black two field picture Preset mark;And
Control module is detected, for when detecting the preset mark, controlling the ambient light sensor to the ring The light intensity of border light is detected.
The third aspect, the embodiment of the present application also provide a kind of storage medium, and the storage medium stores a plurality of instruction, described When a plurality of instruction is suitable for running on computers so that the computer performs environment light detection method as described above.
Fourth aspect, the embodiment of the present application also provide a kind of electronic equipment, including processor and memory, the memory A plurality of instruction is stored, the processor is used to perform ambient light detection as described above by loading the instruction in the memory Method.
A kind of environment light detection method provided by the embodiments of the present application, when ambient light sensor needs to obtain ambient light, If display screen is in running order at this time, completely black two field picture is shown on a display screen, and work as and detect the pre- of completely black two field picture Control is detected the light intensity of ambient light after bidding note, and the backlight that can reduce display screen causes shadow to ambient light sensor Ring, and then improve accuracy in detection of the ambient light sensor to ambient light.
Brief description of the drawings
Below in conjunction with the accompanying drawings, by the way that the embodiment of the application is described in detail, the technical solution of the application will be made And other beneficial effects are apparent.
Fig. 1 realizes flow chart for environment light detection method provided by the embodiments of the present application.
Fig. 2 realizes flow chart for the completely black two field picture of display provided by the embodiments of the present application.
Fig. 3 realizes flow chart for control ambient light sensor detection ambient light provided by the embodiments of the present application.
Fig. 4 realizes flow chart for the another of environment light detection method provided by the embodiments of the present application.
Fig. 5 is the structure diagram of ambient light detection device provided by the embodiments of the present application.
Fig. 6 is the structure diagram of display module provided by the embodiments of the present application.
Fig. 7 is the structure diagram of detection control module provided by the embodiments of the present application.
Fig. 8 is another structure diagram of ambient light detection device provided by the embodiments of the present application.
Fig. 9 is the first structure schematic diagram of electronic equipment provided by the embodiments of the present application.
Figure 10 is the second structure diagram of electronic equipment provided by the embodiments of the present application.
Figure 11 is the 3rd structure diagram of electronic equipment provided by the embodiments of the present application.
Figure 12 is the 4th structure diagram of electronic equipment provided by the embodiments of the present application.
Embodiment
Schema is refer to, wherein identical element numbers represent identical component, the principle of the application is to implement one Illustrated in appropriate computing environment.The following description is based on illustrated the application specific embodiment, it should not be by It is considered as limitation the application other specific embodiments not detailed herein.
Term as used herein " module " can be the software object performed in the arithmetic system.Difference as described herein Component, module, engine and service can be the objective for implementation in the arithmetic system.And device and method as described herein can be with The mode of software is implemented, and can also be implemented certainly on hardware, within the application protection domain.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Electronic equipment in the embodiment of the present application, can include mobile phone (or be " honeycomb " phone, such as intelligence hand Machine) or computer with wireless communication module, for example, tablet computer, it can also be portable, pocket, hand-held Car-mounted computer, they exchange language and/or data with wireless access network.For example, personal communication service (Personal Communication Service, PCS) phone, wireless phone, Session initiation Protocol (Session Initiation Protocol, SIP) phone, wireless local loop (Wireless Local Loop, WLL) stand, personal digital assistant Equipment such as (Personal Digital Assistant, PDA), is not limited thereto.
When this method is applied in electronic equipment, wherein, which may operate at the operation of electronic equipment In system, it may include but it is not limited to Windows operating system, Mac OS operating systems, Android operation system, IOS operations system System, Symbian (Saipan) operating system, Windows Phone operating systems etc., the embodiment of the present application does not limit.
Referring to Fig. 1, the environment light detection method in the embodiment of the present application is shown in figure realizes flow, for the ease of saying It is bright, it illustrate only in figure and the relevant part of teachings herein.
Display screen described in the embodiment of the present application, is liquid crystal display (the Liquid Crystal with backlight module Display, LCD) or self luminous organic light-emitting diode (OLED) display screen (Organic Light-Emitting Diode, OLED).The ambient light sensor, can perceive the light intensity situation of ambient light, be mainly made of light-sensitive element, Such as photo resistance, photodiode, phototriode, silicon photocell, and according to the light intensity situation of detected ambient light, Inform the backlight illumination of electronic equipment automatic adjustment display screen, so that the backlight illumination of display screen is matched with the light intensity of ambient light, Improve viewing effect of the user to display screen.
In certain embodiments, which comprises the following steps:
101st, ambient light detection instruction is received.
Wherein, ambient light detection instruction is detected for the light intensity of indicating ambient light sensors towards ambient light.
In certain embodiments, electronic equipment can pre-set the bar that some are used to trigger the detection instruction of build environment light Part, when certain conditions are met, can be detected with build environment light and instructed.Such as per minor tick preset duration, or work as display screen Acquisition ambient light is then triggered when screen state is switched to bright screen state from putting out, actual conditions can be set according to actual conditions It is fixed.
For example, electronic equipment sets the action that ambient light conditions are once obtained every triggering in 5 seconds, then then given birth at interval of 5 seconds Into an ambient light detection instruction, corresponding action is performed after electronic equipment receives ambient light detection instruction.
In certain embodiments, it can be examined by whether there is ambient light in monitoring system to receive ambient light detection instruction Instruction is surveyed to be received or actively attempted ambient light detection instruction to be obtained on predeterminated position, the application This is not construed as limiting.
102nd, detected and instructed according to ambient light, determine whether display screen is in running order;If so, then in the display screen The upper completely black two field picture of display;If it is not, do not respond then.
Wherein, which generally refers to display screen and is in " bright screen " state, that is, is working, the shape of display content State.
Because when display screen is used, the backlight intensity for adjusting display screen just would make sense.Therefore, electronic equipment is worked as After receiving ambient light detection instruction, it is thus necessary to determine that whether display screen is in running order.
In certain embodiments, determine whether display screen is in running order, the display screen and working status can be detected Relevant parameter.
For example, when " numerical value of parameter A " embodies the state of display screen, wherein, the state of display screen includes " working status " Or " closed mode ".If when " when parameter A " is " 1 ", which is in " working status ", and work as " when parameter A " is " 0 ", The display screen is in " closed mode ", then when detecting this " when the numerical value of parameter A " is " 1 ", it may be determined that the display screen is in Working status.
In certain embodiments, determine whether display screen is in running order, can also be by detecting the current of display screen Magnitude of voltage is determined.
For example, when the current voltage value of display screen is located at default operating voltage range, then can determine at the display screen In working status.Otherwise, when the voltage of display screen is not in default operating voltage range, then it can determine that the display screen is in and close Closed state or other holding states.
It should be noted that determining whether display screen is in running order also has other modes, can be existing by other There is technology realization, the application is not limited thereto.
103rd, completely black two field picture is shown on a display screen, and completely black two field picture carries preset mark.
Wherein, frame is the individual picture of least unit in image, animation, or is often refreshed during display screen is shown Once shown individual picture.The completely black two field picture refers to that all pixels in display screen are illustrated as the individual picture of black Image.The preset mark, for when detecting the mark, triggering and the corresponding operation of mark, such as control ambient light to pass Sensor works.
In certain embodiments, show completely black two field picture on a display screen, can be a certain frame shown by display screen or Multiple image is completely black two field picture.
For example, during the display of display screen, display screen can refresh the image of 60 frames of display in 1 second, then showing The completely black two field picture of screen display can be displayed in full screen in black image, or a few frames to be displayed in full screen in a frame wherein Black image.
In certain embodiments, preset mark can be by adding on the specific location of the display information of completely black two field picture Add particular values to be marked;Either certain section of instruction is added into the display information of the completely black two field picture, to work as electronics Equipment can read the instruction in passing when reading the display information, perform and the corresponding operation of instruction.
It should be noted that above-mentioned labeling method is intended only as reference purposes, the method for mark can also use existing skill Other modes in art, the embodiment of the present application are not construed as limiting specific indicia means.
104th, when detecting the preset mark, control ambient light sensor is detected the light intensity of ambient light.
In certain embodiments, when detecting the preset mark, corresponding ambient light detection instruction can be performed to touch Send out the work of ambient light sensor.When ambient light sensor works, ambient light sensor can be by the photosensitive of current environment light Data (such as change of the detection limit caused by the change in resistance of photosensitive component) are converted to light intensity data, and by light intensity data It is sent in the processor of electronic equipment and is handled, completes the detection control to ambient light.
It is at this time completely black two field picture because of display screen display, it is believed that the backlight on display screen is to ambient light at this time The influence of sensor is reduced to minimum, and then improves the detection accuracy of ambient light sensor.
In certain embodiments, because the acquisition of ambient light sensor performing environment light needs the regular hour when acting, it is The influence of ambient light sensor can be reduced to minimum by ensureing to show completely black two field picture, and the display duration of completely black two field picture can be with Required detection duration during more than ambient light sensor detection ambient light.
For example, the ambient light sensor detection ambient light required time is the display duration of 5ms, the then completely black two field picture 5ms is should be greater than, ensures that ambient light sensor will not make during ambient light is detected because completely black two field picture is popped out Its accuracy in detection is affected.
In certain embodiments, which can be arranged in the non-display area outside display screen side, Display screen rear, namely the opposite side of opposite display direction can also be arranged on.When the ambient light sensor is arranged on display screen During rear, because the stop of display screen, the influence of the display backlight suffered by ambient light sensor can bigger.Passed in ambient light Sensor detect ambient light when show completely black two field picture, can it is more efficient reduce display backlight influence, greatly improve environment The accuracy in detection and reliability of optical sensor.
In environment light detection method provided by the embodiments of the present application, when ambient light sensor needs to obtain ambient light, If display screen is in running order at this time, completely black two field picture is shown on a display screen, and work as and detect the pre- of completely black two field picture Control is detected the light intensity of ambient light after bidding note, and the backlight that can reduce display screen causes shadow to ambient light sensor Ring, and then improve accuracy in detection of the ambient light sensor to ambient light.
Referring to Fig. 2, the completely black two field picture of display provided by the embodiments of the present application is shown in figure realizes flow, for the ease of Illustrate, illustrate only in figure and the relevant part of teachings herein.
In certain embodiments, completely black two field picture is shown on a display screen, including:
201st, the display information of the completely black two field picture is obtained.
Wherein, show that information is to include the position of each pixel in a certain two field picture, and the pixel is to display Color or gray scale, can be shown corresponding a certain two field picture by the display information in display screen.This is completely black The display information of two field picture, can be stored in advance in the memory of electronic equipment.
202nd, the display information using the display information of the completely black two field picture as next two field picture, and to the completely black frame Processing is marked in the display information of image.
Wherein, which is such as the frame number of current display frame image for current display frame image Position is " N ", then the frame number position of next two field picture is in the next frame of current display frame image, namely " N+1 ".
In certain embodiments, may comprise steps of:
The display timing information of display content is obtained, next two field picture is determined according to display timing information;
The display information of next two field picture is obtained, the display information of next two field picture is replaced with into the display of completely black two field picture Information.
Wherein, show that timing information is used to marking the display order of each frame during the display of display content, it is necessary to aobvious The each two field picture shown has corresponding frame number position, and display timing information can embody the frame number position of each two field picture.
For example, if desired playing one section of image, generally the display information of each frame in this section of image can be stored in memory, And it is labeled to the storage location of the display information of each two field picture.
When needing to obtain the display information of next two field picture, the display timing information that can first pass through this section of image determines The frame number position of current display frame image, and according to the frame number position in the storage location of the display information of next two field picture it is right Information is obtained.
For example, the frame number position of current display frame image is " N ", then the frame number position that can determine its next two field picture is " N+1 ", is then obtained display information in the storage location according to corresponding to the frame number position " N+1 " of next two field picture Take.
When the display information for getting next two field picture, then the display information of next two field picture can will be stored with entirely The display information of black two field picture is replaced, and the display information of completely black two field picture is stored in the display information of next two field picture Storage location in.
In certain embodiments, which can pass through the middle addition on the specific location of the display information of completely black two field picture Particular values are marked;Either certain section of instruction is added into the display information of the completely black two field picture, to be set when electronics The instruction, execution and instruction corresponding operation can be read during standby reading display information in passing.
It should be noted that above-mentioned labeling method is intended only as reference purposes, the method for mark can also use existing skill Other modes in art, the embodiment of the present application are not construed as limiting specific indicia means.
203rd, under load a two field picture when, completely black frame figure is shown according to the display information of completely black two field picture on a display screen Picture.
In certain embodiments, if the display sequential of current display frame image terminates, in order to next show next frame figure Picture, can load the display information of next two field picture at this time.
Because the display information of next two field picture is replaced with to the display information of completely black two field picture, under load a frame During image, the display information of completely black two field picture is actually loaded with, completely black frame can then be shown at this time by showing during next two field picture Image.
It follows that the display information by obtaining completely black two field picture, and next two field picture that needs are shown Display information replaces with the display information of completely black two field picture, and completely black two field picture is shown during a two field picture under load, can Completely black two field picture is inserted into any original display content so that it is more easy to be inserted into completely black two field picture to realize.
Referring to Fig. 3, the realization of control ambient light sensor detection ambient light provided by the embodiments of the present application is shown in figure Flow, illustrate only and the relevant part of teachings herein for convenience of description, in figure.
In certain embodiments, when detecting preset mark, control ambient light sensor carries out the light intensity of ambient light Detection, may comprise steps of:
301st, the display information of next two field picture is read;
In certain embodiments,, can when needing to read the display information of next two field picture during playing video The frame number position of current display frame image is determined to first pass through the display timing information of this section of image, and is existed according to the frame number position Information is read out in the storage location of the display information of next two field picture.
For example, the frame number position of current display frame image is " N ", then the frame number position that can determine its next two field picture is " N+1 ", is then read display information in the storage location according to corresponding to the frame number position " N+1 " of next two field picture Take.
302nd, judge whether include preset mark in the display information of next two field picture;
In certain embodiments, preset mark can by the specific location of the display information of next two field picture to pre- The corresponding parameter of bidding note is obtained, judged.
The display information of next two field picture is either performed, and works as and shows in information that there is finger corresponding with preset mark When making, determine to include preset mark in the display information of next two field picture.
If the parameter corresponding to preset mark is not got from the specific location of the display information of next two field picture, or Person is not include instruction corresponding with preset mark in the display information of next two field picture, then can determine the aobvious of next two field picture Show not including in information have preset mark.
303rd, if so, then control ambient light sensor is detected the light intensity of ambient light.
In certain embodiments, when including preset mark in the display information of next two field picture, can confirm that under this One two field picture is completely black two field picture, at this time ambient light sensor can be controlled to be detected the light intensity of ambient light, aobvious to utilize Show the chance of completely black two field picture, to cause the light intensity of the ambient light acquired in ambient light sensor close to environment actual value, so that Improve the accuracy in detection of ambient light sensor.
It follows that whether including preset mark in display information by judging next two field picture, come true exactly Whether fixed next two field picture is completely black two field picture, and utilizes and control ambient light sensor during completely black two field picture is shown Obtain ambient light.Also, the embodiment can quickly identify and determine whether next frame can show completely black two field picture, so as to Ambient light sensor is pre-actuated, improves system response speed.Referring to Fig. 4, ring provided by the embodiments of the present application is shown in figure The another of border light detection method realizes flow, illustrate only for convenience of description, in figure and the relevant part of teachings herein.
In certain embodiments, a kind of environment light detection method, including:
Whether interval duration when the 401st, detecting distance last time ambient light sensor obtains ambient light reaches preset value;If It is then to trigger the detection instruction of build environment light.
Wherein, preset value is any one natural number, such as 5 seconds, 1 minute etc., concrete numerical value can be according to actual conditions Depending on.
In certain embodiments, after each ambient light sensor has detected the light intensity of ambient light, can triggering timing device into Row timing, and trigger the detection instruction of build environment light again after the completion of default timer task, with indicative for environments optical sensor Ambient light is detected again.
Certainly, actual ambient light detection instruction can also be carried out from putting out when screen state is switched to bright screen state in display screen Triggering generation.
402nd, the detection instruction of build environment light is triggered.
In certain embodiments, ambient light detection instruction can by system by pre-set programs perform generation or Generated from hardware end, the application is not limited thereto.
For example, electronic equipment sets the action that ambient light conditions are once obtained every triggering in 5 seconds, then then given birth at interval of 5 seconds Into an ambient light detection instruction, corresponding action is performed after electronic equipment receives ambient light detection instruction.
403rd, ambient light detection instruction is received.
In certain embodiments, it can be examined by whether there is ambient light in monitoring system to receive ambient light detection instruction Instruction is surveyed to be received or actively attempted ambient light detection instruction to be obtained on predeterminated position, the application This is not construed as limiting.
404th, detected and instructed according to ambient light, determine whether display screen is in running order.
Wherein, which generally refers to display screen and is in " bright screen " state, that is, is working, the shape of display content State.
In certain embodiments, determine whether display screen is in running order, the display screen and working status can be detected Relevant parameter.
In certain embodiments, determine whether display screen is in running order, can also be by detecting the current of display screen Magnitude of voltage is determined.
It should be noted that determining whether display screen is in running order also has other modes, can be existing by other There is technology realization, the application is not limited thereto.
405th, completely black two field picture is shown on a display screen, and completely black two field picture carries preset mark.
Wherein, frame is the individual picture of least unit in image, animation, or is often refreshed during display screen is shown Once shown individual picture.The completely black two field picture refers to that all pixels in display screen are illustrated as the individual picture of black Image.The preset mark, for when detecting the mark, triggering and the corresponding operation of mark, such as control ambient light to pass Sensor works.
In certain embodiments, show completely black two field picture on a display screen, can be a certain frame shown by display screen or Multiple image is completely black two field picture.
In certain embodiments, preset mark can be by adding on the specific location of the display information of completely black two field picture Add particular values to be marked;Either certain section of instruction is added into the display information of the completely black two field picture, to work as electronics Equipment can read the instruction in passing when reading the display information, perform and the corresponding operation of instruction.
It should be noted that above-mentioned labeling method is intended only as reference purposes, the method for mark can also use existing skill Other modes in art, the embodiment of the present application are not construed as limiting specific indicia means.
406th, when detecting the preset mark, control ambient light sensor is detected the light intensity of ambient light.
In certain embodiments, when detecting the preset mark, corresponding ambient light detection instruction can be performed to touch Send out the work of ambient light sensor.When ambient light sensor works, ambient light sensor can be by the photosensitive of current environment light Data (such as change of the detection limit caused by the change in resistance of photosensitive component) are converted to light intensity data, and by light intensity data It is sent in the processor of electronic equipment and is handled, completes the detection control to ambient light.
It is at this time completely black two field picture because of display screen display, it is believed that the backlight on display screen is to ambient light at this time The influence of sensor is reduced to minimum, and then improves the detection accuracy of ambient light sensor.
In certain embodiments, because the acquisition of ambient light sensor performing environment light needs the regular hour when acting, it is The influence of ambient light sensor can be reduced to minimum by ensureing to show completely black two field picture, and the display duration of completely black two field picture can be with Required detection duration during more than ambient light sensor detection ambient light.
In environment light detection method provided by the embodiments of the present application, by judging whether its interval duration reaches default Value, can in a planned way obtain the change of ambient light, so as in advance to being inserted into completely black two field picture using ambient light sensor Action prepared in advance, improve the efficiency for being inserted into completely black two field picture, light of the control to ambient light when showing completely black two field picture It is detected by force, the backlight that can reduce display screen impacts ambient light sensor, and then improves ambient light sensor pair The accuracy in detection of ambient light.
Referring to Fig. 5, the structure of the ambient light detection device in the embodiment of the present application is shown in figure, for convenience of description, It illustrate only in figure and the relevant part of teachings herein.
Display screen described in the embodiment of the present application, is liquid crystal display (the Liquid Crystal with backlight module Display, LCD) or self luminous organic light-emitting diode (OLED) display screen (Organic Light-Emitting Diode, OLED).The ambient light sensor, can perceive the light intensity situation of ambient light, be mainly made of light-sensitive element, Such as photo resistance, photodiode, phototriode, silicon photocell, and according to the light intensity situation of detected ambient light, Inform the backlight illumination of electronic equipment automatic adjustment display screen, so that the backlight illumination of display screen is matched with the light intensity of ambient light, Improve viewing effect of the user to display screen.
In certain embodiments, which includes 501 state of command reception module, determining module, display Module 503 and detection control module 504.
Wherein, command reception module 501, for receiving ambient light detection instruction.
Ambient light detection instruction is detected for the light intensity of indicating ambient light sensors towards ambient light.
In certain embodiments, electronic equipment can pre-set the bar that some are used to trigger the detection instruction of build environment light Part, when certain conditions are met, can be detected with build environment light and instructed.Such as per minor tick preset duration, or work as display screen Acquisition ambient light is then triggered when screen state is switched to bright screen state from putting out, actual conditions can be set according to actual conditions It is fixed.
For example, electronic equipment sets the action that ambient light conditions are once obtained every triggering in 5 seconds, then then given birth at interval of 5 seconds Into an ambient light detection instruction, corresponding action is performed after electronic equipment receives ambient light detection instruction.
In certain embodiments, it can be examined by whether there is ambient light in monitoring system to receive ambient light detection instruction Instruction is surveyed to be received or actively attempted ambient light detection instruction to be obtained on predeterminated position, the application This is not construed as limiting.
State determining module 502, instructs for being detected according to ambient light, determines whether display screen is in running order.
Wherein, which generally refers to display screen and is in " bright screen " state, that is, is working, the shape of display content State.
Because when display screen is used, the backlight intensity for adjusting display screen just would make sense.Therefore, electronic equipment is worked as After receiving ambient light detection instruction, it is thus necessary to determine that whether display screen is in running order.
In certain embodiments, determine whether display screen is in running order, the display screen and working status can be detected Relevant parameter.
In certain embodiments, determine whether display screen is in running order, can also be by detecting the current of display screen Magnitude of voltage is determined.
For example, when the current voltage value of display screen is located at default operating voltage range, then can determine at the display screen In working status.Otherwise, when the voltage of display screen is not in default operating voltage range, then it can determine that the display screen is in and close Closed state or other holding states.
It should be noted that determining whether display screen is in running order also has other modes, can be existing by other There is technology realization, the application is not limited thereto.
Display module 503, for showing completely black two field picture on a display screen, completely black two field picture carries preset mark.
Wherein, frame is the individual picture of least unit in image, animation, or is often refreshed during display screen is shown Once shown individual picture.The completely black two field picture refers to that all pixels in display screen are illustrated as the individual picture of black Image.The preset mark, for when detecting the mark, triggering and the corresponding operation of mark, such as control ambient light to pass Sensor works.
In certain embodiments, show completely black two field picture on a display screen, can be a certain frame shown by display screen or Multiple image is completely black two field picture.
In certain embodiments, preset mark can be by adding on the specific location of the display information of completely black two field picture Add particular values to be marked;Either certain section of instruction is added into the display information of the completely black two field picture, to work as electronics Equipment can read the instruction in passing when reading the display information, perform and the corresponding operation of instruction.
It should be noted that above-mentioned labeling method is intended only as reference purposes, the method for mark can also use existing skill Other modes in art, the embodiment of the present application are not construed as limiting specific indicia means.
Control module 504 is detected, for when detecting the preset mark, control ambient light sensor to be to ambient light Light intensity is detected.
In certain embodiments, when detecting the preset mark, corresponding ambient light detection instruction can be performed to touch Send out the work of ambient light sensor.When ambient light sensor works, ambient light sensor can be by the photosensitive of current environment light Data (such as change of the detection limit caused by the change in resistance of photosensitive component) are converted to light intensity data, and by light intensity data It is sent in the processor of electronic equipment and is handled, completes the detection control to ambient light.
It is at this time completely black two field picture because of display screen display, it is believed that the backlight on display screen is to ambient light at this time The influence of sensor is reduced to minimum, and then improves the detection accuracy of ambient light sensor.
In certain embodiments, because the acquisition of ambient light sensor performing environment light needs the regular hour when acting, it is The influence of ambient light sensor can be reduced to minimum by ensureing to show completely black two field picture, and the display duration of completely black two field picture can be with Required detection duration during more than ambient light sensor detection ambient light.
In certain embodiments, which can be arranged in the non-display area outside display screen side, Display screen rear, namely the opposite side of opposite display direction can be arranged on.After the ambient light sensor is arranged on display screen Fang Shi, because the stop of display screen, the influence of the display backlight suffered by ambient light sensor can bigger.In ambient light sensing Device detect ambient light when show completely black two field picture, can it is more efficient reduce display backlight influence, greatly improve ambient light The accuracy in detection and reliability of sensor.
In ambient light detection device provided by the embodiments of the present application, when ambient light sensor needs to obtain ambient light, If display screen is in running order at this time, completely black two field picture is shown on a display screen, and work as and detect the pre- of completely black two field picture Control is detected the light intensity of ambient light after bidding note, and the backlight that can reduce display screen causes shadow to ambient light sensor Ring, and then improve accuracy in detection of the ambient light sensor to ambient light.
Referring to Fig. 6, the structure of the display module in the embodiment of the present application is shown in figure, for convenience of description, in figure only Show and the relevant part of teachings herein.
In certain embodiments, the display module 503, including acquisition of information submodule 5031, information processing submodule 5032 and display sub-module 5033.
Acquisition of information submodule 5031, for obtaining the display information of the completely black two field picture.
Wherein, show that information is to include the position of each pixel in a certain two field picture, and the pixel is to display Color or gray scale, can be shown corresponding a certain two field picture by the display information in display screen.This is completely black The display information of two field picture, can be stored in advance in the memory of electronic equipment.
Information processing submodule 5032, for the display using the display information of the completely black two field picture as next two field picture Information, and processing is marked to the display information of the completely black two field picture.
Wherein, which is such as the frame number of current display frame image for current display frame image Position is " N ", then the frame number position of next two field picture is in the next frame of current display frame image, namely " N+1 ".
In certain embodiments, may comprise steps of:
The display timing information of display content is obtained, next two field picture is determined according to display timing information;
The display information of next two field picture is obtained, the display information of next two field picture is replaced with into the display of completely black two field picture Information.
Wherein, show that timing information is used to marking the display order of each frame during the display of display content, it is necessary to aobvious The each two field picture shown has corresponding frame number position, and display timing information can embody the frame number position of each two field picture.
For example, if desired playing one section of image, generally the display information of each frame in this section of image can be stored in memory, And it is labeled to the storage location of the display information of each two field picture.When needing to obtain the display information of next two field picture, The display timing information that this section of image can be first passed through determines the frame number position of current display frame image, and according to the frame number position Information is obtained in the storage location of the display information of next two field picture.
For example, the frame number position of current display frame image is " N ", then the frame number position that can determine its next two field picture is " N+1 ", is then obtained display information in the storage location according to corresponding to the frame number position " N+1 " of next two field picture Take.
When the display information for getting next two field picture, then the display information of next two field picture can will be stored with entirely The display information of black two field picture is replaced, and the display information of completely black two field picture is stored in the display information of next two field picture Storage location in.
In certain embodiments, which can pass through the middle addition on the specific location of the display information of completely black two field picture Particular values are marked;Either certain section of instruction is added into the display information of the completely black two field picture, to be set when electronics The instruction, execution and instruction corresponding operation can be read during standby reading display information in passing.
It should be noted that above-mentioned labeling method is intended only as reference purposes, the method for mark can also use existing skill Other modes in art, the embodiment of the present application are not construed as limiting specific indicia means.
Display sub-module 5033, during for a two field picture under load, is showing according to the display information of completely black two field picture The completely black two field picture of screen display.
In certain embodiments, if the display sequential of current display frame image terminates, in order to next show next frame figure Picture, can load the display information of next two field picture at this time.
Because the display information of next two field picture is replaced with to the display information of completely black two field picture, under load a frame During image, the display information of completely black two field picture is actually loaded with, completely black frame can then be shown at this time by showing during next two field picture Image.
It follows that the display information by obtaining completely black two field picture, and next two field picture that needs are shown Display information replaces with the display information of completely black two field picture, and completely black two field picture is shown during a two field picture under load, can Completely black two field picture is inserted into any original display content so that it is more easy to be inserted into completely black two field picture to realize.
Referring to Fig. 7, the structure of detection control module provided by the embodiments of the present application is shown in figure, for convenience of description, It illustrate only in figure and the relevant part of teachings herein.
In certain embodiments, the detection control module 504, can include information reading submodule 5041 and control Submodule 5042:
Wherein, information reading submodule 5041, for reading the display information of next two field picture.
In certain embodiments,, can when needing to read the display information of next two field picture during playing video The frame number position of current display frame image is determined to first pass through the display timing information of this section of image, and is existed according to the frame number position Information is read out in the storage location of the display information of next two field picture.
For example, the frame number position of current display frame image is " N ", then the frame number position that can determine its next two field picture is " N+1 ", is then read display information in the storage location according to corresponding to the frame number position " N+1 " of next two field picture Take.
Whether control submodule 5042, include preset mark in the display information for judging next two field picture;If so, Then control ambient light sensor is detected the light intensity of ambient light.
In certain embodiments, preset mark can by the specific location of the display information of next two field picture to pre- The corresponding parameter of bidding note is obtained, judged.
The display information of next two field picture is either performed, and works as and shows in information that there is finger corresponding with preset mark When making, determine to include preset mark in the display information of next two field picture.
If the parameter corresponding to preset mark is not got from the specific location of the display information of next two field picture, or Person is not include instruction corresponding with preset mark in the display information of next two field picture, then can determine the aobvious of next two field picture Show not including in information have preset mark.
In certain embodiments, when including preset mark in the display information of next two field picture, can confirm that under this One two field picture is completely black two field picture, at this time ambient light sensor can be controlled to be detected the light intensity of ambient light, aobvious to utilize Show the chance of completely black two field picture, to cause the light intensity of the ambient light acquired in ambient light sensor close to environment actual value, so that Improve the accuracy in detection of ambient light sensor.
It follows that whether including preset mark in display information by judging next two field picture, come true exactly Whether fixed next two field picture is completely black two field picture, and utilizes and control ambient light sensor during completely black two field picture is shown Obtain ambient light.Also, the embodiment can quickly identify and determine whether next frame can show completely black two field picture, so as to Ambient light sensor is pre-actuated, improves system response speed.
Referring to Fig. 8, another structure of the ambient light detection device in the embodiment of the present application is shown in figure, for the ease of saying It is bright, it illustrate only in figure and the relevant part of teachings herein.
In certain embodiments, a kind of ambient light detection device, including duration detection module 505, command reception module 501 State, determining module, display module 503 and detection control module 504.
Duration detection module 505, interval duration during ambient light is obtained for detecting distance last time ambient light sensor Whether preset value is reached;If so, then trigger the detection instruction of build environment light.
Wherein, preset value is any one natural number, such as 5 seconds, 1 minute etc., concrete numerical value can be according to actual conditions Depending on.
In certain embodiments, after each ambient light sensor has detected the light intensity of ambient light, can triggering timing device into Row timing, and trigger the detection instruction of build environment light again after the completion of default timer task, with indicative for environments optical sensor Ambient light is detected again.
Certainly, actual ambient light detection instruction can also be carried out from putting out when screen state is switched to bright screen state in display screen Triggering generation.
In certain embodiments, ambient light detection instruction can by system by pre-set programs perform generation or Generated from hardware end, the application is not limited thereto.
For example, electronic equipment sets the action that ambient light conditions are once obtained every triggering in 5 seconds, then then given birth at interval of 5 seconds Into an ambient light detection instruction, corresponding action is performed after electronic equipment receives ambient light detection instruction.
Command reception module 501, for receiving ambient light detection instruction.
State determining module 502, instructs for being detected according to ambient light, determines whether display screen is in running order.
Display module 503, for showing completely black two field picture on a display screen, completely black two field picture carries preset mark.
Control module 504 is detected, for when detecting the preset mark, control ambient light sensor to be to ambient light Light intensity is detected.
Wherein, 501 state of command reception module, determining module, display module 503 and detection control module 504 can be with With reference to the description in Fig. 5, therefore not to repeat here by the application.
In ambient light detection device provided by the embodiments of the present application, by judging whether its interval duration reaches default Value, can in a planned way obtain the change of ambient light, so as in advance to being inserted into completely black two field picture using ambient light sensor Action prepared in advance, improve the efficiency for being inserted into completely black two field picture, controlled when show completely black two field picture to ambient light Light intensity is detected, and the backlight that can reduce display screen impacts ambient light sensor, and then improves ambient light sensor To the accuracy in detection of ambient light.
In the embodiment of the present application, the ambient light detection device and a kind of environment light detection method category in foregoing embodiments In same design, any provided in the environment light detection method embodiment can be run on the ambient light detection device Method, its specific implementation process refers to the environment light detection method embodiment, and can form the application using any combination Alternative embodiment, details are not described herein again.
Referring to Fig. 9, Fig. 9 is the structure diagram of electronic equipment provided by the embodiments of the present application.Wherein, electronic equipment 600 Including cover board 610, display screen 620, circuit board 630, housing 640 and the ambient light sensing inside the housing 640 Device 650.
Cover board 610 is installed on display screen 620, to cover display screen 620.Cover board 610 can be transparent glass cover plate. In some embodiments, cover board 610 can be with glass cover-plates made of material such as sapphires.
Display screen 620 is installed on housing 640, to form the display surface of electronic equipment 600.In certain embodiments, show Display screen 620 includes display area 621 and non-display area 622.Wherein, display area 621 is used to show that image, text etc. are believed Breath.Non-display area 622 does not show information.Non-display area 622 can be used for setting some functional units, such as camera, The functional units such as fingerprint recognition module.
In certain embodiments, display screen 620 can be displayed in full screen.That is, display screen 620 only includes display area 621, Without including non-display area, as shown in Figure 10.
In certain embodiments, display screen 620 can be liquid crystal display (Liquid Crystal Display, LCD) Or organic light-emitting diode (OLED) display screen (Organic Light-Emitting Diode, OLED).
Circuit board 630 is installed on inside housing 640.Circuit board 630 can be the mainboard of electronic equipment 600.Circuit board 630 On can be integrated with the functional units such as camera and processor.Meanwhile display screen 620 can be electrically connected to circuit board 630.
In certain embodiments, it is provided with display control circuit on circuit board 630.The display control circuit is to display screen 620 output electric signals, information is shown with control display screen 620.
Housing 640 is used for the exterior contour for forming electronic equipment 600.The material of housing 640 can be plastics or metal.Shell Body 640 can be integrally formed.
Ambient light sensor 650 is installed on inside housing 640.Meanwhile ambient light sensor 650 is electrically connected to circuit board 630.For example, ambient light sensor 650 can be integrated on circuit board 630.Ambient light sensor 650 is used to detect environmental light intensity Degree, so that electronic equipment 600 can adjust display screen 620 according to the ambient light intensity that the ambient light sensor 650 detects Brightness so that the brightness of display screen 620 is adapted with surrounding environment.For example, in dark environment, electronic equipment 600 The brightness of display screen 620 can be reduced;In brighter environment, electronic equipment 600 can improve the brightness of display screen 620.
In the embodiment of the present application, ambient light sensor 650 can be set with the display area 621 of face display screen 620. That is, orthographic projection of the ambient light sensor 650 on display screen 620 is located at the display area 621 of the display screen 620.It can manage Solution, ambient light sensor 650 gathers external environment condition light through the display area 621 of the display screen 620 at this time, to realize Detect ambient light intensity.That is, external environment condition light enters the environment through the display area 621 of the display screen 620 In optical sensor 650.
In certain embodiments, the ambient light sensor 650 can be with the display area 621 of display screen described in face 620 Edge set.For example, the ambient light sensor 650 can be with the top edge, lower edge, a left side of display area described in face 621 The positions such as edge, right hand edge are set.
In certain embodiments, the display area 621 of display screen 620 can be rectangular area.At this time, the ambient light passes Sensor 650 can be set with positions such as the upper left corner of display area described in face 621, the lower left corner, the upper right corner, the lower right corner.
In certain embodiments, the ambient light sensor 650 can also be arranged on the side of display screen 620, and cover Perforate is opened up on plate 610, so that ambient light enters ambient light sensor 650 by perforate.
The embodiment of the present application also provides a kind of electronic equipment, which can be smart mobile phone, tablet computer, desk-top The equipment such as computer, notebook, palm PC.1 is please referred to Fig.1, electronic equipment 700 includes processor 701 and memory 702. Wherein, processor 701 is electrically connected with memory 702.
The processor 700 is the control centre of electronic equipment 700, is set using various interfaces and the whole electronics of connection Standby various pieces, by the application program of operation or load store in memory 702, and call and are stored in memory Data in 702, perform the various functions of electronic equipment 700 and handle data, so as to carry out overall prison to electronic equipment 700 Control.
The memory 702 can be used for storage software program and module, and processor 701 is stored in memory by operation 702 software program and module, so as to perform various functions application and data processing.Memory 702 can mainly include depositing Program area and storage data field are stored up, wherein, storing program area can storage program area, the application program needed at least one function (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored uses what is created according to server Data etc..In addition, memory 702 can include high-speed random access memory, nonvolatile memory can also be included, such as At least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 702 can be with Including Memory Controller, to provide access of the processor 701 to memory 702.
In the embodiment of the present application, the processor 701 in electronic equipment 700 can be according to the steps, by one or one The corresponding instruction of process of application program more than a is loaded into memory 702, and is stored in storage by the operation of processor 701 Application program in device 702 is as follows so as to fulfill various functions:
Receive ambient light detection instruction;Detected and instructed according to the ambient light, determine whether the display screen is in work State;If so, then preset mark is carried in the display completely black two field picture of screen display, the completely black two field picture;Work as detection During to the preset mark, the ambient light sensor is controlled to be detected the light intensity of the ambient light.
In some embodiments, the processor 701 can be also used for:
Obtain the display information of the completely black two field picture;Using the display information of the completely black two field picture as next two field picture Display information, and processing is marked to the display information of the completely black two field picture;When loading next two field picture, root According to the display information of the completely black two field picture in the display completely black two field picture of screen display.
In some embodiments, the processor 701 can be also used for:
The display timing information of display content is obtained, next two field picture is determined according to the display timing information;Under acquisition The display information of next two field picture, is replaced with the display information of the completely black two field picture by the display information of one two field picture.
In some embodiments, the processor 701 can be also used for:
Read the display information of next two field picture;Judge whether include in the display information of next two field picture The preset mark;If so, the ambient light sensor is then controlled to be detected the light intensity of the ambient light.
In some embodiments, the processor 701 can be also used for:
Whether interval duration when the last ambient light sensor of detecting distance obtains ambient light reaches preset value;If It is that then triggering generates the ambient light detection instruction.
Electronic equipment provided by the embodiments of the present application, when ambient light sensor needs to obtain ambient light, if showing at this time Shield in running order, then show completely black two field picture on a display screen, and controlled after the preset mark of completely black two field picture is detected Make and the light intensity of ambient light is detected, the backlight that can reduce display screen impacts ambient light sensor, and then improves Accuracy in detection of the ambient light sensor to ambient light.
Also referring to Figure 12, in some embodiments, electronic equipment 700 can also include:Display screen 703, radio frequency Circuit 704, voicefrequency circuit 705, wireless fidelity module 706 and power supply 707.Wherein, wherein, display screen 703, radio circuit 704th, voicefrequency circuit 705, wireless fidelity module 706, power supply 707 and ambient light sensor 708 are electrical with processor 701 respectively Connection.
The display screen 703 is displayed for by information input by user or is supplied to the information of user and various figures Shape user interface, these graphical user interface can be made of figure, text, icon, video and its any combination.Display screen 703 can include display panel, in some embodiments, can use liquid crystal display (LCD, Liquid Crystal Display) or the form such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) is aobvious to configure Show panel.
The radio circuit 704 can be used for transceiving radio frequency signal, to pass through wireless communication and the network equipment or other electricity Sub- equipment establishes wireless telecommunications, the receiving and transmitting signal between the network equipment or other electronic equipments.
The voicefrequency circuit 705 can be used for providing the audio between user and electronic equipment by loudspeaker, microphone Interface.
The wireless fidelity module 706 can be used for short range wireless transmission, and user can be helped to send and receive e-mail, is clear Look at and website and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.
The power supply 707 is used to all parts power supply of electronic equipment 700.In certain embodiments, power supply 707 Can be logically contiguous by power-supply management system and processor 701, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
The ambient light sensor 708 can perceive the light intensity situation of ambient light, be mainly made of light-sensitive element, such as light Quick resistance, photodiode, phototriode, silicon photocell etc., when ambient light sensor works, ambient light sensor can be with The light sensitive data (such as change of the detection limit caused by the change in resistance of photosensitive component) of current environment light is converted into light Strong data, and light intensity data is sent in the processor of electronic equipment and is handled, complete the detection control to ambient light.
In certain embodiments, which can be arranged on the non-display area outside display screen side In, display screen rear, namely the opposite side of opposite display direction can also be arranged on.
Although not shown in Figure 12, electronic equipment 700 can also include camera, bluetooth module etc., and details are not described herein.
The embodiment of the present application also provides a kind of storage medium, and the storage medium stores a plurality of instruction, a plurality of instruction Suitable for being loaded by processor to perform the environment light detection method in above-described embodiment, such as:Receive ambient light detection instruction;Root Detect and instruct according to the ambient light, determine whether the display screen is in running order;If so, then in the display screen display Completely black two field picture, the completely black two field picture carry preset mark;When detecting the preset mark, the ambient light is controlled Sensor is detected the light intensity of the ambient light.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps are relevant hardware can be instructed to complete by program, which can be stored in computer-readable medium In, which can include but is not limited to:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Environment light detection method, device, storage medium and the electronic equipment provided above the embodiment of the present application carries out It is discussed in detail, specific case used herein is set forth the principle and embodiment of the application, above example Explanation be only intended to help and understand the present processes and its core concept;Meanwhile for those skilled in the art, foundation The thought of the application, there will be changes in specific embodiments and applications, in conclusion this specification content is not It is interpreted as the limitation to the application.

Claims (10)

1. a kind of environment light detection method, applied to electronic equipment, the electronic equipment includes display screen and ambient light sensing Device, it is characterised in that including:
Receive ambient light detection instruction;
Detected and instructed according to the ambient light, determine whether the display screen is in running order;
If so, then preset mark is carried in the display completely black two field picture of screen display, the completely black two field picture;
When detecting the preset mark, the ambient light sensor is controlled to be detected the light intensity of the ambient light.
2. environment light detection method as claimed in claim 1, it is characterised in that described in the display completely black frame of screen display Image, including:
Obtain the display information of the completely black two field picture;
Display information using the display information of the completely black two field picture as next two field picture, and the completely black two field picture is shown Show that processing is marked in information;
It is completely black in the display screen display according to the display information of the completely black two field picture when loading next two field picture Two field picture.
3. environment light detection method as claimed in claim 2, it is characterised in that the display by the completely black two field picture is believed The display information as next two field picture is ceased, including:
The display timing information of display content is obtained, next two field picture is determined according to the display timing information;
The display information of next two field picture is obtained, the display information of next two field picture is replaced with into the completely black two field picture Show information.
4. environment light detection method as claimed in claim 2, it is characterised in that it is described when detecting the preset mark, The ambient light sensor is controlled to be detected the light intensity of the ambient light, including:
Read the display information of next two field picture;
Judge whether include the preset mark in the display information of next two field picture;
If so, the ambient light sensor is then controlled to be detected the light intensity of the ambient light.
5. the environment light detection method as described in claim 1-4 any one, it is characterised in that the completely black two field picture is shown Show that duration is more than the ambient light sensor and detects detection duration required during the ambient light.
6. a kind of ambient light detection device, arranged on electronic equipment, the electronic equipment includes display screen and ambient light sensor, It is characterised in that it includes:
Command reception module, for receiving ambient light detection instruction;
State determining module, instructs for being detected according to the ambient light, determines whether the display screen is in running order;
Display module, for if so, then in the display completely black two field picture of screen display, the completely black two field picture to carry default Mark;And
Control module is detected, for when detecting the preset mark, controlling the ambient light sensor to the ambient light Light intensity be detected.
7. ambient light detection device as claimed in claim 6, it is characterised in that the display module, including:
Acquisition of information submodule, for obtaining the display information of the completely black two field picture;
Information processing submodule, for the display information using the display information of the completely black two field picture as next two field picture, and Processing is marked to the display information of the completely black two field picture;And
Display sub-module, for when loading next two field picture, according to the display information of the completely black two field picture described Show the completely black two field picture of screen display.
8. the ambient light detection device as described in claim 6-7 any one, it is characterised in that the completely black two field picture is shown Show that duration is more than the ambient light sensor and detects detection duration required during the ambient light.
9. a kind of storage medium, it is characterised in that the storage medium stores a plurality of instruction, and a plurality of instruction is suitable for calculating When being run on machine so that the computer performs the environment light detection method as described in claim 1 to 5 any one.
10. a kind of electronic equipment, it is characterised in that including processor and memory, a plurality of instruction of memory storage is described Processor is examined by the ambient light that the instruction loaded in the memory is used to perform as described in claim 1 to 5 any one Survey method.
CN201711174691.7A 2017-11-22 2017-11-22 Environment light detection method, device, storage medium and electronic equipment Pending CN107917755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711174691.7A CN107917755A (en) 2017-11-22 2017-11-22 Environment light detection method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711174691.7A CN107917755A (en) 2017-11-22 2017-11-22 Environment light detection method, device, storage medium and electronic equipment

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 Environment light detection method, device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107917755A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
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, ambient light detection 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
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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 (16)

* Cited by examiner, † Cited by third party
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, ambient light detection device, electronic apparatus, and storage medium
CN111486950A (en) * 2020-04-20 2020-08-04 Oppo广东移动通信有限公司 Ambient light detection method, ambient light detection device, electronic apparatus, 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
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
CN107990978A (en) Environment light detection method, device, storage medium and electronic equipment
CN107917755A (en) Environment light detection method, device, storage medium and electronic equipment
US11429276B2 (en) Method for displaying graphical user interface and mobile terminal
CN107945747A (en) Environment light detection method, device, storage medium and electronic equipment
CN112229507B (en) Ambient light detection method and device, storage medium and mobile terminal
JP6727622B2 (en) Method for detecting brightness of terminal and ambient light
US10244099B2 (en) Method and device for determining status of terminal, and terminal
CN111880712B (en) Page display method and device, electronic equipment and storage medium
KR20140095635A (en) A cover,an electronic device using the same and operating method thereof
JP6105953B2 (en) Electronic device, line-of-sight input program, and line-of-sight input method
CN107783887B (en) Control method of mobile terminal and mobile terminal
CN108920059A (en) Message treatment method and mobile terminal
CN110362366B (en) Application interface display method and device
US11625164B2 (en) Display method and terminal device
CN110661949A (en) Control method of display panel and electronic equipment
CN109859637A (en) A kind of electronic equipment and its control method
CN109257463A (en) A kind of terminal device and its control method
CN109542279A (en) A kind of terminal equipment control method and terminal device
US9996186B2 (en) Portable device and method for defining restricted area within touch panel
JP7413546B2 (en) Photography method and electronic equipment
CN108983950B (en) Display screen control method, storage medium and electronic device
CN108319407A (en) A kind of recent task display method and mobile terminal
CN113836426A (en) Information pushing method and device and electronic equipment
CN108429861B (en) Touch information processing method and device, storage medium and electronic equipment
CN114816311B (en) Screen movement method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
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