CN113074812B - Ambient light intensity detection method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN113074812B
CN113074812B CN202010006955.3A CN202010006955A CN113074812B CN 113074812 B CN113074812 B CN 113074812B CN 202010006955 A CN202010006955 A CN 202010006955A CN 113074812 B CN113074812 B CN 113074812B
Authority
CN
China
Prior art keywords
screen
light
time period
light intensity
determining
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
Application number
CN202010006955.3A
Other languages
Chinese (zh)
Other versions
CN113074812A (en
Inventor
陈朝喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010006955.3A priority Critical patent/CN113074812B/en
Publication of CN113074812A publication Critical patent/CN113074812A/en
Application granted granted Critical
Publication of CN113074812B publication Critical patent/CN113074812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Sustainable Development (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Liquid Crystal Display Device Control (AREA)

Abstract

The disclosure relates to an ambient light intensity detection method and device, electronic equipment and a storage medium, and belongs to the technical field of optical sensing. The ambient light intensity detection method provided by the disclosure comprises the following steps: collecting first incident light in a first time period to obtain first light intensity, wherein the first incident light comprises ambient light in an inter-frame black screen time period and screen light in a first bright screen time period; collecting second incident light in a second time period to obtain second light intensity, wherein the second incident light comprises screen light in a second screen-lighting time period, and the second time period is equal to the second screen-lighting time period in duration; determining the light intensity of the screen light in the first screen-lighting time period according to the second light intensity, the duration of the second time period and the duration of the first screen-lighting time period; and determining the ambient light intensity according to the light intensity of the screen light in the first screen-lighting time period and the first light intensity.

Description

Ambient light intensity detection method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of light intensity detection, and in particular relates to an ambient light intensity detection method and device, electronic equipment and a storage medium.
Background
Generally, a light sensor is installed in an electronic device to detect an intensity of ambient light of an environment in which the electronic device is currently located. The processor of the electronic device regulates the brightness of the display screen according to the light intensity detected by the light sensor. The full screen is a development trend of the current electronic equipment, and in the electronic equipment adopting the full screen, a light hole matched with the light sensor is not arranged on the display screen. Therefore, it is necessary to provide an ambient light intensity detection method that is compatible with a full screen.
However, the ambient light detection method provided in the related art has difficulty in ensuring detection accuracy in the case that the display screen has a higher refresh rate and luminous intensity.
Disclosure of Invention
The disclosure provides an ambient light intensity detection method and device, electronic equipment and a storage medium, so as to solve the defects of the related technology.
In a first aspect, embodiments of the present disclosure provide an ambient light intensity detection method, where the method is applied to a light sensor, where the light sensor cooperates with a display screen; the method comprises the following steps:
collecting first incident light in a first time period to obtain first light intensity, wherein the first incident light comprises ambient light in an inter-frame black screen time period, screen light in a first bright screen time period and the ambient light;
collecting second incident light in a second time period to obtain second light intensity, wherein the second incident light comprises screen light and ambient light in a second bright screen time period, and the second time period is equal to the second bright screen time period in duration;
Determining the light intensity of the screen light in the first screen-lighting time period according to the second light intensity, the duration of the second time period and the duration of the first screen-lighting time period;
And determining the ambient light intensity according to the light intensity of the screen light in the first screen-lighting time period and the first light intensity.
In one embodiment, the determining the light intensity of the screen light in the first bright screen period according to the second light intensity, the duration of the second time period, and the duration of the first bright screen period includes:
determining a light intensity acquisition value in unit time according to the second light intensity and the duration of the second time period;
and determining the light intensity of the screen light in the first screen-lighting time period according to the light intensity acquisition value in unit time and the duration of the first screen-lighting time period.
In one embodiment, before determining the light intensity of the screen light in the first bright screen period, the method further comprises:
and acquiring a time length difference value between the first time period and the inter-frame black screen time period, and taking the time length difference value as the time length of the first bright screen time period.
In one embodiment, the obtaining the ambient light intensity according to the light intensity of the screen light in the first bright screen period and the first light intensity includes:
and acquiring a difference value between the first light intensity and the light intensity of the screen light in the first screen lighting time period, and determining the difference value as the ambient light intensity.
In one embodiment, before the collecting the first incident light in the first period of time to obtain the first light intensity, the method further includes:
And receiving an acquisition starting instruction sent by the display screen in response to the completion of the display of the current frame image.
In one embodiment, the duration of the first and second bright screen periods satisfies:
And displaying the same frame of image by the display screen in the first screen-lighting time period and the second screen-lighting time period.
In a second aspect, embodiments of the present disclosure provide an ambient light intensity detection device applied to a light sensor that cooperates with a display screen; the device comprises:
the first acquisition module is used for acquiring first incident light in a first time period to obtain first light intensity, wherein the first incident light comprises ambient light in an inter-frame black screen time period and screen light in a first bright screen time period;
The second acquisition module is used for acquiring second incident light in a second time period to obtain second light intensity, the second incident light comprises screen light in a second screen-lighting time period, and the second time period is equal to the second screen-lighting time period in duration;
the first determining module is used for determining the light intensity of the screen light in the first screen-on time period according to the second light intensity, the duration of the second time period and the duration of the first screen-on time period;
And the second determining module is used for determining the ambient light intensity according to the light intensity of the screen light in the first screen-lighting time period and the first light intensity.
In one embodiment, the first determining module includes:
the first determining unit is used for determining a light intensity acquisition value in unit time according to the second light intensity and the duration of the second time period;
And the second determining unit is used for determining the light intensity of the screen light in the first screen-lighting time period according to the light intensity acquisition value in unit time and the duration of the first screen-lighting time period.
In one embodiment, the apparatus further comprises:
the acquisition module is used for acquiring a time length difference value between the first time period and the inter-frame black screen time period before determining the light intensity of the screen light in the first bright screen time period, and taking the time length difference value as the time length of the first bright screen time period.
In one embodiment, the second determining module is specifically configured to: and acquiring a difference value between the first light intensity and the light intensity of the screen light in the first screen lighting time period, and determining the difference value as the ambient light intensity.
In one embodiment, the apparatus further comprises: and the receiving module is used for receiving an acquisition starting instruction sent by the display screen in response to the completion of the display of the current frame image before the first incident light is acquired in the first time period to obtain the first light intensity.
In one embodiment, the duration of the first and second bright screen periods satisfies:
And displaying the same frame of image by the display screen in the first screen-lighting time period and the second screen-lighting time period.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
A display screen;
a light sensor disposed below the display screen;
a memory for storing light sensor core executable instructions in the light sensor;
the light sensor core is configured to execute executable instructions in the memory to implement the steps of the method of the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a readable storage medium having stored thereon executable instructions which when executed by a light sensor core implement the steps of the method of the first aspect described above.
The technical scheme provided by the disclosure has at least the following beneficial effects:
And determining the light intensity acquired in the first bright screen time period in the first time period through the second light intensity acquired in the second time period, the duration of the second time period and the duration of the first bright screen time period. And further, determining the light intensity acquired in the inter-frame black screen time period according to the first bright screen section and the first light intensity. Because the light sensor only receives the ambient light in the inter-frame black screen period, the light intensity acquired in the inter-frame black screen period is the ambient light intensity. The sampling mode is suitable for the condition of higher refresh rate and luminous brightness of the display screen, and the accuracy of the detection result of the ambient light intensity is ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart diagram illustrating an ambient light intensity detection method according to an exemplary embodiment;
FIG. 2 is a partial flow diagram illustrating an ambient light intensity detection method according to another exemplary embodiment;
FIG. 3 is a block diagram illustrating an ambient light intensity detection device according to an exemplary embodiment;
fig. 4 is a block diagram showing a structure of an ambient light intensity detection device according to another exemplary embodiment;
fig. 5 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. Unless defined otherwise, technical or scientific terms used in this disclosure should be given the ordinary meaning as understood by one of ordinary skill in the art to which this disclosure belongs. The terms "a" or "an" and the like as used in the description and the claims do not denote a limitation of quantity, but rather denote the presence of at least one. Unless otherwise indicated, the terms "comprises," "comprising," and the like are intended to cover the presence of elements or articles recited as being "comprising" or "including," and equivalents thereof, without excluding other elements or articles. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
The ambient light detection method provided in the related art is adapted to the brightness adjustment mode of the display screen. Before describing the ambient light detection method in the related art, two kinds of overall screen brightness adjustment methods provided in the related art are described.
The first is a PWM dimming mode. The driving module of the display screen drives the display screen to display through a pulse width modulation (Pulse Width Modulation, PWM) signal. When the PWM signal is at a high level, the display screen emits light to display a frame of image; when the PWM signal is low, the display screen black screen does not display an image (i.e., an inter-frame interval forming an adjacent frame display image).
The PWM dimming mode increases the light-emitting time of the display screen by increasing the duty ratio of PWM signals (namely, increasing the refresh frequency of the display screen), so as to further enhance the light-emitting brightness of the display screen. Otherwise, the duty ratio of the PWM signal is reduced, the pixel enabling time of the display screen is reduced, and the luminous brightness of the display screen is further reduced.
The second mode is a DC dimming mode. The light emission luminance of the display screen is affected by the voltage or current value of the driving signal. By increasing the voltage value or the current value of the driving signal, the light-emitting brightness of the display screen is enhanced. Conversely, the light-emitting brightness of the display screen is reduced by reducing the voltage value or the current value of the driving signal.
In the related art, a PWM dimming method or a DC dimming method is used according to different luminous intensities of the display screen.
Specifically, the processor of the electronic device searches the corresponding light emitting level according to the current light emitting intensity of the display screen according to the corresponding relation between the light emitting intensity of the display screen and the light emitting level, which is stored in advance. And determining a dimming mode according to the light emitting level and the regulation critical value. If the current light emitting level is judged to be smaller than or equal to the regulation critical value, adopting a PWM dimming mode; and if the current light emitting level is judged to be larger than the regulation critical value, adopting a DC dimming mode. That is, the PWM dimming method is adopted when the light emission intensity of the display screen is low, and the DC dimming method is adopted when the light emission intensity of the display screen is high.
Based on the above-mentioned dimming manner, the ambient light intensity detection method provided in the related art is as follows:
When the PWM dimming mode is adopted, the ambient light intensity detection method specifically comprises the following steps: during the period of black screen between frames of the display screen, the light sensor is started to receive the ambient light and detect the intensity of the ambient light. At this time, the light sensor does not receive the light emitted by the display screen, so that the detection accuracy is ensured.
When the DC dimming mode is adopted, the ambient light detection method specifically comprises the following steps: and processing the data output by the light sensor by adopting a pre-obtained highlight algorithm to obtain the ambient light intensity. The high-luminance algorithm is obtained through modeling and training, and is suitable for refreshing frequency and luminous brightness of high luminous level.
The inventors found that: under the condition that the light emitting level of the display screen is close to the regulation critical value from low to high, the accuracy of the ambient light intensity detection method in the related technology is poor.
Specifically, taking an example that the light emitting level includes 0 to 2047 and the regulation critical value is 1000, the above defects exist when the light emitting level is in the range of 500 to 1000. At this time, the refresh frequency of the display screen is high, and the period of the inter-frame black screen period is long. Based on the hardware characteristics of the light sensor, the time required for one sampling is longer than the duration of the inter-frame black screen time period, so that the incident light received by the light sensor comprises screen light and ambient light of a display screen, and detection errors are caused. In addition, the light emitting level of the display screen does not exceed the regulation critical value, so that the display screen is not suitable for a high-light algorithm.
Based on the above problems, embodiments of the present disclosure provide an ambient light intensity detection method and apparatus, an electronic device, and a storage medium, so as to improve accuracy of the ambient light intensity detection method.
Fig. 1 is a flow chart of an ambient light detection method according to an exemplary embodiment. The ambient light intensity detection method provided by the embodiment of the disclosure is applied to the light sensor, and the light sensor is matched with the display screen. As shown in fig. 1, the ambient light intensity detection method includes:
step S101, collecting first incident light in a first period of time to obtain a first light intensity, where the first incident light includes ambient light in an inter-frame black screen period of time, and screen light and ambient light in a first bright screen period of time.
The display screen does not emit light in the inter-frame black screen time period, and the incident light collected by the light sensor is only ambient light. The display screen emits light during a first bright screen period, and incident light collected by the light sensor includes ambient light and screen emission of the display screen.
The light sensor performs one acquisition during a first period of time. The duration of the first time period is equal to the sum of the duration of the inter-frame black screen time period and the duration of the first bright screen time period. And, the first period includes a complete inter-frame black screen period. In this way, the light sensor is guaranteed to receive sufficient ambient light.
The start time of the inter-frame black screen period is set at any time within the first period. In one embodiment, before step S101, the method further includes: and receiving an acquisition starting instruction sent by the display screen in response to the completion of the display of the current frame image. That is, the light sensor performs step S101 in response to the acquisition start instruction transmitted from the display screen.
The display screen displays one frame of image by refreshing at a time. And the driving module of the display screen drives the pixels in the last column or row of the display screen, and the current frame image display is completed. As shown in fig. 2, the driving module of the display screen is electrically connected with the nuclear power of the optical sensor. And sending a sampling start instruction to the optical sensor after the display screen finishes displaying the current frame image. Accordingly, the start time of the black screen between frames of the display screen coincides with the sampling start time of the light sensor. In this way, it is ensured that the first period of time includes a complete inter-frame black screen phase, such that the light sensor receives as much ambient light as possible incident during the inter-frame black screen period of time.
Step S102, collecting second incident light in a second time period to obtain second light intensity, wherein the second incident light comprises screen light and ambient light in a second bright screen time period, and the second time period is equal to the second bright screen time period in duration.
In one embodiment, the duration of the first and second bright screen periods satisfies: and displaying the same frame of image by the display screen in the first bright screen time period and the second bright screen time period. For example, the first bright screen period and the second bright screen period are two consecutive periods. In this way, the difference in brightness between the screen light of the display screen and the ambient light is very weak, or even negligible, in the first and second bright screen periods. This approach helps to improve the accuracy of the ambient light detection method, as will be described in more detail below.
Step S103, determining the light intensity of the screen light in the first bright screen time period according to the second light intensity, the duration of the second time period and the duration of the first bright screen time period.
Fig. 2 is a flowchart illustrating determining the intensity of screen light during a first bright screen period according to an exemplary embodiment. In one embodiment, as shown in fig. 2, step 103 specifically includes:
and 1031, determining a light intensity acquisition value in unit time according to the second light intensity and the duration of the second time period.
Optionally, a ratio of the second light intensity to the duration of the second time period is determined as the light intensity acquisition value per unit time. When the optical sensor is used, the incident light is converted into a digital signal through the photoelectric detector, the amplifying circuit, the sample hold circuit and the analog-to-digital converter. The light intensity collection value per unit time acquired in step S1031 characterizes the digital signal value output by the light sensor per unit time based on the screen light and the ambient light.
Step S1032, determining the light intensity of the screen light in the first screen-lighting time period according to the light intensity acquisition value in unit time and the duration of the first screen-lighting time period.
Optionally, the product of the light intensity acquisition value per unit time and the duration of the first screen lighting period is used as the light intensity of the screen light in the first screen lighting period.
In step S102, the luminance of the screen light and the ambient light of the display screen in the first bright screen period and in the second bright screen period are approximated. Therefore, the light intensity acquisition value per unit time obtained based on the screen luminescence in the second screen-lighting time period can represent the light intensity acquisition performance in the first screen-lighting time period. Further, the accuracy of the light intensity of the screen light in the first bright screen period acquired in step S1032 is ensured.
It should be noted that, the duration of the first bright screen period is obtained by the following manner: and acquiring a time length difference value between the first time period and the inter-frame black screen time period, and taking the time length difference value as the time length of the first bright screen time period. The refresh frequency of the display screen is preset, and the duration of the inter-frame black screen time period can be determined according to the preset refresh frequency.
With continued reference to fig. 1, step S104 determines the ambient light intensity from the light intensity of the screen light during the first bright screen period and the first light intensity.
Optionally, step S104 specifically includes: and obtaining a difference value between the first light intensity and the light intensity of the screen light in the first screen lighting time period, and determining the difference value as the ambient light intensity. During the first period, only ambient light is received during the inter-frame black screen period. That is, the light intensity acquired in the inter-frame black screen period is the ambient light intensity. Therefore, by removing the light intensity corresponding to the first screen lighting period from the first light intensity in step S104, the intensity of the pure ambient light can be obtained.
According to the ambient light intensity detection method provided by the embodiment of the disclosure, the light intensity acquisition value in unit time is obtained through the second light intensity obtained in the second time period and the duration of the second time period. And obtaining the light intensity corresponding to the first screen-lighting time period in the first light intensity according to the product of the duration of the first screen-lighting time period in the first time period and the light intensity acquisition value in unit time. Further, a difference between the first light intensity and the light intensity corresponding to the first bright screen period is used as the light intensity corresponding to the inter-frame dark screen period. Because the light sensor only collects the ambient light in the inter-frame black screen time period, the light intensity corresponding to the inter-frame black screen time period is the light intensity of the ambient light.
The method provided by the embodiment of the disclosure is suitable for the condition that the light emitting level of the display screen is close to the regulation and control critical value, the accuracy of the acquired ambient light intensity is effectively improved, the stable use of the optical sensor is further ensured, and the user experience is optimized.
Based on the ambient light intensity detection method provided by the embodiment, the embodiment of the disclosure also provides an ambient light intensity detection device. The ambient light intensity detection device is applied to a light sensor, and the light sensor is matched with a display screen. Fig. 3 to 4 are block diagrams showing the structure of an ambient light intensity detection device according to various exemplary embodiments.
As shown in fig. 3, the ambient light intensity detection device includes:
the first collecting module 301 is configured to collect, in a first period, a first incident light to obtain a first light intensity, where the first incident light includes an ambient light in an inter-frame black screen period, and a screen light in a first bright screen period.
The second collecting module 302 is configured to collect a second incident light in a second period of time to obtain a second light intensity, where the second incident light includes a screen light in a second bright screen period of time, and the second period of time is equal to the second bright screen period of time in duration.
The first determining module 303 is configured to determine the light intensity of the screen light in the first bright screen period according to the second light intensity, the duration of the second time period, and the duration of the first bright screen period. And
The second determining module 304 is configured to determine the ambient light intensity according to the light intensity of the screen light in the first bright screen period and the first light intensity.
In one embodiment, as shown in fig. 4, the first determining module 303 includes: the first determining unit 3031 is configured to determine a light intensity acquisition value per unit time according to the second light intensity and the duration of the second time period. And
The second determining unit 3032 is configured to determine the light intensity of the screen light in the first screen lighting period according to the light intensity acquisition value per unit time and the duration of the first screen lighting period.
In one embodiment, the ambient light intensity detection device further comprises: the acquisition module is used for acquiring a time length difference value between the first time period and the inter-frame black screen time period before determining the light intensity of the screen light in the first bright screen time period, and taking the time length difference value as the time length of the first bright screen time period.
In one embodiment, the second determining module 304 is specifically configured to: and obtaining a difference value between the first light intensity and the light intensity of the screen light in the first screen lighting time period, and determining the difference value as the ambient light intensity.
In one embodiment, the ambient light intensity detection device further comprises: and the receiving module is used for receiving an acquisition starting instruction sent by the display screen in response to the completion of the display of the current frame image before the first incident light is acquired in the first time period to obtain the first light intensity.
In one embodiment, the duration of the first and second bright screen periods satisfies: and displaying the same frame of image by the display screen in the first bright screen time period and the second bright screen time period.
Based on the above ambient light intensity detection method, the embodiment of the disclosure further provides an electronic device. The electronic device may be a smart phone, a computer, a digital broadcast terminal, a tablet device, a medical device, an exercise device, a personal digital assistant, etc.
The electronic device includes: the display device comprises a display screen, a light sensor arranged below the display screen and a memory for storing executable instructions of a light sensor core in the light sensor. Wherein the light sensor core is configured to execute executable instructions in the memory to implement the steps in the ambient light intensity detection method described above.
Fig. 5 is a block diagram of an electronic device, according to an example embodiment. Referring to fig. 5, an electronic device 500 may include one or more of the following components: a processing component 502, a memory 504, a power supply component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, a communication component 516, and an image acquisition component 518.
The processing component 502 generally processes the overall operation of the electronic device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 can include one or more processors 520 to execute instructions. Further, the processing component 502 can include one or more modules that facilitate interactions between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the electronic device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 506 provides power to the various components of the electronic device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 500.
The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the target object. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a target object. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further comprises a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc.
The sensor assembly 514 includes one or more sensors for providing status assessment of various aspects of the electronic device 500. For example, the sensor assembly 514 may detect an on/off state of the electronic device 500, a relative positioning of the components, such as a display and keypad of the electronic device 500, a change in position of the electronic device 500 or one of the components, the presence or absence of a target object in contact with the electronic device 500, an orientation or acceleration/deceleration of the electronic device 500, and a change in temperature of the electronic device 500. As another example, sensor assembly 514 may further include a photosensor disposed below the OLED display screen, wherein a photosensor core in the photosensor may execute instructions to implement the steps of the methods shown in fig. 1-2.
The communication component 516 is configured to facilitate communication between the electronic device 500 and other devices, either wired or wireless. The electronic device 500 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements.
In an exemplary embodiment, the disclosed embodiments also provide a readable storage medium storing executable instructions. The executable instructions may be executed by a photosensor core in the photosensor to implement the steps of the ambient light intensity detection method provided above. The readable storage medium may be, among other things, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (14)

1. The ambient light intensity detection method is characterized by being applied to an optical sensor, wherein the optical sensor is matched with a display screen; the method comprises the following steps:
collecting first incident light in a first time period to obtain first light intensity, wherein the first incident light comprises ambient light in an inter-frame black screen time period, screen light in a first bright screen time period and the ambient light;
collecting second incident light in a second time period to obtain second light intensity, wherein the second incident light comprises screen light and ambient light in a second bright screen time period, and the second time period is equal to the second bright screen time period in duration;
Determining the light intensity of the screen light in the first screen-lighting time period according to the second light intensity, the duration of the second time period and the duration of the first screen-lighting time period;
And determining the ambient light intensity according to the light intensity of the screen light in the first screen-lighting time period and the first light intensity.
2. The method of claim 1, wherein determining the intensity of the screen light for the first light-up period based on the second intensity, the duration of the second period, and the duration of the first light-up period comprises:
determining a light intensity acquisition value in unit time according to the second light intensity and the duration of the second time period;
and determining the light intensity of the screen light in the first screen-lighting time period according to the light intensity acquisition value in unit time and the duration of the first screen-lighting time period.
3. The method of claim 2, wherein prior to determining the intensity of the screen light for the first bright screen period, the method further comprises:
and acquiring a time length difference value between the first time period and the inter-frame black screen time period, and taking the time length difference value as the time length of the first bright screen time period.
4. The method of claim 1, wherein the obtaining the ambient light intensity from the light intensity of the screen light during the first bright screen period and the first light intensity comprises:
and acquiring a difference value between the first light intensity and the light intensity of the screen light in the first screen lighting time period, and determining the difference value as the ambient light intensity.
5. The method of claim 1, wherein prior to said collecting the first incident light for the first period of time to obtain the first light intensity, the method further comprises:
And receiving an acquisition starting instruction sent by the display screen in response to the completion of the display of the current frame image.
6. The method of any one of claims 1-5, wherein the duration of the first and second bright screen periods satisfies:
And displaying the same frame of image by the display screen in the first screen-lighting time period and the second screen-lighting time period.
7. An ambient light intensity detection device is characterized in that the device is applied to a light sensor, and the light sensor is matched with a display screen; the device comprises:
the first acquisition module is used for acquiring first incident light in a first time period to obtain first light intensity, wherein the first incident light comprises ambient light in an inter-frame black screen time period and screen light in a first bright screen time period;
The second acquisition module is used for acquiring second incident light in a second time period to obtain second light intensity, the second incident light comprises screen light in a second screen-lighting time period, and the second time period is equal to the second screen-lighting time period in duration;
the first determining module is used for determining the light intensity of the screen light in the first screen-on time period according to the second light intensity, the duration of the second time period and the duration of the first screen-on time period;
And the second determining module is used for determining the ambient light intensity according to the light intensity of the screen light in the first screen-lighting time period and the first light intensity.
8. The apparatus of claim 7, wherein the first determining module comprises:
the first determining unit is used for determining a light intensity acquisition value in unit time according to the second light intensity and the duration of the second time period;
And the second determining unit is used for determining the light intensity of the screen light in the first screen-lighting time period according to the light intensity acquisition value in unit time and the duration of the first screen-lighting time period.
9. The apparatus of claim 8, wherein the apparatus further comprises:
the acquisition module is used for acquiring a time length difference value between the first time period and the inter-frame black screen time period before determining the light intensity of the screen light in the first bright screen time period, and taking the time length difference value as the time length of the first bright screen time period.
10. The apparatus of claim 7, wherein the second determining module is specifically configured to:
and acquiring a difference value between the first light intensity and the light intensity of the screen light in the first screen lighting time period, and determining the difference value as the ambient light intensity.
11. The apparatus of claim 7, wherein the apparatus further comprises:
and the receiving module is used for receiving an acquisition starting instruction sent by the display screen in response to the completion of the display of the current frame image before the first incident light is acquired in the first time period to obtain the first light intensity.
12. The apparatus of any one of claims 7 to 11, wherein the duration of the first and second bright screen periods satisfies:
And displaying the same frame of image by the display screen in the first screen-lighting time period and the second screen-lighting time period.
13. An electronic device, comprising:
A display screen;
a light sensor disposed below the display screen;
a memory for storing light sensor core executable instructions in the light sensor;
The light sensor core is configured to execute executable instructions in the memory to implement the steps of the method of any one of claims 1 to 6.
14. A readable storage medium having stored thereon executable instructions, which when executed by a light sensor core, implement the steps of the method of any of claims 1 to 6.
CN202010006955.3A 2020-01-03 2020-01-03 Ambient light intensity detection method and device, electronic equipment and storage medium Active CN113074812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010006955.3A CN113074812B (en) 2020-01-03 2020-01-03 Ambient light intensity detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010006955.3A CN113074812B (en) 2020-01-03 2020-01-03 Ambient light intensity detection method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113074812A CN113074812A (en) 2021-07-06
CN113074812B true CN113074812B (en) 2024-05-07

Family

ID=76608706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010006955.3A Active CN113074812B (en) 2020-01-03 2020-01-03 Ambient light intensity detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113074812B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461093B (en) * 2021-08-19 2023-01-20 荣耀终端有限公司 Detection method of ambient light, electronic equipment, chip system and storage medium
CN116682367B (en) * 2022-10-14 2024-03-29 荣耀终端有限公司 Screen ambient light detection method, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105788536A (en) * 2016-03-24 2016-07-20 广东欧珀移动通信有限公司 Backlight brightness adjusting method and device and terminal equipment
CN107622747A (en) * 2017-09-29 2018-01-23 上海展扬通信技术有限公司 The adjusting method and adjusting means of a kind of display screen for smart machine
CN109920394A (en) * 2019-04-29 2019-06-21 合肥惠科金扬科技有限公司 A kind of adjusting method of screen intensity, regulating device and display equipment
WO2019165938A1 (en) * 2018-03-02 2019-09-06 Oppo广东移动通信有限公司 Image collection method and apparatus, mobile terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105788536A (en) * 2016-03-24 2016-07-20 广东欧珀移动通信有限公司 Backlight brightness adjusting method and device and terminal equipment
CN107622747A (en) * 2017-09-29 2018-01-23 上海展扬通信技术有限公司 The adjusting method and adjusting means of a kind of display screen for smart machine
WO2019165938A1 (en) * 2018-03-02 2019-09-06 Oppo广东移动通信有限公司 Image collection method and apparatus, mobile terminal and storage medium
CN109920394A (en) * 2019-04-29 2019-06-21 合肥惠科金扬科技有限公司 A kind of adjusting method of screen intensity, regulating device and display equipment

Also Published As

Publication number Publication date
CN113074812A (en) 2021-07-06

Similar Documents

Publication Publication Date Title
CN110796988B (en) Backlight adjusting method and device
KR102372830B1 (en) Ambient light detection method, apparatus, terminal and storage medium
CN108806627B (en) Method and device for determining ambient light brightness and storage medium
EP2991067B1 (en) Backlight brightness control method and device
JP2017515257A (en) Method and apparatus for controlling light emission
US20190295493A1 (en) Method, terminal and storage medium for preventing display from image-sticking
CN112687232B (en) Dimming method and device of OLED display screen, electronic equipment and storage medium
CN113074812B (en) Ambient light intensity detection method and device, electronic equipment and storage medium
CN112992056A (en) Ambient light detection method and apparatus, electronic device, and storage medium
CN109215578B (en) Screen display method and device
US10805551B2 (en) Method and device for photographing images
US10930217B2 (en) Method and apparatus for compensating operating parameter of display circuit
CN111210792A (en) Method and device for determining ambient light brightness, terminal and storage medium
CN112764659B (en) Information processing method and device, electronic device and storage medium
CN113257195B (en) Ambient light detection method and apparatus, electronic device, and storage medium
CN112781832A (en) Method, apparatus, device and medium for determining ambient light for terminal device
CN108847199B (en) Brightness determination method and device
CN112394845B (en) Distance sensor module, display device, electronic equipment and distance detection method
US20200105200A1 (en) Oled displaying method and device
CN111883040B (en) Display effect adjusting method and device of display screen, terminal equipment and medium
CN111477167A (en) Method, device and storage medium for correcting display brightness
CN113852720B (en) Ambient light determination method, device, terminal equipment and medium
CN111292690B (en) Screen backlight brightness adjusting method and device
CN113393813B (en) Display screen brightness adjusting method and device and terminal equipment
CN112669741B (en) Light emission control method and device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant