CN107945747A - Environment light detection method, device, storage medium and electronic equipment - Google Patents
Environment light detection method, device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN107945747A CN107945747A CN201711174644.2A CN201711174644A CN107945747A CN 107945747 A CN107945747 A CN 107945747A CN 201711174644 A CN201711174644 A CN 201711174644A CN 107945747 A CN107945747 A CN 107945747A
- Authority
- CN
- China
- Prior art keywords
- display
- ambient light
- testing result
- detection
- field picture
- 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
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/34—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
- G09G3/3406—Control of illumination source
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/10—Intensity circuits
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0626—Adjustment of display parameters for control of overall brightness
Abstract
This application discloses a kind of environment light detection method, device, storage medium and electronic equipment, wherein method includes:Detected and instructed according to the ambient light of reception, determine whether the display screen is in running order;If so, then in the display completely black two field picture of screen display;When completely black two field picture described in the display screen display, the ambient light sensor is controlled to carry out repeated detection to the light intensity of the ambient light;According to the repeated detection, object detection results are determined.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
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:
Detected and instructed according to the ambient light of reception, determine whether the display screen is in running order;
If so, then in the display completely black two field picture of screen display;
When completely black two field picture described in the display screen display, the ambient light sensor is controlled to the ambient light
Light intensity carries out repeated detection;
According to the repeated detection, object detection results are obtained.
Second aspect, a kind of ambient light detection device that the embodiment of the present application also provides, including:
State determining module, instructs for being detected according to the ambient light of reception, determines whether the display screen is in work
State;
Display module, for if so, then in the display completely black two field picture of screen display;
Control module is detected, for when completely black two field picture described in the display screen display, controlling the ambient light to pass
Sensor carries out repeated detection to the light intensity of the ambient light;And
Testing result determining module, for according to the repeated detection, obtaining object detection results.
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 is controlled during this period 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.
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 definite object detection results provided by the embodiments of the present application.
Fig. 3 realizes flow chart for the another of definite object detection results provided by the embodiments of the present application.
Fig. 4 realizes flow chart for the completely black two field picture of display 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 detection control module and testing result determining module provided by the embodiments of the present application.
Fig. 7 is the structure diagram of display module provided by the embodiments of the present application.
Fig. 8 is the first structure schematic diagram of electronic equipment provided by the embodiments of the present application.
Fig. 9 is the second structure diagram of electronic equipment provided by the embodiments of the present application.
Figure 10 is the 3rd structure diagram of electronic equipment provided by the embodiments of the present application.
Figure 11 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, detected and instructed according to the ambient light of reception, determine whether display screen is in running order.
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.
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.
102nd, completely black two field picture is shown on a display screen.
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.
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.
103rd, when the completely black two field picture of display screen display, control ambient light sensor carries out the light intensity of ambient light multiple
Detection.
Wherein, repeated detection, can be the continuous detection carried out twice or more than twice, or interval is default every time
The detection twice or more than twice that duration carries out.
In certain embodiments, when the completely black two field picture of display screen display, corresponding ambient light detection instruction can be performed
To trigger the work of ambient light sensor.When ambient light sensor works, ambient light sensor can be by current environment light
Light sensitive data (such as change of the detection limit caused by the change in resistance of photosensitive component) is converted to light intensity data, and by light intensity
Data sending is handled into the processor of electronic equipment, completes the one-time 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.
104th, according to the repeated detection, object detection results are determined.
Wherein, detection can generate a testing result, it is necessary to select mesh in the result that repeated detection is obtained every time
Mark testing result.
If in the case where ambient light changes complex environment, single detection is it is possible that many problems, such as has facet
Product light source is just impinged upon on ambient light sensor, or the light intensity change of short time so that the backlight of display screen is potentially based on
This detection and carry out inappropriate enhancing.
In certain embodiments, multiple testing results can be averaged, or between the multiple testing results of acquisition
Difference, and judge whether the difference less than preset value determines object detection results, to reduce error.
For example, the value of testing result is " 5 ", " 6 " respectively twice, it may be determined that actual value should be at " between 5-6 ",
More real value can be so obtained, reduces the error of single detection.
In certain embodiments, if user uses electronic equipment under the relatively stable environment of ambient light, can also incite somebody to action
Multiple testing results are compared with history testing result.
Wherein, history testing result can be testing result or certain preset time caused by last detection
History detection average value in section.Can according to the difference with history testing result come judge first time testing result whether be
The light intensity of error information either ambient light, which has occurred and that, to be substantially change.If there are error, it may be determined that last time detection
Testing result is object detection results.
For example, when this testing result is " 10 ", and history testing result is " 3 ", can know that the result is examined with history
It is larger to survey result difference, follow-up repeated detection result data can be obtained at this time, is respectively such as " 9 ", " 9.5 ", then at this time may be used
To determine that this testing result should be actual testing result, and using the testing result measured for the last time as target detection
As a result.If follow-up repeated detection result data is respectively " 4 ", " 3 ", it is error result that can determine this testing result,
This testing result should be cast out.
In certain embodiments, in order to determine object detection results, the average value conduct of repeated detection result can be obtained
Object detection results or obtain wherein one-time detection result as object detection results, the embodiment of the present application to this not
It is construed as limiting.
In certain embodiments, in order to avoid caused error in single detection process, take more to ambient light progress
Secondary detection can obtain more accurate ambient light light intensity numerical value.
As by first time detection value that testing result obtains contrasted with history testing result, see whether differ compared with
Greatly, if so, then explanation is likely to be error caused by detection error.
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 is controlled during this period 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.
Referring to Fig. 2, definite object detection results provided by the embodiments of the present application are shown in figure realizes flow, in order to just
It illustrate only in explanation, figure and the relevant part of teachings herein.
In certain embodiments, control ambient light sensor to carry out repeated detection to the light intensity of ambient light, can include with
Lower step:
201st, first time detection is carried out to the light intensity of ambient light, obtains the first testing result.
In certain embodiments, when the completely black two field picture of display screen display, corresponding ambient light detection instruction can be performed
To trigger the work of ambient light sensor.When ambient light sensor works, ambient light sensor can be by current environment light
Light sensitive data (such as change of the detection limit caused by the change in resistance of photosensitive component) is converted to light intensity data, and by light intensity
Data sending is handled into the processor of electronic equipment, completes the one-time 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.
After this time detection is completed, the testing result that can be obtained first is examined as the first testing result, and by this
Result is surveyed to be stored in the memory of electronic equipment.
202nd, when the difference of the first testing result and history testing result is more than the first preset value, to the light intensity of ambient light
Carry out second to detect, obtain the second testing result.
Wherein, the first preset value can be the value being manually set, such as 100 candelas (candela, cd).History detects
As a result can be the history detection average value in testing result caused by last detection or certain preset time period.
In certain embodiments, the first testing result is compared with the numerical value of history testing result obtain difference it
Before, the numerical value of the first testing result and history testing result can be stored in certain specific location in the memory of electronic equipment,
It is read out when needing and comparing.
Second of process for detecting and obtaining the second testing result is referred to ambient light sensor to ambient light
The first time detection that light intensity is carried out, details are not described herein for the embodiment of the present application.
In certain embodiments, according to the repeated detection, object detection results are determined, including:
203rd, according to first testing result and second testing result, object detection results are determined.
In certain embodiments, the second testing result can be carried out with the first testing result, history testing result respectively
Compare, to determine the relation of the first testing result and the second testing result, if the first testing result and the second testing result are homogeneous
It is poor little, it is believed that testing result is actual result twice, can take the first testing result or the second detection knot at this time
Fruit is as object detection results, or is averaged value as object detection results.
It should be noted that the embodiment in Fig. 2 illustrate only the testing process between wherein detecting twice, can be by it
Extend to three times, in four even more multiple testing processes, the embodiment of the present application does not repeat this.
In certain embodiments, after first time testing result is obtained, if completely black two field picture is over display at this time,
Completely black two field picture is shown on a display screen again, to ensure showing completely black frame figure during the second testing result on display screen
Picture.
Specifically, if completely black two field picture is really shown on a frame wherein, and frame when completing is detected for the first time
Sequential be over.If desired carry out detecting for second at this time, then need to insert before next two field picture starts display again
Enter completely black two field picture, and cause second of detection to complete detection in the completely black two field picture of display next frame.
If detected it should be understood that needing to perform again next time, completely black two field picture can be continued into, it is all to ensure
The detection process to ambient light completed during completely black two field picture is shown, it is ensured that the accuracy detected each time.
The embodiment of the present application, can be with by the way that the first testing result of first time detection is compared with history testing result
Quick definite first time testing result whether there is the suspicion for having error, when the first testing result differ with history testing result compared with
When big, perform second and detect, to judge to detect whether as error result for the first time by second of detection.Can so have
Effect avoids the detection error problem occurred under complex environment light, further improves the accuracy of detection process.
Referring to Fig. 3, show that the another of definite object detection results provided by the embodiments of the present application realizes flow in figure, be
Easy to explanation, illustrate only and the relevant part of teachings herein in figure.
In certain embodiments, control ambient light sensor to carry out repeated detection to the light intensity of ambient light in Fig. 2, can wrap
Include following steps:
301st, first time detection is carried out to the light intensity of ambient light, obtains the first testing result.
302nd, when the difference of the first testing result and history testing result is more than the first preset value, to the light intensity of ambient light
Carry out second to detect, obtain the second testing result.
Wherein, 301,302 the introduction to the content in Fig. 2 is may refer to, for the ease of description, the embodiment of the present application is herein
Repeat no more.
303rd, judge whether the difference of the second testing result and history testing result is more than the first preset value, and examined with first
The difference for surveying result is less than the second preset value, if so, then using the second preset value as object detection results.
Wherein, the first preset value and the second preset value can be manually set value, such as 100 candelas (candela,
cd).History testing result can be testing result caused by last detection or the history in certain preset time period
Detect average value.
When the difference of the second testing result and history testing result is more than the first preset value, and with the difference of the first testing result
When value is less than the second preset value, the first testing result may be considered with the second testing result to be consistent with actual value.If the second inspection
The difference for surveying result and history testing result is more than the first preset value, and is more than the second preset value with the difference of the first testing result
When, it may be considered that may malfunction in first time detection process, cast out first time testing result.
For example, when this testing result is " 10 ", and history testing result is " 3 ", can know that the result is examined with history
It is larger to survey result difference, follow-up repeated detection result data can be obtained at this time, be " 9 ", then can determine this inspection at this time
It should be actual testing result to survey result, and detects measured testing result as object detection results using second.If
Second testing result data are " 4 ", then it is error result that can determine the first testing result, it should give up first testing result
Go.
304th, using the second preset value as object detection results.
Wherein, object detection results are the value for electronic equipment reference, when the second testing result and history testing result
Difference be more than the first preset value, and when being less than the second preset value with the difference of the first testing result, using the second preset value as
Object detection results further improve detection process it is possible to prevente effectively from the detection error problem occurred under complex environment light
Accuracy.
Referring to Fig. 4, 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:
401st, 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.
402nd, the display information using the display information of the completely black two field picture as next 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.
403rd, 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. 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 state determining module 501, display module 502, detection control
Molding block 503 and testing result determining module 504.
Wherein, state determining module 501, instruct for being detected according to the ambient light of reception, determine whether display screen is in
Working status.
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.
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.
Display module 502, for showing completely black two field picture on a display screen.
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.
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.
Control module 503 is detected, for when showing the completely black two field picture of screen display, control ambient light sensor to be to environment
The light intensity of light carries out repeated detection.
Wherein, repeated detection, can be the continuous detection carried out twice or more than twice, or interval is default every time
The detection twice or more than twice that duration carries out.
In certain embodiments, when the completely black two field picture of display screen display, corresponding ambient light detection instruction can be performed
To trigger the work of ambient light sensor.When ambient light sensor works, ambient light sensor can be by current environment light
Light sensitive data (such as change of the detection limit caused by the change in resistance of photosensitive component) is converted to light intensity data, and by light intensity
Data sending is handled into the processor of electronic equipment, completes the one-time 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 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.
Testing result determining module 504, for according to the repeated detection, determining object detection results.
Wherein, detection can generate a testing result, it is necessary to select mesh in the result that repeated detection is obtained every time
Mark testing result.
If in the case where ambient light changes complex environment, single detection is it is possible that many problems, such as has facet
Product light source is just impinged upon on ambient light sensor, or the light intensity change of short time so that the backlight of display screen is potentially based on
This detection and carry out inappropriate enhancing.
In certain embodiments, multiple testing results can be averaged, or between the multiple testing results of acquisition
Difference, and judge whether the difference less than preset value determines object detection results, to reduce error.
In certain embodiments, if user uses electronic equipment under the relatively stable environment of ambient light, can also incite somebody to action
Multiple testing results are compared with history testing result.
Wherein, history testing result can be testing result or certain preset time caused by last detection
History detection average value in section.Can according to the difference with history testing result come judge first time testing result whether be
The light intensity of error information either ambient light, which has occurred and that, to be substantially change.If there are error, it may be determined that last time detection
Testing result is object detection results.
In certain embodiments, in order to determine object detection results, the average value conduct of repeated detection result can be obtained
Object detection results or obtain wherein one-time detection result as object detection results, the embodiment of the present application to this not
It is construed as limiting.
In certain embodiments, in order to avoid caused error in single detection process, take more to ambient light progress
Secondary detection can obtain more accurate ambient light light intensity numerical value.
As by first time detection value that testing result obtains contrasted with history testing result, see whether differ compared with
Greatly, if so, then explanation is likely to be error caused by detection error.
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 is controlled during this period 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.
Referring to Fig. 6, detection control module and testing result determining module provided by the embodiments of the present application are shown in figure
Structure, illustrate only for convenience of description, in figure and the relevant part of teachings herein.
In certain embodiments, the detection control module 503, can include the first detection sub-module 5031 and second
Detection sub-module 5032.
Wherein, the first detection sub-module 5031, for carrying out first time detection to the light intensity of ambient light, obtains the first detection
As a result.
In certain embodiments, when the completely black two field picture of display screen display, corresponding ambient light detection instruction can be performed
To trigger the work of ambient light sensor.When ambient light sensor works, ambient light sensor can be by current environment light
Light sensitive data (such as change of the detection limit caused by the change in resistance of photosensitive component) is converted to light intensity data, and by light intensity
Data sending is handled into the processor of electronic equipment, completes the one-time 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.
After this time detection is completed, the testing result that can be obtained first is examined as the first testing result, and by this
Result is surveyed to be stored in the memory of electronic equipment.
Second detection sub-module 5032, for being preset when the difference of the first testing result and history testing result is more than first
During value, second of detection is carried out to the light intensity of ambient light, obtains the second testing result.
Wherein, the first preset value can be the value being manually set, such as 100 candelas (candela, cd).History detects
As a result can be the history detection average value in testing result caused by last detection or certain preset time period.
In certain embodiments, the first testing result is compared with the numerical value of history testing result obtain difference it
Before, the numerical value of the first testing result and history testing result can be stored in certain specific location in the memory of electronic equipment,
It is read out when needing and comparing.
Second of process for detecting and obtaining the second testing result is referred to ambient light sensor to ambient light
The first time detection that light intensity is carried out, details are not described herein for the embodiment of the present application.
In certain embodiments, the testing result determining module 504, including result determination sub-module 5041.
Wherein, as a result determination sub-module 5041, for according to first testing result and second testing result, really
Set the goal testing result.
In certain embodiments, the second testing result can be carried out with the first testing result, history testing result respectively
Compare, to determine the relation of the first testing result and the second testing result, if the first testing result and the second testing result are homogeneous
It is poor little, it is believed that testing result is actual result twice, can take the first testing result or the second detection knot at this time
Fruit is as object detection results, or is averaged value as object detection results.
In certain embodiments, as a result determination sub-module 5041, specifically for judging that the second testing result is detected with history
Whether difference as a result is more than the first preset value, and is less than the second preset value with the difference of the first testing result, if so, then by
Two preset values are as object detection results.
Wherein, the first preset value and the second preset value can be manually set value, such as 100 candelas (candela,
cd).History testing result can be testing result caused by last detection or the history in certain preset time period
Detect average value.
When the difference of the second testing result and history testing result is more than the first preset value, and with the difference of the first testing result
When value is less than the second preset value, the first testing result may be considered with the second testing result to be consistent with actual value.If the second inspection
The difference for surveying result and history testing result is more than the first preset value, and is more than the second preset value with the difference of the first testing result
When, it may be considered that may malfunction in first time detection process, cast out first time testing result.
Wherein, object detection results are the value for electronic equipment reference, when the second testing result and history testing result
Difference be more than the first preset value, and when being less than the second preset value with the difference of the first testing result, using the second preset value as
Object detection results further improve detection process it is possible to prevente effectively from the detection error problem occurred under complex environment light
Accuracy.
It should be noted that the embodiment in Fig. 6, can will detection number extend to three times, four times it is even more multiple
In testing process, the embodiment of the present application does not repeat this.
In certain embodiments, after first time testing result is obtained, if completely black two field picture is over display at this time,
Completely black two field picture is shown on a display screen again, to ensure showing completely black frame figure during the second testing result on display screen
Picture.
Specifically, if completely black two field picture is really shown on a frame wherein, and frame when completing is detected for the first time
Sequential be over.If desired carry out detecting for second at this time, then need to insert before next two field picture starts display again
Enter completely black two field picture, and cause second of detection to complete detection in the completely black two field picture of display next frame.
If detected it should be understood that needing to perform again next time, completely black two field picture can be continued into, it is all to ensure
The detection process to ambient light completed during completely black two field picture is shown, it is ensured that the accuracy detected each time.
The embodiment of the present application, can be with by the way that the first testing result of first time detection is compared with history testing result
Quick definite first time testing result whether there is the suspicion for having error, when the first testing result differ with history testing result compared with
When big, perform second and detect, to judge to detect whether as error result for the first time by second of detection.Can so have
Effect avoids the detection error problem occurred under complex environment light, further improves the accuracy of detection process.
Referring to Fig. 7, 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 502, including acquisition of information submodule 5021, information processing submodule
5022 and display sub-module 5023.
Acquisition of information submodule 5021, 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 5022, for the display using the display information of the completely black two field picture as next two field picture
Information.
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.
Display sub-module 5023, 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.
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. 8, Fig. 8 is the first structure schematic diagram of electronic equipment provided by the embodiments of the present application.Wherein, electronic equipment
600, which include cover board 610, display screen 620, circuit board 630, housing 640 and the ambient light inside the housing 640, passes
Sensor 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 9.
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.Referring to Fig. 10, 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:
Detected and instructed according to the ambient light of reception, determine whether the display screen is in running order;If so, then described
Show the completely black two field picture of screen display;When completely black two field picture described in the display screen display, the ambient light sensing is controlled
Device carries out repeated detection to the light intensity of the ambient light;According to the repeated detection, object detection results are determined.
In some embodiments, the processor 701 can be also used for:
First time detection is carried out to the light intensity of the ambient light, obtains the first testing result;When first testing result
When being more than the first preset value with the difference of history testing result, second is carried out to the light intensity of the ambient light and is detected, obtain the
Two testing results;According to first testing result and second testing result, object detection results are determined.
In some embodiments, the processor 701 can be also used for:
Judge whether the difference of second testing result and the history testing result is more than the first preset value, and with institute
The difference for stating the first testing result is less than the second preset value;If so, then using second preset value as object detection results.
In some embodiments, the processor 701 can be also used for:
It is completely black in the display screen display again if completely black two field picture is over display after the first time detection
Two field picture, to ensure showing the completely black two field picture during the second testing result on the display screen.
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;When loading next two field picture, according to the display information of the completely black two field picture on the display screen
Show completely black two field picture.
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.
Also referring to Figure 11, 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 11, 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:Detected according to the ambient light of reception
Instruction, determines whether the display screen is in running order;If so, then in the display completely black two field picture of screen display;Work as institute
When stating completely black two field picture described in display screen display, the ambient light sensor is controlled to carry out the light intensity of the ambient light multiple
Detection;According to the repeated detection, object detection results are determined.
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, application and electronic equipment, the electronic equipment includes display screen and ambient light sensing
Device, it is characterised in that the described method includes:
Detected and instructed according to the ambient light of reception, determine whether the display screen is in running order;
If so, then in the display completely black two field picture of screen display;
When completely black two field picture described in the display screen display, light intensity of the ambient light sensor to the ambient light is controlled
Carry out repeated detection;
According to the repeated detection, object detection results are determined.
2. environment light detection method as claimed in claim 1, it is characterised in that the control ambient light sensor is to institute
The light intensity for stating ambient light carries out repeated detection, including:
First time detection is carried out to the light intensity of the ambient light, obtains the first testing result;
When the difference of first testing result and history testing result is more than the first preset value, to the light intensity of the ambient light
Carry out second to detect, obtain the second testing result;
It is described that object detection results are determined according to the repeated detection, including:
According to first testing result and second testing result, object detection results are determined.
3. environment light detection method as claimed in claim 2, it is characterised in that described according to first testing result and institute
The second testing result is stated, determines object detection results, including:
Judge whether the difference of second testing result and the history testing result is more than the first preset value, and with described the
The difference of one testing result is less than the second preset value;
If so, then using second preset value as object detection results.
4. environment light detection method as claimed in claim 2, it is characterised in that carried out in the light intensity to the ambient light
Second of detection, before obtaining the second testing result, further includes:
If completely black two field picture is over display after the first time detection, again in the display completely black frame figure of screen display
Picture, to ensure showing the completely black two field picture during the second testing result on the display screen.
5. the environment light detection method as described in claim 1-4 any one, it is characterised in that described on the display screen
Show completely black two field picture, 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;
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.
6. environment light detection method as claimed in claim 5, 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.
7. a kind of ambient light detection device, application and electronic equipment, the electronic equipment includes display screen and ambient light sensing
Device, it is characterised in that described device includes:
State determining module, instructs for being detected according to the ambient light of reception, 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;
Detect control module, for when it is described display screen display described in completely black two field picture when, control the ambient light sensor
Repeated detection is carried out to the light intensity of the ambient light;And
Testing result determining module, for according to the repeated detection, determining object detection results.
8. ambient light detection device as claimed in claim 7, it is characterised in that the detection control module, including:
First detection sub-module, for carrying out first time detection to the light intensity of the ambient light, obtains the first testing result;And
Second detection sub-module, for being more than the first preset value when the difference of first testing result and history testing result
When, second of detection is carried out to the light intensity of the ambient light, obtains the second testing result;
The testing result determining module, including:
As a result determination sub-module, for according to first testing result and second testing result, determining target detection knot
Fruit.
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 6 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 6 any one
Survey method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711174644.2A CN107945747A (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 |
---|---|---|---|
CN201711174644.2A CN107945747A (en) | 2017-11-22 | 2017-11-22 | Environment light detection method, device, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107945747A true CN107945747A (en) | 2018-04-20 |
Family
ID=61930717
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711174644.2A Pending CN107945747A (en) | 2017-11-22 | 2017-11-22 | Environment light detection method, device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107945747A (en) |
Cited By (10)
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 |
CN108924316A (en) * | 2018-08-23 | 2018-11-30 | 深圳市万普拉斯科技有限公司 | Shield lower light sensation detection method, device, mobile terminal and computer storage medium |
CN108917921A (en) * | 2018-06-15 | 2018-11-30 | 江西合力泰科技有限公司 | A kind of ambient light intensity detection method |
CN109920394A (en) * | 2019-04-29 | 2019-06-21 | 合肥惠科金扬科技有限公司 | A kind of adjusting method of screen intensity, regulating device and display equipment |
CN110364102A (en) * | 2018-08-17 | 2019-10-22 | 矽力杰半导体技术(杭州)有限公司 | Ambient light sensing approach, sensing system and electronic equipment |
CN110992916A (en) * | 2019-12-16 | 2020-04-10 | Tcl 移动通信科技(宁波)有限公司 | Display terminal, control method and computer-readable storage medium |
CN112229507A (en) * | 2020-10-15 | 2021-01-15 | Tcl通讯(宁波)有限公司 | Ambient light detection method and device, storage medium and mobile terminal |
CN113808030A (en) * | 2021-05-31 | 2021-12-17 | 荣耀终端有限公司 | Noise monitoring method, electronic equipment and chip system |
CN113852720A (en) * | 2020-06-28 | 2021-12-28 | 北京小米移动软件有限公司 | Ambient light determination method, ambient light determination device, terminal equipment and medium |
WO2024000143A1 (en) * | 2022-06-28 | 2024-01-04 | Qualcomm Incorporated | Display compatible ambient light sensor |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201115216A (en) * | 2009-10-23 | 2011-05-01 | Chunghwa Picture Tubes Ltd | A liquid crystal display with function of static color compensation and method thereof |
CN104464686A (en) * | 2013-09-17 | 2015-03-25 | 联想(北京)有限公司 | Display brilliance control method and electronic device |
CN106462339A (en) * | 2015-09-28 | 2017-02-22 | 华为技术有限公司 | Terminal and method for detecting ambient brightness |
-
2017
- 2017-11-22 CN CN201711174644.2A patent/CN107945747A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201115216A (en) * | 2009-10-23 | 2011-05-01 | Chunghwa Picture Tubes Ltd | A liquid crystal display with function of static color compensation and method thereof |
CN104464686A (en) * | 2013-09-17 | 2015-03-25 | 联想(北京)有限公司 | Display brilliance control method and electronic device |
CN106462339A (en) * | 2015-09-28 | 2017-02-22 | 华为技术有限公司 | Terminal and method for detecting ambient brightness |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10861418B2 (en) | 2018-06-15 | 2020-12-08 | Beijing Xiaomi Mobile Software Co., Ltd. | Methods, devices, and storage medium for determining ambient brightness |
CN108917921A (en) * | 2018-06-15 | 2018-11-30 | 江西合力泰科技有限公司 | A kind of ambient light intensity detection method |
EP3582214A1 (en) * | 2018-06-15 | 2019-12-18 | Beijing Xiaomi Mobile Software Co., Ltd. | Method and device for determining ambient brightness, and storage medium |
CN108806627A (en) * | 2018-06-15 | 2018-11-13 | 北京小米移动软件有限公司 | Environmental light brightness determines method, apparatus and storage medium |
CN110364102A (en) * | 2018-08-17 | 2019-10-22 | 矽力杰半导体技术(杭州)有限公司 | Ambient light sensing approach, sensing system and electronic equipment |
CN108924316A (en) * | 2018-08-23 | 2018-11-30 | 深圳市万普拉斯科技有限公司 | Shield lower light sensation detection method, device, mobile terminal and computer storage medium |
CN109920394A (en) * | 2019-04-29 | 2019-06-21 | 合肥惠科金扬科技有限公司 | A kind of adjusting method of screen intensity, regulating device and display equipment |
CN110992916A (en) * | 2019-12-16 | 2020-04-10 | Tcl 移动通信科技(宁波)有限公司 | Display terminal, control method and computer-readable storage medium |
CN113852720A (en) * | 2020-06-28 | 2021-12-28 | 北京小米移动软件有限公司 | Ambient light determination method, ambient light determination device, terminal equipment and medium |
CN112229507A (en) * | 2020-10-15 | 2021-01-15 | Tcl通讯(宁波)有限公司 | Ambient light detection method and device, storage medium and mobile terminal |
CN113808030A (en) * | 2021-05-31 | 2021-12-17 | 荣耀终端有限公司 | Noise monitoring method, electronic equipment and chip system |
CN113808030B (en) * | 2021-05-31 | 2022-09-30 | 荣耀终端有限公司 | Noise monitoring method, electronic equipment and chip system |
WO2024000143A1 (en) * | 2022-06-28 | 2024-01-04 | Qualcomm Incorporated | Display compatible ambient light sensor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107945747A (en) | Environment light detection method, device, storage medium and electronic equipment | |
CN107990978A (en) | Environment light detection method, device, storage medium and electronic equipment | |
US11429276B2 (en) | Method for displaying graphical user interface and mobile terminal | |
CN107917755A (en) | Environment light detection method, device, storage medium and electronic equipment | |
CN107665697B (en) | A kind of adjusting method and mobile terminal of screen intensity | |
US11175824B2 (en) | Method for detecting ambient light intensity, storage medium and electronic device | |
KR102490239B1 (en) | Method for calibrating luminance of display panel, and device for calibrating luminance of display panel | |
JP5561769B2 (en) | Terminal device and program | |
US10244099B2 (en) | Method and device for determining status of terminal, and terminal | |
CN111754954B (en) | Screen brightness adjusting method and device, storage medium and electronic equipment | |
US20200043427A1 (en) | Backlight adjusting method and backlight adjusting device | |
CN107783887B (en) | Control method of mobile terminal and mobile terminal | |
CN112229507B (en) | Ambient light detection method and device, storage medium and mobile terminal | |
WO2018214885A1 (en) | Radio frequency interference processing method and electronic device | |
US11050942B2 (en) | Screen fill light photographing method for mobile terminal, system and mobile terminal | |
US11165950B2 (en) | Method and apparatus for shooting video, and storage medium | |
CN110661949A (en) | Control method of display panel and electronic equipment | |
WO2021098609A1 (en) | Method and device for image detection, and electronic device | |
EP3629318B1 (en) | Method and apparatus for compensating operating parameter of display circuit | |
CN109561255B (en) | Terminal photographing method and device and storage medium | |
CN109859637A (en) | A kind of electronic equipment and its control method | |
CN110276329A (en) | A kind of skin detecting method and terminal | |
CN108924360B (en) | Display method, storage medium, and electronic device | |
CN110855896A (en) | Shooting method and device, storage medium and terminal equipment | |
CN109618053A (en) | A kind of screen light compensation method and terminal 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180420 |