CN113852720B - Ambient light determination method, device, terminal equipment and medium - Google Patents

Ambient light determination method, device, terminal equipment and medium Download PDF

Info

Publication number
CN113852720B
CN113852720B CN202010595857.8A CN202010595857A CN113852720B CN 113852720 B CN113852720 B CN 113852720B CN 202010595857 A CN202010595857 A CN 202010595857A CN 113852720 B CN113852720 B CN 113852720B
Authority
CN
China
Prior art keywords
information
ambient light
determining
display screen
test frame
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
CN202010595857.8A
Other languages
Chinese (zh)
Other versions
CN113852720A (en
Inventor
陈朝喜
孙长宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010595857.8A priority Critical patent/CN113852720B/en
Publication of CN113852720A publication Critical patent/CN113852720A/en
Application granted granted Critical
Publication of CN113852720B publication Critical patent/CN113852720B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/4204Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The disclosure relates to an ambient light determining method, an apparatus, a terminal device and a medium, wherein the ambient light determining method is applied to the terminal device, and a photosensitive element is arranged under a display screen of the terminal device, and the method comprises the following steps: determining test frame information of a display screen in unit time, wherein the test frame information is used for representing the distributed positions and time lengths of the test frames in the unit time; determining detection information output to the light-sensitive element according to the test frame information; and acquiring the ambient light information determined by the photosensitive element according to the detection information. By using the method disclosed by the invention, accurate ambient light information can be obtained, the display effect of the screen can be accurately regulated according to the ambient light information, and the reliability and stability of regulating the display effect of the display screen are improved.

Description

Ambient light determination method, device, terminal equipment and medium
Technical Field
The disclosure relates to the field of terminals, and in particular, to an ambient light determining method, an ambient light determining device, terminal equipment and a medium.
Background
With the progress of technology, terminal devices such as mobile phones have become an indispensable article in daily life. The terminal device is generally provided with a photosensitive element, for example, the photosensitive element is arranged under the screen of the terminal device with a full screen, the photosensitive element detects the ambient light in the environment where the terminal device is located, and the terminal device can adjust the display effect of the display screen according to the ambient light.
Along with the gradual becoming the mainstream of future mobile phone market of full screen mobile phones, in order to obtain better screen display effect, the problem that the under-screen photosensitive device is easily interfered by screen light must be solved so as to obtain stable and accurate ambient light information.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides an ambient light determining method, an apparatus, a terminal device, and a medium.
According to a first aspect of embodiments of the present disclosure, there is provided an ambient light determining method, applied to a terminal device, where a photosensitive element is disposed under a display screen of the terminal device, the method including:
determining test frame information of a display screen in unit time, wherein the test frame information is used for representing the distributed positions and time lengths of the test frames in the unit time;
determining detection information output to the light-sensitive element according to the test frame information;
and acquiring the ambient light information determined by the photosensitive element according to the detection information.
Optionally, the determining test frame information in a unit time of the display screen includes:
determining refreshing information of each frame of the display screen in unit time;
and determining the test frame information of the display screen in unit time according to the refreshing information of each frame.
Optionally, the determining test frame information in a unit time of the display screen includes:
determining first time information for starting to display the test frame in unit time and second time information for finishing displaying the test frame;
and determining the test frame information according to the first time information and the second time information.
Optionally, the method further comprises: according to the ambient light information, adjusting the display effect of the display screen; according to the ambient light information, adjusting the display effect of the display screen comprises:
according to the ambient light information, determining the illumination intensity and/or the color temperature of the environment where the terminal equipment is located;
and adjusting the display effect of the display screen according to the illumination intensity and/or the color temperature.
Optionally, the test frame includes at least one frame blank frame.
According to a second aspect of the embodiments of the present disclosure, there is provided an ambient light determining method applied to a photosensitive element disposed under a display screen of a terminal device, the method including:
acquiring detection information determined by test frame information, wherein the test frame information is used for representing the distributed positions and time lengths of the test frames in unit time;
determining ambient light information according to the detection information;
And outputting the ambient light information.
Optionally, the determining ambient light information according to the detection information includes:
determining a detection starting time and a detection duration according to the detection information;
receiving light waves within a preset wave band range within the detection duration;
and determining the ambient light information according to the received light waves in the preset wave band range, the detection starting time and the detection duration.
According to a third aspect of embodiments of the present disclosure, there is provided an ambient light determining apparatus, applied to a terminal device, provided with a photosensitive element under a display screen of the terminal device, the apparatus including:
the first determining module is used for determining test frame information of the display screen in unit time, wherein the test frame information is used for representing the distributed positions and time lengths of the test frames in unit time;
the second determining module is used for determining detection information output to the photosensitive element according to the test frame information;
and the first acquisition module is used for acquiring the ambient light information determined by the photosensitive element according to the detection information.
Optionally, the first determining module is specifically configured to:
determining refreshing information of each frame of the display screen in unit time;
and determining the test frame information of the display screen in unit time according to the refreshing information of each frame.
Optionally, the first determining module is specifically configured to:
determining first time information for starting to display the test frame in unit time and second time information for finishing displaying the test frame;
and determining the test frame information according to the first time information and the second time information.
Optionally, the device further comprises an adjusting module, wherein the adjusting module is specifically used for:
according to the ambient light information, determining the illumination intensity and/or the color temperature of the environment where the terminal equipment is located;
and adjusting the display effect of the display screen according to the illumination intensity and/or the color temperature.
Optionally, the test frame includes at least one frame blank frame.
According to a fourth aspect of embodiments of the present disclosure, there is provided an ambient light determining apparatus applied to a photosensitive element disposed under a display screen of a terminal device, the apparatus including:
the second acquisition module is used for acquiring detection information determined by test frame information, wherein the test frame information is used for representing the distributed positions and duration of the test frames in unit time;
the third determining module is used for determining ambient light information according to the detection information;
and the output module is used for outputting the ambient light information.
Optionally, the third determining module is specifically configured to:
Determining a detection starting time and a detection duration according to the detection information;
receiving light waves within a preset wave band range within the detection duration;
and determining the ambient light information according to the received light waves in the preset wave band range, the detection starting time and the detection duration.
According to a fifth aspect of embodiments of the present disclosure, there is provided a terminal device, including:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the ambient light determination method of any one of the above.
According to a sixth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium, which when executed by a processor of a terminal device, causes the terminal device to perform the ambient light determination method of any one of the above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: by using the method disclosed by the invention, accurate ambient light information can be obtained, the display effect of the screen can be accurately regulated according to the ambient light information, and the reliability and stability of regulating the display effect of the display screen are 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 invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart of a method shown according to an exemplary embodiment.
Fig. 2 is a flow chart of a method shown according to another exemplary embodiment.
Fig. 3 is a flow chart of a method shown according to another exemplary embodiment.
Fig. 4 is a flow chart of a method shown according to another exemplary embodiment.
Fig. 5 is a flow chart of a method shown according to another exemplary embodiment.
Fig. 6 is a flow chart of a method shown according to another exemplary embodiment.
Fig. 7 is a schematic diagram of an apparatus according to an example embodiment.
Fig. 8 is a block diagram of an apparatus according to an example embodiment.
Fig. 9 is a block diagram of an apparatus shown according to another example embodiment.
Fig. 10 is a block diagram of a terminal device shown according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
In the related art, a full-screen mobile phone gradually becomes the main stream of the future mobile phone market. In order to ensure the screen ratio of the terminal device, a photosensitive element such as a light sensor is usually disposed below the screen, and the terminal device can adjust the brightness of the screen or the color temperature of the screen according to the ambient light detected by the photosensitive element. However, the light sensing element arranged under the screen is affected by the screen luminescence, so that the sensing of the ambient light by the light sensing element is affected.
In the related art, when the illumination intensity is low (low light section), the screen display adopts a PWM pulse width modulation method, and the photosensitive element samples during Blanking Time of the screen display, so that the ambient light illumination intensity or ambient light color temperature value can be obtained through integration. When the illumination intensity is high (Gao Guangduan), the screen display adopts a DC driving (current driving) mode, the screen is refreshed at a certain frequency (such as 60 Hz), no Blanking Time exists, the value obtained by sampling and integrating the photosensitive element comprises two parts of ambient light and screen light, wherein a low light section and a high light section can be two light intensity ranges which are set by self according to the illumination environment of the terminal equipment.
As can be seen from the above, in the related art, in the process of obtaining the light information, the light information obtained by the light sensitive element under the screen often cannot obtain accurate ambient light information, especially in the case of higher illumination intensity, the light information obtained by the light sensitive element includes both ambient light and screen light, so that the ambient light information cannot be accurately known, and the terminal device cannot accurately perform screen display adjustment according to the ambient light.
In order to solve the above problems, the disclosure provides an ambient light determining method, which can obtain accurate ambient light information, is convenient for accurately adjusting the display effect of a screen according to the ambient light information, and improves the reliability and stability of adjusting the display effect of the display screen. The ambient light information may be color temperature information of the ambient light or illumination intensity, the color temperature information is a data basis for adjusting color consistency displayed by the display screen (i.e. adjusting luminescence or warm light of the screen) by the terminal device, and the illumination intensity is a data basis for adjusting brightness change displayed by the display screen (i.e. adapting to brightness of the environment adjusting screen) by the terminal device.
In an exemplary embodiment, the environmental light determining method in this embodiment is applied to a terminal device, such as a terminal device including a full screen, and a photosensitive element is disposed under a display screen of the terminal device, where the photosensitive element may be a sensor for sensing illumination intensity to determine light intensity or brightness or color temperature of an environment in which the terminal device is located. The display screen can be an OLED display screen, the photosensitive element is arranged below the display screen, and an opening is not required to be arranged on the display screen. As shown in fig. 1, the method in this embodiment includes:
S110, determining test frame information of the display screen in unit time, wherein the test frame information is used for representing the distributed positions and the distributed durations of the test frames in the unit time.
S120, determining detection information output to the light-sensitive element according to the test frame information.
S130, acquiring the ambient light information determined by the photosensitive element according to the detection information.
In this embodiment, during the screen display of the terminal device, the image is refreshed at a certain frequency, for example, the terminal device refreshes the display image at a frequency of 60 frames per second (60 frames/s). Studies have shown that when the refresh frequency of the image is higher than 30 frames/second, the user of the terminal cannot distinguish still or moving images under the naked eye. In this embodiment, 60 frames of images are displayed within 1 second, including a display frame and a test frame, and the OLED display screen displays a corresponding image when displaying the frame; the test frame may be set as a blank frame, and the OLED display screen does not display an image when the blank frame is in the blank frame, that is, the OLED display screen does not emit light when the blank frame is in the blank frame, and since the refresh frequency of the image is not changed (for example, 60 frames/second, which is higher than 30 frames/second), the blank frame which does not emit light cannot be distinguished by the user of the terminal under the naked eyes, and therefore the use of the user cannot be affected by the inserted blank frame. In the state of the display screen corresponding to the blank frame, external ambient light passes through the OLED display screen which does not emit light and is incident to the photosensitive element, and at the moment, the data detected by the photosensitive element is regarded as ambient light information.
In step S110, the unit time may be determined by F frames/second at the refresh frequency of the image, where F > 30, such as f=60, and each second is determined as a unit time. In a unit time per second, a screen control unit (such as a screen drive IC) of the terminal device controls the screen to refresh and display the F-frame image, and in the unit time per second, the screen drive IC inserts test frames in the process of refreshing the F-frame image, and determines the distribution position (starting time and ending time) and the duration of the inserted test frames in the unit time per second. For example, in this embodiment, the test frame is set as a blank frame, and the screen driver IC determines the start time and the end time of the blank frame insertion and the time length information in the process of inserting the test frame.
In step S120, after the screen drive IC determines the test frame information, detection information is generated and output to the photosensitive element. The detection information comprises position and time length information of the test frame, and the detection information represents the moment when the photosensitive element starts to detect, the moment when the photosensitive element ends to detect and the detection time length in the state of the test frame. For example, when determining that the position information of the blank frame insertion is: the starting time of the blank frame is T1, the ending time of the blank frame is T2, and the display duration of the blank frame is T. After receiving the detection information, the photosensitive element can start to sense and detect the ambient light information at the time T1, stop detecting at the time T2, and integrate and determine the ambient light information (illumination intensity or color temperature) within the time T1 to T2.
In step S130, the terminal device acquires the ambient light information determined by the photosensitive element, where the ambient light information may be color temperature information or illumination intensity of the ambient light.
In another exemplary embodiment, as shown in fig. 2, the method in this embodiment includes the steps of:
s210, determining refreshing information of each frame of the display screen in unit time.
S220, according to the refreshing information of each frame, determining the test frame information of the display screen in unit time.
S230, determining detection information output to the light-sensitive element according to the test frame information.
S240, acquiring the ambient light information determined by the photosensitive element according to the detection information.
S250, adjusting the display effect of the display screen according to the ambient light information.
In step S210, when the refresh frequency of the image is F frames/second, a test frame (blank frame) is inserted in a unit time, and the screen driving IC controls the display frame and the test frame in the image refreshed and displayed by the screen, the screen driving IC may determine refresh information of each frame, where the refresh information includes a start time, an end time and a display time corresponding to each frame of image. Test frame information for a blank frame therein is determined.
Alternatively, the screen driving IC controls the display frame in the image refreshed and displayed by the screen within a unit time. The screen driving IC may determine refresh information of each frame, where the refresh information includes a start time, an end time, and a display duration corresponding to each frame image. And inserting a test frame (blank frame) at a preset position in unit time (in each second), and determining or recording the initial time, the final time and the display time of the insertion. The display duration may be the same as or set by user to other display frames, for example, when f=60, the display time of each frame of image is 16.6ms, and the display duration of a blank frame may be set to 16.6ms.
In step S220, after the refresh information of each frame is obtained, the test frame information therein is determined. For example, the test frame information includes: the starting time of the test frame (blank frame) is T1, the ending time is T2, and the display duration of the blank frame is T.
In step S250, the display effect of the display screen is adjusted according to the ambient light information determined by the photosensitive element. It should be noted that, the display effect in this embodiment refers to brightness or color tone of the display screen, such as brightness (or brightness) or color temperature (luminescence and warmth) of the display screen. For example, when the photosensitive element is provided as a light sensor, the screen drive IC of the terminal device adjusts the brightness of the screen display in accordance with the change in the illumination intensity of the ambient light measured by the light sensor. For another example, when the photosensitive element is provided as a color temperature sensor, the screen driving IC of the terminal device adjusts the color temperature (whether the screen color is cold or warm) of the screen display according to the change in the color temperature value of the ambient light measured by the color temperature sensor. The display screen always keeps a comfortable display state in the process of using the terminal equipment, so that eye fatigue caused by poor light displayed on the screen is avoided, and the use experience of the user is improved.
In another exemplary embodiment, as shown in fig. 3, the method in this embodiment includes the steps of:
s310, determining first time information for starting display of the test frame in unit time and second time information for finishing display of the test frame.
S320, determining test frame information according to the first time information and the second time information.
S330, determining detection information output to the light-sensitive element according to the test frame information.
S340, acquiring the ambient light information determined by the photosensitive element according to the detection information.
S350, adjusting the display effect of the display screen according to the ambient light information.
In step S310, when the refresh frequency of the image is F frames/second, a test frame (blank frame) is inserted in a unit time, and the screen driving IC controls the display frame and the test frame in the image refreshed and displayed by the screen, the screen driving IC may determine the first time information t1 when the test frame starts to be displayed and the second time information t2 when the test frame is displayed.
In step S320, the display position of the test frame is known from the first time information t1 and the second time information t 2; the display duration T of the test frame may also be determined from the two time information, thereby determining the test frame information.
In another exemplary embodiment, as shown in fig. 4, the method in this embodiment includes the steps of:
s410, determining test frame information of the display screen in unit time, wherein the test frame information is used for representing the distributed positions and the distributed durations of the test frames in the unit time.
S420, determining detection information output to the light-sensitive element according to the test frame information.
S430, acquiring the ambient light information determined by the photosensitive element according to the detection information.
S440, according to the ambient light information, determining the illumination intensity and/or the color temperature of the environment where the terminal equipment is located.
S450, adjusting the display effect of the display screen according to the illumination intensity and/or the color temperature.
In step S440, according to the ambient light information determined in step S430, the ambient light information may be illumination intensity and/or color temperature. For example, when the photosensitive element is set as a light sensor, the ambient light information detected by the photosensitive element is the illumination intensity of the environment, and thus the illumination intensity of the environment in which the terminal device is located is determined. For another example, when the photosensitive element is provided as a color temperature sensor, the ambient light information detected by the photosensitive element is the color temperature of the environment, and thus the color temperature of the environment in which the terminal device is located is determined. For another example, the light sensing element can obtain the illumination intensity and the color temperature of the ambient light (for example, the light sensing element is set as a multi-channel sensor, the illumination intensity and the color temperature value are respectively determined according to different calculation modes based on different channel values of the sensor), and at this time, the illumination intensity and the color temperature of the environment where the terminal device is located can be determined.
In step S450, when the illumination intensity of the environment in which the terminal device is located is determined, the screen drive IC adjusts the brightness of the screen display according to the illumination intensity of the environment. When the color temperature of the environment in which the terminal device is located is determined, the screen driving IC adjusts the color temperature of the screen display (the screen color is cold or warm light) according to the color temperature of the environment. When the illumination intensity and the color temperature of the environment where the terminal equipment is located are determined, the screen driving IC adjusts the brightness of the screen display according to the illumination intensity of the environment and adjusts the color temperature of the screen display according to the color temperature of the environment, so that the display screen always keeps a comfortable display state in the process of using the terminal equipment, eye fatigue caused by poor light of the screen display is avoided, and the use experience of the user is improved.
In another exemplary embodiment, the test frames include at least one frame blank frame. In an example, if the test frame includes a blank frame, the ambient light information determined by the photosensitive element in the blank frame state may be obtained according to the method in the embodiments of fig. 1 to 4, and the display effect of the display screen may be adjusted according to the ambient light information. In another example, the test frame includes two or three blank frames, each blank frame may obtain respective corresponding ambient light information determined by the photosensitive element according to the method in the embodiments of fig. 1 to 4, average the obtained ambient light information corresponding to each blank frame, take the average value of the ambient light information corresponding to the two or three blank frames as final ambient light information, and use the final ambient light information as a basis for adjusting the screen display.
In this embodiment, under the condition that two frames, three frames or more than three blank frames are set, the calculation of the ambient light information can adopt the average value of multiple ambient light information, so that the ambient light information can be acquired more accurately, and the effect of adjusting the screen according to the ambient light information is better. In this case, to ensure that the screen display is not affected, there should be a display frame between every two adjacent blank frames, i.e., any two adjacent blank frames cannot be continuous. The blank frame may be inserted by replacing the display frame in a unit time with the blank frame, or by directly inserting the blank frame into the F frame.
However, it should be noted that, in this embodiment, the process of determining the color temperature and the illumination intensity finally involves the integral operation after the photosensitive element (the color temperature sensor or the light sensor) acquires the specific light wave band, so that the accurate ambient light information can be acquired by setting a blank frame as long as the display duration of the blank frame meets the requirement. Setting a plurality of blank frames may complicate the operation, thereby increasing the operation duration. In order to ensure accurate acquisition of the ambient light information, a blank frame can be inserted in each of a plurality of unit time, the ambient light information of each blank frame in the corresponding unit time is measured, and then the ambient light information in the plurality of unit time is averaged.
In another exemplary embodiment, as shown in fig. 5, an ambient light determining method in this embodiment is applied to a photosensitive element disposed under a display screen (such as a full screen) of a terminal device, and the method includes the following steps:
s510, acquiring detection information determined by test frame information, wherein the test frame information is used for representing the distributed positions and duration of the test frames in unit time.
S520, determining the ambient light information according to the detection information.
S530, outputting the ambient light information.
Wherein, in step S510, the screen driving IC generates the detection information after determining the test frame information. The detection information comprises position and time length information of the test frame, and the detection information represents the moment when the photosensitive element starts to detect, the moment when the photosensitive element ends to detect and the detection time length in the state of the test frame. For example, the test frame information includes: the starting time of the test frame (blank frame) is T1, the ending time is T2, and the display duration of the blank frame is T.
In step S520, according to the detection information, the ambient light information corresponding to the detection information is determined. For example, according to the detection information in step S510, the photosensitive element determines that the sensing of the ambient light information is started at time T1, and stops detecting at time T2, the detection duration is T, and the ambient light information (illumination intensity or color temperature) is determined by integration within T1 to T2.
In another exemplary embodiment, as shown in fig. 6, the method in this embodiment includes the steps of:
s610, acquiring detection information determined by test frame information, wherein the test frame information is used for representing the distributed positions and duration of the test frames in unit time.
S620, determining a detection starting time and a detection duration according to the detection information.
S630, receiving the light waves in the range of the preset wave band in the detection duration.
S640, determining the ambient light information according to the received light waves in the preset wave band range, the detection starting time and the detection duration.
S650, outputting the ambient light information.
In step S620, the detection information includes position and time length information of the test frame, where the detection information characterizes a time when the photosensitive element starts to detect, a time when the photosensitive element ends to detect, and a detection time length in a state of the test frame.
In step S630, the photosensitive element may detect the ambient light in the 380nm to 780nm band for the detection period.
In step S640, from the timing at which the photosensitive element starts detection, the timing at which the detection ends, the detection duration, and the band information, the ambient light information (the illumination intensity or color temperature of the ambient light corresponding to the band) can be determined.
In other exemplary embodiments, the test frame may also be set to: and gradually lighting the display screen along the preset starting point and the preset direction within the display time of the test frame. As shown in fig. 7, a photosensitive element, such as a color temperature sensor (sensor), is disposed under the screen, and the position for the color temperature sensor is the top area of the display screen. Each OLED light-emitting pixel unit is gradually lightened from the point a at the bottom of the terminal device by each frame of test frame image.
For example, assuming that the length of the terminal device is L1 and the resolution of the mobile phone is 1080×1920, there are 1920 rows of pixels in the length direction. Assuming that the length of the photosensitive element in the length direction of the terminal device is L2, in a state where the position of the photosensitive element (within the length range of L2) is not lit, the data determined by the photosensitive element is taken as the ambient light information (illumination intensity or color temperature).
The time from the start of lighting up of each test frame image until the screen area other than the photosensitive element is lit up is ((L1-L2)/L1) Ton, where Ton is the light emission time of each test frame. The screen drive IC determines the timing at which each frame of data starts to light up, and the timing at which the entire screen is lit up, thereby determining Ton. And determining the ambient light information determined by the photosensitive element in the corresponding time. After each frame of image is lighted, the next data acquisition can be performed, and the acquisition can be performed again after a period of time delay, or the detection information of the screen driving IC is waited for detection.
For another example, along the direction of the length L1 of the terminal device, the terminal device may be divided into four areas on average, and the determined data is used as the ambient light information (illumination intensity or color temperature) in a state where the area where the photosensitive element is located is not lit.
At this time, the photosensitive elements are located in the top regions, each of which is refreshed at a frequency of 60 frames/second (then each frame of data can be considered to be refreshed at a frequency of 240 frames/second). The first three areas, beginning at the bottom, can be used as the time for ambient light information acquisition by the photosensitive element. For example, the display time of each frame is T, and the time for acquiring the ambient light information by the photosensitive element is 3/4T. For example, the photosensitive elements determine the ambient light information of the first three areas, respectively, and accumulate as the final ambient light information.
In other exemplary embodiments of the present disclosure, the ambient light information may also be determined between two adjacent frames of images, for example, the data determined by the photosensitive element is used as the ambient light information (illumination intensity or color temperature) in the period from the time when the previous frame of image data is refreshed to the time when the next frame of image data starts to be refreshed.
In another exemplary embodiment, the present embodiment discloses an ambient light determining apparatus for implementing the ambient light determining method shown in fig. 1 to 4 described above. As shown in fig. 8, the apparatus in this embodiment includes: the first determining module 110, the second determining module 120, and the first obtaining module 130 further include an adjusting module 140, and the apparatus in this embodiment is used to implement the ambient light determining method shown in fig. 1. The first determining module 110 is configured to determine test frame information of the display screen in a unit time, where the test frame information is used to characterize a position and a duration of distribution of the test frame in the unit time. The second determining module 120 is configured to determine detection information output to the light sensing element according to the test frame information. The first acquisition module 130 is configured to acquire ambient light information determined by the photosensitive element according to the detection information. And the adjusting module 140 is used for adjusting the display effect of the display screen according to the ambient light information. In this embodiment, the test frame includes at least one blank frame.
In another exemplary embodiment, still referring to fig. 8, the apparatus in this embodiment includes a first determining module 110, a second determining module 120, a first obtaining module 130, and an adjusting module 140, where the apparatus in this embodiment is configured to implement the ambient light determining method shown in fig. 2. In the implementation process, the first determining module 110 in this embodiment is specifically configured to: determining refreshing information of each frame of the display screen in unit time; and determining the test frame information of the display screen in unit time according to the refreshing information of each frame.
In another exemplary embodiment, still referring to fig. 8, the apparatus in this embodiment includes a first determining module 110, a second determining module 120, a first obtaining module 130, and an adjusting module 140, where the apparatus in this embodiment is configured to implement the ambient light determining method shown in fig. 3. In the implementation process, the first determining module 110 in this embodiment is specifically configured to: determining first time information for starting display of the test frame in unit time and second time information for finishing display of the test frame; and determining test frame information according to the first time information and the second time information.
In another exemplary embodiment, still referring to fig. 8, the apparatus in this embodiment includes a first determining module 110, a second determining module 120, a first obtaining module 130, and an adjusting module 140, where the apparatus in this embodiment is configured to implement the ambient light determining method shown in fig. 4. In an implementation, the adjusting module 140 is specifically configured to: according to the ambient light information, determining the illumination intensity or color temperature of the environment where the terminal equipment is located; and adjusting the display effect of the display screen according to the illumination intensity or the color temperature.
In another exemplary embodiment, the present embodiment discloses an ambient light determining apparatus for implementing the ambient light determining method of fig. 5 to 6 described above. As shown in fig. 9, the apparatus in this embodiment includes: the second obtaining module 210, the third determining module 220, and the output module 230, the apparatus in this embodiment is used to implement the ambient light determining method shown in fig. 5. The second obtaining module 210 is configured to obtain detection information determined by the test frame, where the test frame information is used to characterize a position and a duration of the test frame distributed in a unit time. The third determining module 220 is configured to determine ambient light information according to the detection information. And an output module 230 for outputting the ambient light information.
In another exemplary embodiment, still referring to fig. 9, the apparatus in this embodiment includes a second acquisition module 210, a third determination module 220, and an output module 230, where the apparatus in this embodiment is configured to implement the ambient light determination method shown in fig. 6. In an implementation process, the third determining module 220 in this embodiment is specifically configured to: determining a detection starting time and a detection duration according to the detection information; receiving light waves within a preset wave band range within the detection duration; and determining the ambient light information according to the received light waves within the preset wave band range, the detection starting time and the detection duration.
A block diagram of a terminal device is shown in fig. 10. The present disclosure also provides for a terminal device, for example, device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
The device 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and a communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interactions between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
Memory 504 is configured to store various types of data to support operations at device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, video, and the like. The memory 504 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 500.
The multimedia component 508 includes a screen between the device 500 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 508 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 500 is in an operational 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 focal length and optical zoom capabilities.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further comprises a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 514 includes one or more sensors for providing status assessment of various aspects of the device 500. For example, the sensor assembly 514 may detect the on/off state of the device 500, the relative positioning of the components, such as the display and keypad of the device 500, the sensor assembly 514 may also detect a change in position of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration/deceleration of the device 500, and a change in temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 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 514 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the device 500 and other devices, either wired or wireless. The device 500 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
A non-transitory computer readable storage medium, such as memory 504 including instructions, provided in another exemplary embodiment of the present disclosure, the instructions being executable by processor 520 of device 500 to perform the above-described method. For example, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc. The instructions in the storage medium, when executed by the processor of the terminal device, enable the terminal device to perform the methods shown in fig. 1 to 4 or fig. 5 to 6 described above.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (14)

1. An ambient light determination method applied to a terminal device, wherein a photosensitive element is arranged under a display screen of the terminal device, and the method is characterized by comprising the following steps:
determining test frame information of a display screen in unit time, wherein the test frame information is used for representing the distributed positions and time lengths of the test frames in the unit time;
determining detection information output to the light-sensitive element according to the test frame information;
Acquiring ambient light information determined by the photosensitive element according to the detection information;
the test frame comprises at least one blank frame, the photosensitive element is arranged in the top area of the display screen, the display screen is gradually lightened along a preset starting point and a preset direction from the bottom area of the display screen in the display time of the test frame so as to display the next frame of image, and in the state that the refreshing of the test frame is completed and the screen is turned off, the data collected by the photosensitive element is used as the ambient light information in the state that the position of the photosensitive element is not lightened in the period that the data of the next frame of image is not completely refreshed.
2. The method of claim 1, wherein determining test frame information per unit time of the display screen comprises:
determining refreshing information of each frame of the display screen in unit time;
and determining the test frame information of the display screen in unit time according to the refreshing information of each frame.
3. The method of claim 1, wherein determining test frame information per unit time of the display screen comprises:
determining first time information for starting to display the test frame in unit time and second time information for finishing displaying the test frame;
And determining the test frame information according to the first time information and the second time information.
4. The ambient light determination method of claim 1, wherein the method further comprises: according to the ambient light information, adjusting the display effect of the display screen;
according to the ambient light information, adjusting the display effect of the display screen includes:
according to the ambient light information, determining the illumination intensity and/or the color temperature of the environment where the terminal equipment is located;
and adjusting the display effect of the display screen according to the illumination intensity and/or the color temperature.
5. An ambient light determination method applied to a photosensitive element arranged under a display screen of a terminal device, the method comprising:
acquiring detection information determined by test frame information, wherein the test frame information is used for representing the distributed positions and time lengths of the test frames in unit time;
determining ambient light information according to the detection information;
outputting ambient light information;
the test frame comprises at least one blank frame, the photosensitive element is arranged in the top area of the display screen, the display screen is gradually lightened along a preset starting point and a preset direction from the bottom area of the display screen in the display time of the test frame so as to display the next frame of image, and in the state that the refreshing of the test frame is completed and the screen is turned off, the data collected by the photosensitive element is used as the ambient light information in the state that the position of the photosensitive element is not lightened in the period that the data of the next frame of image is not completely refreshed.
6. The ambient light determination method according to claim 5, wherein the determining ambient light information based on the detection information includes:
determining a detection starting time and a detection duration according to the detection information;
receiving light waves within a preset wave band range within the detection duration;
and determining the ambient light information according to the received light waves in the preset wave band range, the detection starting time and the detection duration.
7. An ambient light determining apparatus for use in a terminal device, a photosensitive element being provided under a display screen of the terminal device, the apparatus comprising:
the first determining module is used for determining test frame information of the display screen in unit time, wherein the test frame information is used for representing the distributed positions and time lengths of the test frames in unit time;
the second determining module is used for determining detection information output to the photosensitive element according to the test frame information;
the first acquisition module is used for acquiring the ambient light information determined by the photosensitive element according to the detection information;
the test frame comprises at least one blank frame, the photosensitive element is arranged in the top area of the display screen, the display screen is gradually lightened along a preset starting point and a preset direction from the bottom area of the display screen in the display time of the test frame so as to display the next frame of image, and in the state that the refreshing of the test frame is completed and the screen is turned off, the data collected by the photosensitive element is used as the ambient light information in the state that the position of the photosensitive element is not lightened in the period that the data of the next frame of image is not completely refreshed.
8. The ambient light determination device of claim 7, wherein the first determination module is specifically configured to:
determining refreshing information of each frame of the display screen in unit time;
and determining the test frame information of the display screen in unit time according to the refreshing information of each frame.
9. The ambient light determination device of claim 7, wherein the first determination module is specifically configured to:
determining first time information for starting to display the test frame in unit time and second time information for finishing displaying the test frame;
and determining the test frame information according to the first time information and the second time information.
10. The ambient light determination device of claim 7, further comprising an adjustment module, the adjustment module being specifically configured to:
according to the ambient light information, determining the illumination intensity and/or the color temperature of the environment where the terminal equipment is located;
and adjusting the display effect of the display screen according to the illumination intensity and/or the color temperature.
11. An ambient light determining apparatus for use with a photosensitive element disposed under a display screen of a terminal device, the apparatus comprising:
The second acquisition module is used for acquiring detection information determined by test frame information, wherein the test frame information is used for representing the distributed positions and duration of the test frames in unit time;
the third determining module is used for determining ambient light information according to the detection information;
the output module is used for outputting the ambient light information;
the test frame comprises at least one blank frame, the photosensitive element is arranged in the top area of the display screen, the display screen is gradually lightened along a preset starting point and a preset direction from the bottom area of the display screen in the display time of the test frame so as to display the next frame of image, and in the state that the refreshing of the test frame is completed and the screen is turned off, the data collected by the photosensitive element is used as the ambient light information in the state that the position of the photosensitive element is not lightened in the period that the data of the next frame of image is not completely refreshed.
12. The ambient light determination device of claim 11, wherein the third determination module is specifically configured to:
determining a detection starting time and a detection duration according to the detection information;
receiving light waves within a preset wave band range within the detection duration;
and determining the ambient light information according to the received light waves in the preset wave band range, the detection starting time and the detection duration.
13. A terminal device, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the ambient light determination method of any one of claims 1 to 4 or any one of claims 5 to 6.
14. A non-transitory computer readable storage medium, characterized in that instructions in the storage medium, when executed by a processor of a terminal device, enable the terminal device to perform the ambient light determination method of any one of claims 1 to 4 or any one of claims 5 to 6.
CN202010595857.8A 2020-06-28 2020-06-28 Ambient light determination method, device, terminal equipment and medium Active CN113852720B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010595857.8A CN113852720B (en) 2020-06-28 2020-06-28 Ambient light determination method, device, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010595857.8A CN113852720B (en) 2020-06-28 2020-06-28 Ambient light determination method, device, terminal equipment and medium

Publications (2)

Publication Number Publication Date
CN113852720A CN113852720A (en) 2021-12-28
CN113852720B true CN113852720B (en) 2023-06-20

Family

ID=78972385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010595857.8A Active CN113852720B (en) 2020-06-28 2020-06-28 Ambient light determination method, device, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN113852720B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109642953A (en) * 2016-09-14 2019-04-16 苹果公司 System and method for being sensed in frame and adaptive sensing controls

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017054108A1 (en) * 2015-09-28 2017-04-06 华为技术有限公司 Terminal and method for detecting brightness of ambient light
CN105933550A (en) * 2016-07-08 2016-09-07 深圳市万普拉斯科技有限公司 Brightness adjustment method, brightness adjustment device and mobile terminal
CN107990978A (en) * 2017-11-22 2018-05-04 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment
CN107917755A (en) * 2017-11-22 2018-04-17 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment
CN107945747A (en) * 2017-11-22 2018-04-20 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment
AU2018393169B2 (en) * 2017-12-29 2021-08-05 Honor Device Co., Ltd. Ambient light detection method, proximity detection method, photographing method, and terminal
CN109410833B (en) * 2018-08-29 2021-01-15 北京小米移动软件有限公司 Ambient light detection method, ambient light detection device, terminal and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109642953A (en) * 2016-09-14 2019-04-16 苹果公司 System and method for being sensed in frame and adaptive sensing controls

Also Published As

Publication number Publication date
CN113852720A (en) 2021-12-28

Similar Documents

Publication Publication Date Title
US9858885B2 (en) Method and device for reducing display brightness
KR101889624B1 (en) Method and device for mode switching
CN110796988B (en) Backlight adjusting method and device
US10861418B2 (en) Methods, devices, and storage medium for determining ambient brightness
CN111462701A (en) Backlight brightness adjusting method and device
CN112714205A (en) Method and device for determining ambient illumination intensity and storage medium
CN111552533B (en) Distance detection method and device and intelligent equipment
CN111754929B (en) Ambient light parameter acquisition method and device and storage medium
CN109151217B (en) Backlight mode adjusting method and device
US11062640B2 (en) Screen display method and screen display device
CN113852720B (en) Ambient light determination method, device, terminal equipment and medium
CN112116670A (en) Information processing method and device, electronic device and storage medium
CN106775541B (en) Electronic device and screen display method
CN109102779A (en) backlight adjusting method and device
CN112086075B (en) Screen display parameter adjusting method and device and storage medium
CN112781832A (en) Method, apparatus, device and medium for determining ambient light for terminal device
CN111383568B (en) Display control method and device, electronic equipment and computer readable storage medium
CN114968143A (en) Display processing method and device, electronic equipment and storage medium
US20200105200A1 (en) Oled displaying method and device
CN111314550A (en) Display control method and device, mobile terminal and storage medium
CN112019680A (en) Screen brightness adjusting method and device
CN111883040B (en) Display effect adjusting method and device of display screen, terminal equipment and medium
CN113628574B (en) Display control method and device, display device and computer readable storage medium
CN113551768B (en) Method and device for determining ambient brightness
CN113571027B (en) Control method and device for display screen of electronic equipment, electronic equipment 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