CN107957293B - Ambient light intensity detection method and device, storage medium and electronic equipment - Google Patents
Ambient light intensity detection method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN107957293B CN107957293B CN201711175960.1A CN201711175960A CN107957293B CN 107957293 B CN107957293 B CN 107957293B CN 201711175960 A CN201711175960 A CN 201711175960A CN 107957293 B CN107957293 B CN 107957293B
- Authority
- CN
- China
- Prior art keywords
- screen
- intensity
- light intensity
- detected
- electronic equipment
- 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.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 28
- 238000000034 method Methods 0.000 claims abstract description 21
- 230000035807 sensation Effects 0.000 claims description 21
- 238000004891 communication Methods 0.000 claims description 3
- 238000005286 illumination Methods 0.000 claims 4
- 230000007613 environmental effect Effects 0.000 claims 2
- 238000013461 design Methods 0.000 description 13
- 230000000694 effects Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000003247 decreasing effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 239000011521 glass Substances 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 239000000758 substrate Substances 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
- G01J1/4204—Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light
Landscapes
- Life Sciences & Earth Sciences (AREA)
- Sustainable Development (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Controls And Circuits For Display Device (AREA)
- Liquid Crystal Display Device Control (AREA)
Abstract
The embodiment of the application discloses an ambient light intensity detection method, an ambient light intensity detection device, a storage medium and electronic equipment, wherein in the method, when the electronic equipment displays a first picture frame with a first screen luminous intensity and displays a second picture frame with a second screen luminous intensity, the first detected light intensity and the second detected light intensity are correspondingly acquired, the first screen luminous intensity is adjusted according to a preset proportion after the first picture frame is displayed so as to acquire the second screen luminous intensity, and then the ambient light intensity is calculated according to the first detected light intensity, the second detected light intensity and the preset proportion.
Description
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method and an apparatus for detecting ambient light intensity, a storage medium, and an electronic device.
Background
With the development of the technology, electronic devices such as mobile phones and tablet computers have increasingly powerful functions, for example, the brightness of the backlight of the display screen can be automatically adjusted by monitoring the intensity of ambient light, or the on and off of a key lamp is controlled, so that the brightness of the display screen can be automatically adjusted. Most of the existing electronic devices usually have holes on the cover plate at the front end of the screen, so that the light sensor can detect light through the holes.
However, due to the design of opening holes at the front end of the screen, the aesthetic effect of the screen is affected, and the holes in the reserved space are needed, so that a certain screen space is occupied, and the comprehensive screen design of the display screen cannot be realized.
Disclosure of Invention
The embodiment of the application provides an ambient light intensity detection method and device, a storage medium and electronic equipment, which are beneficial to realizing comprehensive screen design of the electronic equipment and enable a screen to be more attractive.
The embodiment of the application provides an ambient light intensity detection method, which comprises the following steps:
when the electronic equipment displays a first picture frame with a first screen luminous intensity, acquiring a first detected light intensity detected by a light sensor, wherein the light sensor is positioned below a display area of a screen of the electronic equipment;
adjusting the luminous intensity of the first screen according to a preset proportion to obtain the luminous intensity of a second screen;
when the electronic equipment displays a second picture frame with a second screen luminous intensity, acquiring a second detected light intensity detected by the light sensor;
calculating the ambient light intensity according to the first detected light intensity, the second detected light intensity and the predetermined ratio.
The embodiment of the present application further provides an ambient light intensity detection device, including:
the first obtaining module is used for obtaining first detected light intensity detected by a light sensor when the electronic equipment displays a first picture frame with first screen light-emitting intensity, and the light sensor is positioned below a display area of a screen of the electronic equipment;
the adjusting module is used for adjusting the luminous intensity of the first screen according to a preset proportion to obtain the luminous intensity of a second screen;
the second acquisition module is used for acquiring second detection light intensity detected by the light sensor when the electronic equipment displays a second picture frame with second screen light-emitting intensity;
and the calculating module is used for calculating the ambient light intensity according to the first detected light intensity, the second detected light intensity and the preset proportion.
The embodiment of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps in the method for detecting ambient light intensity.
An embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the memory is used to store instructions and data, and the instructions are suitable for being loaded by the processor to perform the steps in the method for detecting ambient light intensity described above.
In the method for detecting the intensity of the ambient light, the light sensor is arranged below the display area of the screen of the electronic equipment, so ambient light entering from the display area of the screen can be collected, and the intensity of the ambient light can be detected, wherein when the electronic equipment displays a first picture frame with the first screen luminous intensity, first detected light intensity detected by the light sensor is obtained, then the first screen luminous intensity is adjusted according to a preset proportion, second screen luminous intensity is obtained, so that when the electronic equipment displays a second picture with the second screen luminous intensity, second detected light intensity detected by the light sensor is obtained, and then the intensity of the ambient light is calculated according to the first detected light intensity, the second detected light intensity and the preset proportion, so that the detection of the intensity of the ambient light can be realized when the light sensor is arranged below the display area by the scheme, therefore, the hole for receiving the ambient light by the light sensation sensor is not required to be formed in the front end of the screen, namely, the opening design of the light sensation sensor is not required to be made in the front end of the screen, so that the comprehensive screen design of the electronic equipment is facilitated, the screen is more attractive, and the display effect is better.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scene of a method for detecting ambient light intensity according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of a method for detecting ambient light intensity according to an embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of an ambient light intensity detection apparatus according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the present application and for simplicity in description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed in a particular orientation, and be operated in a particular manner, and are not to be construed as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
In this application, unless expressly stated or limited otherwise, the first feature "on" or "under" the second feature may comprise direct contact of the first and second features, or may comprise contact of the first and second features not directly but through another feature in between. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
The following disclosure provides many different embodiments or examples for implementing different features of the application. In order to simplify the disclosure of the present application, specific example components and arrangements are described below. Of course, they are merely examples and are not intended to limit the present application. Moreover, the present application may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, examples of various specific processes and materials are provided herein, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials.
The embodiment of the application provides an ambient light intensity detection method and device, a storage medium and electronic equipment.
The ambient light intensity detection device can be specifically integrated in an electronic device such as a smart phone, a tablet computer, a notebook computer or a personal computer. The electronic device can be a full-screen, that is, the whole display surface of the electronic device is a display area, so that the electronic device can display pictures, and the front end of the screen is not provided with a hole of the light sensor. Wherein, this electronic equipment is including the light sense sensor that is used for detecting the luminous intensity, and this light sense sensor can set up in the below of the display area of screen, because the display screen forms for adopting the glass substrate preparation, consequently ambient light can pass display panel and penetrate to light sense sensor department to make the light sense sensor can gather ambient light, and then can detect ambient light intensity.
For example, as shown in fig. 1, the ambient light intensity detecting device may be configured to obtain a first detected light intensity detected by a light-sensitive sensor when the electronic device displays a first picture with a first screen light intensity, the light-sensitive sensor being located below a display area of a screen of the electronic device, then adjust the first screen light intensity according to a predetermined ratio to obtain a second screen light intensity, and obtain a second detected light intensity detected by the light-sensitive sensor when the electronic device displays a second picture with the second screen light intensity, so as to calculate the ambient light intensity according to the first detected light intensity, the second detected light intensity and the predetermined ratio, and thus, according to the embodiment of the present application, the ambient light intensity can be detected when the light-sensitive sensor is located below the display area, and thus, a hole for the light-sensitive sensor to receive ambient light does not need to be formed at a front end of the screen, the opening design of the light sensation sensor is not needed to be made at the front end of the screen, so that the comprehensive screen design of the electronic equipment is facilitated, the screen is more attractive, and the display effect is better.
As will be described in detail below.
Referring to fig. 2, fig. 2 is a schematic flow chart of a method for detecting ambient light intensity according to an embodiment of the present disclosure. As shown in the figure, the ambient light intensity detection method may specifically include the following steps:
201. when the electronic equipment displays the first picture frame with the first screen luminous intensity, the first detected light intensity detected by the light sensor is obtained, and the light sensor is located below the display area of the screen of the electronic equipment.
The light sensor is, for example, an ambient light sensor, and may be implemented by a device such as a phototransistor, a photoresistor, or a photodiode.
In the embodiment of the present application, the display screen of the electronic device may be, for example, an OLED display screen, or may also be a liquid crystal display screen, which is not limited to this. The light sensor is disposed below the display area of the screen, that is, the position of the light sensor corresponds to the display area of the screen, and may be disposed on a glass substrate of the display screen, or may be disposed on the back side of the display screen. Ambient light is incident from the display surface of display screen, because the display screen adopts the glass substrate to make, therefore ambient light can pass the display screen and incide to the position at light sense sensor place to ambient light can be gathered to the light sense sensor.
The screen luminous intensity refers to the brightness of a screen of the electronic device, that is, the intensity of light generated by a light source of the screen of the electronic device. In this embodiment, it is assumed that the brightness of the screen when the electronic device displays the first frame is the first screen luminous intensity, and the first detected light intensity detected by the light sensor is the sum of the ambient light intensity and the brightness of the screen, that is, the sum of the ambient light intensity and the first screen luminous intensity, where the ambient light intensity and the first screen luminous intensity are both unknown numbers.
202. And adjusting the luminous intensity of the first screen according to a preset proportion to obtain the luminous intensity of the second screen.
After the first picture frame is displayed, the luminous intensity of the first screen is adjusted according to a preset proportion, namely, the brightness of the screen is adjusted according to the preset proportion on the basis of the luminous intensity of the first screen. The predetermined ratio is a ratio of the luminous intensity of the first screen, and may be, for example, 5%, 10%, or 20%, and may be specifically selected according to actual needs. Here, the first screen light emission intensity may be increased or decreased by a predetermined ratio, that is, the first screen light emission intensity may be decreased by a predetermined ratio or increased by a predetermined ratio. Taking the predetermined ratio of 10% as an example, the first screen luminous intensity may be reduced by 10%, that is, the first screen luminous intensity is reduced by 10%, and the first screen luminous intensity after the reduction by 10% is the second screen luminous intensity, and if the first screen luminous intensity is set to F1, the second screen luminous intensity is (1-10%) F1, that is, 0.9F 1.
203. And when the electronic equipment displays the second picture frame with the second screen luminous intensity, acquiring second detected light intensity detected by the light sensor.
After the first screen luminous intensity is adjusted to obtain a second screen luminous intensity, the electronic equipment displays a second picture frame according to the second screen luminous intensity, and at the moment, the second detected light intensity detected by the light sensor is the sum of the ambient light intensity and the second screen luminous intensity.
204. The ambient light intensity is calculated from the first detected light intensity, the second detected light intensity, and a predetermined ratio.
In this embodiment, the ambient light intensity of the electronic device when displaying the first frame and the ambient light intensity of the electronic device when displaying the second frame may be considered to be the same. In one embodiment, in order to improve the detection accuracy, the first frame and the second frame are consecutive frames, that is, the first frame and the second frame are two adjacent frames, and the second frame is displayed immediately after the first frame is displayed. Therefore, the interval time between the first picture frame and the second picture frame is small, which is generally less than 20ms, and thus the intensity of the ambient light when the first picture frame is displayed and the intensity of the ambient light when the second picture frame is displayed can be regarded as the same.
In this embodiment, the ambient light intensity is calculated according to the following formula:
T1=E+F1
T2=E+(1-k)*F1
where T1 denotes the first detected light intensity, T2 denotes the second detected light intensity, E denotes the ambient light intensity, F1 denotes the first screen lighting intensity, and k is a predetermined ratio. T1 and T2 are the detection data of the light sensor, and the predetermined ratio k can be set according to the actual requirement, so the value of the ambient light intensity E can be obtained by solving the above equation system, and the ambient light intensity E can be calculated. For example, taking k as 10%, substituting the above equation results in the following equation set:
T1=E+F1
T2=E+(1-10%)*F1=E+0.9F1
solving the equation system to obtain E-10T 2-9T 1.
The obtained ambient light intensity E is free from the influence of the screen brightness, is relatively consistent with the actual ambient light intensity, and can be used as the actual ambient light intensity.
Through the embodiment, when the electronic equipment displays the first picture frame by the first screen luminous intensity, the first detected light intensity detected by the light sensation sensor is obtained, then the first screen luminous intensity is adjusted according to the preset proportion to obtain the second screen luminous intensity, so that when the electronic equipment displays the second picture by the second screen luminous intensity, the second detected light intensity detected by the light sensation sensor is obtained, and then the ambient light intensity is calculated according to the first detected light intensity, the second detected light intensity and the preset proportion, therefore, the ambient light intensity can be detected when the light sensation sensor is arranged below the display area, holes for the light sensation sensor to receive ambient light do not need to be arranged at the front end of the screen, namely, the hole design of the light sensation sensor does not need to be arranged at the front end of the screen, the comprehensive screen design of the electronic equipment is facilitated, and the screen is more beautiful, the display effect is better, and the accuracy of the ambient light intensity detection can be improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an ambient light intensity detecting apparatus according to an embodiment of the present disclosure. The detection device can be integrated in electronic equipment such as a smart phone, a tablet computer or a notebook computer. As shown, the detecting device includes a first obtaining module 301, an adjusting module 302, a second obtaining module 303, and a calculating module 304.
The first obtaining module 301 is configured to obtain a first detected light intensity detected by a light sensor when the electronic device displays a first image frame with a first screen light-emitting intensity, where the light sensor is located below a display area of a screen of the electronic device. The brightness of the screen when the electronic equipment displays the first picture frame is the first screen luminous intensity, and the first detected light intensity detected by the light sensation sensor is the sum of the ambient light intensity and the brightness of the screen, namely the sum of the ambient light intensity and the first screen luminous intensity.
The adjusting module 302 is configured to adjust the first screen light-emitting intensity according to a predetermined ratio to obtain a second screen light-emitting intensity. After the first picture frame is displayed, the luminous intensity of the first screen is adjusted according to a preset proportion, namely, the brightness of the screen is adjusted according to the preset proportion on the basis of the luminous intensity of the first screen. Here, the first screen light emission intensity may be increased or decreased by a predetermined ratio, that is, the first screen light emission intensity may be decreased by a predetermined ratio or increased by a predetermined ratio.
The second obtaining module 303 is configured to obtain a second detected light intensity detected by the light sensor when the electronic device displays a second image frame with a second screen light-emitting intensity. After the first screen luminous intensity is adjusted to obtain a second screen luminous intensity, the electronic equipment displays a second picture frame according to the second screen luminous intensity, and at the moment, the second detected light intensity detected by the light sensor is the sum of the ambient light intensity and the second screen luminous intensity.
The calculation module 304 is configured to calculate the ambient light intensity according to the first detected light intensity, the second detected light intensity, and a predetermined ratio. In this embodiment, the ambient light intensity when the electronic device displays the first screen frame and the ambient light intensity when the electronic device displays the second screen frame may be considered to be the same. In one embodiment, in order to improve the detection accuracy, the first frame and the second frame are consecutive frames, that is, the first frame and the second frame are two adjacent frames, and the second frame is displayed immediately after the first frame is displayed. Therefore, the interval time between the first picture frame and the second picture frame is small, which is generally less than 20ms, and thus the intensity of the ambient light when the first picture frame is displayed and the intensity of the ambient light when the second picture frame is displayed can be regarded as the same.
In this embodiment, the calculating module 304 is specifically configured to calculate the ambient light intensity according to the following formula:
T1=E+F1
T2=E+(1-k)*F1
where T1 denotes the first detected light intensity, T2 denotes the second detected light intensity, E denotes the ambient light intensity, F1 denotes the first screen lighting intensity, and k is a predetermined ratio. T1 and T2 are the detection data of the light sensor, and the predetermined ratio k can be set according to the actual requirement, so the value of the ambient light intensity E can be obtained by solving the above equation system, and the ambient light intensity E can be calculated. For example, taking k as 10%, substituting the above equation results in the following equation set:
T1=E+F1
T2=E+(1-10%)*F1=E+0.9F1
solving the equation system to obtain E-10T 2-9T 1.
The obtained ambient light intensity E is free from the influence of the screen brightness, is relatively consistent with the actual ambient light intensity, and can be used as the actual ambient light intensity.
Through the embodiment, when the electronic equipment displays the first picture frame by the first screen luminous intensity, the first detected light intensity detected by the light sensation sensor is obtained, then the first screen luminous intensity is adjusted according to the preset proportion to obtain the second screen luminous intensity, so that when the electronic equipment displays the second picture by the second screen luminous intensity, the second detected light intensity detected by the light sensation sensor is obtained, and then the ambient light intensity is calculated according to the first detected light intensity, the second detected light intensity and the preset proportion, therefore, the ambient light intensity can be detected when the light sensation sensor is arranged below the display area, holes for the light sensation sensor to receive ambient light do not need to be arranged at the front end of the screen, namely, the hole design of the light sensation sensor does not need to be arranged at the front end of the screen, the comprehensive screen design of the electronic equipment is facilitated, and the screen is more beautiful, the display effect is better, and the accuracy of the ambient light intensity detection can be improved.
The embodiment of the present application further provides a storage medium, which stores a plurality of instructions, where the instructions can be loaded by a processor to execute the steps in the method for detecting ambient light of an electronic device according to any one of the embodiments of the present application.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Referring to fig. 4, fig. 4 is a block diagram illustrating a specific structure of an electronic device provided in an embodiment of the present application, where the electronic device 400 may be used to implement the ambient light intensity detection method/apparatus provided in the foregoing embodiments.
As shown in fig. 4, the electronic device may include components such as a memory 401 having one or more computer-readable storage media (only one shown), an optical sensing module 402, a transmission module 403, a display module 404, a processor 405 including one or more processing cores (only one shown), and a power supply 406. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the memory 401 may be used to store software programs and modules, such as program instructions/modules corresponding to the fingerprint identification and positioning method/apparatus in the above-mentioned embodiments, and the processor 405 executes various functional applications and data processing by running the software programs and modules stored in the memory 401, so as to implement the function of fingerprint identification and positioning. The memory 401 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 401 may further include memory located remotely from processor 405, which may be connected to an electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The light sensing module 402 can collect ambient light to detect the intensity of ambient light.
The electronic device accesses streaming media or the like through a transport module 403 (e.g., a Wi-Fi module) that provides wireless broadband internet access for the user. Although fig. 4 shows the transmission module 403, it is understood that it does not belong to the essential constitution of the electronic device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The display module 404 may be used to display information input by or provided to the user as well as various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display module 404 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the display module 404 may further include a touch panel, which may cover the display panel, and when the touch panel detects a touch operation on or near the touch panel, the touch panel transmits the touch operation to the processor 405 to determine the type of the touch event, and then the processor 405 provides a corresponding visual output on the display panel according to the type of the touch event. Although in FIG. 4 the touch panel and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement input and output functions.
The processor 405 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 401 and calling data stored in the memory 401. Optionally, processor 405 may include one or more processing cores; preferably, the processor 405 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 405.
The electronic device also includes a power source 406 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 405 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 406 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device may also be a bluetooth module or the like. And will not be described in detail herein. Additionally, the electronic device also includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors the one or more programs including instructions for:
when the electronic equipment displays a first picture frame by using the first screen luminous intensity, first detected light intensity detected by the light sensation sensor is obtained, the light sensation sensor is located below a display area of a screen of the electronic equipment, then the first screen luminous intensity is adjusted according to a preset proportion, second screen luminous intensity is obtained, when the electronic equipment displays a second picture frame by using the second screen luminous intensity, second detected light intensity detected by the light sensation sensor is obtained, and therefore the ambient light intensity is calculated according to the first detected light intensity, the second detected light intensity and the preset proportion.
Wherein the first screen luminous intensity can be reduced by a predetermined ratio to obtain the second screen luminous intensity.
Or the luminous intensity of the first screen can be increased by a preset proportion to obtain the luminous intensity of the second screen.
Wherein the predetermined ratio is 10%.
Wherein the ambient light intensity can be calculated according to the following formula:
T1=E+F1
T2=E+(1-k)*F1
where T1 denotes the first detected light intensity, T2 denotes the second detected light intensity, E denotes the ambient light intensity, F1 denotes the first screen lighting intensity, and k is a predetermined ratio.
Wherein the first picture frame and the second picture frame are consecutive picture frames.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, in the electronic device according to the embodiment of the present application, when the electronic device displays the first frame with the first screen luminous intensity, the first detected light intensity detected by the light sensor is obtained, and then the first screen luminous intensity is adjusted according to the predetermined proportion to obtain the second screen luminous intensity, so that when the electronic device displays the second frame with the second screen luminous intensity, the second detected light intensity detected by the light sensor is obtained, and then the ambient light intensity is calculated according to the first detected light intensity, the second detected light intensity and the predetermined proportion, so that the ambient light intensity can be detected when the light sensor is disposed below the display area, a hole for the light sensor to receive ambient light does not need to be formed at the front end of the screen, that is, an opening design of the light sensor does not need to be formed at the front end of the screen, which is favorable for the overall screen design of the electronic device, the screen is more attractive, the display effect is better, and the accuracy of ambient light intensity detection can be improved.
The method, the apparatus, the storage medium, and the electronic device for detecting ambient light intensity provided by the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (14)
1. The utility model provides an environmental light intensity detection method, is applied to the electronic equipment of full face screen, the whole face of electronic equipment's display surface all is the display area, electronic equipment's screen does not set up the hole of light sense sensor, its characterized in that includes:
when the electronic equipment displays a first picture frame with a first screen luminous intensity, acquiring a first detected light intensity detected by the light sensation sensor, wherein the light sensation sensor is positioned below a display area of a screen of the electronic equipment;
adjusting the luminous intensity of the first screen according to a preset proportion to obtain the luminous intensity of a second screen;
when the electronic equipment displays a second picture frame with a second screen luminous intensity, acquiring a second detected light intensity detected by the light sensor;
and calculating the ambient light intensity of the real environment according to the first detected light intensity, the second detected light intensity and the preset proportion.
2. The method of claim 1, wherein said adjusting the first screen luminous intensity to a predetermined ratio to obtain the second screen luminous intensity comprises:
and reducing the luminous intensity of the first screen by a preset proportion to obtain the luminous intensity of a second screen.
3. The method of claim 1, wherein said adjusting the first screen luminous intensity to a predetermined ratio to obtain the second screen luminous intensity comprises:
and increasing the luminous intensity of the first screen by a preset proportion to obtain the luminous intensity of the second screen.
4. A method according to claim 2 or 3, characterized in that the predetermined proportion is 10%.
5. The method of claim 1, wherein calculating the ambient light intensity of the real environment from the first detected light intensity, the second detected light intensity, and the predetermined ratio comprises:
calculating the ambient light intensity according to the formula:
T1=E+F1
T2=E+(1-k)*F1
wherein T1 denotes the first detected light intensity, T2 denotes the second detected light intensity, E denotes the ambient light intensity, F1 denotes the first screen lighting intensity, and k is the predetermined ratio.
6. The method of claim 1, wherein the first picture frame and the second picture frame are consecutive picture frames.
7. The utility model provides an environmental light intensity detection device, is applied to the electronic equipment of full-face screen, the whole face of display surface of electronic equipment all is the display area, electronic equipment's screen does not set up the hole of light sense sensor, a serial communication port, includes:
the first obtaining module is used for obtaining first detected light intensity detected by the light sensation sensor when the electronic equipment displays a first picture frame with first screen light-emitting intensity, and the light sensation sensor is positioned below a display area of a screen of the electronic equipment;
the adjusting module is used for adjusting the luminous intensity of the first screen according to a preset proportion to obtain the luminous intensity of a second screen;
the second acquisition module is used for acquiring second detection light intensity detected by the light sensor when the electronic equipment displays a second picture frame with second screen light-emitting intensity;
and the calculation module is used for calculating the ambient light intensity of the real environment according to the first detected light intensity, the second detected light intensity and the preset proportion.
8. The device of claim 7, wherein the adjusting module is specifically configured to reduce the first screen illumination intensity by a predetermined ratio to obtain the second screen illumination intensity.
9. The device of claim 7, wherein the adjusting module is specifically configured to increase the first screen illumination intensity by a predetermined ratio to obtain the second screen illumination intensity.
10. The apparatus according to claim 8 or 9, wherein the predetermined proportion is 10%.
11. The apparatus of claim 7, wherein the computing module is specifically configured to compute the ambient light intensity according to the following formula:
T1=E+F1
T2=E+(1-k)*F1
wherein T1 denotes the first detected light intensity, T2 denotes the second detected light intensity, E denotes the ambient light intensity, F1 denotes the first screen lighting intensity, and k is the predetermined ratio.
12. The apparatus of claim 7, wherein the first picture frame and the second picture frame are consecutive picture frames.
13. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the ambient light intensity detection method according to any one of claims 1 to 6.
14. An electronic device, wherein the whole display surface of the electronic device is a display area, a screen of the electronic device is not provided with holes of a light-sensitive sensor, the electronic device comprises a processor and a memory, the memory is used for storing instructions and data, and the instructions are suitable for being loaded by the processor to execute the steps in the ambient light intensity detection method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711175960.1A CN107957293B (en) | 2017-11-22 | 2017-11-22 | Ambient light intensity detection method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711175960.1A CN107957293B (en) | 2017-11-22 | 2017-11-22 | Ambient light intensity detection method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107957293A CN107957293A (en) | 2018-04-24 |
CN107957293B true CN107957293B (en) | 2020-06-02 |
Family
ID=61959598
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711175960.1A Active CN107957293B (en) | 2017-11-22 | 2017-11-22 | Ambient light intensity detection method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107957293B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108917921B (en) * | 2018-06-15 | 2020-06-09 | 江西合力泰科技有限公司 | Ambient light intensity detection method |
CN109067967A (en) * | 2018-06-21 | 2018-12-21 | 维沃移动通信有限公司 | A kind of synchroballistic method of environment light, terminal device |
CN108962186A (en) * | 2018-06-28 | 2018-12-07 | 努比亚技术有限公司 | Brightness adjusting method, terminal and the computer readable storage medium of terminal screen |
CN111754932A (en) * | 2019-09-11 | 2020-10-09 | 义明科技股份有限公司 | Electronic device and method for detecting ambient light |
CN112865862B (en) * | 2019-11-12 | 2022-05-13 | Oppo广东移动通信有限公司 | Ambient light detection method and apparatus for optical communication between electronic devices |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140152632A1 (en) * | 2012-12-04 | 2014-06-05 | Apple Inc. | Solar Cell Ambient Light Sensors For Electronic Devices |
CN105592278B (en) * | 2014-10-21 | 2018-11-02 | 宏碁股份有限公司 | Electronic device and projected picture method of adjustment |
CN105702228B (en) * | 2014-11-28 | 2018-08-07 | 惠州市德赛西威汽车电子股份有限公司 | A kind of adaptive screen luminance adjustment method and system |
TWI568266B (en) * | 2016-01-27 | 2017-01-21 | 明基電通股份有限公司 | Image adjusting method and related displaying apparatus |
-
2017
- 2017-11-22 CN CN201711175960.1A patent/CN107957293B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107957293A (en) | 2018-04-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107979698B (en) | Ambient light intensity detection method and device, storage medium and electronic equipment | |
CN107957293B (en) | Ambient light intensity detection method and device, storage medium and electronic equipment | |
US11574611B2 (en) | Electronic device and method for controlling the same | |
US10935421B2 (en) | Light intensity detection method and apparatus, and intelligent terminal | |
US11175824B2 (en) | Method for detecting ambient light intensity, storage medium and electronic device | |
US20180181171A1 (en) | Electronic device and heat control method based on temperature of battery in electronic device | |
CN111754954B (en) | Screen brightness adjusting method and device, storage medium and electronic equipment | |
KR102360492B1 (en) | Flexible display and electronic device having the same | |
WO2021073185A1 (en) | Touch screen, electronic device, and display control method | |
CN102945133B (en) | Screen regional display system and screen regional display methods | |
CN107966209A (en) | Environment light detection method, device, storage medium and electronic equipment | |
WO2019196909A1 (en) | Fingerprint collection method and apparatus based on optical fingerprint technology, and user terminal | |
CN107990978A (en) | Environment light detection method, device, storage medium and electronic equipment | |
CN107851422A (en) | Display control method in electronic equipment and electronic equipment | |
CN105630129A (en) | Power control method and apparatus for reducing power consumption | |
CN108924360B (en) | Display method, storage medium, and electronic device | |
WO2021254438A1 (en) | Drive control method and related device | |
WO2014029247A1 (en) | Mobile terminal screen display method and device | |
WO2019206225A1 (en) | Light supplement method and mobile terminal | |
CN107945733B (en) | Brightness of display screen method of adjustment, device, storage medium and electronic equipment | |
KR20210076539A (en) | Smart mirror apparatus and control method thereof | |
CN109064996A (en) | Vision-control method, apparatus, storage medium and electronic equipment | |
CN113889055A (en) | Screen brightness adjusting method, electronic equipment and storage medium | |
CN109238460A (en) | A kind of method and terminal device obtaining ambient light intensity | |
CN109302569A (en) | A kind of image imaging method and device of mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |