CN111210792A - Method and device for determining ambient light brightness, terminal and storage medium - Google Patents

Method and device for determining ambient light brightness, terminal and storage medium Download PDF

Info

Publication number
CN111210792A
CN111210792A CN202010086928.1A CN202010086928A CN111210792A CN 111210792 A CN111210792 A CN 111210792A CN 202010086928 A CN202010086928 A CN 202010086928A CN 111210792 A CN111210792 A CN 111210792A
Authority
CN
China
Prior art keywords
display
ambient light
display screen
brightness
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010086928.1A
Other languages
Chinese (zh)
Inventor
彭聪
高文俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202010086928.1A priority Critical patent/CN111210792A/en
Publication of CN111210792A publication Critical patent/CN111210792A/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Liquid Crystal Display Device Control (AREA)

Abstract

The disclosure relates to an ambient light brightness determination method and device, a terminal and a storage medium. The method is applied to a terminal comprising a light sensor and a display screen, wherein the light sensor is arranged below the display screen, and the method comprises the following steps: determining a first ambient light brightness currently detected by the light sensor; determining display condition information of the display screen, wherein the display condition information comprises: backlight brightness information of the display screen and display content of the display screen; and correcting the first ambient light brightness according to the display condition information to obtain second ambient light brightness. By the method, the accuracy of determining the brightness of the external environment light is improved.

Description

Method and device for determining ambient light brightness, terminal and storage medium
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a method and an apparatus for determining ambient light brightness, a terminal, and a storage medium.
Background
With the rapid development of electronic technology, terminal devices such as full-screen smart phones and tablet computers have become more and more popular. In general, a light sensor is disposed below a screen of a terminal device.
Fig. 1 is a schematic diagram of a position of a light sensor in an exemplary terminal, as shown in fig. 1, a screen display area A3 is formed within a screen frame a4 of the terminal, a light sensor a1 is disposed below a screen of the screen display area A3, and a light-transmitting area a2, which is a light-receiving area of the light sensor, is around the light sensor a 1.
The light sensor detects and obtains the external environment light brightness determination information through the light receiving area, so that the terminal can control the brightness of the display screen according to the external brightness information. However, the terminal is susceptible to the influence when detecting the ambient light through the light receiving area and obtaining the outside ambient light brightness determination information.
Disclosure of Invention
The disclosure provides an ambient light brightness determination method and device, a terminal and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided an ambient light brightness determining method, applied to a terminal including a light sensor and a display screen, where the light sensor is disposed below the display screen, the method including:
determining a first ambient light brightness currently detected by the light sensor;
determining display condition information of the display screen, wherein the display condition information comprises: backlight brightness information of the display screen and display content of the display screen;
and correcting the first ambient light brightness according to the display condition information to obtain second ambient light brightness.
Optionally, the determining the display condition information on the display screen includes:
determining color information of the display content on the display screen;
correcting the first environmental light brightness to obtain a second environmental light brightness according to the display condition information, including:
determining a compensation parameter of the first ambient light brightness according to the corresponding relationship between the backlight brightness information and the color information of the display content and the ambient light brightness compensation parameter;
and correcting the first ambient light brightness by using the compensation parameter to obtain the second ambient light brightness.
Optionally, the method further includes:
determining a target display area on the display screen above a first position according to the first position of the light sensor below the display screen;
the determining color information of the display content on the display screen includes:
and determining color information of the display content in the target display area.
Optionally, the color information of the display content includes: and the color deviation information of the display content refers to information of a color component with the largest average value in different color components contained in the display content.
Optionally, the determining the display condition information of the display screen includes:
and when the first environment light brightness is smaller than a preset brightness threshold value, determining the display condition information of the display screen.
Optionally, the method further includes:
determining whether the display condition information of the display screen changes within a preset time length;
correcting the first environmental light brightness to obtain a second environmental light brightness according to the display condition information, including:
and under the condition that the display condition information changes, correcting the first environmental light brightness according to the display condition information to obtain the second environmental light brightness.
Optionally, the method further includes:
and adjusting the backlight brightness of the display screen according to the second ambient light brightness.
According to a second aspect of the embodiments of the present disclosure, there is provided an ambient light brightness determination apparatus, for use in a terminal including a light sensor and a display screen, the light sensor being disposed below the display screen, the apparatus including:
the first determining module is configured to determine a first ambient light brightness currently detected by the light sensor;
a second determination module configured to determine display condition information of the display screen, the display condition information including: backlight brightness information of the display screen and display content of the display screen;
and the correcting module is configured to correct the first ambient light brightness to obtain second ambient light brightness according to the display condition information.
Optionally, the second determining module is specifically configured to determine color information of the display content on the display screen;
the correction module is specifically configured to determine a compensation parameter of the first ambient light brightness according to a corresponding relationship between the backlight brightness information, the color information of the display content, and an ambient light brightness compensation parameter; and correcting the first ambient light brightness by using the compensation parameter to obtain the second ambient light brightness.
Optionally, the apparatus further comprises:
the third determining module is configured to determine a target display area on the display screen above a first position according to the first position of the light sensor below the display screen;
the second determining module is specifically configured to determine color information of content displayed in the target display area.
Optionally, the color information of the display content includes: and the color deviation information of the display content refers to information of a color component with the largest average value in different color components contained in the display content.
Optionally, the second determining module is specifically configured to determine the display condition information of the display screen when the first ambient light brightness is smaller than a preset brightness threshold.
Optionally, the apparatus further comprises:
the fourth determination module is configured to determine whether the display condition information of the display screen changes within a preset time length;
the correction module is specifically configured to correct the first ambient light brightness to obtain the second ambient light brightness according to the display condition information under the condition that the display condition information changes.
Optionally, the apparatus further comprises:
and the adjusting module is configured to adjust the backlight brightness of the display screen according to the second ambient light brightness.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the ambient light level determination method as described in the first aspect above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium including:
the instructions in the storage medium, when executed by a processor of the terminal, enable the terminal to perform the ambient light level determination method as described in the above first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, after the terminal detects the first environmental light brightness through the light sensor, the display condition information of the display screen is further determined, and the first environmental light brightness is corrected according to the display condition information to obtain the second environmental light brightness. The display condition information comprises backlight brightness information and display content of the display screen, so that when the terminal corrects the first environment light brightness according to the display condition information, correction can be performed based on different backlight brightness information and display content, the influence of the display condition information on the environment light brightness is reduced, and the accuracy of determining the environment light brightness is improved.
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 present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram of the location of a light sensor in an exemplary terminal.
FIG. 2 is a flowchart illustrating an ambient light level determination method according to an embodiment of the disclosure.
Fig. 3 is an exemplary diagram of a coverage area of a display content.
Fig. 4 is a flowchart illustrating an example of an ambient light level determining method according to an embodiment of the disclosure.
Fig. 5 is a table showing a correspondence relationship between display condition information and an ambient light brightness compensation parameter according to an embodiment of the present disclosure.
FIG. 6 is a diagram illustrating an ambient light level determination device, according to an exemplary embodiment.
Fig. 7 is a block diagram of a terminal shown in an embodiment of the disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 2 is a flowchart of a first method for determining ambient light brightness according to an embodiment of the present disclosure, as shown in fig. 2, and is applied to a terminal including a light sensor and a display screen, where the light sensor is disposed below the display screen, and the method for determining ambient light brightness includes the following steps:
and S11, determining the first ambient light brightness currently detected by the light sensor.
S12, determining display condition information of the display screen, wherein the display condition information comprises: backlight brightness information of the display screen and display content of the display screen.
And S13, correcting the first ambient light brightness according to the display condition information to obtain second ambient light brightness.
In an embodiment of the present disclosure, a terminal device includes: a mobile device and a stationary device; the mobile device includes: a mobile phone, a tablet computer, or a wearable device, etc. The fixed device includes, but is not limited to, a Personal Computer (PC).
The terminal equipment comprises a display screen which can display image frames. Still be provided with light sensor in the terminal, light sensor sets up the below at the display screen, can turn into the signal of telecommunication with the environment light that sees through the display screen to make the terminal can be according to the signal of telecommunication and confirm environment light brightness.
In the case of a full-screen terminal, a light sensor disposed below a display screen detects light transmitted through a space gap between display units to detect ambient light, and a light receiving area shown in fig. 1 is formed by the space gap between the display units.
In step S11, the light sensor in the terminal obtains a first ambient light level by converting the ambient light transmitted through the spatial gap between the display units into an electrical signal.
However, when the light sensor detects the first ambient light brightness, the display brightness of the display screen and the display content on the display screen both affect the collection of the light signal by the light sensor, so that the first ambient light brightness cannot accurately reflect the ambient light brightness.
It should be noted that, among others, the display content on the display screen is presented by applying an electrical signal value (such as a current value or a voltage value) to the light-emitting unit of the display screen based on the terminal, so that the light-emitting unit emits light. Therefore, the display content on the display screen may affect the detection of the first ambient light level.
In step S12, the terminal determines display status information of the display screen, where the display status information includes: backlight brightness information of the display screen and display contents of the display screen. The backlight brightness information of the display screen refers to the display brightness of the display screen. The display content of the display screen comprises at least one of the following: displaying information of different color components of each pixel point in the content; and displaying the information of partial color components of each pixel point in the content. The display content may be a part of the display content on the display screen or may be the whole display content on the display screen.
In step S13, the terminal corrects the first ambient light level to obtain a second ambient light level according to the display condition information.
It can be understood that, in this embodiment, by determining the display condition information and correcting the first ambient light brightness according to the display condition information, the influence of the backlight brightness information and the display content of the display screen on ambient light brightness collection can be reduced, and the accuracy of determining the ambient light brightness is improved. Further, under the same backlight brightness information, as mentioned above, the light emission of the light emitting unit may also affect the collection of the first ambient light brightness; in addition, aiming at different display contents, the light-emitting brightness of the light-emitting unit is different, so that the influence of the display contents is further considered on the basis of the backlight brightness information, and the accuracy of determining the ambient light brightness can be further improved.
It should be noted that in the implementation of the present disclosure, the central processing unit of the terminal may execute steps S12 and S13, or the light sensor in the terminal may execute steps S12 and S13. When steps S12 and S13 are performed by the light sensor in the terminal, the light sensor obtains the display condition information of the display screen from the central processor, and corrects to obtain the second ambient light level. And the light sensor reports the first ambient light brightness to the central processing unit, so that the central processing unit optimizes the operation of the terminal according to the corrected second ambient light brightness.
In one embodiment, step S13 includes:
and the terminal determines a compensation parameter of the first environmental light brightness according to the corresponding relation between the display condition information and the environmental light brightness compensation parameter, and corrects the first environmental light brightness by using the compensation parameter to obtain a second environmental light brightness.
In this embodiment, the terminal may store a corresponding relationship between the display condition information and the ambient light brightness compensation parameter, so that after the current display condition information is determined, the terminal may query and obtain the compensation parameter of the first ambient light brightness according to the corresponding relationship. The correspondence may be stored, for example, in the form of a relationship list.
The first ambient light brightness is corrected by using the compensation parameter, where the correction includes multiplying the first ambient light brightness by the compensation parameter to obtain a second ambient light brightness, or subtracting the compensation parameter from the first ambient light brightness to obtain the second ambient light brightness, and the like.
In one embodiment, the determining the display condition information on the display screen includes:
determining color information of the display content on the display screen;
correcting the first environmental light brightness to obtain a second environmental light brightness according to the display condition information, including:
determining a compensation parameter of the first ambient light brightness according to the corresponding relationship between the backlight brightness information and the color information of the display content and the ambient light brightness compensation parameter;
and correcting the first ambient light brightness by using the compensation parameter to obtain the second ambient light brightness.
In this embodiment, the display condition information on the display screen includes color information of the display content. For example, for a display screen with RGB color mode, the color information of the display content refers to the values corresponding to the red component, the green component and the blue component of each pixel point in the display content, that is, the three primary color information of each pixel point. For the display screen with the RGBW color mode, the color information of the display content refers to values corresponding to a red component, a green component, a blue component and a white component of each pixel point in the display content. And different display contents, wherein the color information of the display contents is different.
In this embodiment, one backlight brightness information and one set of color information correspond to one ambient light brightness compensation parameter.
It should be noted that the color information of the display content is obtained by applying different electrical signal values (such as current values or voltage values) to the light emitting units of the display screen based on the terminal, and emitting light of multiple colors based on the organic light emitting material coated on each light emitting unit or under the action of the color filter, so that the display screen can present the color information of the display content. The color information of the display content is also the embodiment of the light emitting brightness of the light emitting unit. Different color information, substantially corresponding light emitting units have different emitted brightness and thus different influence on the brightness of the surrounding environment, for example, black has less influence on the brightness of the surrounding environment than white.
It can be understood that, in this embodiment, not only the backlight brightness information can embody the brightness of the light emitted by the terminal itself, but also the color information of the display content can embody the brightness of the light emitted by the terminal. In this embodiment, the compensation parameter is determined by combining the color information of the display content with the backlight brightness information, that is, the compensation parameter is determined based on the brightness of the light emitted by the terminal, so that the determination of the compensation parameter can be more effective, and the accuracy of correcting the first ambient light brightness is effectively improved.
In one embodiment, the method further comprises:
determining a target display area on the display screen above a first position according to the first position of the light sensor below the display screen;
the determining color information of the display content on the display screen includes:
and determining color information of the display content in the target display area.
As shown in fig. 1, the light sensor a1 collects the ambient light brightness through a surrounding light-transmitting area a2, so that when the light sensor collects the ambient light brightness, the display condition information of not the whole area of the display screen affects the detection of the ambient light brightness.
Therefore, in this embodiment, the terminal determines the target display area on the display screen above the first position according to the first position of the light sensor below the display screen. The target display area is a part of the display area on the display screen.
For example, fig. 3 is an exemplary view of a coverage of display content, and as shown in fig. 3, the display content is not content in the entire area of the display screen, but is a portion of the display content covering the position of the light sensor.
Therefore, in this embodiment, when determining the color information of the display content, only the color information of the display content within the target display area may also be determined. As mentioned above, the color information is the representation of the luminance of the light emitting unit, so the color information of the display content in the target display area can reflect the luminance information of the light emitting unit in the light receiving area of the light sensor.
It can be understood that, in the embodiment of the present disclosure, the target display area is determined according to the first position where the light sensor is located, and only the color information of the display content in the target display area is obtained, so that on one hand, the calculation amount is reduced, and on the other hand, the influence of the display content in the light receiving area of the light sensor on the detection of the ambient light brightness can be more accurately embodied, and therefore, the accuracy of correcting the first ambient light brightness can be improved.
In one embodiment, the color information of the display content includes: and the color deviation information of the display content refers to information of a color component with the largest average value in different color components contained in the display content.
In this embodiment, for example, the display color includes three color components of red, green, and blue. The average value of each color component in the whole display area or part of the display area of the display screen is counted, and the information of the color component with the maximum average value is used as a part of the display condition information.
As described above, the terminal applies different electrical signal values (such as current values or voltage values) to the light emitting units of the display screen, and emits light of multiple colors based on the organic light emitting materials coated on the light emitting units or under the action of the color filter, so that the display screen can present color information of display contents. The larger the value of the applied electric signal is, the stronger the light of a certain color emitted by the light-emitting unit is, and the more the corresponding color information is presented. Therefore, in the embodiment of the disclosure, the color deviation information can reflect the maximum brightness of the display screen when the display screen displays the content.
It can be understood that, in the embodiment of the present disclosure, the compensation parameter is determined by combining the color deviation information of the display content with the backlight brightness information, so that the influence of the display condition information of the display screen on the detection of the ambient light brightness can be accurately embodied, and the accuracy of the correction of the first ambient light brightness can be improved.
In one embodiment, the determining the display condition information of the display screen includes:
and when the first environment light brightness is smaller than a preset brightness threshold value, determining the display condition information of the display screen.
Experiments show that under the same backlight brightness information, such as the backlight brightness of 600 lux (lux), when the light of the external environment is strong and different display contents are displayed above the light sensor, the difference between the ambient light brightness detected by the data of the light sensor and the actual ambient light brightness is 50 lux; in dim light conditions, the ambient light intensity detected by the light sensor deviates more from the actual ambient light intensity.
It is understood that, for the same backlight brightness information, when the first ambient light brightness is larger, the first ambient light brightness detected by the light sensor may not be much different from the actual ambient light brightness. Therefore, the display condition information of the display screen is determined only when the first ambient light brightness is smaller than the preset brightness threshold, and the necessity of correcting the first ambient light brightness can be improved.
In one embodiment, the method further comprises:
determining whether the display condition information of the display screen changes within a preset time length;
step S13 includes:
and under the condition that the display condition information changes, correcting the first environmental light brightness according to the display condition information to obtain the second environmental light brightness.
In an embodiment of the present disclosure, displaying whether the status information changes includes: whether the backlight brightness information of the display screen changes and/or whether the display content changes. As mentioned above, the backlight brightness information and/or the display content may affect the brightness detection of the light sensor. Therefore, in the case where the display condition information changes, it is necessary to correct the first ambient light luminance according to the display condition information.
It should be noted that, in the embodiment of the present disclosure, whether the display content changes includes whether the color information of the display content changes and also includes whether the biased color of the display content changes.
Illustratively, taking the biased color of the display content as an example, according to experiments, it is found that when the biased color of the display content changes, the error value of the light sensor is larger; when the deviation color information is not transformed, the error value of the light sensor may be relatively small.
It can be understood that, in the case that the display condition information changes, the present disclosure corrects the first ambient light brightness according to the display condition information, on one hand, unnecessary calculation can be reduced to save power consumption; on the other hand, when the display content or the backlight brightness information changes, the detection of the ambient light brightness by the light sensor also changes, so that the correction is performed under the condition that the display content or the backlight brightness information changes, and the accuracy of determining the ambient light brightness can be improved.
In one embodiment, the method further comprises:
and adjusting the backlight brightness of the display screen according to the second ambient light brightness.
As mentioned above, the cpu in the terminal may optimize according to the corrected second ambient light brightness. In this embodiment, after the terminal corrects the first ambient light brightness according to the display condition information of the display screen to obtain the second ambient light brightness, the backlight brightness of the display screen can be adjusted.
For example, when the second ambient light level is high, the backlight brightness of the display screen can be increased; when the second ambient light brightness is very low, the backlight brightness of the display screen can be reduced to adapt to human eyes of a user.
Of course, the contrast of the display content on the display screen can also be adjusted according to the second ambient light brightness. For example, when the second ambient light level is high, the contrast of the content displayed on the display screen is increased to improve the visual experience of the user.
The terminal can adjust the brightness of the flash lamp according to the second ambient light brightness. For example, when the second ambient light level is high, the brightness of the flash that is turned on may be set to be slightly lower to save power consumption; and when the brightness of the second environment is very low, the brightness of the turned-on flash lamp can be set to be higher, so that the user experience is improved.
Fig. 4 is a flowchart illustrating an exemplary method for determining ambient light level according to an embodiment of the disclosure, where as shown in fig. 4, the method for determining ambient light level includes the following steps:
and S21, acquiring the ambient light brightness by the light sensor.
In this implementation, the ambient light level obtained by the light sensor is the first ambient light level.
S22A, the light sensor obtains the backlight value.
In this embodiment, the backlight value obtained by the light sensor, i.e. the backlight brightness information of the display screen, is part of the display condition information of the display screen.
S22B, the light sensor acquires the display color.
In this embodiment, the light sensor obtains the display color, i.e., the color deviation information of the display content on the display screen, and also belongs to a part of the display condition information.
And S23, checking the table by the light sensor to obtain the compensation parameter.
In this embodiment, the light sensor looks up the table to obtain the compensation parameter, that is, the light sensor determines the compensation parameter according to the corresponding relationship between the backlight brightness information and the color information of the display content and the ambient light brightness compensation parameter.
Fig. 5 is a table showing the correspondence between the display condition information and the ambient light brightness compensation parameter in the embodiment of the disclosure, as shown in fig. 5, where one backlight intensity value and one color deviation information correspond to one compensation parameter offset.
The light sensor can obtain the compensation parameter based on the table shown in fig. 5 according to the obtained backlight value and the display color.
And S24, the light sensor corrects the ambient light brightness by using the compensation parameter.
And S25, reporting the corrected ambient light brightness by the light sensor.
In this embodiment, the corrected ambient light level is the second ambient light level.
It can be understood that, in this embodiment, after the light sensor detects the ambient light brightness, the compensation parameter is further obtained according to the obtained backlight value and the display color look-up table, and then the compensation parameter is used to correct the ambient light brightness and report the corrected ambient light brightness, so that the influence of the backlight value and the display color on the ambient light brightness is reduced, and the accuracy of determining the ambient light brightness is improved.
FIG. 6 is a diagram illustrating an ambient light level determination device, according to an exemplary embodiment. Referring to fig. 6, the ambient light level determining apparatus includes:
a first determining module 101 configured to determine a first ambient light brightness currently detected by the light sensor;
a second determining module 102 configured to determine display condition information of the display screen, the display condition information including: backlight brightness information of the display screen and display content of the display screen;
the correcting module 103 is configured to correct the first ambient light brightness to obtain a second ambient light brightness according to the display condition information.
Optionally, the second determining module 102 is specifically configured to determine color information of the display content on the display screen;
the correction module 103 is specifically configured to determine a compensation parameter of the first ambient light brightness according to a corresponding relationship between the backlight brightness information and the color information of the display content, and an ambient light brightness compensation parameter; and correcting the first ambient light brightness by using the compensation parameter to obtain the second ambient light brightness.
Optionally, the apparatus further comprises:
a third determining module 104, configured to determine, according to a first position of the light sensor below the display screen, a target display area on the display screen above the first position;
the second determining module 102 is specifically configured to determine color information of content displayed in the target display area.
Optionally, the color information of the display content includes: and the color deviation information of the display content refers to information of a color component with the largest average value in different color components contained in the display content.
Optionally, the second determining module 102 is specifically configured to determine the display condition information of the display screen when the first ambient light brightness is less than a preset brightness threshold.
Optionally, the apparatus further comprises:
a fourth determining module 105, configured to determine whether display condition information of the display screen changes within a preset time period;
the correcting module 103 is specifically configured to correct the first ambient light brightness to obtain the second ambient light brightness according to the display condition information when the display condition information changes.
Optionally, the apparatus further comprises:
and the adjusting module 106 is configured to adjust the backlight brightness of the display screen according to the second ambient light brightness.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating a terminal apparatus 800 according to an example embodiment. For example, the device 800 may be a cell phone, a computer, etc.
Referring to fig. 7, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile 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 disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as Wi-Fi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 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 apparatus 800 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium having instructions stored thereon, which when executed by a processor of a terminal, enable the terminal to perform a control method, the terminal including a light sensor and a display screen, the light sensor being disposed below the display screen, the method comprising:
determining a first ambient light brightness currently detected by the light sensor;
determining display condition information of the display screen, wherein the display condition information comprises: backlight brightness information of the display screen and display content of the display screen;
and correcting the first ambient light brightness according to the display condition information to obtain second ambient light brightness.
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 variations, uses, or adaptations of the disclosure following, in general, the 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.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. The method for determining the ambient light brightness is applied to a terminal comprising a light sensor and a display screen, wherein the light sensor is arranged below the display screen, and the method comprises the following steps:
determining a first ambient light brightness currently detected by the light sensor;
determining display condition information of the display screen, wherein the display condition information comprises: backlight brightness information of the display screen and display content of the display screen;
and correcting the first ambient light brightness according to the display condition information to obtain second ambient light brightness.
2. The method of claim 1, wherein the determining display condition information on the display screen comprises:
determining color information of the display content on the display screen;
correcting the first environmental light brightness to obtain a second environmental light brightness according to the display condition information, including:
determining a compensation parameter of the first ambient light brightness according to the corresponding relationship between the backlight brightness information and the color information of the display content and the ambient light brightness compensation parameter;
and correcting the first ambient light brightness by using the compensation parameter to obtain the second ambient light brightness.
3. The method of claim 2, further comprising:
determining a target display area on the display screen above a first position according to the first position of the light sensor below the display screen;
the determining color information of the display content on the display screen includes:
and determining color information of the display content in the target display area.
4. The method according to claim 2 or 3, wherein the color information of the display content comprises: and the color deviation information of the display content refers to information of a color component with the largest average value in different color components contained in the display content.
5. The method of claim 1, wherein the determining display condition information for the display screen comprises:
and when the first environment light brightness is smaller than a preset brightness threshold value, determining the display condition information of the display screen.
6. The method according to claim 1 or 5, characterized in that the method further comprises:
determining whether the display condition information of the display screen changes within a preset time length;
correcting the first environmental light brightness to obtain a second environmental light brightness according to the display condition information, including:
and under the condition that the display condition information changes, correcting the first environmental light brightness according to the display condition information to obtain the second environmental light brightness.
7. The method of claim 1, further comprising:
and adjusting the backlight brightness of the display screen according to the second ambient light brightness.
8. An ambient light brightness determination apparatus, applied to a terminal including a light sensor and a display screen, the light sensor being disposed below the display screen, the method comprising:
the first determining module is configured to determine a first ambient light brightness currently detected by the light sensor;
a second determination module configured to determine display condition information of the display screen, the display condition information including: backlight brightness information of the display screen and display content of the display screen;
and the correcting module is configured to correct the first ambient light brightness to obtain second ambient light brightness according to the display condition information.
9. The apparatus of claim 8,
the second determining module is specifically configured to determine color information of the display content on the display screen;
the correction module is specifically configured to determine a compensation parameter of the first ambient light brightness according to a corresponding relationship between the backlight brightness information, the color information of the display content, and an ambient light brightness compensation parameter; and correcting the first ambient light brightness by using the compensation parameter to obtain the second ambient light brightness.
10. The apparatus of claim 9, further comprising:
the third determining module is configured to determine a target display area on the display screen above a first position according to the first position of the light sensor below the display screen;
the second determining module is specifically configured to determine color information of content displayed in the target display area.
11. The apparatus according to claim 9 or 10, wherein the color information of the display content comprises: and the color deviation information of the display content refers to information of a color component with the largest average value in different color components contained in the display content.
12. The apparatus of claim 8,
the second determining module is specifically configured to determine the display condition information of the display screen when the first ambient light brightness is less than a preset brightness threshold.
13. The apparatus of claim 8 or 12, further comprising:
the fourth determination module is configured to determine whether the display condition information of the display screen changes within a preset time length;
the correction module is specifically configured to correct the first ambient light brightness to obtain the second ambient light brightness according to the display condition information under the condition that the display condition information changes.
14. The apparatus of claim 8, further comprising:
and the adjusting module is configured to adjust the backlight brightness of the display screen according to the second ambient light brightness.
15. A terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the ambient light level determination method of any of claims 1 to 7.
16. A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of a terminal, enable the terminal to perform the ambient light level determination method according to any one of claims 1 to 7.
CN202010086928.1A 2020-02-11 2020-02-11 Method and device for determining ambient light brightness, terminal and storage medium Pending CN111210792A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010086928.1A CN111210792A (en) 2020-02-11 2020-02-11 Method and device for determining ambient light brightness, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010086928.1A CN111210792A (en) 2020-02-11 2020-02-11 Method and device for determining ambient light brightness, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN111210792A true CN111210792A (en) 2020-05-29

Family

ID=70785814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010086928.1A Pending CN111210792A (en) 2020-02-11 2020-02-11 Method and device for determining ambient light brightness, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111210792A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112033527A (en) * 2020-08-26 2020-12-04 北京小米移动软件有限公司 Ambient brightness detection method, device, equipment and storage medium
CN112365833A (en) * 2021-01-15 2021-02-12 深圳阜时科技有限公司 Method for detecting and correcting brightness adjustment value of light sensation under screen
CN114281290A (en) * 2021-12-27 2022-04-05 深圳市汇顶科技股份有限公司 Method and device for positioning sensor under display screen and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102568438A (en) * 2010-12-13 2012-07-11 周锡卫 Self-adaptation brightness intelligent regulator for display device and realization method
CN106101450A (en) * 2016-08-12 2016-11-09 广东欧珀移动通信有限公司 The compensation method of a kind of ambient light intensity and mobile terminal
CN106251831A (en) * 2016-08-24 2016-12-21 惠州Tcl移动通信有限公司 A kind of screen display lightness regulating method based on ambient light and system
CN107945769A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN108172175A (en) * 2018-01-04 2018-06-15 广东小天才科技有限公司 It is a kind of for the bearing calibration of optical sensor, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102568438A (en) * 2010-12-13 2012-07-11 周锡卫 Self-adaptation brightness intelligent regulator for display device and realization method
CN106101450A (en) * 2016-08-12 2016-11-09 广东欧珀移动通信有限公司 The compensation method of a kind of ambient light intensity and mobile terminal
CN106251831A (en) * 2016-08-24 2016-12-21 惠州Tcl移动通信有限公司 A kind of screen display lightness regulating method based on ambient light and system
CN107945769A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN108172175A (en) * 2018-01-04 2018-06-15 广东小天才科技有限公司 It is a kind of for the bearing calibration of optical sensor, device, equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112033527A (en) * 2020-08-26 2020-12-04 北京小米移动软件有限公司 Ambient brightness detection method, device, equipment and storage medium
CN112033527B (en) * 2020-08-26 2023-10-03 北京小米移动软件有限公司 Ambient brightness detection method, device, equipment and storage medium
CN112365833A (en) * 2021-01-15 2021-02-12 深圳阜时科技有限公司 Method for detecting and correcting brightness adjustment value of light sensation under screen
CN114281290A (en) * 2021-12-27 2022-04-05 深圳市汇顶科技股份有限公司 Method and device for positioning sensor under display screen and electronic equipment
US11847993B2 (en) 2021-12-27 2023-12-19 Shenzhen GOODIX Technology Co., Ltd. Method and apparatus for locating sensor under display screen and electronic device
CN114281290B (en) * 2021-12-27 2024-04-12 深圳市汇顶科技股份有限公司 Method and device for positioning sensor under display screen and electronic equipment

