CN110264978B - Light intensity correction method, light intensity correction device, and electronic apparatus - Google Patents

Light intensity correction method, light intensity correction device, and electronic apparatus Download PDF

Info

Publication number
CN110264978B
CN110264978B CN201910583493.9A CN201910583493A CN110264978B CN 110264978 B CN110264978 B CN 110264978B CN 201910583493 A CN201910583493 A CN 201910583493A CN 110264978 B CN110264978 B CN 110264978B
Authority
CN
China
Prior art keywords
brightness
light intensity
light
detection value
display panel
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
CN201910583493.9A
Other languages
Chinese (zh)
Other versions
CN110264978A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910583493.9A priority Critical patent/CN110264978B/en
Publication of CN110264978A publication Critical patent/CN110264978A/en
Application granted granted Critical
Publication of CN110264978B publication Critical patent/CN110264978B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness

Abstract

The present disclosure provides a light intensity correction method, including: obtaining a light intensity detection value detected by the optical sensor; obtaining the light leakage intensity of the display panel in a lighting state under the condition that the current brightness is the first brightness; correcting the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity; adjusting the current brightness from the first brightness to a second brightness based on the ambient light intensity. The disclosure also provides a light intensity correction device and an electronic device.

Description

Light intensity correction method, light intensity correction device, and electronic apparatus
Technical Field
The present disclosure relates to a light intensity correction method, a light intensity correction apparatus, and an electronic device.
Background
With the development of science and technology, electronic devices such as mobile phones and tablet computers become an essential part of the work and life of people. In order to improve user experience, the electronic devices such as the mobile phone and the tablet personal computer are provided with a function of automatically adjusting screen brightness, the brightness of the ambient light can be sensed by the optical sensor, and then the brightness of the screen is adjusted according to the brightness of the ambient light. However, some light sensors of electronic devices are affected by light leakage from a screen of the electronic device, and light from the screen is exposed from the side wall and projected onto the light sensors, which results in inaccurate measurement of ambient light by the light sensors. In the prior art, a physical blocking method is adopted, and a black blocking material is adhered to the side edge of a screen, so that light leakage of the screen is reduced, but part of light is still exposed, and the process complexity is increased. Therefore, how to effectively avoid the influence of screen light leakage on the optical sensor becomes a technical problem which needs to be solved urgently.
Disclosure of Invention
One aspect of the present disclosure provides a light intensity correction method, including: obtaining a light intensity detection value detected by the optical sensor; obtaining the light leakage intensity of the display panel in a lighting state under the condition that the current brightness is the first brightness; correcting the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity; adjusting the current brightness from the first brightness to a second brightness based on the ambient light intensity.
Optionally, the obtaining a light intensity detection value detected by the light sensor includes: and under the condition that the brightness of the display panel in a lighting state is first brightness, the light intensity detection value collected by the light sensor.
Optionally, the light intensity correction method according to the embodiment of the present disclosure further includes: if the light intensity detection value is smaller than the light leakage influence threshold value, performing the light leakage intensity under the condition that the current brightness of the display panel in the lighting state is the first brightness; correcting the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity; and said adjusting said current brightness from said first brightness to a second brightness based on said ambient light intensity; and if the light intensity detection value is larger than a light leakage influence threshold value, adjusting the current brightness from the first brightness to a third brightness based on the light intensity detection value.
Optionally, the obtaining the light leakage intensity of the display panel at the first brightness includes: obtaining pre-stored corresponding relation information about the brightness state and the light leakage intensity; inquiring the light leakage intensity corresponding to the first brightness from the corresponding relation information; wherein the obtaining of the pre-stored information about correspondence between the luminance state and the light leakage intensity includes: and acquiring corresponding relation information of the brightness state and the light leakage intensity from a storage device of the electronic equipment.
Optionally, the light intensity correction method according to the embodiment of the present disclosure further includes: obtaining a first light intensity detection value of the display panel in the screen extinguishing state and a second light intensity detection value of the display panel in the lighting state with first brightness through a switching process of the display panel from the screen extinguishing state to the lighting state; determining a difference between the second light intensity detection value and the first light intensity detection value; and updating the light leakage intensity corresponding to the first brightness in the corresponding relation information based on the difference value.
Optionally, the switching process from the screen-off state to the lighting state by the display panel includes: obtaining communication information; obtaining a first light intensity detection value of the display panel in a screen extinguishing state based on the communication information; the display panel is lightened by first brightness, and a reminding mark of the communication information is displayed; a second light intensity detection value that the display panel is in a lighting state with first brightness is obtained.
Another aspect of the present disclosure provides a light intensity correction apparatus including: the measuring module is used for obtaining a light intensity detection value detected by the optical sensor; the light leakage module is used for obtaining the light leakage intensity of the display panel in the lighting state under the condition that the current brightness is the first brightness; the correction module is used for correcting the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity; an adjusting module, configured to adjust the current brightness from the first brightness to a second brightness based on the ambient light intensity.
Optionally, the measuring module is configured to obtain a light intensity detection value collected by the light sensor when the brightness of the display panel in the lighting state is the first brightness.
Optionally, the light intensity correction apparatus according to the embodiment of the present disclosure further includes: a determining module for determining whether the light intensity detection value is less than a light leakage influence threshold value; the first control module is used for controlling the light leakage module to obtain the light leakage intensity of a display panel in a lighting state under the condition that the current brightness is the first brightness, controlling the correction module to correct the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity and controlling the adjustment module to adjust the current brightness from the first brightness to the second brightness based on the ambient light intensity under the condition that the light intensity detection value is smaller than a light leakage influence threshold value; and the second control module is used for controlling the adjusting module to adjust the current brightness from the first brightness to a third brightness based on the light intensity detection value under the condition that the light intensity detection value is larger than a light leakage influence threshold value.
Another aspect of the present disclosure provides an electronic device including: a display panel; a light sensor; a processor to implement: obtaining a light intensity detection value detected by the light sensor; obtaining the light leakage intensity of the display panel in a lighting state under the condition that the current brightness is the first brightness; correcting the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity; adjusting the current brightness from the first brightness to a second brightness based on the ambient light intensity.
Another aspect of the present disclosure provides a computer system comprising: one or more processors; memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
fig. 1 schematically shows an application scenario of a light intensity correction method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a light intensity correction method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a light intensity modification method according to another embodiment of the present disclosure;
fig. 4 schematically shows a block diagram of a light intensity correction apparatus according to an embodiment of the present disclosure; and
fig. 5 schematically shows a block diagram of a computer system adapted to implement a light intensity modification method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks. The techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon for use by or in connection with an instruction execution system.
An embodiment of the present disclosure provides a light intensity correction method, including: obtaining a light intensity detection value detected by the optical sensor; obtaining the light leakage intensity of the display panel in a lighting state under the condition that the current brightness is the first brightness; correcting the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity; and adjusting the current brightness from the first brightness to a second brightness based on the ambient light intensity.
Fig. 1 schematically shows an application scenario of a light intensity correction method according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a scenario in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the light intensity correction method according to the embodiment of the disclosure may be applied to a mobile phone 100, where the mobile phone 100 includes a light sensor 110, and for a partial full-screen mobile phone, in order to maximize a screen, the light sensor 110 is disposed on one side of a display screen or on a back of the screen, and then ambient light is transmitted to the light sensor 110 by using a light guide pillar, or a slit is left between the display screen and a bezel, and the ambient light is transmitted to the light sensor 110 by the slit. However, in this case, the light sensor 110 is affected by light leakage from the screen of the electronic device, and light from the screen is exposed from the side wall and projected onto the light sensor, which results in inaccurate measurement of ambient light by the light sensor. In the prior art, the light leakage of the screen is reduced by attaching a black barrier material on the side edge of the screen, but part of the light is still exposed, and the process complexity is increased.
The light intensity correction method of the embodiment of the disclosure can eliminate the influence of light leakage by means of calculation correction, obtain the light leakage intensity of the display screen when the screen is in a lighting state, correct the detection value of the optical sensor by using the light leakage intensity of the screen, and obtain more accurate ambient light intensity.
Fig. 2 schematically shows a flow chart of a light intensity correction method according to an embodiment of the present disclosure.
As shown in fig. 2, the light intensity correction method of the embodiment of the present disclosure may include operations S210 to S240:
in operation S210, a light intensity detection value detected by the light sensor is obtained.
The light intensity detection value is the light intensity value of all the light rays incident to the light sensor detected by the light sensor.
According to the embodiment of the present disclosure, it is necessary to determine whether the display panel is in a lit state. When the display panel is in a lit state, light leakage from the display panel may enter the light sensor, and the light intensity detected by the light sensor is affected by the light leakage from the display panel, so that the light intensity detection value needs to be corrected. And under the condition that the display panel is in the screen-off state, the detection value of the optical sensor has no influence of screen light leakage.
The display panel can have various display brightness, for example, ten brightness levels of level 1-level 10 can be set from dark to light, and the brightness of the display panel can be adaptively adjusted according to the intensity of the ambient light.
According to an embodiment of the present disclosure, if the display panel is currently in a lighting state and the luminance is a first luminance, obtaining a light intensity detection value detected by the light sensor includes: and under the condition that the brightness of the display panel in the lighting state is the first brightness, the light intensity detection value collected by the light sensor. In this case, the light intensity detection value of the light sensor is affected by light leakage of the display panel at the first luminance. The first brightness may be any one of level1 to level 10.
In operation S220, a light leakage intensity at which the current luminance of the display panel in the lit state is the first luminance is obtained.
When the display panel is at different brightness, the light leakage intensity of the display panel is different, but the light leakage intensity corresponding to each brightness is fixed. When the luminance of the display panel is the first luminance, the light leakage intensity corresponding to the first luminance may be obtained, and then the light intensity detection value may be corrected by using the light leakage intensity corresponding to the first luminance.
In operation S230, the light intensity detection value is corrected using the light leakage intensity at the current brightness, so as to obtain the ambient light intensity.
For example, the current leakage light intensity is subtracted from the detected light intensity value, and the result of calculation is used as the ambient light intensity.
In operation S240, the current brightness is adjusted from the first brightness to the second brightness based on the ambient light intensity.
After the ambient light intensity is obtained, the brightness of the display panel may be adjusted from the first brightness to a second brightness matched with the current ambient light intensity.
In addition, when the display panel is in the off state, the light intensity detection values obtained by the light sensors are all from the ambient light, and therefore, the luminance of the display panel can be adjusted directly based on the light intensity detection values.
According to the embodiment of the disclosure, under the condition that the screen is in a lighting state, the light leakage intensity corresponding to the current brightness is obtained, the detection value of the optical sensor is corrected by utilizing the light leakage intensity, and the intensity of real ambient light is obtained.
According to an embodiment of the present disclosure, the light intensity correction method of an embodiment of the present disclosure may further include:
if the light intensity detection value is smaller than the light leakage influence threshold value, performing to obtain the light leakage intensity of the display panel in the lighting state under the condition that the current brightness is the first brightness; correcting the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity; and adjusting the current brightness from a first brightness to a second brightness based on the ambient light intensity; and
if the light intensity detection value is greater than the light leakage influence threshold value, the current brightness is adjusted from the first brightness to a third brightness based on the light intensity detection value.
According to practical tests, the intensity value of the light leakage of the display screen is approximately within the range of 20-50lux, the light leakage of the display screen can generate obvious interference on the optical sensor only when the ambient light intensity is below 500lux, when the ambient light intensity is greater than 500lux, for example, the outdoor ambient light intensity in daytime can reach more than 10000lux, the interference of the light leakage of the display screen on the optical sensor can be basically ignored, and therefore, the light intensity can be corrected only when the ambient light intensity is less than 500 lux.
The light leakage influence threshold may be, for example, 500lux, and when the light intensity detection value is less than 5001ux, it is necessary to obtain a light leakage intensity corresponding to the current brightness of the display panel in the lit state, correct the light intensity detection value by using the light leakage intensity at the current brightness to obtain an ambient light intensity, and then adjust the brightness of the display screen by the ambient light intensity. In the case where the light intensity detection value is greater than 500lux, the influence of screen leakage light is negligible, and thus the current luminance may be adjusted from the current first luminance to the third luminance based directly on the light intensity detection value.
Fig. 3 schematically shows a flow chart of a light intensity correction method according to another embodiment of the present disclosure.
As shown in fig. 3, obtaining the leakage light intensity at the luminance of the display panel at the first luminance, for example, in operation S220 shown in fig. 2, may further include the following operations S221 to S222, according to an embodiment of the present disclosure.
In operation S221, obtaining pre-stored correspondence information regarding a luminance state and a light leakage intensity; wherein, obtaining pre-stored information about correspondence between the luminance status and the light leakage intensity comprises: correspondence information on the luminance state and the leak light intensity is acquired from a storage device of the electronic apparatus.
In operation S222, the light leakage intensity corresponding to the first luminance is searched for from the correspondence information;
for example, before the mobile phone leaves the factory, the light leakage intensity corresponding to the brightness of each display screen may be stored in advance in the storage device of the mobile phone, and a correspondence table may be formed. The light leakage intensity corresponding to the brightness of each display screen can be obtained through experimental detection; or the light leakage intensity under one of the luminance conditions may be detected, for example, the light leakage intensity under the darkest level1 of the display screen is detected, and then the light leakage intensities under other luminance levels are calculated according to a certain proportion.
And under the condition that the current display screen brightness is the first brightness, for example, inquiring the pre-stored corresponding relation table to obtain the light leakage intensity corresponding to the first brightness as the current light leakage intensity.
Because each light leakage intensity obtained by proportional calculation before leaving the factory may not be very accurate, in the process of actually using the electronic device by a user, the light leakage intensity corresponding to the brightness of the display screen can be accurately detected, and the light leakage intensity corresponding to each brightness of the display screen in the corresponding relation table is corrected and updated. For example, the correspondence table may be updated through operations S250 to S270 described below.
According to an embodiment of the present disclosure, the light intensity correction method according to the present embodiment may further include the following operations S250 to S270, compared to the example light intensity correction method illustrated in fig. 2.
In operation S250, a first light intensity detection value of the display panel in the screen-off state and a second light intensity detection value of the display panel in the lighting state with the first brightness are obtained through a switching process of the display panel from the screen-off state to the lighting state.
According to an embodiment of the present disclosure, the switching process of the operation S250 from the screen-off state to the lighting state through the display panel includes the following operations:
(1) obtaining communication information;
(2) obtaining a first light intensity detection value of the display panel in a screen extinguishing state based on the communication information;
(3) the display panel is lightened by first brightness, and a reminding mark of the communication information is displayed; and (4) obtaining a second light intensity detection value that the display panel is in a lit state at the first luminance.
For example, when the mobile phone is in the screen-off state and a short message or an incoming call request is transmitted, a light intensity detection value of the optical sensor, for example, a first light intensity detection value, in the screen-off state of the mobile phone is obtained first. Then, the display screen is controlled to light the display screen at a certain brightness, for example, the display screen is lighted at a first brightness, and a short message reminder or an incoming call reminder is displayed on the display screen, and a light intensity detection value detected by the light sensor after the display screen is lighted at the first brightness, for example, a second light intensity detection value, is obtained.
In operation S260, a difference value of the second light intensity detection value and the first light intensity detection value is determined.
In operation S270, the light leakage intensity corresponding to the first luminance in the correspondence information is updated based on the difference value.
The difference between the detected light intensities before and after the display screen is lit at the first brightness can be regarded as the light leakage intensity value when the display screen is displayed at the first brightness, and the light leakage intensity corresponding to the first brightness in the correspondence table can be updated by using the difference.
According to the embodiment of the disclosure, in order to update the light leakage intensity corresponding to each brightness in the correspondence table as soon as possible, the display screen can be lighted up with different brightness each time a communication message is inserted, so that the updating operation of the correspondence table can be completed quickly.
According to the embodiment of the disclosure, through the above manner, the information in the table can be updated without disturbing the user, for example, when the mobile phone is idle on a desk, the display screen is in the screen off state, when a call or a WeChat is received, the mobile phone is switched from the screen off state to the on state, and the difference value of the light intensity sensed by the optical sensor before and after the conversion is the light leakage intensity of the screen under the current brightness. In this way, the updating of the correspondence table can be completed quickly without the user being aware of it.
In other embodiments of the present disclosure, if the correspondence table is not pre-stored before the mobile phone leaves the factory, the correspondence table between each brightness and the light leakage intensity may also be established in a manner similar to the above updating. And then, inquiring the light leakage intensity by using the established corresponding relation table.
In other embodiments of the present disclosure, the light leakage value may also be obtained in a manner that the correspondence table is not pre-stored and then is queried in the correction process, but the current light leakage value is measured in real time in the correction process. For example, in the correction process, the current screen is controlled to be changed from the lighting state to the screen-off state, the difference value measured by the optical sensor before and after the change is the current screen light leakage value, and the display screen is controlled to be changed from the screen-off state to the lighting state after the change is finished.
The embodiment of the disclosure also provides a light intensity correction device.
Fig. 4 schematically shows a block diagram of a light intensity modification apparatus 400 according to an embodiment of the present disclosure.
As shown in fig. 4, the light intensity correction apparatus 400 includes a measurement module 410, a light leakage module 420, a correction module 430, and an adjustment module 440, wherein:
the measuring module 410 is used for obtaining a light intensity detection value detected by the light sensor;
the light leakage module 420 is configured to obtain light leakage intensity when the current brightness of the display panel in the lit state is a first brightness;
the correction module 430 is configured to correct the light intensity detection value by using the light leakage intensity at the current brightness, so as to obtain an ambient light intensity;
the adjusting module 440 is configured to adjust the current brightness from the first brightness to the second brightness based on the ambient light intensity.
According to the embodiment of the disclosure, the measuring module is used for obtaining the light intensity detection value collected by the light sensor under the condition that the brightness of the display panel in the lighting state is the first brightness.
According to an embodiment of the present disclosure, the light intensity correction apparatus may further include a determination module, a first control module, and a second control module, wherein:
the determining module is used for determining whether the light intensity detection value is smaller than a light leakage influence threshold value;
the first control module is used for controlling the light leakage module to obtain the light leakage intensity of the display panel in a lighting state under the condition that the current brightness of the display panel is the first brightness when the light intensity detection value is smaller than the light leakage influence threshold value, controlling the correction module to correct the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity, and controlling the adjustment module to adjust the current brightness from the first brightness to the second brightness based on the ambient light intensity;
the second control module is used for controlling the adjusting module to adjust the current brightness from the first brightness to the third brightness based on the light intensity detection value under the condition that the light intensity detection value is larger than the light leakage influence threshold value.
According to an embodiment of the present disclosure, obtaining the light leakage intensity at the luminance of the display panel at the first luminance includes: obtaining pre-stored corresponding relation information about the brightness state and the light leakage intensity; and inquiring the light leakage intensity corresponding to the first brightness from the corresponding relation information. Wherein, obtaining pre-stored information about correspondence between the luminance status and the light leakage intensity comprises: correspondence information on the luminance state and the leak light intensity is acquired from a storage device of the electronic apparatus.
According to an embodiment of the present disclosure, the light intensity correction apparatus may further include a switching module, and an updating module, wherein:
the switching module is used for obtaining a first light intensity detection value of the display panel in the screen extinguishing state and a second light intensity detection value of the display panel in the lighting state with first brightness through the switching process of the display panel from the screen extinguishing state to the lighting state;
the switching module is used for determining the difference value between the second light intensity detection value and the first light intensity detection value;
the updating module is used for updating the light leakage intensity corresponding to the first brightness in the corresponding relation information based on the difference value.
According to the embodiment of the present disclosure, the switching process from the screen-off state to the lighting state by the display panel includes: obtaining communication information; obtaining a first light intensity detection value of the display panel in a screen extinguishing state based on the communication information; the display panel is lightened by first brightness, and a reminding mark of the communication information is displayed; a second light intensity detection value that the display panel is in a lit state at the first luminance is obtained.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to the embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or the same in any other reasonable manner of integrating or packaging a circuit, or in any one of three implementations of software, hardware, and firmware, or in any suitable combination of any several of them. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any number of the above modules may be combined and implemented in one module, or any one of the modules may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to the embodiments of the present disclosure, at least one of the above modules may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware, and firmware, or any suitable combination of any of them. Alternatively, at least one of the above-mentioned respective modules may be at least partially implemented as a computer program module, which, when executed, may perform a corresponding function.
An embodiment of the present disclosure further provides an electronic device, including: a display panel, a light sensor, and a processor, wherein:
the processor is configured to implement: obtaining a light intensity detection value detected by the optical sensor; obtaining the light leakage intensity of the display panel in a lighting state under the condition that the current brightness is the first brightness; correcting the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity; the current brightness is adjusted from a first brightness to a second brightness based on the ambient light intensity.
The electronic device may be, for example, a mobile phone, a tablet computer, or the like, the display panel is used for displaying an image, and the optical sensor may detect the intensity of incident light.
FIG. 5 schematically illustrates a block diagram of a computer system suitable for implementing the above-described method according to an embodiment of the present disclosure. The computer system illustrated in FIG. 5 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 5, computer system 500 includes a processor 510, a computer-readable storage medium 520. The computer system 500 may perform a method according to an embodiment of the disclosure.
In particular, processor 510 may include, for example, a general purpose microprocessor, an instruction set processor and/or related chip set and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 510 may also include on-board memory for caching purposes. Processor 510 may be a single processing unit or a plurality of processing units for performing different actions of a method flow according to embodiments of the disclosure.
Computer-readable storage media 520, for example, may be non-volatile computer-readable storage media, specific examples including, but not limited to: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and so on.
The computer-readable storage medium 520 may include a computer program 521, which computer program 521 may include code/computer-executable instructions that, when executed by the processor 510, cause the processor 510 to perform a method according to an embodiment of the disclosure, or any variation thereof.
The computer program 521 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code in computer program 521 may include one or more program modules, including for example 521A, modules 521B, … …. It should be noted that the division and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, and when these program modules are executed by the processor 510, the processor 510 may execute the method according to the embodiment of the present disclosure or any variation thereof.
According to an embodiment of the present invention, at least one of the above modules may be implemented as a computer program module described with reference to fig. 5, which, when executed by processor 510, may implement the corresponding operations described above.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (8)

1. A light intensity correction method, comprising:
obtaining a light intensity detection value detected by the optical sensor;
obtaining the light leakage intensity of the display panel in a lighting state under the condition that the current brightness is the first brightness;
correcting the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity; and
adjusting the current brightness from the first brightness to a second brightness based on the ambient light intensity;
if the light intensity detection value is smaller than a light leakage influence threshold value, performing the light leakage intensity under the condition that the current brightness of the display panel in the lighting state is the first brightness; correcting the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity; and adjusting the current brightness from the first brightness to a second brightness based on the ambient light intensity;
and if the light intensity detection value is larger than a light leakage influence threshold value, adjusting the current brightness from the first brightness to a third brightness based on the light intensity detection value.
2. The method of claim 1, wherein the obtaining a light intensity detection value detected by a light sensor comprises: and under the condition that the brightness of the display panel in a lighting state is first brightness, the light intensity detection value collected by the light sensor.
3. The method of claim 1, wherein the obtaining the leakage light intensity at the first luminance for the luminance of the display panel comprises:
obtaining pre-stored corresponding relation information about the brightness state and the light leakage intensity;
inquiring the light leakage intensity corresponding to the first brightness from the corresponding relation information;
wherein the obtaining of the pre-stored information about correspondence between the luminance state and the light leakage intensity includes: correspondence information on the luminance state and the leak light intensity is acquired from a storage device of the electronic apparatus.
4. The method of claim 3, further comprising:
obtaining a first light intensity detection value of the display panel in the screen extinguishing state and a second light intensity detection value of the display panel in the lighting state with first brightness through a switching process of the display panel from the screen extinguishing state to the lighting state;
determining a difference between the second light intensity detection value and the first light intensity detection value; and
and updating the light leakage intensity corresponding to the first brightness in the corresponding relation information based on the difference value.
5. The method of claim 4, wherein the switching process from the off-state to the on-state by the display panel comprises:
obtaining communication information;
obtaining a first light intensity detection value of the display panel in a screen extinguishing state based on the communication information;
the display panel is lightened by first brightness, and a reminding mark of the communication information is displayed; and
a second light intensity detection value that the display panel is in a lighting state with first brightness is obtained.
6. A light intensity correction apparatus comprising:
the measuring module is used for obtaining a light intensity detection value detected by the optical sensor;
the light leakage module is used for obtaining the light leakage intensity of the display panel in the lighting state under the condition that the current brightness is the first brightness;
the correction module is used for correcting the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity;
an adjusting module for adjusting the current brightness from the first brightness to a second brightness based on the ambient light intensity;
a determining module for determining whether the light intensity detection value is less than a light leakage influence threshold value;
the first control module is used for controlling the light leakage module to obtain the light leakage intensity of a display panel in a lighting state under the condition that the current brightness is the first brightness, controlling the correction module to correct the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity and controlling the adjustment module to adjust the current brightness from the first brightness to the second brightness based on the ambient light intensity under the condition that the light intensity detection value is smaller than a light leakage influence threshold value; and
and the second control module is used for controlling the adjusting module to adjust the current brightness from the first brightness to a third brightness based on the light intensity detection value under the condition that the light intensity detection value is larger than a light leakage influence threshold value.
7. The apparatus of claim 6, wherein,
the measuring module is used for obtaining a light intensity detection value collected by the light sensor under the condition that the brightness of the display panel in the lighting state is a first brightness.
8. An electronic device, comprising:
a display panel;
a light sensor;
a processor to implement:
obtaining a light intensity detection value detected by the light sensor;
obtaining the light leakage intensity of the display panel in a lighting state under the condition that the current brightness is the first brightness;
correcting the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity; and
adjusting the current brightness from the first brightness to a second brightness based on the ambient light intensity;
if the light intensity detection value is smaller than a light leakage influence threshold value, performing the light leakage intensity under the condition that the current brightness of the display panel in the lighting state is the first brightness; correcting the light intensity detection value by using the light leakage intensity under the current brightness to obtain the ambient light intensity; and adjusting the current brightness from the first brightness to a second brightness based on the ambient light intensity;
and if the light intensity detection value is larger than a light leakage influence threshold value, adjusting the current brightness from the first brightness to a third brightness based on the light intensity detection value.
CN201910583493.9A 2019-06-28 2019-06-28 Light intensity correction method, light intensity correction device, and electronic apparatus Active CN110264978B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910583493.9A CN110264978B (en) 2019-06-28 2019-06-28 Light intensity correction method, light intensity correction device, and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910583493.9A CN110264978B (en) 2019-06-28 2019-06-28 Light intensity correction method, light intensity correction device, and electronic apparatus

Publications (2)

Publication Number Publication Date
CN110264978A CN110264978A (en) 2019-09-20
CN110264978B true CN110264978B (en) 2021-04-13

Family

ID=67923556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910583493.9A Active CN110264978B (en) 2019-06-28 2019-06-28 Light intensity correction method, light intensity correction device, and electronic apparatus

Country Status (1)

Country Link
CN (1) CN110264978B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112449026B (en) * 2019-08-28 2023-11-21 北京小米移动软件有限公司 Ambient light compensation method, device, terminal and storage medium
CN112710388B (en) * 2019-10-24 2022-07-01 北京小米移动软件有限公司 Ambient light detection method, ambient light detection device, terminal device, and storage medium
CN113077738B (en) * 2020-01-03 2024-04-09 北京小米移动软件有限公司 Ambient light detection method and device and storage medium
CN112322459B (en) * 2020-10-14 2021-06-18 广州市粤家科技发展有限公司 Light source intensity adjusting device for microbial cultivation
CN112289280B (en) * 2020-11-18 2022-03-22 深圳市锐尔觅移动通信有限公司 Screen brightness adjusting method and device, computer readable medium and electronic equipment
CN112599089A (en) * 2020-12-09 2021-04-02 深圳市汇顶科技股份有限公司 Display screen light leakage value acquisition method, electronic device and storage medium
CN112365833B (en) * 2021-01-15 2021-04-30 深圳阜时科技有限公司 Method for detecting and correcting brightness adjustment value of light sensation under screen
CN112781832A (en) * 2021-01-26 2021-05-11 北京小米移动软件有限公司 Method, apparatus, device and medium for determining ambient light for terminal device
CN114974107A (en) * 2021-02-24 2022-08-30 Oppo广东移动通信有限公司 Screen brightness control method and device, wearable device and readable storage medium
CN115019730A (en) * 2021-03-03 2022-09-06 Oppo广东移动通信有限公司 Screen light leakage amount determining and brightness adjusting method and device and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510396A (en) * 2008-02-15 2009-08-19 奇美电子股份有限公司 Control circuit, backlight module and flat display device
CN104318912A (en) * 2014-10-23 2015-01-28 赵辉 Method and device for detecting environmental light brightness
CN106504725A (en) * 2015-09-07 2017-03-15 江苏清投视讯科技有限公司 A kind of rear-projection brightness control unit based on automatic detection
CN106969832A (en) * 2017-03-20 2017-07-21 京东方科技集团股份有限公司 Ambient light detection device, method and display screen
CN107818753A (en) * 2017-11-22 2018-03-20 广东欧珀移动通信有限公司 Screen brightness regulation method, device, storage medium and electronic equipment
CN107945770A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN107945769A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN107957294A (en) * 2017-11-22 2018-04-24 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN108917921A (en) * 2018-06-15 2018-11-30 江西合力泰科技有限公司 A kind of ambient light intensity detection method
CN109855727A (en) * 2019-01-17 2019-06-07 Oppo广东移动通信有限公司 Environment light detection method, device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510396A (en) * 2008-02-15 2009-08-19 奇美电子股份有限公司 Control circuit, backlight module and flat display device
CN104318912A (en) * 2014-10-23 2015-01-28 赵辉 Method and device for detecting environmental light brightness
CN106504725A (en) * 2015-09-07 2017-03-15 江苏清投视讯科技有限公司 A kind of rear-projection brightness control unit based on automatic detection
CN106969832A (en) * 2017-03-20 2017-07-21 京东方科技集团股份有限公司 Ambient light detection device, method and display screen
CN107818753A (en) * 2017-11-22 2018-03-20 广东欧珀移动通信有限公司 Screen brightness regulation method, device, storage medium and electronic equipment
CN107945770A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN107945769A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN107957294A (en) * 2017-11-22 2018-04-24 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN108917921A (en) * 2018-06-15 2018-11-30 江西合力泰科技有限公司 A kind of ambient light intensity detection method
CN109855727A (en) * 2019-01-17 2019-06-07 Oppo广东移动通信有限公司 Environment light detection method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110264978A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN110264978B (en) Light intensity correction method, light intensity correction device, and electronic apparatus
US10146493B2 (en) Method for starting a screen of a dual-screen mobile device
US11015973B2 (en) Method and apparatus for acquiring ambient light brightness based on the luminance value of the screen of a terminal device
US9449561B1 (en) Light sensor obstruction detection
CN110706634B (en) Display method and electronic device
KR102490239B1 (en) Method for calibrating luminance of display panel, and device for calibrating luminance of display panel
US10037726B2 (en) Detecting method of substandard state and display module and electronic device operating the same
US11412146B2 (en) Image acquisition method, processing method and device
KR102439245B1 (en) Electronic device and controlling method thereof
CN109979389B (en) Gamma correction method and device, display device, computer storage medium
US9412320B2 (en) Method for adjusting display backlight with aid of ambient light brightness detection and time detection, and associated apparatus and associated computer program product
US20170366943A1 (en) Indoor/outdoor coverage detection based on sensor inputs
US8581921B2 (en) Image display device and image adjustment method
US20140214367A1 (en) Method and system for testing light leakage of display device
CN108874128B (en) Proximity detection method and apparatus, electronic apparatus, storage medium, and device
CN101512630A (en) Image display method and image display device
CN108873005B (en) Proximity detection method and apparatus, electronic apparatus, storage medium, and device
CN104318912A (en) Method and device for detecting environmental light brightness
US20220208061A1 (en) Gamma adjustment method and apparatus for display panel
CN112333898A (en) Lamp brightness adjusting method and device, lamp and storage medium
US10930217B2 (en) Method and apparatus for compensating operating parameter of display circuit
US20150103059A1 (en) Method and apparatus of controlling brightness of display
US20210150961A1 (en) Display panel, pixel charging method, and computer readable storage medium
JP4330378B2 (en) Display device
US11081084B2 (en) Electronic apparatus, luminance control method, and storage medium

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