Ambient light detection method, device and terminal
By reducing the frame rate of the display in the terminal device to increase the time gap, the problem that the light sensor is affected by the brightness of the display when detecting ambient light is solved, and the accuracy and consistency of ambient light detection are improved.
Patent Information
- Application Number
- CN201911040417.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-29
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In terminal equipment, when the light sensor detects ambient light, it is easily affected by the display brightness of the display screen, resulting in a reduction in ambient light detection accuracy, and the brightness of different screen images affects the consistency of ambient light detection.
By switching the display frame rate of the display screen from a high frame rate to a low frame rate, the time gap between adjacent frame images is increased, allowing the light sensor to detect ambient light in the space gap between the display units of the display screen, reducing the display screen speed. The impact of brightness on ambient light detection, and the ambient light brightness is corrected based on the detected brightness information.
It improves the accuracy and consistency of ambient light detection, reduces the impact of display brightness on ambient light detection, and improves the accuracy of obtaining external environment brightness information.
Smart Images

Figure CN112748814B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic technology, and in particular to an ambient light detection method, device, and terminal. Background Art
[0002] With the rapid development of electronic technology, terminal devices such as full-screen smart phones and tablet computers have become more and more popular. Usually, a light sensor is arranged under the screen of the terminal device.
[0003] Figure 1 is a schematic diagram of the location of a light sensor in an exemplary terminal, such as Figure 1 As shown, a screen display area A3 is formed within the screen frame A4 of the terminal. A light sensor A1 is provided below the screen of the screen display area A3. A light transmissive area A2 is provided around the light sensor A1, which is the light receiving area of the light sensor.
[0004] The light sensor detects and obtains the external environment brightness 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, when the terminal detects the ambient light and obtains the external environment brightness information through the light receiving area, the detection of the ambient light is easily affected by the display brightness of the display screen, and the brightness of different screen images displayed on the display screen will also affect the accuracy of the ambient light detection. Summary of the invention
[0005] The present invention provides an ambient light detection method, device and terminal.
[0006] According to a first aspect of an embodiment of the present disclosure, there is provided an ambient light detection method, which is applied to a terminal including a light sensor and a display screen, wherein the light sensor is disposed below the display screen, and the method includes:
[0007] When it is necessary to collect ambient light, switching the display frame rate of the display screen from a first frame rate to a second frame rate, wherein the first frame rate is greater than the second frame rate;
[0008] During the time interval when the display screen is displayed at the second frame rate, the light sensor detects ambient light in the space gap between the display units of the display screen, and obtains ambient brightness information.
[0009] In some embodiments, the method further comprises:
[0010] Determining whether the display brightness of the display screen is less than a predetermined brightness threshold;
[0011] The method of detecting ambient light in a space between display units of the display screen by the light sensor during a time interval when the display screen displays at the second frame rate and obtaining ambient brightness information includes:
[0012] When the display brightness of the display screen is less than the predetermined brightness threshold, during the time interval when the display screen is displayed at the second frame rate, the light sensor detects ambient light in the spatial gap between the display units of the display screen and obtains the ambient brightness information.
[0013] In some embodiments, if the display brightness of the display screen exceeds the predetermined brightness threshold value within the time interval, the method further includes:
[0014] Reduce the second frame rate.
[0015] In some embodiments, the method further comprises:
[0016] After the light sensor detects ambient light in the space between the display units of the display screen, the display frame rate of the display screen is restored from the second frame rate to the first frame rate.
[0017] In some embodiments, the method further comprises:
[0018] Detecting whether there is an obstacle within a preset range of the terminal;
[0019] If there is no obstacle within the preset range, the display frame rate of the display screen is switched from the first frame rate to the second frame rate.
[0020] In some embodiments, the method further comprises:
[0021] When the display screen is adjusted from a first display brightness to a second display brightness within a time interval of detecting the ambient light, determining a display brightness difference;
[0022] When the display brightness difference value is greater than zero, the environment brightness information is corrected based on the display brightness difference value.
[0023] In some embodiments, detecting ambient light in the space between the display units of the display screen by the light sensor and obtaining ambient brightness information includes:
[0024] Detecting the ambient light through the space between the display units of the display screen by the light sensor to obtain a first brightness value;
[0025] Calculating a brightness difference between the first brightness value and a predetermined remaining brightness value of the display screen;
[0026] The ambient light brightness information is obtained according to the light brightness difference.
[0027] In some embodiments, obtaining the ambient light brightness information according to the light brightness difference includes:
[0028] The ambient light brightness information is obtained according to the light brightness difference and the light transmittance of the display screen.
[0029] In some embodiments, the method further comprises:
[0030] The display brightness of the display screen is adjusted according to the ambient light brightness information.
[0031] According to a second aspect of an embodiment of the present disclosure, there is provided an ambient light brightness determination device, which is applied to a terminal including a light sensor and a display screen, wherein the light sensor is arranged below the display screen, and the device includes:
[0032] A switching module, configured to switch a display frame rate of the display screen from a first frame rate to a second frame rate when ambient light needs to be collected, wherein the first frame rate is greater than the second frame rate;
[0033] The first detection module is configured to detect ambient light in the space between the display units of the display screen through a light sensor during the time interval when the display screen displays at the second frame rate, and obtain ambient brightness information.
[0034] In some embodiments, the apparatus further comprises:
[0035] A determination module configured to determine whether the display brightness of the display screen is less than a predetermined brightness threshold;
[0036] The first detection module is specifically configured to detect ambient light in the spatial gap between the display units of the display screen through the light sensor during the time interval when the display brightness of the display screen is less than a predetermined brightness threshold, and obtain the ambient brightness information.
[0037] In some embodiments, if the display brightness of the display screen exceeds the predetermined brightness threshold value within the time interval, the device further includes:
[0038] The adjustment module is configured to reduce the second frame rate.
[0039] In some embodiments, the device further includes a recovery module, which is configured to restore the display frame rate of the display screen from the second frame rate to the first frame rate after the first detection module detects ambient light in the spatial gap between the display units of the display screen.
[0040] In some embodiments, the apparatus further comprises:
[0041] A second detection module is configured to detect whether there is an obstacle within a preset range;
[0042] The switching module is specifically configured to switch the display frame rate of the display screen from the first frame rate to the second frame rate if there is no obstacle in the preset range.
[0043] In some embodiments, the device further includes a determination module and a correction module, and when the display screen is adjusted from the first display brightness to the second display brightness during the time interval of detecting the ambient light,
[0044] The determination module is configured to determine a display brightness difference;
[0045] The correction module is configured to correct the ambient brightness information based on the display brightness difference when the display brightness difference is greater than zero.
[0046] In some embodiments, the first detection module includes:
[0047] A first obtaining module is configured to detect the ambient light through the space gap between the display units of the display screen by the light sensor to obtain a first brightness value;
[0048] a calculation module, configured to calculate a brightness difference between the first brightness value and a predetermined remaining brightness value of the display screen;
[0049] The second obtaining module is configured to obtain the ambient light brightness information according to the light brightness difference.
[0050] In some embodiments, the first detection module further includes:
[0051] The third obtaining module is configured to obtain the ambient light brightness information according to the light brightness difference and the transmittance of the display screen.
[0052] In some embodiments, the apparatus further comprises:
[0053] The adjustment module is configured to adjust the display brightness of the display screen according to the ambient light brightness information.
[0054] According to a third aspect of an embodiment of the present disclosure, a terminal is provided, including:
[0055] processor;
[0056] a memory for storing processor-executable instructions;
[0057] Wherein, the processor is configured to execute the ambient light detection method as described in the first aspect above.
[0058] According to a fourth aspect of an embodiment of the present disclosure, there is provided a storage medium, including:
[0059] When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to execute the ambient light detection method as described in the first aspect above.
[0060] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0061] In an embodiment of the present disclosure, when the terminal displays a frame image, if it is necessary to collect ambient light, the display frame rate of the display screen is switched from a first frame rate to a second frame rate that is smaller than the first frame rate, that is, the time gap between adjacent frame images is increased, so that when the light sensor detects ambient light in the spatial gap between the display units of the display screen, on the one hand, the influence of the display brightness of the display screen on the ambient light detection can be reduced, thereby improving the accuracy of obtaining external ambient brightness information; on the other hand, when image frames of different pictures are displayed on the display screen, within the increased time gap, the influence of the image frames of different pictures on the display brightness of the display screen will become smaller, and thus when displaying frame images of different pictures, the consistency of the light sensor detecting the ambient light can be improved, thereby improving the consistency of obtaining external ambient brightness information.
[0062] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] 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 present disclosure.
[0064] Figure 1 The figure is a schematic diagram of the location of a light sensor in an exemplary terminal.
[0065] Figure 2 This is a flow chart of an ambient light detection method shown in an embodiment of the present disclosure. Figure 1 .
[0066] Figure 3 An example of a luminous brightness curve of a display screen during a display time interval in an embodiment of the present disclosure is shown in FIG. Figure 1 .
[0067] Figure 4 An example of a luminous brightness curve of a display screen during a display time interval in an embodiment of the present disclosure is shown in FIG. Figure 2 .
[0068] Figure 5 An example of a method for a light sensor to detect ambient light when an image frame is displayed Figure 1 .
[0069] Figure 6 This is an example flowchart of an ambient light detection method shown in an embodiment of the present disclosure.
[0070] Figure 7 This is an example of a method for a light sensor to detect ambient light when an image frame is displayed in this embodiment. Figure 2 .
[0071] Figure 8 is a diagram showing an ambient light detection device according to an exemplary embodiment.
[0072] Fig. 9 It is a block diagram of a terminal shown in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0073] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0074] Figure 2 This is a flow chart of an ambient light detection method shown in an embodiment of the present disclosure. Figure 1 ,like Figure 2 As shown, it is applied to a terminal including a light sensor and a display screen, the light sensor is arranged below the display screen, and the ambient light detection method includes the following steps:
[0075] S11. When it is necessary to collect ambient light, switch the display frame rate of the display screen from a first frame rate to a second frame rate, wherein the first frame rate is greater than the second frame rate.
[0076] S12. During a time interval when the display screen is displayed at the second frame rate, the light sensor detects ambient light in a space between display units of the display screen, and obtains ambient brightness information.
[0077] In the embodiments of the present disclosure, the terminal device includes: a mobile device and a fixed 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).
[0078] The terminal device includes a display screen that can display image frames. The terminal is also provided with a light sensor, which is arranged below the display screen and can convert the light signal passing through the display screen into an electrical signal, so that the terminal can obtain corresponding brightness information according to the electrical signal.
[0079] It should be noted that, for a full-screen terminal, the light sensor disposed below the display screen detects the ambient light by detecting the light transmitted through the space gaps between the display units. Figure 1 The light receiving area shown is formed by the space gaps between the display units.
[0080] In step S11 of the embodiment of the present disclosure, when the terminal needs to collect ambient light, the display frame rate of the display screen is switched from the first frame rate to the second frame rate, that is, the display time interval between adjacent frame images is increased.
[0081] For example, the first frame rate is 60 frames per second, and the second frame rate is 40 frames per second. When the image frames are displayed at the first frame rate, the time gap between adjacent image frames is 5 ms, and when the image frames are displayed at the second frame rate, the time gap between adjacent image frames is 8 ms. It should be noted that the above values are only exemplary and are not limited by the embodiments of the present disclosure.
[0082] Generally, when displaying image frames at a certain frame rate, the time interval of display refers to the time interval of switching image frames. Although the image frame is not displayed on the display screen during the time interval of display, the screen of the display screen is still affected by the displayed image frame and the image frame to be displayed. The reason is that after a frame of image is displayed, the value of the electrical signal acting on the display unit will not be immediately reduced to 0, and there is a gradual decrease process, so the display brightness of the display screen is also gradually reduced; and when the next frame of image needs to be displayed, the value of the electrical signal acting on the display unit will not be immediately adjusted to the required value, and there is a gradual increase process. Therefore, during the time interval of display, the display brightness of the display screen is still affected by the image frame, and the display brightness of the display screen presents a trend of oscillation, for example, in the display interval between two adjacent frames of image, it is presented in the form of a parabola with an opening upward. In the embodiment of the present disclosure, after a frame of image is displayed, the display brightness of the display screen gradually decreases to the brightness of the minimum brightness, and before the next frame of image is fully displayed, the display brightness of the display screen gradually increases from the minimum brightness, which is called residual brightness. The residual brightness of the display screen is less than the overall display brightness of the display screen when displaying a frame of image.
[0083] Figure 3 An example of a luminous brightness curve of a display screen during a display time interval in an embodiment of the present disclosure is shown in FIG. Figure 1 ,like Figure 3As shown, S1 is the screen luminance curve of the display screen, t1 is the time interval at the first frame rate, after displaying the n+1th frame image, the screen luminance value of the display screen gradually decreases as the electrical signal value decreases, and when displaying the n+2th frame image, the screen luminance value of the display screen gradually increases as the electrical signal value increases. The screen luminance within the t1 time interval is the residual brightness at the first frame rate.
[0084] In the embodiment of the present disclosure, the display frame rate is lowered, which prolongs the process of the gradual decrease and increase of the electrical signal acting on the display unit. Therefore, the bottom end of the screen luminance curve of the display screen will be relatively lowered. Figure 4 An example of a luminous brightness curve of a display screen during a display time interval in an embodiment of the present disclosure is shown in FIG. Figure 2 ,like Figure 4 As shown, S2 is the screen luminance curve of the display, t2 is the time interval under the second frame rate, and the bottom end of the screen luminance curve of the display screen is lower than Figure 3 The bottom of the luminous brightness curve shown in FIG. t2 is the screen luminous brightness in the time interval, which is the residual brightness under the second frame rate.
[0085] It can be understood that in step S12, the terminal detects ambient light through the light sensor during the time interval when the display screen displays because no image frame is displayed on the display screen during the time interval when the display screen is displayed. Therefore, the ambient light is relatively less affected by the display brightness of the display screen when passing through the display screen. When it is necessary to collect ambient light, the present invention detects within the time interval corresponding to the reduced second frame rate, so that the light sensor can further reduce the influence of the display brightness of the display screen when detecting ambient light, thereby further improving the detection accuracy, thereby improving the accuracy of obtaining ambient brightness information.
[0086] It should be noted that, based on the working principle of the aforementioned light sensor, the brightness information obtained by the terminal according to the electrical signal includes the ambient brightness information and the residual brightness information of the display screen. Among them, the residual brightness information is obtained by testing in an experimental environment in advance, and the experimental environment refers to an environment that is not disturbed by external ambient light.
[0087] The residual brightness information obtained based on the experimental environment test can be obtained by obtaining the residual brightness value corresponding to the middle moment of the time gap. Figure 4 As shown, the middle moment is the moment corresponding to the marker A, at which the remaining brightness value of the display screen may be the minimum value within the time interval.
[0088] In addition, it should be noted that in the embodiments disclosed herein, the timing when the terminal needs to collect ambient light can be set according to a preset time period, for example, the terminal is set to collect ambient light once every 2 seconds. It can also be triggered to collect ambient light when an environmental change is detected, for example, the terminal determines that there is an obstacle within a preset range. The present disclosure does not specifically limit the timing of collecting ambient light.
[0089] In one embodiment, after the terminal detects ambient light in the space gaps between the display units of the display screen through a light sensor, the terminal restores the display frame rate of the display screen from the second frame rate to the first frame rate.
[0090] It is understandable that lowering the display frame rate of the display frequency may affect the display effect of the terminal. Therefore, in the embodiment of the present disclosure, after detecting the ambient light, the second frame rate is restored to the original first frame rate, which will not affect the use of the terminal user.
[0091] In one embodiment, the terminal determines whether the display brightness of the display screen is less than a predetermined brightness threshold; step S12 includes:
[0092] When the display brightness of the display screen is less than a predetermined brightness threshold, during a time interval when the display screen is displayed at a second frame rate, the light sensor detects ambient light in a space between display units of the display screen and obtains ambient brightness information.
[0093] In this embodiment, the determination of the predetermined brightness threshold may be set in advance by a technician. It is understandable that the lower the display brightness of the display screen, the smaller the effect of the display brightness of the display screen on the detection of ambient light. Therefore, by detecting the ambient light in the time interval when the display screen is displayed at the second frame rate when the brightness is lower than the predetermined brightness threshold, the effect of the display brightness of the display screen on the detection of ambient light by the light sensor is further reduced. In one embodiment, if the display brightness of the display screen exceeds the predetermined brightness threshold in the time interval, the terminal adjusts the second frame rate down.
[0094] In an embodiment of the present disclosure, if at the second frame rate, there is no moment when the display brightness of the display screen is less than a predetermined brightness threshold, the second frame rate is further reduced to extend the process of gradually decreasing and gradually increasing the electrical signal acting on the display unit as a whole, so as to reduce the influence of the display brightness of the display screen on ambient light detection.
[0095] In addition, in the embodiments of the present disclosure, based on the reduction of the frame rate, the process of gradually decreasing and gradually increasing the electrical signal acting on the display unit is prolonged. Therefore, for different display images, such as black images and white images, specifically, when the n+1th frame and the n+2th frame display a black image, and when the n+1th frame and the n+2th frame both display a white image, the display brightness value of the display screen can be reduced to a relatively consistent value, that is, for different display images, Figure 4 The value of the marker A can maintain relative consistency. Therefore, for different frame images, the brightness value detected by the light sensor can remain relatively consistent, so that the terminal can obtain the ambient brightness information in a consistent manner.
[0096] In one embodiment, the environment in which the terminal is located during use will have a great impact on the ambient light. For example, when the user's hand blocks the display screen, the ambient light detected by the light sensor will be affected by the blockage. Therefore, in the embodiment of the present disclosure, in order to improve the accuracy of ambient light detection, the terminal can detect whether there is an obstacle within a preset range. If the terminal detects that there is no obstacle within the preset range, the display frame rate of the display screen is switched from the first frame rate to the second frame rate.
[0097] In this embodiment, for example, the terminal detects whether there is an obstacle within a preset range through a proximity sensor or a distance sensor.
[0098] In one embodiment, when the display screen is adjusted from a first display brightness to a second display brightness within a time interval of detecting ambient light, a display brightness difference is determined; when the display brightness difference is greater than zero, the ambient brightness information is corrected based on the display brightness difference.
[0099] In this embodiment, as mentioned above, the detected ambient light is the result of the interaction between the residual brightness and the ambient brightness information. If the residual brightness value obtained in advance in an experimental environment based on the first display brightness is A, then when the display screen is adjusted from the first display brightness to the second display brightness, the ambient brightness information is still obtained by subtracting A from the detected ambient light at the second display brightness, then the obtained ambient brightness information is inaccurate. Based on the consistency between the increase in the display brightness of the display screen and the increase in the residual brightness, more accurate ambient brightness information can be obtained by subtracting the display brightness increase value from the obtained ambient brightness information.
[0100] It should be noted that when the display brightness of the display screen is reduced from the first display brightness, since the influence of the display brightness of the display screen on the ambient light detection is actually reduced, it can be set not to correct the ambient brightness information.
[0101] As mentioned above, the brightness information detected by the terminal through the light sensor arranged under the display screen includes ambient brightness information and the residual brightness of the display screen. Therefore, in an embodiment of the present disclosure, step S12 includes: the terminal detects ambient light in the spatial gap between the display units of the display screen through the light sensor to obtain a first brightness value; calculates the brightness difference between the first brightness value and the predetermined residual brightness value of the display screen; and obtains ambient light brightness information based on the brightness difference.
[0102] For example, the calculated brightness difference is 70 Lux, so the ambient light brightness information of the external environment is determined to be 70 Lux.
[0103] In another embodiment, since the display screen has a certain transmittance, the external ambient light will be attenuated when it passes through the display screen to the light sensor. In order to improve the accuracy of obtaining the ambient light brightness information of the external environment, the terminal obtains the ambient light brightness information based on the brightness difference, including: the terminal obtains the ambient light brightness information based on the brightness difference and the transmittance of the display screen.
[0104] In an embodiment of the present disclosure, after obtaining the ambient light brightness information, the terminal can adjust the display brightness of the display screen according to the ambient light brightness information.
[0105] For example, when the ambient light brightness information is very high, the display brightness of the display screen can be adjusted to be high; when the ambient light brightness information is very low, the display brightness of the display screen can be adjusted to be low to adapt to the user's eyes.
[0106] It can be understood that in this embodiment, when the terminal displays a frame image, if it is necessary to collect ambient light, the display frame rate of the display screen is switched from a first frame rate to a second frame rate that is smaller than the first frame rate, that is, the time gap between adjacent frame images is increased, so that when the light sensor detects ambient light in the spatial gap between the display units of the display screen, on the one hand, it can reduce the influence of the display brightness of the display screen on the ambient light detection, thereby improving the accuracy of obtaining external ambient brightness information; on the other hand, when image frames of different pictures are displayed on the display screen, within the increased time gap, the influence of the image frames of different pictures on the display brightness of the display screen will become smaller, and thus when displaying image frames of different pictures, it can improve the consistency of the light sensor detecting the ambient light, thereby improving the consistency of the obtained external ambient brightness information.
[0107] Figure 5 An example of a method for a light sensor to detect ambient light when an image frame is displayed Figure 1 ,like Figure 5 As shown, during the display process of the image frame, adjacent frame images are displayed at a first frame rate, that is, the corresponding time interval is t1, and the ambient light is detected by the light sensor during the time interval t1.
[0108] Figure 6 is an example flow chart of an ambient light detection method shown in an embodiment of the present disclosure, such as Figure 6 As shown, the ambient light detection method includes the following steps:
[0109] S21. The terminal displays a first frame and a second frame of image in a first time interval.
[0110] In this embodiment, the terminal displays two adjacent frame images at a first time interval, that is, the frame images displayed when the display frame rate of the corresponding terminal is the first frame rate.
[0111] S22: The terminal detects ambient light and obtains ambient brightness information through a light sensor during a time interval when the second frame and the third frame are displayed at a second time interval, and the second time interval is greater than the first time interval.
[0112] In this embodiment, after displaying the second frame image, the terminal displays the third frame image at a second time interval greater than the first time interval, that is, the corresponding terminal switches the display frame rate from the first frame rate to the second frame rate after displaying the second frame image.
[0113] At the middle moment between the second and third frames, that is, the moment when the display brightness of the display screen is the smallest, the terminal detects the ambient light through the light sensor to obtain a first brightness value. The first brightness value includes the external environment brightness information and the second brightness value of the display screen corresponding to the middle moment, so the terminal can obtain the ambient light brightness information based on the difference between the first brightness value and the second brightness value obtained by the light sensor.
[0114] S23: The terminal resumes displaying subsequent frame images of the third frame image in the first time interval.
[0115] In the embodiment of the present disclosure, in order to ensure the display effect of the display screen, after obtaining the external ambient light information, the terminal resumes displaying the image frames at the first time interval, that is, the first frame rate.
[0116] based on Figure 6 method, Figure 7 This is an example of a method for a light sensor to detect ambient light when an image frame is displayed in this formula embodiment. Figure 2 ,like Figure 7 As shown, during the display process of the image frame, the n+1th frame and the n+2th frame image are first displayed at the first frame rate. At this time, the time gap corresponding to the n+1th frame and the n+2th frame image is t1. Subsequently, after the n+2th frame image, the n+3th frame image is switched to be displayed at the second frame rate. The time gap corresponding to the n+2th frame and the n+3th frame image is t2. After displaying the n+3th frame image, the terminal switches to the first frame rate to display the frame image.
[0117] It can be seen from the figure that t2 is greater than t1. In the time interval of t1 and the time interval of t2, the luminous brightness of the display screen presents a parabola trend that opens upward, and in the display interval of t2, the vertex value of the parabola is smaller than the vertex value of the parabola in the display interval of t1. The light sensor detects ambient light in the time interval of t2.
[0118] It can be understood that in this embodiment, the ambient light is detected by lowering the frame rate during the display of the frame image, and then the display is restored to the original frame rate after the detection is completed. On the one hand, the accuracy and consistency of obtaining the external environment brightness information are improved, and on the other hand, the visual effect of the image frame display is guaranteed.
[0119] Figure 8 FIG. 1 is a diagram showing an ambient light detection device according to an exemplary embodiment. Figure 8 The ambient light detection device includes a switching module 121 and a first detection module 122 .
[0120] The switching module 121 is configured to switch the display frame rate of the display screen from the first frame rate to the second frame rate when it is necessary to collect ambient light, wherein the first frame rate is greater than the second frame rate;
[0121] The first detection module 122 is configured to detect ambient light in the space between the display units of the display screen through a light sensor during the time interval when the display screen displays at the second frame rate, and obtain ambient brightness information.
[0122] In some embodiments, the apparatus further comprises:
[0123] The judging module 123 is configured to judge whether the display brightness of the display screen is less than a predetermined brightness threshold;
[0124] The first detection module 122 is specifically configured to detect ambient light in the spatial gap between the display units of the display screen through the light sensor during the time interval when the display brightness of the display screen is less than the predetermined brightness threshold, and obtain the ambient brightness information.
[0125] In some embodiments, if the display brightness of the display screen exceeds the predetermined brightness threshold value within the time interval, the device further includes:
[0126] The adjustment module 124 is configured to reduce the second frame rate.
[0127] In some embodiments, the device further includes a recovery module 125, which is configured to restore the display frame rate of the display screen from the second frame rate to the first frame rate after the first detection module detects ambient light in the spatial gap between the display units of the display screen.
[0128] In some embodiments, the apparatus further comprises:
[0129] The second detection module 126 is configured to detect whether there is an obstacle within a preset range;
[0130] The switching module 121 is specifically configured to switch the display frame rate of the display screen from the first frame rate to the second frame rate if there is no obstacle in the preset range.
[0131] In some embodiments, the device further includes a determination module 127 and a correction module 128, and when the display screen is adjusted from the first display brightness to the second display brightness during the time interval of detecting the ambient light,
[0132] The determination module 127 is configured to determine a display brightness difference;
[0133] The correction module 128 is configured to correct the ambient brightness information based on the display brightness difference when the display brightness difference is greater than zero.
[0134] In some embodiments, the first detection module 122 includes:
[0135] A first obtaining module 122a is configured to detect the ambient light in the space between the display units of the display screen through the light sensor to obtain a first brightness value;
[0136] A calculation module 122b is configured to calculate a brightness difference between the first brightness value and a predetermined remaining brightness value of the display screen;
[0137] The second obtaining module 122c is configured to obtain the ambient light brightness information according to the light brightness difference.
[0138] In some embodiments, the first detection module 122 further includes:
[0139] The third obtaining module 122d is configured to obtain the ambient light brightness information according to the light brightness difference and the light transmittance of the display screen.
[0140] In some embodiments, the apparatus further comprises:
[0141] The adjustment module 129 is configured to adjust the display brightness of the display screen according to the ambient light brightness information.
[0142] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0143] Fig. 9 8 is a block diagram of a mobile terminal device 800 according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a mobile computer, etc.
[0144] Reference Fig. 9, the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0145] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0146] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.
[0147] The power component 806 provides power to the various components of the device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0148] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the 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 input signals from the 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 boundaries of the 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 camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0149] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0150] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0151] The sensor assembly 814 includes one or more sensors for providing various aspects of the status assessment of the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change 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 the temperature change of the device 800. The 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 an optical 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 accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0152] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can 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 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0153] 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, microcontrollers, microprocessors or other electronic components to perform the above method.
[0154] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0155] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a terminal, enables the terminal to execute a control method, the terminal comprising a light sensor and a display screen, the light sensor being arranged below the display screen, the method comprising:
[0156] When it is necessary to collect ambient light, switching the display frame rate of the display screen from a first frame rate to a second frame rate, wherein the first frame rate is greater than the second frame rate;
[0157] During the time interval when the display screen is displayed at the second frame rate, the light sensor detects ambient light in the space gap between the display units of the display screen, and obtains ambient brightness information.
[0158] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0159] It should be understood that the present disclosure is not limited to the exact structures that have been 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
1. An ambient light detection method, characterized in that: Applied to a terminal including a light sensor and a display screen, the light sensor is arranged below the display screen, and the method includes: The display screen displays a first frame image and a second frame image at a first time interval; wherein the first time interval is a time interval during which the display screen displays at a first frame rate; When it is necessary to collect ambient light, switching the display frame rate of the display screen from a first frame rate to a second frame rate, wherein the first frame rate is greater than the second frame rate; In a time interval when the display screen is displayed at the second frame rate, the light sensor detects ambient light in a space gap between display units of the display screen, and obtains ambient brightness information; wherein the time interval is a time interval for switching image frames, and the image frame is not displayed in the time interval; The method of detecting ambient light in a space between display units of the display screen by using the light sensor during a time interval when the display screen displays at the second frame rate includes: At an intermediate moment within a time interval between the second frame image and the third frame image displayed by the display screen at a second time interval, detecting ambient light in a space gap between display units of the display screen by the light sensor; The second time interval is a time interval during which the display screen displays at the second frame rate; and the second time interval is greater than the first time interval.
2. The method according to claim 1, characterized in that The method further comprises: Determining whether the display brightness of the display screen is less than a predetermined brightness threshold; The method of detecting ambient light in a space between display units of the display screen by the light sensor during a time interval when the display screen displays at the second frame rate and obtaining ambient brightness information includes: When the display brightness of the display screen is less than the predetermined brightness threshold, during the time interval when the display screen is displayed at the second frame rate, the light sensor detects ambient light in the spatial gap between the display units of the display screen and obtains the ambient brightness information.
3. The method according to claim 2, characterized in that If the display brightness of the display screen exceeds the predetermined brightness threshold value within the time interval, the method further includes: Reduce the second frame rate.
4. The method according to claim 1, characterized in that The method further comprises: After the light sensor detects ambient light in the space between the display units of the display screen, the display frame rate of the display screen is restored from the second frame rate to the first frame rate.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Detect whether there are obstacles within the preset range; If there is no obstacle within the preset range, switching the display frame rate of the display screen from the first frame rate to the second frame rate is performed.
6. The method according to claim 1, characterized in that The method further comprises: When the display screen is adjusted from a first display brightness to a second display brightness within a time interval of detecting the ambient light, determining a display brightness difference; When the display brightness difference value is greater than zero, the environment brightness information is corrected based on the display brightness difference value.
7. The method according to claim 1, characterized in that The step of detecting ambient light in the space between the display units of the display screen by the light sensor and obtaining ambient brightness information includes: Detecting the ambient light through the space between the display units of the display screen by the light sensor to obtain a first brightness value; Calculating a brightness difference between the first brightness value and a predetermined remaining brightness value of the display screen; The ambient brightness information is obtained according to the brightness difference.
8. The method according to claim 7, characterized in that Obtaining the ambient brightness information according to the brightness difference includes: The ambient brightness information is obtained according to the brightness difference and the light transmittance of the display screen.
9. The method according to claim 7, characterized in that: The method further comprises: The display brightness of the display screen is adjusted according to the ambient brightness information.
10. An ambient light detection device, characterized in that: Applied to a terminal including a light sensor and a display screen, the light sensor is arranged below the display screen, and the device includes: A switching module, configured to display the first frame image and the second frame image on the display screen at a first time interval; wherein the first time interval is a time interval during which the display screen displays at a first frame rate; when it is necessary to collect ambient light, the display frame rate of the display screen is switched from the first frame rate to the second frame rate, wherein the first frame rate is greater than the second frame rate; A first detection module is configured to detect ambient light in a space gap between display units of the display screen through a light sensor during a time gap when the display screen displays at the second frame rate, and obtain ambient brightness information; wherein the time gap is a time interval for switching image frames, and the image frame is not displayed during the time gap; The method of detecting ambient light in a space between display units of the display screen by using the light sensor during a time interval when the display screen displays at the second frame rate includes: At an intermediate moment within a time interval between the second frame image and the third frame image displayed by the display screen at a second time interval, detecting ambient light in a space gap between display units of the display screen by the light sensor; The second time interval is a time interval during which the display screen displays at the second frame rate; and the second time interval is greater than the first time interval.
11. The device according to claim 10, characterized in that The device also includes: A determination module configured to determine whether the display brightness of the display screen is less than a predetermined brightness threshold; The first detection module is specifically configured to detect ambient light in the spatial gap between the display units of the display screen through the light sensor during the time interval when the display screen displays at the second frame rate, and obtain the ambient brightness information when the display brightness of the display screen is less than the predetermined brightness threshold.
12. The device according to claim 11, characterized in that If the display brightness of the display screen exceeds the predetermined brightness threshold value within the time interval, the device further includes: The adjustment module is configured to reduce the second frame rate.
13. The device according to claim 11, characterized in that The device also includes a recovery module, After the first detection module detects ambient light in the space gaps between the display units of the display screen, the recovery module is configured to restore the display frame rate of the display screen from the second frame rate to the first frame rate.
14. The device according to any one of claims 10 to 13, characterized in that The device also includes: A second detection module is configured to detect whether there is an obstacle within a preset range; The switching module is specifically configured to switch the display frame rate of the display screen from the first frame rate to the second frame rate if there is no obstacle in the preset range.
15. The device according to claim 11, characterized in that The device further comprises a determination module and a correction module, and when the display screen is adjusted from the first display brightness to the second display brightness during the time interval of detecting the ambient light, The determination module is configured to determine a display brightness difference; The correction module is configured to correct the ambient brightness information based on the display brightness difference when the display brightness difference is greater than zero.
16. A terminal, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the ambient light detection method according to any one of claims 1 to 9.