Similar Documents

Publication Publication Date Title
CN110796988B (en) Backlight adjusting method and device
CN107978264B (en) Display brightness adjusting method and device
CN107992182B (en) Method and device for displaying interface image
CN111210792A (en) Method and device for determining ambient light brightness, terminal and storage medium
CN106843666B (en) method and device for adjusting display interface
US10109248B2 (en) Method and device for adjusting liquid crystal display
CN109215578B (en) Screen display method and device
US11094291B2 (en) Method and device for detecting ambient light and terminal
CN111290723A (en) Display background adjusting method, device, terminal and storage medium
CN112331158B (en) Terminal display adjusting method, device, equipment and storage medium
CN108877700B (en) Method and device for displaying image
CN111383608B (en) Display control method and apparatus, electronic device, and computer-readable storage medium
CN112033527A (en) Ambient brightness detection method, device, equipment and storage medium
CN110879658A (en) Method and device for adjusting display brightness, electronic equipment and storage medium
CN113257195A (en) Ambient light detection method and apparatus, electronic device, and storage medium
EP3975548A1 (en) Photographing method and apparatus, terminal, and storage medium
CN114067733B (en) Display screen correction method, display screen correction device and display chip
CN112689047B (en) Display control method and device and electronic equipment
CN111383568B (en) Display control method and device, electronic equipment and computer readable storage medium
CN111383583B (en) Display control method and apparatus, electronic device, and computer-readable storage medium
CN113360052A (en) Page display adjusting method and device, mobile terminal and storage medium
CN108538261B (en) Display control method and device and display equipment
CN111314550A (en) Display control method and device, mobile terminal and storage medium
CN111292690B (en) Screen backlight brightness adjusting method and device
CN112087539A (en) Screen light adjusting method for terminal equipment and terminal 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200529